Erm, I think you might want to try
_root.mainMC.auto.subMC[textField + i].text
Not sure.
Bill Pelon wrote:
Hello,
I'm having problems figuring out how to grab an array value and use
that when targeting.
This is my fucntion below. What I am wanting to do is take the
[i]value and be able
@chattyfig.figleaf.com
Sent: Thursday, October 19, 2006 3:16 PM
Subject: Re: [Flashcoders] incrementing a target?
Erm, I think you might want to try
_root.mainMC.auto.subMC[textField + i].text
Not sure.
Bill Pelon wrote:
Hello,
I'm having problems figuring out how to grab an array value and use
19, 2006 3:16 PM
Subject: Re: [Flashcoders] incrementing a target?
Erm, I think you might want to try
_root.mainMC.auto.subMC[textField + i].text
Not sure.
Bill Pelon wrote:
Hello,
I'm having problems figuring out how to grab an array value and use
that when targeting.
This is my fucntion
] On Behalf Of Bill Pelon
Sent: Thursday, October 19, 2006 5:33 PM
To: Flashcoders mailing list
Subject: Re: [Flashcoders] incrementing a target?
Seems to jumble me up a bit, I get this error.
Expected a field name after '.' operator.
_root.mainMC.auto.subMC.[textField+i].text
.
_root.mainMC.auto.subMC.[textField+i].text = turbo.attributes.name
;
thanks though...
- Original Message -
From: Glen Pike [EMAIL PROTECTED]
To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
Sent: Thursday, October 19, 2006 3:16 PM
Subject: Re: [Flashcoders] incrementing
[EMAIL PROTECTED]
To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
Sent: Thursday, October 19, 2006 3:40 PM
Subject: Re: [Flashcoders] incrementing a target?
Hi,
There maybe a typo in your code?
it should say subMC[textField + i]
There should be no (dot) . before
var mc = this[btn + i];
mc is your target.
mc.onRollOver = function() {};
The issue you might have is that you cannot assign functions and certain
properties to a movieclip you are going to loadMovie on because as soon
as the movie is loaded, it overwrites all the methods and properties you
mailing list flashcoders@chattyfig.figleaf.com
Sent: Thursday, October 19, 2006 2:45 PM
Subject: RE: [Flashcoders] incrementing a target?
var mc = this[btn + i];
mc is your target.
mc.onRollOver = function() {};
The issue you might have is that you cannot assign functions and certain
properties
Aha!
Your text fields on stage are named txtField0, txtField1, etc.
But you are trying to index them as [textField + i]
Sorry that is partly my fault as my original answer said text... not
txt.. as your code does.
so to clarify..
_root.mainMC.auto.subMC[txtField + i].text =
try the Flashnewbie mailing list
http://chattyfig.figleaf.com/mailman/listinfo/flashnewbie
- Original Message -
From: Bill Pelon [EMAIL PROTECTED]
To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
Sent: Friday, October 20, 2006 12:07 AM
Subject: Re: [Flashcoders
Thanks Glen,
This worked perfectly...
Bill
- Original Message -
From: Glen Pike [EMAIL PROTECTED]
To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
Sent: Thursday, October 19, 2006 6:10 PM
Subject: Re: [Flashcoders] incrementing a target?
Aha!
Your text fields
11 matches
Mail list logo