Adobe Dreamweaver Forums



Last 10 THreads :         Mail form not working (Last Post : Alan - Replies : 2 - Views : 3 )           »          Re: Removing unused files from the user's ability tosearch (Last Post : Authorgirl - Replies : 2 - Views : 3 )           »          loader onComplete firing, but TextField not disappearing (Last Post : Manno Bult - Replies : 2 - Views : 3 )           »          Flickering backgroundColor when removing a componentfrom displayList using a removedEffect (Last Post : camwest - Replies : 1 - Views : 7 )           »          Assigning a Variable a Null Value (Last Post : Kronin555 - Replies : 3 - Views : 4 )           »          Space between divs (Last Post : zgot66 - Replies : 11 - Views : 12 )           »          CS4 trials expired too early (Last Post : Wodehouse - Replies : 2 - Views : 4 )           »          CSS help centering across all / most browsers (Last Post : Thierry - Replies : 87 - Views : 88 )           »          First time install, need a little help. (Last Post : firstbat - Replies : 1 - Views : 5 )           »          Blend modes do not work (Last Post : pongtoe - Replies : 0 - Views : 1 )           »         


Home Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
User Info Statistics
Go Back   Adobe Dreamweaver Forums > Other Macromedia/Adobe Products > Flex
 
Tags: , , , , , ,



Reply
  #1 (permalink)  
Old 07-09-2008, 07:24 PM
darrendb
 
Posts: n/a
Diggs:
Default Loading AS2 swf's which load additional AS2 swf's intoFlex

My loaded AS2 swf can not seem to load additional AS2 swf's using loadMovie()
or loadMovieNum().

I have a .mxml file with a mx:Image tag with a source attribute bound to a
String variable. I can set this variable to a valid AS2 swf path, and the swf
loads as expected.

However, this AS2 swf contains one or more loadMovie() statements to load
additional 'child' swf's into empty movieClips, which fails silently.

(I'm forced to load several legacy/AS2 projects, I'm trying to avoid migrating
these projects to AS3, also trying to avoid embedding the 'child' swf's into a
single AS2 swf).

I've tried both loadMovie and loadMovieNum, I've change the publish settings
to both Access Local Files and Access Network Files, I've tried replacing the
bound mx:Image tag with a mx:SWFLoader tag, none of these work. I even tried
toggling the Flex compiler setting -use-network.

All other functionality seems to be working in the loaded AS2 swf.

I've found many posts/articles regarding inter-communication between a Flex
AS3 swf and loaded AS2 swf's, but this isn't my problem. I don't need
communication, just functionality.

Thanks in advance for any insight!




Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 07-09-2008, 07:24 PM
darrendb
 
Posts: n/a
Diggs:
Default Re: Loading AS2 swf's which load additional AS2 swf'sinto Flex

OK, once again, walking away from a problem for 5 minutes has proven to be
invaluable. I started to think that maybe there was a known issue with
loadMovie(). Although I was trying to avoid touching the source code of these
AS2 swfs, I decided it would be worthwhile to test replacing the loadMovie()
statements with MovieClipLoader.loadClip().

It works! Although this means all the legacy AS2 files I need to load will
have to be revised, this is much less of a task than migrating to AS3 or
embedding the child swf's into single movie. I hope at least this will save
someone else the frustration of trying to do the same thing.

Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



© Camley Interactive (camley.info) 2008 - all logos and images are copywrite their respective owners.
Proud member of the Camley Interactive Network
All times are GMT. The time now is 04:53 PM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0 ©2007, Crawlability, Inc.
Inactive Reminders By Mished.co.uk