Tree component flash cs3 multiline/wordwrap

Hi All,
I have a tree component customized ..now i am stuck at the
length of the text ..i need to have the text in the tree node to
word warp for lengthy text..
thank you for the help in advance..
kakas

nothing so far..really needed it very urgently!
thx again
kakas

Similar Messages

  • Questions about AS2 Tree Component (Flash CS3)

    I have Flash application with a Tree component on the Stage. I'm using an XML file to create the structure of the Tree component.
    Each entry on my XML has the attributes id, label, heading, desc, and icon.
    My problem is that I can't seem to be able to set the Tree to default with the first node open.
    My code is:
    var xmlTreeData:XML = new XML();
    xmlTreeData.onLoad = function() {
    mTree.dataProvider = this.firstChild;
    xmlTreeData.ignoreWhite = true;
    xmlTreeData.load("xml/treeValues1.xml");
    mTree.setStyle("fontSize","11");
    mTree.setStyle("selectionColor","0xE0E0E0");
    mTree.setStyle("useRollOver",false);
    mTree.setIsOpen(mTree.getTreeNodeAt(0), true);
    My tree populates fine, and the handler I retrieve whatever item is clicked works great. However, the tree refuses to default to having that first node open.
    I'm also interested in placing custom icons into certain nodes via the icon attribute I've set in the XML, but that will have to come later I guess.

    I've never used the Tree component, so I'm just guessing here....
    There is a slight delay before the xml file loads and your tree has its data provider.
    Perhaps during that time there is no node at mTree.getTreeNodeAt(0) to open? Try adding this just before the last line of your code:
    trace("the node is: "+mTree.getTreeNodeAt(0));
    What do you get?
    You might need to move that code inside the xml's load event handler.
    Another thing is that the Flash components tend to work on an invalidate-then-wait-one-frame-to-redraw kind of model. So it is possible you will need to wait one frame after the xml has loaded and then tell it to open that node.
    The doLater method might help with that.
    var home:MovieClip=this;
    var xmlTreeData:XML = new XML();
    xmlTreeData.onLoad = function() {
    mTree.dataProvider = this.firstChild;
    mTree.doLater(home,"delay");
    xmlTreeData.ignoreWhite = true;
    xmlTreeData.load("xml/treeValues1.xml");
    mTree.setStyle("fontSize","11");
    mTree.setStyle("selectionColor","0xE0E0E0");
    mTree.setStyle("useRollOver",false);
    function delay(){ 

  • Custom icon per entry in the AS2 Tree Component (using CS3)

    I have a tree component that loads its data from an XML file and I wonder if I can customize every entry to have its own icon by adding an icon attribute to every entry in the XML and giving the tree an action to read that icon (which would exist in the library of the Flash file). My goal is to reproduce a tree within an application that my company is developing (it's for a training tool related to that application).
    My XML says something like <node label = 'Label' heading = 'LABEL' desc = 'Description' icon = 'icon1' />
    My label is what the tree displays, the heading is what the information dialog in the training tool displays as a title bar, the desc is what the training tool displays within the body of the text for the function description and the icon is what I want to be a reference to the graphic in the library to place as an icon in front of the item rather than use setStyle with the properties for disclosure, leaf, and folder icons.
    Is that possible? I haven't found a solution for it yet.

    I've never used the Tree component, so I'm just guessing here....
    There is a slight delay before the xml file loads and your tree has its data provider.
    Perhaps during that time there is no node at mTree.getTreeNodeAt(0) to open? Try adding this just before the last line of your code:
    trace("the node is: "+mTree.getTreeNodeAt(0));
    What do you get?
    You might need to move that code inside the xml's load event handler.
    Another thing is that the Flash components tend to work on an invalidate-then-wait-one-frame-to-redraw kind of model. So it is possible you will need to wait one frame after the xml has loaded and then tell it to open that node.
    The doLater method might help with that.
    var home:MovieClip=this;
    var xmlTreeData:XML = new XML();
    xmlTreeData.onLoad = function() {
    mTree.dataProvider = this.firstChild;
    mTree.doLater(home,"delay");
    xmlTreeData.ignoreWhite = true;
    xmlTreeData.load("xml/treeValues1.xml");
    mTree.setStyle("fontSize","11");
    mTree.setStyle("selectionColor","0xE0E0E0");
    mTree.setStyle("useRollOver",false);
    function delay(){ 

  • Problems With List Component Flash Cs3

    Hello Friends,
    I am working in Flash Cs3.
    I am having a List component in my application.
    I added 10 items into my list component. Now out of those 10 items, i want to disable particular list items like Item 4, Item 8, Item 9. How to do this using flash cs3 or flash 8.0.
    Item1   --  Enabled state
    Item2   --  Enabled state
    Item3   --  Enabled state
    Item4   --  Disabled state
    Item5   --  Enabled state
    Item6   --  Enabled state
    Item7   --  Enabled state
    Item8   --  Disabled state
    Item9   --  Disabled state
    Item10 --  Enabled state
    Any suggestions/ideas would be really appreciated.
    Regards,
    Rajesh

    Hello Friends,
    I got a partial solution for this. Now i can able to disable a particular list item using flash cs3. I achived this. But it was happening only after clicking the item values....
    But i need in a diff way like, as soon as you run the flash file it has to disable. how is this possible in flash cs3.
    this is the code :
        import fl.controls.List;
        import fl.controls.listClasses.CellRenderer;
        import fl.controls.listClasses.ListData;
        import fl.events.ListEvent;
        import flash.display.Sprite;
        import flash.events.Event;
        import flash.text.TextField;
            var sampleItem1:Object = { label:"John Alpha" };
            var sampleItem2:Object = { label:"Mary Bravo" };
            var sampleItem3:Object = { label:"Trevor Gamma" };
            var sampleItem4:Object = { label:"Susan Delta" };       
            var myList:List;
            var tf:TextField;
      ListDataExample()
             function ListDataExample() {
                createList();
                tf = new TextField();
                tf.x = 10;
                tf.y = 125;
                addChild(tf);
             function createList():void {
                myList = new List();
                myList.move(10,10);
                myList.addItem(sampleItem1);
                myList.addItem(sampleItem2);
                myList.addItem(sampleItem3);
                myList.addItem(sampleItem4);
                myList.rowCount = 4;
                myList.addEventListener(ListEvent.ITEM_CLICK,listItemSelected);
                addChild(myList);
             function listItemSelected(e:ListEvent):void {
                var cr:CellRenderer = myList.itemToCellRenderer(e.item) as CellRenderer;
                var listData:ListData = cr.listData;
       if(cr.listData.row == 2) {
        cr.enabled  = false
                tf.text = "Row selected: " + listData.row;
    waiting for your replies.
    Regards,
    Rajesh

  • Flash 8 component not working in flash cs3

    Hi, I have a flash 8 component (well, it was written for
    flash 8 but it claims to be compatible with flash 7+).... which I
    am trying to get to show up in the components panel in Flash CS3
    trial version. I have the flash CS3 extension manager, it shows up
    in there, but it doesn't show up in my components window in flash
    cs3. What do I need to do to get the flash 8 component to show up
    in flash CS3??

    Hi,
    When you open a new file in Flash CS3, you got the option to
    choose either AS2 file or AS3 file, the components are different on
    each one.

  • Flash CS3 Component Help?

    I have a menu component I've created in Flash CS3. I'm
    running into a small problem. Currently, in Flash, I create an
    array in the first frame of the movie and then assign a
    "menu_items" property (an array) on my menu object as that array.
    The array is an array of specialized menu item objects that is
    defined in a separate class. In Flex, I would like to do this:
    <mxml:macMenu>
    <mxml:macMenuItem image="btn1.png" click="{clickHandler}"
    />
    <mxml:macMenuItem image="btn2.png" click="{clickHandler}"
    />
    .....etc
    </mxml:macMenu>
    I'm not quite sure how I can get my object to realize the
    children should be part of the array inside of macMenu called
    "menu_item" and at the same time make sure they are an instance of
    my menu item class.
    I have posted the full AS3/Flash CS3 source of my menu at
    http://www.adambergman.com/as3/macMenu.html
    Any help or ideas are appreciated!!!

    Hi Rajesh,
    I've seen your query all over the internet, so I should warn you I don't believe it's possible to disable a List Item.
    For that you should use Josh Tynjala's open source Advanced List (http://code.google.com/p/flextoolbox/downloads/list).
    Best Regards,
    Filipe.

  • Creating flash cs3 component

    Hi,
    There is great and easy way to create flash based component
    in flash cs3 using action script 3.0.
    I am going to make a simple My button component which will
    behave likely same as flash native button component.
    You can modify this according your requirement this is just
    you give an idea about how we can go for creating a component in
    flash cs3.
    Follow these steps…
    1. Create a fla file and save this file with any name
    2. Create a movieClip and draw a rectangle shape on first
    frame.
    3. Right click on movieclip in library, select linkage
    4. Provide class name in text field area [MyButton] (you can
    use any name here which should matched with your class)
    5. Click Ok button
    6. Write class [MyButton]
    (you can copy and use this)
    * author @ sanjeev rajput
    * [email protected]
    * A flash action script 3.0 based component without extending
    UIComponent class
    package {
    import flash.display.Sprite;
    import flash.text.TextField;
    import flash.events.MouseEvent;
    import flash.events.Event;
    import fl.motion.Color;
    public class MyButton extends Sprite{
    private var _tf:TextField;
    private var _Label:String="My Button";
    private var _bgColor:uint=0xCCCCCC;
    private var _rollOverColor:uint=0xFFCCCC;
    private var _borderColor:uint=0x000000;
    private var _borderThickness:int=1;
    private var _width:Number = 100;
    private var _height:Number =100;
    private var _background:Sprite;
    public function MyButton() {
    init();
    createChildren();
    initEventListeners();
    draw();
    //-------------property section [Start]
    [Inspectable]
    public function set Label(lbl:String){
    _Label=lbl;
    draw();
    public function get Label(){
    return _Label
    [Inspectable]
    public function set bgColor(color:uint):void{
    _bgColor=color;
    draw();
    [Inspectable]
    public function set borderColor(color:uint):void{
    _borderColor=color;
    draw();
    [Inspectable]
    public function set borderThickness(thickness:int):void{
    _borderThickness=thickness;
    [Inspectable]
    public function set rollOverColor(color:uint):void{
    _rollOverColor=color;
    //-------------property section [End]
    private function init():void {
    trace('welcome');
    _width = width;
    _height = height;
    scaleX = 1;
    scaleY = 1;
    removeChildAt(0);
    private function initEventListeners():void{
    addEventListener(MouseEvent.MOUSE_OVER, eventHandler);
    addEventListener(MouseEvent.MOUSE_OUT, eventHandler);
    private function eventHandler(event:Event):void{
    if(event.type == MouseEvent.MOUSE_OVER){
    toggleColor(_rollOverColor);
    if(event.type == MouseEvent.MOUSE_OUT){
    toggleColor(_bgColor)
    private function createChildren():void {
    _background = new Sprite();
    _tf = new TextField();
    _tf.autoSize = "center";
    _tf.selectable=false;
    addChild(_background);
    addChild(_tf);
    protected function draw():void {
    toggleColor(_bgColor);
    _tf.text = _Label;
    _tf.x = Math.floor((_width - _tf.width)/2);
    _tf.y = Math.floor((_height - _tf.height)/2);
    //width = _tf.width;
    private function toggleColor(color:uint):void{
    _background.graphics.clear();
    _background.graphics.beginFill(color, 1);
    _background.graphics.lineStyle(_borderThickness,
    _borderColor, 1);
    _background.graphics.drawRoundRect(0, 0, _width, _height,
    10, 10);
    _background.graphics.endFill();
    public function setSize(w:Number, h:Number):void {
    _width = w;
    _height = h;
    draw();
    7. Now right click again on your movieclip in library and
    select component definition.
    8. In class name text field provide same class name
    [MyButton]
    9. Click on ok button
    10. Right click again on movieClip in library and select
    Export SWC file.
    11. Same your exported SWC file in (For window only)
    [c:\Documents and Settings\$user\Local Settings\Application
    Data\Adobe\Flash CS3\en\Configuration\Commands\
    12. Now just open another new flash file open component
    panel/window reload component you will your component in component
    panel with MyButton name.
    13. Drag your custom component on stage provide inputs form
    property window and text it.
    Enjoy!

    Lt.CYX[UGA] wrote:
    > if anyone is using Flash CS3, try creating a flash
    movie, using the FLVPlayer
    > component to play an flv video and make it an executable
    projector. Run it
    > fullscreen and watch how the screen just stays black
    when the video should
    > appear. If you stay windowed, it works fine.
    >
    >
    steps to reproduce:
    > 1. create flash movie
    > 2. put an FLVPlayer component on a frame that's not the
    first (for testing
    > purposes)
    > 3. before the projector reaches the frame with the
    FLVPlayer component, change
    > it to fullscreen (by script or CTRL+F)
    >
    >
    observed behaviour:
    > not only the video doesn't play, but the whole screen is
    black until the
    > player goes back to windowed mode
    >
    >
    expected behaviour:
    > video should play
    >
    >
    remarks:
    > if you skip step 3, video plays correctly
    >
    Works just fine.
    Made new movie, on frame 2 places Full screen action, on
    frame 5 placed video component
    and stop(); action attached to frame. Projector pops large
    following by video playing
    just fine.
    I tried variety, first frame, many frames, all on one. Not
    able to reproduce your problem.
    Works on first go.
    Best Regards
    Urami
    Beauty is in the eye of the beer holder...
    <urami>
    If you want to mail me - DO NOT LAUGH AT MY ADDRESS
    </urami>

  • Use Flash CS3 component in Flex

    As a bit of a n00b, this may be a stupid question...
    If I were to get a component made for use with "Flash CS3",
    once it's compiled to a swf & fla, is it entirely usable in
    Flex [Builder] 3 ? Say I didn't want to re-skin it, and it was
    fully programable via AS?
    Is this a "it depends"? Is it a "absolutely, you just need
    CS3 to compile it first"?
    Thanks in advance,
    AJ

    "GuinnessIsGoodness" <[email protected]>
    wrote in message
    news:gbe131$c20$[email protected]..
    > As a bit of a n00b, this may be a stupid question...
    >
    > If I were to get a component made for use with "Flash
    CS3", once it's
    > compiled
    > to a swf & fla, is it entirely usable in Flex
    [Builder] 3 ? Say I didn't
    > want
    > to re-skin it, and it was fully programable via AS?
    >
    > Is this a "it depends"? Is it a "absolutely, you just
    need CS3 to compile
    > it
    > first"?
    I think you need to either use it as an as file or compile it
    as a swc,
    unless you want to load it into a swfloader.
    HTH;
    Amy

  • Customizing DataGrid component in Flash CS3 using AS3

    Can anyone please explain how to customize the DataGrid
    component in Flash CS3 using AS3???
    How do you remove/change the grid lines for the rows and
    colums?
    How do you remove/change the border?
    My day has been lost searching for this answer. Flash
    Documentation is worthless and Google finds nothing with regards to
    AS3. ASDGRH.
    Thanks in advance,
    TedWeb

    I hope you've found a resolution to this by now, but I just noticed the discussion title when posting a captioning issue.
    In a nutshell, create a listener on your FLVPlayback module with a VideoEvent.SKIN_LOADED event. You'll also need to set the showCaptions in your FLVPlaybackCaptioning object to true. Apparently, if the captions are set to false when the player object loads the skin, the captions aren't recognized and your captions toggle will require an extra click to activate the captions.
    Here's the link to another discussion on the same topic with all of the details:
    http://kb2.adobe.com/cps/402/kb402452.html
    Also, have you had any issues with the caption button in the FLVPlayback skin not showing up? That's my current issue. Here's the discussion for it:
    http://forums.adobe.com/thread/796423?tstart=0

  • Flex Component Kit for Flash CS3

    Hi,
    I created a flex component using the component kit for Flash
    CS3. The component contains a vector image wrapped as a MovieClip.
    In my flex application I add the component as child to a
    Canvas. It works well if i add it like -
    <mx:Canvas id="container" >
    <local:MyComponent />
    </mx:Canvas>
    or like -
    container.addChild (new MyComponent()); //DISPLAYED
    However, the component is not displayed when I do the
    following -
    var array:Array = new Array(new MyComponent());
    container.addChild(array[0]); //NOT DISPLAYED
    Can somebody tell me why this is so?
    I would also like to know if such components can be
    instantiated using flash.utils.getDefinitionByName.
    I tried it but I get Error #1065: Variable 'componentName' is
    not defined
    Could somebody please tell me what is going on?

    Hi bolaughlin,
    Thanks for you reply.
    Error 1065:
    import MyComponent;
    var comp:MyComponent = new MyComponent(); //Error 1065
    //Where MyComponent is the Flash CS3 clip that was converted
    to Flex component
    I have a workaround for this -
    I first add the component as an Mxml tag with visibility
    false and then remove the component
    with actionscript. Now all instantiations work normally (this
    includes all components in the SWC).
    <mx:Canvas id="container" >
    <local:MyComponent visible="false" />
    </mx:Canvas>
    and in <mx:Script>
    container.removeAllChildren();
    var comp:MyComponent = new MyComponent(); //Works
    var anotherComp:MyOtherComponent = new MyOtherComponent();
    //From the same swc; This also works.
    I have a feeling this problem is similar to the 'shared
    fonts' problem that
    existed with Flash MX and below.
    Anyway, even though I don't really know whats happening, my
    project can
    move ahead. Hopefully some Guru will explain this.
    Until then...thank you very much.

  • FLVplayback component mod help (Flash CS3, as3)

    can anyone help me with the actionscript needed to
    dynamically call a flv video into cs3's default
    flvplaybackcomponent with a variable?
    i have it working on as2 but the scripting must be different
    in as3 cause it dosnt work there.
    my as2 code is as follows:
    stop();
    var passed:String = video;
    player.contentPath= video;
    this allows me to use videoplayer.swf?video=[video].flv
    but i need this to work in cs3 flash9 player with the
    fullscreen support
    any help would be greatly appreciated.

    which version of flash cs3 do you have?

  • How to build a custom Flash CS3 component

    I just googled in the hope to find some resources about how
    to build custom Flash CS3 components, but nothing turned up. I also
    couldn't find any info on Adobe's Flash developers center.
    Do you know of any resource that sheds some light on this
    subject?
    If not then I'll have to try to find my way around custom
    components by learning from the ones that came with Flash CS3 I
    guess.

    Flash CS3 has been out for a few weeks. At this point, your
    best bet is Amazon books or Barnes & Noble. I've read a few
    books that should shed light on the subject. Otherwise, you'll need
    to wait a few more weeks while people start hashing it out and
    posting it to blogs and other sites.

  • DateChooser Component for Flash CS3, AS3.0

    Where and how do I get the datechooser for Flash CS3, AS3.0?

    which version of flash cs3 do you have?

  • Problem Installing Flex Component Kit for Flash CS3

    i have downloaded the mxp files from here:
    http://www.adobe.com/cfusion/entitlement/index.cfm?e=flex_skins
    And installed them using the extension manager (flash cs4) but i don't get the new commands added (rebooted flash cs4, of course...)
    Any ideas please?

    Would you mind posting your question on the Flex Kit for
    Flash CS3 discussion page on Adobe Labs? This way the engineers
    developing the kit can respond.
    Here's the link:
    Flex
    Kit Discussion

  • Flash CS3 and Web Services (again)

    Ok, I'm sorry to be going on about this... I've seen the
    question asked before, but I am yet to find an answer.
    -I just noticed that the Web Service Connector targets only
    AS2. Along with several other components.
    I was hoping to find CS3 working BETTER with web services, as
    an example I kind of hoped that the long awaited feature of being
    able to consume a .NET dataset would be there... But instead there
    is absolutely nothing.
    So, if the Adobe plan is to say "Ok, you want to hook up to
    web services? -Get Flex!" - well then I'd appreciate knowing about
    it.
    Or, if the plan is to release hot, lovely, fresh components
    for CS3 to do this - I'd SURE like to know about that!
    Not knowing what to expect is stupid. Decisions on future
    projects need to be made. I Don't mean to scare you Adobe guys but
    ..."Silverlight"... ;-)
    So, if anyone has anything on this (CS3 data components/web
    services that is) I'd very much appreciate hearing about it.
    Thanks!

    JSON is undeniably useful. It's a great way to get data back
    and forth, but SOAP is a standard in almost all programming
    languages now and JSON isn't native in flash (not slagging it, it's
    just not native).
    <gettingonasoapbox>Webservices are one of the greatest
    tools available to web application programmers and one of the best
    innovations in web development in the past 5 years.
    </gettingonasoapbox>
    I've built a number of large scale flash applications based
    off of this ridiculously simple protocol and to make the switch to
    JSON (that's not supported natively) just to use AS3 is a fairly
    large endeavor especially since AS2 is not really "bad". Plus,
    webservices have been a constant in the past TWO versions of flash.
    It's hard to see that it would be an oversight to leave it out. It
    feels deliberate, especially without any explanation as to it's
    mysterious disappearence.
    The message this gives to us Flash developers is that Adobe
    will change it's product without warning, explanation, or even
    deprecating the class, and that you must adapt to a new product
    (Flex). However, who's to say that Flex will not be changed as
    well? AS3 has been around for a long time at this point, so I don't
    think it's a matter of time.
    The small component pack is understandable for the initial
    release with a later update, but it appears that there is not going
    to be a tree view component for AS3. In the newest version of Cold
    Fusion, they switched the tree component to an ajax control instead
    of a flash based one.
    http://www.forta.com/blog/index.cfm/2007/6/5/ColdFusion-Ajax-Tutorial-5-File-System-Browsi ng-With-The-Tree-Control
    I don't want to be a complainer or a luddite, but I just
    really realy really really really really want to use AS3 :) No
    webservice class is a total showstopper and will quickly turn flash
    into just an animation tool instead of an RIA development tool. You
    can't continue to build applications on a protocol that ceases to
    be supported.
    Then again, maybe I'm a minority in the developer group.
    Maybe if we Digg this thread and maybe Adobe will take
    notice.

Maybe you are looking for

  • How do I add my hotmail account to iphone on ios 7

    WWas trying to add my hotmail address to iphone running ios 7. when asked to choose what mail provider I would like to add ttheir is no longer a hotmail option,  please help. I See exchange but exchange account do not work when I register them with m

  • Visible fields in Acrobat or Live Cycle

    I have used both LiveCycle and Acrobat to make this PDF that my clients will be able to download and place their own company name in the text field I have provided. The problem is the text field shows up as a blue box. Now I have gone through every o

  • Packages, import and Inheriting with static

    Hello. I am programming a program, in which the main class (file: Main.java) uses objects declared in Components.java. The problem is, the import of the components only works if I explicitly make the main class inherit from the components class with

  • NoOfRec in PSA greater than NoOfRec in RSA3

    Hi, I was trying to extract data from Masterdatasources in MM. FOr this datasource,0DCINDIC_TEXT,I triggered a IP. Theres is a mismatch in noof Records between PSA and RSA3. In RSA3 I have 2 records.PSA I got 4 records. RSA3: Key     LA    Desc H    

  • The adobe reader installation stuck

    The adobe reader installation has been stuck at 96 since last night.  What do I do?  If I try to restart download it says installation in progress.  Help!