How displaying text in child?
-I got two movie clips in library (s1 and s2).
-Got text filed in each movie clips ($text1 and $text2)
I wrote the code to show the texts of two movie clips.
However, s1 showed the text, s2 doesn't. Why?
Attachment for reference.http://hotfile.com/dl/126771818/ed3ea02/test-addchild-display_text-cs4.fla.html
import flash.display.MovieClip;
var a:MovieClip =new s1();
a.x=stage.stageWidth/2;
a.y=stage.stageHeight/2;
addChild(a);
var b1:MovieClip = new s2();
b1.x=stage.stageWidth/2-150;
b1.y=stage.stageHeight/2-150;
a.addChild(b1);
a.$text1.text="a";
a.b1.$text2.text="b";
Just to demo the first approach I mentioned using getChild...()-type methods...
var a:MovieClip =new s1();
a.x=stage.stageWidth/2;
a.y=stage.stageHeight/2;
addChild(a);
var b1:MovieClip = new s2();
b1.name = "b1_s2_mc";
b1.x=stage.stageWidth/2-150;
b1.y=stage.stageHeight/2-150;
a.addChild(b1);
a.$text1.text="a";
MovieClip(a.getChildByName("b1_s2_mc")).$text2.text="b";
Similar Messages
-
How display just some child in a webform?
Hi,
Please somebody of you can explain to me how to display in a webform just some child (not all child) related to member of a dimension.
Example:
Dimension: Account
Member:
Generation1: Product
Generation2 : Sales
Generation3 :
- Quantity
- price
- 711111 (Revenue)
I want to display in my webform just Sales, Quantity and Price. How can I do that?
PS: I tried Ichildren(sales) but it didn't work
Thank youWe are glad to know that its working. If you ever read this, its always good to mark answers as helpful or correct if you think they are and close the thread. You can do the same just by hit a mouse pointer on the top right side of the answer <:)>. In can see you havnt close 85% of the threads.
Cheers..!!! -
How to display text on last but one page in SAPSCRIPTS
how to display text on last but one page in SAPSCRIPTS
u have create one Foooter window , this has to be called in only One Page.So hardcode /assign this window to only one PAGE number.
regards
Prabhu -
How to display TEXT more than 500 char in a report as multiple lines.
Hi Friends,
i have a requirement like i should display Texts of length more than 500 Characters in a report( ALV LIST) as multiple lines
I am fetching the data Using FM READ_TEXT
the output im currently geeting with 150 Char in lenth as a single line
How we can split the text into multiple lines in a report
first i would like to know is it possible? if possible please give your valuable suggitions if not is there any alternative way to do this task.
Thanks & regards
kumar.Hi,
This is possible but the Solution might not look Standard/Appropriate to you.
In ALV, you can have Multiple Line Output...There is a Field in the Field Catalogue..called as Row_position...this is by default 0...which means Single row/Line ALV output....You can have this Value in the Range of 0 to 3.......A ALV field with row_position 1, will be displayed in the second line for every record...i.e. you will have multiple line for a single record of ALV.
In your case......you can use this but you need to split your field in two fields.....but you may end up spliting a single word....but for that also you can design the logic of splitting the Fiel value at SPACE only......
This may work.......and Sorry if not work...... -
How to get selected item value and display text in selectOneChoice ?
Hi
Thank you for reading my post
I bind the a selectOneChoice component to my backing bean so i have an object which represent this component in the backing bean.
now i need to find which item is selected by use , i know that i can use
getSelect_service().getValue.toString() , but it will return the value of the selected item, how about its display text ?
I should say that i create an static list for selectOneChoice items.
thanksUsing JDeveloper 10.1.3.1, freshly downloaded off OTN. I used the following code to try and identify the problem you are encountering. I attempted to use a valueChangeListener in combination with af:selectOneChoice components that use SelectItems and the singular SelectItem. I could not reproduce the error in either case. Please post more information about your development environment.
<af:selectOneChoice label="Label 1"
binding="#{backing_test.selectOneChoice1}"
id="selectOneChoice1"
valueChangeListener="#{backing_test.valueChangeListener}"
autoSubmit="true" immediate="true">
<af:selectItem label="1" value="1"
binding="#{backing_test.selectItem1}"
id="selectItem1"/>
<af:selectItem label="2" value="2"
binding="#{backing_test.selectItem2}"
id="selectItem2"/>
<af:selectItem label="3" value="3"
binding="#{backing_test.selectItem3}"
id="selectItem3"/>
</af:selectOneChoice>
<af:selectOneChoice label="Label 2"
binding="#{backing_test.selectOneChoice2}"
id="selectOneChoice2" valueChangeListener="#{backing_test.valueChangeListener}"
autoSubmit="true" immediate="true">
<f:selectItems value="#{backing_test.items}"
binding="#{backing_test.selectItems1}"
id="selectItems1"/>
</af:selectOneChoice>
public void valueChangeListener(ValueChangeEvent evt){
// returns a UISelectOneChoice object
System.out.println(evt.getSource().getClass().getName());
// returns a string
System.out.println(evt.getNewValue().getClass().getName());
public Map getItems(){
items = new HashMap();
items.put("11","11");
items.put("12","12");
items.put("13","13");
return items;
} -
How to extract the 'display text' of the URLs?
Hi,
I want to extract the 'display text' of a link inside an html page? I am using HTML Toolkit class and the getAttribute method...How can i do that since the text is out of 'Attribute'. How to get this text?
Thanx in advanceYou should try passing the input stream to a Scanner or a BufferedReader and that way you should be able to read in lines of text.
HttpURLConnection a = null;
URL b;
Scanner in = null;
try {
b = new URL("http://www.google.com");
a = (HttpURLConnection) b.openConnection();
in = new Scanner(a.getInputStream());
while(in.hasNext())
System.out.println(in.nextLine());
} catch (Exception e) {
e.printStackTrace();
}Edited: Something like the above. -
How to display text in script as same as text in news paper
Hi Expets
I have a requirement i need to display text in script as same as text displayed in news paper
with out creating any windows. iie ( Abcdef should be in one cloum after some space i need to display 1234)
please let me know how can i achieve this
Ex
1.
hi abcdef 12345
abcedf 12345
abcedf 12345
Regards
Suresh
Edited by: suribabu124 on Jun 15, 2010 7:55 AMHi,
If you need to print a form like news paper you need go for multiple main windows.We know that we can use 99 main windows in one page.first create one main window and then leave a space then create one more window and select window type as mainwindow.
while populating data,after completion of one main window the control will move to next main window,which is in the same page.
Like this you need to analyse and code according to your requirement. -
How to display texts automatic. besides entered value for a field in Trans.
How to display texts automatically besides the entered value for a field in a standard transaction screen. For example you have a value table and a text table associated to it. Then on entering the value field and pressing enter the text associated should get displayed immediately besides the value. Like if you have 'LOC' as the value and 'Location' as the text associated to it, on entering this value 'LOC', you automatically get the text 'Location' printed besides it automatically in a transaction screen ?
Message was edited by: Sarika KediaHi sarika,
Welcome to SDN.
1. first of all, such display of text,
is not automatic.
(it appears to be automatic)
2. At design time,
a) take one extra field for text
and mark it as OUTPUT ONLY
3. Then in PBO coding,
call some module, and in that module
write code
4. The code should be to
select from TEXT Table
into the work area.
EG. THE SCREEN TEXT FIELD NAME IS
T510A-FIELDNAME.
CLEAR t510a.
SELECT SINGLE * FROM t510a INTO t510a
WHERE trfar = FIELVALUE.
5. This will take care of
displaying the text value of that field.
regards,
amit m. -
How to display text on last but one page
how to display text on last but one page
Hi Preeti,
If u r working on a smartform then click on th window go to the condition tab there
at the end u will find events click on the the event on which u want to trigger the
print.
If u r working on a script then create a text element and call this text elemtn at
the end of processing of the main window, this will make sure that thetext element
is triggered only at the end.
I hope that helps u , if not pls let me know.
Regards,
Vaibhav B Gawali. -
HTML display Mathmetical X*X=X<sup>2</sub> or
Chemical formular H2O=H<sub>2</sub>O. How to Text()
Flex display?
Thz every idea.this link might help you
http://www.subscriptfont.com/ -
How to programatically display text in combo box?
Is there a way to programatically display text in a combo box. I would like to display the word "Select" in the combo box each time my program starts. As it is now, my combo box displays the last string that was selected the last time the program ran.
Thanks in advance.
Solved!
Go to Solution.Actually, after actually reading your post...
Jim
You're entirely bonkers. But I'll tell you a secret. All the best people are. ~ Alice -
How to display text dynamically
hello,
i am working in dialog programing i need to display text which is save in a file and i want that whenever each new call screen i should display a text message from my flat file on the new screen ..... is there is a funda of xml?If the text is same for all the screens then copy it into a string or variable type c and write it on all the screens
-
How to display text of note tab of invoicing
Hi all,
I want to display text that is written in notes tab while doing invoicing that is through FB60 and MIRO.
I searched for it in tables STXL and STXH but text isnt stored there, pls help me out.
Thank you,
SonaliThanks Gokul it helped
awarded u points. -
Displaying text more than 256 in ALV report
Hi experts,
I have problem while displaying text field in ALV report which has more than 256 characters.
I'm using CL_SALV_TABLE for displaying alv.while concatenating my internal table holding all the text.but at the time of displying the report it's only displaying 256 characters.
Can anyone guide me how to display more than 256 characters in ALV output using CL_SALV_TABLE.Hi,
Please find the below code.
TRY.
gr_column ?= gr_columns->get_column( columnname = 'MATNR' ).
gr_column->set_output_length( '300' ).
CATCH cx_salv_not_found.
Message : Column definition problem
MESSAGE e075().
ENDTRY.
Edited by: Archana.T on Jun 16, 2010 1:24 PM -
Problem in Displaying text Variable
Hi All,
I have problem in Displaying text Variable in the column header.
My requirement is as follows.
Column Level:
0Calmonth/Year
Key figures
Keyfigure1 - Current Month - Text Variable1
Keyfigure2 - Previous Month - Text Variable2
Keyfigure3 - Previous Month - Same as Text Variable2 - Display same month
So based on each 0Calmonth/year these three keygirues should display in Header section like.
Selection screen
0Calmonth/Year - 03.2005 - 06.2005
Result should be for each month.
0Calmonth/Year
03.2005 04.2005 05.2005
03.2005 | 02.2005 | 02.20005 04.2005 | 03.2005 | 03.2005 05.2005 | 04.2005 | 04.2005.
I have created two text variable with Customer exit.But not able to show exact months in the header section.
For first three columns months are coming exactly, but from fourth columns it should display next month, but it is not coming.
I have tried to code, but not successfull.
Please help me how to go about this.
Will assign full points.
Regards,
Vijayhi
Check here........
Re: Customer Exist for "From Current Date To Month End"
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/25d98cf6-0d01-0010-0e9b-edcd4597335a
Cal month
it might helpful for you
assign points if helpful
Maybe you are looking for
-
Changes in BW queries are not showing in EP
Hi, I have created two BW Query iViews. It was working fine. But when the query is changed from BW server, it's showing error message as:- System error in program SAPLRRS2 and form INITFL_ASSIGN-01- And in the second query it's showing "No Applicable
-
Hello, I'm writing PL/SQL-Portlets and use the wwerr_api_error_ui.show_html procedure to display some error messages. How can I customize the layout of the generated error page? If this is not possible, how can I implement this on my own? I've tried
-
IPhone4 will not update with iOS5
I have the iPhone 4 and have been unable to download the iOS5 update. My phone downloads the file but then sits idle and will not complete the installation. I have let it sit overnight and still no luck. Has anyone else had this issue? How do I fix i
-
MBP running slow after 10.9.2 update
I have a late 2011 macbook pro & here's what's going on, it takes up to 10 minutes or so just to boot up, plus another 5 to 8 minutes to log in while watching the spinning ball, when I eventually log in, it takes about 30 seconds to a minute & a half
-
Strange issue with slideshow timing...
Using the Scrapbook theme with about 40 photos... added music, and selected "10 sec" as min timing for each of the photos thru the Settings=>All Photos tab. Would expect the slideshow to run for about 400 sec, however, the preview shows the photos ch