I have a .swf file containing a banner. How do I link the banner with www.something.com I guess it's action script related - thank you - will rep!
convert your banner to MovieClip. select the drawing and press [F8] and choose [Movie Clip] as the option. then select the converted MovieClip and press F9 to open the action panel. and then write this code.. on(Release) { GetURL("http://www.example.com"); } // GetURL("http://www.example.com","_blank"); // _blank ... this will open the link in new window.. let me know.. thanks.
Didn't seem to work, I have the HOVER mouse thingy, but when I click it does nothing. This is I have several layers in the movie, I have made a transparent one on top and made it movie clip.. No luck
oh sorry ! try to use this code. (no CAPS in gett , Release) on(release) { getURL("http://www.example.com"); } you can download the sample .FLA file here.. http://www.myfreegamespot.com/tharshan/geturl_sample.fla let me know if anything. thanks.
Try this: Convert your Vectors/whatever to a MC. Open the actions for MC, and type this: on (release) { getURL "http://www.google.com" "_blank" } If that doesnt work, try this: Copy your banner/button/whatever, Paste in place on top of the original art, break apart, change the filling to 0% Alpha of the color White. Then convert it to a Button, and type this in the Button actions: on (release) { getURL "http://www.google.com" "_blank" }
THanks guys, the problem was CS3, I hate it Flash MX worked just fine, the syntax was correct and it helped out, I wonder still if there are any HTML variants.
Dude.. You should've said that from the beginning. I hope that you went into CS3 setting and changed the Actionscript to 2.0 ... *sigh