A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: Make page ads refresh on Flash click events

  1. #1
    Buck Fush
    Join Date
    Mar 2002
    Posts
    38

    Make page ads refresh on Flash click events

    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? Or a better less hacky solution?
    "Litter is my most treacherous foe. I would like to eat its children."
    -Drederick Tatum

  2. #2
    No I can't do it by tommorow.. 1stbite's Avatar
    Join Date
    Feb 2003
    Location
    UK
    Posts
    1,300
    no need to use javascript..

    just add a name attribute to your iFrame and target that with your actionscript buttons.

    html
    Code:
    <iFrame src="advertCell_1.html" width="468px" height="60px" name="advertCell_1" frameborder="0"></iFrame>
    actionscript
    Code:
    on(release) {
    		getURL("advertCell_1.html", "advertCell_1", "POST");
    }
    been a while since I used anything like this so unsure of any security issues it might kick up...
    and in a blink of an eye...
    Media and Multimedia Courses in Nottingham - First Diploma | IMedia | HND | Foundation Degrees | BA(Hons) Top Ups.

    Give a Twit a chance!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center