Hi Mark. This is not really a SWFObject specific question, so you are most likely better served on a generalist Flash site like kirupa.com / actionscript.orgetc.
The basic theory however, is that you will need to capture whatever is the output of the ad call. Usually the javascript call will generate a Flash <object>/<embed> code block or an iframe code block which in turn has a Flash <object>/<embed> code block inside of it. You will need to inspect this code block and grab the swf source location, as well as the clickTAG value (for where the ad goes when someone clicks on it). You will then need to load the ad swf into your main Flash site in whatever location, and pass the clicktag flashvar to it. This is not really 101 stuff, so you might need to call in some help (do you have any friends who are comfortable with javascript / a server-side language?). The easy solution is to have a defined ad area on your (HTML) page, and just let the javascript do it's thing... (but as you say, it is not as nice as having it intgrated into your site) BTW - note that you will have issues if your site is Flash player 8, and the ad is Flash player 9 (impossible for a flash 8 file to load a flash 9 file) or vise versa (AS1/2 code and AS3 code run in completely different virtual machines. and getting then to talk to each other is a pain in the ass) Good luck, Aran On Fri, Jan 29, 2010 at 7:30 AM, Traveller <[email protected]> wrote: > Hello all, > > I build flash web sites and have only a limited understanding of > javascript. I am trying to monetize a flash page that I have built for > myself and is getting an increased traffic. The page has to be flash > as it is based on flash dynamic graphic capabilities. Besides I prefer > to integrate and customize the ads into my page rather than use > standard ad zones offered by the ad networks. I have a permission > from a small ad network to convert their ads to flash but I was not > able to do it myself. They use a standard java script src code for > creating their ads. > It looks approximately like this: > > > <SCRIPT LANGUAGE="JavaScript1.1" SRC="http://bdv.Advertiser.com/ > Advertiser.dbm?pid=22222&bid=111111" type="text/javascript"></SCRIPT> > > They require though that the capturing will be done in a way that > allows them to monitor my page. I can publish Flash player 9 so I can > work with ExternalInterface.call > > Any hints on how to translate the code to Flash and how to change the > html code will be helpful. > Many Thanks, > > Mark. > > -- > You received this message because you are subscribed to the Google Groups > "SWFObject" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]<swfobject%[email protected]> > . > For more options, visit this group at > http://groups.google.com/group/swfobject?hl=en. > > -- You received this message because you are subscribed to the Google Groups "SWFObject" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/swfobject?hl=en.
