Language: ChineseGermanSpanishFrenchDutchItalianRussian
123 Flash Chat Forums

Go Back   TOPCMM Community > SWFKit > SWFKit Support

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 09-05-2003, 07:56 AM
Junior Member
 
Join Date: Sep 2003
Posts: 2
Default targetSetProperty and targetGetProperty methods

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
Reply With Quote
  #2 (permalink)  
Old 09-06-2003, 06:15 PM
Member
 
Join Date: Jan 2003
Posts: 54
Default Re:targetSetProperty and targetGetProperty methods

...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 -
Reply With Quote
  #3 (permalink)  
Old 09-08-2003, 09:05 AM
Junior Member
 
Join Date: Sep 2003
Posts: 2
Default Re:targetSetProperty and targetGetProperty methods

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!
Reply With Quote
  #4 (permalink)  
Old 09-09-2003, 09:30 AM
Member
 
Join Date: Jan 2003
Posts: 54
Default Re:targetSetProperty and targetGetProperty methods

(re)...Hum...

Quote:
FlashPlayer.targetSetProperty("_root._pippo", 7, 0) instead please;
Never seen that anywhere in the help !
(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 -
Reply With Quote
  #5 (permalink)  
Old 09-09-2003, 04:30 PM
Senior Member
 
Join Date: Dec 2002
Posts: 2,015
Default Re:targetSetProperty and targetGetProperty methods

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.
Reply With Quote
  #6 (permalink)  
Old 09-09-2003, 04:59 PM
Senior Member
 
Join Date: Dec 2002
Posts: 2,015
Default Re:targetSetProperty and targetGetProperty methods

We've made efforts to improve it. Things will be changed in SWFKit 2.0.

Code generator of SWFKit 2.0
Reply With Quote
Reply

Was this information helpful?    Yes No



Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 04:21 AM.


Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0 ©2007, Crawlability, Inc.