The IFrame component in the example just contains the _javascript_ that is used to control the HTML-based IFrame that sits on top of the flex application…

 

 

<?xml version="1.0" encoding="utf-8"?>

 

<mx:Canvas xmlns:mx="http://www.macromedia.com/2003/mxml"

    resize="doLater(this, 'moveIFrame')"

    move="doLater(this, 'moveIFrame')">

 

    <mx:Script>

 

        private var __source: String;

 

        function moveIFrame(): Void {

            var pt={x:0, y:0};

            this.localToGlobal(pt);

            getURL("_javascript_:moveIFrame("+pt.x+","+pt.y+","+this.width+","+this.height+")");

            //fscommand("moveIFrame", pt.x+","+pt.y+","+this.width+","+this.height);

        }

 

        function set source(source: String): Void {

            if (source) {

                __source = source;

                getURL(source, "myFrame");

            }

        }

 

        function get source(): String {

            return __source;

        }

 

        function set visible(visible: Boolean): Void {

            super.visible=visible;

            if (visible)

                getURL("_javascript_:showIFrame()");

                //fscommand("showIFrame");

            else

                getURL("_javascript_:hideIFrame()");

                //fscommand("hideIFrame");

        }

 

    </mx:Script>

 

</mx:Canvas>

 

_____________________________________

Andrew Trice

Cynergy Systems, Inc.

http://www.cynergysystems.com

 

Blog: http://www.cynergysystems.com/blogs/page/andrewtrice

Email: [EMAIL PROTECTED]

Office: 866-CYNERGY 

 


From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Paul Andrews
Sent: Wednesday, September 27, 2006 4:08 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Problem with IFrame

 

----- Original Message -----

From: Andrew Trice

Sent: Wednesday, September 27, 2006 8:58 PM

Subject: RE: [flexcoders] Problem with IFrame

 

The IFrame does not actually get embedded within the Flex application.  It sits on top of it and appears seamless.  In reality, they are only tied together by the HTML that contains the flex application.

 

-Andy

 

As I understand it there's an MXML iframe too..

 

_____________________________________

Andrew Trice

Cynergy Systems, Inc.

http://www.cynergysystems.com

 

Blog: http://www.cynergysystems.com/blogs/page/andrewtrice

Email: andrew.trice@cynergysystems.com

Office: 866-CYNERGY 

 


From: [EMAIL PROTECTED]ups.com [mailto:[EMAIL PROTECTED]ups.com] On Behalf Of cheftimbob
Sent: Wednesday, September 27, 2006 3:46 PM
To: [EMAIL PROTECTED]ups.com
Subject: [flexcoders] Problem with IFrame

 

I'm following one of the examples for displaying HTML in a flex
application. It uses an IFrame. When I add this to my code:

<mx:Panel title="Content" width="100%" height="100%" paddingTop="1"
paddingBottom="1" paddingLeft="1" paddingRight="1">
<IFrame id="iFrame" width="100%" height="100%"
urlSource="http://www.yahoo.com" initialCount="20"/>
<mx:ControlBar>
<mx:CheckBox id="cbVisible" label="IFrame Visible" selected="true"
click="iFrame.visible=cbVisible.selected"/>
</mx:ControlBar>
</mx:Panel>

The IFrame line throws and error 'type was not found or was not a
compile time constant'.

The example came from:
http://coenraets.com/viewarticle.jsp?articleId=95

__._,_.___

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





SPONSORED LINKS
Software development tool Software development Software development services
Home design software Software development company

Your email settings: Individual Email|Traditional
Change settings via the Web (Yahoo! ID required)
Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured
Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe

__,_._,___

Reply via email to