Jump to content
Search Community

erhabi

Members
  • Posts

    8
  • Joined

  • Last visited

erhabi's Achievements

0

Reputation

  1. Hello there, This may sound absurd, but is it still possible to obtain the old version, "PreloadAssetManager" for as2 ?
  2. thanks for the direction, really aprpeciate it. i'll give it a shot and see how it turns out.
  3. great! thanks for the explanation, i am just in love with TweenLite and TimelineLite!!
  4. great! thanks for the explanation, i am just in love with TweenLite and TimelineLite!!
  5. Hello, I have set up a very basic fla with 3 bts and 3 dummy swfs. Each bt loads an swf into a mc called 'loadmc' an empty container on the stage and fades it in using TweenLite. But i ran into a roadblock here. i was thinking of makeing it function like this: a) load 1st swf on click fade out 1st swf and load 2nd swf.. and so on.. therefore, since i'm not well versed with as3, i wrote a fairly simple piece of code : import com.greensock.*; import com.greensock.easing.*; import com.greensock.plugins.*; TweenPlugin.activate([AutoAlphaPlugin]); import flash.net.URLRequest; import flash.display.Loader; import flash.events.Event; import flash.events.ProgressEvent; import flash.events.MouseEvent; var loader:Loader = new Loader(); addChild(loader); bt1.addEventListener(MouseEvent.CLICK,onLoadClick); function onLoadClick(evt:MouseEvent):void { loadmc.alpha = 0; loader.load(new URLRequest("loadtest1.swf")); loadmc.addChild(loader); TweenLite.to(loadmc, 0.8, {autoAlpha:1, ease:Sine.easeIn}); } bt2.addEventListener(MouseEvent.CLICK, onLoadClick2); function onLoadClick2(evt:MouseEvent):void { loadmc.alpha = 0; loader.load(new URLRequest("loadtest2.swf")); loadmc.addChild(loader); TweenLite.to(loadmc, 0.8, {autoAlpha:1, ease:Sine.easeIn}); } bt3.addEventListener(MouseEvent.CLICK, onLoadClick3); function onLoadClick3(evt:MouseEvent):void { loadmc.alpha = 0; loader.load(new URLRequest("loadtest3.swf")); loadmc.addChild(loader); TweenLite.to(loadmc, 0.8, {autoAlpha:1, ease:Sine.easeIn}); } However, i cant get the intended logic to execute here. With the above it just loads 1 swf into the container and fades it in, but in between the 2nd swf and the 1st there should be fading happening with each other (1st swf and 2nd swf), instead there's just a jump... :S Since i am new to as3 and still learning, any help would be appreciated please. thanks.
  6. Also, in your opinion, do you think using the 'getChildByName' method is more reliable than the above ? I mean, whats the difference between the two ? Just curious. Thanks
  7. thanks for the tip! it seems adding in the plugins line alongwith the activation seems to work just fine! import com.greensock.plugins.*; TweenPlugin.activate([AutoAlphaPlugin]); i am loving this engine more and more! thanks guys for such a great work on the engine, really. its awesome!!!
  8. Hello, I have a nested mc called 'mcfishers' that resides inside 'stagemc1', residing on the main stage. So in order to imagine, the mc is built like this : stagemc1 + mcfishers Now i saw this somewhere and the code i have tried to write in order to tween the nested mc is something like this: var mc:MovieClip = stagemc1.mcfishers; TweenLite.to(mc, 0.5, {autoAlpha:1, ease:Sine.easeIn}); Now, I'm not an expert on as3, just a designer that is still learning, but when the code runs nothing happens.. the mc remains as is on the stage with no errors whatsoever while compiled. I tried looking into the documentation too but i could not find any reference to using TweenLite with nested mcs. Help, anyone? Thanks.
×
×
  • Create New...