Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Developer Center > FPS and Stage linking

FPS and Stage linking
Thread Tools
Mac Enthusiast
Join Date: Jan 2003
Location: :noitacoL
Status: Offline
Reply With Quote
Feb 24, 2003, 10:39 PM
 
hey... I have an animation that is at 100 fps... I want to bring in my swift 3d animation that is at 50fps... I can't make another scene and just run them together since when you change the fps in MX, it changes the document's fps. Anyone know how i can just make a new stage (not scene) and link them together with actionscript? (I hope this makes sense)

All as artificial as the Matrix itself, although only a human mind could invent something as insipid as Love.
     
Fresh-Faced Recruit
Join Date: Oct 2002
Status: Offline
Reply With Quote
Feb 24, 2003, 10:54 PM
 
You would have to have a completely seperate swf (read: not loaded into the other swf at all).

Sounds like your best solution would be to write a simple script to advance the 50fps movie by one frame for every 2 frames played on the 100fps movie:

bMoveAhead = !bMoveAhead;
if (bMoveAhead) { mySwiftAnimation.nextFrame(); }

Hope it helps.
Cheers,
Grant Skinner.
     
Mac Enthusiast
Join Date: Jan 2003
Location: :noitacoL
Status: Offline
Reply With Quote
Feb 24, 2003, 11:27 PM
 
cool... now where would i put that code?

All as artificial as the Matrix itself, although only a human mind could invent something as insipid as Love.
     
Fresh-Faced Recruit
Join Date: Oct 2002
Status: Offline
Reply With Quote
Feb 25, 2003, 11:48 PM
 
You would want to have that code triggered by an enterFrame event. So for instance, you could place this on the first frame of the root that your swift3d movieclip shows up on.

this.onEnterFrame = function() {
bMoveAhead = !bMoveAhead;
if (bMoveAhead) { mySwiftAnimation.nextFrame(); }
}

just be sure to remove it when you're done with it:

delete(this.onEnterFrame);

Cheers,
Grant Skinner.
     
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 08:49 PM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2