Re: [Flashcoders] > Difference keying

2005-12-30 Thread bryan.rice
On Dec 30, 2005, at 2:00 PM, Weyert de Boer wrote: My question is does anyone here already happen to have such a example working in Flash 8? Check out Grant's "Dynamic Keying" example on http://incomplet.org/ . No source code, but it shows the possibility. blue skies, bryan __

Re: [Flashcoders] Compoent Events Example (dispatch, listen, etc)

2005-12-30 Thread JesterXL
This too, is valid: mx.events.EventDispatcher.initialize(this); However, that adds 3 methods to each class instance, thus every time you create a new class instance or component, you now add more functions to memory for each instance, and you run that initialize function every time your class

Re: [Flashcoders] Compoent Events Example (dispatch, listen, etc)

2005-12-30 Thread Spencer Markowski
It's fairly straightforward.. at least it is if what I'm about to show you is what you want to know. In your class file follow this basic structure. You'll need to import mx.events.EventDispatcher and add the three functions at the bottom to any class you wish to broadcast from. import mx.events.E

Re: [Flashcoders] Compoent Events Example (dispatch, listen, etc)

2005-12-30 Thread JesterXL
Crap, tired, forgot the import statement for the first example: import mx.events.EventDispatcher; - Original Message - From: "JesterXL" <[EMAIL PROTECTED]> To: "Flashcoders mailing list" Sent: Friday, December 30, 2005 9:28 PM Subject: Re: [Flashcoders] Compoent Events Example (dispatch

Re: [Flashcoders] Compoent Events Example (dispatch, listen, etc)

2005-12-30 Thread JesterXL
I can hit the first part; I'll leave the 2nd to someone else. In Flash 8 and below, here's how you can tap into the framework using MovieClip: class Component extends MovieClip { // these functions are added at runtime by the mixin // we define here so Flash compiler doesn't bitch pu

[Flashcoders] Compoent Events Example (dispatch, listen, etc)

2005-12-30 Thread Mark Ribau
Does anyone know of a really really good example that shows how to write Components that dispatch and listen to events ? Deeper question: What about a Component that when dragged onto another Component/Object adds listeners for that Component's Events to the Component/Object ? Any and all as

Re: [Flashcoders] Singleton as associative array - yucky icky?

2005-12-30 Thread g.wygonik
On 12/30/05, Nathan Derksen <[EMAIL PROTECTED]> wrote: > Yah, that's why it is so much cleaner just to have an associative > array as a private property within your class, and create addItem(), > getItem(), and removeItem() methods to manage that associative array. > That way you also don't have to

Re: [Flashcoders] Re: calling a static method on dynamically namedclass?

2005-12-30 Thread Jim Kremens
"//set the name of the class to call the create() method on var classToCall = "MyClass"; _global[classToCall].create(); //change the name of the class to call create() on classToCall = "MyOtherClass"; _global[classToCall].create(); again classToCall = "AnotherClass"; _global[classToCall].create()

Re: [Flashcoders] Singleton as associative array - yucky icky?

2005-12-30 Thread JesterXL
I forget what MTASC does I think it throws a warning too. - Original Message - From: "JesterXL" <[EMAIL PROTECTED]> To: "Flashcoders mailing list" Sent: Friday, December 30, 2005 2:34 PM Subject: Re: [Flashcoders] Singleton as associative array - yucky icky? Flash won't bitch when

Re: [Flashcoders] Singleton as associative array - yucky icky?

2005-12-30 Thread JesterXL
Flash won't bitch when you do this: my_xml["owner"] Flex 1 & 1.5 will give you a warning. Flex 2 bitches if owner isn't public. - Original Message - From: "Nathan Derksen" <[EMAIL PROTECTED]> To: "Flashcoders mailing list" Sent: Friday, December 30, 2005 2:24 PM Subject: Re: [Flashco

Re: [Flashcoders] Singleton as associative array - yucky icky?

2005-12-30 Thread Nathan Derksen
On 12/30/05, Nathan Derksen <[EMAIL PROTECTED]> wrote: while that is true, i thought that was what the "dynamic" keyword was to allow, and without it, you'd get some sort of error... That's the theory, but as the XML example shows, using the associative array syntax gets around the compile-ti

Re: [Flashcoders] Singleton as associative array - yucky icky?

2005-12-30 Thread g.wygonik
On 12/30/05, Nathan Derksen <[EMAIL PROTECTED]> wrote: > Those are equivalent syntaxes. Everything basically inherits from > Object, so this is valid syntax throughout, including your custom > classes. Basically, you are accessing (and apparently creating) > properties on the fly, with no type chec

RE: [Flashcoders] Passing complex structure of parameters to webservice with ActionScript

2005-12-30 Thread Adrian Lynch
I don't know the answer, but you owe me £4.50 just for reading your email :OD -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Binyamin Bauman Sent: 30 December 2005 19:03 To: flashcoders@chattyfig.figleaf.com Subject: [Flashcoders] Passing complex structure o

[Flashcoders] Passing complex structure of parameters to web service with ActionScript

2005-12-30 Thread Binyamin Bauman
I have been cracking my head against this for days. I am trying to consume a web service that requires a complex structure of parameters to be passed with every call. See attached screenshot for WSDL structure. I am trying to use WebService classes to make the call as follows. Let me know if yo

[Flashcoders] > Difference keying

2005-12-30 Thread Weyert de Boer
Hello! I would like to key away the background of video footage or a live webcam video stream. The idea is to use the first frame of the video stream as the clean plate for the key. Meaning background without any of the foreground elements. Only I thought maybe it's a good idea to ask first a

Re: [Flashcoders] Singleton as associative array - yucky icky?

2005-12-30 Thread JesterXL
Correct. __resolve can catch arbitrary function calls, but not arbritary variable assignments. - Original Message - From: "Nathan Derksen" <[EMAIL PROTECTED]> To: "Flashcoders mailing list" Sent: Friday, December 30, 2005 1:20 PM Subject: Re: [Flashcoders] Singleton as associative array

Re: [Flashcoders] Singleton as associative array - yucky icky?

2005-12-30 Thread Nathan Derksen
Well, consider how an object can be manipulated. var myObject:Object = new Object(); myObject.foo = "bar"; or var myObject:Object = new Object(); myObject["foo"] = "bar"; Those are equivalent syntaxes. Everything basically inherits from Object, so this is valid syntax throughout, including y

Re: [Flashcoders] Re: calling a static method on dynamically namedclass?

2005-12-30 Thread Rich Rodecker
yeah, that works, but you are calling the static create() method through the name of the class itself. Say I have a number of classes (MyClass1, MyOtherClass, AnotherClass) and I be able to alter which class to call the create method on. I'm thinking there's got to be a way to do something like:

Re: [Flashcoders] JavaScript to Flash Communication Compatability

2005-12-30 Thread Jeff Mastropietro
Nathan, SharedObject is an option I had not considered. I imagine that the finished interface would work as hybrid of the Macromedia Flash JavaScript Integration Kit, and the JSFCommunicator Library with SharedObject as the communication layer. The JSFCommunicator Library uses the .SetVaria

Re: [Flashcoders] Remote Debugging + Flash Remoting = Frozen Browser. FP8 Bug?

2005-12-30 Thread Judah Frangipane
I don't think it captures that but it might be a feature that can be added. I would ask on the Service Capture feature forum. http://kevinlangdon.com/phpBB2/ elibol wrote: I've got a question, is there a way to set Service Capture to detect the requests made by the client? Is there a way to

Re: [Flashcoders] Singleton as associative array - yucky icky?

2005-12-30 Thread g.wygonik
lol - indeed. :-) i'm just trying to look at possible "issues" that may come up later on... but this scenario brings up two follow-up questions/concerns: 1 - the fact that Flash (AS2) will happily turn a class into an associative array without any sort of warning. if a coder comes in and uses ses

Re: [Flashcoders] JavaScript to Flash Communication Compatability

2005-12-30 Thread Nathan Derksen
Yah, I feel your pain. While I haven't had to specifically test for Opera, I have had to deal with differences in LiveConnect between IE and Mozilla on Mac (OS 9 and OS X) and Windows. It's truly a PITA. A technique that I have used to pass data from JavaScript to Flash include using a shim

Re: [Flashcoders] Undefine a Component

2005-12-30 Thread Charles Parcell
Thanks for the response but that is not really what I am looking for. Indeed I am use a class. I am able to revert the component back to a MC by removing all the data in the Component Definition wizard. But the problem is that it seems to hold onto that data (some how) even though the wizard is b

Re: [Flashcoders] JavaScript to Flash Communication Compatability

2005-12-30 Thread Jeff Mastropietro
Nathan, Thanks, I was aware of both of the Macromedia methods, and I have switched over to the Macromedia Flash JavaScript Integration Kit. It has pretty poor documentation, and that is why I did not use it initially. I need to support back to Flash 6, so ExternalInterface is out of the que

Re: [Flashcoders] Singleton as associative array - yucky icky?

2005-12-30 Thread Nathan Derksen
I would say to hell with the VB coders (and I used to be one). What if you want to change your implementation later on? What if this functionality changes with AS3? Without an API, you open yourself up to all sorts of fun stuff that may force the user to have to change their code later on.

Re: [Flashcoders] Undefine a Component

2005-12-30 Thread GregoryN
If your component is based on AS2 class - just associate another mc with it. If not (as I suspect :) , I'd suggest to make a little/single SWF with only this component and then decompile it with Flare or another tool. You'll get an abstract code, but will be able to restore everything. Hop

[Flashcoders] Flex 2: Component inheritance?

2005-12-30 Thread Jason Y. Kwong
I'm relatively new to Flex 2 and what I'm trying to do is to create a set of custom MXML components that share the same AS base class. So I start with the base component, an empty container to which I add properties/methods via AS. Call it Base.mxml: http://www.macromedia.com/2005/mxml"; xmlns=

[Flashcoders] Undefine a Component

2005-12-30 Thread Charles Parcell
I was working on creating a little component based on a MC I have in my current project. After playing a little I decided that I would wait till the project was done before packaging the component for my team to use. Somewhere in the process something got mucked up. When I run my project the MC do

Re: [Flashcoders] Remote Debugging + Flash Remoting = Frozen Browser. FP8 Bug?

2005-12-30 Thread elibol
I've got a question, is there a way to set Service Capture to detect the requests made by the client? Is there a way to detect remote client service activity? H On 12/30/05, elibol <[EMAIL PROTECTED]> wrote: > > Thanks for your reply Judah, I accually use service capture myself! > > Well, I will

Re: [Flashcoders] Remote Debugging + Flash Remoting = Frozen Browser. FP8 Bug?

2005-12-30 Thread elibol
Thanks for your reply Judah, I accually use service capture myself! Well, I will see to it that this debugger bug (the irony) is acknowledged... H On 12/29/05, Judah Frangipane <[EMAIL PROTECTED]> wrote: > > I'm not using cf but in my remoting endevors Service Capture has helped > many times (ht

Re: [Flashcoders] Singleton as associative array - yucky icky?

2005-12-30 Thread g.wygonik
nothing wrong with it - and would be the nice way to do it. and probably will be how it ends up... but all of the vb developers i know use the shortcuts where ever possible... Session("key") instead of Session.Items("key"), Recordset("field") instead of Recordset.Fields("field"), etc. i'm just tr

RE: [Flashcoders] FW: Domino Game

2005-12-30 Thread Trevor Burton
Thanks Danny, I'll have to do some work and see how I get on. Cheers again. t -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Danny Kodicek Sent: 30 December 2005 11:40 To: Flashcoders mailing list Subject: Re: [Flashcoders] FW: Domino Game > I'm specif

Re: [Flashcoders] center of rotation for new clip

2005-12-30 Thread Stéphane Bebrone
Hi Gregory, You can check the work of Darron there: http://www.darronschall.com/weblog/archives/54.cfm Hope that will help you! Greets, Shaoken. 2005/12/30, GregoryN <[EMAIL PROTECTED]>: > > Hello Flashcoders, > > Is there a way to change a center of rotation for a clip, created > with c

Re: [Flashcoders] FW: Domino Game

2005-12-30 Thread Danny Kodicek
I'm specifically after how to approach 'dealing' the dominos (taking the 28 original dominos and randomly assigning them to either of two players) That's easy enough. Take a list of dominos (probably a list of two-element arrays like [0,0]) and randomise it. Here's a simple randomise function (

[Flashcoders] FW: Domino Game

2005-12-30 Thread Trevor Burton
Hi List I'm trying to create a dominos game and I'm having trouble - anyone seen anything similar in flash or any pointers for how to approach this (no, I'm not being paid for this - it's a personal project so you're not doing any work for me!) or just advice or hints on how to get started - I

Re: [Flashcoders] Singleton as associative array - yucky icky?

2005-12-30 Thread Weyert de Boer
What's wrong with the Items-property and then do a Session.Items[ "sessionKeyName" ]; ? This is also available for the ASP.NET guys. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Re: [Flashcoders] > Artificial Life flash resources

2005-12-30 Thread Weyert de Boer
Looks nice. You'll have to excues this as it was my first project ever built in Flash... years ago. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Re: [Flashcoders] > Artificial Life flash resources

2005-12-30 Thread Spencer Markowski
You'll have to excues this as it was my first project ever built in Flash... years ago. It's not really 'artificial life' in the true sense of automata, but it started a long line of expirements. http://www.ablefew.com/dev/systemSprites/systemSprites.html and of course there's always my source o