Connecting Tech Pros Worldwide Help | Site Map

Track as Button / Track as menu item

Newbie
 
Join Date: Oct 2008
Posts: 3
#1: Oct 28 '08
i'm failry new to Flash, i'm making presentations that are basicaly interactive slide shows.

the problem i'm having is that some of my buttons will only work when set to
"Track as menu item" i cant seem to find out why? anyone got any ideas?
joedeene's Avatar
Site Addict
 
Join Date: Jul 2008
Location: US of A
Posts: 587
#2: Oct 28 '08

re: Track as Button / Track as menu item


Ok, well it's probably something in your code, the layer its on, or something. Please specify more on what you're trying to do so I can be of more assistance.

joedeene
Newbie
 
Join Date: Oct 2008
Posts: 3
#3: Oct 31 '08

re: Track as Button / Track as menu item


I'm only using one bit of code mainly, through out the presentation which is:

button name_btn.onRelease = function(){
stopAllSounds();
gotoAndPlay("frame name");
}

Ive cut & pasted it and just changed the button & frame names. All the script is in an actions layer and none on the actual buttons themselves; and there are no buttons within buttons.

works fine for a bit and after a while i have to change the tracking
options to make it work.
joedeene's Avatar
Site Addict
 
Join Date: Jul 2008
Location: US of A
Posts: 587
#4: Oct 31 '08

re: Track as Button / Track as menu item


It could be a layer problem, try using the _root.gotoAndPlay()... Also, is your stopallsounds() function getting called? if not try the _root. before that too...

joedeene
Newbie
 
Join Date: Oct 2008
Posts: 3
#5: Oct 31 '08

re: Track as Button / Track as menu item


Hmmmmm....:-/

ive only used _root. when contolling the main timeline from a movie clip,
not sure if thats much use cos it works fine... most of the time.

the stopAllSounds(); bit is just because my employer may want to put
a sound track on at a later date and that bit works ok too, iv'e tested it.

i'm also getting undesirable results from "track as button" for example:

ive got a few quiz sections in the pres. with a chance to get it wrong once
or twice then revealing the correct answer. with "track as button". When the
correct answer is revealed the "track as button" btn's for the Incorrect answer still take you back to the Incorrect answer frame, even though they are not
instantated in reveal frame. "track as menu item" stops them doing this

i'm starting to think i should set them all to "track as menu item" ??
Reply