Help with flipping movieclip

in my code i made the option to change the direction of your
character by pressing ctrl. this works fine, up until you press any
other key, then it stops working. the wy it works is i made two
frames on the character movie clip, one of him facing left, one of
him facing right. all it does when i press ctrl is play(). but
somehow this doesn't work...
if anyone could help it would be much appreciated
on a side note, does anyone know how to keep the same _x
position when using _xscale to flip? that is when the movieclip
moves. what happens to me is it flips the movieclip and gives it
the opposite _x position from the center

you probably want to use nextFrame() instead of play(). and
how you adjust your movieclip's _x property after scaling depends
upon the location of your movieclip's registration point.

Similar Messages

  • Need help with duplicating Movieclips!!!

    Hi! I have a movie where I want to call in a movieclip from
    the library (circleMC) and duplicate it 20 times horizontally and
    15 times vertically and offsetting the new duplicates by 20 pixels
    in both directions to fill the stage.
    Also it would be neat if I could set a slight time delay
    between the duplications.
    So far I have the following script but this doesn't
    duplicates the clip in the y direction:
    count = 1;
    while (count<20) {
    _root.circleMc.duplicateMovieClip("circleDup"+count, count);
    setProperty("circleDup"+count, _x, count*20);
    count++;
    Can somebody help with this issue? thank you in advance for
    any help, Attila

    Hi,
    you could use something like this:
    var count:Number = 1;
    function duplicate(){
    _root.attachMovie("circleMC","mc"+count,count,{_x:count%20*20,_y:count%15*20});
    count++;
    if (count == 20) clearInterval(intervalID);
    var intervalID:Number = setInterval(duplicate,100);
    The library symbol must have the linkage ID 'circleMC'
    (rightclick on the MC in the library > linkage > export for
    AS). The attachMovie method can have an initObject parameter where
    you can set the _x and _y properties. The MC gets attached with
    those properties. To have it delayed, put it all in a setInterval.
    hth,
    blemmo

  • Help with sub movieclips appear/disappear

    Hey folks, looking for some early feedback. So in a large movieclip that I drag, I have sub movieclips. Due to them being large they cause the drag/flick/scroll get clunky at times. So I thought about dynamically loading them depending on where the main movieclip is based on a Y state. So this seems to work BUT before I go down this long road, there has to be a better way do this. I've bolded the way I'm planning to go about it.
    function mouseDownHandler(event: MouseEvent): void {
      TweenLite.killTweensOf(main);
      y1 = y2 = main.y;
      yOffset = this.mouseY - main.y;
      yOverlap = Math.max(0, main.height - bounds.height);
      t1 = t2 = getTimer();
      main.stage.addEventListener(MouseEvent.MOUSE_MOVE, mouseMoveHandler);
      main.stage.addEventListener(MouseEvent.MOUSE_UP, mouseUpHandler);
    function mouseMoveHandler(event: MouseEvent): void {
      var y: Number = this.mouseY - yOffset;
      //if main's position exceeds the bounds, make it drag only half as far with each mouse movement (like iPhone/iPad behavior)
      if (y > bounds.top) {
      main.y = (y + bounds.top) * 0.5;
      } else if (y < bounds.top - yOverlap) {
      main.y = (y + bounds.top - yOverlap) * 0.5;
      } else {
      main.y = y;
      blitMask.update();
      var t: uint = getTimer();
      //if the frame rate is too high, we won't be able to track the velocity as well, so only update the values 20 times per second
      if (t - t2 > 50) {
      y2 = y1;
      t2 = t1;
      y1 = main.y;
      t1 = t;
      event.updateAfterEvent();
      if (main.y < 30) {
      main.OFbandTWO.visible = true;
      } else if (main.y < 20) {
      main.OFbandTWO.visible = true;
      main.OFbandTHREE.visible = true;
      } else if (main.y < 0) {
      main.OFbandTWO.visible = true;
      main.OFbandTHREE.visible = true;
      main.OFbandFOUR.visible = true;
      } else {
      main.OFbandTWO.visible = false;
      main.OFbandTHREE.visible = false;
      main.OFbandFOUR.visible = false;
    function mouseUpHandler(event: MouseEvent): void {
      blitMask.bitmapMode = true;
      main.stage.removeEventListener(MouseEvent.MOUSE_UP, mouseUpHandler);
      main.stage.removeEventListener(MouseEvent.MOUSE_MOVE, mouseMoveHandler);
      var time: Number = (getTimer() - t2) / 1000;
      var yVelocity: Number = (main.y - y2) / time;
      ThrowPropsPlugin.to(main, {
      throwProps: {
      y: {
      velocity: yVelocity,
      max: bounds.top,
      min: bounds.top - yOverlap,
      resistance: 50
      onUpdate: blitMask.update,
      ease: Strong.easeOut
      }, 2, 0.3, 0.5);
      blitMask.bitmapMode = false;

    also if I want to have the item only appear when it's on the stage and be not visible when off it, I figured i'd use a set of y coordinates that when it's between them, change vis to true, when not, change vis to false. But the logic is escaping me. So if I want band "two" only visible when on the stage, would this work?
      if (main.y < 30 || main.y > -400) {
      main.OFbandTWO.visible = true;

  • Help with movieclips

    Hi,
    I use Flash cc for interactive music education content and I need help with this:
    Let´s say I have several sets of movieclips in my library. Each movieclip contains audio and animation (two bars). What I want to do is put several buttons on the stage so the user can click two of them to choose which movieclips are goinge to be loaded from the library and then click PLAY and listen and see the first movieclip and immediately after that will listen and see the second movie clip. Like choosing the pieces (bars) of a song and then playing the song.
    The problem is that the ammount of combinations is so huge that I need to find how to do it this way.

    Here's the skeleton of what you're after. Filling it in will be left as an exercise to the reader, but basically...
    Have a Queue area onstage that shows the current queue of loaded items to play. Show the list of possible movieclips below it and each one clicked in that area adds it to the queue. A click on a movieclip in the queue area deletes it from the queue. There's a play button somewhere beside the queue.
    Programming-wise, you will have an array (let's say it's called queueArray). Each movieclip will need a unique instance name, and as it is clicked you will Array.push it onto the queueArray (or delete it of the queueArray if they click it when it's already on there). When they click play, it simply plays queueArray[0] and then queueArray[1].

  • Help with movieclip

    i am loading pictues into a movieclip loader. all of the
    original size pictues work fine. i have a few other pictues that
    are a different size. how can i get that loader to size to the
    picture when the picture is loaded. i can send my .fla if someone
    can help with this.
    i's like loading a polaroid picture.. a quick flash when the
    next pic is loaded,, but the loader doesn't resize which leaves a
    lot of white on the side of the photo when it's loaded.

    Move your last frame in that circle mc to the yeah frame, or just place something in that yeah frame so that you know you are there.  When you run it and click the button you should see that you actually did go to the yeah frame.  The play() in that yeah frame should be enough to coax it along (it worked for me).

  • I need help with shooting in my flash game for University

    Hi there
    Ive tried to make my tank in my game shoot, all the code that is there works but when i push space to shoot which is my shooting key it does not shoot I really need help with this and I would appriciate anyone that could help
    listed below should be the correct code
    //checking if the space bar is pressed and shooting is allowed
    if(evt.keyCode == 32 && shootAllow){
        //making it so the user can't shoot for a bit
        shootAllow = false;
        //declaring a variable to be a new Bullet
        var newBullet:Bullet = new Bullet();
        //changing the bullet's coordinates
        newBullet.y = tank_mc.y + tank_mc.width/2 - newBullet.width/2;
        newBullet.x = tank_mc.x;
        //then we add the bullet to stage
        addChild(newBullet);
    listed below is my entire code
    import flash.display.MovieClip;
        //declare varibles to create mines
    //how much time before allowed to shoot again
    var cTime:int = 0;
    //the time it has to reach in order to be allowed to shoot (in frames)
    var cLimit:int = 12;
    //whether or not the user is allowed to shoot
    var shootAllow:Boolean = true;
    var minesInGame:uint;
    var mineMaker:Timer;
    var cursor:MovieClip;
    var index:int=0;
    var tankMine_mc:MovieClip;
    var antiTankmine_mc:MovieClip;
    var maxHP:int = 100;
    var currentHP:int = maxHP;
    var percentHP:Number = currentHP / maxHP;
    function initialiseMine():void
        minesInGame = 15;
        //create a timer fires every second
        mineMaker = new Timer(6000, minesInGame);
        //tell timer to listen for Timer event
        mineMaker.addEventListener(TimerEvent.TIMER, createMine);
        //start the timer
        mineMaker.start();
    function createMine(event:TimerEvent):void
    //var tankMine_mc:MovieClip;
    //create a new instance of tankMine
    tankMine_mc = new Mine();
    //set the x and y axis
    tankMine_mc.y = 513;
    tankMine_mc.x = 1080;
    // adds mines to stage
    addChild(tankMine_mc);
    tankMine_mc.addEventListener(Event.ENTER_FRAME, moveHorizontal);
    function moveHorizontal(evt:Event):void{
        evt.target.x -= Math.random()*5;
        if (evt.target.x >= stage.stageWidth)
            evt.target.removeEventListener(Event.ENTER_FRAME, moveHorizontal);
            removeChild(DisplayObject(evt.target));
    initialiseMine();
        //declare varibles to create mines
    var atmInGame:uint;
    var atmMaker:Timer;
    function initialiseAtm():void
        atmInGame = 15;
        //create a timer fires every second
        atmMaker = new Timer(8000, minesInGame);
        //tell timer to listen for Timer event
        atmMaker.addEventListener(TimerEvent.TIMER, createAtm);
        //start the timer
        atmMaker.start();
    function createAtm(event:TimerEvent):void
    //var antiTankmine_mc
    //create a new instance of tankMine
    antiTankmine_mc = new Atm();
    //set the x and y axis
    antiTankmine_mc.y = 473;
    antiTankmine_mc.x = 1080;
    // adds mines to stage
    addChild(antiTankmine_mc);
    antiTankmine_mc.addEventListener(Event.ENTER_FRAME, moveHorizontal);
    function moveHorizontal_2(evt:Event):void{
        evt.target.x -= Math.random()*10;
        if (evt.target.x >= stage.stageWidth)
            evt.target.removeEventListener(Event.ENTER_FRAME, moveHorizontal);
            removeChild(DisplayObject(evt.target));
    initialiseAtm();
    function moveForward():void{
        bg_mc.x -=10;
    function moveBackward():void{
        bg_mc.x +=10;
    var tank_mc:Tank;
    // create a new Tank and put it into the variable
    // tank_mc
    tank_mc= new Tank;
    // set the location ( x and y) of tank_mc
    tank_mc.x=0;
    tank_mc.y=375;
    // show the tank_mc on the stage.
    addChild(tank_mc);
    stage.addEventListener(KeyboardEvent.KEY_DOWN, onMovementKeys);
    //creates the movement
    function onMovementKeys(evt:KeyboardEvent):void
        //makes the tank move by 10 pixels right
        if (evt.keyCode==Keyboard.D)
        tank_mc.x+=5;
    //makes the tank move by 10 pixels left
    if (evt.keyCode==Keyboard.A)
    tank_mc.x-=5
    //checking if the space bar is pressed and shooting is allowed
    if(evt.keyCode == 32 && shootAllow){
        //making it so the user can't shoot for a bit
        shootAllow = false;
        //declaring a variable to be a new Bullet
        var newBullet:Bullet = new Bullet();
        //changing the bullet's coordinates
        newBullet.y = tank_mc.y + tank_mc.width/2 - newBullet.width/2;
        newBullet.x = tank_mc.x;
        //then we add the bullet to stage
        addChild(newBullet);
    if (tank_mc.hitTestObject(antiTankmine_mc))
            //tank_mc.gotoAndPlay("hit");
            currentHP -= 10;
            // remove anti tank mine
            removeChild(antiTankmine_mc);
    if (tank_mc.hitTestObject(tankMine_mc))
            //tank_mc.gotoAndPlay("hit");
            currentHP -= 10;
            // remove anti tank mine
            removeChild(tankMine_mc);
        //var maxHP:int = 100;
    //var currentHP:int = maxHP;
    //var percentHP:Number = currentHP / maxHP;
        //Incrementing the cTime
    //checking if cTime has reached the limit yet
    if(cTime < cLimit){
        cTime ++;
    } else {
        //if it has, then allow the user to shoot
        shootAllow = true;
        //and reset cTime
        cTime = 0;
    function updateHealthBar():void
        percentHP = currentHP / maxHP;
        healthBar.barColor.scaleX = percentHP;
        if(currentHP <= 0)
            currentHP = 0;
            trace("Game Over");
        updateHealthBar();

    USe the trace function to analyze what happens and what fails to happen in the code you showed.  trace the conditional values to see if they are set up to allow a shot when you press the key

  • Urgent Help with Image Gallery

    Hi,
    I really need help with an image gallery i have created. Cannot think of a resolution
    So....I have a dynamic image gallery that pulls the pics into a movie clip and adds them to the container (slider)
    The issue i am having is that when i click on this i am essentially clicking on all the items collectively and i would like to be able to click on each image seperately...
    Please see code below
    var xml:XML;
    var images:Array = new Array();
    var totalImages:Number;
    var nbDisplayed:Number = 1;
    var imagesLoaded:int = 0;
    var slideTo:Number = 0;
    var imageWidth = 150;
    var titles:Array = new Array();
    var container_mc:MovieClip = new MovieClip();
    slider_mc.addChild(container_mc);
    container_mc.mask = slider_mc.mask_mc;
    function loadXML(file:String):void{
    var xmlLoader:URLLoader = new URLLoader();
    xmlLoader.load(new URLRequest(file));
    xmlLoader.addEventListener(Event.COMPLETE, parseXML);
    function parseXML(e:Event):void{
    xml = new XML(e.target.data);
    totalImages = xml.children().length();
    loadImages();
    function loadImages():void{
    for(var i:int = 0; i<totalImages; i++){
      var loader:Loader = new Loader();
      loader.load(new URLRequest("images/"+String(xml.children()[i].@brand)));
      images.push(loader);
    //      loader.contentLoaderInfo.addEventListener(ProgressEvent.PROGRESS,onProgress);
         loader.contentLoaderInfo.addEventListener(Event.COMPLETE,onComplete);
    function onComplete(e:Event):void{
    imagesLoaded++;
    if(imagesLoaded == totalImages){
      createImages();
    function createImages():void{
    for(var i:int = 0; i < images.length; i++){
      var bm:Bitmap = new Bitmap();
      bm = Bitmap(images[i].content);
      bm.smoothing = true;
      bm.x = i*170;
      container_mc.addChild(bm);
          var caption:textfile=new textfile();
          caption.x=i*170; // fix text positions (x,y) here
       caption.y=96;
          caption.tf.text=(xml.children()[i].@brandname)   
          container_mc.addChild(caption);

    yes, sorry i do wish to click on individual images but dont know how to code that
    as i mentioned i have 6 images that load into an array and then into a container and i think that maybe the problem is that i have the listener on the container so when i click on any image it gives the same results.
    what i would like is have code thats says
    if i click on image 1 then do this
    if i click on image 2 then do something different
    etc
    hope that makes sense
    thanks for you help!

  • Help with movie settings

    I thank you in advance for your help with this!
    My website address I have a question about is
    www.holyredeemernorthbend.org
    and I have a question about the movie section.
    I am using iWeb to build my church's website. All is well except the movie page. I have only one movie uploaded so far, my old site had 6, each between 6 and 10 megs. On the old site I used microsoft Frontpage. The videos, all in WMV format, worked flawlessly. They used to download in Windows media player, and played immediately, but now that I am using iWeb they have to download before watching, AND if it is a Mac owner visiting the site they have to have flip4mac installed as a Quicktime plugin. PC users can't see them at all.
    It's not a problem for me to export the videos in another format, I would just like some help with the most universally excepted settings. I don't care if it's Quicktime, Flash, or Windows Media. What would be best for most internet users? And, can you put a movie on an iWeb made site, that will load into Windows Media Player as an option to quicktime? That is to say if I were to give the viewer a choice.

    iWeb writes page code that forces the QuickTime browser plug-in be used. Since your file is:
    http://www.holyredeemernorthbend.org/HRWeb/Media/Father%20Kies.wmv in Windows Media Player format Mac visitors must have Flip for Mac (I don't use it) and PC users can't use QuickTime to view WMP files.
    You can use iWeb to make a "direct" link (link to file). When the viewer click the link they would be able to download the WMP file. This would allow PC visitors to use Media Player and Mac visitors use Flip for Mac or Windows Media Player for Mac.
    Since iWeb forces QuickTime formats you should convert from .wmv to .mov formats to make your work easier.

  • I need help with controlling two .swf's from third.

    Hi, thanks for reading!
    I need help with controlling two .swf's from third.
    I have a problem where I need to use a corporate designed
    .swf in a digital signage solution, but have been told by the legal
    department that it can not be modified in any way, I also can't
    have the source file yada yada. I pulled the .swfs from their
    website and I decompiled them to see what I was up against.
    The main swf that I need to control is HCIC.swf and the
    problem is it starts w/ a preloader, which after loading stops on a
    frame that requires user input (button press) on a play button,
    before the movie will proceed and play through.
    What I have done so far is to create a container swf,
    HCIC_container.swf that will act as Target for the HCIC.swf, and
    allow me to send actionscript to the file I'm not allowed to
    modify.
    I managed to get that done with the help of someone on
    another forum. It was my hope that the following script would just
    start HCIC.swf at a frame past the preloader and play button, and
    just play through.
    var container:MovieClip = createEmptyMovieClip("container",
    getNextHighestDepth());
    var mcLoader:MovieClipLoader = new MovieClipLoader();
    mcLoader.addListener(this);
    mcLoader.loadClip("MCIC.swf", container);
    function onLoadInit(mc:MovieClip) {
    mc.gotoAndPlay(14);
    But unfortunately it didn't solve my problem. Because there
    is a media-controller.swf, that is being loaded by HCIC.swf that
    has the controls including the play button to start HCIC.swf.
    Here's a link to a .zip file with all 3 .swf files, and all 3
    .fla files.
    http://www.axiscc.com/temp/HCIC.zip
    What I need to do is automatically start the HCIC.swf file
    bypassing the pre-loader and play button without editing it or the
    media-controller.swf in anyway. So all the scripting needs to be
    done in HCIC_container.swf.
    I know this is confusing, and its difficult to explain, but
    if you look at the files it should make sense.
    ActionScripting is far from my strong point, so I'm
    definitely over my head here.
    Thanks for your help.

    Got my solution on another forum.
    http://www.actionscript.org/forums/showthread.php3?t=146827

  • Need Help with a Flash Web Project

    Hello, everyone. I am trying to use Flash to make a two-step
    system. I want the flash document to, first, allow a person to
    upload multiple image files and then, second, for the flash
    document be able to create a slideshow with the uploaded images and
    fade in and out from each image until the slideshow is over. I want
    it to be where the flash document creates its own slideshow with
    the images that are uploaded in the first step that I mentioned. I
    want it to do it completely on its own so I need to know how to
    give it the proper AI so that it can do this task.
    So, are there any tips that anyone has on how to do this? Can
    anyone tell me exactly how to do this? I really need help with this
    for my new website project. Thanks in advance, everyone!

    The problem with the text not appearing at all has to do with you setting the alpha of the movieclip to 0%.  Not within the movieclip, but the movieclip itself.  The same for the xray graphic, except you have that as a graphic symbol rather than a movieclip.  To have that play while inhabiting one frame you'll need to change it to a movieclip symbol.
    To get the text to play after the blinds (just a minor critique, I'd speed up the blinds), you will want to add some code in the frame where you added the stop in the blinds animation.  You will also need to assign instance names for the text movieclips in the properties panel, as well as place a stop(); in their first frames (inside).
    Let's say you name them upperText and lowerText.  Then the code you'd add at the end of the blinds animation (in the stop frame) would be...
    _parent.upperText.play();
    _parent.lowerText.play();
    The "_parent" portion of that is used to target the timeline that is containing the item making the command, basically meaning it's the guy inside the blinds telling the guy outside the blinds to do something.
    You'll probably want to add stops to the ends of the text animations as well.
    If you want to have the first text trigger the second text, then you'd take that second line above and place it in the last frame of the first text animation instead of the blinds animation.
    Note, on occasion, undeterminably, that code above doesn't work for some odd reason... the animation plays to the next frame and stops... so if you run into that, just put a play(); in the second frame to help push it along.
    PS GotoandPlay would actually be gotoAndPlay, and for the code above you could substitute play(); with gotoAndPlay(2);

  • Help with adding image onclick

    Hey everyone,
    I am making a simple game in AS3 and need help with adding an image once they have click on something.
    On the left of the screen are sentences and on the right an image of a form. When they click each sentence on the left, writing appears on the form. Its very simple. With this said, what I would like to do is once the user click one of the sentences on the left, I would like a checkmark image to appear over the sentence so they know they have already clicked on it.
    How would I go about adding this to my code?
    var fields:Array = new Array();
    one_btn.addEventListener(MouseEvent.CLICK, onClick1a);
    one_btn.buttonMode = true;
    function onClick1a(event:MouseEvent):void
        fields.push(new one_form());
        fields[fields.length-1].x = 141;
        fields[fields.length-1].y = -85;
        this.addChild(fields[fields.length-1]);   
        one_btn.removeEventListener(MouseEvent.CLICK, onClick1a);
        one_btn.buttonMode = false;
        //gotoAndStop("one")
    two_btn.addEventListener(MouseEvent.CLICK, onClick2a);
    two_btn.buttonMode = true;
    function onClick2a(event:MouseEvent):void
        fields.push(new two_form());
        fields[fields.length-1].x = 343.25;
        fields[fields.length-1].y = -85;
        this.addChild(fields[fields.length-1]);
        two_btn.removeEventListener(MouseEvent.CLICK, onClick2a);
        two_btn.buttonMode = false;
        //gotoAndStop("two")

    I don't know where you're positioning the button that should enable/disable the checkbox but for "one_btn" let's just say it's at position: x=100, y=200. Say you'd want the checkbox to be to the left of it, so the checkbox would be displayed at: x=50, y=200. Also say you have a checkbox graphic in your library, exported for actionscript with the name "CheckBoxGraphic".
    Using your code with some sprinkles:
    // I'd turn this into a sprite but we'll use the default, MovieClip
    var _checkBox:MovieClip = new CheckBoxGraphic();
    // add to display list but hide
    _checkBox.visible = false;
    // just for optimization
    _checkBox.mouseEnabled = false;
    _checkBox.cacheAsBitmap = true;
    // adding it early so make sure the forms loaded don't overlap the
    // checkbox or it will cover it, otherwise swapping of depths is needed
    addChild(_checkBox);
    // I'll use a flag (a reference for this) to know what button is currently pushed
    var _currentButton:Object;
    one_btn.addEventListener(MouseEvent.CLICK, onClick1a);
    one_btn.buttonMode = true;
    function onClick1a(event:MouseEvent):void
         // Check if this button is currently the pressed button
         if (_currentButton == one_btn)
              // disable checkbox, remove form
              _checkBox.visible = false;
              // form should be last added to fields array, remove
              removeChild(fields[fields.length - 1]);
              fields.pop();
              // clear any reference to this button
              _currentButton = null;
         else
              // enable checkbox
              _checkBox.visible = true;
              _checkBox.x = 50;
              _checkBox.y = 200;
              // add form
              fields.push(new one_form());
              fields[fields.length-1].x = 141;
              fields[fields.length-1].y = -85;
              this.addChild(fields[fields.length-1]);
              // save this button as last clicked
              _currentButton = one_btn;
         // not sure what this is
        //gotoAndStop("one")
    I'd also centralize all the click handlers into a single handler and use the buttons name to branch on what to do, but that's a different discussion. Just see if this makes sense to you.
    The jist is a graphic of a checkbox that is a MovieClip symbol in your library exported to actionscript with the class name CheckBoxGraphic() is created and added to the display list.
    I made a variable that points itself to the last clicked button, when the "on" state is desired. If I detect the last clicked button was this button, I remove the form I added and the checkbox. If the last clicked button is not this button, I enable and position the checkbox as well as add the form.
    What is left to do is handle the sitation where multiple buttons are on the screen. When a new button is pushed it should remove anything the previous button added. This code simply demonstrates clicking the same button multiple times to toggle it "on and off".

  • Help with loadMovie function

    Hello,
    I have a flash file with a movieclip on the stage - instance name "hold_mc". Currently I am loading an external swf file (named tester.swf) into this movie clip with the following actionScript:
    loadMovie("tester.swf", "hold_mc");
    This works fine and once loaded, 'tester.swf' begins playing from frame 1.
    However... I would like to add some code that lets me specify a frame or better still - a frame label - that "tester.swf" will begin to play from once it is loaded into "hold_mc". It sounds like it should be relatively straight forward, but after trawling the web for an age I cant seem to find a solution that actually works.
    Any help would be greatly appreciated!
    John

    I too recommend the MovieClipLoader class. I think for AS2 that you might want to use the onLoadInit event (this will all make more sense when you check out the help files) though instead of onLoadComplete. I know that certain properties are not available at onLoadComplete. I'm not sure if that includes frame labels, but I'm sure they will be available at onLoadInit.

  • Ouicktime 7.5 not working with Flip 4 Mac.

    I upgraded QT to 7.5 and now my QT plays the audio but no picture when running streaming WMV files. I checked with Flip 4 Mac but they said its a Quicktime issue.I'm running the latest version of flip 4 mac (2.2.0.49R). Anyone have the fix to this problem?

    Welcome to the forums Bigbadcudah.
    This won't help you, but just for the record, I have not noticed any problems at all with QT 7.5 or for that matter Flip4Mac and playing WMV files, and we are using the same OS.
    It might be worth your while checking the following for updated components:
    These are the downloads and the settings you need in order to view/hear pretty much everything that the net can throw at you: The setup described below has proved repeatedly successful on both PPC and Intel macs, but nothing in life carries a guarantee!
    It is known to work in the great majority of cases with Safari 3.0.4, 3.1, 3.1.1, QT 7.3, 7.4 and 7.4.5 and OS 10.4.11.
    Assuming you already run Tiger versions OS 10.4.11 and have Quicktime 7.2 or above, and are using Safari 2 or 3, download and install (or re-install even if you already had them) the latest versions, suitable for your flavor of Mac, of:
    RealPlayer 11 (which is no longer in beta) for Mac from (you may need a different site for the US):
    http://uk.real.com/player/mac/
    Flip4Mac WMV Player from http://www.microsoft.com/windows/windowsmedia/player/wmcomponents.mspx (Windows Media Player for the Mac is no longer supported, even by Microsoft)
    Perian from http://perian.org/
    You should read this support page http://perian.org/#support in case you need to delete older codecs.
    Adobe FlashPlayer should first be uninstalled using the appropriate uninstaller available here: http://kb.adobe.com/selfservice/viewContent.do?externalId=tn_14157&sliceId=2 and then the latest version obtained from here: http://www.adobe.com/shockwave/download/download.cgi?P1ProdVersion=ShockwaveFlash and installed.
    (You can check here: http://www.adobe.com/products/flash/about/ to see which version you should install for your Mac and OS, but please see my footnote if you are running Leopard.)
    In earlier versions than QT 7.1.3 in Quicktime Preferences, under advanced, UNcheck Enable Flash, and under Mime settings/Miscellananeous only check Quicktime HTML (QHTM).
    You should also ensure, if you are running Tiger 10.4.11, that you have downloaded and installed all the correct version for your Mac of Security Updates up to and including 2008-003. (N.B. Security Updates require both a restart and a permission repair.)
    In Macintosh HD/Library/Quicktime/ delete any files relating to DivX (Perian already has them). However it should be noted that Perian is not an internet plugin and will not play DivX files imbedded on a website. For that you will need the DivX Player browser plugin available from http://www.divx.com/divx/mac/
    Now go to Safari Preferences/Security, and tick the boxes under Web Content (all 4 of them) to enable Java.
    Lastly open Audio Midi Setup (which you will find in the Utilities Folder of your Applications Folder) and click on Audio Devices. Make sure that both Audio Input and Audio Output, under Format, are set to 44100 Hz, and that you have selected 'Built in Audio'.
    Important: Now repair permissions and restart.
    You should also consider having the free VLC Player from http://www.videolan.org/ in your armory, as this plays almost anything that DVD Player might not.
    There is an additional 'fix' you could try if you are having problems with Flash and Quicktime, depending on which type of Mac you have:
    On Intel Macs, make sure that you are not running Safari in Rosetta. You can check this, and change it, in the Get Info window.
    On PPC Macs, go to the Hard Disk/Library/Internet Plug-Ins folder, and drag the file 'QuickTime Plugin.webplugin' to the desktop. Quit and restart Safari. If things have improved you can trash that file. If they haven't put it back, as the lack of this plug-in can cause QT content in some widgets to cease functioning.
    And now there is an additional kid on the block: SilverLight. Microsoft has created their own version of what a replacement for Flash should be. You can read more about it here:
    http://silverlight.net/
    So, if you go to any sites that have been designed for this new Silverlight stuff, you can download the plug-in from here (but make certain that you are downloading SilverLight v.1.0 for OS X (10.4.8 upwards):
    http://silverlight.net/GetStarted/
    FOOTNOTE
    If you are running Leopard:
    Some users have mentioned that the latest Flash Player (v.9.0.115.0) conflicts with Leopard, and that they have needed to revert to v. 9.0.47. This can be downloaded from here:
    http://kb.adobe.com/selfservice/viewContent.do?externalId=tn_14266&sliceId=1

  • Help with video in Flex - Alternative to embedding .flv?

    I'm building a Flex application that needs to play a video, which I have in .flv format.  I tried the mx:VideoDisplay component, and it was great, but, unfortunately, I need to be able to package the entire application into a single file, and Flex doesn't support embedding .flv files.  Next I tried converting the .flv to a .swf, embedding that, then using mx:SWFLoader to display it.  This worked, except that I can no longer control the video playback; the video just keeps endlessly looping.  I need to be able to stop the video, and ideally I would like access to something like the complete event from mx:VideoDisplay, so that I can hide the video when it has reached the end.
    I have tried a couple of solutions based around the idea that the content of the .swf can be treated as a MovieClip, but none of these worked for me.  Any ideas?

    Hi, Keith Lee -
    I'm sorry that I cannot help with your problem, but I'm posting a few URLs that may perhaps help - 
    Working with video: http://help.adobe.com/en_US/as3/dev/WS5b3ccc516d4fbf351e63e3d118a9b90204-7e1a.html
    Getting started with stage video: http://www.adobe.com/devnet/flashplayer/articles/stage_video.html
    Stage video articles and tutorials: http://www.adobe.com/devnet/flashplayer/stagevideo.html
    ActionScript reference: http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/media/StageVideo. html
    Thanks,
    Mallika Yelandur
    Adobe Community Help & Learning

  • I need help with a button animation!

    Hi,
    I hope someone can help with a simple-looking problem which
    nonetheless has me stumped!
    I have a feeling that I've missed something obvious.
    I've created a movie clip to act as a button (I've called it
    "abs_button") and placed it on the stage.
    My main movie has one frame.
    Within the "abs_button" movie clip there are 5 layers.
    Labels, actions, default button state, rollover state and rollout
    state.
    Technically, default button state, rollover state and rollout
    state could be on the same layer as they don't overlap, but I've
    given each animation its own layer for clarity.
    FRAME 01.
    Default button state is one frame with a graphic of the
    button. Just a label at the start ("abs_up") and a "stop();" action
    at the end.
    FRAME 02 to 31.
    Rollover state is a 30 frame animation. Label at start
    ("abs_over"), "stop()"; action at the end.
    FRAME 32 to 62.
    Rollout state is a 30 frame animation. Label at start
    ("abs_out"), "stop()"; action at the end.
    All animations were achieved with tweens.
    My initial "abs_button" code:
    on (release) {
    getURL("targetPage.htm", "_self");
    on (rollOver) {
    gotoAndPlay("abs_button", "abs_over");
    on (rollOut) {
    gotoAndPlay("abs_button", "abs_out");
    As it stands, the animation jumps to frame 1 of "abs_out" on
    rollout.
    I need the "abs_over" animation to always play through to the
    end, as the "abs_out" is "abs_over" in reverse (i.e. image grows
    large on rollover and shrinks again on rollout.
    I've tried for 2 days to solve this, but I clearly need help.
    My experiments with variables simply didn't work.
    I would be grateful if someone could tell me where I'm going
    wrong!
    Thanks,
    Andy

    use this:
    on (rollOver) {
    gotoAndPlay("abs_over");
    Since the code is attached directly to the movieclip, you
    don't have to
    identify the clip. A gotoAndPlay() function takes a frame
    number or a
    frame label name as its argument, never the name of the clip
    that
    contains the frame number or name.
    Rob
    Rob Dillon
    Adobe Community Expert
    http://www.ddg-designs.com
    412.243.9119

Maybe you are looking for

  • Goods Issue and Goods Receipt JE

    Dear All, I have scenario can any one guide how to perform this. All my sales item are ; 1. Managed by Batched 2. Valuation Method : Moving Average 3. All are produce in house using production module I just want to unserstand If i perform GI for any

  • Menu Button Overlays

    This is driving me buggy: I've created a menu in Motion with a white background and 3 purple circles in front of the selection options: Play, Highlights, and Index. I've created an overlay file in Photoshop, and after much trial and error I've manage

  • Can't Open Files Or Folders By Double Clicking on Its Icon

    I'm unable to open any file or folder by double clicking on its icon whether the icon is on my desktop or in a folder. For example, I can't open my hard disk or any DMG file on desktop by double clicking on its desktop icon, but I can open it or any

  • When using inactivate (first moving actual hours out of tasks via task usage) it seems to corrupt the schedule

    For example, a predecessor task ends on 10/30 with a FS to another task.  The second task won't start until 11/13.  The Gantt chart shows dotted lines before the line goes down to the 11/13 start date.  Many tasks in the plan changed dates.  I did re

  • Cairngorm Observer : Could we use a itemRendererFunction ?

    Hi, I've got a special need for my application : I should use several renderer depending on data state/type. It seems that this need could be covered by itemRendererFunction (in a spark list for example) but this property does not exist in Cairngorm