thanks Varun, i am using flex2 and iframe for flex2. I added a eventListener for RENDER and now its working fine. When I try to create containers and iframes in it on the fly, onyl some containers' HTML is rendered while others remain blank.. can you let me know whats the issue?
also pls do let me know if there is any full fledged Iframe compt available for Flex2. thanks in advance. On Apr 14, 6:02 pm, vrathore <[email protected]> wrote: > 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 Rathorehttp://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 -~----------~----~----~----~------~----~------~--~---

