Here is the code I'm using for IFrames in Flex2, I have no idea if posing
code like this is appropriate for this list or not.  If not, would someone
please let me know.

This is basically just a port of the Flex 1.5 sample from
http://coenraets.com/viewarticle.jsp?articleId=95 put into a Flex 2.0
ActionScript Class.  It works properly as-is in IE6 but to work in FireFox
it requires WMode=Opaque in the Player's EMBED tag.

This code is strictly experimental. I am not using it in production and no
warranty is expressed or implied.

- Kelly

-----Original Message-----
From: [email protected] [mailto:[EMAIL PROTECTED] On
Behalf Of redwylie
Sent: Thursday, July 06, 2006 9:41 AM
To: [email protected]
Subject: [flexcoders] iFrame

Does anyone have any insight as to why the iFrame demos no longer compile

This is the error

1046: Type was not found or was not a compile-time constant: iFrame

thanks






------------------------ Yahoo! Groups Sponsor --------------------~-->
Great things are happening at Yahoo! Groups.  See the new email design.
http://us.click.yahoo.com/TISQkA/hOaOAA/yQLSAA/nhFolB/TM
--------------------------------------------------------------------~-> 

--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
Yahoo! Groups Links



 





------------------------ Yahoo! Groups Sponsor --------------------~--> 
Check out the new improvements in Yahoo! Groups email.
http://us.click.yahoo.com/6pRQfA/fOaOAA/yQLSAA/nhFolB/TM
--------------------------------------------------------------------~-> 

--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/flexcoders/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 

Attachment: IFrame.as
Description: Binary data

<script>
function moveIFrame(x,y,w,h) {
    var frameRef=document.getElementById("myFrame");
    frameRef.style.left=x;
    frameRef.style.top=y;
    frameRef.width=w;
    frameRef.height=h;
}

function hideIFrame(){
    document.getElementById("myFrame").style.visibility="hidden";
}

function showIFrame(){
    document.getElementById("myFrame").style.visibility="visible";
}

function loadIFrame(url){
    top.frames["myFrame"].location.href=url;
}
</script>

<iframe id="myFrame" name="myFrame" frameborder="0"
    
style="position:absolute;background-color:transparent;border:0px;visibility:hidden;">
</iframe>

Reply via email to