Re: [Flashcoders] Particle Playground, Flash 10 General Purpose Comuting with Pixel Bender

2009-03-26 Thread allandt bik-elliott (thefieldcomic.com)
i'm using rc2 which i think is the latest

a

On Wed, Mar 25, 2009 at 2:04 PM, mike cann mike.c...@gmail.com wrote:

 I personally havent done any haXe yet. Have you got the latest version of
 FD
 running?

 2009/3/24 allandt bik-elliott (thefieldcomic.com) alla...@gmail.com

  can anyone recommend a good set of tutorials compatible with both haXe
 and
  flashdevelop - i started going through the ones on haXe.org but they bang
  on
  about a bunch of files that don't seem present in my flashdevelop project
  (i
  suspect they are hidden). The flashdevelop ones seem to be missing.
 
  On Tue, Mar 24, 2009 at 2:53 PM, mike cann mike.c...@gmail.com wrote:
 
   Yep, I have been considering haXe, especially now that they have added
  SWC
   support I can export the core of my rendering engine as haXe compiled
 SWC
   and then use that in my Flex Project, agreed tho the alchemy cheats
 are
   anoying but still very impressive what is possible if you try hard
 enough
   ;)
  
   2009/3/20 Juan Delgado zzzar...@gmail.com
  
You can try haXe, it outputs Alchemy bytoce for that extra
 performance:
   
http://ncannasse.fr/blog/adobe_alchemy
   
Still, it's odd that to get the best of Flash you are forced to
 use...
C or haXe, not ActionScript.
   
On Thu, Mar 19, 2009 at 8:25 PM, Latcho spamtha...@gmail.com
 wrote:
 You are still clever:)
 I think the Alchemy story is a bit of a frustrating one (to know).
 Especially if you don't want to go C++ to obtain...performative
 AS3.
 Latcho

 mike cann wrote:

 Just thought I would update anyone interested, I have updated my
Particle
 Playground see post: http://www.mikecann.co.uk/?p=392

 Also I stumbled accross this very interesting particle on 300k 3D
 particles
 in flash using alchemy and pixel bender!


   
  
 
 http://www.unitzeroone.com/blog/2009/03/18/flash-10-massive-amounts-of-3d-particles-with-alchemy-source-included/

 It put a swift end to the thoughts about how clever i was with 40k
  2D
 particles :P



 2009/3/18 mike cann mike.c...@gmail.com



 Sure will, i learnt quite abit about what you can and cant do
 with
 shaders
 in flash making this. I hope to share with you all soon.

 2009/3/18 Eric E. Dolecki edole...@gmail.com

 Ping us when you release something or have a demo online. Looks
  cool.


 E.

 On Wed, Mar 18, 2009 at 8:03 AM, Hans Wichman 
 j.c.wich...@objectpainters.com wrote:



 awesome:)

 On Wed, Mar 18, 2009 at 12:45 PM, mike cann 
 mike.c...@gmail.com
  


 wrote:


 Hey List,

 I have been playing around with particles again...

 I have just released my latest little saunter into the world
 of


 particles


 and shaders in flash 10. It started off as and idea to use the
  new


 pixel


 bender shaders of flash 10 as a more efficient method of
  updating


 particle


 simulations.

 Well after a few struggling evenings I managed to get a little


 prototype


 going. I was so amazed at some of the beautiful patterns and
   effects


 that


 the particles were making I thought it may be nice rather than
   just
 releasing a tech demo, to add abit more to it and release it
 for


 others


 to


 enjoy.

 I will be releasing the source code in the coming weeks along
  with
   a


 blog


 post which should explain in detail how the technical aspects
 of


 updating


 and rendering tens of thousands of particles per frame works.

 The tool features a gallery tab which you can use to take
screenshots


 then


 upload them to my picassa account (proxyed via php). The hope
 is
   to


 get


 some
 realy beautiful images in here, perhaps if some are good
 enough
   ill


 get


 them
 printed and framed ;)

 You can see it in action over on my blog:


 http://www.mikecann.co.uk/?p=384


 Let me know what you think!
 
 Mike Cann
 http://www.mikecann.co.uk/
 http://www.artificialgames.co.uk/
 ___
 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



 --
 http://ericd.net
 Interactive design and development
 ___
 Flashcoders mailing list
 

[Flashcoders] First lesson

2009-03-26 Thread laurent

Hi,

I have the awesome opportunity to give my first flash lesson to young 
multimedia students in few weeks.
I will start with timeline animation, motion tweens and shape tweens to 
then move to programing tweens and maybe explain a bit of OOP with a 
simple particle class.


I'm looking for some nice shape tween effect. I would like them to 
practice on cool stuff.


So I'm asking you guys what are your favorite shape tween effect ?

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


Re: [Flashcoders] First lesson

2009-03-26 Thread Paul Andrews
- Original Message - 
From: laurent laur...@logiquefloue.org

To: Flash Coders List flashcoders@chattyfig.figleaf.com
Sent: Thursday, March 26, 2009 2:28 PM
Subject: [Flashcoders] First lesson



Hi,

I have the awesome opportunity to give my first flash lesson to young 
multimedia students in few weeks.
I will start with timeline animation, motion tweens and shape tweens to 
then move to programing tweens and maybe explain a bit of OOP with a 
simple particle class.


maybe explain a bit of OOP with a simple particle class.

Seems like a bit much for a first lesson. I'd be tempted to leave that be 
for a first introduction.


Paul

I'm looking for some nice shape tween effect. I would like them to 
practice on cool stuff.


So I'm asking you guys what are your favorite shape tween effect ?

Thanks
Laurent
___
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] First lesson

2009-03-26 Thread Brian Mays
When I taught Flash students they were always content with letting Flash's
nasty default shape tweens do whatever they pleased.

Getting them into shape hints was always something that went over well, IF
they could wrap their minds around it.

Brian Mays


On 3/26/09 9:28 AM, laurent laur...@logiquefloue.org wrote:

 Hi,
 
 I have the awesome opportunity to give my first flash lesson to young
 multimedia students in few weeks.
 I will start with timeline animation, motion tweens and shape tweens to
 then move to programing tweens and maybe explain a bit of OOP with a
 simple particle class.
 
 I'm looking for some nice shape tween effect. I would like them to
 practice on cool stuff.
 
 So I'm asking you guys what are your favorite shape tween effect ?
 

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


Re: [Flashcoders] First lesson

2009-03-26 Thread laurent

Paul Andrews a écrit :

- Original Message - From: laurent laur...@logiquefloue.org
To: Flash Coders List flashcoders@chattyfig.figleaf.com
Sent: Thursday, March 26, 2009 2:28 PM
Subject: [Flashcoders] First lesson



Hi,

I have the awesome opportunity to give my first flash lesson to young 
multimedia students in few weeks.
I will start with timeline animation, motion tweens and shape tweens 
to then move to programing tweens and maybe explain a bit of OOP with 
a simple particle class.


maybe explain a bit of OOP with a simple particle class.

Seems like a bit much for a first lesson. I'd be tempted to leave that 
be for a first introduction.


Paul
Yes I will give them 3 weeks of classes so I'll do my first lesson about 
timeline and tweens for sure :) Or maybe I introduce HaXe straight away :)


Laurent


I'm looking for some nice shape tween effect. I would like them to 
practice on cool stuff.


So I'm asking you guys what are your favorite shape tween effect ?

Thanks
Laurent
___
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 mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] First lesson

2009-03-26 Thread laurent

Brian Mays a écrit :

When I taught Flash students they were always content with letting Flash's
nasty default shape tweens do whatever they pleased.
  

Yes...I don't like it either.

Getting them into shape hints was always something that went over well, IF
they could wrap their minds around it.
  

I was thinking to that after some simple exemple without hints.
I use to like a simple line or dot that tweens into a word, that was 
fast enough and simple to avoid the nasty default shape morphing and was 
cool to make hidden content poping.


Another friend made a sentence 'twiling?' into spiralcan't remember 
but I'll find it again.


That's the kinf of stuff I look for.
Laurent

Brian Mays


On 3/26/09 9:28 AM, laurent laur...@logiquefloue.org wrote:

  

Hi,

I have the awesome opportunity to give my first flash lesson to young
multimedia students in few weeks.
I will start with timeline animation, motion tweens and shape tweens to
then move to programing tweens and maybe explain a bit of OOP with a
simple particle class.

I'm looking for some nice shape tween effect. I would like them to
practice on cool stuff.

So I'm asking you guys what are your favorite shape tween effect ?




___
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] Tween AS3 issue with Firefox

2009-03-26 Thread Zeh Fernando
That's my guess too, but in that case it would have made sense for him to
give us the password to see whatever he wanted us to see.

My curiosity was caught, but it's difficult to help when someone is asking
for help on something so vague.



On Wed, Mar 25, 2009 at 10:15 PM, Muzak p.ginnebe...@telenet.be wrote:

 My guess is whatever he's talking about is beyond the login?

 - Original Message - From: Zeh Fernando z...@zehfernando.com
 To: Flash Coders List flashcoders@chattyfig.figleaf.com
 Sent: Thursday, March 26, 2009 12:01 AM
 Subject: Re: [Flashcoders] Tween AS3 issue with Firefox


  What animation? It works the same in both FF and IE here and there's no
 Tween whatsoever.

 Zeh

 On Wed, Mar 25, 2009 at 3:23 PM, Reina Lyn Ben rly...@gmail.com wrote:

  has anyone had the same problem. I have a website up..
 http://kozonline.com/epk the animation is created in AS3, when I use
 firefox, the animation/transition freezes, I've found solutions online
 like
 creating a variable and store the tween there instead of being dependent
 on
 the garbage Collector feature that tween have. When I test the site on
 IE,
 it animates fine and finishes the tween..

 --


 ___
 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] Tween AS3 issue with Firefox

2009-03-26 Thread Paul Venton
Can't see a tween either, however the site looks a pretty desolate after a
page refresh!  Might want to check the SWFs loadInfo (bytesLoaded against
bytesTotal).


-Original Message-
From: flashcoders-boun...@chattyfig.figleaf.com
[mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Zeh Fernando
Sent: 26 March 2009 16:26
To: Flash Coders List
Subject: Re: [Flashcoders] Tween AS3 issue with Firefox

That's my guess too, but in that case it would have made sense for him to
give us the password to see whatever he wanted us to see.

My curiosity was caught, but it's difficult to help when someone is asking
for help on something so vague.



On Wed, Mar 25, 2009 at 10:15 PM, Muzak p.ginnebe...@telenet.be wrote:

 My guess is whatever he's talking about is beyond the login?

 - Original Message - From: Zeh Fernando z...@zehfernando.com
 To: Flash Coders List flashcoders@chattyfig.figleaf.com
 Sent: Thursday, March 26, 2009 12:01 AM
 Subject: Re: [Flashcoders] Tween AS3 issue with Firefox


  What animation? It works the same in both FF and IE here and there's no
 Tween whatsoever.

 Zeh

 On Wed, Mar 25, 2009 at 3:23 PM, Reina Lyn Ben rly...@gmail.com wrote:

  has anyone had the same problem. I have a website up..
 http://kozonline.com/epk the animation is created in AS3, when I use
 firefox, the animation/transition freezes, I've found solutions online
 like
 creating a variable and store the tween there instead of being dependent
 on
 the garbage Collector feature that tween have. When I test the site on
 IE,
 it animates fine and finishes the tween..

 --


 ___
 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 mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Tween AS3 issue with Firefox

2009-03-26 Thread Muzak

My curiosity was caught, but it's difficult to help when someone is asking
for help on something so vague.


My thoughts exactly.

- Original Message - 
From: Zeh Fernando z...@zehfernando.com

To: Flash Coders List flashcoders@chattyfig.figleaf.com
Sent: Thursday, March 26, 2009 5:26 PM
Subject: Re: [Flashcoders] Tween AS3 issue with Firefox



That's my guess too, but in that case it would have made sense for him to
give us the password to see whatever he wanted us to see.

My curiosity was caught, but it's difficult to help when someone is asking
for help on something so vague.





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


Re: [Flashcoders] Tween AS3 issue with Firefox

2009-03-26 Thread Taka Kojima
It's especially great when you take the time to respond to somebody
and they don't even read your response, or if they do, they don't
respond back.

On Thu, Mar 26, 2009 at 10:46 AM, Muzak p.ginnebe...@telenet.be wrote:
 My curiosity was caught, but it's difficult to help when someone is asking
 for help on something so vague.

 My thoughts exactly.

 - Original Message - From: Zeh Fernando z...@zehfernando.com
 To: Flash Coders List flashcoders@chattyfig.figleaf.com
 Sent: Thursday, March 26, 2009 5:26 PM
 Subject: Re: [Flashcoders] Tween AS3 issue with Firefox


 That's my guess too, but in that case it would have made sense for him to
 give us the password to see whatever he wanted us to see.

 My curiosity was caught, but it's difficult to help when someone is asking
 for help on something so vague.




 ___
 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] First lesson

2009-03-26 Thread laurent


Shape tweening is dead?

:)
L

laurent a écrit :

Brian Mays a écrit :
When I taught Flash students they were always content with letting 
Flash's

nasty default shape tweens do whatever they pleased.
  

Yes...I don't like it either.
Getting them into shape hints was always something that went over 
well, IF

they could wrap their minds around it.
  

I was thinking to that after some simple exemple without hints.
I use to like a simple line or dot that tweens into a word, that was 
fast enough and simple to avoid the nasty default shape morphing and 
was cool to make hidden content poping.


Another friend made a sentence 'twiling?' into spiralcan't 
remember but I'll find it again.


That's the kinf of stuff I look for.
Laurent

Brian Mays


On 3/26/09 9:28 AM, laurent laur...@logiquefloue.org wrote:

 

Hi,

I have the awesome opportunity to give my first flash lesson to young
multimedia students in few weeks.
I will start with timeline animation, motion tweens and shape tweens to
then move to programing tweens and maybe explain a bit of OOP with a
simple particle class.

I'm looking for some nice shape tween effect. I would like them to
practice on cool stuff.

So I'm asking you guys what are your favorite shape tween effect ?




___
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 mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] timeline methods fail on embedded swf

2009-03-26 Thread Eric Costello
Hello flashcoders,

Consider the following as3 file, built for flash 10 with mxmlc; it
embeds a swf built with Flash CS4 which contains a simple motion
tween:

package {

import flash.display.*

public class Test extends MovieClip {

[Embed(source=embed.swf)]
public var embed:Class;

public function Test():void {
var m:MovieClip = MovieClip(addChild(new element()));
m.stop(); // fails
m.y=100; // works
}

}

}

Why is m.stop() ignored? No errors generated, it just does not stop
the embedded swf's timeline from advancing. (All timeline methods fail
silently: stop, gotoAndStop, etc.)

Any pointers on what I'm doing wrong?

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


[Flashcoders] Re: timeline methods fail on embedded swf

2009-03-26 Thread Eric Costello
Apologies, I messed up my code in the original email (used new
element instead of the correct new embed). Corrected code here:

package {

   import flash.display.*

   public class Test extends MovieClip {

   [Embed(source=embed.swf)]
   public var embed:Class;

   public function Test():void {
   var m:MovieClip = MovieClip(addChild(new embed()));
   m.stop(); // fails
   m.y=100; // works
   }

   }

}


On Thu, Mar 26, 2009 at 2:50 PM, Eric Costello e...@schwa.com wrote:
 Hello flashcoders,

 Consider the following as3 file, built for flash 10 with mxmlc; it
 embeds a swf built with Flash CS4 which contains a simple motion
 tween:

 package {

        import flash.display.*

        public class Test extends MovieClip {

                [Embed(source=embed.swf)]
                public var embed:Class;

                public function Test():void {
                        var m:MovieClip = MovieClip(addChild(new element()));
                        m.stop(); // fails
                        m.y=100; // works
                }

        }

 }

 Why is m.stop() ignored? No errors generated, it just does not stop
 the embedded swf's timeline from advancing. (All timeline methods fail
 silently: stop, gotoAndStop, etc.)

 Any pointers on what I'm doing wrong?

 TIA,
 Eric




-- 
Eric Costello

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


Re: [Flashcoders] timeline methods fail on embedded swf

2009-03-26 Thread Taka Kojima
Not sure if this is the issue, but it sure does sound like it.

Does embed.swf have a base class?

The issue I ran into caused all of my timeline code to not execute,
i.e. fail silently, which seems to be what is happening with you.

The problem was that I couldn't import the external.swf's base class
and type cast the external.swf as that class in the class that loads
it in (if it's a local class casting something as :Class, you're
importing it)...

That's a bit of a run-on sentence, and it may or may not make
sense i'll give you an example to try to clarify:

Let's say external.swf's base class is External...

If you do:

var _loader:Loader = new Loader();
_loader.contentLoaderInfo.addEventListener( Event.COMPLETE, loadingComplete );
_loader.load( new URLRequest( external.swf ) );

function loadingComplete(e:Event):void{
addChild(_loader.content);
}

The timeline code will execute, however, if you do:

var _loader:Loader = new Loader();
_loader.contentLoaderInfo.addEventListener( Event.COMPLETE, loadingComplete );;
_loader.load( new URLRequest( external.swf ) );

function loadingComplete(e:Event):void{
var external = External(addChild(_loader.content));
}

The timeline code will not execute.

Obviously, this is a bit of an issue as you cannot correctly typecast
your external swf's and have timeline code run inside of them.

The way I got around this was changing External to ExternalBase and
then creating a new External class -- I then set the document base
class of external.swf to External and typecasted it by doing var
external = ExternalBase(addChild(_loader.content));


Hope this helped.

On Thu, Mar 26, 2009 at 11:50 AM, Eric Costello e...@schwa.com wrote:
 Hello flashcoders,

 Consider the following as3 file, built for flash 10 with mxmlc; it
 embeds a swf built with Flash CS4 which contains a simple motion
 tween:

 package {

        import flash.display.*

        public class Test extends MovieClip {

                [Embed(source=embed.swf)]
                public var embed:Class;

                public function Test():void {
                        var m:MovieClip = MovieClip(addChild(new element()));
                        m.stop(); // fails
                        m.y=100; // works
                }

        }

 }

 Why is m.stop() ignored? No errors generated, it just does not stop
 the embedded swf's timeline from advancing. (All timeline methods fail
 silently: stop, gotoAndStop, etc.)

 Any pointers on what I'm doing wrong?

 TIA,
 Eric
 ___
 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] timeline methods fail on embedded swf

2009-03-26 Thread Taka Kojima
nevermind, i didn't fully read your example, though it might be a
related issue, it's probably not the same...

Although, seeing as they have similar outcomes, maybe what I said will
help you in further debugging the isssue.

On Thu, Mar 26, 2009 at 12:05 PM, Taka Kojima t...@gigafied.com wrote:
 Not sure if this is the issue, but it sure does sound like it.

 Does embed.swf have a base class?

 The issue I ran into caused all of my timeline code to not execute,
 i.e. fail silently, which seems to be what is happening with you.

 The problem was that I couldn't import the external.swf's base class
 and type cast the external.swf as that class in the class that loads
 it in (if it's a local class casting something as :Class, you're
 importing it)...

 That's a bit of a run-on sentence, and it may or may not make
 sense i'll give you an example to try to clarify:

 Let's say external.swf's base class is External...

 If you do:

 var _loader:Loader = new Loader();
 _loader.contentLoaderInfo.addEventListener( Event.COMPLETE, loadingComplete );
 _loader.load( new URLRequest( external.swf ) );

 function loadingComplete(e:Event):void{
 addChild(_loader.content);
 }

 The timeline code will execute, however, if you do:

 var _loader:Loader = new Loader();
 _loader.contentLoaderInfo.addEventListener( Event.COMPLETE, loadingComplete 
 );;
 _loader.load( new URLRequest( external.swf ) );

 function loadingComplete(e:Event):void{
 var external = External(addChild(_loader.content));
 }

 The timeline code will not execute.

 Obviously, this is a bit of an issue as you cannot correctly typecast
 your external swf's and have timeline code run inside of them.

 The way I got around this was changing External to ExternalBase and
 then creating a new External class -- I then set the document base
 class of external.swf to External and typecasted it by doing var
 external = ExternalBase(addChild(_loader.content));


 Hope this helped.

 On Thu, Mar 26, 2009 at 11:50 AM, Eric Costello e...@schwa.com wrote:
 Hello flashcoders,

 Consider the following as3 file, built for flash 10 with mxmlc; it
 embeds a swf built with Flash CS4 which contains a simple motion
 tween:

 package {

        import flash.display.*

        public class Test extends MovieClip {

                [Embed(source=embed.swf)]
                public var embed:Class;

                public function Test():void {
                        var m:MovieClip = MovieClip(addChild(new element()));
                        m.stop(); // fails
                        m.y=100; // works
                }

        }

 }

 Why is m.stop() ignored? No errors generated, it just does not stop
 the embedded swf's timeline from advancing. (All timeline methods fail
 silently: stop, gotoAndStop, etc.)

 Any pointers on what I'm doing wrong?

 TIA,
 Eric
 ___
 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] Re: timeline methods fail on embedded swf

2009-03-26 Thread Cor
@Eric,

I try to follow this, but it throws an error:

TypeError: Error #1007: Instantiation attempted on a non-constructor.
at Test()

What am I doing wrong?

-Original Message-
From: flashcoders-boun...@chattyfig.figleaf.com
[mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Eric
Costello
Sent: donderdag 26 maart 2009 20:01
To: flashcoders@chattyfig.figleaf.com
Subject: [Flashcoders] Re: timeline methods fail on embedded swf

Apologies, I messed up my code in the original email (used new
element instead of the correct new embed). Corrected code here:

package {

   import flash.display.*

   public class Test extends MovieClip {

   [Embed(source=embed.swf)]
   public var embed:Class;

   public function Test():void {
   var m:MovieClip = MovieClip(addChild(new embed()));
   m.stop(); // fails
   m.y=100; // works
   }

   }

}


On Thu, Mar 26, 2009 at 2:50 PM, Eric Costello e...@schwa.com wrote:
 Hello flashcoders,

 Consider the following as3 file, built for flash 10 with mxmlc; it
 embeds a swf built with Flash CS4 which contains a simple motion
 tween:

 package {

        import flash.display.*

        public class Test extends MovieClip {

                [Embed(source=embed.swf)]
                public var embed:Class;

                public function Test():void {
                        var m:MovieClip = MovieClip(addChild(new
element()));
                        m.stop(); // fails
                        m.y=100; // works
                }

        }

 }

 Why is m.stop() ignored? No errors generated, it just does not stop
 the embedded swf's timeline from advancing. (All timeline methods fail
 silently: stop, gotoAndStop, etc.)

 Any pointers on what I'm doing wrong?

 TIA,
 Eric




-- 
Eric Costello

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
No virus found in this incoming message.
Checked by AVG - www.avg.com 
Version: 8.5.278 / Virus Database: 270.11.28/2022 - Release Date: 03/26/09
07:12:00


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


[Flashcoders] Using replace function to replace all occurences not just one?

2009-03-26 Thread TS
I want to replace all occurrences of the  with [LT] not just one

var removed:String = hell/HELLO;

var pattern:RegExp = //; 
removed = removed.replace(pattern, [LT]);

Can someone point me in the right direction?

Thanks, T

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


[Flashcoders] RE: Using replace function to replace all occurences not just one?

2009-03-26 Thread TS
Nevermind

Apparently there are flags like adding the g for global. :) Thanks

var pattern:RegExp = //g;

-Original Message-
From: TS [mailto:sunnrun...@gmail.com] 
Sent: Thursday, March 26, 2009 3:33 PM
To: 'Flash Coders List'
Subject: Using replace function to replace all occurences not just one?

I want to replace all occurrences of the  with [LT] not just one

var removed:String = hell/HELLO;

var pattern:RegExp = //; 
removed = removed.replace(pattern, [LT]);

Can someone point me in the right direction?

Thanks, T

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