rldjrsksl / flex-iframe

Automatically exported from code.google.com/p/flex-iframe
0 stars 0 forks source link

Iframe does not work in an actionscript project #55

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. create a new actionscript project.
2. Add flex-iframe.swc and initialize iframe. Add the iframe to stage by 
using addchild.
3.Runt he project.

What is the expected output? What do you see instead?
Expected: IFrame should appear on stage. Instead, the following error is 
produced:
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]

The systemManager instance returns null.

This works completely find if the project has an mxml application tag.

What version of Flex-IFrame are you using? On what operating system and
which navigator (specify the version too)?
Tried on all versions. Windows OS and Internet Explorer Version 8.0

Please provide any additional information below, and a sample Flex 3
project reproducing the issue if possible.

Original issue reported on code.google.com by bharara....@gmail.com on 3 Dec 2009 at 7:13

GoogleCodeExporter commented 8 years ago
What do you mean by ActionScript project ? Every Flex/Flash application is an
ActionScript project, so I don't see...

Original comment by Julien.N...@gmail.com on 30 Dec 2009 at 3:56

GoogleCodeExporter commented 8 years ago
Yes though every flex/flash application is an actionscript project but if you 
create 
an "actionscript" project in the Flex IDE and then create an instance of the 
flex-
iframe, it does not work. If I use the same code in a flex project, it works 
perfectly!
Please let me know if I am required to attach the file for reference.

Thanks
Shilpi Bharara

Original comment by bharara....@gmail.com on 4 Jan 2010 at 6:48

GoogleCodeExporter commented 8 years ago
Hi All

I have attached my test project. Please import this as an actionscript project 
in 
flex builder.

I receive the following error when I turn overlay detection = "true"
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:397]
    at flash.display::DisplayObjectContainer/addChild()
    at iframeTest()[E:\imeet2.0\content5
\applications\iframe\src\iframeTest.as:27]

If I remove the overlay detection, there is no error; but no iframe appears.

Original comment by bharara....@gmail.com on 8 Jan 2010 at 7:14

Attachments:

GoogleCodeExporter commented 8 years ago
Mhh, OK, I did not get it !
Well, this is normal, flex-iframe relies on the Flex framework, it can't work 
without...

Original comment by Julien.N...@gmail.com on 14 May 2010 at 4:48