thanks for your reply.
I had used your mentioned syntax also still on calling panel.addChild
(_frame) or this.addChild(_frame) the following error appears:
TypeError: Error #1009: Cannot access a property or method of a null
object reference.
at com.google.code.flexiframe::IFrame/handleAdd()[/home/nicoulaj/
workspaces/flexiframe/flexiframe/src/com/google/code/f
lexiframe/IFrame.as:380]
at flash.display::DisplayObjectContainer/addChild()
at iframeTest/loadHTML()[E:\imeet2.0\content5\applications\iframe\src
\iframeTest.as:50]
at iframeTest()[E:\imeet2.0\content5\applications\iframe\src
\iframeTest.as:30]
I have included flex-iframe.swc version 1.4.2 .Do I need to include
anything else?
I am also attaching my code:
package {
import com.google.code.flexiframe.IFrame;
import flash.display.Sprite;
import flash.text.TextField;
import mx.containers.Panel;
public class iframeTest extends Sprite
{
private var _frame:IFrame;
private var _panel:Panel;
private var _txt:TextField;
public function iframeTest():void
{
loadPanel();
_frame = new IFrame("234");
loadHTML();
}
public var panel:Sprite= new Sprite();
public function loadPanel():void{
panel.graphics.beginFill(0xCCCCCC);
panel.graphics.drawRect(10, 10, 500, 100);
panel.graphics.endFill();
}
public function loadHTML():void{
//_
frame.id="one";
_frame.percentHeight = 100;
_frame.percentWidth = 100;
_frame.source = "
http://www.google.com";
_frame.overlayDetection = true;
panel.addChild(_frame);
this.addChild(panel);
}
}
}
Thanks in advance
Shilpi Bharara
On Nov 23, 4:56 pm, Julien Nicoulaud <
julien.nicoul...@gmail.com>
wrote:
> var _frame:IFrame = new IFrame("someUniqueId");
>
> 2009/11/23 Shilpi <
bharara.shi...@gmail.com>
>
>
>
> > var _frame:IFrame = new IFrame();- Hide quoted text -
>
> - Show quoted text -