Yes. The .src will get you want you want. The document.location.href will only work accurately in some browsers.
Here is a break down. http://www.quirksmode.org/js/iframe.html -- As for the square brackets vs parentheses it has to do with how you access the object. If you're using NAME instead of ID on an element then you can use the array reference (square backets) like so: document.frames[name]. The preferred method is to use the Document Object Model and access the object directly like so: document.getElementById(id). -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Marlon Harrison Sent: Thursday, December 07, 2006 12:23 PM To: Flashcoders mailing list Subject: Re: [Flashcoders] Need to reload page ads on Flash event clicks. So the correct code to use is .src, and not .location? Also I've seen some code where the parentheses are brackets instead. Is there a difference? On 12/7/06, Seth Vanbooven <[EMAIL PROTECTED]> wrote: > > As you've stated, set up your ads as IFRAME's and give them unique ID's. > > Then, create a JavaScript like below to change the SRC of the IFRAME's > and call that function from your FLA. > > function reloadAds() { > document.getElementById('adframe1').src = uri1; > document.getElementById('adframe2').src = uri2; > document.getElementById('adframe3').src = uri3; > } > > > > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of Marlon > Harrison > Sent: Thursday, December 07, 2006 10:11 AM > To: Flashcoders mailing list > Subject: Re: [Flashcoders] Need to reload page ads on Flash event > clicks. > > I'm sorry I guess I'm not explaining things clearly. I don't need the > banners to communitcate with each other. I need to setup some solution, > I'm > sure with the help of javascript, that will trigger the defined ad units > on > teh page to refresh, independent of the entire page reloading. For > example, > assume I have a page called page.html, which has a FlashApp embedded. If > I'm > moving some section A to section B in my flash app, I'd like to force > the > ads on page.html to all refresh without reloading the whole page again. > > Is that clearer? > > On 12/7/06, Mick G <[EMAIL PROTECTED]> wrote: > > > > I'm not sure how 247realmedia works but I know eyeblaster have some > > custom code that lets you communicate from one banner to another via > > their extension. You might want to check with them. > > > > Otherwise look into localconnection... > > http://www.adobe.com/cfusion/knowledgebase/index.cfm?id=tn_16243 > > > > > http://www.adobe.com/support/flash/action_scripts/local_connection_objec > ts/ > > > > > > > > > > On 12/7/06, Marlon Harrison <[EMAIL PROTECTED]> wrote: > > > Hi again > > > > > > Sorry for omitting that info. The ads are served through > 247realmedia's > > > OAS. The ads are typically swfs or jpegs, but they're not loaded > into > > the > > > flash area. The ad units exist in the page; a banner, leaderboard, > and > > > island. I have complete control over the coding of the page. I just > > need to > > > make the ads to refresh at certain events in the flash area. I've > seen > > some > > > of the output from OAS, and typically its a document.write statement > > that > > > puts the ad in the page. > > > > > > Does that help? > > > > > > Thanks again > > > > > > On 12/7/06, Alias(tm) <[EMAIL PROTECTED]> wrote: > > > > > > > > If you could provide more info about how the ads are served, that > > would > > > > help > > > > people to answer your question. Are you serving these ads from > > > > doubleclick/tangozebra/atlas/eyeblaster/other? Are they > > > > swfs/gifs/jpegs/all > > > > of the above? Do you have full control of the page? > > > > > > > > HTH, > > > > Alias > > > > > > > > On 07/12/06, Marlon Harrison <[EMAIL PROTECTED]> wrote: > > > > > > > > > > I have a page with a fairly detailed Flash app embedded. There > are > > also > > > > 3 > > > > > ad > > > > > units on this page. I'd like to setup the swf to force the > three ad > > > > units > > > > > to refresh when a user navigates through to a new section of the > > flash > > > > > app. > > > > > I assumed I'd need to setup iframes around the adds, then call > some > > js > > > > > function from Flash which performs a document.location action on > the > > > > > iframes, and it seems to be working in Firefox, but not IE. Has > > anyone > > > > > needed to do something similar and maybe offer some insight? > > > > > > > > > > > > > > > Thanks > > > > > _______________________________________________ > > > > > [email protected] > > > > > To change your subscription options or search the archive: > > > > > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders > > > > > > > > > > Brought to you by Fig Leaf Software > > > > > Premier Authorized Adobe Consulting and Training > > > > > http://www.figleaf.com > > > > > http://training.figleaf.com > > > > > > > > > _______________________________________________ > > > > [email protected] > > > > To change your subscription options or search the archive: > > > > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders > > > > > > > > Brought to you by Fig Leaf Software > > > > Premier Authorized Adobe Consulting and Training > > > > http://www.figleaf.com > > > > http://training.figleaf.com > > > > > > > _______________________________________________ > > > [email protected] > > > To change your subscription options or search the archive: > > > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders > > > > > > Brought to you by Fig Leaf Software > > > Premier Authorized Adobe Consulting and Training > > > http://www.figleaf.com > > > http://training.figleaf.com > > > > > _______________________________________________ > > [email protected] > > To change your subscription options or search the archive: > > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders > > > > Brought to you by Fig Leaf Software > > Premier Authorized Adobe Consulting and Training > > http://www.figleaf.com > > http://training.figleaf.com > > > _______________________________________________ > [email protected] > To change your subscription options or search the archive: > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders > > Brought to you by Fig Leaf Software > Premier Authorized Adobe Consulting and Training > http://www.figleaf.com > http://training.figleaf.com > > > _______________________________________________ > [email protected] > To change your subscription options or search the archive: > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders > > Brought to you by Fig Leaf Software > Premier Authorized Adobe Consulting and Training > http://www.figleaf.com > http://training.figleaf.com > _______________________________________________ [email protected] To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com _______________________________________________ [email protected] To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com

