473,479 Members | 2,120 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

dynamic textfield

2 New Member
trying to move my textfield out of a scrollpane to draw on the main _root timeline... and it doesn't work. it worked in the scrollpane but something is off with the path to draw on the _root or "this" timeline...can someone help i tried with root and with "this" in the path...

this is what i would like to work:

this.createTextField(option, this.getNextHighestDepth(), 5, num*20+80, 60, 20);
this[option].text = option;
this[option].embedFonts = true;
this[option].setTextFormat(myTextFormat2);

this is what used to work:

_root.pane.content.createTextField(option, pane.content.getNextHighestDepth(), 5, num*20+80, 60, 20);
_root.pane.content[option].text = option;
_root.pane.content[option].embedFonts = true;
_root.pane.content[option].setTextFormat(myTextFormat2);

OPTION is a variable being passed into a function containing the above code and some other code too...pls let me know if more info is needed...

thank you in advance,
ilz

PS: using Flash professional 7.2
Apr 4 '07 #1
1 2017
Motoma
3,237 Recognized Expert Specialist
I think it may work if you do this.content[option]. This will refer to the movie clip you are in, and that would be pane (if I am understanding you correctly).

trying to move my textfield out of a scrollpane to draw on the main _root timeline... and it doesn't work. it worked in the scrollpane but something is off with the path to draw on the _root or "this" timeline...can someone help i tried with root and with "this" in the path...

this is what i would like to work:

this.createTextField(option, this.getNextHighestDepth(), 5, num*20+80, 60, 20);
this[option].text = option;
this[option].embedFonts = true;
this[option].setTextFormat(myTextFormat2);

this is what used to work:

_root.pane.content.createTextField(option, pane.content.getNextHighestDepth(), 5, num*20+80, 60, 20);
_root.pane.content[option].text = option;
_root.pane.content[option].embedFonts = true;
_root.pane.content[option].setTextFormat(myTextFormat2);

OPTION is a variable being passed into a function containing the above code and some other code too...pls let me know if more info is needed...

thank you in advance,
ilz

PS: using Flash professional 7.2
Apr 6 '07 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

2
2283
by: C. Armour | last post by:
Help me, I'm suffering! Situation: I have a load() function which loads a bunch of TextFields with values. There are TextListeners registered for each of these TextFields. Thus, changing the...
1
1828
by: JZ | last post by:
I use Webware and FormKit. I have a problem with dynamic added field to the form. The following code creates one input field and two submit buttons. I would like to add more (up to 4) input fields...
7
3399
by: Jack | last post by:
Hi, I am trying to test a sql statement in Access which gives me the error as stated in the heading. The sql statement is built as a part of asp login verification, where the userid and password...
1
1194
by: Luis Ferrao | last post by:
Hi, To understand the problem, a small description of the situation should be provided: I have a Field Control that is made of a one row table with three columns. The table width is 100%, the...
1
2873
by: empiresolutions | last post by:
Hello fellow code junkies, I am using the "Ajax dynamic list" http://dhtmlgoodies.com/index.html?whichScript=ajax-dynamic-list and i think its the best out there. I have found a compatibility...
1
5588
by: erictomlinson | last post by:
I'm dying here trying to figure this out for days. Here's the scenario: 1) External script.as file dynamically imported to loader.swf file that creates a textfield (createTextField) 2)...
3
1404
by: questionit | last post by:
Is there any way to dynamically extend a Textfield. I.e : If it gets so many lines of data anytime, the size of the Textfield should extend itself ?
1
1795
by: =?Utf-8?B?dHV0b3I=?= | last post by:
hi folks i want complete control of my menuing in ASP (no site maps, no hardwired XML files, etc.) This is all governed by SiteID, ApplicationID, UserID, etc. i thought i was close with this,...
4
4859
by: Michael Munch | last post by:
Hi I want to read the value of af text-field, create dynamic, in a form. Se below a small test-site to do that (but readning fails): I use the function Test_Read for reading the value from the...
1
9633
by: Sundhas | last post by:
Hey! I am working on jrxml to create dynamic re0ports. I have parameterized the columns i.e. the jrxml for that report can be used to generate other reports as well. However, i have not managed...
0
7027
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
6899
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7067
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
6847
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
4463
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
2980
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
2970
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
555
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
166
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.