Ask a Question related to Macromedia Flash Actionscript, Design and Development.
-
conspiracytheorist #1
master button actions inherited by other btns
Hey there
The topic name speaks for itself: how do I code "slave" buttons to follow
script of "master" button? I have 50 state buttons on level 0 and a master
button at the root. The master button triggers a clickTAG getURL action for all
areas not covered by the state buttons. The state buttons currently have a
script that was devised for passing variables for tracking purposes (it's for
an online ad campaign)
on (release)
if (_root.clickTAG.substr(0,5) == "http:")
getURL(_root.clickTAG, "_blank")
This is an example of a (what we call) "non-embedded URL", in that there is no
direct URL published in the swf file; the URL is actually coded into the
supporting html and usually done so by the client, for more control over their
tracking of the ad, etc
This is an "embedded" URL, located in the actions for the master button
on (release)
getURL(clickTAG add
"http://www.nextag.com/goto.jsp?p=0000&search=Mortgage_720x300_7350&produ ct=1000
00035&url=%2Fst.jsp&tm=y", "_blank")
In other words, a standard getURL action - nothing fancy, except for the
addition of the "clickTAG" script
The question is: how can I have all of the state buttons (the "slaves")
reference the getURL "embedded" script of the master button? Reason being: we
publish these ads with several publishers, who all have different ID numbers,
and I don't want to have to change the URL's 50 times each time I need to
publish a new swf!!
Here's a link to the fla file, if you're feeling game to tear it apart
[L=example.zip]http://www.kaleidodesign.com/flash/flashkit_example.zip[/L
Thanks for any and all responses
Ro
conspiracytheorist Guest
-
Multiple Actions per Button
I have a submit button that, when clicked, will send an email to a specific email address (already working) and I would like it to redirect to a... -
slave buttons that refer to master button actions
Hi Just as the message title says, I'm looking to have 50 buttons refer to a get URL action contained in a master button (which is in the same... -
2 Movie Actions for Same Button
I've included an example of the problem I'm having here. On Over the static electricity starts, which is fine - but on clicking the mouse button I... -
[PHP] Calling functions from Button actions
I would assume you are referring to PHP functions since that is the nature of this list and since PHP only really executes on a web server, and since... -
button actions
Hi all, quick question, I need to do two things for a presentation (published as a windows projector .exe file); 1. create a button that will...



Reply With Quote

