Swfloader complete (end of a swf)
Hi,
i have created a swf file and loading it in a flex-air project, i want that the swf file will close automatically after playing 1 time but cant find any event to fire the end of the swf. there is a complete event but it is checking swf loading complete.
is there any way to check swf end or last frame? i dont want to use enterframe event, its cpu usage is very much for me.
used timer and now it seems working ok, but i think it should be more robust solution for this.
protected function funcStartSwfVideo():void
this.swfVideoTimer=new Timer(10000);
this.swfVideoTimer.addEventListener(TimerEvent.TIMER, this.funcEvSwfVideoEnd, false, 0, true);
this.swfVideoLoader.load("assets/bos.swf");
protected function func(event:Event):void
this.swfVideoTimer.start();
protected function funcEvSwfVideoEnd(event:TimerEvent) : void {
this.swfVideoTimer.removeEventListener(TimerEvent.TIMER,this.funcEvSwfVideoEnd);
this.swfVideoLoader.unloadAndStop(true);
Similar Messages
-
Detect end of the .swf file from captivate
Hi,
I've a .swf file sent by our clients. They want to put that .swf file on the webpage. The .swf file is published from captivate.
Now they want to display a submit button on end of the .swf (video). I don't know how to detect end of the video.
Need help...!!!
Thank you,
HimadriWelcome to our community
Within Captivate you are able to choose different actions to occur when the Captivate movie completes play. Of course if you don't have Captivate and the project file you are pretty much stuck with what you have. If you *DO* have access to the source, you would then configure the end action to be what you like. Perhaps execute some JavaScript, load a different page, etc.
If you don't have access to the source file, you may be better off asking whomever provided the SWF to you to make a small change to the end action. They would then compile a new SWF and provide that to you to use.
You just said a "Submit" button should appear after the video plays. What exactly is this button supposed to do?
Cheers... Rick
Helpful and Handy Links
Begin learning Captivate 5 moments from now! $29.95
Captivate Wish Form/Bug Reporting Form
Adobe Certified Captivate Training
SorcererStone Blog
Captivate eBooks -
Where can I find a complete set of compiled swfs for 2.0?
Where can I find a complete set of compiled swfs for 2.0?
I want to place these directly on my website.
Thanks,
KenSo basically Apple is hiding which networks allow rentals vs. purchase until you buy an ATV2,
and then find out you can't watch "The Closer", "Men of a Certain Age", "In Plain Sight", etc., etc.
Or until you spend a bunch of time digging through iTunes show by show...
Sad...Guess I'm sticking with Cable for a while longer.... -
I keep getting error message "must complete End User License Agreement"...can't open PDF's on my Mac
First question: have you started the Adobe Reader App since you installed it?
-
Import complete Flash site into swf in mini format
Hi,
I am trying to get a smaller size of a complete web site to
run in a swf file on my web site.
You can see what I am thinking at gggraphic.com/new under
product and web design. I want the inserted web sites to be live.
The script below works fine if the imported site lives in one
single swf. But most of
my sites run from a master swf that imports other swf's. The
master will import in the specified size. But all following swf
files will import in their full size. Is there some universal code
that will make all files that are imported into the
container movie clip adjust to the new size?
Hope to hear from you soon.
Thanks on before hand.
Sincerely
ggaarde
08.19.07
Attach Code
stop();
var mcl:MovieClipLoader = new MovieClipLoader();
mcl.loadClip("
http://www.soundoil.com/CombFlash/CombFlash3.swf",
container);
trace("Loading started!");
trace("File width is: " + container._width);
var mclListener:Object = new Object();
mclListener.onLoadInit = function(mc:MovieClip) {
trace("Loading complete!");
trace("File width is: " + mc._width);
mcl.addListener(mclListener);
container._xscale = 56;
container._yscale = 56;
container._x = 305
container._y = 82sorry about that. from what I know it shoots in mpeg-2, but when you go onto the camera disk image the files are named .mod
they can be imported into imovie 08, as .mov (but when I click "get info" it still says that they are mpeg-2 and that they are compressed -- which *****)
its also 16:9, standard definition. That's all I really know. What I ended up doing what I converted all the clips to DV with mpeg stream clip so I wouldn't have to render the video in fce. I did have to render the audio for some reason though.
another quick question. If I have a lot of clips in the bin for final cut will it slow it down? I have about 70 and it seems to be the cause for "dropped frames" or whatever that dialogue box says.
thanks again. -
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 -
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? -
Complete code for loading swf file in actionscript 3
i have a swf
file which i want to load into a fla file and export as a new swf file. I understand this part but my actionscript 3.0 code that i put on frame one of the timeline does not work. I have tried every version i have seen online including in adobe's actionscript 3 classroom in a book.... and other books..... i want the swf to run immediately so i dont think i need any event listeners since i am not clicking a button or anything like that... just running the swf at start. any help wuld be appreciated... sent two day on this already... i can do it in actionscript 2 but have not figured it our in actionscript 3......... why does eeryone seem to do this slightly different too? a complete code would be nice since obvously i am stupid........
thanksShow the code you put in frame 1. I don't think you can do what you say you intend to though. As far as I know you cannot create a new filein the way you explained you intend to. If you load the file dynamically as a separate swf, then you will always need to.
-
I am loading a swf that I created in captivate into another
flash file. I would like to be able to detect when tha captivate
swf is at the end. Is there a way in flash to detect when a
captivate swf is at the end?Hi Jencarter,
another possbility could be to embed a small swf-animation
into the captivate-movie that calls a function in the root, in this
case the flash-file which loads the captivate-movie.
We had the same problem, in the flash-file a function
"chapterend" should be called as soon the captivate-swf is at the
end.
So I've build a small swf which just calles the actionscript:
_root.chapterend();
This swf can be imported into the last slide of the
captivate-movie (or on any other position, if you need it).
Best regards -
I imported a FLV (progressive download) into flash.
At the end of the video I need a new swf to open.
I've been searching for the action script to do this with no
luck.
If someone could point me in the right direction I'd really
appreciate it.
Thanks,If you imported as a progressive download, you probably used
some skin for the FLVPlayback component. Give this component an
instance name (cpVideo) in this example and use an event listener
to tell you when the video is finished. -
Complete End User transactions of Credit management and Cash Remittance
Hi All
Can any one please Guide me on what are all transactions the end users need to perform in the below areas -
1 - Collections
2 - Credit Management
2 - Cash Remittance
4 - Tax Processing
I have to give the trainings on these areas and these are very much new areas to me
Appreciate your Quick Response
Aadi
Moderator
http://help.sap.com/saphelp_erp60_sp/helpdata/en/d2/9202b646f111d189430000e8323c4f/frameset.htmHi,
You got this message because you set check for "Permitted aging of A/R summary" on OVA8. And you also chose to create AR summary on table T000CM.
You can do one of following:
1. on OVA8, make "permitted days and monthes" blank.
2. delelte entries in table T000CM
3. Make "permitted days and monthes" longer, and delete and re-create AR summary by FCV2 and FCV1.
Hope it helps. -
URL link at the end of flv/swf video???
Hi, I need to have a link at the end of a video so the viewer can click on it and go to a survey page.
We need the viewer to watch the entire video so it has to be at the end. I'm not an AS expert but I have the Master collection so whever software it takes I should have.Video was done in Premiere exported through media encoder and I have used either Flash to make a custom player or Dreamweaver to embed in a web page. The video plays fine but no link.
I have tried this in Flash but keep getting weird loops.
THANKS!Hey that helped.
Here is a link to my working prototype:
http://www.socialrobots.org/test1.php
Here is a link to an earlier version which has the Premerie event and does not work. Screenshots are on that page.
http://www.socialrobots.org/surveyplayer.html
One big issue though is that the link is automatic (which is ok) but the link forces a popup window instead of the same browser window which the popup blockers block. Is there a way to make the link stay in the parent by defining a target?
Also what if we wanted the viewer to actually have to click to visit the link; what would be the process/code for that?
Thanks you have been the best help and I will put a thanks in the project notes.
Message was edited by: Bubba5000 -
Urgent! - How do you completely end a multiperso​n chat?
Hi! I started a multiperson chat today but have been unable to end it. I passed the information I need to pass and got the replies I was looking for but once we were through, none of us knew how to end the chat. Leaving the conversation doesn't work and my friends and colleges want out! Please help me! Is there any way out?
Nope, disabling Turbo actually throttles my computer. I've re-enabled it so now my computer runs properly after a second reboot.
-
Activity search by Completed status and End Date
Hi All,
When i try searching for an activity based on the date on which the status was set to Completed, the system does not show any results. 'Criteria used are Activity Type, Status = Completed, End Date.'
If i choose an End date = Date on which the status on the Activity was set to Completed, the system does not show correct results. The system only shows those activities where the Activity Status was Open and Completed on the same day. For activities where Open and Completed Status was set on different dates, there are no search results.
However, with the same criteria set, if i change the End Date = Date when Activity Status was Open, i get the results.
Is it not possible to search for activities based on Status and End date combination?
Pls. suggestHi Kansal,
There is a possibility that the status profile you maintained for the activities has some issues.Please check the Business transaction (which maps system status) that you have mapped with your completed and open staus.It might be that the user staus is set to be open but in the status profile it is accidently mapped to the completed or finished.
Hope this helps.
Regards
Priyanka -
How make the swf loaded in swfloader component to be transparent?
Hi,
I use the swfloader component to load many swf file into my project,but how do I make the swf loaded in swfloader component to be transparent? Just like the swf to be set transparent in HTML!
Thanks a lot.
DavidNobody can help me?
Maybe you are looking for
-
I installed the update for Mountain Lion. And now I cannot use most of my stuff. Including Mail, APP Store ( where I would go to get any downloads and updates) Safari etc..... Please help!
-
XML Problem - Markup not well-formed? (kinda long)
Hello, I'm working on my first AIR app and I've run into a bit of a snag. The app is intended to allow users of our system to create a Word document, save it as XML, and then load it into the AIR app and have some manipulation performed to extract d
-
My computer crashed and the hard drive is no longer. I have purchased a new laptop but now have no access to my old itunes library. My laptop has created a new itunes account with NOTHING in it?? My Itouch has everything loaded but it wont sync wit
-
Control a symbols timeline from with in another symbol
I just started using this product. I love it. I am currently building a project. I have a button inside of a symbol, and this symbol is on the stage. I am trying to use this button to start an animation from a label in a second symbol that is on the
-
Hands Free Bluetooth on my Iphone Stinks - Lots of Questions
I'm not new to iPhones... I've had 3 now. I just got the 6. I upgraded because I thought the fingerprint recognition would provide a better hands free experience in my car. I have a Ford Fusion with Sync. First thing which is probably more of a com