Flash Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsWeb DesignFlash Help

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 Dev Shed Forums Sponsor:
  #1  
Old December 16th, 2003, 12:50 PM
myownsake26 myownsake26 is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2003
Location: Dallas
Posts: 50 myownsake26 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 7 h 46 m 59 sec
Reputation Power: 5
Question Input Text Hellpp!!

i've looked everywhere to find this answer so im sorry i had to resort to asking a question on this forum, but i desperately need help with input text boxes in flash.

when i made the original site in html, here's what the code looked like.

<form method=GET action="http://groups.yahoo.com/subscribe/jinxband">
<input type=text name="user" value="" size="12"><input type="image" border="0" align="abscenter" src="im/join.gif">

if the answer lies in actionscript, cool, because this next question will be easier, i think.
how do you customize the style of the input text by making it have a 1px color border and no background?

Any info on doing this would be very helpful.
-shawn

Reply With Quote
  #2  
Old December 16th, 2003, 01:31 PM
Tann San Tann San is offline
Gotta get to the next screen..
Dev Shed Demi-God (4500 - 4999 posts)
 
Join Date: Nov 2003
Location: Legion of Dynamic Discord
Posts: 4,714 Tann San User rank is Colonel (50000 - 60000 Reputation Level)Tann San User rank is Colonel (50000 - 60000 Reputation Level)Tann San User rank is Colonel (50000 - 60000 Reputation Level)Tann San User rank is Colonel (50000 - 60000 Reputation Level)Tann San User rank is Colonel (50000 - 60000 Reputation Level)Tann San User rank is Colonel (50000 - 60000 Reputation Level)Tann San User rank is Colonel (50000 - 60000 Reputation Level)Tann San User rank is Colonel (50000 - 60000 Reputation Level)Tann San User rank is Colonel (50000 - 60000 Reputation Level)Tann San User rank is Colonel (50000 - 60000 Reputation Level)Tann San User rank is Colonel (50000 - 60000 Reputation Level)Tann San User rank is Colonel (50000 - 60000 Reputation Level)  Folding Points: 10093 Folding Title: Novice Folder
Time spent in forums: 3 Weeks 1 Day 11 h 8 m 12 sec
Reputation Power: 580
Facebook MySpace
Hi, you can use AS to do this. Give your text box the instance name myText. Then use this AS:

myText.border = true;
myText.borderColor = 0x000055;
myText.background = false;

I'm not sure how wide the border is and I dont know off the top of my head how to change that. you could try resizing a movie clip placed around the text box but I think the above will be fine for you.
__________________
-Tann

-Vote for your favorite ActionScript editor here.

Reply With Quote
  #3  
Old December 16th, 2003, 02:04 PM
myownsake26 myownsake26 is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2003
Location: Dallas
Posts: 50 myownsake26 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 7 h 46 m 59 sec
Reputation Power: 5
Tann,
thanks for that info!
am i supposed to put just that code only into the actionscript window? nothing else? also.. i'm using a component that uses myText, so when i put it in, it changes the borders on that stuff too, can i change the name of the myText? I did and nothing happend

Reply With Quote
  #4  
Old December 16th, 2003, 03:16 PM
Tann San Tann San is offline
Gotta get to the next screen..
Dev Shed Demi-God (4500 - 4999 posts)
 
Join Date: Nov 2003
Location: Legion of Dynamic Discord
Posts: 4,714 Tann San User rank is Colonel (50000 - 60000 Reputation Level)Tann San User rank is Colonel (50000 - 60000 Reputation Level)Tann San User rank is Colonel (50000 - 60000 Reputation Level)Tann San User rank is Colonel (50000 - 60000 Reputation Level)Tann San User rank is Colonel (50000 - 60000 Reputation Level)Tann San User rank is Colonel (50000 - 60000 Reputation Level)Tann San User rank is Colonel (50000 - 60000 Reputation Level)Tann San User rank is Colonel (50000 - 60000 Reputation Level)Tann San User rank is Colonel (50000 - 60000 Reputation Level)Tann San User rank is Colonel (50000 - 60000 Reputation Level)Tann San User rank is Colonel (50000 - 60000 Reputation Level)Tann San User rank is Colonel (50000 - 60000 Reputation Level)  Folding Points: 10093 Folding Title: Novice Folder
Time spent in forums: 3 Weeks 1 Day 11 h 8 m 12 sec
Reputation Power: 580
Facebook MySpace
Hi, I'm not sure but it sounds like your having trouble with targetting now.

For the code I posted earlier it must be placed in the same timeline as the input text box. If you changed the name of the textbox from myText (which is just what I used for an example) then you must also change the code, i.e. if you renamed the text box to "franksDinner" then your code would be:

franksDinner.border = true;

And you would have to make sure your that your component is reading from the correct name for the text box. say your component reads the data like this:

acomponentfunctionreading = myText.text;

(that being inside the component maybe) Then you will have to change it to:

acomponentfunctionreading = franksDinner.text;

I havent really played with components much but I think you just set things up using the properties panel. Open that up and see what text box its linked to. If the names are different then you know what to do.

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb DesignFlash Help > Input Text Hellpp!!


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 1 hosted by Hostway
Stay green...Green IT