Language: ChineseGermanSpanishFrenchDutchItalianRussian
123 Flash Chat Forums

Go Back   TOPCMM Community > SWFKit > SWFKit Support

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 07-21-2005, 02:16 AM
Junior Member
 
Join Date: Jul 2005
Posts: 3
Default getVariables & getObject

Hi there, i have a movie clip loading in _level5, inside this movie there are 3 textinputs components, and those ones saves their text values inside an object.
I'm having some problems trying to read the object from swf kit.
This is my AS code:
Code:
on (click) {
***var emailer = new Object()
***emailer.emailname = _root.name.text;
***emailer.email = _root.mail.text;
***emailer.emailtype = _root.type.text;
***emailer.emailcontent = _root.text.text;
***fscommand("ffish_run","email");
}
and this is my code in SWFKIT:

Code:
//email
var emaildata = new Object;
emaildata = FlashPlayer.getObject("_level5.emailer", "emailname","email","emailtype","emailcontent");
trace(emaildata.emailname);
in the SWFkit trace window, i receive this:

FSCommand("ffish_run", "email")
Warning: using undefined property "emailname"
undefined

Any idea of what im doing wrong?
Thanks a lot!
Reply With Quote
  #2 (permalink)  
Old 07-21-2005, 04:10 AM
Senior Member
 
Join Date: Dec 2002
Posts: 2,015
Default Re:getVariables & getObject

Code:
var emailer = new Object()
The "emailer" variable is only in the scope of the "on(click)" block. You should use something like
Code:
_level5.emailer = new Object();
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 01:52 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.