cheerq / flexmdi

Automatically exported from code.google.com/p/flexmdi
0 stars 0 forks source link

Error loading many components by mxml #65

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Load a component or a module with many components using mxml into a window
2. Create another window
3. Switch from a window to another

What is the expected output? What do you see instead?
It was expect a correct output instead I receive:

TypeError: Error #1009

What version of the product are you using? On what operating system?
flexlib with the lates flexmdi with Windows Vista and FLEX BUILDER 3 and FLEX 3

Please provide any additional information below.
I've found the solution: It works only with modules (obviously)

private function addWindow():void
            {

                var swfLoader:SWFLoader = new SWFLoader();
                swfLoader.percentHeight=100;
                swfLoader.percentWidth=100;
                swfLoader.scaleContent=true;
                swfLoader.source="modulename.swf"
                swfLoader.percentHeight=100;
                swfLoader.percentWidth=100;
                swfLoader.scaleContent=true;

                var win:MDIWindow = new MDIWindow();
                win.width = 350;

                win.title = "Window " +
String(mdiCanvas.windowManager.windowList.length + 1);

                win.addChild(swfLoader);

            mdiCanvas.windowManager.add(win);

            }

Original issue reported on code.google.com by claudio....@gmail.com on 5 Aug 2008 at 7:11

GoogleCodeExporter commented 8 years ago
Problem is still present I've found it's not a problem of mxml but application 
width
and height. If the loaded application is little then there are no problems if 
it is
all window big there is error #1009

Original comment by claudio....@gmail.com on 5 Aug 2008 at 7:19