|
-
CS4 - AS2 - All links go to the sme URL
I have been working on a project that has multiple links assigned via AS to the specific instance of a button. I have tried assigning URL scripts in frame 1 as well as "hard" coding them to each button the frame that they are being displayed on screen.
Example: button 1 is assigned code to go to www.site1.com
button 2 is assigned code to go to www.site2.com
button 3 is assigned code to go to www.site3.com
Compile and run...
All links take me to www.site2.com
If I remove the link of button 2 then no links work.
Any thoughts? Anyone else had this happen?
At first you do not succeed,
Deny you were ever trying.
-
var x:Number = 1; x /= 0;
can you post your code or the fla?
-
looks like button2 get duplicated/attached. You'll need to use the generated 'new name' to target each instance of the button. And, as ZippyDee is saying, there can be no further help without seeing a code.
gparis
-
Code link supplied here. Thanks
ok. Here is a link to the actual FLA file. LINK
Once you have it open look for a MC called "PermMakeup_MC" on this MC there are two links. If you were to run the SWF you would find that both of them take you to the same place. There are other MC's that are set up the same way, this one is the first I wrote down as a reference.
I have tried to define each link into a script at the beginning of the SWF and referencing each button by an instance name. Nothing has worked.
Any thoughts or revelations would be incredible. LINK
Thank you.
At first you do not succeed,
Deny you were ever trying.
-
Any ideas?
Has anyone had a chance to ponder my AS2 link issue?
Thank you.
At first you do not succeed,
Deny you were ever trying.
-
not sure if im seeing this right, but, inside the PermMakeup MC (which is gross by the way)....your onPress is referring to the movieclip itself, and not the "link buttons", which are buttons but have not been given instance names...
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|