[Flashcoders] Toon Fu!

2009-11-22 Thread Alan Watts

Hi all,

I have been working on an AS3-based animation app and finally have  
made a version public:


http://www.toonfu.com/help/

Anyone interested in some beta-testing?  There are still some bugs,  
but it's stable and usable.  I'd love to get feedback from some folks  
who are animators.


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


Re: [Flashcoders] getChildByName problem

2009-11-22 Thread Sajid Saiyed
I am on CS3 with Flash Player 9.
Is there a way to deal with this in Player 9?

Thanks

On Mon, Nov 23, 2009 at 2:36 PM, Henrik Andersson  wrote:
> The playhead vs actionscript situation is a mess in Flash since as 3 first
> came out. This is the end result of flex being the only tool to test with.
> But enough ranting about that.
>
> First make sure that your swf is published for FP 10, if it is, the
> situation is better.
>
> If this is not enough (or possible), there are two ways of executing code
> before the rendering, but after the frame change. The first one is simple
> framescripts. They run when the frame in question is loaded, so per
> definition, they can't run too late.
>
> The other way is the FP 10 new event FRAME_CONSTRUCTED that is fired just
> before the framescripts are executed.
> ___
> 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] getChildByName problem

2009-11-22 Thread Henrik Andersson
The playhead vs actionscript situation is a mess in Flash since as 3 
first came out. This is the end result of flex being the only tool to 
test with. But enough ranting about that.


First make sure that your swf is published for FP 10, if it is, the 
situation is better.


If this is not enough (or possible), there are two ways of executing 
code before the rendering, but after the frame change. The first one is 
simple framescripts. They run when the frame in question is loaded, so 
per definition, they can't run too late.


The other way is the FP 10 new event FRAME_CONSTRUCTED that is fired 
just before the framescripts are executed.

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


Re: [Flashcoders] Suggestion for the new Flash

2009-11-22 Thread Henrik Andersson

Karl DeSaulniers wrote:

Can we get a radio button selection in the properties pane for any MC to
smooth its contents or not?


First you have to define how to smooth vector graphics. Smoothing is 
only for bitmaps and it's supported there already.

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


[Flashcoders] getChildByName problem

2009-11-22 Thread Sajid Saiyed
Hi,
I dont know what am I doing wrong here.

I have a library item linked to a class.
The class creates the instance of the symbol.
Then I addChild
The symbol has three keyframes on the timeline (by default stopping at
first frame).
Each frame has different movieclips.
INside these movieclips, there are some more movieclips.

So lets assume this is the structure of my library symbol:

canvas (library item name)
| (frame-1)  canvasOne (instance name)
||-- mc1 (instance name)
||-- mc2 (instance name)
||-- mc3
(instance name)
| (frame-2)  canvasTwo (instance name)
||-- mc1 (instance name)
||-- mc2 (instance name)
| (frame-3)  canvasThree (instance name)
 |-- mc1 (instance name)
 |-- mc2 (instance name)
 |-- mc3 (instance name)

Now, when I call the following from within my class, it works:

/* code */
this.canvas.gotoAndStop(2);

but the next line fails /

this.canvas.canvasTwo.getInstanceByName("mc1");

Any Idea?

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


Re: [Flashcoders] Suggestion for the new Flash

2009-11-22 Thread Karl DeSaulniers

Thanks for that Latcho.
I went ahead and submitted my suggestion.
But I asked here, because I know some of the Adobe people list here  
and was curious to get a response to the suggestion.

Thanks for the link though.

Best,
Karl


On Nov 22, 2009, at 11:00 PM, Latcho wrote:

We code in flash or in actionscript but we are not the creators of  
(the) Flash (IDE);

check out:
https://www.adobe.com/cfusion/mmform/index.cfm?name=wishform
Latcho

Karl DeSaulniers wrote:

Hello,
Can I make a suggestion for the new Flash App.
Can we get a radio button selection in the properties pane for any  
MC to smooth its contents or not?
That way anything loaded into that MC can be opted to be smoothed  
or not.

Less programing code if this was the case I think.
JAT


Karl DeSaulniers
Design Drumm
http://designdrumm.com

___
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


Karl DeSaulniers
Design Drumm
http://designdrumm.com

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


Re: [Flashcoders] Suggestion for the new Flash

2009-11-22 Thread Latcho
We code in flash or in actionscript but we are not the creators of (the) 
Flash (IDE);

check out:
https://www.adobe.com/cfusion/mmform/index.cfm?name=wishform
Latcho

Karl DeSaulniers wrote:

Hello,
Can I make a suggestion for the new Flash App.
Can we get a radio button selection in the properties pane for any MC 
to smooth its contents or not?

That way anything loaded into that MC can be opted to be smoothed or not.
Less programing code if this was the case I think.
JAT


Karl DeSaulniers
Design Drumm
http://designdrumm.com

___
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] Suggestion for the new Flash

2009-11-22 Thread Karl DeSaulniers

Hello,
Can I make a suggestion for the new Flash App.
Can we get a radio button selection in the properties pane for any MC  
to smooth its contents or not?
That way anything loaded into that MC can be opted to be smoothed or  
not.

Less programing code if this was the case I think.
JAT


Karl DeSaulniers
Design Drumm
http://designdrumm.com

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


Re: [Flashcoders] Detect child parent

2009-11-22 Thread Karl DeSaulniers

Try

this.removeChild(myChild);

parent.removeChild(myChild);

Without the myChild reference in the beginning.

Or set the child in the beginning.

ParentMCName.addChild(myChild);
Then you should be able to reference the parent if was defined when  
creating the child.

Hth.

Karl

Sent from losPhone

On Nov 22, 2009, at 6:06 PM, ktt  wrote:


strangely
trace (myChild.parent)
outputs
[object someObject]
but it doesn't work when I try to
remove via
myChild.parent.removeChild(myChild)
or via reference..
the child before was added simply by
addChild(myChild)

Ktt
--- On Sun, 11/22/09, Chris  wrote:


From: Chris 
Subject: Re: [Flashcoders] Detect child parent
To: "Flash Coders List" 
Date: Sunday, November 22, 2009, 10:27 PM
It sounds like what you are doing is
correct. Perhaps your child isn't on
the stage.

Try something like this:

if(child.parent){
   child.parent.removeChild(child);
}

Which will only attemp to remove child if the parent
exists.

If you expect your child to always be parented, you might
want to yell
loudly about it:

if(child.parent){
   child.parent.removeChild(child);
}else{
   throw new Error("This child doesn't
currently have a parent.");
}

On Sun, Nov 22, 2009 at 1:15 PM, Ktu  
wrote:



Are you sure that the child you are trying to remove

is in a display list?


Ktu

On Sun, Nov 22, 2009 at 3:08 AM, Karl DeSaulniers


wrote:



Maybe..

var childParent:Object = mychild.parent;
childParent.removeChild(mychild)

or

var childParent:Object = mychild._parent;
childParent.removeChild(mychild)

Karl



On Nov 22, 2009, at 1:58 AM, Karl DeSaulniers

wrote:


  mychild.parent.removeChild(mychild)





Karl DeSaulniers
Design Drumm
http://designdrumm.com

___
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 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] Detect child parent

2009-11-22 Thread ktt
strangely
trace (myChild.parent)
outputs
[object someObject]
but it doesn't work when I try to
remove via
myChild.parent.removeChild(myChild)
or via reference..
the child before was added simply by
addChild(myChild)

Ktt
--- On Sun, 11/22/09, Chris  wrote:

> From: Chris 
> Subject: Re: [Flashcoders] Detect child parent
> To: "Flash Coders List" 
> Date: Sunday, November 22, 2009, 10:27 PM
> It sounds like what you are doing is
> correct. Perhaps your child isn't on
> the stage.
> 
> Try something like this:
> 
> if(child.parent){
>    child.parent.removeChild(child);
> }
> 
> Which will only attemp to remove child if the parent
> exists.
> 
> If you expect your child to always be parented, you might
> want to yell
> loudly about it:
> 
> if(child.parent){
>    child.parent.removeChild(child);
> }else{
>    throw new Error("This child doesn't
> currently have a parent.");
> }
> 
> On Sun, Nov 22, 2009 at 1:15 PM, Ktu wrote:
> 
> > Are you sure that the child you are trying to remove
> is in a display list?
> >
> > Ktu
> >
> > On Sun, Nov 22, 2009 at 3:08 AM, Karl DeSaulniers
>  > >wrote:
> >
> > > Maybe..
> > >
> > > var childParent:Object = mychild.parent;
> > > childParent.removeChild(mychild)
> > >
> > > or
> > >
> > > var childParent:Object = mychild._parent;
> > > childParent.removeChild(mychild)
> > >
> > > Karl
> > >
> > >
> > >
> > > On Nov 22, 2009, at 1:58 AM, Karl DeSaulniers
> wrote:
> > >
> > >  mychild.parent.removeChild(mychild)
> > >>>
> > >>
> > > Karl DeSaulniers
> > > Design Drumm
> > > http://designdrumm.com
> > >
> > > ___
> > > 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 mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Still Infinitely Looping

2009-11-22 Thread Paul Andrews

Karl DeSaulniers wrote:

Couldn't you just put:

Main.stop();

Instead of editing the library asset?

No, the problem is with mcHand, not the main timeline.


Karl

Sent from losPhone

On Nov 22, 2009, at 12:58 PM, Paul Andrews  wrote:


var main:Main = new Main();
addChild(main);
main.init();
stop();

___
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] Still Infinitely Looping

2009-11-22 Thread Karl DeSaulniers

Couldn't you just put:

Main.stop();

Instead of editing the library asset?

Karl

Sent from losPhone

On Nov 22, 2009, at 12:58 PM, Paul Andrews  wrote:


var main:Main = new Main();
addChild(main);
main.init();
stop();

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


Re: [Flashcoders] Detect child parent

2009-11-22 Thread Henrik Andersson

Chris wrote:

If you expect your child to always be parented, you might want to yell
loudly about it:

if(child.parent){
child.parent.removeChild(child);
}else{
throw new Error("This child doesn't currently have a parent.");
}


You mean like flash does for you?
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] HTMLLoader

2009-11-22 Thread John R. Sweeney Jr
Why is this funny. The client wants a touchscreen kiosk (built in Flash)
that one of the elements is they want the to show the corporate website
within the app. Not a overlaid popup browser, but the actual site inside the
application. I've been told that AIR and the HTMLLoader will handle it, but
the clients site has Flash elements running on it, hence my question of:

Can AIR handle displaying a website inside itself, that has Flash elements?

Why did you say that that is funny?


Thank you in advance,
John


on 11/20/09 8:16 PM, Latcho at spamtha...@gmail.com wrote:

> That be funny,
> 
> Finally html rendering inside a packed flash air swf but then no flash
> anymore :)
> 
> Nono, Works a treat.
> 
> Have fun.
> 
> Ciao,
> 
> Latcho


John R. Sweeney Jr.
Interactive Multimedia Developer


OnDemand Interactive Inc
945 Washington Blvd.
Hoffman Estates, IL 60169
Office/Fax: 847.310.5959
Cellular: 847.651.4469
www.ondemandinteractive.com


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


Re: [Flashcoders] Detect child parent

2009-11-22 Thread Chris
It sounds like what you are doing is correct. Perhaps your child isn't on
the stage.

Try something like this:

if(child.parent){
   child.parent.removeChild(child);
}

Which will only attemp to remove child if the parent exists.

If you expect your child to always be parented, you might want to yell
loudly about it:

if(child.parent){
   child.parent.removeChild(child);
}else{
   throw new Error("This child doesn't currently have a parent.");
}

On Sun, Nov 22, 2009 at 1:15 PM, Ktu wrote:

> Are you sure that the child you are trying to remove is in a display list?
>
> Ktu
>
> On Sun, Nov 22, 2009 at 3:08 AM, Karl DeSaulniers  >wrote:
>
> > Maybe..
> >
> > var childParent:Object = mychild.parent;
> > childParent.removeChild(mychild)
> >
> > or
> >
> > var childParent:Object = mychild._parent;
> > childParent.removeChild(mychild)
> >
> > Karl
> >
> >
> >
> > On Nov 22, 2009, at 1:58 AM, Karl DeSaulniers wrote:
> >
> >  mychild.parent.removeChild(mychild)
> >>>
> >>
> > Karl DeSaulniers
> > Design Drumm
> > http://designdrumm.com
> >
> > ___
> > 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] Detect child parent

2009-11-22 Thread Ktu
Are you sure that the child you are trying to remove is in a display list?

Ktu

On Sun, Nov 22, 2009 at 3:08 AM, Karl DeSaulniers wrote:

> Maybe..
>
> var childParent:Object = mychild.parent;
> childParent.removeChild(mychild)
>
> or
>
> var childParent:Object = mychild._parent;
> childParent.removeChild(mychild)
>
> Karl
>
>
>
> On Nov 22, 2009, at 1:58 AM, Karl DeSaulniers wrote:
>
>  mychild.parent.removeChild(mychild)
>>>
>>
> Karl DeSaulniers
> Design Drumm
> http://designdrumm.com
>
> ___
> 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] Still Infinitely Looping

2009-11-22 Thread beno -
On Sun, Nov 22, 2009 at 1:58 PM, Paul Andrews  wrote:

> Tell me about mcHand. I am expecting you to tell me that mcHand is a
> MovieClip symbol in your library. If you edit that symbol you'll find there
> is a timeline just for mcHand. That is the timeline I have been referring
> to, not the main timeline.
>

Well, now, that's what I didn't understand! I'm not at my computer with
Flash installed. I'll try this later. Thank you!
beno
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Still Infinitely Looping

2009-11-22 Thread Paul Andrews

beno - wrote:

On Sun, Nov 22, 2009 at 12:32 PM, Paul Andrews  wrote:

  

beno - wrote:



On Sun, Nov 22, 2009 at 11:03 AM, Paul Andrews  wrote:



  

If  mcHand has a tween on the timeline for that MovieClip, there MUST be
a
stop() command in actionscript at the end of the frames for the
mcMovieClip.
Without that stop() command the timeline will loop.



Perhaps we are miscommunicating. There is no instance of this mc being
dragged onto the stage. This mc appears only programatically. Yes, I could
drag it onto the stage, and then it would have a definite start and stop.
But such is not the case here. The *only* thing in the timeline is the
script. The first frame has:

var main:Main = new Main();
addChild(main);
main.init();
stop();

and now the 20th frame has:

stop();

Since the mc is either exactly 10 or 20 frames, it plays either once or
twice. I don't see how that would make any difference whatsoever for test
purposes. But my point is, I don't understand how putting that stop() in the
20th frame makes any sense at all, since all the action comes from the code
in the Main2.as file. Am I mistaken, or have you misunderstood? Please
advise.
  
Tell me about mcHand. I am expecting you to tell me that mcHand is a 
MovieClip symbol in your library. If you edit that symbol you'll find 
there is a timeline just for mcHand. That is the timeline I have been 
referring to, not the main timeline.


Paul

beno


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


Re: [Flashcoders] Still Infinitely Looping

2009-11-22 Thread beno -
On Sun, Nov 22, 2009 at 12:32 PM, Paul Andrews  wrote:

> beno - wrote:
>
>> On Sun, Nov 22, 2009 at 11:03 AM, Paul Andrews  wrote:
>>
>>
>>
>>> If  mcHand has a tween on the timeline for that MovieClip, there MUST be
>>> a
>>> stop() command in actionscript at the end of the frames for the
>>> mcMovieClip.
>>> Without that stop() command the timeline will loop.
>>>
>>
Perhaps we are miscommunicating. There is no instance of this mc being
dragged onto the stage. This mc appears only programatically. Yes, I could
drag it onto the stage, and then it would have a definite start and stop.
But such is not the case here. The *only* thing in the timeline is the
script. The first frame has:

var main:Main = new Main();
addChild(main);
main.init();
stop();

and now the 20th frame has:

stop();

Since the mc is either exactly 10 or 20 frames, it plays either once or
twice. I don't see how that would make any difference whatsoever for test
purposes. But my point is, I don't understand how putting that stop() in the
20th frame makes any sense at all, since all the action comes from the code
in the Main2.as file. Am I mistaken, or have you misunderstood? Please
advise.
beno

PS Code of Main2.as follows once again:

package
{
 import flash.display.MovieClip;
public class Main2 extends MovieClip
  {
  public function Main2():void
{
  }
  public function init():void {
leftHand();
  }
  public function leftHand():void
{
var mcHandInstance2:mcHand = new mcHand();
addChild(mcHandInstance2);
mcHandInstance2.x = 800;
mcHandInstance2.y = 200;
  }
 }
}
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


RE: [Flashcoders] Mailing List Idea: Teddy Bear

2009-11-22 Thread Kerry Thompson
Nathan Mynarcik wrote:

> I think the reason why the teddy bear idea works is because you get up and
walk
> away from the project and think. 

That's part of it. I've used the teddy bear technique a lot, and it forces
me to really think through the process I'm using. I find that if I can't
explain my problem to the bear, I don't understand it myself. Forming a
detailed explanation has given me an "aha!" moment more times than I can
remember.

It often goes something like "I do this, then this, get a return value, send
it to this object, and get a void return... hang on... That's it! I have the
function returning a value, but I declared the function as void. D'oh!"

If you can explain the problem in detail, you can probably fix it.

Cordially,

Kerry Thompson

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


Re: [Flashcoders] Still Infinitely Looping

2009-11-22 Thread Paul Andrews

beno - wrote:

On Sun, Nov 22, 2009 at 11:03 AM, Paul Andrews  wrote:

  

If  mcHand has a tween on the timeline for that MovieClip, there MUST be a
stop() command in actionscript at the end of the frames for the mcMovieClip.
Without that stop() command the timeline will loop.




I put a keyframe (F6) at frame 20 of the only layer in the timeline (which,
I believe would have made it loop twice...the mc is either 10 frames or 20),
opened the script editor (F9) and entered one line of code:
stop();
saved and ran (ctr+enter). It kept looping. Forgive my misunderstanding of
your instructions. Please clarify.
  
There is only one timeline to consider - the timeline of the MovieClip 
instantiated from mcHand.
The layer that you add the stop() to is immaterial - the best practice 
is to have a separate "actions" layer.

stop() goes on the very last frame of the mcHand MovieClip

I can't clarify any more.

Your responses tend to be a bit ambiguous.
"only layer in the timeline (which,I believe would have made it loop 
twice" - well you need to understand why a MovieClip might loop - (99% 
of the time a missing stop() action).


"The mc is either 10 frames or 20" - well it's not a question of "or" 
but "is". It can only be one length.


Paul

TIA,
beno
___
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] Still Infinitely Looping

2009-11-22 Thread beno -
On Sun, Nov 22, 2009 at 11:03 AM, Paul Andrews  wrote:

> If  mcHand has a tween on the timeline for that MovieClip, there MUST be a
> stop() command in actionscript at the end of the frames for the mcMovieClip.
> Without that stop() command the timeline will loop.
>

I put a keyframe (F6) at frame 20 of the only layer in the timeline (which,
I believe would have made it loop twice...the mc is either 10 frames or 20),
opened the script editor (F9) and entered one line of code:
stop();
saved and ran (ctr+enter). It kept looping. Forgive my misunderstanding of
your instructions. Please clarify.
TIA,
beno
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] text input @ appearing as ' in chrome

2009-11-22 Thread Juan Pablo Califano
It's a bug that's been there for ages in the plugin version of the player
(it affects all browsers except for Internet Explorer, that uses the ActiveX
version of the player).

http://bugs.adobe.com/jira/browse/FP-40

The problem shows in every browser
except IE if you set wmode to anything different from "window" (the
default).

Apparently, they've finally managed to fix it in the latest player.


Cheers
Juan Pablo Califano

2009/11/20 Kevin Bath 

> Hi all,
>
>
>
> Has anyone had the problem with input text fields (AS3 - fp10) where the @
> symbol appear as an apostrophe ' in Chrome browser? (also happens in
> safari)
> - but it's fine on all other browsers (same machine, same keyboard)
>
>
>
> I would pull my hair out - but I have none!
>
>
>
>
>
> thanks,
>
>
>
> Kevin Bath.
>
> ___
> 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] Still Infinitely Looping

2009-11-22 Thread Paul Andrews

beno - wrote:

On Sat, Nov 21, 2009 at 3:52 PM, Paul Andrews  wrote:

  

It's all good advice.




Attitude is important. Yours is good because it's not degrading.


  

It's may take you ages to track down these bugs, but a lesson will be
learned.




We programmers are gluttons for punishment ;)


  

Stipping back code until the problem goes away is a great technique.




Indeed it is!

  

I think I and others have already told you what the real problem is.




That may be true, but if that's the case, I've missed it. Here is
stripped-to-the-bone code:

package
{
 import flash.display.MovieClip;
 public class Main2 extends MovieClip
  {
  public function Main2():void
{
  }
  public function init():void {
leftHand();
  }
  public function leftHand():void
{
trace('left hand');
var mcHandInstance2:mcHand = new mcHand();
addChild(mcHandInstance2);
mcHandInstance2.x = 800;
mcHandInstance2.y = 200;
  }
 }
}

This is on the first frame of the only layer of the timeline:

var main:Main2 = new Main2();
addChild(main);
main.init();
stop();

"left hand" traces. No errors are thrown. Please tell, what have I missed?
  
If  mcHand has a tween on the timeline for that MovieClip, there MUST be 
a stop() command in actionscript at the end of the frames for the 
mcMovieClip. Without that stop() command the timeline will loop.


Paul

TIA,
beno
___
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] Still Infinitely Looping

2009-11-22 Thread beno -
On Sat, Nov 21, 2009 at 3:52 PM, Paul Andrews  wrote:

> It's all good advice.
>

Attitude is important. Yours is good because it's not degrading.


> It's may take you ages to track down these bugs, but a lesson will be
> learned.
>

We programmers are gluttons for punishment ;)


> Stipping back code until the problem goes away is a great technique.
>

Indeed it is!

>
> I think I and others have already told you what the real problem is.
>

That may be true, but if that's the case, I've missed it. Here is
stripped-to-the-bone code:

package
{
 import flash.display.MovieClip;
 public class Main2 extends MovieClip
  {
  public function Main2():void
{
  }
  public function init():void {
leftHand();
  }
  public function leftHand():void
{
trace('left hand');
var mcHandInstance2:mcHand = new mcHand();
addChild(mcHandInstance2);
mcHandInstance2.x = 800;
mcHandInstance2.y = 200;
  }
 }
}

This is on the first frame of the only layer of the timeline:

var main:Main2 = new Main2();
addChild(main);
main.init();
stop();

"left hand" traces. No errors are thrown. Please tell, what have I missed?
TIA,
beno
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] How to detect browser closure or user navigating away?

2009-11-22 Thread Alexander Farber
Hello fellow flashcoders,

is there a way in AS3 to detect when the user
closes the browser with your flash movie or
navigates away from the web page containing it?

I'd like to send short information to the server
when doing so. I have a flash movie acting both
as socket and HTTP client (depending on firewall),
so detecting socket closure doesn't work for me.

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


Re: [Flashcoders] Detect child parent

2009-11-22 Thread Karl DeSaulniers

Maybe..

var childParent:Object = mychild.parent;
childParent.removeChild(mychild)

or

var childParent:Object = mychild._parent;
childParent.removeChild(mychild)

Karl


On Nov 22, 2009, at 1:58 AM, Karl DeSaulniers wrote:


mychild.parent.removeChild(mychild)


Karl DeSaulniers
Design Drumm
http://designdrumm.com

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


Re: [Flashcoders] Detect child parent

2009-11-22 Thread Karl DeSaulniers

Actually I think your code should be

mychild._parent.removeChild(mychild)

But I am thinking in AS2, so this may not be the case for AS3.
Not sure.
HTH

Karl


On Nov 22, 2009, at 1:53 AM, ktt wrote:


mychild.parent.removeChild(mychild)


Karl DeSaulniers
Design Drumm
http://designdrumm.com

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


[Flashcoders] Detect child parent

2009-11-22 Thread ktt
Hello

I would like to remove Child, but can't detect it's parent.
How to remove a Child without knowing it's parent?

mychild.parent.removeChild(mychild)

doesn't work..

Ktt


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