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
6
votes
1 answer

How to load a swf and interact with it?

I have tried SWFLoader, but the problem is the loaded content is MovieClip and I don't know how to interact with it, and the MovieClip#numChildren is zero. And by the way, I can't pass the flashvars to the swf.
Sefier Tang
  • 770
  • 3
  • 8
  • 25
5
votes
3 answers

How to generate an SWF file from an actionscript file?

Hi I have an actionscript file which is displaying a button. I want to remove the button from my display. So i need to make changes to the actionscript code and generate a new SWF file after doin the changes. Can anyone kindly help me regarding how…
codeLover
  • 3,720
  • 10
  • 65
  • 121
5
votes
4 answers

Passing flashvars-style parameters to a loaded SWF

I have a Flex 3 app (player v9) which loads a Flash SWF (AS3, also player v9) and needs to dynamically pass it a collection of parameters which are known at run-time. These are parameters that are normally passed via the flashvars element in an HTML…
David Grant
  • 3,447
  • 4
  • 29
  • 33
5
votes
5 answers

How to access parent movieclip's variable from loaded swf

I have a swf which load an external swf. The loader swf has a variable which i want to access from the loaded swf. I use MovieClip(parent.parent).myVar but it return this error TypeError: Error #1009: Cannot access a property or method of a null…
chchrist
  • 18,854
  • 11
  • 48
  • 82
4
votes
3 answers

Flex: Impossible to resize the external loaded SWF's content

I have an application where I try to load an external SWF. So, we have: My application: The Stage's dimensions are 768x1280. ScaleMode = EXACT_FIT. External SWF: It's another application where its stage is: 800x600. ScaleMode = EXACT_FIT. The…
Manel
  • 147
  • 9
3
votes
2 answers

Alert gives PopUpManager error when used with SWFLoader

I am using SWFLoader to load a swf file. The code is below:
Zeeshan Rang
  • 19,375
  • 28
  • 72
  • 100
3
votes
3 answers

Simulate ajax loader in winform app

I have a winform app which render a few charts, based on the user selection. I want to simulate an ajax style loader such that when the user makes a selection, there will be an overlay on the form with an animation in the center. What are some of…
Saif Khan
  • 18,402
  • 29
  • 102
  • 147
3
votes
3 answers

I have two externally loaded SWF files and I would like for each to recognize that the other has loaded or !loaded?

After loading 2 SWF files via two separate buttons, I am attempting to get one to recognize that the other is being viewed and unload. What would be the best way given the code here? function matrixLoad(event:MouseEvent): void { if (fl_ToLoad3) { …
P.T. Fenn
  • 55
  • 8
3
votes
1 answer

Flex AIR SwfLoader CPU Usage > 50% problem

I have an AIR application, I use SwfLoader to load another swf file to display in this app. The problem is the CPU Usage always takes over 50%, but it only takes 15% when the swf file runs in standalone mode. Does anyone meet this issue? Please…
binhdocco
  • 83
  • 5
3
votes
1 answer

Starling - load SWF image(vector) into a Image

I'm trying to convert an old project of mine to use Starling for some extra performance. I've come to a problem when I'm loading my SWFs and trying to display them. Here is the code I used before: (no Starling) private function…
Tompina
  • 726
  • 1
  • 9
  • 25
3
votes
0 answers

How to cache loaded swf avatars in Flex 4

I'm using custom renderer with s:SWFLoader inside to display clients swf avatars in s:List. useVirtualLayout is "on". When new client arrives (or leaves chat) s:List send new data to the renderers. So SWFLoader in renderer have to load new data. And…
asfdfdfd
  • 354
  • 4
  • 9
3
votes
3 answers

resize loaded SWF to fit in canvas

a .fla is 500 x 300. Inside, content moves OUT of the 500 x 300 stage so that it appears like it hides or moves off of the screen. .fla complied... loaded into Flex via SWFLoader:
Tomasz Iniewicz
  • 4,379
  • 6
  • 42
  • 47
3
votes
7 answers

How do I unload a externally loaded SWF file from a SWFLoader component in Adobe Flex?

I have an application that loads external SWF files and plays them inside a Adobe Flex / Air application via the SWFLoader Flex component. I have been trying to find a way to unload them from a button click event. I have Google'd far and wide and no…
Shawn
  • 19,465
  • 20
  • 98
  • 152
2
votes
3 answers

How can I get the width/height of a loaded swf's stage in AS2?

I'm using MovieClipLoader to load an external as2 swf file into my as2 flash project, and I'm having trouble getting the original stage size of the loaded swf. When I run the following code: var popup:MovieClip = _root.createEmptyMovieClip("popup",…
loopj
  • 1,599
  • 1
  • 15
  • 12
2
votes
2 answers

Load SWF and override existing library symbols

I have Main.fla and SkinA.fla. Both have MovieClip library item: MC_BrandLogo. I'm loading the SkinA.swf into Main.swf in the current application domain trying to replace the class inside Main.swf. If there is no library item in the Main.fla, I can…
plam4u
  • 317
  • 1
  • 11
1
2 3
9 10