Questions tagged [swfloader]

In Adobe Flex 4.5, SWFLoader is used to load application into another application.

SWFLoader is responsible for loading Flex applications or sub-applications into another applications.

The control can be used to load SWF files, as well as images such as GIF, PNG and JPG.

136 questions
2
votes
2 answers

Flex loads SWF as Sprite. How do I load it as a Movieclip instead?

I have a problem converting SWFLoader.content into a MovieClip instance while following (TheFlashCanon's excellent tutorial) on making a SWF communicate with Flex. The SWF loaded in question is compiled using Flash CS3 (using actionscript…
futureelite7
  • 11,462
  • 10
  • 53
  • 87
2
votes
2 answers

Can't seem to listen for UncaughtErrorEvent for SubApplication loaded by SWFLoader

I have a main Flex Application ('A.swf') loading a SubApplication (defined in' B.swf') via a SWFLoader and I need to listen for UncaughtErrorEvent from the SubApplication. I'm not able to get my event listeners to be called when I throw an error…
2
votes
1 answer

FLex : unload swf file in SWFLoader

In Flex 3 I have a SWFLoader: and after some time I invoke player.unloadAndStop(). And I always get this error: ReferenceError: Error #1056: Cannot create property __tweenLite_mc on…
2xMax
  • 1,639
  • 6
  • 21
  • 41
2
votes
4 answers

Problem Loading AS2 swf into AS3 swf

I've been trying very hard to get an AS2 swf to load properly inside an AS3 swf - but to no avail ... The AS2 file (which is a rather big app referencing many external xml files etc.) works perfectly when launched in Flash Player. When trying to…
dani
  • 4,880
  • 8
  • 55
  • 95
2
votes
1 answer

AS3: How do I add event listeners to objects in SWFs that I'm loading dynamically?

I have a parent SWF (Parent) that handles user navigation between multiple children SWFs (Child_1, Child_2, Child_3). How do I add event listeners to the navigation buttons on the children SWFs so that the user can move laterally between Child_1,…
Thomas
  • 5,736
  • 8
  • 44
  • 67
2
votes
5 answers

How to raise an event from a SWF in a SWFLoader to a parent Flex application?

How can I raise an event from a SWF file loaded into a Flex application (using SWFLoader)? I want to be able to detect a) when a button is pressed b) when the animation ends
Simon
  • 525
  • 1
  • 14
  • 21
1
vote
2 answers

Flex: how to load a .swf and use its library?

I have a symbol in a .swf's library, with a linkage name of "Pana". The Pana symbol is just a 100 frame animation that I would like to have timeline control over in Flex. So how can I load the .swf and then add the Pana symbol to the display list…
JD Isaacks
  • 56,088
  • 93
  • 276
  • 422
1
vote
2 answers

Get the version of a loaded SWF into a MovieClip

Is it possible to read the SWF version of a loaded SWF into a main one? var mcl:Loader = new Loader(); mcl.contentLoaderInfo.addEventListener (Event.COMPLETE, prepareDisplay(mcl)); mcl.load (new URLRequest ('movie.swf')); function prepareDisplay…
vitto
  • 19,094
  • 31
  • 91
  • 130
1
vote
1 answer

Accessing an array of colorPicker values in a loaded swf in flex

I have a flex application that dynamically loads swfs and I want to to use a set of color pickers in an external component within the application to determine a color array in the loaded swf. I figured that I can use a new array of the…
1
vote
4 answers

Waiting while SWFLoader loads a swf file

Currently I'm working on an application (Flex) which heavily uses external SWFs. I'd like to create a static method which takes a filename as an argument and returns SWF wrapped in some other class. public static function…
alonzo
  • 95
  • 9
1
vote
1 answer

Memory consumption of nested flex applications with RSLs using SWFLoader?

these days I read a lot with regards to RSLs. One disadvantage is that RSLs must be loaded into memory but can save significant loading time. Now what happens in the following scenario: I have a superFramework.swf and a subapp.swf. subapp.swf is…
Yaba
  • 5,979
  • 8
  • 38
  • 44
1
vote
3 answers

can't add Application to displaylist

I'm trying to use a SWFLoader to load an Application and add the loaded Application to my Displaylist. public function onComplete(e:Event):void { someContainer.addChild((e.target.content)); } //somewhere in main var loader: SWFLoader = new…
Sims
  • 23
  • 2
1
vote
1 answer

Error in Flex webapp with TabNavigator loaded using SWFLoader - WebKit browsers

I use a flex app (A) to load another flex app (B) using SWFLoader (both built using Flex Builder 3 sometime ago). Everything works fine as expected across all (IE, FF, Chrome, Safari) desktop browsers. However, if I use a TabNavigator within the…
klem
  • 11
  • 1
1
vote
2 answers

Flex: When I load a local external SWF, the application load-unload infinitely

I have a Flex application that just load an external SWF, but the application load and unload infinitely my swf. The embeded as3 code is:
Manel
  • 147
  • 9
1
vote
1 answer

Can anyone tell me how to create an stand alone SWF launcher that loads the SWF

As Flash is going to be dead in few days. I want to know how I can create an .EXE file that loads the SWF file from the server and plays in that application.
1
2
3
9 10