I have a question:
is it possible to call 2 targets at the same time, with different mouse behaviours?
for ex:
on (press) {
tellTarget (“nfi100”) {
gotoAndStop(2);
}
}
on (release) {
tellTarget (“bd”) {
gotoAndPlay(1);
}
}
thx
I have a question:
is it possible to call 2 targets at the same time, with different mouse behaviours?
for ex:
on (press) {
tellTarget (“nfi100”) {
gotoAndStop(2);
}
}
on (release) {
tellTarget (“bd”) {
gotoAndPlay(1);
}
}
thx
Yes, it should work.
Are you having a problem?
or just curious…
Rev
well i was wondering if i can call 2 targets
with the same mouse behaviour …for ex. to call 2 targets for the behaviour - on (press) -
Yes, I have done it in the past…
but, do you have to use TellTarget? It was depricated in Flash 5…
They are clumsy at best (I still use them on occasion) …
Rev
well i am struggling a bit …i have several MC’s in MC’s and to add extra fancy little details i use “call target”, its not heavy scripting and it apparently does the trick !..
The thing is I dont know how to load several MCs on a stage; each of them with different variables…(so they exactly fit a specific place)…
I’m not sure I understand.
Do you have an .fla you can upload for me to look at?
Rev
the fla i am working on now is quite heavy because i havent optimized all the images yet…
basically i have a buttton , and on(Press) it should open 2 separate MCs , at 2 different places (…using variables)
ps: sorry my english is awful…i’m french/dutch
Really you should just be able to do:
on (release){
_root.nfi100.goToAndStop(2);
_root.bd.goToAndPlay(1);
}
As someone said earlier, the tellTarget command has been taken out of Flash MX, and it just uses the dot notation now. In fact, if you go into the Actions panel for your button bring up the on (release) code, then click on the little targetting icon above the code, you should be able to see a structure of all your MC’s, and you can click on the one you want to play / stop.
Oh, I’m still working on your scene problem, by the way.
oh thx i understand that now…
For my other problem, I still havent found either…
*Originally posted by Kitiara *
the tellTarget command has been taken out of Flash MX
Let’s not get carried away, people. You can still use it, even though it’s really longer and less practical than the dot syntax.
And what is the problem exactly? What do you mean “open 2 mcs”?
pom <:} [SIZE=1]professional hair splitter[/SIZE]
You can still use it? Whenever I tried, it refused point blank to let me. Told me I had to use dot notation…
Well, it works for me. Maybe you made a mistake in the syntax [SIZE=1]which on ly shows that you’re rigth not to use it :)[/SIZE]
Probably correct.
I find the dot notation a lot easier to work with though. You’re not ytping as much code…
:: Copyright KIRUPA 2024 //--