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
__
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
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
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
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
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
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
"//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()
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
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
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
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
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
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
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
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
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
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:
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
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
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
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
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
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
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.
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
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=
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
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
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
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
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
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
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 (
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
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
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
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
38 matches
Mail list logo