hi all,
i loaded a movieclip and created a dynamic text input using as3 and flex.now
i wanted to select the textbox by using the flex controls..
will anyone help me..
thanks in advance
*
private* *var* loadedSWFMainTimeline:*;
*private* *var* textbox_mc:MovieClip;
*private* *function* ontextboxSWFCompleted(event:Event):*void
*
{
*// get a reference to the main timeline
*
loadedSWFMainTimeline = textboxSWF.content;
*// you could access properties on the main timeline or
*
*// access methods and/or properties in the SWFs Movie Clips
*
textbox_mc= loadedSWFMainTimeline.textbox_mc;
*var* sItem:MovieClip = *new* MovieClip();
animhorse_mc.addChild(sItem)
*var* sText:TextField = *new* TextField();
sText.text = *"Welcome "*
sText.setSelection(0,sText.length-1)
sText.backgroundColor= 0x333333
sText.type=TextFieldType.INPUT
sText.autoSize = TextFieldAutoSize.LEFT
sText.addEventListener(MouseEvent.MOUSE_DOWN,startDragging);
sText.addEventListener(MouseEvent.MOUSE_UP, stopDragging);
sText.border = *true*;
sText.name=*"sss"
*
sText.scaleX=2
sText.scaleY=2
sText.width=300
sText.multiline=*true
*
sText.wordWrap=*true*;
sItem.addChild(sText);
}
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Flex
India Community" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/flex_india?hl=en
-~----------~----~----~----~------~----~------~--~---