[thelist] Flash Question
Peter Loron
peterl at standingwave.org
Sat Feb 7 13:58:18 CST 2004
Ok, thanks to everybody that responded. I've got my elapsed time clock
working, and I have almost everything else sorted out too. At this
point, the animation intermittently displays a movie clip in a random
location on the stage. That works fine.
What I'd like to be able to do is have the stage be dynamically
resizable by the user. Right now, I'm using a 640x480 stage, which is
ok, but looks silly when displayed in a fullscreened browser on a
1280x1024 monitor. I'd like the stage to dynamically expand to fit the
browser window (even after the movie loads). Can this be done? I dug
through the tutorials on FlashKit, but didn't see an answer...
Thanks!
-Pete
On Feb 4, 2004, at 4:06 PM, joe wrote:
> Hi Peter
>
> You could use the Date object: When the movie loads, create a new
> Date() object and use it to grab the current time <my_date.getTime()>
> and then make a global function which grabs the current time each time
> it's called and updates your clock display by comparing the start time
> to the current time. You can call your function every second using
> setInterval(function, 1000) where 1000 is one second.
>
> Hope this helps :)
>
> joe
>
>
> Peter Loron wrote:
>
>> Ok, sounds easy enough in concept. Any pointers on how to implement
>> the clock part? Some text in the movie that I programmatically
>> update?
>>
>> Thanks!
>>
>> -Pete
>>
>> Rob Smith wrote:
>>
>>> I've got an easier solution Pete
>>>
>>> Frame one: Start clock
>>> Frame two and on: Flash Movie
>>> LastFrame: goto and play (2)
>>>
>>> Rob
>>
>
>
>
> --
> * * Please support the community that supports you. * *
> http://evolt.org/help_support_evolt/
>
> For unsubscribe and other options, including the Tip Harvester and
> archives of thelist go to: http://lists.evolt.org Workers of the Web,
> evolt !
More information about the thelist
mailing list