Jump to content
Search Community

LynnB

Members
  • Posts

    26
  • Joined

  • Last visited

LynnB's Achievements

0

Reputation

  1. repeat:-1 and in conjunction: yoyo:true (to reverse the timeline back to the start and play all over again)
  2. I think it has to do where you put your repeat. var yourtimeline:TimelineMax = new TimelineMax({repeat:2,onComplete:myFunction}); yourtimeline.insert(new TweenMax(mc, 3, {colorTransform:{tint:0xffccff, tintAmount:0.5, brightness:0.1}, autoAlpha:.3, delay:6})); function myFunction():void { yourtimeline.play(); }
  3. Yes, that's it! Thank you, I kinda knew it had something to do with removeChild! I'm still learning!
  4. I would like it to disappear, go to autoAlpha:0, removed completely, die, kill, begone totally anything to remove it completely from the stage on rollout. By tween I mean the 'dot' shape tween.
  5. I did try killing it and it's the same effect as pausing it (the tween is still there but suspended in motion). I'm using a timeline and I tried: timeline.kill(); I will try killTweensOf. Thank you!
  6. I've been trying like heck to remove a physics2D tween without success. I know you can stop, pause, reverse, restart but I haven't figured out how to remove it. I have a button on rollover that starts it (setting that up is easy) on rollout I want the tween to be removed, to disappear. Is this possible? Thanks!
  7. I have many more pngs then you are using and I'm scaling them all and all with the DropShadowFilter Plugin applied to them and I don't have the issue you're experiencing.
  8. So sorry, Jack, I should have known to post the fla. By the way, I did consider RESIZE event but the issue happens when the swf loads so I didn't get to adding the resizing code.
  9. I designed a 1200x600 swf that fills the browser window (100%x100%) and saw that on resolution of 1024x768 that the whole swf doesn't show (the bottom half is not visible). So I'm at my wits ends. Now, I'm trying to use AutoFitArea and put all my display objects on it and to scale the swf up and down on resize so the whole swf shows in any browser but it's not working. I need the AutoFitArea to fill the whole browser window and it's not happening. The height fills the browser window but the width doesn't. And I don't know why! What's the problem? Here is test code: import com.greensock.layout.*; import flash.display.StageAlign; this.stage.align = StageAlign.TOP_LEFT; var area:AutoFitArea = new AutoFitArea(this, 0, 0, 1200, 600); area.preview = true; area.attach(mc,ScaleMode.NONE, AlignMode.CENTER, AlignMode.CENTER); area.attach(bar, ScaleMode.WIDTH_ONLY, AlignMode.LEFT, AlignMode.BOTTOM); area.addEventListener(Event.CHANGE, onAreaUpdate); function onAreaUpdate(event:Event):void { trace("updated AutoFitArea"); }
  10. Thank you again, Jack! I understand what you're saying and I'm back on track now.
  11. I'm back, Jack! I'm having an issue now with LiquidPosiiton with items I have pinned to the stage that LoaderMax is throwing an 1009 error. I take out the liquidPostions and LoaderMax works fine. I suspected when I inserted LiquidPosition pins that this would happen. How can I define LiquidPosition pins within the code you wrote above? For instance this throws the error in LoaderMax: timeline.insert(TweenMax.to(logo_mc.products, 1, {delay:4.5, liquidPosition:{x:183, y:112, pin:ls.CENTER},ease:Bounce.easeOut}));
  12. Thanks again, Jack! Yes, my LiquidStage code is in the main timeline of my .fla. I tired your code and initially it didn't quite work. Still got the 1009 error. The below code is what I had to do. Is this correct, that I need to put my LiquidStage attach's in the function also? When I do, that nasty error disappears and things work fine. Putting the ls.attach's outside the function causes the error. Once again, thanks so much for your help. I'm ready to dig deeper now into LoaderMax. if (this.stage == null) { this.addEventListener(Event.ADDED_TO_STAGE, addedToStageHandler); } else { addedToStageHandler(null); } var ls:LiquidStage; //declaring it outside the function so it's available wherever you want - just make sure you don't run code that relies on it until it is properly defined in the addedToStageHandler(). function addedToStageHandler(event:Event=null):void { this.removeEventListener(Event.ADDED_TO_STAGE, addedToStageHandler); this.stage.align = StageAlign.TOP_LEFT; ls = new LiquidStage(this.stage, 550, 400); ls.attach(orange_mc, ls.CENTER); ls.attach(blue_mc, ls.TOP_RIGHT); //and so on... }
  13. Thank you Jack! But to be blunt. I have no idea where to put this code. You said put it in the constructor of the main class in my subloaded swf (I know this to mean my main swf that I'm trying to load). I don't know where the main class is! Is it a .as file? Sorry for being such a newbie!
  14. I'm just starting out trying to use this new LoaderMax. I don't pretend to know much at all. To start, all I want to do is load my main.swf file. I do this and I get; Error #1009: Cannot access a property or method of a null object reference. I figured out it may have to do with LiquidStage or the StageAlign class, I think! I take all references of it out of my main. swf and the Error #1009 disappears. So is it that LiquidStage or the Stage Align class is not loading before it's called? I'm not sure. What to do? Jack, I really wish you'd do a video tutorial on the basics of using LoaderMax. That would really help out us newbies!
  15. sorry to have bothered your good self with that. It open and the combobox works wonderfully now. Once again, you're the best, Jack! Thanks much!
×
×
  • Create New...