Re: [Flashcoders] onMetaData

2008-01-30 Thread Randy Troppmann
I don't think you can rely on metaData being called just once, but it is easy enough to add logic to handle the metadata once only. The nature of the metadata depends on how (and with what tool) the flv was encoded. So the answer to your question of predictability is "Yes" only if you have strict c

Re: [Flashcoders] How to call class method from a movieclip?

2008-01-30 Thread Steven Sacks
Jesse Graupmann wrote: > function callMom () > { >trace( "YOU NEVER CALL" ); > } While we appreciate your code sample, Jesse, and we're all supportive of you, Flashcoders isn't a surrogate for your group therapy sessions. ;) Steven Sacks Flash Maestro Los Angeles, CA -- blog: http://www.s

Re: [Flashcoders] Gateway URL to AMFPHP generating error...

2008-01-30 Thread Dave Mennenoh
Try to get hold of "Charles" the proxy debugger, it is really good for watching comms between Flash & the server and you can see all your NetDebug messages. Have you tried using the AMFPHP service browser to call the commands to see what happens. Are you calling a gateway on http://www.domain.

Re: [Flashcoders] Gateway URL to AMFPHP generating error...

2008-01-30 Thread Glen Pike
Have you turned on debugging in the gateway? - Look in gateway.php, I had something the other day that bollixed my flash because I had disabled stuff, here is my working config: if(PRODUCTION_SERVER) { //Disable profiling, remote tracing, and service browser $gateway->disableDe

[Flashcoders] Gateway URL to AMFPHP generating error...

2008-01-30 Thread Dave Mennenoh
No clue here, this just started happening - it's been working. From Flash, when I try and call a AMFPHP service I get an error opening URL message - pointing to my gateway url. If I go to the gateway URL in FireFox I get the message: "amfphp and this gateway are installed correctly. You may now

RE: [Flashcoders] How to call class method from a movieclip?

2008-01-30 Thread Jesse Graupmann
/// IN YOUR .FLA OR SOME CLASS function callMom () { trace( "YOU NEVER CALL" ); } var mc:MyClip = new MyClip( this ); addChild ( mc ); mc.phoneHome(); /// IN MYCLIP.AS AND LINKED IN THE LIBRARY TO YOUR MOVIECLIP package { import flash.display.MovieClip;

Re: [Flashcoders] input text formatting

2008-01-30 Thread Andrew Sinning
___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Re: [Flashcoders] input text formatting

2008-01-30 Thread Cory Petosky
Use the defaultTextFormat property instead of setTextFormat. On 1/29/08, Andrew Sinning <[EMAIL PROTECTED]> wrote: > Yes, that's exactly what I'm going ot have to do. This has got to be a > BUG. If I trace out the format.align property after a single character > change it goes from center to nul

RE: [Flashcoders] how to return in this function

2008-01-30 Thread Claudio M. E. Bastos Iorio
Thank you guys, now I have a clearer point of view. Your responses and this thread http://www.actionscript.org/forums/showthread.php3?t=159167 helped me a lot. Have a nice day! Claudio M. E. Bastos Iorio http://www.blumer.com.ar -Original

[Flashcoders] POST from within a frameset

2008-01-30 Thread Kevin Heppell
Hello, I've been struggling to get POST to work from a SWF inside a frameset. >From Googling it looks like it is a (known?) bug - but I was hoping to try and find a workaround / more information. There may have been a previous post on this but I haven't been able to find it. Can anyon

RE: [Flashcoders] How to call class method from a movieclip?

2008-01-30 Thread Merrill, Jason
what is contentMC() ? Looks like it doesn't take any arguments. Where is that defined? Jason Merrill Bank of America GT&O L&LD Solutions Design & Development eTools & Multimedia Bank of America Flash Platform Developer Community >>-Original Message- >>From: [EMAIL PROTECTED]

Re: [Flashcoders] How to call class method from a movieclip?

2008-01-30 Thread Irene Johansson
Thank you for your reply. by doing this: public class myClass extends Sprite{ public function myClass() { var contentMCs:MovieClip; = new contentMC(this); } public function myMethod(){ } } I get this error msg: 1137: Incorrect number of arguments. Expected no more than 0. since contentMC is a M

Re: [Flashcoders] How to call class method from a movieclip?

2008-01-30 Thread Kenneth Kawamoto
Looks to me your Class "MyClass" should be the Document class. If you set it as Document class, you can attach your MovieClip like this, because the root timeline is MyClass itself: var contentMCs:MovieClip = new ContentMC(); addChild(contentMCs); Then from your MovieClip, you can call MyClass

RE: [Flashcoders] Animating sprite.graphics.lineTo

2008-01-30 Thread Merrill, Jason
Thanks Michael, Thanks Kenneth, good ideas. Jason Merrill Bank of America GT&O L&LD Solutions Design & Development eTools & Multimedia Bank of America Flash Platform Developer Community >>-Original Message- >>From: [EMAIL PROTECTED] >>[mailto:[EMAIL PROTECTED] On Behalf >>Of M

Re: [Flashcoders] How to call class method from a movieclip?

2008-01-30 Thread Andy Herrman
If you want your contentMC class to be able to call methods on your myClass then you should probably pass the myClass instance to the contentMC. Basically, add a parameter to contentMC's constructor of type myClass, and pass a reference to 'this' when you create it. Something like this: public cl

RE: [Flashcoders] Animating sprite.graphics.lineTo

2008-01-30 Thread Mendelsohn, Michael
Jason, I recently put together a bar chart, rendered entirely by code in AS2, where the points must be connected by a line. I draw the entire line (which might look like a profile of the Rocky Mountains) in one mc, and set a mask over it in another mc. I use the tween class on the _width propert

[Flashcoders] How to call class method from a movieclip?

2008-01-30 Thread Irene Johansson
Hello! I am having a big problem, hope someone can help me. I have made a class which i import in my flash file. The first and only frame of the file looks like this: import myClassFolder.*; var myClassInstance:myClass = new myClass(this.stage); stop(); Inside the class i am attaching a movieCli

[Flashcoders] Animating sprite.graphics.lineTo

2008-01-30 Thread Kenneth Kawamoto
Any straight line can be described as this simple equation: y = ax + b If you have the starting point (x1, y1) and the end point (x2, y2), it's easy to work out two constants a and b. The beauty of TweenLite is you can tween any property of any object (thanks Jack!). In this case you will cre

[Flashcoders] Bundle swf's on server for transport to client

2008-01-30 Thread Gert-Jan van der Wel
Hi list, I'm working on the Flash app of Floorplanner and we are having some problems with the loading of all the swf's. The Flash app (AS2) consists of 1 main app that loads several forms (the windows you see, like the library). The library holds a lot of furni

RE: [Flashcoders] mc code still runs after being removed...Huh?!?

2008-01-30 Thread Sunil Jolly
Hi Boyd, I don't fully understand your example. Does this article help at all? http://gskinner.com/blog/archives/2006/07/as3_resource_ma_1.html Sunil -Original Message- From: BOYD SPEER [mailto:[EMAIL PROTECTED] Sent: 29 January 2008 18:06 To: Flash Coders List Subject: [Flashcoders] mc

Re: [Flashcoders] how to return in this function

2008-01-30 Thread Leonardo Scattola - New Vision srl
Claudio M. E. Bastos Iorio ha scritto: Hi guys, hope you can help me on this one. I have a class to load an XML file. I'm trying this: As Eric said, remember that the Event class is your friend. You will want to manage any asynchronous "procedure" (such as Remoting, XML parsing, NetConnect

Re: [Flashcoders] loadMovie from subdirectory - change base path

2008-01-30 Thread Hans Wichman
Hi, check this out: http://objectpainters.com/blog/2007/01/03/where-am-i-relative-paths/ The getPath things works in most cases. If you want a more complex version that takes more things into account, you can use this: You will need to replace the RuntimeExceptions with your own error mechanism (