Solved

naming keyframes

Posted on 2001-08-06
11
611 Views
Last Modified: 2006-11-17
Hello all.
I am new to flash and need some assistance.

How do I name keyframes.

Lets say I have 4 keyframes, how would I name them to use gotoAndPlay("nameofkeyframe") from one keyframe to another to manipulate their control.

Thanks.
0
Comment
Question by:TryHarder
  • 6
  • 5
11 Comments
 
LVL 3

Expert Comment

by:jeffbeasley
ID: 6358064
go to your windows drop down then choose panels then select frame.
This will produce a panel.
On this panel it will say "label".
Select the frame you wish to label.
Then fill in the name for that frame on the panel

note:
It is good to have a seprate layer just for frame labels.
any time you need to create a new label choose the frame push f6 to create a new key frame the place name.

Let me know,
Jeff
0
 

Author Comment

by:TryHarder
ID: 6359783
Hello jeffbeasley.

I placed the labels on each of my keyframes like you indicated...

On the start of 2nd keyframe I inputted gotoAndPlay("frame4"); and on the end of my 4th keyframe I inputted gotoAndPlay("frame1");   Now when I select play, the movie goes in sequential order from the first till last without jumping from 2 to 4 and from 4 to 1. Is there any missing points on my part?


Thanks.
0
 
LVL 3

Expert Comment

by:jeffbeasley
ID: 6360065
try putting a stop action before you put the gotoAndPlay();
Another thing you might try is just useing the default value in flah for goto and play
for example if you new you  wanted play frame 10
just type
stop();
gotoAndPlay(10);

Jeff
0
 

Author Comment

by:TryHarder
ID: 6360131
I tried the stop() and trace("in 4")...

It seems like some option is off which tells flash to inspect actionscript for different keyframes. Maybe I have to save it first?
0
 
LVL 3

Expert Comment

by:jeffbeasley
ID: 6360254
I created an example file for you.
It is at http://www.jeffbeasley.com/downloads
called frame_label
right click on it to save it

Jeff
0
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 

Author Comment

by:TryHarder
ID: 6360421
I got your example. Im sure it worked for you. When I play it, the vertical line goes through all the frames. The two parts where you have actionscrips to skip into label 'a' and then 'b' didnt work. I saw the message 'You should not see this' two times. This means that the scripts are not executed on my flash-software. COuld it be that I have to connect the script together with the frames through some sort of check-boxes from the settings or options. This makes me believe because your environment lets you execute the scruipts and my doesnt. There must be something one other little detail.

Thank you.

0
 

Author Comment

by:TryHarder
ID: 6360443
Jeff, I think your example workds when I click on TEST MOVIE from Control menu item. It doesnt work when I click PLAY from Control menu. Why is that?
0
 
LVL 3

Expert Comment

by:jeffbeasley
ID: 6360446
What version of Flash do you have?

Jeff
0
 
LVL 3

Expert Comment

by:jeffbeasley
ID: 6360467
when you generate the flash file push
<CTRL><ENTER>
at the same time this will genrate an swf for you then open it in your browser and see what happens
If you still get the problem
right click on the movie in your browser
it should say
About Macromedi Flash 5 Player
If it has a lower version goto Macromedia and download the latest version
Jeff
0
 
LVL 3

Accepted Solution

by:
jeffbeasley earned 50 total points
ID: 6360479
Test movie
plays your frames without reading the script
when you press
<CTRL><ENTER> this generates an swf file
this is how your movie will actually function

you should be fine now,
Jeff
0
 

Author Comment

by:TryHarder
ID: 6360544
Thank you for your help.

My first flash movie works !!!

Max
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Introduction This article is primarily concerned with ActionScript 3 and generally specific to AVM2.  Most suggestions would apply to ActionScript 2 as well, and I've noted those tips that differ between AS2 and AS3. With the advent of ActionS…
I have been doing hardcore actionscripting for some time; and needless to say I have faced a lot of problems in just understanding others' code rather than understanding what the code executes. A programmer's life can become hell when there are a lo…
The goal of the tutorial is to teach the user how to select the video input device. Make sure you have an input device that in connected and work and recognized by Adobe Flash Media Live Encoder and select it in the “video input” menu.
This Micro Tutorial will teach to how to utilize bit rate in Adobe Flash Media Live Encoder.

911 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

20 Experts available now in Live!

Get 1:1 Help Now