Flash :: Why Isn't The Swfloader Working
Jul 6, 2011I am trying to use the mxml swfloader component to load the external flash from the following url, but it doesn't load anything. I'm using FlashBuilder 4.5. [URL]
View 3 RepliesI am trying to use the mxml swfloader component to load the external flash from the following url, but it doesn't load anything. I'm using FlashBuilder 4.5. [URL]
View 3 RepliesI have a complicated problem with a couple of SWFLoaders.I have an application that loads a swf with a SWFLoader. The loaded swf loads another swf (just a compiled fla). I am adding all my resize and position logic in my loaded swf and it works good on event resize, but when I'm trying to run the same code in my swfs applicationComplete it fails. The same code on startup works great if I run my swf as a standanlone, but for some reason the scale is different when I load it into my application.[code]swfLoader is my loaded swf's swfloader that loads my compiled fla. That is what I need to resize and position to the center. The next numbers are width and height. FlexLoader is the swfLoaders loader (or content if you will). The numbers are width, height, scaleX and scaleY.As you can see the size is the same (this is also the same for the loaded swfs application), but the scale is different. Both scales are calculated from with 1280 and height 720 wich is my compiled fla's size.The only reason why I'm messing around with scale at all is that I can't find the accurate width of my compiled fla to center it (application.width - loadedSwf.width / 2)The part I'm not getting is why the scales are different? What part am I missing?
View 1 RepliesI am loading a swf into another swf using swfloader, I want to catch all the exceptions thrown by the inner swf, is it doable?
View 2 RepliesI am using SWFLoader to load a little animation into my flex environment but for some reason the animation is sped up a lot. This is the case with all of the animations I tried. Is there a way to slow it down or fix this?
View 1 Replies[URL] With regards to a parent SWF loading a child SWF via the Loader class, is it possible to prevent the loaded child SWF from:
Making any network calls, or Making calls to specific domains Basically, I'm looking for a programmatic version of allowNetworking:
[URL]
Additionally,Are there any Flash Player version and Actionscript version discrepancies?Are there any discrepancies if using Flex's SWFLoader is used instead?
I've created a Flash Animation (CS5, ActionScript 3) and converted it to SWF. The flash animation needs the values of 3 variables (defined in the swf timeline) BEFORE it starts running in my Flex application. I've embedded the swf file using swfloader in Flex, but I need to pass the parameters from Flex into Flash before the animation starts. How do I do this?
The way I have my flex code setup below, the variables are not being updated. I get an exception every time it gets to the changeParams function because it can't find "Type", "Num1", etc.
Part of My flash code:
//These 3 variables need to be populated via Flex BEFORE the animation starts...
var Num2:int;
var Num1:int;
[Code]....
i'm using swfloader to load swf file in the middle of the screen using the following command:
<mx:SWFLoader id="game_swf" source="crazy_counting.swf" x="198" y="0" width="721" maxWidth="721" height="531" maxHeight="531" />
now stage of the flash file takes the exact size that i stated by the flash file itself is overlapping the stage with some graphics
I'm loadning a swf coverflow (as2) to a swf (as3) with SWFLoader.
My problem is that i wish to make gotoAndPlay calls from the loaded swf to the as3, or even better call functions. Is there any way to do this - i've tried alot..
I have a swf movie player located in [URL]. Normally this a.swf is used by a html page, the swf file is embedded in a [URL]. The website is not built by me but I know there is a restriction that only the html in [URL] can play the video . Now what I want to do is embed the a.swf into a c# project using swfloader, I will set the source property of swfloader to [URL]. My question is will the c# project be able to play to video file the same as in the html page?
View 1 RepliesFlex is good at produce code, whereas Flash is good at animation, how the integration is done? If I want to insert the animation produced by flash, what's the recommend way to do the integration? Do I need to use SWFLoader?
View 1 RepliesI am loading an embeded swf file with SWFLoader using actionscript 3 in Flash Builder 4.5. When I load this swf and set "wmode" to "transparent" in HTML, it works as expected and you can see the background color through the swf object in HTML.
However, when I load the swf in Air with the following code:
[Embed(source="swf/data.swf")] var data:Class;
swfLoader = new SWFLoader();
swfLoader.percentWidth = 100;
[Code]....
It always has a white background.
What can I do to make the background transparent?
Note: This is for a mobile android device.
I am doing a elearning project in flex and it consist in a secuence of swf files and a player that load it based in a xml file, the problem is all swf files contents narrations and I need to control the volume of narrations from the player interface, anybody know how I can control the volume of a swf file from flex??
View 1 Repliescan i save a screenshot from a loaded swf using the SWFLoader class ?
View 1 RepliesHow can I hide a component and what AS3 code to use to hide a Flex Component from an external swf file?
View 1 RepliesI have a MainPage, on initialize I am calling a method which would create a SWFLoader object (aka LoginPage) and loads it in the MainPage. When we run the MainPage in 800x500 window, the LoginPage loads in that window size, however when we maximize the window the content of the LoginPage gets resized to 1027X660, but the border remains 800x500, and the remainig area of the window stays blank.
View 1 Replieswhat is difference between swfLoader(load application) and ModuleLoader(load module)?
View 1 RepliesIn Flex 3 I have a SWFLoader[url]...
and after some time I invoke player.unloadAndStop(). And I always get this error:
ReferenceError: Error #1056: Cannot create property __tweenLite_mc on _swftest_mx_managers_SystemManager.
I have one Swfloader. This swfloader loads file A.swf.On creationComplete event, File A.swf loads another swf(file B.swf).
Everything works fine when I run the application once in the same machine.But when I run two or more instance of the application, the first works fine (both file A and B are loaded) but the second swf (file B) is not loaded by file A.why the first swf (file A) doesn't load file B, when the application is running in multiple instance ?
I created a "Loading" spinner in a SWF. I display this spinner in my main application SWF using SWFLoader.How do I make the SWFLoader transparent? Currently it uses Flex's default background color even though I've set backgroundAlpha="0".
My spinner SWF's main MXML: (Note the use of backgroundAlpha)
[Code]...
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 and control it's timeline?
View 2 RepliesBelow is the javascript code,
//code starts
var so = new SWFObject("flashassets/sim_engine-1_0_0.swf", "customRightClick", "1000", "630", "9", "#CCCCCC");
so.addVariable("productID", "productFolder");
[code]....
I need write the same code in flex. I able to load swf file using swfloader but not able to pass parameter and variables.
How can i load a swfloader dynamically
What i want is I have an swfloader in a canvas
on my clear all buton i remove all children of canvas(removeallchildren)
so i loose my swfloader also
So on next button click(load button)i need to get that swfloader back.
I have difficult to reload content with SWFloader. It seems it can not convert relative path correctly to absolute path. [code]I do not have enough post count to post URL in the forum. But I can put it this way, I use a html embeding the swf file. the swf file and image file are stored in the child directory of html file. Whenthe swf file loaded, the image is correctly loaded to the stage. But when I try to reloaded it by click imgChange Button, it would not work. Both time, I use the same relative path, WHY the result it different. I know it says in SWFloader.as "// make relative paths relative to the SWF loading it, not the top-level SWF". But if I obey this rule, the first load operation would not work.
View 0 RepliesI'm using flash builder with the adobe AIR player, when I load an swf that loads another swf within itself then later run swfLoader.unloadAndStop() it removes everything but the swf that was loaded within the other swf.
View 0 RepliesHow can I hide (visible=false) a component and what AS3 code to use to hide a Flex Component from an external swf file?I have found out this doc, but I have no idea on how to implement it:
View 1 RepliesI'm building an application that's basically a frame in that another SWF file is displayed. My application loads SWF files generated by a server and displays them. As memory consumption increases over time, it it necessary that I unload the current SWF from time to time and replace it with a new SWF. I use SWFLoader to load the remote SWF file. I create a new SWFLoader object for each new SWF and remove the old SWFLoader as soon as the new SWF can be displayed. Now my problem: SWFLoader sporadically does not start playing the loaded SWF. All of the SWF files that I load start with the same set of instructions. When all goes well, the SWFLoader gets some ProgressEvents and then an Event.INIT. After that the SWF starts playing. In some cases, however, I only get the progress events, but the INIT is never fired. In that case the SWF doesn't start playing. The number of bytes received reported by the progress event is the same as in the case when it goes right.
View 1 Repliesi am doing a project and i am loading .swf files in a FLEX 3 SWFLoader. i made a HSlider as a seeker to control the .swf file (forward and backword); BUT... if the swf file has sound and i drag the seeker forward or back word the sound does not effect i want to control the sound as i control the swf file note:: the sound is in the .swf file not loaded
View 1 RepliesI want to load in a SWF and set it to fit in the window, whilst keeping it's aspect ratio.When I do this by setting the height and width of the SWFLoader, the SWF will resize to best fit in the space (as it is keeping it's aspect ratio).However I can't find a way to detect the height and width of that SWF now it has been resized. The size of the SWFLoader reflects what I set it to, and the SWFLoader.LoaderInfo size seems to be totally random.
I have also tried the loaderInfo.content, but again I don't get a value that compares to the size of the SWF I have loaded (or at lease the size of what is visible).The only thing I can think to do is to know the height and width before and then figure out the aspect ratio, so if I resize the width to 50% of the window, I can do the maths on the height to make the swf loader the same height as it's scaled content.
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.
View 1 RepliesHow can i play youtube video using SWFLoader?
Currently, i can play only 1 video at a time (suppose its name is A), if i try to play video B it doesnt play it. but if again i play vidoe A, it works.