Multimedia
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
 
User Name:
Password:
Remember me
Go Back   ASP Free ForumsWeb DesignMultimedia

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread ASP Free Forums Sponsor:
  #1  
Old January 5th, 2007, 08:48 AM
anandkanatt anandkanatt is offline
Contributing User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Feb 2005
Location: In everybody's mind
Posts: 74 anandkanatt User rank is Private First Class (20 - 50 Reputation Level)anandkanatt User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 1 Day 7 h 48 m 45 sec
Reputation Power: 4
Send a message via Yahoo to anandkanatt
Angry Flash 8 UI Components ERROR!

Hi,
Code:
import mx.UIcontrols.*
var Pos:Object = new Object;
Pos.x = 18;
Pos.y = 18;
this.createObject("TextInput","ctiInput1",this.getNextHighestDepth());
this.createObject("TextInput","ctiInput2",this.getNextHighestDepth());
this.createObject("TextInput","ctiInput3",this.getNextHighestDepth());
this.createObject("Button","cbtResult",this.getNextHighestDepth());
ctiInput1.move(Pos.x,Pos.y);
ctiInput2.move(Pos.x,Pos.y+22);
ctiInput3.move(Pos.x,Pos.y+44);
cbtResult.move(Pos.x,Pos.y+66);
var oListener:Object = new Object;
cbtResult.addEventListener("click", oListener);
oListener.click = function (oEvent:Object):Void  {
	trace("Clicked"+this.ctiInput1.text+" || "+this.ctiInput2.text);
	this.ctiInput3.text = this.ctiInput1.text + this.ctiInput2.text;
	
}


as a result of above code i get a display with 3 TextInputs and a Button. But the problem is when i click on the button i get the component text input's '.text' value as "undefined" pls help ..

ah i forgot i am using a "Form" to build this.
Regards
Anand

Reply With Quote
Reply

Viewing: ASP Free ForumsWeb DesignMultimedia > Flash 8 UI Components ERROR!


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway
Stay green...Green IT