Streaming in Flash?

Let say I have a Flash movie with 5 scenes running consequtively. During loading, will the movie start playing after the 1st scene is downloaded, or when the 5 scenes are downloaded?

Another question, let say I have 2 .fla files. I want to copy everything from one fla file to the other as a scene. Would that be possible? If so, how?
spurssyAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

SuperMarioCommented:
1)

The movie will start after the first frame of it is loaded.

You can prevent this by using

If Frame Is Loaded(main, 500)
Go To and Play(main, 1)
End If Frame Is Loaded

in the first frame of your first scene, and

Go To and Play(1)

in the last frame of your first scene.

The word 'main' above refers to the scene you want loaded and the scene you want to go to.
Change as desired.

2) Click the first frame on the uppermost layer. Hold the shift key and click the frame on the bottom layer that is directly below the very last frame of the entire scene.

So if you have a movie that is 220 frames long and 4 layers, you click frame one of layer 1, hold shift and click frame 220 of layer 4.

Now right-click anywhere in the selected frames and choose Copy Frames.

Now in a brand new fla file in a new scene, right-click the first frame and choose Paste Frames. You're done!

I hope this helps!
-Dan
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
spurssyAuthor Commented:
i am satified with ur answer, however, is there any way which i can determine which scenes get loaded first?

And would u care to explain a bit more detail about the few lines of codes given as answer for question 1.

0
SuperMarioCommented:
1)

The scenes which are loaded first can be determined by visiting Window -> Inspectors -> Scene, and the scene on the top is the one which gets loaded first - essentially they are in top-down load order. The scene on the bottom gets loaded last.

2)

The If Frame Is Loaded command is found on the plus (+) button in the Actions tab when you go to a frame's properties. Simply click that button and select If Frame Is Loaded from that drop-down list. Now, the script in the little window just says

If Frame Is Loaded(1)
End Frame Loaded

Highlight the If Frame Is Loaded box and select the scene you want to determine the loading status of. Type in the frame number in the Frame box. If you want to preload the entire scene, choose the very last frame of the next scene.

Now add a line that says

Go To And Play(1)

by choosing Go To from the drop down list and checking the "Go To and Play" checkbox on the right bottom.

Now your code should read (with Scene 2, frame 180 as the last frame to load in scene 2):

If Frame Is Loaded(Scene 2, 180)
 Go To And Play(Scene 2, 1)
End If Frame Is Loaded

Put that code in the very first frame of your first scene. Press OK.

Now, maybe 10 frames down, insert another keyframe. Go to its properties and the Actions tab, and choose Go To from the drop down. Check the "Go To and Play" box again. Now your code in that frame should read

Go To and Play(1)

Hit OK.

Your timeline should look something like this:

a | | | | | | | | a

At the first 'a', it checks the loading status. At the second 'a' it just makes a loop. It only breaks out when the frame specified in the first frame is loaded.

I'm glad to help!
-Dan
0
SuperMarioCommented:
1)

The scenes which are loaded first can be determined by visiting Window -> Inspectors -> Scene, and the scene on the top is the one which gets loaded first - essentially they are in top-down load order. The scene on the bottom gets loaded last.

2)

The If Frame Is Loaded command is found on the plus (+) button in the Actions tab when you go to a frame's properties. Simply click that button and select If Frame Is Loaded from that drop-down list. Now, the script in the little window just says

If Frame Is Loaded(1)
End Frame Loaded

Highlight the If Frame Is Loaded box and select the scene you want to determine the loading status of. Type in the frame number in the Frame box. If you want to preload the entire scene, choose the very last frame of the next scene.

Now add a line that says

Go To And Play(1)

by choosing Go To from the drop down list and checking the "Go To and Play" checkbox on the right bottom.

Now your code should read (with Scene 2, frame 180 as the last frame to load in scene 2):

If Frame Is Loaded(Scene 2, 180)
 Go To And Play(Scene 2, 1)
End If Frame Is Loaded

Put that code in the very first frame of your first scene. Press OK.

Now, maybe 10 frames down, insert another keyframe. Go to its properties and the Actions tab, and choose Go To from the drop down. Check the "Go To and Play" box again. Now your code in that frame should read

Go To and Play(1)

Hit OK.

Your timeline should look something like this:

a | | | | | | | | a

At the first 'a', it checks the loading status. At the second 'a' it just makes a loop. It only breaks out when the frame specified in the first frame is loaded.

I'm glad to help!
-Dan
0
SuperMarioCommented:
oops, sorry about the double post!

-Dan
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Adobe Flash

From novice to tech pro — start learning today.