Welcome, Guest. Please login or register.
Did you miss your activation email?
05/22/12, 06:19
Home Help Search Login Register
News: Parsley Flex framework review featuring quiz application, in our Flex frameworks series
Flex SDK 4.5 mobile roadmap: begin with your mobile development
Swiz Flex framework review featuring quiz application
New homepage we release our new Homepage, take a look ...

+  Flash-db
|-+  General
| |-+  Flash and AS 3 (Moderators: papachan, kofi addaquay)
| | |-+  accessing child trouble
0 Members and 2 Guests are viewing this topic. « previous next »
Pages: 1 [2] Print
Author Topic: accessing child trouble  (Read 3851 times)
Pluda
Senior Programmer
****
Posts: 270


View Profile
« Reply #15 on: 11/14/08, 10:09 »

ok, got it working :-)

here is the code, I'm sure someone else will need it

Code:
function conteudo_de_cada_mc() {
var child;
var child_b;
for (var i:Number = 0; i <= mc.numChildren+1; i++) {
child = Sprite(getChildAt(i));
for (var j:Number = 0; j < mc.numChildren; j++) {
child_b = child.getChildAt(j);
if(child_b is TextField) {
trace(child_b.text);
}
}
}
}

Thanks Jorge for keeping answering me.

Pluda
Logged
Pages: 1 [2] Print 
« previous next »
Jump to:  


Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!