PDA

View Full Version : speeding up a movie clip



dbh_21
12-20-2003, 08:25 PM
how do you get a movie clip to speed up on the event of a mouse rollover???

redcircle
12-21-2003, 06:06 AM
Having an event change the frames per second.

I know nothing of flash but that's what I would try and figure out.

Sualdam
12-21-2003, 06:23 AM
10 Commandments of Flash.

No.1

You can't change the FPS of a movie. It is set at design time.

12-22-2003, 07:04 PM
10 Commandments of Flash.

No.1

You can't change the FPS of a movie. It is set at design time.

hey Sualdam.....couldn't he load another movie into the stack?......providing he put the levels in correct order......make the clip in question a complete external swf at a dif fps and then load it/unload into the level stack (when you roll over the button back in _level0 timeline)? he'll have to move around some more action script & perhaps make a container swf to put everything in eventually.....

lemme know
thanx! ;-}

DAREN
http://WebPageTurner.com

Sualdam
12-22-2003, 08:03 PM
No. The way Flash works is that the base movie sets the frame rate. I'm not aware that this has changed in MX2004, by the way. I use MX.

If you create a movie at 24fps, and load another movie that was designed at 12fps, it will run at 24fps. It will therefore run faster than it was intended to.

The way around it (well, how I've done it with fast forward/rewind on video clips) is to write some simple actionscript to play every other frame, or every third frame, and so on.

Look at this link (last sentence in particular):

http://livedocs.macromedia.com/flash/mx2004/main/09_mot12.htm

It says 'you only set the frame rate for an entire Flash document once', so the implication is the same as what I said above.

Having said that, I found this component someone has written which allows the frame rate to change at runtime (with some limitations) - so I learnt something here, too :)

http://www.macromedia.com/cfusion/exchange/index.cfm?view=sn111&extID=502105

I haven't tried it, but I would expect it to increase the filesize somewhat, so it would be best used in advanced projects.

I'm only guessing, but it might work in roughly the way I described above anyway, because it says it works 'programmatically'.

12-23-2003, 12:15 PM
No. The way Flash works is that the base movie sets the frame rate. I'm not aware that this has changed in MX2004, by the way. I use MX.

If you create a movie at 24fps, and load another movie that was designed at 12fps, it will run at 24fps. It will therefore run faster than it was intended to.

The way around it (well, how I've done it with fast forward/rewind on video clips) is to write some simple actionscript to play every other frame, or every third frame, and so on.

Look at this link (last sentence in particular):

http://livedocs.macromedia.com/flash/mx2004/main/09_mot12.htm

It says 'you only set the frame rate for an entire Flash document once', so the implication is the same as what I said above.

Having said that, I found this component someone has written which allows the frame rate to change at runtime (with some limitations) - so I learnt something here, too :)

http://www.macromedia.com/cfusion/exchange/index.cfm?view=sn111&extID=502105

I haven't tried it, but I would expect it to increase the filesize somewhat, so it would be best used in advanced projects.

I'm only guessing, but it might work in roughly the way I described above anyway, because it says it works 'programmatically'.

thanks...it seems that it would increase the files size i agree.....

this is a good topic here though....'cause it has me combing my brain for ideas.....

hey how bout this....>>what happens when you load a external into the same level....like if you're in _level0 and you load another movie into _level0 then the 2nd movie takes the place of the 1st because you can't have two movies in the same level.....then what would the frame rate be of the second one? since it's at the root level now it has no other fps rate to synch with except it's own designtime fps.......

what cha think about this?

i'd like to know

thanks!
DAREN
http://WebPageTurner.com

Sualdam
12-23-2003, 01:13 PM
The way Flash works is that the base movie sets the frame rate...

If you create a movie at 24fps, and load another movie that was designed at 12fps, it will run at 24fps. It will therefore run faster than it was intended to...

If in doubt, try it.

12-23-2003, 11:25 PM
The way Flash works is that the base movie sets the frame rate...

If you create a movie at 24fps, and load another movie that was designed at 12fps, it will run at 24fps. It will therefore run faster than it was intended to...

If in doubt, try it.

hey i believe ya bro! i was really jsut trying to clarify if you meant that this was also true when a base movie replaced itself in it's own level.......so what you are re-assuring me is:
assuming .swf A = 24fps and .swf B = 16fps
if we start with .swf A at base level (0) irunning at 24 fps.....and then have it load swf B into level 0 (into itself...so swf A is then kicked out of the stack) then .swf B, now the ONLY Flash movie in the stack, will be running faster than its design time of 16fps and will instead be running at 24fps like the movie before......

DO I have this correct?
Thanks man....i'm sorry to pester you but you know a lot & i just want to have it clear.

Happy Holidays!
DAREN
http://WebPageTurner.com

Sualdam
12-24-2003, 07:47 AM
I believe so.

But like I say, try it. That's how I confirm things.