Wed 18 Mar 2009 08:22:56 PM UTC, original submission:
Description of issue:
Attached test case shows how MovieClipLoader fails to function properly after call to LoadVars.sendAndLoad when SWF being loaded contains a Flash UI Component such as Label, TextArea, DataGrid, etc.
Release(s) affected:
Verified issue using Gnash 0.8.3 (win32), 0.8.4 (linux), and 0.8.5 (linux).
Test case setup:
Content.fla's frame 1 actions add 4 new functions to MovieClip prototype (just to make life easier): getMCL, setMCL, loadClip, and unloadClip. These functions are then used by on(press) event handlers for each of the 6 numbered buttons to load the corresponding frame into the "target" clip. Button #1 contains sendAndLoad call with onLoad callback which demonstrates issue.
Target.fla has 6 frames, each with a colored background and static text. Frame 3 contains a single TextInput Component.
To reproduce issue:
Start "content.swf" and press #1 button. This will initiate sendAndLoad with onLoad function that will then load "target.swf" and go to frame 1 (using loadClip method). At this point pushing buttons 2 through 6 will not properly reload "target.swf" and go to the associated frame. Looking at the trace outputs, you will see that width and height of target_mc are now always 0.
If, however, you edit "target.fla" and remove the Flash UI component on frame 3 from both the stage and the library, the loadClip functionality will work just fine. In addition, the pages/frames will load properly if you push any one of buttons 2 through 6 BEFORE you push button #1.
|