SWFLoader Stop()
I have a Flash 9 Actionscript 3 SWF that we generated to run
as a advertisement inside an app we are building. I generate a
Popup window from inside my Flex app, load the SWF with SWFLoader
and play it - no problem. WHen I click the stop button I created it
performs as expected... ALMOST... the SWF's VIDEO portion stops -
but the soundtrack for it keeps going? ANyone out there in
Adobe-land have a solve for this one?
I have a Flash 9 Actionscript 3 SWF that we generated to run
as a advertisement inside an app we are building. I generate a
Popup window from inside my Flex app, load the SWF with SWFLoader
and play it - no problem. WHen I click the stop button I created it
performs as expected... ALMOST... the SWF's VIDEO portion stops -
but the soundtrack for it keeps going? ANyone out there in
Adobe-land have a solve for this one?
Similar Messages
-
SWFLoader : stop/ pause / play features ?
hi,
I am using the SWFLoader component to play Flash files (with SWF extension).
<mx:SWFLoader id="animation_toto" x="24" y="36" source= "toto.swf" autoLoad="true" width="657" height="164"/>
I am able to control the start of the animation with the load() method.
animation_toto.load();
However, I do not see stop / pause methods to stop / pause the animation.
(But they exist in the VideoDisplay component.)
How do i do that ? Is there a way ?
Thanks a lot for helping.Hello Zen,
Thanks for the RecursiveStop() function tip. I tried this out in my Flex application where I have to play one movie clip after another but without success. Here is the scenario: I am using a SWFLoader class on the main application form and have set a swf path. On application initialization, I call the stop() method to the MovieClip that is loaded in my SWFLoader object.
MovieClip(Application.application.mySwfLoader.content).stop(); // THIS WORKS
Later on click of a button, I dynamically store the paths of the swf files that I want to play one after another into an ArrayCollection and call a function to play the first item in the ArrayCollection.
myArrayCollection.addItem("assets/beginning_swfs/0114INSTR.swf");
myArrayCollection.addItem("assets/beginning_swfs/0111INSTR.swf");
myArrayCollection.addItem("assets/beginning_swfs/0201INSTR.swf");
myArrayCollection.addItem("assets/beginning_swfs/0202INSTR.swf");
setTimeout(PlayMovieClip, 1000);
In the PlayMovieClip() function, I set the path of the first item (swf file) as the source of the SWFLoader object in my application, again assign the content of the SWFLoader object to a MovieClip object and add an eventlistener - Event.ENTER_FRAME along with the method checkFrame() that will be invoked when the EVENT_FRAME event is raised. After this I call the MovieClip.play() function.
if (myArrayCollection.length == 0)
return;
path=String(myArrayCollection.getItemAt(0));
trace("Starting movie: " + String(myArrayCollection.getItemAt(0)));
Application.application.mySwfLoader.source = path;
flashMovie=Application.application.mySwfLoader.content as MovieClip
flashMovie.addEventListener(Event.ENTER_FRAME, checkFrame);
flashMovie.play();
Now once in the checkFrame() method, I determine if the end of the MovieClip has been reached. Stop the movie if the end frame has been reached.
if (event.target.currentFrame == event.target.totalFrames)
trace("Stopping movie: " + String(myArrayCollection.getItemAt(0)));
// stop the movie, call the RecursiveStop function.
RecursiveStop(MovieClip(event.target)); //event.target cast to MovieClip
event.target.removeEventListener(Event.ENTER_FRAME, checkFrame);
// Check if the array has elements in it.
if (myArrayCollection.length != 0)
// Remove the top most one.
myArrayCollection.removeItemAt(0);
// Check if there are more items in the array.
if (myArrayCollection.length != 0)
// Play the next file
PlayMovieClip();
I expect the MovieClip files (SWF) to play one after another but there is an overlap and the movies do not stop playing.
Any help pointing what I am doing wrong or a push in the right direction is highly appreciated. I've spent at least 3 days now trying to solve this issue without success. -
Tab stops working properly if .swf is loaded by SWFLoader
Hello,
I have swf file built by Flash CS5. The file contains different user interface entities like dialogs and buttons.
All the objects are exported for ActionScript and controlled by the ActionScript code.
I made loader that loads above mentioned swf by SWFLoader and shows the content.
If I use this loader the Tab button stops working properly. It doesn't change the keyboard focus.
What is wrong? What have I missed?
Thank you,
DmitryI tried, but unfortunately, this doesn't help.
I also tried to implement IFocusManagerComponent interface by TextFields as told here http://forums.adobe.com/message/3127914
but It seems it's not enough.
I also found out that it's necessary to implement IFocusManager, but I can't find the example of the implementation.
http://forums.adobe.com/thread/87580
http://tech.groups.yahoo.com/group/flexcoders/message/132629
Any help/advice is really appreciated.
Thanx. -
Stopping/Pausing SWFLoader
Is there a way to stop or pause a SWF loaded through an
SWFLoader component?
Thanks,
JohnFollowing sample code will embed "somesymbol" (movieclip
symbol) of "somefile.swf" and this is declared as myClass. Loading
this in "Image" component and using stopmc method I can able to
pause & play the loaded movie clip. I hope the same will work
for SWF Loader as well as embedding the whole swf file.
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="
http://www.adobe.com/2006/mxml"
layout="absolute" width="800" height="600">
<mx:Script>
<![CDATA[
[Embed(source="somefile.swf", symbol="somesymbol")]
[Bindable]
public var myClass:Class;
public function stopmc():void {
var mc:MovieClip = MovieClip(Q01.content)
if (playstop.label == "Stop") {
mc.stop();
playstop.label = "Play";
else {
mc.play();
playstop.label = "Stop";
]]>
</mx:Script>
<mx:HBox>
<mx:Button id="playstop" label="Stop"
click="stopmc();"/>
<mx:Image id="Q01" source="{myClass}"/>
</mx:HBox>
</mx:Application>
Hope this helps. -
In Flex 3 how to Stop and Replay .swf animation created in Flash
Hi
I have an animation file that is created in Flash (I think
CS3). In Flex if I import it inside a SWFLoader or if I import it
as an Image. It plays once and stops. Then I can not replay it. I
also can not pause it when its playing.
I have tried few things based on help and code available in
the Web to of no help. I have tried to convert the swfLoader
instance to a movie clip like so to stop
var c:MovieClip = swfLoaderHeaddress1.content as MovieClip;
c.stop();
<mx:SWFLoader x="53" y="116" width="206" height="255.3"
visible="true"
source="assets/animations/curatorial/ZoomHeadress_2nd.swf"
id="swfLoaderHeaddress1"/>
It does not work.
I have not created the .swf animation, I am not sure how it
is done. I belive it may not be using any ActionScript as I know
the artist who created it does not know ActionScript. Does
something need to be done inside the Flash to support the stop and
play? Or is there a way to restart/replay stop a .swf animation in
Flex 3 no matter how (and whether or not its developed using
ActionScript) its developed in Flash?One way is she has to add some AS code to the animation, or
you can do it yourself.
In swf there must be something like this:
var connReciever:LocalConnection = new LocalConnection();
connReciever.client = this;
connReciever.connect("fromFlexToSWF");
function myFunction(parameter:SomeClass):void {...}
And in Flex:
var connSender:LocalConnection = new LocalConnection();
connSender.send("fromFlexToSWF", "myFunction", [..args]);
The other way: in case with just play/stop there is a way to
resolve this by using that Flex Component Kit (or maybe "Flex Skin
Design Extension", i do not remember), it is something like she
just adding labels to animation frames then she exports it with
Flex Kit and then you can work with it like with an object with
"states". -
How do i stop loading a swf file which is still in progress.
//I have three buttons on the stage (btn1, btn2, btn3)
when i click the first button swf starts loading
while the swf is loading if i press the 2nd button
the first swf wont stop loading and both the swfs start playing
but if the first swf is fully loaded then every thing workes fine.
so please let me know how do i stop loading a file which is still in progress.
var _contentSWF:ContentSWF
var _content
btn1.addEventListener(MouseEvent.CLICK, handleClick)
btn2.addEventListener(MouseEvent.CLICK, handleClick)
btn3.addEventListener(MouseEvent.CLICK, handleClick)
function handleClick(){
if(_content!=undefined){
_contentSWF.removeContent()
removeChild(_contentSWF);
_contentSWF =null;
_contentSWF = new ContentSWF()
_content = addChild(contentSWF);
_contentSWF.init(some path.swf)
//ContentSWF.as
private var _path:String
private var swfLoader:Loader
private var _content
public class ContentSWF extends Sprite{
public function init(path){
if(_content!=null){
_content.content.removeEventListener(Event.COMPLETE, completeHandler)
_content.removeChild(mymc)
_content=null
swfLoader=new Loader();
_path = path
swfLoader.load(new URLRequest(path));
swfLoader.contentLoaderInfo.addEventListener(Event.COMPLETE, swfLoaded);
public function removeContent(){
swfLoader.contentLoaderInfo.removeEventListener(Event.COMPLETE, swfLoaded);
swfLoader.unloadAndStop()
private function swfLoaded(e:Event){
_content = addChild(mymc)Thanks Kglad, it all worked fine but can you help me in this.
I have 4 movieclips (_a,_b,_c,_d) when i click each of the movieclip they load a SWF(my_mc)
now when the swf file loades it starts loading a Sound(mp3)
Now when i press another button (_b) while this mp3 is loading
all the methords like Loader.close and loader.unloadAndStop() workes fine but i dont know how dose the MP3 loades and start playing
I also used the below script in my_mc.swf , but it wont work
this.addEventListener(Event.unload, myfun)
function myfun(e:Event){
\ if(_sound.bytesLoaded<_sound.bytesTotal){
_sound.close()
if (_chanel){
_chanel.stop() -
I'm loading a swf into a SWFLoader. Problem is when someone
doesn't want to see it anymore, I can't get rid of the swf playing.
I can turn of it's visiblity, but you can still hear the audio
playing. How can I unload the swf when using the SWFLoader
component?I think maybe you can set the loaderContext to null maybe.
You could probably also do a:
mySwfLoader.content.stop(); or gotoAndStop(1); if your swf
responds to that.
You can always set the source to null. That's off the top of
my head without checking the SDK docs. -
Is this the right forum for Flex3, seems to be the closest
match?
Creating Flex3 app for dynamically loading SWF's and other
content (jpgs, pngs) inside an mx:Panel at runtime. The SWF's fire
dynamically in AS3 great, but the SWF's act strange and don't
conform to their containers. It shows objects off the stage in some
instances, and
doesn't stay inside the panel or the arbitrary canvas I defined
for the SWFLoader. I'd like to be able to load any SWF and pop
it into a panel to run, much as it would perfectly on a web page.
I've tried just about every combination of width and height
parameters, but it never works as intended. I've reverted to
absolute sizing, it might be easier to get working than relative,
even though that's the desireable endstate.
Any suggestions? I can include screenshots if necessary.
Thanks!
Relevent Code (let's hope it doesn't mangle it!):
<mx:Application
xmlns:mx="
http://www.adobe.com/2006/mxml"
layout="vertical"
initialize="initApp()"
height="100%" width="100%"
paddingTop="10" paddingBottom="10" paddingLeft="10"
paddingRight="10"
creationCompleteEffect="{ creationCompleteEffect }" >
<mx:HDividedBox width="100%" height="100%">
....snip, the left nav panel here...
<mx:Panel
id="contentPanel"
title="Currently Viewing: {selectedNode.@label}"
width="100%"
height="650"
paddingTop="0" paddingRight="0" paddingLeft="0"
paddingBottom="0"
shadowDirection="right"
visible="false"
showEffect="{fadeIn}" >
<mx:Canvas borderThickness="1" borderStyle="solid"
width="600" height="400">
<mx:Image
id="content_loader"
source=""
scaleContent="true"
maintainAspectRatio="true"
showBusyCursor="true"
width="600"
height="400"
includeInLayout="true"
complete="trace(content_loader.content.loaderInfo.width,
content_loader.contentWidth,
content_loader.content.loaderInfo.height,
content_loader.contentHeight)"
ioError="missingSourceFile();" />
</mx:Canvas>
<mx:ControlBar>
<mx:Label text="Go to:"/>
<mx:NumericStepper/>
<!-- Use Spacer to push Button control to the right.
-->
<mx:Spacer width="100%"/>
<mx:Button label="Prev" />
<mx:Button label="Play"/>
<mx:Button label="Stop"/>
<mx:Button label="Next"/>
<mx:HSlider id="volume" minimum="0" maximum="100"
value="80"
dataTipPlacement="top"
tickColor="black"
snapInterval="1" tickInterval="10"
labels="['1','Volume','100']"
allowTrackClick="true"
liveDragging="true"
change="changeVolume();"/>
</mx:ControlBar>
</mx:Panel>
</mx:HDividedBox>I have the same problem.
I think this is the answer:
When loading a SWF file from an nontrusted source (such as a
domain other than that of the Loader object's root SWF file), you
may want to define a mask for the Loader object, to prevent the
loaded content (which is a child of the Loader object) from drawing
to portions of the Stage outside of that mask, as in the following
code:
import flash.display.*;
import flash.net.URLRequest;
var rect:Shape = new Shape();
rect.graphics.beginFill(0xFFFFFF);
rect.graphics.drawRect(0, 0, 100, 100);
addChild(rect);
var ldr:Loader = new Loader();
ldr.mask = rect;
var url:String = "
http://www.unknown.example.com/content.swf";
var urlReq:URLRequest = new URLRequest(url);
ldr.load(urlReq);
addChild(ldr); -
I am loading external swfs, each with unique audio. As a user selects one of four buttons, the existing swf, both visual and audio) should stop and the selected is to start. There is a default swf that starts when the flv is initially loaded. When I start the flv, everything functions correctly. Then, when I click on a different button, the first swf disappears and goes silent. Again, this is what should happen.
The problem is after a few second (30-40) and as the second swf is playing, the first one starts back up. I also noticed that if I double click any of the buttons, I get immediate dual audio. The AS3 I am using is the following.
Any assistance is greatly appreciated.
import flash.display.*;
import flash.net.*;
import flash.events.*;
import flash.media.SoundMixer;
// track previous and current pages
var curr:MovieClip;
var prev:MovieClip;
// "buttons" are MovieClips, not Button symbols!
// Never use Button Symbols for non-linear navigation systems.
var array:Array = [{button:prog_btn, page:"progression.swf"},
{button:elem_btn, page:"elementary.swf"},
{button:ms_btn, page:"middleschool.swf"},
{button:hs_btn, page:"highschool.swf"}];
// load initial SWF
var l:Loader = new Loader();
l.contentLoaderInfo.addEventListener(Event.COMPLETE, swfLoaded);
//Modify the SWF below to the SWF that is to be played upon starting the WBL
l.load(new URLRequest("progression.swf"));
// initialize buttons
for each (var obj in array)
var b:MovieClip = obj.button as MovieClip;
b.page = obj.page;
b.addEventListener(MouseEvent.CLICK, onClick);
function onClick(e:MouseEvent):void
// load the swf file refenced by the button.page property
var l:Loader = new Loader();
l.contentLoaderInfo.addEventListener(Event.COMPLETE, swfLoaded);
l.load(new URLRequest(e.currentTarget.page));
function swfLoaded(e:Event):void
// assign the loaded swf to the curr variable
curr = e.target.content as MovieClip;
curr.y = 100;
addChild(curr);
// if prev is valid, remove it
if (prev)
//prev.gotoAndStop(1); comment out by smh to eliminate dup audio
removeChild(prev);
SoundMixer.stopAll();
// assign curr to prev, so the process can run again for the next click event
prev = curr;Thank you for the feedback.
I modified the section of code where I do the initial .swf load to declare a new variable to the following:
// load initial SWF
var initial:Loader = new Loader();
initial.contentLoaderInfo.addEventListener(Event.COMPLETE, swfLoaded);
//Modify the SWF below to the SWF that is to be played upon starting the WBL
initial.load(new URLRequest("progression.swf"));
I then added the unloadAndStop() line of code in the onClick function to initiate prior to loadiung the next .swf:
function onClick(e:MouseEvent):void
// load the swf file refenced by the button.page property
var l:Loader = new Loader();
initial.unloadAndStop();
l.contentLoaderInfo.addEventListener(Event.COMPLETE, swfLoaded);
l.load(new URLRequest(e.currentTarget.page));
I am still having the same issue.
Steve -
SWFLoader.unloadAndStop() - does it unload swf and release memory?
Hi all,
Do SWFLoader FP10 unloadAndStop() and GC really unload swf?
I have simpliest test case possible when parent app creates new SWFLoader, loads sub app and then unloads it.
Every time when it does it I see memory grows. The sub app is tiny:
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute">
<mx:Label id="idLabel" color="blue" text="This is embedded application."/>
</mx:Application>
The parent application is also simple
public function loadSwf(name:String):void
loader.addEventListener(Event.COMPLETE, completeHandle, false, 0, true);
loader.showBusyCursor = true;
loader.scaleContent = true;
loader.source=name; // name is subappswf.swf the
loader.load();
private function completeHandle(event:Event):void
loader.removeEventListener(Event.COMPLETE, completeHandle);
loader.unloadAndStop(true);
Profiler shows decent Peak Memory and even Cumulative Memory does not seem horrible. There are no objects hanging in sub-application except SystemManager. But Google Chrom Task Manager shows the real picture: Shockwave Flash memory grows and as soon it reaches threshold ~0.5 GB, application becomes unresponsive and eventually FP crashes.
What else should be done to free up memory?
Regards,
IlyaThis is iInteresting...
/*** Unloads an image or SWF file. After this method returns the
* <code>source</code> property will be null. This is only supported
* if the host Flash Player is version 10 or greater. If the host Flash
* Player is less than version 10, then this method will unload the
* content the same way as if <code>source</code> was set to null.
* This method attempts to unload SWF files by removing references to
* EventDispatcher, NetConnection, Timer, Sound, or Video objects of the
* child SWF file. As a result, the following occurs for the child SWF file
* and the child SWF file's display list:
* <ul>
* <li>Sounds are stopped.</li>
* <li>Stage event listeners are removed.</li>
* <li>Event listeners for <code>enterFrame</code>,
* <code>frameConstructed</code>, <code>exitFrame</code>,
* <code>activate</code> and <code>deactivate</code> are removed.</li>
* <li>Timers are stopped.</li>
* <li>Camera and Microphone instances are detached</li>
* <li>Movie clips are stopped.</li>
* </ul>
* @param invokeGarbageCollector Provides a hint to the garbage collector to run
* on the child SWF objects (<code>true</code>) or not (<code>false</code>).
* If you are unloading many objects asynchronously, setting the
* <code>gc</code> parameter to <code>false</code> might improve application
* performance. However, if the parameter is set to <code>false</code>, media
* and display objects of the child SWF file might persist in memory after
* the child SWF has been unloaded.
public function unloadAndStop(invokeGarbageCollector:Boolean = true):void
useUnloadAndStop =
true;unloadAndStopGC = invokeGarbageCollector;
source =
null; // this will cause an unload unless autoload is true
if (!autoLoad)load(
null);}
It means that if autoload is true (default) unload will not happen and sub-app
will persist in memory.
Regards,
Ilya -
Replacing mxml SWFLoader with AS
Hi,
I'm creating an SWFLoader instance on stage using mxml syntax. I'm using this swfLoader to display an MC from external .swf file. I need to be able to control MC's time line with 'start()' and 'stop()' commands. I read that the way to do this is by creating a MovieClip instance and assigning imported swf to it. So my code looks like this:
MXML:
<mx:SWFLoader id="myMC_3" source="{myMC_2}" />
AS:
[Embed(source="some_swf.swf", symbol="myMC_1")]
[Bindable]
private var myMC_2:Class;
myMC_4 = myMC_3.content as MovieClip;
And this works fine. But when I'm trying to create SWFLoader instance using only AS (without mxml) it doesn't work - an error appears telling me that 'myMC_1.content' is null.
AS:
[Embed(source="some_swf.swf", symbol="myMC_1")]
[Bindable]
private var myMC_2:Class;
myMC_3 = new SWFLoader;
myMC_3.source = "Embed(source='myMC_2')"
myMC_4 = myMC_3.content as MovieClip; //here it stops on an error telling me that
//I cannot assign null property
Any ideas what's wrong or have You any proposition how to control external MC inside Flex with SWFLoader created only with AS (Without MXML)?The way to find out what the difference is between your AS and the mxml code is to compile the mxml file with -keep and look at the compiler generated actionscript code.
-Darrell -
SWFLoader causing a re-draw of parent application's background
Hi,
I have an application that has a menuBar in it. When a menu item is selected from the menuBar, a SWFLoader is supposed to load the specified URL
Everytime a new URL gets loaded to the SWFLoader, an unloadAndStop takes place then the new one is then loaded.
public static function createSWFLoader():SWFLoader{
var loaderContext:LoaderContext = new LoaderContext(); loaderContext.securityDomain = SecurityDomain.currentDomain;
loaderContext.applicationDomain = ApplicationDomain.currentDomain;
var swfLoader:SWFLoader = new SWFLoader(); swfLoader.autoLoad =
true; swfLoader.loaderContext = loaderContext;
swfLoader.percentHeight = 100;
swfLoader.percentWidth = 100;
swfLoader.cachePolicy = UIComponentCachePolicy.OFF;
return swfLoader;}
public static function unloadSWFLoader(swfLoader:SWFLoader):void{
var loaderContext:LoaderContext = new LoaderContext(); loaderContext.securityDomain = SecurityDomain.currentDomain;
loaderContext.applicationDomain = ApplicationDomain.currentDomain;
var swfLoader:SWFLoader = new SWFLoader(); swfLoader.autoLoad =
true; swfLoader.loaderContext = loaderContext;
swfLoader.percentHeight = 100;
swfLoader.percentWidth = 100;
swfLoader.cachePolicy = UIComponentCachePolicy.OFF;
return swfLoader;
public static function loadSWFLoader(swfLoader:SWFLoader, height, width,
url:String,
parentContainer):
void{
swfLoader.height = height; swfLoader.width = width;
parentContainer.width = width;
parentContainer.height = height;
So the applicaiton calls createSWFLoader followed by unloadSWFLoader then loadSWFLoader. Unfortunatelly, after it is done loading, a re-draw of the main applicaition's background seems to happen, so the user sees a flicker in the screen. I am not sure why this is happening. Any ideas are greatly appreciated.
Thank you.Not sure what is causing the flicker. It could be bad behavior from the
loaded SWF.
BTW, by specifying the loaderContext the way you are, the SWFs will not
unload. They'll probably stop playing, but won't unload. You have to use a
child or sibling appdom. -
Cant Make Flash Video Stop Playing
I am using an HTMLLoader to display a web page in a
NativeWindow. The web page I am displaying has an embedded flash
video that plays in it. That all works fine. The problem I have is
that when they close the window, the flash video keeps playing. The
only way to stop it is to close the entire app.
Is there a way to somehow make the HTMLLoader stop playing
the content?I figured it out. I found a reply that fixed this problem for
someone with a SWFLoader and it works for the HTMLLoader.
Here is the answer if you need it, where html is the name of
the HTMLLoader.
html.load(null);
html.reload(); -
SWFloader and Embedded Flash 9a SWFs
I have a bunch of Flash movies done in Flash 9 / AS3. These
are pretty basic animations, with very simple timeline scripts at
the top level - basically just stop() and some trace statements. I
also have labels set at various points. All of these animations are
designed for basic gotoAndPlay(label) then stop() operations.
These swfs are compiled without any custom classes...
strictly simple code on the root timeline, as I said, stop() and
trace().
I load this stuff up in my more complex Flex app via a
SWFloader. Once the load is complete, I assign SWFloader.content to
a variable typed as movieclip. Everything loads. My trace
statements trace through Flex. My stop() actions work. However, the
gotoAndPlay(label) commands do not work, Flex always reports that
the movie is on Frame 0, it claims the movie has 0 totalFrames,
etc. It can't see any labels or any other details of the file.
I've looked at the docs and the list archives, but can't seem
to get this going. Is there anything special which needs to be done
in Flash 9, besides exporting as Flash 9 / AS3? Any other
suggestions or examples?I should note that this problem really only occurs if the
animation SWF is @embedded. Looking at the loaderInfo.URL is
telling me the main movie's URL, which I suppose is fine, but I
still don't seem to be able to communicate with it. Accessing the
movie as an external file, without embedding, it works correctly.
Is there some special difference in how you handle an @embedded SWF
compared to one linked via a relative path? -
SwfLoader Compile problem.
I`m running into a tiny but very serious problem here in Flex Builder version 3.0. I've made 2 projects in Flex. One is the main project and the second one gets loaded over swfLoader from the main project. The reason why this is made is so the final user can actually make any type of modification on the second project and then upload the .swf file in the main application where all the binaries are stored. So i ran into an error after 2 weeks of hard work after i designed the whole project. The thing is that every time the user has to modify things on the second project he/she has to copy the compiled .swf file to the binary repository of the server AND import the changed MXML into the first project and re-compile the parent swf ... now I'm wondering if there's a way i can get past that problem with just putting the compiled version of the second swf file and then get all the changes without importing the MXML file from the second project into the first and having to re-compile the first project. I must mention that both the swf file and mxml must be compatible to each other. If you change code in the mxml file it will not affect the swf that is compiled and so as the reverse mode. So all i need is the swf file to be uploaded with the changes made and thats it Any clues from someone who ran into this type of problem ?
I think maybe you can set the loaderContext to null maybe.
You could probably also do a:
mySwfLoader.content.stop(); or gotoAndStop(1); if your swf
responds to that.
You can always set the source to null. That's off the top of
my head without checking the SDK docs.
Maybe you are looking for
-
No account assignment exists. Enter an account assignment.
Hi Experts, I am trying to create SC with 'Limit Item' (SRM 4.0, Classic scenarion) Cost assignment: Percentage distribution for Multiple Account Assignment Cost Center. When I enter all the details, and click on check, I am getting error: No account
-
Hi, before 3 months when I start to play any video or music to listen, I could not hear any sound. if I want to play video as handsfree mode it s not possible to hear any sound other problem is it s not turning off. When you want to turning off it s
-
Create program for existing partner
Hi Please tell me how to create the Partner Program for the Existing Partner in My Partner list in Channel Manager. I Referred the partner document there is no specific setup for the existing partner. But After creating a new partner program can not
-
my iphone 4s version 7.0.4 wifi turned out grey. i restored my iphone also but didnt work, what shall i do???
-
OS 10.5.8 to 10.6
I purchased my Macbook Pro just about 2 years ago. It came with a DVD for 10.6 Snow Leopard. My mac does not recognize this at all...It sees this disc as a blank DVD. I've already tried the restarting with the disc in there while holding down CTRL (o