Hello all,
I've dug out the Flash (CS3) to make a banner ad for my site and I've rekindled my hatred for it.
I have made the entire ad and it looks okay but I'm having a nightmare making it 'clickable' throughout.
I have looked on several different websites and used the code recommended every time with the classic 'invisible' button, which has turned turquoise for me:
However, I'm getting the error:
Location
Description
Source
I downloaded a sample file from one of these sites and the actionscript is exactly the same as mine.
I'm using an image (jpg) turned into a symbol (button), changed the button states to only be present on 'hit' (hence the turquoise) but still it's not playing nice.
I do have a 'stop' actionscript on a different layer (same frame) so the ad doesn't loop - would that be causing the problem? When I have added the 'getURL' actionscript on its own layer it has sometimes turned the stop off and the movie loops when tested.
Getting that, I then tried putting the stop and getURL into the same layer but that didn't work either.
Any ideas? Sort of at the end of tether with it.
I've dug out the Flash (CS3) to make a banner ad for my site and I've rekindled my hatred for it.
I have made the entire ad and it looks okay but I'm having a nightmare making it 'clickable' throughout.
I have looked on several different websites and used the code recommended every time with the classic 'invisible' button, which has turned turquoise for me:
Code:
on (release){
getURL("http://www.url.com/", "blank");
}
However, I'm getting the error:
Location
Code:
Scene 1, Layer 'Link', Frame 1, Line 1
Code:
1087: Syntax error: extra characters found after end of program.
Code:
on (release){
I downloaded a sample file from one of these sites and the actionscript is exactly the same as mine.
I'm using an image (jpg) turned into a symbol (button), changed the button states to only be present on 'hit' (hence the turquoise) but still it's not playing nice.
I do have a 'stop' actionscript on a different layer (same frame) so the ad doesn't loop - would that be causing the problem? When I have added the 'getURL' actionscript on its own layer it has sometimes turned the stop off and the movie loops when tested.
Getting that, I then tried putting the stop and getURL into the same layer but that didn't work either.
Any ideas? Sort of at the end of tether with it.