Percent of SWF file played based on frames

I have a Flash file created with 585 frames. I'd like to show
the percentage played of the SWF file as it's playing based on
frames and not based on bytes loaded. I don't really need it to
play a preloader, I simply want to give the viewer an idea of how
far along they are as the SWF file is played.
Thanks for helping.

You just need to put a textfield on the Stage with the text
tool, and select 'dynamic' in the properties panel and give the
field an 'instance name' (I used percent_txt in the code below for
the instance name). select a font and size, etc. then embed the
font by selecting the 'embed' button and select 'numbers' and
'puncuation' (unless you wantto use other characters in the field).
that sets up a dynamic field, which is a field that you can 'put'
text into using script and change it when you want by assigning new
text to it.
and for the code, let's see ... use something like:

Similar Messages

  • Why doesnt my swf file play on the server?

    why doesnt my swf file play on the server? but it plays on my computer.
    what do i need to do to make it work?

    It easier to see why the file might not be playing on the server if you provide a link to the file on the server.  That allows for checking if files are where they should be.
    In your case you may want to do some repairs on the html file that you linked.  It appears as though the tags are out of whack and possibly the embedding is as well.  What you should do is let Flash generate the html page when you publish the swf.  You are normally going to get the best results letting Flash create the embedding code.

  • Call a external SWF by press the button within another SWF file but the second SWF file play Externely

    Hello Guyz.
    i am working on Macromedia Flash 8 and i just want to call a external SWF when i press the button within another SWF file.......but the second SWF file play Externely............can any one knows the code.... AS2

    try this
    http://www.actionscript.org/forums/showthread.php3?s=&threadid=28123

  • Why won't swf file play embedded videos?

    I created a swf file in inDesign.  I embedded 3 videos within the document, all of which are embedded (stored on my host's server).  I created the videos in Premiere Pro, saving them as H.264 (mp4), with sound codec AAC.  I placed each video on its appropriate page in inDesign using the media dialogue box, choosing a poster image and a set of controls that become visible when hovered over.  The swf file I placed onto a webpage in Adobe Muse, then uploaded that page to its host.  When the website comes up, and I click on the page that holds the swf file, it looks good ... I have page-turning applied, and that works fine.  But, when I go to click on a video, the frame just disappears.
    Here's the caveat:  After saving the swf file, I opted for it to open in my browser window.  When inspecting the file in the browser, the videos work fine.
    I have opened the webpage in Chrome, Firefox & IE, but the videos won't play.
    Here's a link to the webpage:
    www.fridayharborpowersquadron.com/newsletter.html
    Please help, if you can.  I would hate to have to start over by rebuilding every single page in inDesign file inside of Muse (since Muse can't take a PDF file.  I thought about saving each ID page as a jpg, then building a fullscreen slideshow in Muse, then placiing each page inside of the slideshow presentation .. then writing html code into those jpg pages in order to link my videos from vimeo or youtube ... but I dont' want to go that route.  I've put in way too many hours as it is.
    Sure hope someone can help ...
    Phil in Friday Harbor

    Also, where you live is a consideration. I live in East Africa, and due to the servers in the surrounding areas, I had to subscribe to a VPN as well as make sure I had the right plugins.

  • How can I get my swf files playing on browser?

    Hello,
    I've been designing my first website and have used dreamweaver, which is very new to me. I've followed a very good beginners guide to making websites and all was well. However, it had nothing about uploading swf files. So I did some research, and found that the easiest way was to insert them into a div box using the media section and choosing swf. again all was well, I can preview it in chrome etc.. and all works fine.
    I've come to uploading my site and I've used filezilla, uploaded all the files but I can't see the swf playing on the website. I've looked into it and I just can't find the answer. I've tried uploading them directly into the root folder as well but that doesn't work.
    Can somebody please help me!!
    here are the links:
    www.creativecanvassing.co.uk = the swf should be positioned between the orange logo and the "national direct marketing company' text. There is also the section in picture which has the same problem
    not too sure how to attach the copy of the file that shows its all working
    Thanks

    Hello,
    are you really sure that you have uploaded this page with contents? I've got this, when calling this link: http://www.creativecanvassing.co.uk/pictures.html:
    Your swf file is running in my IE8 like a charm in all your other pages.
    Hans-Günter

  • Strange Problem - All of my preloaded .swf files play at once

    Hey guys,
      I've been getting a strange problem that I haven't been able to debug.  I recently developed an interactive audio and video treatment program that users click through in which a master swf file (DTM-Start.swf) uses ActionScript upon first being loaded to load the rest of the program in the background.  Here's how the code looks: 
    import flash.display.MovieClip;
    import flash.display.Loader;
    import flash.net.URLRequest;
    import flash.events.Event;
    // create movieclip objects to hold the loaded movies
    var intr1:MovieClip;
    var maladaptIntr1:MovieClip;
    var maladaptIntr1Loader:Loader = new Loader();
    var maladaptIntr1Request:URLRequest = new URLRequest("DTM-Maladapt1.swf");
    maladaptIntr1Loader.load(maladaptIntr1Request);
    maladaptIntr1Loader.contentLoaderInfo.addEventListener(Event.COMPLETE, maladaptIntr1Loaded);
    var intr1Loader:Loader = new Loader(); 
    var intr1Request:URLRequest = new URLRequest("DTM-Intr1.swf");
    intr1Loader.load(intr1Request);
    intr1Loader.contentLoaderInfo.addEventListener(Event.COMPLETE, intr1Loaded);
    function maladaptIntr1Loaded(event:Event):void
        maladaptIntr1 = event.currentTarget.content as MovieClip;
        maladaptIntr1.stop();
        addChild(maladaptIntr1);
        maladaptIntr1.y = -1000
        trace("maladaptIntr1");
    function intr1Loaded(event:Event):void
        intr1 = event.currentTarget.content as MovieClip;
        intr1.stop();
        addChild(intr1);
        intr1.y = -1000
        trace("intr1");
    function playIntr1() {
       intr1.y = 0;
       intr1.play();
    function playMaladapt1() {
        maladaptIntr1.y = 0;
        maladaptIntr1.play();
    So that's the idea.  What's strange is that when I load a .swf file compiled with AIR 2.6 (because the user interacts with the movie and a text file is output) it's fine too, but as soon as I add any actionscript, even if it's just a stop() command, to a .swf file compiled with AIR, the DTM-Start.swf loads and then plays all of the movies simultaneously so they're all going off at once.  Essentially, flash seems to be ignoring the maladaptIntr.stop() command in the Loaded function, for instance.  I just don't understand why adding any Actionscript whatsoever to a .swf compiled with AIR would make my DTM-Start do this.  I am very confident this is the issue too, because loading .swf files compiled with the FlashPlayer with action script are fine...AIR .swf files without Actionscript are fine too, it's only AIR .swf files with ANY actionscript that cause this problem....
    Any ideas?
    Much appreciated!
    Thanks,
    Ricky

    One solution is simply to have a stop() in the constructor of the document Class of each swf you're loading. Another solution is something like:
    package {
         class MainDocument extends MovieClip {
         protected var swfs:Array = ['DTM-Maladapt1.swf', 'DTM-Intr1.swf'];
         protected var positions:Array = [{x:0, y:0}, {x:0, y:0}];
         protected var movies:Array /*of  MovieClips*/ = [];
         protected var loadIndex:int;
         protected var playIndex:int;
         protected var curremtMovie:MovieClip;
              public function MainDocument() {
                   super();
                   loadMovie(loadIndex);
              protected function loadMovie(loadIndex:int):void {
                   var loader:Loader = new Loader;
                   loader.contentLoaderInfo.addEventListener(Event.COMPLETE, onLoadComplete);
                   loader.load(new URLRequest(swfs[loadIndex]));
              protected function onLoadComplete(e:Event):void {
                   var mc:MovieClip = LoaderInfo(e.currentTarget).content as MovieClip;
                   mc.stop();
                   var position:Object = positions[loadIndex];
                   mc.x = positions.x;
                   mc.y = positions.y;
                   addChild(mc);
                   movies[movies.length] = mc;
                   loadIndex++;
                   if (loadIndex<swfs.length) {
                        loadMovie(loadInxed);
                   } else {
                        playMovie(playIndex);
              protected function playMovie(playIndex):void{
                   if (currentMovie) {
                        currentMovie.stop();
                   currentMovie = movies[playIndex];
                   currentMovie.play();
    Note that with this approach you don't need to create a whole new set of logic each time you want to add a new swf to load.

  • Swf file plays in IE8 but not Firefox or Safari

    I've inserted an swf file in my webpage using Dreamweaver CS4's Insert/Media/swf function. It plays fine in IE8 but won't work at all in Firefox or Safari. I can view flash files in other websites using these browsers and I've updated my version of flash so I can only put it down to a coding thing. Website is www.201.com.au and the Dreamweaver code follows. Any suggestions??
    <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="958" height="242" id="FlashID" title="201_Gallery">
          <param name="movie" value="../flash/201.swf" />
          <param name="quality" value="high" />
          <param name="wmode" value="opaque" />
          <param name="swfversion" value="6.0.65.0" />
          <!-- This param tag prompts users with Flash Player 6.0 r65 and higher to download the latest version of Flash Player. Delete it if you don’t want users to see the prompt. -->
          <param name="expressinstall" value="../Scripts/expressInstall.swf" />
          <!-- Next object tag is for non-IE browsers. So hide it from IE using IECC. -->
          <!--[if !IE]>-->
          <object type="application/x-shockwave-flash" data="../flash/201.swf" width="958" height="242">
            <!--<![endif]-->
            <param name="quality" value="high" />
            <param name="wmode" value="opaque" />
            <param name="swfversion" value="6.0.65.0" />
            <param name="expressinstall" value="../Scripts/expressInstall.swf" />
            <!-- The browser displays the following alternative content for users with Flash Player 6.0 and older. -->
            <div>
              <h4>Content on this page requires a newer version of Adobe Flash Player.</h4>
              <p><a href="http://www.adobe.com/go/getflashplayer"> <img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" width="112" height="33" /></a></p>
            </div>
            <!--[if !IE]>-->
          </object>
          <!--<![endif]-->
        </object>

    The code you have posted is not the same code as used in:
    <div id="gallery">
    in the link above.
    The reason that the Flash is not displaying in FF is that the portion of the code used by FF was omitted. The code currently used on the page only works in IE.
    I'm no great fan of the IE conditional statements used in the code you posted so I don't blame you for not using it. But you do need to provide something for FF.... the old, out dated method would be to add and <embed> for FF... here's the newer method..
    So either use code you posted above or better yet, get rid of that and replace the current <object> with
    <div id="gallery">
    <object id="FlashID" data="flash/201.swf" type="application/x-shockwave-flash" width="958" height="242">
       <param name="movie" value="flash/201.swf">
       <param name="quality" value="high" />
         <param name="wmode" value="opaque" />
         <param name="swfversion" value="6.0.65.0"/>
    </object>
    </div>
    Give that a try. Will work in both FF and newer IE versions.
    Best wishes,
    Adninjastrator

  • SWF File - Play this slide OK, Preview Not

    I converted a video AVI file to a SWF file and inserted it into a slide. Selecting "play this slide" results in the video animation playing without problem. Selecting "preview" the project, or multiple signs results in only the audio playing for the slide, no video.

    Hi there
    If you are using Capitvate 3, please check out the thread linked below:
    Click here to read
    Cheers... Rick
    Helpful and Handy Links
    Captivate Wish Form/Bug Reporting Form
    Adobe Certified Captivate Training
    SorcerStone Blog
    Captivate eBooks

  • Can I have a .swf file play in a lightbox-type window on link click?

    Hello,
    I have a thumbnail on my page that I would like to link to a video. However, I do not want it to open in a new tab or window, rather, I'd just like it to appear like a lightbox display, fading out the background and playing the video within the same page. The viewer should be able to close out or click off of the video at any point to return to the original page.
    Is there a way to do this?
    Thanks!

    Placing a .swf file (Ctrl+D) in a Lightbox display Composition widget should not be a problem while having your thumbnail image in the trigger.
    The article here might be helpful - http://www.adobekb.com/building_your_first_website_pt2.html#building02-addingalightbox
    Thanks,
    Vinayak

  • External SWF only plays first few frames then loops

    Help!  I've been working on this for the past few weeks.  Have read everything I can read.  Have tried everything I that has been posted.  And still I can seem to get a simple external swf to load and play using AS3.  I have tried numerous ways with the same results everytime.  Here are a few of the scripts I have tried.  What I would like to have happen is to have one main timeline where I load sequentially external SWF files - there is no interaction required - it is a presentation that includes video and other Flash SWF files that I have created.  Now I just want them all in one flash file.  I had no problems with AS2 doing this, but I'm sure having fits with AS3!  please HELP - my deadline is this week and I'm not even close to being ready.  THANKS!
    var myLoader:Loader = new Loader();                   
    var url:URLRequest = new URLRequest("script1_3.swf");                                  
    addChild(myLoader);
    //var begin:MovieClip;
    //var beginLoader:Loader = new Loader();
    //beginLoader.contentLoaderInfo.addEventListener(Event.INIT, beginLoading);
    //beginLoader.load( new URLRequest("start1_3.swf") );
    //function beginLoading(evt:Event):void {
    //thisMovieClip = MovieClip(beginLoader.content);
    //stage.addChild(thisMovieClip);
    //thisMovieClip.play();
    //import flash.display.*;
    //import flash.net.URLRequest;
    //import flash.events.Event;
    //var _swfLoader1:Loader;
    //var _swfContent1:MovieClip;
    //loadSWF1("script1_3.swf");
    //play();
    //function loadSWF1(path:String):void {
    //   var _req1:URLRequest = new URLRequest();
    //   _req1.url = path;
    //  _swfLoader1 = new Loader();
    // setupListeners1(_swfLoader1.contentLoaderInfo);
    //  _swfLoader1.load(_req1);
    //function setupListeners1(dispatcher1:IEventDispatcher):void {
    //  dispatcher1.addEventListener(Event.COMPLETE, addSWF1);
      // dispatcher1.addEventListener(ProgressEvent.PROGRESS, preloadSWF1);
    //function preloadSWF1(event:ProgressEvent):void {
    //   var _perc:int = (event.bytesLoaded / event.bytesTotal) * 100;
    //swfPreloader1.percentTF.text = _perc + "%";
    //function addSWF1(event:Event):void {
    /// event.target.removeEventListener(Event.COMPLETE, addSWF1);
    //  event.target.removeEventListener(ProgressEvent.PROGRESS, preloadSWF1);
    //  _swfContent1 = event.target.content;
    // _swfContent1.addEventListener("close", unloadSWF1);
    // addChild(_swfContent1);
    //function unloadSWF1(event:Event):void {
    //  _swfLoader1.unloadAndStop();
    //removeChild(_swfContent1);
    //  _swfContent1 = null;
    Best Wishes
    Deborah

    Believe me, I'm feeling the pressure!!!  I sent a screen shot and it got kicked back!!!! 
    here is the code I'm using in the main time line:
    var myLoader:Loader = new Loader();                    
    var url:URLRequest = new URLRequest("script1_3.swf");  // THIS can be any SWF file - same results
    myLoader.load(url);                                    
    addChild(myLoader);  
    The only thing that is in the main time line before this is a page roll over effect component - and if I remove that I have the same problem!  I'm sorry, I don't know what else to provide you without giving you my fla files which I tried to send and they were kicked back!!!
    HELP!

  • Swf file playing problem in limited user in XP

    hi all,
    can anyone help me how to fix this roblem?.... when i try to
    open any web site which has swf content in my limited user account
    (XP os) it is not playing! and when i change my user to
    administrator it is playing properly... pls help me....
    -oviam.

    Hi AxshunJaxun. Have done a bit more testing & web searching and found that I can rename My Documents but not Application Data. Looks like Application Data has some sort of special status in XP and it's the opsys doing the renaming of both copy & source. Since I can keep multiple copies of My Documents and can live with having to make multiple copies of individual Apps. under Application Data I'll go with that. Thanks for your help.

  • How can I stop timeline sounds in external swf files from playing during loading?

    I am having a problem with timeline sounds in external swf files playing during loading in a main swf. Can anyone help me?
    Here is some of the code from the main swf. I hope I have included enough.
    Thanks.
    import flash.events.MouseEvent;
    import flash.display.MovieClip;
    import flash.display.Loader;
    import flash.events.ProgressEvent;
    import flash.events.Event;
    import flash.net.URLRequest;
    import fl.events.SliderEvent;
    import flash.media.SoundTransform;
    preloader_mc.fill_mc.scaleX = 0;
    var swfA:Array = ["part1.swf","part2.swf"];
    var frameA:Array = [];
    var currentLoader:Loader;
    var swfTotalFrames:int;
    var tl:MovieClip = this;
    var st:SoundTransform = new SoundTransform()
    var index:int = 0;
    loadNextF();
    play_slider.enabled = false;
    function loadNextF():void{
                    tl["loader_"+index] = new Loader();
                    tl["loader_"+index].name = index.toString();
                    tl["loader_"+index].contentLoaderInfo.addEventListener(ProgressEvent.PROGRESS,progressF);
                    tl["loader_"+index].contentLoaderInfo.addEventListener(Event.COMPLETE,completeF);
                    tl["loader_"+index].load(new URLRequest(swfA[index]));
    function progressF(e:ProgressEvent):void{
                    var fractionLoaded:Number = index/swfA.length+e.bytesLoaded/(e.bytesTotal*swfA.length);
                    preloader_mc.fill_mc.scaleX = fractionLoaded;
                    preloader_mc.tf.text = (100*fractionLoaded)+"% Loaded";
    function completeF(e:Event):void{
                    tl["loader_"+index].contentLoaderInfo.removeEventListener(ProgressEvent.PROGRESS,progress F);
                    tl["loader_"+index].contentLoaderInfo.removeEventListener(Event.COMPLETE,completeF);
                    SoundMixer.stopAll();
                    var mc:MovieClip = MovieClip(tl["loader_"+index].content);
                    mc.gotoAndStop(1);
                    frameA.push(mc.totalFrames);
                    index++;
                    if(index<swfA.length){
                                    loadNextF();
                    } else {
                                    // all loads complete.  start play.
                                    restart_mc.buttonMode = true;
                                    restart_mc.alpha = 1;
                                    tl.addEventListener(Event.ENTER_FRAME,playUpdateF);
                                    tl.removeChild(preloader_mc);
                                    preloader_mc = null;
                                    play_slider.enabled = true;
                                    playpause_mc.alpha = 1;
                                    currentLoader = tl["loader_0"];
                                    tl.addChild(currentLoader);
                                    MovieClip(currentLoader.content).play();
                                    sliderParamsF();

    import flash.events.MouseEvent;
    import flash.display.MovieClip;
    import flash.display.Loader;
    import flash.events.ProgressEvent;
    import flash.events.Event;
    import flash.net.URLRequest;
    import fl.events.SliderEvent;
    import flash.media.SoundTransform;
    preloader_mc.fill_mc.scaleX = 0;
    var swfA:Array = ["part1.swf","part2.swf"];
    var frameA:Array = [];
    var currentLoader:Loader;
    var swfTotalFrames:int;
    var tl:MovieClip = this;
    var st:SoundTransform = new SoundTransform()
    var index:int = 0;
    loadNextF();
    play_slider.enabled = false;
    function loadNextF():void{
        tl["loader_"+index] = new Loader();
        tl["loader_"+index].name = index.toString();
        tl["loader_"+index].contentLoaderInfo.addEventListener(ProgressEvent.PROGRESS,progressF);
        tl["loader_"+index].contentLoaderInfo.addEventListener(Event.COMPLETE,completeF);
        tl["loader_"+index].load(new URLRequest(swfA[index]));
    function progressF(e:ProgressEvent):void{
        var fractionLoaded:Number = index/swfA.length+e.bytesLoaded/(e.bytesTotal*swfA.length);
        preloader_mc.fill_mc.scaleX = fractionLoaded;
        preloader_mc.tf.text = (100*fractionLoaded)+"% Loaded";
    function completeF(e:Event):void{
        tl["loader_"+index].contentLoaderInfo.removeEventListener(ProgressEvent.PROGRESS,progress F);
        tl["loader_"+index].contentLoaderInfo.removeEventListener(Event.COMPLETE,completeF);
        SoundMixer.stopAll();
        var mc:MovieClip = MovieClip(tl["loader_"+index].content);
        mc.gotoAndStop(1);
        frameA.push(mc.totalFrames);
        index++;
        if(index<swfA.length){
            loadNextF();
        } else {
            // all loads complete.  start play.
            restart_mc.buttonMode = true;
            restart_mc.alpha = 1;
            tl.addEventListener(Event.ENTER_FRAME,playUpdateF);
            tl.removeChild(preloader_mc);
            preloader_mc = null;
            play_slider.enabled = true;
            playpause_mc.alpha = 1;
            currentLoader = tl["loader_0"];
            tl.addChild(currentLoader);
            MovieClip(currentLoader.content).play();
            sliderParamsF();
    ///////////////// start sliders /////////////////////////////////
    sound_slider.addEventListener(SliderEvent.CHANGE,soundSliderF);
    function soundSliderF(e:SliderEvent):void{
        st.volume = e.value/100;
        tl.soundTransform = st;
    play_slider.addEventListener(SliderEvent.CHANGE,playSliderF);
    play_slider.addEventListener(MouseEvent.MOUSE_DOWN,playSliderDownF);
    //play_slider.addEventListener(MouseEvent.MOUSE_UP,playSliderUpF);
    function playSliderDownF(e:MouseEvent):void{
        tl.removeEventListener(Event.ENTER_FRAME,playUpdateF);
        stage.addEventListener(MouseEvent.MOUSE_UP,playSliderUpF);
    function playSliderUpF(e:MouseEvent):void{
        tl.addEventListener(Event.ENTER_FRAME,playUpdateF);
    function playSliderF(e:SliderEvent):void{
        SoundMixer.stopAll();
        var frameNum:int = Math.ceil(swfTotalFrames*e.value/100);
        var partialTotalFrames:int = 0;
        for(var i:int=0;i<frameA.length;i++){
            partialTotalFrames += frameA[i];
            if(partialTotalFrames>=frameNum){
                break;
        partialTotalFrames -= frameA[i];
        //trace(i,frameNum,frameNum-partialTotalFrames);
        if(currentLoader!=tl["loader_"+(i)]){
            tl.removeChild(currentLoader);
            MovieClip(currentLoader.content).stop();
            currentLoader = tl["loader_"+(i)];
            tl.addChild(currentLoader);
        if(playpause_mc.currentFrame==1){
            MovieClip(currentLoader.content).gotoAndPlay(frameNum-partialTotalFrames);
        } else {
            MovieClip(currentLoader.content).gotoAndStop(frameNum-partialTotalFrames);
    function sliderUpdateF(e:Event):void{
        var playedFrames:int = 0;
        for(var i:int=0;i<Number(currentLoader.name);i++){
            playedFrames += frameA[i];
        playedFrames += MovieClip(currentLoader.content).currentFrame;
        play_slider.value = Math.round(100*playedFrames/swfTotalFrames);
    function sliderParamsF():void{
        swfTotalFrames = 0;
        for(var i:int=0;i<swfA.length;i++){
            swfTotalFrames += MovieClip(tl["loader_"+i].content).totalFrames;
    ///////////////// end  sliders //////////////////////////////////
    ///////////////// start playpause restart ///////////////////////
    playpause_mc.addEventListener(MouseEvent.CLICK,playpauseF);
    playpause_mc.alpha = .2;
    restart_mc.addEventListener(MouseEvent.CLICK,restartF);
    restart_mc.buttonMode = false;
    restart_mc.alpha = .2;
    function playpauseF(e:MouseEvent):void{
        if(!e.currentTarget.toggle){
            MovieClip(currentLoader.content).stop();
            tl.removeEventListener(Event.ENTER_FRAME,playUpdateF);
            e.currentTarget.gotoAndStop(2);
        } else {
            MovieClip(currentLoader.content).play();
            tl.addEventListener(Event.ENTER_FRAME,playUpdateF);
            e.currentTarget.gotoAndStop(1);
        e.currentTarget.toggle = !e.currentTarget.toggle;
    ///////////////// end playpause //////////////////////////////
    function playUpdateF(e:Event):void{
        sliderUpdateF(e);
        var playingFrame:int = MovieClip(currentLoader.content).currentFrame;
        if(playingFrame==frameA[Number(currentLoader.name)]){
            // next loader
            MovieClip(currentLoader.content).stop();
            SoundMixer.stopAll();
            MovieClip(currentLoader.content).mute();
            var nextIndex:int = Number(currentLoader.name)+1;
            if(nextIndex<swfA.length){
                tl.removeChild(currentLoader);
                currentLoader = tl["loader_"+nextIndex];
                tl.addChild(currentLoader);
                MovieClip(currentLoader.content).gotoAndPlay(1);
            } else {
                tl.removeEventListener(Event.ENTER_FRAME,playUpdateF);
                playpause_mc.gotoAndStop(2);
                playpause_mc.toggle = !playpause_mc.toggle;
                //playpause_mc.alpha = .2;
                // all swfs have completed play
    function restartF(e:MouseEvent):void{
        MovieClip(currentLoader.content).stop();
        tl.removeChild(currentLoader);
        SoundMixer.stopAll();
        MovieClip(currentLoader.content).mute();
        currentLoader = tl["loader_"+0];
        tl.addChild(currentLoader);
        if(playpause_mc.currentFrame==1){
            MovieClip(currentLoader.content).gotoAndPlay(1);
        } else {
            MovieClip(currentLoader.content).gotoAndStop(1);

  • Swf file not playing in browser

    I have a problem with a swf file which will not play in web browser.
    It played fine until I updated my site. I therefore suspected a pathing issue within dreamweaver and looked thorugh that forum for an answer.
    I tried typing the absolute path to the swf file in the browser address bar and found it straight away. When I clicked on it the screen stayed blank.
    I checked the path to the file and the flv file was relative to the document and not the site.
    swf plays fine in flash player, flash, and locally on dreamweaver.
    I moved the swf up the file tree and changed the links accordingly but still would not play.
    I also tried saving it as a new swf from flash, but that doesn't play either.
    I added another swf to the containing folder and that played fine in the browser.
    When I open the fla file in flash it only shows a flv playback movie, not the elements, I think this is because it was created in after effects.
    Here is the link to the containing folder, the swf file is Home_page_movie_V2.swf
    http://www.joinerycadsolutions.com/Flash/01 Home
    I have other swf files playing fine and this swf played ok originally so I still think it's a pathing problem but I am not that savvy on flash and cannot figure it out.
    Any help would be greatly appreciated, just bear in mind my low level of ability.
    Thanks
    Stuart

    The .swf is loading just fine... but it is expecting to load a .flv video file.
    The path inside the .swf to the .flv file is not correct. The path inside the .swf to the .flv file needs to be relative to the .swf as it's located on the Web page, NOT the physical location of the .swf.
    Here is the absolute address of the .flv:
    http://www.joinerycadsolutions.com/Flash/01%20Home/Home%20V1.flv
    Here is a test player using that address:
    http://www.cidigitalmedia.com/tutorials/flash/cidm_simple_vid_player.html
    So unless your .swf is broken, it just a pathing issue.
    From an old post:
    Pathing issues
    Almost always when it works on the local machine and not the server, it's a pathing problem.
    You can put your Flash related files in whatever folders you want, they do NOT have to be in the root, they do NOT all have to be in the same folder. But if you have a problem and if sticking them all in the root folder works, then you know that the issue was a pathing problem.
    Just remember that paths used in the .swf become relative to the Web page on which the .swf is placed, NOT it’s physical location.  So for example, if your .swf is in the flash/data folder and you use that .swf on a Web page in the root folder, you are in effect, removing that .swf from flash/data and putting it in root. So if the .swf is loading any related files (xml, images, video, etc), the path used inside the .swf to load the .xml file has to be relative to it's new location in root and then back down into flash/data. This is true even though when testing the .swf by itself, it can be inside flash/data and work just fine, since relative to it's location, the path is just fine, they are in the same folder. But if that same path is used when the .swf is placed on a page two folder levels up, the relative path has changed, the old "same folder" path will not work.
    In fact if you are placing the .swf on a web page in a different folder than the .swf is stored in, and that .swf calls external assets, then direct clicking and opening of the .swf in it’s folder should NOT work! That’s because the paths to the external assets should be relative to the Web page and not the physical location of the .swf.
    So just be sure that you use addresses relative to the final Web page locations (not physical file locations) and you can put the Flash related files in what ever folders you want.
    Best wishes,
    Eye for Video
    www.cidigitalmedia.com
    Best wishes,
    Adninjastrator

  • DW 8 to play swf file in popup window

    The swf file plays fine with the source file (flv) on
    streaming server. see page
    http://www.jobclub.com/testing/healthcare.html
    Open Employment Video Profile in center. All I want to do is to
    have iit play in a popup window.
    But I cannot figure out how to play the swf file in a popup
    window
    <object
    classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="
    http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0"
    <script type="text/javascript">
    AC_FL_RunContent( 'codebase','
    http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0','wid th','285','height','231','title','HealthSouth','src','eva/evaemp/HC240','quality','high',' pluginspage','http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=Shockwa veFlash','movie','eva/evaemp/HC240'
    ); //end AC code
    </script><noscript><object
    classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="
    http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0"
    width="285" height="231" title="HealthSouth">
    <param name="movie" value="eva/evaemp/HC240.swf" />
    <param name="quality" value="high" />
    <embed src="eva/evaemp/HC240.swf" quality="high"
    pluginspage="
    http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash"
    type="application/x-shockwave-flash" width="285"
    height="231"></embed>
    </object>
    </noscript>
    Thanks
    Mat Media

    Do you really want to open a new window, or do you just want
    to show a hidden layer that looks like a pop-up?

  • I've installed Flash Player, why can't I play a swf file?

    I'm trying to play a swf file in Windows 7. I've been able to do this before many times, using Flash Player, but it doesn't work now. I've recently done a complete reinstall of Windows 7 and my apps, and this is the first time I've tried to play a swf file since then.
    When I double-click a swf file, I get the "Windows can't open this file" dialog box. If I select "Use the web service..." it takes me to the Adobe website Flash Player installation page. (I've installed it previously, and I've installed it - twice - today.) If I select "Select a program from a list...", the list doesn't include Flash Player, though it does allow me to play the file in a browser.
    Some of my swf files I created with Captivate, and published them with an html file. When I open the html file, the swf file plays properly. Shouldn't I be able to play the swf file in the player, without opening the html file?
    Should I be able to see the player in my start menu programs, or in the Programs folder? I can't find it on my computer. Is there something else I need to install?
    -Stuart

    http://forums.adobe.com/thread/1195540

Maybe you are looking for