The Iframe in Flash does not move with the inner scrollers to make it
move along with the application we need to call External Interface
functions (JavaScript Function ) .
// Here is the sample javascript code that i have used to move the
Iframe from within the Flex application
function moveIFrame(x,y,w,h) {
var frameRef=document.getElementById(vFrame");
frameRef.style.left=x;
frameRef.style.top=y;
var iFrameRef=document.getElementById("vIFrame");
iFrameRef.width=w;
iFrameRef.height=h;
}
// NOW Calling this function from within the application
private function moveIFrame(): void
{
var localPt:Point = new Point(0, 0);
var globalPt:Point = this.localToGlobal(localPt);
ExternalInterface.call("moveIFrame", globalPt.x,
globalPt.y, this.width, this.height);
}
Cheers
Varun Rathore
http://www.vrathore.blogspot.com
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Flex
India Community" 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/flex_india?hl=en
-~----------~----~----~----~------~----~------~--~---