Re: [Flashcoders] Interaction between clips and main timeline in AS3.

2010-04-16 Thread natalia Vikhtinskaya
Thank you your help. But I still can not get it works. Can anybody give simple example how clip from a library with timeline animation can get and set variables in root in any frame of this animation? Thank you 2010/4/16 Henrik Andersson he...@henke37.cjb.net: natalia Vikhtinskaya wrote: In

Re: [Flashcoders] Interaction between clips and main timeline in AS3.

2010-04-16 Thread Karl DeSaulniers
Can you set an include on the first frame of the added movie clip that adds the appropriate class to record the variables and then talk to the main timeline? You could maybe set the include statement in an onEnterFrame or its AS3 equiv.? Then the include statement would only get added when

Re: [Flashcoders] Interaction between clips and main timeline in AS3.

2010-04-16 Thread Henrik Andersson
Karl DeSaulniers wrote: Can you set an include on the first frame of the added movie clip that adds the appropriate class to record the variables and then talk to the main timeline? You don't include classes, you import them. It was the same deal in as 2.

Re: [Flashcoders] Interaction between clips and main timeline in AS3.

2010-04-16 Thread Karl DeSaulniers
Oops, I meant import. :P Been working in PHP a lot lately. :) Karl On Apr 16, 2010, at 3:23 AM, Henrik Andersson wrote: Karl DeSaulniers wrote: Can you set an include on the first frame of the added movie clip that adds the appropriate class to record the variables and then talk to the

Re: [Flashcoders] Interaction between clips and main timeline in AS3.

2010-04-16 Thread Karl DeSaulniers
Hey Natalia, I found this which may solve your immediate problem. I have never used this before, but it looks promising. http://www.jumpeyecomponents.com/Flash-Components/Various/ ActionScript-Bridge-91/ Might be worth a look-see. HTH, Karl On Apr 16, 2010, at 2:08 AM, natalia Vikhtinskaya

Re: [Flashcoders] Interaction between clips and main timeline in AS3.

2010-04-16 Thread natalia Vikhtinskaya
I have two good books Loey Lott and Colin Moock but could not find answer for this simple situation. Maybe this is not simple for AS3? 2010/4/16 Karl DeSaulniers k...@designdrumm.com: Oops, I meant import. :P Been working in PHP a lot lately. :) Karl On Apr 16, 2010, at 3:23 AM, Henrik

Re: [Flashcoders] flash performance for 2d vector drawing into a scene graph

2010-04-16 Thread Henrik Andersson
Josh Saxe wrote: Any advice? Thanks in advance. Use bitmap caching where appropriate. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Re: [Flashcoders] Interaction between clips and main timeline in AS3.

2010-04-16 Thread Karl DeSaulniers
I think its not simple because you are scripting timeline wise. Got to pick. AS2 or AS3. I believe what they were trying to say was if you have all the code in classes, you can communicate between the root and the added movie clip because the classes reference each other, not the timeline.

Re: [Flashcoders] Interaction between clips and main timeline in AS3.

2010-04-16 Thread Henrik Andersson
natalia Vikhtinskaya wrote: I have two good books Loey Lott and Colin Moock but could not find answer for this simple situation. Maybe this is not simple for AS3? Step by step: 1. Assign a class to the timeline. 2. Get a reference to the timeline using the parent or root properties. 3. Cast

Re: [Flashcoders] NetStream onMetaData does not get called

2010-04-16 Thread allandt bik-elliott (thefieldcomic.com)
just a thought - it's amazing how many times i wrack my brains trying to find a solution to a problem that is just something i assumed was done that wasn't i got nothing apart from that On 15 April 2010 20:15, Henrik Andersson he...@henke37.cjb.net wrote: allandt bik-elliott

Re: [Flashcoders] Interaction between clips and main timeline in AS3.

2010-04-16 Thread Henrik Andersson
Karl DeSaulniers wrote: I think its not simple because you are scripting timeline wise. Got to pick. AS2 or AS3. I believe what they were trying to say was if you have all the code in classes, you can communicate between the root and the added movie clip because the classes reference each other,

RE: [Flashcoders] @#$% New iPhone Developer Agreement Bans the Use of Adobe¹s Flash-to-iPhone Compiler

2010-04-16 Thread Andrew Murphy
I think Apple may be doing this in an attempt to preserve the brand identity of their mobile devices. A flood of mobile devices with hardware and interfaces that are as powerful and intuitive, or more so, than the iPhone and iPad, has begun. By requiring developers to jump through hoops to

Re: [Flashcoders] @#$% New iPhone Developer Agreemen t Bans the Use of Adobe¹s Flash-to-iPhone Compiler

2010-04-16 Thread Mark Winterhalder
On Fri, Apr 16, 2010 at 2:22 PM, Andrew Murphy amur...@delvinia.com wrote: By requiring developers to jump through hoops to create content for their devices, Apple makes it more likely that that content will only be available on their devices, making it exclusive. Yes, cross-platform

Re: [Flashcoders] Re:drawrect: get the linestyle drawing inside

2010-04-16 Thread Ktu
So, I haven't quite figured it out, but I think I am getting closer. It is possible, the math is just a bit beyond my normal skills so it may take some more time. Thanks for asking about this. I have always wanted to have inner strokes and strokes that don't overlap. You asking just pushed me to

Re: [Flashcoders] NetStream onMetaData does not get called

2010-04-16 Thread kennethkawam...@gmail.com
I have now working solutions, and here are few things may be beneficial for someone in the future doing Red5 streaming: - onMetaData does not get called, but to obtain the length of the stream you can use NetConnection.call(getStreamLength, Responder, stream) - onXMPdata does get called but not

Re: [Flashcoders] Interaction between clips and main timeline in AS3.

2010-04-16 Thread jonathan howe
So, my untested proposal is this: Root timeline, don't instantiate your subclip with code. Just put it on the stage with an instance name, and refer to it then. In the subclip, you can then refer to parent.counter or whatever your variable is, because you're guaranteed that you have a parent if

Re: [Flashcoders] Interaction between clips and main timeline in AS3.

2010-04-16 Thread natalia Vikhtinskaya
Yes I expected that Flash and AS3 could be used for simple task without creating classes. But as I see now it is not true. If you I have clip with some animation and I want communicate with main timeline at the end of animation I cannot do that. And I cannot find any solution for that. I have the

Re: [Flashcoders] Interaction between clips and main timeline in AS3.

2010-04-16 Thread tom rhodes
File Publish Settings Flash Actionscript 3.0 Settings Strict Mode (uncheck it) that's your easiest solution if you are having trouble. once you get more into the AS3 side of things you won't need it any more... On 16 April 2010 17:33, natalia Vikhtinskaya natavi.m...@gmail.com wrote: Yes

Re: [Flashcoders] Interaction between clips and main timeline in AS3.

2010-04-16 Thread natalia Vikhtinskaya
THANK YOU 2010/4/16 tom rhodes tom.rho...@gmail.com: File Publish Settings Flash Actionscript 3.0 Settings Strict Mode (uncheck it) that's your easiest solution if you are having trouble. once you get more into the AS3 side of things you won't need it any more... On 16 April 2010

Re: [Flashcoders] Interaction between clips and main timeline in AS3.

2010-04-16 Thread Henrik Andersson
natalia Vikhtinskaya wrote: THANK YOU Just remember that you just turned off all type safety and even the slightest typo will result in a runtime error instead of a compile time error. ___ Flashcoders mailing list

Re: [Flashcoders] Interaction between clips and main timeline in AS3.

2010-04-16 Thread Karl DeSaulniers
Darn, I thought I was close. :( That last statement you said is what I have the hardest time figuring out about AS3. When to use classes and how to use them and the fancy rules that goes with EVERYTHING about AS3. I think I may just wait till AS4. lol. Karl On Apr 16, 2010, at 4:24 AM,

RE: [Flashcoders] Interaction between clips and main timeline in AS3.

2010-04-16 Thread David Hunter
Hi, Seems you may have solved this by turning off strict mode. An alternative way (depending on how flexible you can be with your program) would be to reverse your approach and listen to what frame the clip is on (myClip.currentFrame) and perform functions accordingly. As long as you know what

[Flashcoders] container w/ text

2010-04-16 Thread John Singleton
Hi; I have this code: function Text() { parent_container5 = new Sprite(); addChild(parent_container5); //parent_container5.width = stage.stageWidth/2; //parent_container5.height = stage.stageWidth/4; parent_container5.x

Re: [Flashcoders] Interaction between clips and main timeline in AS3.

2010-04-16 Thread Henrik Andersson
David Hunter wrote: Hi, Seems you may have solved this by turning off strict mode. An alternative way (depending on how flexible you can be with your program) would be to reverse your approach and listen to what frame the clip is on (myClip.currentFrame) and perform functions accordingly. As

Re: [Flashcoders] container w/ text

2010-04-16 Thread Kenneth Kawamoto
multiline wordWrap ? Kenneth Kawamoto http://www.materiaprima.co.uk/ John Singleton wrote: Hi; I have this code: function Text() { parent_container5 = new Sprite(); addChild(parent_container5); //parent_container5.width =

Re: [Flashcoders] container w/ text

2010-04-16 Thread Matt Perkins
I think you need to set the width/height of the textfield not the sprite. Or add a mask the the sprite and size that - but you shouldn't be resizing the sprite to do what you're trying to do. John Singleton wrote: Hi; I have this code: function Text() {

[Flashcoders] CS5 doc online

2010-04-16 Thread mika
http://help.adobe.com/en_US/Flash/CS5/Using/index.html just noticed Let's dig :) ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

[Flashcoders] reading a css from www?

2010-04-16 Thread sebastian
Hello coders, Simple question I think... I have a SWF file, but its location on my server is not fixed, so I am having to call and load files using full URL paths. I'm having an issue with loading the CSS file based on whether the domain being loaded is typed with, or without the www in

Re: [Flashcoders] reading a css from www?

2010-04-16 Thread Karl DeSaulniers
//check to see if testing locally, or deployed live if ((this.loaderInfo.url.indexOf(http)0) || (this.loaderInfo.url.indexOf(testserver)1) || (this.loaderInfo.url.indexOf(localhost)1)) { //live test.foo = LoaderInfo