Solved

naming keyframes

Posted on 2001-08-06
11
612 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
Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

 

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
 

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

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Reduce the size of the Flash SWF file it executes 12 418
Flash player plugin 13 7 331
Windows 7, Adobe Flash Player and Internet Explorer 11 15 98
Download Adobe Flash Player 6 63
There are times in your Flash CS4 application when you want more than a simple pointer or a hand, and it's hard to find an ideal walk-through to tell you what to do.  I spent a few days recently learning my way around making custom cursors in Flash,…
The last time I worked with Flash and Socket connections was in AS1. A recent project required flash connecting to a Socket, and sending receiving information - we figured it would be easy enough - we all know about the socket policy documents and c…
The goal of the tutorial is to teach the user how to live broadcast using Flash Media Live Encoder and connecting it to YouTube to broadcast. Log into your Youtube account, choose live stream settings, start live stream from Flash Media Live Enc…
The goal of the tutorial is to teach the user how to set there setting in Adobe Flash Media Live Encoder and YouTube for optimal video and audio quality.

776 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