[Flashcoders] Need to reload page ads on Flash event clicks.

2006-12-07 Thread Marlon Harrison

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
___
Flashcoders@chattyfig.figleaf.com
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


Re: [Flashcoders] Need to reload page ads on Flash event clicks.

2006-12-07 Thread Marlon Harrison

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™ [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
 ___
 Flashcoders@chattyfig.figleaf.com
 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

___
Flashcoders@chattyfig.figleaf.com
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


___
Flashcoders@chattyfig.figleaf.com
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


Re: [Flashcoders] Need to reload page ads on Flash event clicks.

2006-12-07 Thread Mick G

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_objects/




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™ [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
  ___
  Flashcoders@chattyfig.figleaf.com
  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
 
 ___
 Flashcoders@chattyfig.figleaf.com
 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

___
Flashcoders@chattyfig.figleaf.com
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


___
Flashcoders@chattyfig.figleaf.com
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


Re: [Flashcoders] Need to reload page ads on Flash event clicks.

2006-12-07 Thread Marlon Harrison

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_objects/




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™ [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
   ___
   Flashcoders@chattyfig.figleaf.com
   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
  
  ___
  Flashcoders@chattyfig.figleaf.com
  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
 
 ___
 Flashcoders@chattyfig.figleaf.com
 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

___
Flashcoders@chattyfig.figleaf.com
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


___
Flashcoders@chattyfig.figleaf.com
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


RE: [Flashcoders] Need to reload page ads on Flash event clicks.

2006-12-07 Thread Seth Vanbooven
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
___
Flashcoders@chattyfig.figleaf.com
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
   
   ___
   Flashcoders@chattyfig.figleaf.com
   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
  
  ___
  Flashcoders@chattyfig.figleaf.com
  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
 
 ___
 Flashcoders@chattyfig.figleaf.com
 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

___
Flashcoders@chattyfig.figleaf.com
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

Re: [Flashcoders] Need to reload page ads on Flash event clicks.

2006-12-07 Thread Mick G

Sorry - I was assuming all banners were SWFs - in which case you could
use localconnection to run a loadMovie in the banners you want to
change (loading another SWF to the root level of each swf).


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
___
Flashcoders@chattyfig.figleaf.com
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
   
   ___
   Flashcoders@chattyfig.figleaf.com
   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
  
  ___
  Flashcoders@chattyfig.figleaf.com
  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
 
 ___
 Flashcoders@chattyfig.figleaf.com
 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

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options

Re: [Flashcoders] Need to reload page ads on Flash event clicks.

2006-12-07 Thread Marlon Harrison

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
___
Flashcoders@chattyfig.figleaf.com
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
   
   ___
   Flashcoders@chattyfig.figleaf.com
   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
  
  ___
  Flashcoders@chattyfig.figleaf.com
  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
 
 ___
 Flashcoders@chattyfig.figleaf.com
 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

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com

Re: [Flashcoders] Need to reload page ads on Flash event clicks.

2006-12-07 Thread Marlon Harrison

Seth

Thanks alot for that code, I hope I'm almost there.  I have one more
problem. The data coming for the ads is actually javascript; a
document.write() command to be exact.  When I use your code, the javascript
code appears in the ad areas.  How would I change the code to have it render
that command?

Thanks a ton for the help so far.

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
___
Flashcoders@chattyfig.figleaf.com
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
   
   ___
   Flashcoders@chattyfig.figleaf.com
   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
  
  ___
  Flashcoders@chattyfig.figleaf.com
  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
 
 ___
 Flashcoders@chattyfig.figleaf.com
 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

RE: [Flashcoders] Need to reload page ads on Flash event clicks.

2006-12-07 Thread Seth Vanbooven

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
 ___
 Flashcoders@chattyfig.figleaf.com
 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

___
Flashcoders@chattyfig.figleaf.com
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

Re: [Flashcoders] Need to reload page ads on Flash event clicks.

2006-12-07 Thread Marlon Harrison

Yes I'm pulling an html file for the iframe, but I'm not sure that would
work for this purpose. The call to the ad server gets js back; a
document.write() command. I tried putting at call into a js command, but
that doesn't seem to work.  Here's an example of the code:

Your reload function modified to append the OAS as a var to each iframe:
function reloadAds(sitepage,rns,pcookie,adcontent1,adcontent2) {
  document.getElementById('topad1').src = ad_iframe_top.jhtml?ad=
http://oas.server.com/RealMedia/ads/adstream_jx.ads/+sitepage+/1+rns+@Right,Position1,x96,BottomRight!Top?+
pcookie + + adcontent1 +  + adcontent2;
  document.getElementById('if1').src = ad_iframe_left.jhtml?ad=
http://oas.server.com/RealMedia/ads/adstream_jx.ads/+sitepage+/1+rns+@Right,Top,Bottom,Right1,Left,Position1,x96,BottomRight!Left2?+
pcookie + + adcontent1 +  + adcontent2;
  document.getElementById('tower1').src = ad_iframe_tower.jhtml?ad=
http://oas.server.com/RealMedia/ads/adstream_jx.ads/+sitepage+/1+rns+@Right,Top,Bottom,Position1,x96,BottomRight!Right?+
pcookie + + adcontent1 +  + adcontent2;

}

Then in each iframe.html file, this code takes the variable 'ad' and writes
it into a javascript call so that presumably, the ad appears - but the ad
isn't.

if (ad!= null) {
document.write('SCRIPT LANGUAGE=JavaScript type=text/javascript SRC='
+ ad + '\/SCRIPT');
}

I know it's extremely hacky. If anyone has a smarter approach, I'd really
appreciate it. I know that the ad variable is getting read by the page. I
think the problem is that for some reason the returned javascript is not
being rendered.




On 12/7/06, Seth Vanbooven [EMAIL PROTECTED] wrote:



Without seeing you code, here are my thoughts.

I assume you're pulling in an actually HTML page with the IFRAME
correct?

If that is the case you can just change up that JS function like so:
document.getElementById (id).src = document.getElementById(id).src;

That way it will just reload the current SRC.






-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Marlon
Harrison
Sent: Thursday, December 07, 2006 1:31 PM
To: Flashcoders mailing list
Subject: Re: [Flashcoders] Need to reload page ads on Flash event
clicks.

Seth

Thanks alot for that code, I hope I'm almost there.  I have one more
problem. The data coming for the ads is actually javascript; a
document.write() command to be exact.  When I use your code, the
javascript
code appears in the ad areas.  How would I change the code to have it
render
that command?

Thanks a ton for the help so far.

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