How to stop a function?

I have this code I want to end on a specific image? How would I do that? It could also be called on to play 115 images if it's easier.

SCREEN_WIDTH = 750

screen_height = 475

frequency = 0 / / < < INCREASE TO REDUCE the QUANTITY PAPERS

//

//

MovieClip.prototype.serConfeti = function () {}

This._x = Math.ceil (Math.Random () * SCREEN_WIDTH)

This._xscale = Math.ceil (Math.Random () * screen_height)

This ._yscale = this ._xscale

This.Mover)

This.coloreame)

}

function getPorcentaje() {}

var number = Math.ceil (Math.random () * 20)

return number

}

getOffset() {} function

var number = Math.ceil (Math.random () * 255)

var buleano = Math.round (Math.random () * 1)

If (buleano == 1) {}

number = number * 1

}

return number

}

MovieClip.prototype.mover = function () {}

this.onEnterFrame = function () {}

If (this ._y < 475) {}

This ._y += 10

This ._xscale = Math.random () * 100

This ._rotation = Math.random () * 360

} else {}

this.removeMovieClip)

}

}

}

MovieClip.prototype.caidaConfeti = function () {}

this.createEmptyMovieClip("caida_mc",1)

var count = 0

var confCount = 1

This.caida_mc.onEnterFrame = Function () {}

if(Count<frecuency) {}

Count ++

} else {}

this.attachMovie ("conf", "conf" + confCount, confCount)

eval("this.caida_mc.conf"+confCount).serConfeti)

Count = 1

confCount ++

}

}

}

//

_root.caidaConfeti)

When you want to stop this loop, use:

delete _root.caida_mc.onEnterFrame;

Tags: Adobe Animate

Similar Questions

  • stop the function allow automatic redirection

    How to stop the function allow automatic redirection? I click on the links and every time I have to click on allow before the browser redirects me to the next page. Often I am forced out of investigations because of this. I want to disable this feature and be redirected automatically every time. Cannot find how to disable this option in the Security section

    You can open the topic: config page through the address bar and search Prefs that refer to ask.com.
    You can restore the default user set (in bold) ask.com pref (s) prefs via the context menu.

    You can open the topic: config page via the address bar.
    You can accept the warning and click on "I'll be careful" to continue.

  • When I try to download on a site, hundreds of new tabs begin to run. How to stop this problm that started recently?

    When I try to download it from a site, hundreds of new tabs begin to open. This is a recent thing, how he stop?

    What is in these new tabs? Ads?

    Adblock more {web link}
    Blocks annoying video ads on YouTube, Facebook ads, banners
    and much more. Adblock Plus blocks all the annoying ads, and
    supports Web sites by blocking is not discrete (configurable) default ads.

    Pop-up Addon Adblock more {web link}
    Adblock Plus pop-up Addon - extends the functionality of blocking of the
    Adblock Plus for those annoying windows pop up that opens on the mouse
    clicks and other actions of the user.

    Forum; Homepage of Adblock Plus {web link}

  • How to stop the red symbols to appear when I use the question mark, the apostrophe and slash keys. This only happens in my e-mail program.

    How to stop the red symbol to appear when I use the key question mark in my e-mail program.

    HI Julie Delany.

    1. for how long are you facing this problem?

    2. is there any changes made prior to this issue?

    3. may I know what mail client do you use?

    Disable the function key (lock) and then check

  • How to stop Auto maximize a window in Windows 7

    How to stop automatic expansion of a window in Windows 7?  I'd rather have 3 or 4 applications open and able to show all the - or at least a section of the window that I can choose.  In Windows 7 if I move a window resized to the edge of the desk she automatically enlarged mode full screen; It is such a waste of time.  I have to stop and resize the window to the bottom once again.

    I don't want the same windows in the same places - I just want to stop the automatic expansion of a window.

    I HAV been looking for an answer - I was not able to find the solution, hope you can help.

    loafd

    In addition to the foregoing comments, I also wanted to mention that the automatic sizing has held that if the bumps on yourmouse pointer over the edge of the screen.  Being aware of that could make the difference for you and allow you to take advantage of the functionality, while preventing unnecessary sizing.

    Shawn B Keene | Microsoft contributor community

  • Wallpaper & theme changes randomly - how to stop this?

    How to stop windows change randomly my paper painted & theme.

    I will customize it via Control Panel, be careful not to check several wallpapers. But he keeps between 2 wallpaper / themes & one of them autohides my taskbar.

    Don't want to have to continue to go to the control panel to update the settings!

    Hi Amerrrs,
     
    (a) don't you make changes to your computer before the onset of the problem?
    (b) when the wallpaper and theme changes it? During hibernation?
    (c) was your computer pre-installed with Windows 7?
    (d) does when working on an application? A third-party application could be causing the problem.
    (e) using a laptop? There are times that your laptop battery is low and the screen goes to the basic theme.

    If you do not want to change the wallpaper or themes, make sure that you have not set the time to change the wallpaper and theme or never put if you can.  It could be the screensaver that rises, which mask the taskbar

    You can place your computer in a clean boot State and check
     
    There could be a possibility that a third-party application conflicts and the problem occurs.
     
    You can start Windows 7 by using a minimal set of drivers and startup programs. This type of boot is known as a 'clean boot'. A clean boot helps eliminate software conflicts.

    Note When you perform a clean boot, you may temporarily lose some functionality. When you start the computer as usual, the function returns. However, you may receive the error message, or you can experience the original behavior.
     
    Follow the steps below to put your computer in a clean boot state:
     
    Note If the computer is connected to a network, network policy settings may prevent you from following these steps. We recommend strongly that you do not use System Configuration utility to change startup options on the computer, unless a support engineer Microsoft directs you to do so. This can make the computer unusable.
     
    1. sign the computer by using an account with administrator rights.
     
    2. click on the Start button, type msconfig.exe in the start search box and press ENTER to start the System Configuration utility.
     
    If you are prompted for an administrator password or for confirmation, type your password, or click on continue.
     
    3. on the general tab, click Selective startup, and then clear the check box load startup items. (The check box use the file Boot is not available.)
     
    4. on the Services tab, click to select the skin all the Microsoft services check box, and then click Disable all.
     
    Note Following this step lets services Microsoft continue to run. These services include networking, Plug-and-Play, record of events, error reporting, and other services. If you disable these services, you can permanently delete all restore points. Do not do this if you want to use to restore the system with the existing restore points.
     
    5. click OK and then click on restart.

    Check the link to find out more below clean boot:
    http://support.Microsoft.com/kb/929135

    When you are finished troubleshooting, follow these steps to reset the computer to start as usual:
     
    1. click the Start button, type msconfig.exe in the start search box and press ENTER.
    If you are prompted for an administrator password or for confirmation, type your password, or click on continue.
     
    2. on the general tab, click the Normal startup option, and then click OK.
     
    3. When you are prompted to restart the computer, click on restart.
     
     
    Post back with your answers
     
    Aziz Nadeem - Microsoft Support

  • Library CC animate sounds how to tie and how to stop and play?

    Library CC animate sounds how to tie and how to stop and play?

    for example:

    allSounds = ["snd_1", "snd_2"]; ("snd_1" - the name of link)

    myInstance = createjs. Sound.Play(allSounds[0]);

    allSounds = ["snd_1", "snd_2"];

    allInstances = [];

    allSounds.forEach (function (item) {}

    var audioInstance = playSound (item);

    allInstances.push (audioInstance);

    });

  • How to stop the 30 day trial of Lightroom Mobile?

    I just installed upgrading the LR5 to LR6. I should have disabled ' ' this function of the configuration. How to stop the 30 day trial of Lightroom Mobile?

    Thanks for the update.

    In Lightroom, click on your dog tag drop-down menu and select change identity plate.

    Select 'Lightroom' as the identity plate, and then click OK

    Concerning

    Assani

  • How to stop the menu showing "export pdf, create pdf, edit pdf, comment" etc

    How to stop the menu showing "export pdf, create pdf, edit pdf, comment" etc. which always appear on the right side of the screen every time I open a pdf file?  We do not pay for any of these functions and may not use it.  The menu takes a good amount of screen and is quite annoying to have to hide whenever I open a pdf file.

    Hi tonyc34311488,

    You can disable the tool of the right pane in the latest version of Adobe Acrobat Reader DC, please refer to this note of release hide the tools Panel in Acrobat and Acrobat Reader DC at all times.

    Kind regards

    Nicos

  • How to stop the recursion on event

    Hello

    I have a table shape with text fields that have the onchange event handlers. The event handlers call a function that changes many of the fields, so there is a lot of recursion. How could stop all other events when a change occurs?


    Tiina

    Normally, changing a value via javascript will not trigger an onchange event. However, dynamic action of the apex 'value' default will trigger a change event. So if you use dynamic actions then the solution would be to define 'Change to suppress event' on 'Yes' on real action.
    If you use javascript, check if you use $s to set a value. The docs say this:

    PValue value is stored in the hidden field to return. The pSuppressChangeEvent parameter is optional. By the way either FAKE or not passing this parameter value results in a change event of shooting for the element set. Pass TRUE to prevent the change event firing for the element set.

    If you do not use dynamic measurements of the $s function, then check if a change event is raised in your javascript, usually done by '. change().

  • How to stop the water flow?

    Hello

    I need to make the water from the shower, when you click on shower.

    And the water should stop after 5 seconds.

    The code is below.

    Water flows well. But I fail to stop it.

    I added a timer that starts when the shower is clicked. And must stop the flow of water after 5 seconds have elapsed.

    With the lines

    If (stop = true)

    {

    break;

    trace ("Break");

    }

    It looks like the for loop breaks right from the start, from the first second. But not completely, somehow 1 or 2 drops are fluid.

    Without these lines, nothing happens when the time is up (5 seconds click on the shower). The water just flows.

    Can anyone help? How to stop water flowing after 5 seconds and cleaning of the table and stage of water drops?

    Thanks in advance!

    import flash.display.MovieClip;

    import flash.events.Event;

    import flash.utils.Timer;

    import flash.events.TimerEvent;

    var WatertropArray: Array = new Array();

    var WaterArea01: MovieClip = new WaterArea();

    var WaterBorder01: MovieClip = new WaterBorder();

    var timer: Timer = new Timer (1, 5000);

    var stop: Boolean;

    var i: uint;

    Shower.addEventListener (MouseEvent.CLICK, waterFlowStart);

    function waterFlowStart(event: MouseEvent): void

    {

    addChild (WaterArea01);

    WaterArea01.x = WaterArea00.x;

    WaterArea01.y = WaterArea00.y;

    WaterArea01.alpha = 0;

    addChild (WaterBorder01);

    WaterBorder01.x = WaterBorder00.x;

    WaterBorder01.y = WaterBorder00.y;

    WaterBorder01.alpha = 0;

    Stop = false;

    timer.addEventListener (TimerEvent.TIMER, waterFlowEnd);

    Timer.Start ();

    addWaterdrops();

    Shower.removeEventListener (MouseEvent.CLICK, waterFlowStart);

    }

    function addWaterdrops(): void

    {

    for (var i: uint = 0; i < 100; i ++)

    {

    waterDrop var: MovieClip = new Waterdrop();

    addChild (waterDrop);

    waterDrop.x = Math.round (Math.random () * stage.stageWidth / 1.5);

    waterDrop.y = Math.round (Math.random () * stage.stageHeight / 3);

    waterDrop.alpha = 0;

    waterDrop.rotation = - 12;

    WatertropArray.push (waterDrop);

    trace ("drops of water added");

    moveWaterdrops();

    }

    }

    function moveWaterdrops(): void

    {

    waterDrop00.addEventListener (Event.ENTER_FRAME, water flow);

    }

    function waterFlow(event: Event): void

    {

    for (var i: uint = 0; i < WatertropArray.length; i ++)

    {

    WatertropArray [i] there = 8;

    WatertropArray [i] .x += 5;

    trace (i);

    If (WatertropArray [i] .hitTestObject (WaterArea01))

    {

    WatertropArray [i] .alpha = Math.Random ();

    WatertropArray [i] .scaleX = Math.Random ();

    WatertropArray [i] .scaleY = .scaleX [i] WatertropArray;

    }

    If (WatertropArray [i] .hitTestObject (WaterBorder01) |) WatertropArray [i] .x > stage.stageWidth | WatertropArray [i] there > stage.stageHeight / 2).

    {

    WatertropArray [i] .x = Math.round (Math.random () * stage.stageWidth / 1.5);

    WatertropArray [i] there = Math.round (Math.random () * stage.stageHeight / 3);

    . Alpha WatertropArray [i] = 0;

    }

    If (stop = true)

    {

    break;

    trace ("Break");

    }

    }

    }

    function waterFlowEnd(event: TimerEvent): void

    {

    trace ("TIME OVER");

    Stop = true;

    stoppTrue();

    }

    function stoppTrue(): void

    {

    for (var i: uint = WatertropArray.length; i > WatertropArray.length; i-)

    {

    Remove (i);

    }

    }

    function remove(idx: int)

    {

    removeChild (WatertropArray [idx]);

    WatertropArray.splice (idx, 1);

    trace ("removed");

    removeChild (waterDrop00);

    trace (i);

    }

    I should be an int, not a uint.

  • Auto video game. How to stop

    1. in this automatic script of video playback. How to stop this.
    2. video AutoPlay. Suppose that I click on play/pause, then video showing everything first. What is the problem in the script?

    Here is the solution of my file for the game of the break:

    import flash.net.NetConnection;
    to import flash.net.NetStream;
    import flash.media.Video;
    import flash.utils.Timer;
    import flash.net.SharedObject;
    import flash.display.Stage;
    import flash.display.StageAlign;
    import flash.display.StageScaleMode;
    import flash.events.Event;
    import flash.events.MouseEvent;

    stage.scaleMode = StageScaleMode.NO_SCALE;
    internship. Align = StageAlign.TOP_LEFT;

    # CONSTANTS
    const BUFFER_TIME:Number = 8;
    const SMOOTHING: Boolean = true;
    const DEFAULT_VOLUME:Number = 0.6;
    const DISPLAY_TIMER_UPDATE_DELAY:int = 10;

    # Variables

    var videoURL:String = "cuepoints.flv";
    var videoURL:String = "video_1;
    the var connection: NetConnection;
    var stream: NetStream;
    Video: video of var = new Video();
    var intLastVolume:Number = DEFAULT_VOLUME;
    var shoVideoPlayerSettings:SharedObject = SharedObject.getLocal ("playerSettings");
    var bolLoaded:Boolean = false;
    var bolVolumeScrub:Boolean = false;
    var bolProgressScrub:Boolean = false;
    var objInfo:Object;
    var tmrDisplay:Timer;

    hide buttons
    mcVideoControls.btnPlay.visible = true;
    mcVideoControls.btnUnmute.visible = false;
    mcVideoControls.btnPause.visible = false;
    mcVideoControls.btnFullscreenOff.visible = false;
       
    Set the width of filling of progress/preload on 1
    mcVideoControls.mcProgressFill.mcFillRed.width = 1;
    mcVideoControls.mcProgressFill.mcFillGrey.width = 1;
       
    Label SETTING date and time
    mcVideoControls.lblTimeDuration.htmlText = "00:00 / 00:00";

    Add the global event listener when the mouse is released
    stage.addEventListener (MouseEvent.MOUSE_UP, mouseReleased);

    Add fullscreen earphone
    stage.addEventListener (FullScreenEvent.FULL_SCREEN, onFullscreen);
       
    Add event listeners to the buttons
    mcVideoControls.btnPause.addEventListener (MouseEvent.CLICK, pauseClicked);
    mcVideoControls.btnPlay.addEventListener (MouseEvent.CLICK, playClicked);
    mcVideoControls.btnStop.addEventListener (MouseEvent.CLICK, stopClicked);
    mcVideoControls.btnMute.addEventListener (MouseEvent.CLICK, muteClicked);
    mcVideoControls.btnUnmute.addEventListener (MouseEvent.CLICK, unmuteClicked);
    mcVideoControls.btnFullscreenOn.addEventListener (MouseEvent.CLICK, fullscreenOnClicked);
    mcVideoControls.btnFullscreenOff.addEventListener (MouseEvent.CLICK, fullscreenOffClicked);
               
    mcVideoControls.btnVolumeBar.addEventListener (MouseEvent.MOUSE_DOWN, volumeScrubberClicked);
    mcVideoControls.mcVolumeScrubber.btnVolumeScrubber.addEventListener (MouseEvent.MOUSE_DOWN, volumeScrubberClicked);
    mcVideoControls.btnProgressBar.addEventListener (MouseEvent.MOUSE_DOWN, progressScrubberClicked);
    mcVideoControls.mcProgressScrubber.btnProgressScrubber.addEventListener (MouseEvent.MOUSE_, progressScrubberClicked);

    tmrDisplay = new Timer (DISPLAY_TIMER_UPDATE_DELAY);
    tmrDisplay.addEventListener (TimerEvent.TIMER, updateDisplay);
       
    stage.addEventListener (Event.RESIZE, resizeHandler)

    //---------------------------------------------------------------------------------------- ------------------------------------------

    NetConnectionExample();
    function NetConnectionExample()
    {
    connection = new NetConnection();
    connection.addEventListener (NetStatusEvent.NET_STATUS, netStatusHandler);
    connection.addEventListener (SecurityErrorEvent.SECURITY_ERROR, securityErrorHandler);
    Connection.Connect (null);
    }

    function netStatusHandler(event:NetStatusEvent):void
    {
    Switch (event.info.code)
    {
    case "NetConnection.Connect.Success":
                connectStream();
    break;
    case "NetStream.Play.StreamNotFound":
    trace ("stream not found:" + videoURL);
    break;
    case "NetStream.Play.Stop":
    stopVideoPlayer();
    break;
    }
    }

    function securityErrorHandler(event:SecurityErrorEvent):void
    {
    trace ("securityErrorHandler:" + event);
    }

    function connectStream (): void
    {
    Stream = new NetStream (connection);
    stream.addEventListener (NetStatusEvent.NET_STATUS, netStatusHandler);
    Stream.client = this;
    stream.bufferTime = BUFFER_TIME;
       
    vidDisplay.attachNetStream (stream);
       Stream.Play (videoURL);
    addChild (vidDisplay);
    vidDisplay.smoothing = SMOOTHING;
    }

    # STEP SETTINGS
    internship. Align = StageAlign.TOP_LEFT;
    stage.scaleMode = StageScaleMode.NO_SCALE;
       
    //-------------------------------------------
       
    var tmpVolume:Number = DEFAULT_VOLUME;
    If (shoVideoPlayerSettings.data.playerVolume! = undefined) {}
    tmpVolume = shoVideoPlayerSettings.data.playerVolume;
    intLastVolume = tmpVolume;
    }

    mcVideoControls.mcVolumeScrubber.x = (53 * tmpVolume) + 353;
    mcVideoControls.mcVolumeFill.mcFillRed.width = mcVideoControls.mcVolumeScrubber.x - 405 + 53;
    setVolume (tmpVolume);
    //}

    mcplay.mcbtn.addEventListener (MouseEvent.CLICK, playfn);
    function playfn(e:MouseEvent):void {}
    Stream.Play (videoURL);
    mcVideoControls.btnPause.visible = true;
    mcVideoControls.btnPlay.visible = false;
    bolLoaded = true;
    }

    function playClicked(e:MouseEvent):void
    {
    if(!bolLoaded)
    {
    Stream.Play (videoURL);
    bolLoaded = true;
    }
    on the other
    {
    Stream.Resume ();
    }
       
    vidDisplay.visible = true;
       
    mcVideoControls.btnPause.visible = true;
    mcVideoControls.btnPlay.visible = false;
    }

    function pauseClicked(e:MouseEvent):void {}
    Stream.pause ();
       
    mcVideoControls.btnPause.visible = false;
    mcVideoControls.btnPlay.visible = true;
    }

    function stopClicked(e:MouseEvent):void {}
    stopVideoPlayer();
    }

    function muteClicked(e:MouseEvent):void {}
    setVolume (0);
       
    mcVideoControls.mcVolumeScrubber.x = 353;
    mcVideoControls.mcVolumeFill.mcFillRed.width = 1;
    }

    function unmuteClicked(e:MouseEvent):void {}
    var tmpVolume:Number = intLastVolume == 0? DEFAULT_VOLUME: intLastVolume
    setVolume (tmpVolume);
       
    mcVideoControls.mcVolumeScrubber.x = (53 * tmpVolume) + 354;
    mcVideoControls.mcVolumeFill.mcFillRed.width = mcVideoControls.mcVolumeScrubber.x - 405 + 53;
    }

    function volumeScrubberClicked(e:MouseEvent):void {}
    bolVolumeScrub = true;
       
    mcVideoControls.mcVolumeScrubber.startDrag (true, new Rectangle (354, 19, 53, 0));
    }

    function progressScrubberClicked(e:MouseEvent):void {}
    bolProgressScrub = true;
       
    mcVideoControls.mcProgressScrubber.startDrag (true, new Rectangle (0, 2, 472, 0));
    }

    function mouseReleased(e:MouseEvent):void {}
    bolVolumeScrub = false;
    bolProgressScrub = false;
       
    mcVideoControls.mcProgressScrubber.stopDrag ();
    mcVideoControls.mcVolumeScrubber.stopDrag ();
       
    mcVideoControls.mcProgressFill.mcFillRed.width = mcVideoControls.mcProgressScrubber.x + 5;
    mcVideoControls.mcVolumeFill.mcFillRed.width = mcVideoControls.mcVolumeScrubber.x - 405 + 53;
       
    If ((mcVideoControls.mcVolumeScrubber.x-354) / 53 > 0)
    intLastVolume = (mcVideoControls.mcVolumeScrubber.x - 354) / 53;
    }

    function updateDisplay(e:TimerEvent):void {}
    If (bolProgressScrub)
    Stream.Seek (Math.round (mcVideoControls.mcProgressScrubber.x * objInfo.duration/472))
    on the other
    mcVideoControls.mcProgressScrubber.x = stream.time * 472 / objInfo.duration;
       
    mcVideoControls.lblTimeDuration.htmlText = "" + formatTime (stream.time) + " /" + formatTime (objInfo.duration);
       
    mcVideoControls.mcProgressFill.mcFillRed.width = mcVideoControls.mcProgressScrubber.x + 5;
    mcVideoControls.mcProgressFill.mcFillGrey.width = stream.bytesLoaded * 478 / stream.bytesTotal;
       
    {if (bolVolumeScrub)}
    setVolume ((mcVideoControls.mcVolumeScrubber.x-354) / 53);
    mcVideoControls.mcVolumeFill.mcFillRed.width = mcVideoControls.mcVolumeScrubber.x - 405 + 53;
    }
    }

    var duration: number;
    function onMetaData(info:Object):void {}
    objInfo = info;

    tmrDisplay.start ();
    }

    function stopVideoPlayer (): void {}
    Stream.pause ();
    Stream.Seek (0);
    vidDisplay.visible = false;
    mcVideoControls.btnPause.visible = false;
    mcVideoControls.btnPlay.visible = true;
    }

    function setVolume(intVolume:Number_=_0):void {}

    var sndTransform = new SoundTransform (intVolume);
    {if (Stream)}
    stream.soundTransform = sndTransform;
    }
       
    If (intVolume > 0) {}
    mcVideoControls.btnMute.visible = true;
    mcVideoControls.btnUnmute.visible = false;
    } else {}
    mcVideoControls.btnMute.visible = false;
    mcVideoControls.btnUnmute.visible = true;
    }
    }

    function formatTime(t:int):String {}
    Returns the minutes and seconds with leading zeros
    for example: 70 returns at 01:10
    var s:int = Math.round (t);
    var m:int = 0;
    If (s > 0) {}
    While (s > 59) {}
    m ++ ;
    s = 60;
    }
    Returns a String ((m< 10="" "0"="" :="" "")="" +="" m="" +="" ":"="" +="" (s="">< 10="" "0"="" :="" "")="" +="">
    } else {}
    return "00:00";
    }
    }

    function fullscreenOnClicked(e:MouseEvent):void {}
    stage.displayState = StageDisplayState.FULL_SCREEN;
    }

    function fullscreenOffClicked(e:MouseEvent):void {}
    stage.displayState = StageDisplayState.NORMAL;
       
    }

    function onFullscreen(e:FullScreenEvent):void {}
    If {(e.fullScreen)
           
    buttons switch full screen
    mcVideoControls.btnFullscreenOn.visible = false;
    mcVideoControls.btnFullscreenOff.visible = true;
    mcVideoControls.skinAutoHide = true;
    mcVideoControls.skinFadeTime = 01;
               
    bottom to center align controls
    mcVideoControls.x = (Capabilities.screenResolutionX - 480) / 2;
    mcVideoControls.y = (Capabilities.screenResolutionY - 36);
           
    the size of the video display
    vidDisplay.height = mcplay.height = (Capabilities.screenResolutionY - 36);
    vidDisplay.width = mcplay.width = vidDisplay.height * 4 / 3;
    vidDisplay.x = mcplay.x = (Capabilities.screenResolutionX - vidDisplay.width) / 2;
    } else {}
    buttons switch full screen
    mcVideoControls.btnFullscreenOn.visible = true;
    mcVideoControls.btnFullscreenOff.visible = false;
           
    reset the position of the controls
    mcVideoControls.x = 0;
    mcVideoControls.y = 360;
           
    Reset video display
    vidDisplay.y = mcplay.x = 0;
    vidDisplay.x = mcplay.y = 0;
    vidDisplay.width = mcplay.width = 480;
    vidDisplay.height = mcplay.height = 360;
    }
    }

    function resizeHandler(e:Event):void
    {
    mcVideoControls.x = (stage.stageWidth - mcVideoControls.width) / 2;
    mcVideoControls.y = stage.stageHeight - mcVideoControls.height;
    }

    Copy and paste the code above (or) simply change things "BOLD" above. It will solve

  • How to access the functions

    Hey,.

    thing_btn.addEventListener (MouseEvent.CLICK, clicked);

    thing2_btn.addEventListener (MouseEvent.CLICK, clicked2)

    function clicker(event:MouseEvent) {}

    trace ("hey");

    }

    function clicker2(event:MouseEvent) {}

    clicker(event:MouseEvent);

    }

    with the above code how you call the function clicker2 clicker?
    as with the code I comes up with the error "1084: syntax error: expected rightparen befor colon.
    Thanks :)

    The only place where it will work for you, is if you put somewhere where the event is defined, which is so far only inside your functions.  If you want to call the spaceDown function without actually using the keyboard, you can modify the code to be...

    function spaceDown (event: KeyboardEvent= null) {}

    Press ++;

    if(Event.keycode == 32) {}

    moverTimer.stop ();

    }

    whichLine = "Line" + String (pressed)

    trace (whichLine)

    moverTimer.start ();

    }

    spaceDown();

    but then your code inside the function wil has another error as he tries to use the object of the event, which will be null.

    Your first assignment had a some sense based on what you ask, but you seem to have twisted what you asked for and applied to the implementation of something totally different.  I can't say I know what you're up to at this point.  You should probably take a step back and try things right.

  • How to stop the Popup Adobe when printing?

    I am constantly creating PDF files using Adobe Acrobat Professional 7.0. Create from several programs: Office Word, Excel, Paint, Etc. as well as AutoCADD.  I create them using Adobe as a printer, so printing to PDF. Once the PDF has been created since the other program via Adobe printing, the new PDF opens for viewing. I'm ok with that; However I then click on another program and after a few seconds the PDF file appears again. Even if I close a few seconds later, he appears again. When I print several sheets of a program, I jump back and the popup function slows me down up to big-time or cause me to spoil the files I work with.

    How to stop the Popup from Adobe?

    You must check the program setting Distiller, the Adobe PDF printer properties and Acrobat PDF conversion settings and disable the "view PDF results.

  • How to stop a tween class or continues

    I created a movement with a tween class. How can I stop the function of "continuous"? and direct to a new position of the target?

    var t1:Object = new Tween (this, "_x", Elastic.easeOut, this ._x, targetx, 5, true);
    T1.onMotionFinished = function() {}
    T1.continueTo (targetx, 5);
    };

    Use t1.stop () and instantiate an another tween.

Maybe you are looking for