|
|||
|
Hi to all, i've a problem...
I can't find a way to specify the target, the property and the value in targetGet and SetProperty. If I have a button (or a movie) with a instance name "_pippo" in the main (_root) scene, I expect to write something like: FlashPlayer.targetSetProperty("_root._pippo","_vis ible",0); but I'm not able to set anything with this code. thanks in advance Luca |
|
|||
|
...Hum...
i remember i tryed this once but never get any valuable answer from swfkit. A way thought is to use the SetVariable instead. 1°) create a kind of MC manager events (in the /on enter frame/ behaviour ): if (anMCvar==1) bla...bla else if (anMCvar==2) bla...bla and so on... 2°) Within the FFscript tell to set the good value depending on what you want: bla...bla FlashPlayer.SetVariable("TheMCHandler.anMCvar",1) ../.. But, Be aware of that: Create only one MC manager events ! SeeU Madcha
__________________
http://www.alyze.com - http://www.ecomzone.net - http://www.alisook.com -http://www.madcha.com - http://www.i-multimedia.fr - |
|
|||
|
I've received this e-mail from swfkit support team:
" The second parameter of the "targetSetProperty" methoid must be an integer. targetSetProperty X POSITION (_x) 0 Y POSITION (_y) 1 X SCALE 2 Y SCALE 3 CURRENTFRAME 4 TOTALFRAMES 5 ALPHA 6 VISIBILITY 7 WIDTH 8 HEIGHT 9 ROTATION 10 TARGET 11 FRAMESLOADED 12 NAME 13 DROPTARGET 14 URL(_url) 15 Use FlashPlayer.targetSetProperty("_root._pippo", 7, 0) instead please;" But i'm still not able to set properties but only get these values. Any more suggestions??? Thanks in advance. p.s. in the meanwhile i'm implementing the tip proposed by Madcha: Thank you! |
|
|||
|
(re)...Hum...
Quote:
(Maybe i'm just too blind 8) ) ...could have save me some time.... > ![]() luca orru, have you try: FlashPlayer.targetSetProperty("_root._pippo", 7, false) or FlashPlayer.targetSetProperty("_root._pippo", 7, "false") (it sounds stupid but who ever knows ? seeU
__________________
http://www.alyze.com - http://www.ecomzone.net - http://www.alisook.com -http://www.madcha.com - http://www.i-multimedia.fr - |
|
|||
|
Sorry for our poor documentation.
targetSetProperty Description For the timeline of the specified target, sets the value of the specified property. Syntax FlashPlayer. targetSetProperty (target, property, value) Parameters target String. Specifies the target property Integer. Specifies the property to set. Can be one of the following values Meaning Value X POSITION (_x) 0 Y POSITION (_y) 1 X SCALE 2 Y SCALE 3 CURRENTFRAME 4 TOTALFRAMES 5 ALPHA 6 VISIBILITY 7 WIDTH 8 HEIGHT 9 ROTATION 10 TARGET 11 FRAMESLOADED 12 NAME 13 DROPTARGET 14 URL(_url) 15 value String. Specifies the value to set Returns Nothing eg. FlashPlayer.targetSetProperty("_root",7,"0"); 'FlashPlayer.targetSetProperty("_root",7,"false"); ' or 'FlashPlayer.targetSetProperty("_root",7,false);' won't work. |
![]() |
Was this information helpful? Yes No
| Thread Tools | |
| Display Modes | |
|
|