[Flashcoders] Animation stops working after swapChildren

2010-05-14 Thread Fahim Akhter
I have a class which extends a SWC , in the swc i have two boxes, front and
back and an animation on the same timeline. The animation works fine without
swapping when I swap them the animation stops working. Anyway I can make it
work?

I have the following code :

var frontTemp:DisplayObject =
this.animationInstance.getChildByName(front);
var backTemp:DisplayObject  =
this.animationInstance.getChildByName(back);
this.animationInstance.swapChildren(frontTemp,backTemp);
this.animationInstance.gotoAndPlay(animation);


Fahim Akhter
Game Developer | White Rabbit Studios |
http://apps.facebook.com/feline-frenzy/
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Event Listeners

2010-05-14 Thread John Singleton
- Original Message 

 From: Merrill, Jason jason.merr...@bankofamerica.com
 To: Flash Coders List flashcoders@chattyfig.figleaf.com
 Sent: Thu, May 13, 2010 2:56:28 PM
 Subject: RE: [Flashcoders] Event Listeners
 
 OK, then you're AllDone(). :) 

LOL!
John


  
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Modifying a already defined tween

2010-05-14 Thread Fahim Akhter
I tried continueTo which seems to work :D thanks

Fahim Akhter
Game Developer | White Rabbit Studios |
http://apps.facebook.com/feline-frenzy/


On Thu, May 13, 2010 at 2:41 PM, kennethkawam...@gmail.com 
kennethkawam...@gmail.com wrote:

 I recommend TweenMax, which you can just call updateTo() to change the
 end value of the tween on the fly.

 If you need to use your Tween, then I'd imagine you would call
 continueTo(), but then you have to determine how much time left to
 complete the tween to new goal. Messy.
 --
 Kenneth Kawamoto
 http://www.materiaprima.co.uk/

 On 13 May 2010 09:50, Fahim Akhter akhter.fa...@gmail.com wrote:
  Hi,
 
  I have a tween like this :
 
 new Tween(myObject, x,null,nowPosition,finalPosition,time,true);
 sometween.start();
 
  Now when the tween has not finished and is somewhere in the middle and
 the
  final position changes. I want this tween to be modified so instead of
  moving to its already defined postion the object goes to the final
 position.
  Any ideas?
 
  Fahim Akhter
  Game Developer | White Rabbit Studios |
  http://apps.facebook.com/feline-frenzy/

 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] Changing Containers

2010-05-14 Thread John Singleton
Hi;
I have this:

big_container.removeChild(container_middle);
container_middle = container_middle2;
big_container.addChild(container_middle);

I'm trying to change container_middle to container_middle2 but keep the same 
name so that I can manipulate it programmatically. Unfortunately, the above 
code doesn't work. I only succeed in removing the first container. How shall I 
do this?
TIA,
John


  

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Animation stops working after swapChildren

2010-05-14 Thread Henrik Andersson

Fahim Akhter wrote:

I have a class which extends a SWC , in the swc i have two boxes, front and
back and an animation on the same timeline. The animation works fine without
swapping when I swap them the animation stops working. Anyway I can make it
work?



Even just looking at the tweened object the wrong way causes the tween 
to halt. Or more precisely: the timeline will stop.


Don't mess with timeline tweened instances.
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Changing Containers

2010-05-14 Thread Henrik Andersson
That should work. Perhaps there is some other unmentioned detail that 
you have forgotten to mention?

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Changing Containers

2010-05-14 Thread John Singleton
This appears to be more complex than I originally anticipated. Here is more 
complete code:

var start_flag:Boolean = true;
var start_flag2:Boolean = true;

function BigContainer()
{
if(start_flag == false)
{
start_flag2 = false;
}
if(start_flag == true)
{
LoadImages();
start_flag = false;
}
else
{
if(i == 4)
{
i = 1;
}
else if(i == 3)
{
j = 1;
}
var timeline:TimelineLite = new 
TimelineLite({onComplete:LoadImages()});
timeline.append(new TweenLite(container_left, 3, {alpha: 1}));
}
}

function LoadImages()
{
LoadLeft();
}

function LoadLeft():void 
{
if(start_flag == true)
{
container_left = new Sprite();
} else {
big_container.removeChild(container_left);
container_left = container_left2;
}
big_container.addChild(container_left)
var path:String = images/left + i + .png;
var req:URLRequest = new URLRequest(path);
var loader:Loader = new Loader();
loader.load(req);
loader.addEventListener(IOErrorEvent.IO_ERROR, 
function(e:IOErrorEvent):void{ trace(e) });  
loader.contentLoaderInfo.addEventListener(Event.COMPLETE, 
LoadLeftLoaded);
}

function LoadLeftLoaded(evt:Event):void
{
var loaderInfo:LoaderInfo = evt.target as LoaderInfo;
var displayObject:DisplayObject = loaderInfo.content;
displayObject.width = 319;
displayObject.height = 502;
big_container.removeChild(container_left2);
container_left.addChild(displayObject);
if(start_flag2 == true)
{
container_left.x = 1000;
container_left.y = 20;
} else {
container_left.x = 30;
container_left.y = 20;
}
var timeline:TimelineLite = new TimelineLite({onComplete:SpinLeft});
timeline.append(new TweenLite(container_left, 1, {x:30, y:20}));
}

function SpinLeft()
{
big_container.addChild(container_left2)
var path:String = images/left + j + .png;
var req:URLRequest = new URLRequest(path);
var loader:Loader = new Loader();
loader.load(req);
loader.addEventListener(IOErrorEvent.IO_ERROR, 
function(e:IOErrorEvent):void{ trace(e) });  
loader.contentLoaderInfo.addEventListener(Event.COMPLETE, 
SpinLeftLoaded);
}

function SpinLeftLoaded(evt:Event):void
{
var loaderInfo:LoaderInfo = evt.target as LoaderInfo;
var displayObject:DisplayObject = loaderInfo.content;
displayObject.width = 319;
displayObject.height = 502;
container_left2.addChild(displayObject);
container_left2.x = 30;
container_left2.y = -482;
var rand:Number = new Number(randomNumber(rand_low, rand_high));
var timeline:TimelineLite = new TimelineLite({onComplete: 
CompleteLeft});
timeline.append(new TweenLite(container_left, rand/100, {alpha: 
1}));
timeline.append(new TweenLite(container_left, 1, {x:30, y:522}));
var timeline2:TimelineLite = new TimelineLite();
timeline2.append(new TweenLite(container_left2, rand/100, {alpha: 
1}));
timeline2.append(new TweenLite(container_left2, 1, {x:30, y:20}));
}

function CompleteLeft()
{
left_done = true;
AllDone();
}

function AllDone()
{
if(right_done == true  mid_done == true  left_done == true)
{
right_done = false;
mid_done = false;
left_done = false;
i += 1;
j += 1;
BigContainer()
}
}


When it runs through BigContainer the second time, for some reason my 
containers disappear and nothing shows on the screen. This happens even if I 
take out my removeChild statements, and that's what's got me puzzled. Ideas?
TIA,
John



  
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] Oh the irony

2010-05-14 Thread Matt S.
http://store.apple.com/us/product/H1314LL/A?mco=MTY3ODQ5OTY

Not that I would expect them to remove it, but it is funny to see in
the Apple store...
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


RE: [Flashcoders] Oh the irony

2010-05-14 Thread Merrill, Jason
The funny part is:  Apple Recommends [Flash] for: A comprehensive
toolset that's ideal for design, web, mobile, and video workflows.

Really.


Jason Merrill 

Instructional Technology Architect
Bank of  America  Global Learning 

Join the Bank of America Flash Platform Community  and visit our
Instructional Technology Design Blog
(note: these are for Bank of America employees only)






-Original Message-
From: flashcoders-boun...@chattyfig.figleaf.com
[mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Matt S.
Sent: Friday, May 14, 2010 2:10 PM
To: Flash Coders List
Subject: [Flashcoders] Oh the irony

http://store.apple.com/us/product/H1314LL/A?mco=MTY3ODQ5OTY

Not that I would expect them to remove it, but it is funny to see in the
Apple store...
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Oh the irony

2010-05-14 Thread Matt S.
the other irony: When you watch the iPad ad, it plays with the
Quicktime plugin, at least for me, despite my being in Safari, which
ostensibly supports HTML5. Apparently some plugins are better than
others...

http://www.apple.com/ipad/gallery/#ad
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] Test

2010-05-14 Thread Elia Morlin
Are my messages coming through?

Thanks
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Test

2010-05-14 Thread Nathan Mynarcik
Yup
--Original Message--
From: Elia Morlin
Sender: flashcoders-boun...@chattyfig.figleaf.com
To: Flash Coders List
ReplyTo: Flash Coders List
Subject: [Flashcoders] Test
Sent: May 14, 2010 4:58 PM

Are my messages coming through?

Thanks
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Test

2010-05-14 Thread Kerry Thompson
Your previous messages have, but this one didn't.

On Fri, May 14, 2010 at 4:58 PM, Elia Morlin elia.li...@gmail.com wrote:
 Are my messages coming through?

 Thanks
 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


RE: [Flashcoders] Test

2010-05-14 Thread Merrill, Jason
 Are my messages coming through?

No.


Jason Merrill 

Instructional Technology Architect
Bank of  America  Global Learning 

Join the Bank of America Flash Platform Community  and visit our
Instructional Technology Design Blog
(note: these are for Bank of America employees only)



___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Test

2010-05-14 Thread Kerry Thompson
Elia Morlin wrote:

 Are my messages coming through?

Aside from wiseacre comments from the likes of Jason and me, there's
an option you may not know about.

Click on http://chattyfig.figleaf.com/mailman/listinfo/flashcoders.
Towards the bottom of the page, you will see a button labeled
Unsubscribe or edit options. Enter your email address and click on
that. On the next page, enter your password.

That will take you to a screen where you can edit your settings.
Scroll down and you'll see the option Receive your own posts to the
list?. If No is selected, you won't get copies of your own posts.
If you want copies, change it to Yes.

Cordially,

Kerry Thompson
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Oh the irony

2010-05-14 Thread Ktu
amazing

On Fri, May 14, 2010 at 2:24 PM, Matt S. mattsp...@gmail.com wrote:

 the other irony: When you watch the iPad ad, it plays with the
 Quicktime plugin, at least for me, despite my being in Safari, which
 ostensibly supports HTML5. Apparently some plugins are better than
 others...

 http://www.apple.com/ipad/gallery/#ad
 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders