It would be not too hard to write a class that listesn to the keyboard, and
when an onKeyDown event is triggered, it reads the key and adds the keycode
to an array.
I can't speak for Flash in this regard, but I'm willing to bet it would
behave similarly to Director and that this method would be
Has anyone succeeded in fully skinning all of the mCom components? I'm
especially having trouble with the rowrenderers...and the online docs
are way too vague...
Tnx,
tom
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.fi
Can anyone help me?
On 12/28/05, Jose Maria Barros <[EMAIL PROTECTED]> wrote:
> sorry...what i mean to say is that the text doesnt appear.
>
> On 12/28/05, Jose Maria Barros <[EMAIL PROTECTED]> wrote:
> > Hello Michael.
> > Well, ive tried your method didnt worked out..maybe you can help
> > me..
Does anyone here know some nice examples and/or resources about
Artificial Life and Flash?
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Could someone point me to a very clear explanation of exactly how Flash
calculates the position of a movieClip? I'm starting to get very fed up with
the weird behaviour of the thing I'm working on (importing and creating a
bunch of lines based on external data using jsfl). What actually *are* th
It could be confusing.
I wish there were two settings of the x and y panel in the
properties-panel.
-one for the content-X/Y, and one for the registrationpoint-X/Y
The X and Y in the properties panel is not necessarily the same as the
_x and _y of the movieclip.
What the X and Y is, is where th
> This thing is driving me crazy.
You're certainly not the first one, if this is any consolation ;-)
The x and y values in the Property Inspector can refer to one of 3 things:
- registration point (the little cross)
- upper left corner
- transformation/(rotation) point (the little circle), which
Andreas Weber wrote:
This thing is driving me crazy.
You're certainly not the first one, if this is any consolation ;-)
The x and y values in the Property Inspector can refer to one of 3 things:
- registration point (the little cross)
but as Martin noted, it's actually not really a
Thanks to all for your comments. That's very helpful - although now I'm
possibly even *more* confused about how to make this work...
Best
Danny
Andreas Weber wrote:
This thing is driving me crazy.
You're certainly not the first one, if this is any consolation ;-)
The x and y values in th
Are we talking about what effect programming in Flash has on your social
life or something else?
Can you be more specific about what kind of life and what sort of
behaviour you are hoping to exhibit.
Plant life is pretty easy to model unless the wind is blowing.
Talking humans are pretty easy
Hi Ron,
Are we talking about what effect programming in Flash has on your
social life or something else?
Well,the artificial life one part of the Artificial Intelligence subject.
Can you be more specific about what kind of life and what sort of
behaviour you are hoping to exhibit.
Well, I would
On Dec 29, 2005, at 9:11 AM, Danny Kodicek wrote:
Thanks to all for your comments. That's very helpful - although now
I'm possibly even *more* confused about how to make this work...
Best
Danny
Simple and effective suggestion - make sure all content in movie clips
starts at 0,0.
Jon Bra
On Dec 29, 2005, at 9:11 AM, Danny Kodicek wrote:
Thanks to all for your comments. That's very helpful - although now I'm
possibly even *more* confused about how to make this work...
Best
Danny
Simple and effective suggestion - make sure all content in movie clips
starts at 0,0.
Tricky in
is there a with which i could detect a double at a Lit Box ?
--
Arian Rodrigo Pasquali
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Well I did a small example a looong time ago. I think it can still be
found under my old site.
I'll dig a couple examples up and post them...
Cheers,
!k
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Weyert de
Boer
Sent: December 29, 2005 9:06 AM
T
Hi Kevin,
Well I did a small example a looong time ago. I think it can still be
found under my old site.
I'll dig a couple examples up and post them...
Thanks! That would be nice!
Cheers,
weyert
___
Flashcoders mailing list
Flashcoders@chattyfig
I haven't seen an up-to-date chart either. You may be interested in
knowing that Macromedia already has two ways for you to do this. The
first is the Flash JavaScript Integration Kit:
http://weblogs.macromedia.com/flashjavascript/
This uses legacy techniques to make what you are doing work i
Many Textfield instances can hold a refrence to a single variable via the
'variable' property, and so, when the variable changes, so does the
Textfields value.
H
On 12/8/05, Ralph Caraveo <[EMAIL PROTECTED]> wrote:
>
> Looks like String objects are passed by value instead of by reference.
>
>
> /
Is this a combo-box you lit yourself, or is it self-combusting?
is there a with which i could detect a double at a Lit Box ?
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Does anyone know how to change the color of the title in the window
component?
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RTFM. We all gave Macromedia a ton of crap about their docs being pathetic,
or 8 months too late in MX 2004. The least we can do is show our
appreciation for their hardwork in 8, and actually put them to use.
Check out:
Component Language Reference > Window component > Customizing the Window
JesterXL wrote:
RTFM. We all gave Macromedia a ton of crap about their docs being pathetic,
or 8 months too late in MX 2004. The least we can do is show our
appreciation for their hardwork in 8, and actually put them to use.
Macromedia still has a dedicated Documentation dept, you can't say
I have a NumericStepper that changes the value of a price textfield
based on the stepper value. Is there anyway to check if the user
increment/decrement the stepper so I can muliply/divide the number when
needed. Thanks
var nstepListener:Object = new Object();
nstepListener.change = functio
At the end of your change() handler, save the stepper value to a
timeline variable or class property, then next time compare the
stepper value with that previous value. Lather, rinse, repeat.
Nathan
http://www.nathanderksen.com
On Dec 29, 2005, at 12:03 PM, Mike Boutin wrote:
I have a Nume
It seems like Flash is creating static members out of public arrays that
are initialized in the class declaration. Can someone confirm this? Is
this not legal, is it implied behavior or a bug?
// create a class called myClass
class myClass {
// initialize the array in the declarations
var
Hey Judah,
Try this:
class myClass {
// initialize the array in the declarations
private var myArray:Array = new Array();
function myClass {
trace("myArray.length="+this.myArray.length)
}
public function addToArray() {
this.myArray.push(10);
this.myArray
I think you are missing the () in the constructor statement:
function myClass {
trace("myArray.length="+myArray.length)
}
Should be:
function myClass() {
trace("myArray.length="+myArray.length)
}
Nathan
http://www.nathanderksen.com
On Dec 29, 2005, at 12:30 PM, Judah Frangipane w
Flag on the play... ^_^
class myClass {
// initialize the array in the declarations
private var myArray:Array;
function myClass {
this.myArray = new Array();
trace("myArray.length="+myArray.length)
}
public function addToArray() {
this.myArray.push(10);
Yeah... that's a good point too... LOL
Peace...
--
Dok
Skyymap, Inc.
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Nathan
Derksen
Sent: Thursday, December 29, 2005 3:33 PM
To: Flashcoders mailing list
Subject: Re: [Flashcoders] Flash Class Array bug -
Nope, they are prototype scoped arrays, not static.
AS1:
function MyClass(){}
AS2:
class MyClass{}
AS1 - static:
MyClass.my_array = [];
AS2 - static:
class MyClass
{
static var my_array:Array = [];
}
AS1 - prototype:
MyClass.protoytpe.my_array = [];
AS2 - prototype:
Same as above, or:
cla
Hi Glenn,
Flash is still treating the array as a static member.
// treated as an instance variable
var myArray1:Array;
// treated as a static variable
var myArray2:Array = new Array();
Test this code:
// in actions frame 1
import myClass
trace("Creating instance a")
var a = new myClass();
a.a
Hi everyone,
I use the remote debugger all the time, and now with the release of flash 8,
debugging an application that makes a flash remoting call (CF serving CFC)
will either freeze or crash the subject browser. In the case that it
freezes, my application will sometimes recover if I stop the deb
Sorry, missed 1 of the traces:
// notice the array is on the prototype,
// thus all class instances point to it
foo.prototype_array.push("foo_d");
trace(foo.prototype_array);
trace(bar.prototype_array);
should be:
// notice the array is on the prototype,
// thus all class instances point to it
f
Yes, when you assign an initial value to a property, it is basically
like a static assignment. Do the initialization in the constructor
instead. This works for me:
class myClass
{
// initialize the array in the declarations
var myArray:Array;
function myClass()
{
myArray =
It's a bit scary that Director has a similar problem... how do Director
programmers get around it?
On 12/29/05, Danny Kodicek <[EMAIL PROTECTED]> wrote:
In Director, at least on Windows, if you press the A key and then the B key,
> then release the A key, you get a keyUp event for B, not A. So w
> RTFM. We all gave Macromedia a ton of crap about their docs
> being pathetic, or 8 months too late in MX 2004. The least
> we can do is show our appreciation for their hardwork in 8,
> and actually put them to use.
Gee Ward aren't you being a little hard on the Beaver? Maybe I missed
some
Thanks for help guys!
JesterXL wrote:
Sorry, missed 1 of the traces:
// notice the array is on the prototype,
// thus all class instances point to it
foo.prototype_array.push("foo_d");
trace(foo.prototype_array);
trace(bar.prototype_array);
should be:
// notice the array is on the prototype,
Flash is still treating the array as a static member.
It isn't static, but it is being assigned the array object in the
prototype, which acts sort of like a static member. You need to assign
(initialize) it in the constructor, rather than in the member defenition.
ryanm
MX 2004's docs were updated too. I was one of the people who bitched and
whined about the docs, only to be frustrated when they finally came months
too late.
I figure the only way to redeem myself is to ensure others make use of the
hardwork the MM team has put into it. Besides, if Mike doesn
The only response that accually addresses the problem is JesterXL's, he
seems to have hit the nail right on the head. It seems the only
differentiating aspect of static and prototype members is the way they treat
by refrence types.
On 12/29/05, JesterXL <[EMAIL PROTECTED]> wrote:
>
> Sorry, missed
> MX 2004's docs were updated too. I was one of the people who
> bitched and whined about the docs, only to be frustrated when
> they finally came months too late.
Damn! Guess if I kept up with that stuff, I'd have known. I retract my
"Ward" statement.
> If I'm not the enforcer of RTFM, then w
The thing that bothers me is that no one seems to care if this is a bug
or not. I didnt realize that initializing an Array in the declaration
would make a static like variable. Its not really static and it doesn't
work the same for primitives. I spent almost 2 days going over code
trying to sol
I'm not using cf but in my remoting endevors Service Capture has helped
many times (http://www.kevinlangdon.com/phpBB2/). It is well worth it
compared to the time spent tracking down bugs.
Judah
PS No, I do not work for them :)
elibol wrote:
Hi everyone,
I use the remote debugger all the ti
> RTFM.
Somebody get Jesse a venti double mocha organic STAT!
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
It is not a bug, it is the way ActionScript & JavaScript... and any ECMA
Script language works.
If others have read this thread, or this phat book:
http://www.debreuil.com/docs/ch01_Intro.htm
...or read Ralf's blog:
http://www.helpqlodhelp.com/blog/archives/64.html
...or used JavaScript OOP
...sorry man, it was on my coffee cup... and "setStyle" wasn't... didn't
know what else to do... I panicked...
http://www.thinkgeek.com/homeoffice/mugs/299a/
- Original Message -
From: "Steven Sacks" <[EMAIL PROTECTED]>
To: "'Flashcoders mailing list'"
Sent: Thursday, December 29, 2005
Hi,
I'm sorry but I don't know what is the best place to post a feature
request so I'll post it here because Adobe team guys are subscribed to
this list :)
Here we go...
In AS3 it's possible to get info about instance of a class at runtime
with help of describeType. Futhermore we can use me
The thing that bothers me is that no one seems to care if this is a bug or
not.
It shouldn't, it's been discussed at least a hundred times here already,
and it's not a bug. Don't initialize class variables in the class
defenition, it adds them to the prototype. Initialize them in the
const
For some reason the change event handle will not trigger for item 1 in
the combobox gets selected unless I first select item 2+ then go back
and try again. Otherwise if I try to click on the first item, it doesnt
do anything, no traces happen. Any ideas what would cause the first
item to not
I know you can instantiate objects by doing:
var myObj = new _global[className]();
var className = "TestClass";
but is it possible to call a static method of a class in a similar way? Im
trying these two ways, and its not working for me:
_global[iconName].create()
_global[iconName]().create()
hey all
so - i've got a Singleton class (Session) that is storing user info.
i've got all my addItem and getItem methods going and all is normal
and fine.
however, in an effort to be more "familiar" to ASP/VBScript developers
who will be using these classes in the future, i'd like to make a way
t
Simple way to replace it
set.text = " Flash Text multiplie applicance."
MyField.txt = MyField2.txt = MyField3.txt = set.text;
2005/12/29, elibol <[EMAIL PROTECTED]>:
>
> Many Textfield instances can hold a refrence to a single variable via the
> 'variable' property, and so, when the variable cha
hmm i tried storing a reference to the class in a variable, like
var myClass = com.packageName.MyClass
>
> myClass.create()
and i got this message:
Static members can only be accessed directly through classes
there's gotta be a way to pull this off.
On 12/29/05, Rich Rodecker <[EMAIL P
Can you post how they do it in VB?
- Original Message -
From: "g.wygonik" <[EMAIL PROTECTED]>
To: "flashcoders"
Sent: Thursday, December 29, 2005 11:33 PM
Subject: [Flashcoders] Singleton as associative array - yucky icky?
hey all
so - i've got a Singleton class (Session) that is stor
Hrm... how about:
class com.packageName.MyClass
{
public static function create():MyClass
{
var inst:MyClass = new MyClass();
return inst;
}
public function toString():String
{
return "[MyClass]";
}
}
import com.packageName.MyClass;
trace(MyClass.c
sure (note the "ASP/VBscript" part of my email - not "VB" ;-)
Session("foo") = "bar" ' store the value
Response.Write(Session("foo")) ' write the value
:-)
g.
On 12/29/05, JesterXL <[EMAIL PROTECTED]> wrote:
> Can you post how they do it in VB?
--
weblog: broadcast.artificialcolors.com
blazePDF
> var session:Session = Session.getInstance();
> session("foo") = "bar";
>
> which would set the item "foo" equal to "bar". i can't see that
> there's a way to do this kind of non-method calling of the class
> instance.
__resolve?
cheers,
claus.
___
Flas
On 12/29/05, Claus Wahlers <[EMAIL PROTECTED]> wrote:
> __resolve?
nope...
not unless there's some super-secret way of using __resolve outside of
the "normal" way.
even with a __resolve function in-place in my class, you still get the
dreaded "Left side of assignment operator must be variable o
...dude, in all fairness, it's 12:41 in the morning, but to me, that looks
exactly like a static variable... like you had before.
Session("foo") = "bar" ' store the value
Same as:
Session["foo"] = "bar"
...I'd stick with the static bro if your goal is to satisfy the dot-netterz.
- Origin
Hello Flashcoders,
Is there a way to change a center of rotation for a clip, created
with createEmptyMovieClip() ?
What about the same for createTextField()?
Situation:
I'm creating several textfields at runtime and need to rotate them.
(Yes, fonts embedded :-)
But I'd like them to
lol - we'll... EXACTLY!!!
it's late - it looks okay - it works... but it just seems "wrong" to
hijack a class instance into an associative array without any warning.
eh - maybe i'll just let it go and hope nobody notices ;-)
g.
On 12/29/05, JesterXL <[EMAIL PROTECTED]> wrote:
> ...dude, in all
> > __resolve?
>
> nope...
>
> not unless there's some super-secret way of using __resolve outside of
> the "normal" way.
>
> even with a __resolve function in-place in my class, you still get the
> dreaded "Left side of assignment operator must be variable or
> property." when calling:
>
> session
Wrong? Dude, wtf? Why don't you drink some coffee and take a look at what
the hell VB is doing (ASP, whatever).
It's calling a constructor, passing in a value.. and that value turns into
an associative array.. but... the assignment is backwards, and you assign
the return value of the construc
uhm, thanks? maybe, perhaps, some Chamomile tea is in order? ;-)
i'll go with what i got.
i wouldn't have posted except it just rubs me the wrong way to do
this. i feel dirty on the inside...
eh
g.
On 12/29/05, JesterXL <[EMAIL PROTECTED]> wrote:
> Wrong? Dude, wtf? Why don't you drink some
After re-reading it, you are too nice. You are going above and beyond the
call of duty for those guys. Make sure they know that.
- Original Message -
From: "JesterXL" <[EMAIL PROTECTED]>
To: "Flashcoders mailing list"
Sent: Friday, December 30, 2005 12:54 AM
Subject: Re: [Flashcoders]
whew! thought i might have missed clever and cool in there! :-) though
your comment did bring up some ideas i'll try in the AM.
it's all whack in my book right now. like i told Jesse - it works, i'll keep it.
time for bed!
g.
On 12/29/05, Claus Wahlers <[EMAIL PROTECTED]> wrote:
> > > __resolve
> Wrong? Dude, wtf? Why don't you drink some coffee and take a look at
> what the hell VB is doing (ASP, whatever).
roffle.
it's 4am and i might have smoked some funny cigarettes already.
anyways, at least it feels wrong.
but then.. vbscript.. ehrm.. ok..
*ducking*
cheers,
claus.
___
VBScript?! LOLLOL
- Original Message -
From: "Claus Wahlers" <[EMAIL PROTECTED]>
To: "Flashcoders mailing list"
Sent: Friday, December 30, 2005 1:06 AM
Subject: Re: [Flashcoders] Singleton as associative array - yucky icky?
> Wrong? Dude, wtf? Why don't you drink some coffee and
If it makes you feel any better, that shiz doesn't work in AS3! So uh...
AS2 was like designed to have both dyanic variants AND strict-typing... all
in the same language. So, don't feel dirty, feel appropriate.
... and be ready to "teach" VB guys AS3.
- Original Message -
From: "g.wy
"Artificial Life" - that got my antenna waving.
Artificial Life is a variety of learning/evolving
techniques that are metaphors for natural systems.
These techniques include; Cellular Automata, Genetic
Algorithms, Neural Networks (MLPs), etc. Just Like
A.I., the principles are easy to understand
Patrick Mineault posted a cool example just recently:
http://www.5etdemi.com/blog/archives/2005/12/flash-8-experiment-the-game-of-life-and-cellular-automata-using-convolutionfilter/
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://cha
Hi,
I have a button with following AS on it.
// It selects the text in the textField.
on(rollOver) {
Selection.setFocus(textField);
Selection.setSelection(0, textField.text.length);
}
on (rollOut) {
trace("Mouse rollout");
}
Issue: when rollOver is called the text get sel
It's a bit scary that Director has a similar problem... how do Director
programmers get around it?
We have the keyPressed() function (equivalent to key.isDown()) :)
Danny
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfi
73 matches
Mail list logo