Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

buttons stay within flash document?? 1

Status
Not open for further replies.

MisSheLi

Technical User
Nov 18, 2004
6
US
I need some help... I cant figure this out and it is really getting to the point where the computer is going to learn to fly out the window...
I want to be able to press a button in my flash document for instance like a photo link to take it to a page that makes it larger and gives a description... but am not sure how to do this... I want it all to be in the same flash document.. I have seen things with stages etc.. but really cant figure out the action script to get it to go... I know how to get it from a link to a webpage.. but how do I get the link to go to a different frame within my flash document???
Thanks so much in advance I am going CRAZY and realize this is something that I SHOULD know.. but dont...

Sonrisa
 
Use frame labels.

Label the targeted frame with an unique label such as my_target1 (no number only labels, or at least not starting off with a number, no caps, no spaces, no other special characters other than the underscore...), add _root or _level0 to your path to target the main timeline, and target the labeled frame on your scripts...
Code:
on (release){
    _level0.gotoAndStop("[b]my_target1[/b]");
}

Do you know how to label frames? Or is your machine already out the window?

 
label frames... hmmm... dont know how to do that either.. which may have been my problem in the first place :) and no.. the computer is still here.. but it is still on probation and can be thrown out the window at any time I feel is necessary :D thanks for your help
sonrisa
 
Select the targeted frame on the timeline, and in it's properties (Property Inspector) you'll see a top-left input box < frame label >... That's where you would type and set the frame's label...
 
ok... still not working dont know what I am doing wrong... I got this template from templatemonster.com and it really is becoming more of a hassle than it is worth... I am putting together a page for my portfolio and I want to be able to click on the small picture and have it go to a seperate page in the flash document... since it is all one document for the website I just added a layer and went to the very end of the timeline added a keyframe outside where all the other information ends and made a page... labeled the frame like u said and then went back to add action to that darn button... but... nothing...keeps giving me error messages when I try and test it... but not when I check the syntax of the code... what am I doing wrong? how do I add a page to my existing flash document and have a button go there??
thanks for your help... sorry it is so confusing
Sonrisa
 
Yeah! Some of those templates are poorly when at all commented. Can't tell what's going wrong unless I saw the .fla... Can you post a link to it, zipped up and in a MX only format, not MX2004.

You would have to save a copy of your MX2004 .fla, (using Save as...) and changing the Document type to MX only in the Save as... window.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top