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 March 11th, 2003, 11:52 AM
rec rec is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2003
Location: houston
Posts: 94 rec User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 8 h 40 m
Reputation Power: 6
Text box displays “level0”

Looking for answer to problem. Cant’ find anything on this.

When I make a “dynamic” or “ input” text field it initializes with “level0” displaying in the text field.

Reply With Quote
  #2  
Old March 11th, 2003, 01:29 PM
wa90 wa90 is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2003
Posts: 12 wa90 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Have you got something entered in the "Var:" field on the properties bar when you've got the text box selected?

(assuming your using Flash MX)

Last edited by wa90 : March 11th, 2003 at 01:31 PM.

Reply With Quote
  #3  
Old March 11th, 2003, 01:58 PM
rec rec is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2003
Location: houston
Posts: 94 rec User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 8 h 40 m
Reputation Power: 6
Yes I am using MX and yes I have entered a name in the “var” field.

I thought I had seen something on this before but I can’t seem to find it. Either that or I just imagined it. The boxes work, I place a button on the page and attach some code to have it perform some math functions on the values in the boxes and it works just fine and the Dynamic Text field displays the correct answer when you click the button. It’s just that both the Dynamic Text field and the Input Text field display “level0” when the page first opens. To enter a value in the Input Text field you have to backspace over the “level0” and then enter the value you wish to enter. I tried entering in a default message in the design stage but when I test the page it displays “level0” plus the message I entered at design time. I tried entering a null / empty string, still no luck.

Reply With Quote
  #4  
Old March 12th, 2003, 09:32 AM
bret bret is offline
flash junkie
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2003
Location: CO, USA
Posts: 172 bret User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 5 m 38 sec
Reputation Power: 6
Send a message via Yahoo to bret
what do you have in the variable field? i find it odd that your text field would display "level0" instead of "_level0" in the first place... unless you have only the lowercase and numerals embedded of the character set (not includeing "_" basically). If you are not explicitly setting the value of your text field by saying:

text_instance_name.text = "level0";

or

text_variable_name = "level0";

then the only way that it could be assigning that value is if your variable name of your text field references the _root or _level0 timeline somehow, and you don't have the "_" included in your character embedding...

As a work around, i'll make a function that will clear the contents out of each text box when the focus is set. For example, if your text field was called "myText_txt" as an instance name, i would say:

myText_txt.onSetFocus = function(){
this.text = "";
}

the only problem is that it would clear the text every time the focus is set... which means even if the value is not "level0" and they click off and back on the text field, it will reclear it. If you're positive that the value is "level0" you can just do a simple if statement in the function:

myText_txt.onSetFocus = function(){
if(this.text == "level0") this.text = "";
}

but i'm pretty sure it has to do with your varible naming...

cheers,

bret

Reply With Quote
  #5  
Old March 12th, 2003, 01:23 PM
rec rec is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2003
Location: houston
Posts: 94 rec User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 8 h 40 m
Reputation Power: 6
Yeah I think it is referencing the time line for some reason. Nowhere is level0 entered as any kind of value. But that’s OK as soon as I read your post I realized it was simply a mater of declaring the value of the variable in the first frame then as soon as the user enters a new value it replaces the value that the variable is initialized with. Stupid me, I should have thought of that.

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb DesignFlash Help > Text box displays “level0”


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

 Free IT White Papers!
 
Accelerating Trading Partner Performance
One in five. That's how many partner transactions have at least one error. That is an amazing statistic, particularly given the extraordinary leaps in innovation across the global supply chain during the past two decades. Download this white paper to learn more.

 
Competing on Analytics
This Tech Analysis is designed to help identify characteristics shared by analytics competitors, and includes information about 32 organizations that have made a commitment to quantitative, fact-based analysis.

 
Cost Effective Scaling with Virtualization and Coyote Point Systems
An overview of the industry trend toward virtualization, how server consolidation has increased the importance of application uptime and the steps being taken to integrate load balancing technology with virtualized servers.

 
Five Checkpoints to Implementing IP Telephony
Implementation planning for IP PBX software and IP telephony has become vital as businesses replace discontinued legacy PBX phone systems. This informative whitepaper outlines five "checkpoints" for any implementation plan that will help make IP communications a successful proposition.

 
Hosted Email Security: Staying Ahead of New Threats
In the last two years, email has become a fierce battleground between the nefarious forces of spam and malware, and the heroes of messaging protection. The spam volumes increased alarmingly every month, bringing clever new forms of phishing and virus propagation attacks.

 

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





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 1 hosted by Hostway