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 Wanet Telecoms Ltd on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Buttons wont work in .swf but do in .fla

Status
Not open for further replies.

t1hodges

MIS
May 8, 2003
54
When I enable "simple frame actions" and "simple buttons" while designing, my button objects, which are coded to move from one scene to another, work fine, but when I export the movie to a .swf the buttons don't move from one scene to the other as coded. I will add that in the .swf the cusor changes from pointer to index finger pointer, but the roll over instance of the button does not activate.

each button has the following code:
on (release) {
gotoAndStop("About NCC", 1);
}

Any help will be appreciated.
 
Never target a scene name in your Flash life again!
Only always target a labeled frame, and add the targeted timeline to your path...

Thus label the targeted frame in the targeted scene, 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 special characters other than the underscore...), and add _root or _level0 (even _parent if you're into using relative paths...) to your path, and only target the labeled frame in your button's script...
Code:
on (release) {
    _level0.gotoAndStop("[b]my_target1[/b]");
}




Regards. Affiliate Program - Web Hosting - Web Design
After 25,000 posts, banned on FK, but proud not to have bowed down to them!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top