1 Replies - 2774 Views - Last Post: 02 October 2009 - 01:23 AM

#1 chrisdegrote  Icon User is offline

  • New D.I.C Head

Reputation: 1
  • View blog
  • Posts: 14
  • Joined: 18-November 08

How to slide/tween in a uiloader on stage with actionscript

Post icon  Posted 01 October 2009 - 04:25 PM

Hey people

I want to slide in 4 uiloaders on the stage but how can I achieve this? This is the code I've got untilll now. The effect I desire is that the uiloader slides in from the left to right. With the first going on 500 seconds, second 1000 seconds, third 1500 seconds and the fourth on 2000 seconds.

This is the code I've got untill now

stage.scaleMode = StageScaleMode.NO_SCALE;
stage.align = StageAlign.TOP_LEFT;

stage.addEventListener(Event.RESIZE,onStageResize);
onStageResize();

function onStageResize($event:Event=null):void
{
	loader1_mc.y = stage.stageHeight * 0;
	loader2_mc.y = stage.stageHeight * 0.25;
	loader3_mc.y = stage.stageHeight * 0.50;
	loader4_mc.y = stage.stageHeight * 0.75;
}


The Uiloders are in the movieclips loader1_mc etc..
Hope sombody can explain how to tween those 4 movieclips

Thank you very much for your time

Is This A Good Question/Topic? 0
  • +

Replies To: How to slide/tween in a uiloader on stage with actionscript

#2 thehat  Icon User is offline

  • awake ? web();
  • member icon

Reputation: 106
  • View blog
  • Posts: 951
  • Joined: 28-February 08

Re: How to slide/tween in a uiloader on stage with actionscript

Posted 02 October 2009 - 01:23 AM

You could use Flash's built in Tween class, but it's a bit crap. I prefer Tweener. All the documentation is provided in their wiki.
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1