![]() |
![]() |
||||||
|
|||||||
| Tags: |
![]() |
|
|||
|
I am trying to make my whole flash document be a link so whenever anyone clicks
on any part of it, it will go to a website. I upload my ads through a program called OpenX to my company's website, and cannot put the link here it will not work. It has to be integrated into the flash document. HELP PLEASE! Thank you! |
| Sponsored Links |
|
|||
|
What I do is import a transparent .gif into the .fla file. I put the .gif on
the topmost layer and make sure it is the same pixel dimensions of the ad, covering it completely. Then, convert the transparent .gif to a button symbol and assing the following code to the button: on (release) { getURL("http://www.yoururl.com", "_blank"); } |
|
|||
|
What I do is import a transparent .gif into the .fla file. I put the .gif on
the topmost layer and make sure it is the same pixel dimensions of the ad, covering it completely. Then, convert the transparent .gif to a button symbol and assign the following code to the button: on (release) { getURL("http://www.yoururl.com", "_blank"); } |
|
|||
|
You might be getting that error because the URL ends in .gif rather than .html.
When I copied the link in your code to my browser nothing came up. Try putting a link in the code that ends with .com or .html . Also, you might want to contact Support at Open X and see if they have any recommendations. |
|
|||
|
that error you got the second time was because you had object oriented code on
a frame, instead of your button instance. If you prefer to place code on frames, rather than instances on the stage, you should get used to writing dot syntax actionscript. its much better and cleaner when working on bigger projects. for example, you can build a whole website, and all the code for the site is on the first frame of the movie. ex of both types of actionscript. --OOP (Object Oriented Programing) on(release){ getURL("www.adobe.com"); } --Dot Syntax my_btn.onRelease = function(){ getURL("www.adobe.com"); } notice with dot syntax you specify the name of the object you are targeting. This gives you the ability to target any object in your entire movie, no matter where it is located. |
|
|||
|
marahchristine,
You will want to check with your ad server/tech support to make sure Actionscript 3 will work if you decide to go that route. Most ads are still being done using Actionscript 2 in order to ensure they reach the widest possible audience (site owners selling the ads are cautious about this). |
|
|||
|
The problem with AS3 not working is client-side not server-side, to the best of
my knowledge. That being said, things like ads should be exported in the earliest adobe player possible. Yay for backwards compatibility! |
|
|||
|
Hi there,
I agree with calvintennant. I would probably use actionscript 2 for ad development so that more people are able to see the ad. I had some problems with some clients of mine that started to complain that some people couldn't see the ad because it was exported to a to high player version. Greetings, Guido [hr]http://www.grafia.fr/ | http://www.missechantillons.fr/gratu...s/concours.php | http://www.missechantillons.fr/ | http://www.missechantillons.fr/gratu...dins/radin.php |
![]() |
| Thread Tools | |
| Display Modes | |
|
|
- Contact Us
-|-
Adobe Dreamweaver Forums -|-
Archive -|-
Top -|-Rules/Disclaimer-|-Help/Support-|-Advertise