Skip to main content
Participant
June 18, 2010
Question

is it possible to find the dimension of webpage size in flash as2.0 or 3.0

  • June 18, 2010
  • 2 replies
  • 486 views

hey

   I am working in a flash ad and i am going to upload it . when the ad gets loaded the flash should recognise the dimensional of the web page in which it gets loaded and it should takea snap of that particular web page.

This topic has been closed for replies.

2 replies

Inspiring
June 19, 2010

Just checked it out. Basically, what works is - you call JavaScript DOM properties via ExternalInterface and cast them to string:

if (ExternalInterface.available) {
     var str:String = ExternalInterface.call("window.innerHeight.toString");
}

Participant
June 19, 2010

thanks . let you tell me my senario i am working with the flash ad when it gets into online it should take a picture of the entire web page for its future animation."so when the flash  creative should look like the web page" now got the point

Inspiring
June 18, 2010

You can try ExternalInterface to read dimensions:

ExternalInterface.call("window.offsetWidth"); I did not check it out - just a rough idea.

What do you mean by "it should takea snap of that particular web page"?