Jump to content
Search Community

madina

Members
  • Posts

    8
  • Joined

  • Last visited

Posts posted by madina

  1. OK well this is the closest I've managed to get with this...

     

    http://www.madina.co.uk/tmp/018_019v2.swf

     

    It works ok I'm sure the code could possibly be better.

    Perhaps it needs an iF statement to allow an animated 'out' or end transition.

     

    Here's the FLA if anyone cares to take a look...

     

    http://www.madina.co.uk/tmp/018_019v2.zip

     

     

    mainStage.btn1.onRelease = function() {
    TweenMax.to(mainStage, 2, {  motionBlur:true, delay:0.2, _x:-230, _y:-230, ease:Back.easeOut, onStart:myFunction});
    function myFunction():Void {
    mainStage.panel01.gotoAndPlay("over");
    mainStage.panel02.gotoAndPlay("out"); 
    mainStage.panel03.gotoAndPlay("out"); 
    mainStage.panel04.gotoAndPlay("out"); 
    
    }
    }
    mainStage.btn2.onRelease = function() {
    TweenMax.to(mainStage, 2, {motionBlur:true, delay:0.2, _x:-1230, _y:-230, ease:Back.easeOut, onStart:myFunction});
    function myFunction():Void {
    mainStage.panel01.gotoAndPlay("out");
    mainStage.panel02.gotoAndPlay("over"); 
    mainStage.panel03.gotoAndPlay("out"); 
    mainStage.panel04.gotoAndPlay("out");
    
    }
    }
    
    mainStage.btn3.onRelease = function() {
    TweenMax.to(mainStage, 2, {motionBlur:true, delay:0.2, _x:-230, _y:-1340, ease:Back.easeOut, onStart:myFunction});
    function myFunction():Void {
    mainStage.panel01.gotoAndPlay("out");
    mainStage.panel02.gotoAndPlay("out"); 
    mainStage.panel03.gotoAndPlay("over"); 
    mainStage.panel04.gotoAndPlay("out"); 
    
    }
    }
    
    mainStage.btn4.onRelease = function() {
    TweenMax.to(mainStage, 2, {motionBlur:true, delay:0.4, _x:-1230, _y:-1340, ease:Back.easeOut, onStart:myFunction});
    function myFunction():Void {
    mainStage.panel01.gotoAndPlay("out");
    mainStage.panel02.gotoAndPlay("out"); 
    mainStage.panel03.gotoAndPlay("out"); 
    mainStage.panel04.gotoAndPlay("over"); 
    
    }
    }
    

  2. Hhhmmm frustrating that I need to learn lots of unnecessary actionscript to understand where to place this specific code.

    I don't expect be walked through the code but I would have a greater understanding actionscript seeing it in working in situ.

     

    I hate to say and am not being funny but I reckon you could have showed me where the code went in less time than it took writing your last post.

    Never mind I'll bash my head against this monitor for about eight hours I'll get there in the end. LOL

     

    Still friends yeah?

  3. Apologies I'm fairly new to GreenSock/Actionscript.

     

    I am a GreenSock member some confusion over code previously supplied by the publisher.

    Thanks for the notification I have now fixed this (see code at bottom of reply)

     

    When co-ordinates are reached I require only one clip to appear when destination is complete/reached.

    The others must fade/animate out.

     

    If you take a look at my file I think you will have a better understanding of what I'm trying to achieve...

    http://www.madina.co.uk/tmp/018_019.swf

     

    I think this what is required is the 'onComplete' function you mentioned and possibly the 'onStart' function

     

    Do you have an example or know here I might be able to find relevant usage of this code?

     

    P.S. I am unsure how to activate the MotionBlur plugin.

     

    code - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - >

     

    stop();

    import com.greensock.*;

    import com.greensock.plugins.*;

    TweenPlugin.activate([MotionBlurPlugin]);

     

     

    mainStage.stage2.onRelease = function() {

    TweenMax.to(mainStage, 2, { motionBlur:true, delay:0.2, _x:-230, _y:-230, ease:Back.easeOut});

     

    }

    mainStage.btn1.onRelease = function() {

    TweenMax.to(mainStage, 2, { motionBlur:true, delay:0.2, _x:-230, _y:-230, ease:Back.easeOut});

     

    }

     

    mainStage.btn2.onRelease = function() {

    TweenMax.to(mainStage, 2, {motionBlur:true, delay:0.2, _x:-1230, _y:-230, ease:Back.easeOut});

     

    }

     

    mainStage.btn3.onRelease = function() {

    TweenMax.to(mainStage, 2, {motionBlur:true, delay:0.2, _x:-230, _y:-1340, ease:Back.easeOut});

     

    }

     

    mainStage.btn4.onRelease = function() {

    TweenMax.to(mainStage, 2, {motionBlur:true, delay:0.4, _x:-1230, _y:-1340, ease:Back.easeOut});

     

    }

     

    < - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - code

  4. Can anybody please help?

    I require a clip to play when it reaches a specific axis... how do I do this?

    The clip must also dissappear when it is no longer at that axis.

     

    Any ideas?

     

    Heres my code:

     

    stop();

    import gs.*;

    import gs.easing.*;

     

     

    mainStage.stage2.onRelease = function() {

    TweenMax.to(mainStage, 2, { motionBlur:true, delay:0.3, _x:-230, _y:-230, ease:Back.easeOut});

     

    }

    mainStage.btn1.onRelease = function() {

    TweenMax.to(mainStage, 2, { motionBlur:true, delay:0.3, _x:-230, _y:-230, ease:Back.easeOut});

     

    }

     

    mainStage.btn2.onRelease = function() {

    TweenMax.to(mainStage, 2, {motionBlur:true, delay:0.3, _x:-1230, _y:-230, ease:Back.easeOut});

     

    }

     

    mainStage.btn3.onRelease = function() {

    TweenMax.to(mainStage, 2, {motionBlur:true, delay:0.3, _x:-230, _y:-1340, ease:Back.easeOut});

     

    }

     

    mainStage.btn4.onRelease = function() {

    TweenMax.to(mainStage, 2, {motionBlur:true, delay:0.5, _x:-1230, _y:-1340, ease:Back.easeOut});

     

    }

     

    Thanks in advance

     

    :?

×
×
  • Create New...