PDA

View Full Version : (Flash 5) Get Property?


TheToonimator
12-21-2002, 02:06 PM
Ok, so I have a movie clip on the stage and inside the movie clip is a button. I have a text field on the stage, and its an input text field called

name

I go inside the mc to the button right click it and click actions then I click actions>set variable (becuase I like to use the normal mode, not expert mode). I set the variable to

_root.name

I set the value by click in the "value" box then i click functions>getProperty.

Well I go on and my code looks like this:


on(release) {
_root.name = "getProperty ( target, property)";
}


So I change it to look like:

on(release) {
_root.name = "getProperty ( _target, _name)";
}

So I test my movie, and I click the button and what shows up in the text field is:
getProperty ( _target, _name)

So I switch to expert mode and delete the quotations before getProperty and after the ) and what shows up in the text field when I test the movie:
The instance name of the movie clip



So I was wondering if there was a way around that, without swithcing back and forth between normal mode and expert mode or, should I try to do all my work in expert mode?

pom
12-22-2002, 02:16 AM
2 most important things in Flash:
Expert mode rules.
getProperty sucks.

Who said Flash was complicated?

And I believe checking "Expression" could solve your problem, but I haven't used the Normal mode in a looooooong time...

farafiro
12-22-2002, 10:04 AM
u just needed to check the Expression box at the right instead of doing all of that

Oh, welcome by the way