ActionScript 3.0 :: Control SWF From SWFLoader?
Mar 9, 2009
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..
View 1 Replies
Similar Posts:
Jul 2, 2009
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 Replies
Aug 25, 2009
i 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 Replies
Dec 17, 2009
i have a flex application that loads flash files using SWFLoader. is there a way to control the audio volume in that swf from my flex application ?
View 1 Replies
Jan 19, 2010
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 Replies
Oct 10, 2010
Flex 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 Replies
Jul 6, 2011
I 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 Replies
Jul 19, 2011
I 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.
View 1 Replies
Dec 27, 2009
can i save a screenshot from a loaded swf using the SWFLoader class ?
View 1 Replies
Jun 15, 2010
How can I hide a component and what AS3 code to use to hide a Flex Component from an external swf file?
View 1 Replies
Aug 6, 2010
I 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 Replies
Aug 29, 2010
I 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 Replies
Feb 18, 2011
what is difference between swfLoader(load application) and ModuleLoader(load module)?
View 1 Replies
Mar 10, 2011
In 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.
View 1 Replies
Mar 23, 2011
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 ?
View 1 Replies
May 20, 2009
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]...
View 2 Replies
Jun 12, 2009
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 Replies
Feb 10, 2009
Below 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.
View 0 Replies
Jun 29, 2009
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.
View 1 Replies
Sep 4, 2010
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 Replies
Aug 17, 2011
I'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 Replies
Jun 20, 2010
How 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 Replies
Oct 15, 2008
I'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 Replies
Sep 23, 2009
I 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.
View 1 Replies
Feb 9, 2010
I 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 Replies
Mar 5, 2010
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 Replies
Nov 2, 2010
How 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.
View 1 Replies
Jan 26, 2011
I'm using Flex Builder 3 to build what will be a fairly large project. I'm suffering from modules stepping on each other and a conflict between application/module. My structure looks something like the following:
[Code]...
View 1 Replies
Jun 23, 2011
I have a flex application that's compiled with flex 4.1.I want that flex application to load an swf that contains the variable score and i want to be able to modify this variable.I wrote two versions of swf, one compiled with as2 code and the other with as3. this is my flex application:
<?xml version="1.0" encoding="utf-8"?>
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"[code]......
View 1 Replies
Jul 13, 2011
I am using SWFLoader to load a swf file. The code is below:[code]
View 2 Replies