Flasher Archive

[Previous] [Next] - [Index] [Thread Index] - [Previous in Thread] [Next in Thread]


Subject: FLASH: Changing frame rate on the fly...
From: m i l e s l i g h t w o o d
Date: Tue, 4 Jan 2000 09:22:15 GMT

I'm trying to change the frame rate of my two layer Flash game by loading a
movie with a different frame rate into _level0. I've tried every variation
I can think of, but no luck. Instead of replacing _level0 with a new .swf
file, and thus changing the overall frame rate, LoadMovie replaces the
calling movie in _level1.

Notes
All .swf files are in the same directory
All .swf files are the same size.
The three .swf files being used are:
start.swf (running at 12 fps; in _layer0)
game.swf (in _layer1)
24fps.swf (running at 24 fps; trying to load into _layer0)
start.swf calls LoadMovie("game.swf, "1") on the second frame

I've tried the following actions, attached to a button action, and none
yield the results I want.

game.swf calls LoadMovie("24fps.swf", "0")
game.swf calls LoadMovie("24fps.swf", "_level0")
game.swf calls LoadMovie("24fps.swf", "../_level0")
game.swf calls LoadMovie("24fps.swf", "_level0/")
game.swf calls LoadMovie("24fps.swf", "/_level0")
game.swf calls LoadMovie("24fps.swf", "")

>From game.swf, I tried the above LoadMovie calls from within the following
tell target calls

Begin Tell Target ("_level0")
End Tell Target

Begin Tell Target ("../_level0")
End Tell Target

Begin Tell Target ("/_level0")
End Tell Target

Begin Tell Target ("_level0/")
End Tell Target

Begin Tell Target ("0")
End Tell Target

In a nutshell, I want to load a new .swf into _level0 from _level1.

In an August 1998 posting, John Croteau briefly mentioned that this
technique works great:

>Hi Andrew,
>
>> Hi again, is there any way to change the frame rate of a movie while it
>> is playing, using FSCommands perhaps?
>Only one way. Load a new Movie in Level zero with Load Movie. Works
>great. The Movie at level zero sets the frame rate for the presentation.

Does anyone know how to make this technique work? What am I doing wrong?
Any assistance greatly appreciated.

TIA.

Ciao,

m i l e s
_______________________________________________________________________

m i l e s l i G h T w O o d
_______________________________________________________________________
m i l e s G T O @ p o b o x . c o m
_______________________________________________________________________
multimedia development: director lingo shockwave java +1 213.353.9850




flasher is generously supported by...
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Streaming Media WEST '99 Conference & Exhibition
"The Worlds largest Internet Audio & Video Event"
December 7 - 9, San Jose Convention Center, California

Reserve your space today at http://www.streamingmedia.com
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
To unsubscribe or change your list settings go to
http://www.chinwag.com/flasher or email helpatchinwag [dot] com


Replies
  FLASH: 3-D animation and morphing, Rohit

[Previous] [Next] - [Index] [Thread Index] - [Next in Thread] [Previous in Thread]