RE: [Flashcoders] |:::| can you write dynamic meathods in a class?

2006-08-14 Thread Robin Burrer
If I want to change the behavior of an object dynamically I rather create a new class to encapsulate the functionality. I might have to write more code but I think it this is a very clean approach. class CustomClickBehavior implements Clickable { public function

[Flashcoders] private property doesn't get called?

2006-08-14 Thread ilteris kaplan
Hello I am having a really strange problem here. I have a boolean property in my class and I am trying to set its value to true as it should be, but it looks like it didn't get even instantiated in the class. Briefly in my class first sendVar method gets call from outside and pass two

[Flashcoders] Creating an image in one game to be reused in another game

2006-08-14 Thread Paul Steven
Hi there I am creating several online games using Flash 8. One game is a painting game where the user creates a picture. The other game is a t-shirt creator application where the user either uses pre-created images or imports an image. I would like the user to be able to import pictures created

[Flashcoders] delegate and proxy

2006-08-14 Thread ilteris kaplan
Hello List, I am trying to pass a parameter to my function with the help of delegate or proxy but I couldn't succeed in both :( I have read http://www.person13.com/articles/proxy/Proxy.htm but still couldn't quite figure out how I should do it. Honestly I begin to feel like dumb four in

Re: [Flashcoders] delegate and proxy

2006-08-14 Thread julien castelain
hi ilteris, maybe this could do it : import ascb.util.Proxy; function finishAnimation(_mc:MovieClip) { var scope = this; var tween4 = new Tween(image, _alpha, Regular.easeOut, 100, 0, 3, true); tween4.onMotionFinished =

[Flashcoders] aslib HashTable key

2006-08-14 Thread Darren Bowers
I am trying to get my head around HashTables and how to create the unique key reference. basically, I have an object that has two properties id (String) and href (String) and i want to create a HashTable keyed on id. However the HashTable object can only be a Number type. What is the best way

Re: [Flashcoders] Creating an image in one game to be reused in another game

2006-08-14 Thread Meinte van't Kruis
That is a nice workaround, allthough sending a bitmap over an ascii line generates alot of overhead. If you are able to use flash 9 you could use it's ability to send raw bytes back to the server, you would still have to write a serverside solution(i think), but it would be nice. -Meinte On

Re: [Flashcoders] private property doesn't get called?

2006-08-14 Thread Meinte van't Kruis
Just had a quick look here. This is the only place you set your flag: (within closeButton) trace(flag: + this.flag); // undefined this.flag = true; So the fact that you trace it BEFORE setting it kind of explains why it traces undefined. Something that would also be good form is

Re: [Flashcoders] delegate and proxy

2006-08-14 Thread Jeroen Beckers
That should be correct Julien, but there's no point in importing, if you are going to use the fully qualified classname anyway... julien castelain wrote: hi ilteris, maybe this could do it : import ascb.util.Proxy; function finishAnimation(_mc:MovieClip) { var scope = this; var

Re: [Flashcoders] delegate and proxy

2006-08-14 Thread julien castelain
sure, sorry bout that :) On 8/14/06, Jeroen Beckers [EMAIL PROTECTED] wrote: That should be correct Julien, but there's no point in importing, if you are going to use the fully qualified classname anyway... julien castelain wrote: hi ilteris, maybe this could do it : import

RE: [Flashcoders] jigsaw puzzle piece algorithm

2006-08-14 Thread Danny Kodicek
Hi Danny, Thanks for the reply.. I'm not quite sure to what you mean, but doesn't it sound similar to my current approach? Rather than using arrays, you suggested objects. Please correct me if I'm wrong. Hi, Guntur, I've been on holiday, but in case it's helpful, a little clarification:

Re: [Flashcoders] jigsaw puzzle piece algorithm

2006-08-14 Thread Guntur N. Sarwohadi
Hello Danny, So for every piece generated, i'll create as much piece and group objects in each piece and group array beyond the piece MC object scope, right? But how does moving all pieces simultaneously be done in pseudocode? How would you tell an object to start drag?.. I mean, since only MCs

RE: [Flashcoders] simple xml editor?

2006-08-14 Thread Merrill, Jason
This one is free and easy to use: Microsoft XML NotePad http://www.snapfiles.com/get/xmlnotepad.html Somewhat limited depending on the type of XML, but might fit your needs. It's pretty fool-proof. Microsoft made it, but doesn't support or distribute it any more. Jason Merrill Bank of America

RE: [Flashcoders] jigsaw puzzle piece algorithm

2006-08-14 Thread Danny Kodicek
Hello Danny, So for every piece generated, i'll create as much piece and group objects in each piece and group array beyond the piece MC object scope, right? But how does moving all pieces simultaneously be done in pseudocode? How would you tell an object to start drag?.. I mean, since

[Flashcoders] Flash 8 - Decoding a SOAP Response - Array of complex objects

2006-08-14 Thread Tom Shaw
Hi all, This is my first post on the list so Ill say hi now and hope you are all friendly :) Ive been going round for days on this one and have searched high and low for an answer. I even looked under the bed but all I found was smelly socks, so before I actually go mad could anyone shed some

Re: [Flashcoders] simple xml editor?

2006-08-14 Thread Michael Stuhr
Merrill, Jason schrieb: This one is free and easy to use: Microsoft XML NotePad http://www.snapfiles.com/get/xmlnotepad.html Somewhat limited depending on the type of XML, but might fit your needs. It's pretty fool-proof. Microsoft made it, but doesn't support or distribute it any more.

RE: [Flashcoders] Flash 8 - Decoding a SOAP Response - Array of complex objects

2006-08-14 Thread Merrill, Jason
What are you using on your backend? .NET? ColdFusion? If .NET, yes, you can easily send objects back and forth. It serializes as SOAP formatted XML inbetween, but you'll never notice. You can read an object with arrays, set properties, and send it back. I can't send you our SOAP message

RE: [Flashcoders] aslib HashTable key

2006-08-14 Thread Darren Bowers
ok, after scouring some Java sites and their buglists I have come up with this implementation of String.hashCode public static function hashCode(str:String):Number { var offset:Number = 0; var hash:Number = 0; var len:Number = str.length; if (len==0) { return 0; } while (offset

Re: [Flashcoders] aslib HashTable key

2006-08-14 Thread Ian Thomas
Hi Darren, What are you creating a Hashtable _for_..? For many applications you can just use a native AS object - e.g.: var myTable:Object=new Object(); myTable[someIDOrOther]=someValue; trace(myTable[someIDOrOther]); // gives someValue For example, in your case: var myTable:Object=new

Re: [Flashcoders] |:::| can you write dynamic meathods in a class?

2006-08-14 Thread Tyler Wright
If you're already using a custom Delegate, why not modify the thing to handle what you've just provided? var clickHandler:Function = MyClass.staticMethod; var args:Array = ['Can', 'pass', 'in', 'any', 'amount']; newBtn.addEventListener(click, Delegate.create2(this, clickHandler, args )); // (I'm

[Flashcoders] OT SVN/Project Hosting

2006-08-14 Thread Ron Wheeler
Can anyone recommend a good project hosting site with reasonable rates and good uptime? Want to host a small project 3-4 developers - Flash and server side so likely need several projects with the same team Minimum SVN, Bugzilla, etc. Anything else to ask for? Client side will be Eclipse.

RE: [Flashcoders] Madobe certified professional - still recommend?

2006-08-14 Thread Steven Sacks | BLITZ
If you spent money on getting Flash certification, I'd certainly agree you were certifiable. ;) ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

RE: [Flashcoders] aslib HashTable key

2006-08-14 Thread Darren Bowers
yeah, I see what you are saying. I will have a play and see how it goes. thanks, Darren _ From: Ian Thomas [mailto:[EMAIL PROTECTED] Sent: Mon 14/08/2006 11:48 PM To: Flashcoders mailing list Subject: Re: [Flashcoders] aslib HashTable key Hi Darren, What are you creating a

[Flashcoders] Strong typing vs attachMovie

2006-08-14 Thread Andreas Rønning
So say i have a movieClip in my library associated with the class Clock. In my application i want an instance of Clock on stage, so i do something like this: var UIClock:Clock = content.attachMovie(clock,uiclock1,1); naturally i'll get compiler errors, since attachMovie returns a MovieClip.

Re: [Flashcoders] Strong typing vs attachMovie

2006-08-14 Thread Johannes Nel
you cast var UIClock:Clock = Clock (content.attachMovie(clock,uiclock1,1)); the cleanest way is prob to put a static create function on the class itself IMO. from the fdt template public static function create(container : MovieClip,name : String, depth : Number, init : Object) : Clock{

Re: [Flashcoders] Strong typing vs attachMovie

2006-08-14 Thread Ian Thomas
Hi Andreas, var UIClock:Clock = Clock(content.attachMovie(clock,uiclock1,1)); using className(supertype) i.e. Clock(supertype) It's called typecasting - or just casting. It looks like a constructor function but isn't. Basically you're telling the compiler It's okay I know what I'm doing - it

Re: [Flashcoders] Strong typing vs attachMovie

2006-08-14 Thread Andreas Rønning
Of course :) thanks guys, totally escaped my mind - A Johannes Nel wrote: you cast var UIClock:Clock = Clock (content.attachMovie(clock,uiclock1,1)); the cleanest way is prob to put a static create function on the class itself IMO. from the fdt template public static function

[Flashcoders] MD5, escape and ASP.NET-urlEncode

2006-08-14 Thread Roman Blöth
Hello folks, just wanted to tell you something and ask for something. Something to tell: ActionScript function escape escapes . and , ASP.NET function urlEncode does not escape . and escapes as +. So Strings escaped in ActionSript will NOT resemble strings urlEncoded in ASP.NET! I came

Re: [Flashcoders] MD5, escape and ASP.NET-urlEncode

2006-08-14 Thread Per Bolmstedt
Roman Blöth wrote: ActionScript function escape escapes . and , ASP.NET function urlEncode does not escape . and escapes as +. .NET URL encodes as specified in RFC's 1738 and, for example, 1630, to emulate the behaviour of web browsers. The encoding of the space to a plus sign is

Re: [Flashcoders] Madobe certified professional - still recommend?

2006-08-14 Thread Eskil Janson
Ok, it is probably really simple for intelligent people, but I'm not that smart. I had to prepare for the exam, and when I did, I think I learned a lot about stuff that I don't work with so often. /E Rich Rodecker skrev: But in my experience people seem to think Certified Flash Developer

Re: [Flashcoders] Flash 8 - Decoding a SOAP Response - Array of complex objects

2006-08-14 Thread Tom Shaw
Hi Jason, Im using Perl with Apach2-SOAP under mod_perl. If you are sending objects back and forth then I dont see why I should be having problems. It must be a problem with my WSDL or Perl SOAP Response. Since flash decodes the response according to the WSDL file then it seems likely there is

[Flashcoders] need help in button

2006-08-14 Thread Rutul Patel
hi people, anybody know how to draw button using AS. if anybody can tell me, thanks -- Regards, Rutul Patel ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive:

Re: [Flashcoders] need help in button

2006-08-14 Thread eric dolecki
You might want to check the draw API in the Help Docs. Its filed under MovieClip. On 8/14/06, Rutul Patel [EMAIL PROTECTED] wrote: hi people, anybody know how to draw button using AS. if anybody can tell me, thanks -- Regards, Rutul Patel ___

RE: [Flashcoders] Flash 8 - Decoding a SOAP Response - Array of complex objects

2006-08-14 Thread Merrill, Jason
Yeah, sorry, this is more of a Perl SOAP WSDL generation issue than a Flash issue I think. I don't do the WSDL creation in .NET here, I have a .NET C# developer I work with. Nobody here knows Perl SOPA WSDL creation in my group. I do know that using native complex objects are fine with Flash

Re: [Flashcoders] need help in button

2006-08-14 Thread Rutul Patel
Thank you eric, i got it. thanks On 8/14/06, eric dolecki [EMAIL PROTECTED] wrote: You might want to check the draw API in the Help Docs. Its filed under MovieClip. On 8/14/06, Rutul Patel [EMAIL PROTECTED] wrote: hi people, anybody know how to draw button using AS. if anybody can tell

RE: [Flashcoders] need help in button

2006-08-14 Thread Merrill, Jason
Very gd. Vat vas just vat you vanted! Jason Merrill Bank of America Learning Organization Effectiveness - Technology Solutions -Original Message- From: [EMAIL PROTECTED] [mailto:flashcoders- [EMAIL PROTECTED] On Behalf Of Rutul Patel Sent: Monday, August 14, 2006 4:49 PM

RE: [Flashcoders] need help in button

2006-08-14 Thread Steven Sacks | BLITZ
hi people, anybody know how to draw button using AS. if anybody can tell me, thanks http://chattyfig.figleaf.com/pipermail/flashcoders/2006-April/164718.htm l hi hello how do I make a multi-player game in flash its got to have lasers thank you ___

Re: [Flashcoders] need help in button

2006-08-14 Thread Bbt Lists
On 8/14/06, Rutul Patel [EMAIL PROTECTED] wrote: hi people, anybody know how to draw button using AS. if anybody can tell me, thanks -- Regards, Rutul Patel You could define your button in a movieclip - place it in your library, and attach it to your movie with AS. Or skin the button

Re: [Flashcoders] zoomin'

2006-08-14 Thread eric dolecki
Interesting - but from a usability standpoint its not great On 8/14/06, Flash Mel [EMAIL PROTECTED] wrote: Have a look at this: www.rpa.com Interesting concept. My question is merely on the zooming; zooming elements from far to wide. I like this a lot. I know it might be a bit of a

[Flashcoders] Training Centre

2006-08-14 Thread Rafael Faria
Hey guys... Does anyone here have heard about Future Media Concepts in NY? Does anyone recomend to take training over there? Does anyone know Marcus Geduld who is the flash instructor at FMC? I would appreciate any information about that. Thanks Rafael Faria

[Flashcoders] zoomin'

2006-08-14 Thread Flash Mel
Have a look at this: www.rpa.com Interesting concept. My question is merely on the zooming; zooming elements from far to wide. I like this a lot. I know it might be a bit of a challenge for me, but i'm willing to try it. If someone could point me in the direction of some conceptual ideas

RE: [Flashcoders] zoomin'

2006-08-14 Thread Steven Sacks | BLITZ
from a usability standpoint its not great Jakob Nielsen is overrated! ;) ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig

[Flashcoders] Actionscript 3.0 compiler Qs

2006-08-14 Thread Kevin Newman
Here are some things I've been wondering about Actionscript 3.0s compiler and runtime engines: I'm assuming AS 3.0 compiles to a bytecode. What kind of bytecode does it compile to? Is it more like Java/.NET CLR, or more like Mozilla's Spidermonkey compiler? Does the compiled code get

Re: [Flashcoders] zoomin'

2006-08-14 Thread eric dolecki
Perhaps so, but a website that upfront tells you how to use it (and also has a help feature in case you need it later) can't possibly be very usability-oriented. I enjoy creative navigation as much as anyone, but sometimes it overwhelms the enjoyment of the information in the site itself. - e.d.

RE: [Flashcoders] zoomin'

2006-08-14 Thread Steven Sacks | BLITZ
sometimes it overwhelms the enjoyment of the information You find it enjoyable to read about an ad agency's employees? You're kidding, right? I mean, do you think that anyone would give a crap about that site if it had standard navigation? Think outside the box, man! :)

Re: [Flashcoders] zoomin'

2006-08-14 Thread eric dolecki
I prefer what CRASH!MEDIA has done with projects/timeline. It doesn't consume the entire site, letting me feel like I am still in control, not navigating around in a mess of projects. Thats just me though. On 8/14/06, Steven Sacks | BLITZ [EMAIL PROTECTED] wrote: sometimes it overwhelms the

Re: [Flashcoders] zoomin'

2006-08-14 Thread Michael Stuhr
Steven Sacks | BLITZ schrieb: I mean, do you think that anyone would give a crap about that site if it had standard navigation? even with a non-standard navigation, which i have alrady seen some years ago (natzke etc), it stays crap. but to stay OT: the question was for some ideas to get

Re: [Flashcoders] zoomin'

2006-08-14 Thread eric dolecki
To follow what micha said, you could also add a little _x movement depending on the scale of the timeline clip... this will give a little more appearance of a 3D system. e.d. On 8/14/06, Michael Stuhr [EMAIL PROTECTED] wrote: Steven Sacks | BLITZ schrieb: I mean, do you think that anyone

[Flashcoders] OR mapping best practices for flashapplication development ?

2006-08-14 Thread Ramswrestler93x
HOW CAN I DOWNLOAD FLASH APPLACTION ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe

[Flashcoders] diff between var == value VS var eq value

2006-08-14 Thread dnk
Is there a difference? I have had some code that will not work using the == and then does using the eq. Any issues? Just curious what the difference is. d ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the

Re: [Flashcoders] diff between var == value VS var eq value

2006-08-14 Thread Grant Cox
eq has been deprecated in favour of == for many years now. While they should be equivalent, you should not use eq unless you are targeting Flash Player 4/5. Is the code where == didn't work for Flash lite? dnk wrote: Is there a difference? I have had some code that will not work using the

Re: [Flashcoders] diff between var == value VS var eq value

2006-08-14 Thread Haikal Saadh
Yes, they are different.r Actionscript dictionary says 'eq' is deprecated. It just compares string representations, so what you might be doing is comparing a number to it's string representation (User input, perhaps?):

Re: [Flashcoders] diff between var == value VS var eq value

2006-08-14 Thread Shane Korin
I think the eq and ne operators are supposed to be used for String comparisons, and the == or != operators used for numerical or other comparisons etc. == and != won't work on strings in flash player 4 (and maybe 5?) On 8/15/06, Grant Cox [EMAIL PROTECTED] wrote: eq has been deprecated