Can't stop loaded .swf from looping

I have a loaded .swf that has the necesary stops to just play once and stop. It works when testing the movie, but once uploaded to the server, it loops forever, any ideas,  I am using ActionScript 2.0

it works when tested in HTML browser, but not when uploaded to server

Similar Messages

  • I can't stop my song from looping back to the beginning

    I have created some backing tracks for a swing band that has lost its rhythm section and have to date played them back (via a big speaker) using Logic pro X on a macbook air.
    I want to use my ipad instead as it's smaller and handier when you have to juggle with ipad, an instrument, sheet music and mutes etc..
    I've succeeded in copying tracks exported from Logic into GarageBand iOS version using the "Export All Tracks as Audio Files" option.  I imported them as individual tracks into GB and they play back just fine.  However...
    I can't stop them from looping back and starting again, which in a rehearsal environment I DO NOT need!  I assume this is because I had to import them using the loop-loading tool - set to "audio" - in GB iOS.  Can anyone help me get round this please.  Or is there an iOS DAW that would do this job instead of GB?
    Many thanks in advance.

    Looks like playback for GB on iOS always loops the current section or the whole song. Export the songs to iTunes and you can play them as you want, probably putting each in its own playlist so it is easier to play once then stop, or by adding long silences between tracks that you can then skip when you are ready.
    tt2

  • How can I stop iCloud photo from looping a failed photo upload?

    My mother has an iMac that was mysteriously losing HD space. It turns out that the process called iCloud Photo evidently was trying and failing to upload a corrupt photo that I had inadvertently put in her iPhoto app. Every few seconds a copy of the photo was appearing in the folder named com.apple.photostream-agent. There were 22,000 copies of this photo.
    With each failed photo upload attempt, these errors also were logged in console:
    1/4/15 7:50:57.709 PM com.apple.photostream-agent[343]: [publisher:didEncounterError:publishingAssetCollections:] Failed to upload asset uqzx6U1gTAi5HumqNsH3YA
    1/4/15 7:50:57.808 PM com.apple.photostream-agent[343]: SQL operation failed with code 11
    I deleted the photos and restored the HD space after killing the iCloud Photo process in Activity Monitor. Then I removed the photo out of iPhoto.
    The problem is that should iCloud Photo restart, say, through a computer restart, the problem starts all over again. Apparently removing the photo from iPhoto did not do the trick.
    How can I get iCloud Photo to stop trying to upload this photo?

    The problem is that should iCloud Photo restart, say, through a computer restart, the problem starts all over again. Apparently removing the photo from iPhoto did not do the trick.
    Did you delete the corrupted photo from its event and from My Photo Stream as well? Have you deleted the photo completely by emptying iPhoto's Trash and the System Trash?
    You could also try to delete the photos from the folder ~/Library/Application Support/iLifeAssetManagement/assets/sub/
    That will remove the temporary copy of "My Photo Stream" on the Mac from the user library.
    The user library is hidden by default. To open the hidden User Library:
    Use the Finder's "Go" menu.
    Click "Go", then hold down the options key, until you are seeing "Library" in the drop down menu appear and click it.
    In the Finder window that will open navigate to the folder ~/Library/Application Support/iLifeAssetManagement/assets/sub/.

  • How can I stop a sound from looping so it plays only once each time the up key is pressed?

    Hi there here is my code, the basis is it is playing a mp3 from my library.
    Basically as the topic suggests I only want the sound to play once each time the UP arrow key is pressed. At the moment when you hold the up arrow down the sound keeps triggering and looping and gets really loud and noisy.
    Here is my code for my game:
    package com.chasegame.components
              import flash.display.MovieClip;
              import flash.display.Stage;
              import flash.events.Event;
              import com.tech.utils.KeyObject;
              import flash.ui.Keyboard;
              import flash.media.Sound;
              import flash.media.SoundChannel;
              public class SpaceShip extends MovieClip
                        private var key:KeyObject;
                        private var speed:Number = 0.3;
                        private var rotateSpeed:Number = 5;
                        private var vx:Number = 0;
                        private var vy:Number = 0;
                        private var friction:Number = 0.95;
                        private var shipSound:roar = new roar();
                        private var shipSoundChannel:SoundChannel = new SoundChannel();
                        public function SpaceShip () : void
                                            key = new KeyObject(stage);
                                            addEventListener(Event.ENTER_FRAME, loop, false, 0, true);
                        public function loop(e:Event) : void
                                            if (key.isDown(Keyboard.UP))
                                                           vy += Math.sin(degreesToRadians(rotation)) * speed;
                                                           vx += Math.cos(degreesToRadians(rotation)) * speed;
                                                           shipSoundChannel = shipSound.play();
                             else
                                                           vy *= friction;
                                                           vx *= friction;
                                  if (key.isDown(Keyboard.RIGHT))
                                            rotation += rotateSpeed;
                                  else if (key.isDown(Keyboard.LEFT))
                                            rotation -= rotateSpeed;
                                  y += vy;
                                  x += vx;
                                  if (x > stage.stageWidth)
                                            x = 0;
                                  else if (x < 0)
                                            x = stage.stageWidth;
                                  if (y > stage.stageHeight)
                                            y = 0;
                                  else if (y < 0)
                                            y = stage.stageHeight;
                        public function degreesToRadians(degrees:Number) : Number
                                  return degrees * Math.PI / 180;

    If you want the sound to only play once when the key is pressed then you don't want to have it in the ENTER_FRAME event handler like you have it.  It is starting new sounds at the frame rate of your file the way you have it now.
    Try having an event listener dedicated to a KeyboardEvent.KEY_DOWN event where you detect when the UP key gets pressed and use that to trigger playing the sound.

  • How to effectively remove a loaded SWF from the stage?

    I can not figure out a proper coding to remove a loded SWF from the stage.
    Here is my set up.
    I have a layout segmented into labeled section. In the section labeled "products" I have a layout consisting of product images acting as buttons which bring a user to another labeled section "prdctsPopUps"
    In the "prdctsPopUps" section I have placed an instance of LoaderMax placed into an mc container. Placing LoaderMax into an mc container automatically resolved an issue of clearing loaded SWFs from stage when I come back to "products" section.
    I specified the variable in the "products" section with the following set up:
    var sourceVar_ProductsPopUps:String;
    function onClickSumix1PopUp(event:MouseEvent):void {
                        sourceVar_ProductsPopUps="prdcts_popups/sumix1-popup_tl.swf";
                        gotoAndPlay("prdctsPopUps");
    So each button has its own "....swf" URL and they all open fine and I can come back to "products" section without any issues.
    However inside the swf (which loads through LoaderMax which is placed into an mc) there are other buttons which bring a user to labeled section "xyz". Which also functions properly. It opens as it is supposed to be and without any previously loaded "...swf" on the stage.
    At the labeled section "xyz" there is a limited set of buttons repeating from section "products" which has to bring a user back to the same set up in the "prdctsPopUps" labeled section and open a corresponding "...swf" .
    However only the last opened "...swf" will appear in that section. Effectively the one which was originally opened from the "prdctsPopUps" section and not the one which was supposed to be opened from the "xyz" section.
    I can not understand why it would work from one labeled section and not from another. I can not figure out on which section which code/function needed to be placed.
    Here is the set up from a button from the "xyz" section whcih supposed to bring a user to the same "prdctsPopUps" section but to load a different "...swf"
    var sourceVar_ProductsPopUps_fromXYZ:String;
    function onClick_floralytePopUp_fromXYZ(event:MouseEvent) :void {
                        sourceVar_ProductsPopUps_fromXYZ="prdcts_popups/floralyte-popup_tl.swf";
                        gotoAndPlay("prdctsPopUps");
    Here is the code set up for the LoaderMax from the "prdctsPopUps" section:
    var loaderProductPopUps:SWFLoader = new SWFLoader(sourceVar_ProductsPopUps,
                                                                                                        estimatedBytes:5000,
                                                                                                        container:holderMovieClip,
                                                                                                        onProgress:progressHandler,
                                                                                                        onComplete:completeHandler,
                                                                                                        centerRegistration:true,
                                                                                                        alpha:1,
                                                                                                        scaleMode:"none",
                                                                                                        width:540,
                                                                                                        height:730,
                                                                                                        crop:true,
                                                                                                        autoPlay:false
    function progressHandler(event:LoaderEvent):void{
              progressBarPopUp_mc.gradientbarPopUp_mc.scaleX = loaderProductPopUps.progress;
    function completeHandler(event:LoaderEvent):void{
              var loadedImage:ContentDisplay = event.target.content;
              TweenMax.to(progressBarPopUp_mc, 1.5, {alpha:0, scaleX:0.25, scaleY:0.25});
    loaderProductPopUps.load();
    Is there something which needs to be imported, or specific function needs to be specified in a specific labeled section?

    actually, i think you'll need to use something like:
    var loaderProductPopUps:SWFLoader;
    if ((loaderProductPopUps){
    if(loaderProductPopUps.content)){
       loaderProductPopUps.unload();
    loaderProductPopUps= new SWFLoader(sourceVar_ProductsPopUps, //the value of sourceVar_ProductsPopUps allows to load mulitple SWFs from the products page.
                                                                                                         estimatedBytes:5000 ,
                                                                                                         container:holderMov ieClip,// more convinient and easier to manage if to place the LoaderMax into an empty mc (holderMovieClip)
                                                                                                                                                                         // if not will work as well. Then the line container:holderMovieClip, has to be replaced with container:this,
                                                                                                                                                                         // can be any size, can not be scaled as it distorts the content
                                                                                                         onProgress:progress Handler,
                                                                                                         onComplete:complete Handler,
                                                                                                         centerRegistration: true,
                                                                                                         //x:-260, y:-320, //no need for this is if used: centerRegistration:true,
                                                                                                         alpha:1,
                                                                                                         scaleMode:"none",
                                                                                                         //scaleX:0, scaleY:0,
                                                                                                         //vAlign:"top",
                                                                                                         width:540,
                                                                                                         height:730,//scales proportionally but I need to cut off the edges
                                                                                                         crop:true,
                                                                                                         autoPlay:false
    function progressHandler(event:LoaderEvent):void{
              progressBarPopUp_mc.gradientbarPopUp_mc.scaleX = loaderProductPopUps.progress;
    function completeHandler(event:LoaderEvent):void{
              var loadedImage:ContentDisplay = event.target.content;
              //TweenMax.to(loadedImage, 1.5, {alpha:1, scaleX:1, scaleY:1});//only need this line if corresponding values are changed in SWF loader constructor
              TweenMax.to(progressBarPopUp_mc, 1.5, {alpha:0, scaleX:0.25, scaleY:0.25});
    loaderProductPopUps.load();

  • How can I stop the program from going through all of the text previously put in.  It is making the process very slow.

    How can I stop the program from going through all of the text previously put in.  It is making the process very slow. 

    while True:
    and just indent everything else under it
    Ends when you press ^C.
    if you wish to have a way to break out of the loop, say, when you press enter at the VPC number without entering anything, add the following after your vpc input:
    if not vpc:
    break
    which will break out of the while loop and end your program.
    Last edited by buttons (2007-12-14 22:03:06)

  • Is there a way to stop flash player from looping on someone elses website?

    Is there a way to stop flash player from looping on someone elses website?
    The longer we have the site open the more memory it uses as flash continues to loop.

    how can i use flash player on my website http://howhut.com/ its a tutorial website and i want to use my own flash player instead of using embeded code from other video websites. Is there any way?

  • All my contact are being copied to my friend's iphone and i also am getting his contacts on my phone,when i delete a contact it also deletes it from his phone,we are sharing the same apple ID. How can i stop our contacts from being shared between us

    All my contact are being copied to my friend's iphone and i also am getting his contacts on my phone,when i delete a contact it also deletes it from his phone,we are sharing the same apple ID. How can i stop our contacts from being shared between us

    Everything that you have checked in your icloud settings will be shared between devices using the same Apple ID.  If you don't want icloud to share that information, then simply turn off that process under settings > icloud

  • How can I stop my iPhone from synching my contacts and groups lists twice?

    How can I stop my iPhone from synching my contacts and groups lists twice....I am using iCloud but am not sure how correct this duplication.

    Go into Settings>Mail, Contacts, Calendars. Is this happening at the bottom in the signature section, or in the header of the mail where your email address is? If it is the signature, then go to the Signature area of the Mail settings. If this is in the header, then go to the account in question and edit your account information to include your name instead of Johnny.

  • When I record an audio track, there is a waveform. When I stop recording, the waveform disappears and becomes a straight line. It also disappears from the track edit window. But the sound is there. How can I stop the waveform from disappearing?

    When I record an audio track using Logic Pro X, there is a visible waveform which appears as I record. When I stop recording, the waveform disappears and becomes a straight line. It also disappears from the track edit window. But the sound is still there. How can I stop the waveform from disappearing? And can I do something to view it after it has disappeared? Anyone know the anser?

    In Logic:
    Preferences/Audio Set Recording Delay to 0 <zero>
    This should always be set to zero unless a specific set of circumstances exist and you're audio drivers do not report position correctly.
    On occasion, usually when importing a Logic 9 project, Logic-X randomly changes this to a negative/positive number.  It's actually a bug in Logic, as it should always display the waveform.

  • How can I stop a JFrame from closing when clicking the close button.

    I need to display a dialog when a user attempts to close my app, giving them the option to close, minimize or cancel. How can I stop the form from closing after the user makes his selection? I have the folllowing code, but my form still closes after selecting an option:
    private void formWindowClosing(java.awt.event.WindowEvent evt) {                                  
            //An array of Strings to be used a buttons in a JOptionDialog
            String[] options = {"Close", "Minimize", "Cancel"};
            //Determines what the user wants to do
            int result = JOptionPane.showOptionDialog(null, "What to you want to do?  Close the application, minimize or cancel?", "Please select an option...", 0, JOptionPane.QUESTION_MESSAGE, null, options, options[0]);
           //Determines what to do, depending on the user's choice
            if (result == 0) {
                //Close the application
                System.exit(0);
            } else if (result == 1) {
                //Minimize the application
                this.setState(Frame.ICONIFIED);
        }Any help would be much appreciated!

    import java.awt.event.*;
    import javax.swing.*;
    public class test extends JFrame {
         public static void main( String[] args ) {
              new test();
         public test() {
              setSize( 200, 200 );
              //the next line makes the JFrame not close
              setDefaultCloseOperation( JFrame.DO_NOTHING_ON_CLOSE );
              //now add a listener that does the trick
              addWindowListener( new WindowAdapter() {
                        public void windowClosing( WindowEvent e ) {
                             //ask the user and do whatever you wish
              setVisible( true );
    }

  • How can i stop my phone from vibrating in my ear when i am on the call?

    How can i stop my phone from vibrating in my ear when i am on the call? I usually keeps my phone on vibration mode so i get notified when there is a new mail or message? However, when i am on the call, then also, it vibrates in my ear everytime a mail comes. Very irritating. I use my business phone and mails keep coming every 2-5 mins.
    Please help.

    very impractical . specially when you call A LOT and receive notifications constantly!

  • How can i stop internet media from flooding elements 6?

    how can I stop elements 6 from constantly importing internet photos and flooding my memory?

    PSE isn't importing photos off the internet, but it could be importing photos from your hard drive that are being placed there as you browse the internet.
    It's likely that you've told PSE to import all new photos on your hard drive using the Watched Folders mechanism.
    In the Organizer, go to File > Watch Folders...
    See the list of folders PSE is currently watching.
    Check the setting near the bottom of the dialog as to what PSE should do when it finds new images in the folders it is watching.
    Make any necessary changes to have it do what you want it to do.
    Cheers
    Bob

  • Hi, how can I stop my screen from freezing up.Its acts like a scratch card, I use the mouse cursor to rub away to find the password box?

    HI,how can I stop my screen from freezing, It acts like a scratch card,I run over it with the mouse to scratch away at the grey screen to find the password box
    underneath?

    OS X: Login window partially appears, cursor movement redraws screen

  • Why has my iPad1 stopped loading photos from my camera?  I have 40G of free space.

    Why has my iPad1 stopped loading photos from my camera?  I have >40G of free space.  It worked fine the first 3 times and then stopped.  I also tried the SD card adapter and it doesn't recognize it either.

    Are you using iCloud photo library beta.
    Are any of your photos actually video.

Maybe you are looking for

  • Visibility of a field in webdynpro

    Hi All, I am working on webdynpro.I am facing a problem.I have a field in one component say COUNTRY.If Country = 'some value',a field should visible.This particular field is in another component.How can I handle this? Can anyone gimme some inputs on

  • Itunes can't locate files after I listen to it on the Ipod

    It seems that every time I listen to a song, I notice that Itunes can't locate it anymore. When I go to Itunes and look in my music folder, there is an exclamation point next to the song. When I click on it, the error message reads "cannot locate fil

  • How to Run a .sql file from simple java class

    How to execute a .sql file consisting of Complex Queries,procedures through simple java class. The queries may have different delimiters,queries independant of each other. I am able to do with Specific De-limiter.But I need in such a way that there s

  • Using Haxe with Flash Builder

    Has anyone tried this?

  • WD Drive Manager Services component error message MyBook Studio Edition II 2TB on iMac

    For five months I have been using a WD MyBook Studio Edition II 2TB in RAID 1 mode on a 27" iMac i7, 2.93 GHz, running Mac OS X 10.6.7, as a Time Machine connected via FW800.  Initial installation and operation was all good. Recently, the blue WD log