Jump to content
Search Community

madina

Members
  • Posts

    8
  • Joined

  • Last visited

Contact Methods

Profile Information

  • Location
    United Kingdom

madina's Achievements

0

Reputation

  1. madina

    Machine Gun Effect

    My apologies Ive found the export. Thanks! Never assumed it would be under 'SHARE' I'll tell CodePen thanks fer yer help!
  2. madina

    Machine Gun Effect

    Export! ...Where is that?
  3. madina

    Machine Gun Effect

    Having trouble getting the Greensock machine gun effect to work on my site. I took the code used from codepen... http://codepen.io/GreenSock/pen/AGzci Cant for the life of me figure out why this isn't working on my site... http://madina.co.uk/test/ Please could you shine some light on this? I need some kinda trouble shooting article Thanks Mark
  4. 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"); } }
  5. 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?
  6. Hi Thanks for this... I think its the second script I'm after. However I have to often rely on 'script assist' to get my code working. I have no idea where to place this code? Does it completely replace the existing code? Is it placed somewhere in the existing code or clip? Sorry for my lack of knowledge I do hope you can help this novice scripter. MC
  7. 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
  8. 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...