Solved

Flash

Posted on 2003-11-24
20
388 Views
Last Modified: 2010-04-07
Hi everyone..I am making one movie in macromdeia flash 5.0. when i finish a movie, i would like to play it as first layer will will b played and it stops on its place and then second layer starts and then it stops on its place. i am facing a problem that when first layer played it disappears and then second layer starts. i would like to stop them on its place. i hope  you understand what i am trying to say.i need to stop 1st layer ,it must not disappear when 2nd layer starts. this is my question. i hope you will give me answer as soon as possible.Its very Urgent, Thanks a lot
Adnan
0
Comment
Question by:Adnan J Iqbal
20 Comments
 
LVL 5

Expert Comment

by:zenlion420
Comment Utility
If I'm reading you right:

At the end of your first layer of animation (last keyframe), put a "(stop)" command and a " _root.gotoandplay(number of the keyframe your second layer begins its anim on, in )in the actionscript pane.  Then, in that same layer, go to the frame number that your second layer animation ends on, and right click/choose "insert frame".

Then at the end of your second layer's anim, either put a "(stop)" command, or if you want to loop it, _root.gotoandplay(1)

does this help?  if not, you'll need to clarify your Q.

j
0
 
LVL 1

Expert Comment

by:yans
Comment Utility
I know Macomedia FLash , if you wonna know it too stop asking questions go to www.flashkit.com or www.actionscript.org
there you will find anything you ever wanted to know about FLASH
0
 
LVL 3

Expert Comment

by:alexgreen
Comment Utility
if you're looking at trying to keep the first layer visible whilst playing the second layer then on top of Zenlion's comments, you need to make sure the second layer's background is TRANSPARENT or you won't see a thing!
0
 
LVL 1

Expert Comment

by:adanv1
Comment Utility
It could actually be that your first layer ends before the second layer starts, so when the movie is playing, the first layer animation will play, and then disappear, and the second layer animation will play, and disappear. If I am correct from your question, then you would simply have to make sure the two animations are on different layers for one, you can press the '+' button to create a new layer, and then drag the end of your animation on the first layer to the end of the animation of your second layer. It's really quite easy to do. If you aren't doing a Motion Tween (the purple layer color) then the layer should be colored grey. Select the end of the animation by selecting the '[]' at the end of the first layer (it's on the last frame) and moving it to the end of the second animation. If you are doing a Motion Tween (the purple layer color), then move the 'o' at the end of the first layer animation to the end of the second layer animation.
I hope this helps, if not, post additional information about your problem.
G'day and happy thanksgiving
0
 
LVL 5

Expert Comment

by:zenlion420
Comment Utility
heh, good point, alex :)
0
 

Author Comment

by:Adnan J Iqbal
Comment Utility
Dear Zenion
thanks for your reply, but i am still facing the problem, the solution u gave me, i tried twice. i put STOP command in the end of first layer and then i put GOTO command in the start of second layer, but when i run a movie, the first layer runs and stops but the second layer doesnot run until i press the ENTER key.i gave frame number in gotoplay command but the first layer runs and stops and to play second layer i have to press ENTER, wheni press enter the first layer disappear. i hope you are getting my point. and i hope u will give me better solution. Thanks
Adnan
0
 
LVL 5

Expert Comment

by:zenlion420
Comment Utility
Hello adnanjaved,

can you please post your .fla online so i can figure out what is going on?  If not, e-mail it to me (in my profile), and I will post the unadulterated version online for anyone interested before I correct the error.

aloha,

j
0
 
LVL 5

Expert Comment

by:zenlion420
Comment Utility
Oh wait.  You need to put the gotoandplay command in the last keyframe of the first layer (not last frame).  maybe that will help you.  you would still want the gotoandplay at the end of the second layer, if you want the anim. to loop.  get back to me.

j
0
 

Author Comment

by:Adnan J Iqbal
Comment Utility
hello zenlion
if u have any solution to this probelm then plz let me know, and if not then plz give me your email address i will send you the movie clip
thanks
adnan
0
 
LVL 5

Expert Comment

by:zenlion420
Comment Utility
For anyone interested, I posted the file here before i even looked at it:

www.nokaoidesign.com/adnan.zip
0
How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

 
LVL 5

Accepted Solution

by:
zenlion420 earned 20 total points
Comment Utility
adnan:

www.nokaoidesign.com/adnan1.zip

That should be what you're after.  let me know if you have any more Q's.

look at the actions in the frames.  I added a gotoandplay(16) to frame 15 of layer one, and a (stop) command to the last frame of layer 2.  Also, i extended the frames of the first layer to the end keyframe of the second.

aloha,

j
0
 
LVL 5

Expert Comment

by:zenlion420
Comment Utility
Hey, I just noticed the gotoandplay(15) you have in layer 2.  since it is on frame i5, you can delete that :)

j
0
 
LVL 5

Expert Comment

by:zenlion420
Comment Utility
i5=15
0
 
LVL 5

Expert Comment

by:zenlion420
Comment Utility
I thought you were in a rush for this solution.  It's been about 24 hours since I solved it for you and no reply?

aloha,

j
0
 
LVL 5

Expert Comment

by:zenlion420
Comment Utility
Did I not answer you correctly?  Why the B?  What more info did you require?  As far as I can tell, I posted the exact solution.

j
0
 
LVL 5

Expert Comment

by:zenlion420
Comment Utility
guess you're not going to reply.

j
0
 

Author Comment

by:Adnan J Iqbal
Comment Utility
hi zenlion
thanks v much for helping me , and i hope u will help me more in future
thanks once again
Adnan
0
 
LVL 5

Expert Comment

by:zenlion420
Comment Utility
But why the B grade?  This doesn't make sense to me.

j
0
 

Author Comment

by:Adnan J Iqbal
Comment Utility
yes your answer is correct , thanks for help...
0
 
LVL 5

Expert Comment

by:zenlion420
Comment Utility
Whatever :)
0

Featured Post

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

Suggested Solutions

Now that Expression Web 4.0 (http://www.microsoft.com/expression/products/Upgrade.aspx) is free if you buy or have the full version of Expression Web 3.0, now is the best time to  migrate from FrontPage to Expression Web (http://www.frontpage-to-exp…
This article provides a case study on how our local youth baseball league deployed a new website, including the platform selection, implementation and benefits to the league.
The purpose of this video is to demonstrate how to insert an Iframe into WordPress. This will be demonstrated using a Windows 8 PC. Go to your WordPress login page. This will look like the following: mywebsite.com/wp-login.php : Open Page or Post…
The purpose of this video is to demonstrate how to set up basic WordPress SEO. This will be demonstrated using a Windows 8 PC. The plugin used will be WordPress SEO by Yoast. Go to your WordPress login page. This will look like the following: myw…

743 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

8 Experts available now in Live!

Get 1:1 Help Now