Solved

naming keyframes

Posted on 2001-08-06
11
617 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
MS Dynamics Made Instantly Simpler

Make Your Microsoft Dynamics Investment Count  & Drastically Decrease Training Time by Providing Intuitive Step-By-Step WalkThru Tutorials.

 

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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Recently, I was asked to recommend a tracking system to be implemented on a clients website. As the entire site was built on flash, my first thought was to suggest custom built tracking system. However, our company at that point of time didn't h…
Here are some practices and techniques that can be adopted into your Flash/Flex application development process. Note: Not all "performance tips" provide an immediately-recognizable benefit.   This article does not include timing validation data,…
In this tutorial viewers will learn how to create a basic shape tween animation in Flash including shape hints for smooth animation Open a new document in Flash: Draw a shape: Select another frame (how long you want the tween to be): Right click and…
The goal of the tutorial is to teach the user how to how to record live broadcast.

626 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