|
Posted by Don Khuth on 03/19/06 17:28
"Onideus Mad Hatter" <usenet@backwater-productions.net> wrote in message
news:steq12tk0ip47qcmoee060n77l2amcqb9i@4ax.com...
> On Sun, 19 Mar 2006 02:49:17 -0500, "Don Khuth"
> <donkhuth@sympatico.ca> wrote:
>
>>"Onideus Mad Hatter" <usenet@backwater-productions.net> wrote in message
>>news:1l1q12dkhppq754h01icpmkarvtmv70hlh@4ax.com...
>>> On Sun, 19 Mar 2006 00:24:22 -0500, "Sean Morgan" <da905@hotmail.com>
>>> wrote:
>>>
>>>>"Onideus Mad Hatter" <usenet@backwater-productions.net> wrote in message
>>>>news:1g4b02dn1qg3socrbfqbq0nupu6r9cjd09@4ax.com...
>>>>> DUM DUM DUM DUM...
>>>>>
>>>>> square._x = eval("dates._"+i+"._x") + 566;
>>>>>
>>>>> If you're trying to assign a property of a variable variable to
>>>>> another objects property you sure as fuck need it (well in
>>>>> Actionscript anyway).
>>>>>
>>>>> You don't need it if you're doing it in reverse though, like nyah:
>>>>> "dates._"+i+"._x" = whatever_variable;
>>>>>
>>>>
>>>>What does that have to do with PHP?
>>>
>>> Teh PHP froup was one of the ones involved in the whole 'eval doesn't
>>> do anything' debate awhile back. Further, the current site in
>>> discussion will have a PHP back end to it, which may be of some
>>> interest to the folks in that froup (not every day you find PHP
>>> integration with Flash).
>>
>>I was trying to integrate Flash and PHP a while ago. I ran into some
>>trouble
>>when
>>I tried to use LoadVars(). It worked sometimes and didn't work other
>>times,
>>so I
>>dropped it, never got back into it tho.
>
> I haven't had any problems with it so far. My only real bother is
> figuring out proper methodology. For example with my blog calendar I
> was thinking about having it run PHP code for every date it generated
> on the calendar to check to see if it had an entry in the database (in
> order to determine whether it needed to be underlined) but now I'm
> thinkin it might make more sense processing wise to just have it run a
> single php script during onload to get a list of all the blog entry
> dates...although that would be more difficult to code...well, I guess
> not so much difficult as time consuming. Figure I'll probably do it
> both ways and then see which one works better.
>
> Another concern I have is the level of data being passed via the
> URL...I'm wondering how well it's going to work with large blog
> entries. Just out of curiosity what was the nature of the data you
> were trying to pass?
I was playing around with a Flash clock. The Date() function got the
system date/time. I was trying to retrieve the server time rather than
the time from the user's computer. I could have done the calculation
and set the timezone to GMT but I got lazy. I wanted to play around
with LoadVars(). I had some trouble reading the variables that was
outputted from the php script.
But as you for your blog date thing, what I did was, let's say:
index.php?month=3&year=2006
I would get all the days from the database that was in March 2006.
Those days are stored into an array. Later when I generate the
calendar, each day of the month is tested to see if it exists in the
array. If so, I would link it to the right blog.
[Back to original message]
|