I’ve done thsi a few times before and all seemed to work, but this time I simply cannot get my simple flash banner to link to a page within the site - how do I make the whole banner clickable?
I’ve added a layer on top of the banner, created a rectangle, set it to transparant, converted it to a button, double clicked on it, moved the up frame to the Hit frame, back into scene 1, F9 and added the on click command.
Obviously this doesn’t work… How would I alter this?
The swf file is at http://www.swinsidelodge-hotel.co.uk/pages/home2.php, the actual fla is at [URL=“http://www.swinsidelodge-hotel.co.uk/media/flash/banner.zip”]http://www.swinsidelodge-hotel.co.uk/media/flash/banner.zip
Thanks for your help!
Konrad
You need to decide whether you’re going to implement the swf in as2 or 3 (set in the publishing settings)
getURL and on-clip actionscript are used in as2 only, looks like you’re now publishing for as3 which is likely why you’re getting the error
Hi Eastcoast,
Thansk for your reply - I’m not sure how to place the script directly on the clip (when I hit F9 when in the button it says action scripts can’t be applied to it) so I changed the name of my button to myButton and added the code
myButton.onRelease=function() {
getURL("http://www.swinsidelodge-hotel.co.uk/pages/posts/june-pound99-special12.php");
}
but I get errors for this. The action is located on the first frame of the layer where I created the rectangle - is this why it’s not working?
Thanks for your help,
Konrad
Your actionscript isn’t correct - the script is in the timeline but is in the style of what would normally be placed on a clip. Either place the script directly on the clip, or name the button instance and refer to it in your timeline code e.g
myButtonName.onRelease=function() {
getURL("http://www.swinsidelodge-hotel.co.uk/pages/posts/june-pound99-special12.php");
}