Flex 3 RichTextEditor - move controlbar to top

I want to move the controlbar of the RichTextEditor above the TextArea instead of the default of being below the TextArea.
I've been playing around with it as follows but I have a feeling I should not do this in the updateDisplayList method.
Should I do it in the initialize method?
<?xml version="1.0" encoding="utf-8"?>
<mx:RichTextEditor xmlns:mx="http://www.adobe.com/2006/mxml">
  <mx:Script>
    <![CDATA[
      import mx.controls.TextArea;
      import mx.core.UIComponent;
      override protected function updateDisplayList(unscaledWidth:Number, unscaledHeight:Number):void{
        var txt:TextArea = TextArea(super.removeChild(textArea));
        var cb:DisplayObject = DisplayObject(super.removeChild(this.controlBar as DisplayObject));
        super.addChild(cb);
        super.addChild(new TextArea());
        super.updateDisplayList(unscaledWidth, unscaledHeight);
    ]]>
  </mx:Script>
</mx:RichTextEditor>

This doesn't work either:
<?xml version="1.0" encoding="utf-8"?>
<mx:RichTextEditor xmlns:mx="http://www.adobe.com/2006/mxml"
  creationComplete="setupUI();">
  <mx:Script>
    <![CDATA[
      import mx.controls.TextArea;
      import mx.core.UIComponent;
      private function setupUI():void{
        var taIndex:uint;
        var cbIndex:uint;
        for(var a:uint=0;a<this.rawChildren.numChildren;a++){
          trace(this.rawChildren.getChildAt(a));
          if(a==2){
            var disObj:DisplayObject = this.rawChildren.removeChildAt(a);
            this.rawChildren.addChildAt(disObj, 1);
        trace("**************************");
        for(var b:uint=0;b<this.rawChildren.numChildren;b++){
          trace(this.rawChildren.getChildAt(b));
    ]]>
  </mx:Script>
</mx:RichTextEditor>

Similar Messages

  • When I click on a link it moves to the top of the page

    I am new to this forum and fairly new to dreamweaver so I hope this isn't a silly question. I am designing a large number of web pages which will only be viewed on the C:\ drive and not posted on a server.
    I have inserted hyperlinks on the index page linking to other pages in the same folder. I am using a css sheet to define each of the links.
    Now to the problem. When I preview the index page in internet explorer and I click on a link the link works but the actual link itself moves to the top left corner of the index page.
    An example of the html code is:
    <a href="channel.html" title="Channel" id="Channel"
         Channel
         </a>
    The relevant css code is:
    #Channel:link {
         position: absolute
         left:372px;
         top::235px;
         width:100px;
         margin-bottom:0px;
         color:#FFFFFF
         font-weight:normal;
         font-size:12px;
         font-family:Arial, Helvetica, sans-serif;
    #Channel:hover {
         color:0000ee;
         font-weight:normal
         text-decoration:none;
    #Channel:visited {
         color:#551a8b;
         font-weight:normal;
    #Channel:active {
         color:0000ee;
         font-weight:normal;
         text-decoration:none;
    If anyone could explain what I am doing wrong I would be most grateful.

    Your whole presentational approach on that page is flawed.
    <body>
    <div id="BlueBorder"> </div>
    <div id="Div1"><img src="http://www.pjpdecorations.co.uk/images/WhiteBackground.png" width="864" height="647" /></div>
    <div id="Div2"><img src="http://www.pjpdecorations.co.uk/images/NavBar.png" width="828" height="72" /></div>
    <div id="Div8"><img src="http://www.pjpdecorations.co.uk/images/MainTextBox.png" width="430" height="340" /></div>
    <div id="Div4"><img src="http://www.pjpdecorations.co.uk/images/Indeximage1.png" width="150" height="150" /></div>
    <div id="Div5"><img src="http://www.pjpdecorations.co.uk/images/IndexImage2.png" width="150" height="150" /></div>
    <div id="Div6"><img src="http://www.pjpdecorations.co.uk/images/IndexImage3.png" width="150" height="150" /></div>
    <div id="Div10"><img src="http://www.pjpdecorations.co.uk/images/IndexImage4.png" width="340" height="70" /></div>
    <div id="Div11"><img src="http://www.pjpdecorations.co.uk/images/IndexImage5.png" width="230" height="70" /></div>
    <div id="Div9"><img src="http://www.pjpdecorations.co.uk/images/CreatePresBut.png" width="145" height="40" /></div>
    <a href="#" title="Home" id="HomeLink"> Home </a> <a href="#matthew_clark_intro.html" title="Matthew Clark" id="MatthewClark"> Matthew Clark </a> <a href="#" title="Channel" id="Channel"> Channel </a> <a href="#" id="Product"> Product </a> <a href="#" id="AddedValue"> Added Value </a> <a href="#" id="Templates"> Templates </a> <a href="#" id="Reference"> Reference </a>
    You have the body tag, followed by oodles of absolutely positioned elements, followed by naked links with a spurious </p> tag at the end.  Not only are you not allowed to have naked links on the page (they must be contained in something like a <p>, or a <td>, or a <li>, etc.) but since the content above the links is entirely composed of absolutely positioned elements (which are removed from the normal flow), the links are exactly where they should be - at the top of the page.  There is nothing in your layout that would place them anywhere else.

  • Boot drive no longer moves to the top?

    I just noticed that when I switch no another start up disk (CCC clone on external FW drive), that the active system HD icon no longer displays itself on the top right side on the desktop. It just stays were it was.
    Why would it no longer move to the top? I got confused the other day and almost tossed a bunch of important files that I thought were on the active system drive...
    Hope it's just a 10.5.6 bug that will get fixed in the next update.
    Anyone else notice this?
    Dan-

    It's a bug that occurs if you update a bootable volume via Software Update or a backup/cloning app. It's been filed. Boot into each bootable volume, move the boot volume icon to the top, and it should stay there during subsequent reboots.

  • Move layer on TOP or BOTTOM shortcut doesn't work

    Im working on Macbook Pro 15" with Adobe CC Photoshop. Bracket keys work well when i want to change the brush size, but when I try to move layer on TOP or BOTTOM of the layers list with shift+cmd+[ or ] shortcut - nothing happens. Anyone got the same problem?

    If you look under Layer>Arrange is the shortcut listed?
    What version of mac os x are you using?

  • Click link moves browser to top of page

    on IE7, when i click on a link (recordset paging next, last,
    previous) for an image view, is there a way to keep the browser in
    the same verticle position on the page, so the next image is in the
    same postion as the previous? Now, it moves to the top of the page
    after each click, so you have to scroll down to the image.
    http://www.golfmarcuspointe.com/homepage/aerial_photos.php?panel=3

    What is it with pages that play goofy sound effects when they
    load?
    Everyone in every cubicle in the building would be standing
    and looking
    around right now.... <sigh>
    And it does it *EVERY* time the page reloads with a new
    image! 8(
    The page is reloading on those links -
    <a
    href="/homepage/aerial_photos.php?pageNum_rs_aerial=3&totalRows_rs_aerial=13&panel=3">Pre vious</a>
    That being the case, I don't think there's any way to keep it
    from going
    back to the top. Perhaps you could use AJAX to refresh the
    content rather
    than going back to the server for it....
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    ==================
    "JBWebWorks" <[email protected]> wrote in
    message
    news:gbebsd$o2p$[email protected]..
    > on IE7, when i click on a link (recordset paging next,
    last, previous) for
    > an
    > image view, is there a way to keep the browser in the
    same verticle
    > position on
    > the page, so the next image is in the same postion as
    the previous? Now,
    > it
    > moves to the top of the page after each click, so you
    have to scroll down
    > to
    > the image.
    >
    >
    http://www.golfmarcuspointe.com/homepage/aerial_photos.php?panel=3
    >
    >

  • Move rectangle to top (startpage to navigation bar)

    Hello.
    I am a new user of Adobe Muse and have not found any answers yet, probably due to a lack of me knowing the correct terms for what I want to do.
    I want to create a website with a start site looking like this:
    Upon clicking on one of the links (link1, link2, link3) I want to switch to one of those sites, but for a more modern experience, want to have the white rectangle move to the top of the site and if possible rearrange the sitename to the left top and maybe let it scale a bit down and have the link1 to link3 move to the top right and scale to 50%.
    Is such thing possible, even without scaling, within muse or a code I can paste into it?
    Many thanks in advance for any pointers, even if only how such thing is called and for me to go hunt some more.

    In this case where you want to link up 3 different sites with text or image with a primary site , you would need to hyperlink site with text on page.
    Talking about the plan, it would be :
    - Create a rectangle with text or image for 3 different sites and hyperlink them with respective urls.
    - Once user clicks on the text or image , he would land to another site.
    - For other site , you can create a header section which would be on top of the page with site name and other site links.
    If you are referring to scroll function, such as on click to link white bar would scroll , you can create this but it wont be a different site but on the same page.
    With compositions you can use the label area for adding links or anchor points on page , but again this wont change site url in browser as it would be same page not a different site.
    Thanks,
    Sanjit

  • Flex View Advertised Movie is not Available

    I do not understand why the 2012 version of the movie Sparkle is advertised as available as a flex view Movie, advertised as "Now Showing", advertised as one of the top 5 rentals... but is not available to actually rent.  Logging on to MyVerizon gives me the option to BUY the 2012 movie and to RENT the 1976 version...
    Verizon support gave me a flat "It's not available"... No further explanation, no insight as to when it will be available, no "have a nice day".
    Little furstrating. Just wanted to understand if this was temporary....  Back to the Red Box.

    This should be available both for purchase and for rent - can you take another look?
    Here it is: https://www22.verizon.com/OnDemand/MovieDetails/Sparkle.aspx?contentId=TVNX0016491701333300&PName=

  • Form Option Value - Move scroll bar to selected or move data to top

    I have a multiselect <cfselect> form element that has 20 or so entries and five are visible.  The entries are dates such as April 2010, April 2009, etc.  I am using something like this to get the date to select the current month and year in my list.
    <option value ="#assignMonth#-#assignYear#" <cfif assignMonth EQ myMonth and assignYear eq myYear >selected</cfif>>#monthName# #assignYear#</option>
    The problem is the way the list is populated is April 2010 for example requires scrolling.  I either want to be able to move the scrollbar to display the selected month or I want to move the selected month to the top of the list. 
    I can't just reorder the data because future months are in there and it will look very strange.
    Thank you.

    You aren't speaking to the Apple Software development team here.
    To do so, you would need to go http://developer.apple.com/ get a free account.
    And submit a bug report at http://bugreporter.apple.com/

  • Scrollbar "bubble" moves back to top of bar

    Hi..
    I have an applet which has it's content switched between a number of panels using add() and remove(). One particular panel contains some other panels with a scrollpane, which in turn contains a larger panel. If I scroll to the bottom of the scrollpane and choose an option to go to a different section of my applet (add()/remove() executed) when I come back to the scrollpane, the content area is still scrolled down to where I was before, but the scroll bar has moved all the way to the top. If I do anything with the scrollbar, it moves down to where it should be.
    Thanks,
    Dean

    Hi,
    Instead of calling add() and remove(), please try setVisible(true) or setVisible(false) for your panels.
    Berk Can Celebisoy

  • Can't move picture to top of cell

    When I insert a picture into a table cell, it is somehow restricted rather than free to be moved within the cell from edge to edge. In the Wrap tab, the two radio buttons for "Object placement" are grayed. If I put a check for "Object causes wrap" it moves the picture down, leaving empty space at the top of the cell. Without "Object wrap", it locks onto the left edge of the cell, still with that "extra padding" (sorry to borrow a Microsoft and HTML table term) at the top of the cell, and stays attached to the left edge. In an older document (only an hour older and created in the same version of Pages), I had used the same picture and went through the same weirdness. In that case, I finally overcame this nastiness but I can't remember how (yes, I know I should have made a note but that is water under the bridge now). I can open both documents to compare the old document with the new one. I find no difference in the two documents' settings in any of the tabs of the Inspector [Inspector is God, Inspector is God, Inspector is God...]. I do notice that there is a tiny + sign at the lower right corner of the picture in the new document and not in the old document. It's nothing to do with "Extra space" or "Alpha" as these are exactly the same for each document's picture. If I copy the picture by selecting it in the old document (where the picture behaves politely and has no +) and paste it into the new document cell, the picture acquires that goofy + sign and refuses to allow positioning at the top of the cell.
    In Pages Help, if I type "+" and search, nothing is found (my usual result with Pages Help-- one must already know what the + means or one can't search for it).
    About this I have two questions:
    1) How can I apply qualities to a picture to allow me to position it anywhere I want in a cell, the way I can easily do in my old document?
    2) How can I make this the default behavior? In other words, I want to work faster and not have to make individual settings for each and every picture I insert. Obviously, our work process should never have a "leash" unless we decide to apply a leash. That last statement is from the "Let Me Decide" committee.

    A symbol like the + one is not indexed in the Help so it's normal that you can't find it.
    The only way to search for such an object in the delivered resources is to search in the PDF User Guide delivered with every legal copy of iWork.
    The behavior of pictures inserted in a cell is perfectly defined in the Help and in the PDF User Guide.
    In the English version of the PDF it's page 148…149.
    In the Help, search for the clumsy keyword "Image"
    2) How can I make this the default behavior? In other words, I want to work faster and not have to make individual settings for each and every picture I insert. Obviously, our work process should never have a "leash" unless we decide to apply a leash. That last statement is from the "Let Me Decide" committee.
    If the program doesn't behave as you want, you are perfectly free to apply the committee statement and decide to drop it
    Yvan KOENIG (from FRANCE samedi 27 décembre 2008 13:42:19)
    PS If you drag & drop a picture directly in a cell, it will not behave as a cell's background but as an inline object in the cell's contents.
    You may reduce its size but you can't enlarge it more than the cell's size.
    From the Text Inspector, you may set the 'Inset Margin' to fit your needs.

  • Can't move window whose top bar is off screen

    I have a window whose top bar is off the screen. The window is a preferences window. Because part of the window is off the screen, I can't properly set the preferences. The program is Quicksilver, but this is a general problem in Mac OSX and I would like a solution for the general problem.
    The window got offscreen when I detached an external monitor from my laptop. The window moved from the external screen to my computer's screen, but it moved above the screen. I can see the window in expose, and the bottom of the window normally.
    Because the top of the window is above the screen, I am not able to move it. There is no option to maximize the window in the menu bar's "window" setting -- only minimize and close. If I close the window and reopen it, it reopens in the same place.
    The general solution on the internet is to use an applescript to move the first window of the first process, but possibly because this window is a preferences window, the applescript does not work.
    Is there a way, any way, in mac os x to move any window that is not to drag the top bar? I'm getting really frustrated at this stuck window.

    One thing that works sometimes is to change the resolution on your monitor. That might put the window where you can reposition it, then you can put the resolution back where you like it.
    charlie

  • Flex wait for move complete

    Hi,
    I am currently programming a 7344 motion control board in Visual C++.
    Right now I am using the function flex_wait_for_move_complete function but it causes an exception error when passing the pointer, moveComplete, into the function ( it is the last argument).
    According to the prototype, u16* waitComplete is a returned pointer the function returns. 1 if move is complete, 0 if move is not. Maybe I am referencing it and using it the wrong way.
    In my function
    void moveSingleAxis(..)
    u16* moveComplete = (u16*)1;
    //some code
    status = flex_wait_for_move_complete(boardid, NIMC_AXIS1, NIMC_AXIS_CTRL, 10000, 20, waitComplete);
    //status is used for error checking, but irrelevant to my problem
    If I make the pointer to 0  or NULL, flex will error and say pass in null pointer . If I make the pointer to any other number it causes null reference exception error. Any help? thanks!
    -Mike

    oops syntax error! I put waitComplete, but it's supposed to be moveComplete as the last argument for flex_wait_for_move_complete. Just want to let you guys know that. Thanks!

  • Since iTunes8, I can't keep movie window on top?

    I've looked several times, it's CHECKED.
    Confirmed (same, and just as before) what Im trying to launch from iTunes is categorized as a movie.
    It'll only float on top in iTunes now, as opposed to before could float anywhere?
    Restarted, rebooted, etc etc, same same.
    HALP

    ok, so oddly enough. right after my post itunes seemed to fix itself. the window is now on top of everything, there was no update or anything, it just fixed itself. i'm guessing it's just a "0.0" bug and i assume that they'll fix it in the next update....
    on the same note: when itunes goes to the next video on the playlist, it resizes to the original file size and centers the video window in the middle of the screen and i have to move it to it's corner and resize it which brings me to another glitch/feature.
    when i resize the window, itunes no longer stops me from resizing outside the screen! i'll grab a corner and drag it to the edge of my screen and continue on outside the screen! it doesnt stop at the edge anymore so now it takes alot more effort to resize the window!!! anyone else experiencing this? its really odd that i can pull a corner beyond my screen realestate....

  • Move clip to top level

    I've got a movieclip containing another movieclip which acts as a button. The movieclip has a drag function added to it.
    function onBoxPress( event:MouseEvent ):void
                        var boundsRect:Rectangle = new Rectangle(event.currentTarget.x,0,0,stage.height);
                        event.currentTarget.startDrag(false, boundsRect);
              function onBoxRelease( event:MouseEvent ):void
                        event.currentTarget.stopDrag();
                        sortBoxes();
    On the stage I've got several copies of this clip. It works ok: when I click and drag, the clip drags vertically. However, each clip has its own depth and sometimes a clip will drag beneath another clip. So upon clicking and dragging the clip should be moved to the top level of all duplicate clips.
    How do I move it to the front of all other clips?
    I've tried using:
    function onBoxPress( event:MouseEvent ):void
                        setChildIndex(event.currentTarget.parent,0)
                        var boundsRect:Rectangle = new Rectangle(event.currentTarget.x,0,0,stage.height);
                        event.currentTarget.startDrag(false, boundsRect);
    I use event.currentTarget.parent here because the clip to have it's index set is the parent clip. Remember, the button which starts it all is inside that parent clip.
    But then I get an error 2025:
    Error #2025: The supplied DisplayObject must be a child of the caller

    The parent is not the child of the child. Call setChildIndex on an object that is the parent of the parent.
    The whole reason you're having this problem is because you're violating good Object Oriented Design by having the child manage too much. The grandparent should be listening for the MouseDown and then managing the drag. You could have a single event handller that checks for the MouseDown and checks the Class of the target (set mouseChildren to false on the button, so the target won't be its label, for example.

  • I have no blinking curser where I type in. When I do start to type the entire area to type in moves to the top of the page. It works but not the way it is supposed. Help

    ''dupe 0f https://support.mozilla.org/en-US/questions/910811''
    There is no blinking curser in the rectangle where you type in what you want to search for. If you begin to type, the entire rectangle will move from the center of the page to the top. You can continue to type what you want to, and it will work. How do I get the curser back and stop the rectangle from moving to the top of the page.
    Thank you

    Given you were having issues that prompted you to try to re-install the OS, I'm wondering if the HD has actually died.
    Have you tried re-installing using the Recovery HD (restart holding down Command+r) or via Internet Recovery (Command+Alt+r - whilst connected to the internet)?
    OS X: About OS X Recovery - Apple Support

Maybe you are looking for

  • ITunes 10.5 will not access store

    The last 2 upgrades behaved this way requiring a sequential uninstall and a reinstall.  But repeated tries to fix it that way have failed.  Running w7 64 bit and 64 bit iTunes.

  • Even and odd counts..

    Whats the easiest way to determine if a button has been pushed and even or an odd number of times? Here is why I'm asking... If it has been pushed an even number of times than i want it to display one method, if odd I want it to display another metho

  • Bex report question

    Hi All experts,    I need to create a report, the siruation is, top row, i need to display half year period, by monthly. this is the varible, let user put in.    i.e. 1.2011(half fiscal year period), and display july 2010, aug 2010, oct 2010, nov/201

  • Problem with web.xml: getWebXmlParameter

    Hi, I've a problem with my web.xml. I need to work with tokens, for the different servers. For this, I normally use "getWebXmlParameter("...")", but now this doesn't work... My web.xml looks like this: <web-app>    <servlet>       <servlet-name>Faces

  • Display driver problem - Premiere Elements will not start

    Premiere Elements 10 will not run on my computer unless I downgrade to an old display driver. I would do this but it causes other problems. I am using the most recent driver from NVidia (but a pretty old display card).  I get this message: "We have d