Use the UIScrollBar component

This question was posted in response to the following article: http://help.adobe.com/en_US/as3/components/WS5b3ccc516d4fbf351e63e3d118a9c65b32-7f9c.html

I am scrolling text in actionscript 3.0.  But when I put the text nto the actionscript panel I need line breaks between the paragraphs.  I get this message "1095: Syntax error: A string literal must be terminated before the line break."  How do I input text with line breaks without getting and errow message?
thanks

Similar Messages

  • Displaying Text as HTML in the UIscrollbar component

    Greetings.
    I have a window on my Flash stage that has some scrollable copy in it.  The problem is, I can't seem to have any formatting for the text ... if I select a word or two to make bold, it all turns bold.  I gather I need to use the "Display Text as HTML" checkbox and then paste in some HTML formatted text but this doesn't seem to work.  I searched this forum and found that others were designating "htmlText" in Actionscript instead of just "text" ... that didn't work either.  I probably just did it wrong, or maybe it's becuase I'm using the UI component "UIscrollBar" for it's scrolling of the text.
    Is there anything else I need to do to be able to format some text with strong tags and maybe some href links?
    I have my properties inspector with the following check marks:
    Display as HTML
    Multiline
    Dynamic Text
    selectable
    Thanks everyone.

    Shamelss bump

  • How to Scroll the UIScrollBar component to the top?

    I'm using the UIScrollBar with a dynamic text field. If
    content gets scroll by the user, and then the text fiel dis update
    with new text, the new text remains "pre-scrolled". So, obviously,
    I want to set the scroll position to 0 every time I update the
    content in that field. But how do you do this?
    Is this something I do to the text field or to the
    UIScrollBar component?
    What is the method?
    Could somebody please give me an example?
    Thanks in advance...

    Silly me, I think I walked past this one several times
    thinking I had tried it.
    // To scroll the UIScrollBar to the top
    info_txt.scrollV = 1;
    My problem was that I was using the parantheses to pass the
    value, like this:
    // This doesn't work
    info_txt.scrollV(1);

  • How to use the same component in different applications

    Hi All,
    I need to use the same component in different applications. i.e In opportunity, Quotation & Promotion.
    The Search help view in the component PRD01QR should be used in all these components but with different search criteria.
    With help of the DO_determine_configuration, different view configurations are possible but Different search criteria is not possible.
    for Eg. search parameter without DDLB, F4 options in another components.
    How can I control the behavior of the search view in different applications with restricting the field properties?
    Is it possible to find out where and in which component these search_help_search component is used?

    Hi Harry,
    Is it possible to find out where and in which component these search_help_search component is used?
    ans: I am giving an Example for your question go through that u might get clear about this.
    Ex: BT115IT_SLSO  sales order component
    below screen they component usage using for populate the product search component.
    please let me know any help required .
    Regards,
    vishwa.

  • Difference in using the same component made in mxml or action-script

    Hi,
    I made a sample project to show a kind of bug in the SuperTabNavigator component of FlexLib
    In this sample you can see that using the same component (made in both mxml or action-script) can make a difference
    I'm just wondering why ?
    Thanks
    Here is what i've posted :
    What steps will reproduce the problem?
    1. Create a button to dynamically add new tab with icon on a SuperTabNavigator
    2. Click on this button to add new tabs
    What is the expected output?
    - The expected output is tabs added without abnormal behavior
    What do you see instead?
    - Every time a new tab is created the one who had the focus has its content
    (icon + label) moving from the top-left of the tab to its original position
    Please provide any additional information below.
    Configuration:
    - Flex Builder 3 in Eclipse
    - FlexLib 2.3
    Sample:
    (see attached file)
    There is two type of tab, one in action-script and one in mxml
    They both are equal
    - Adding a new action-script tab to SuperTabNavigator works fine
    - Adding the same tab but an mxml one doesn't
    - Adding a new action-script or mxml tab to TabNavigator works fine
    -> meanings that the issue comes with SuperTabNavigator
    - Adding a new mxml tab to both SuperTabNavigator and TabNavigator at the
    same time makes TabNavigator to get the same bad behavior
    Remarks:
    - Tried everything but i'm really stuck
    - Weirdly, removing the PopUpButton correct the issue
    - In the same way if you keep adding action-script tab it automatically scroll to the
    last tab. And if you do the same with mxml tab then it add the tab at the end and
    scroll to the first one.
    => what could be the difference between using action-script or mxml object ?

    Here is one possible solution:
    You can use the ExternalInterface (
    http://livedocs.macromedia.com/flex/2/langref/flash/external/ExternalInterface.html)
    class to communicate with JavaScript. JavaScript can then popup the
    media player very easily like this:
    http://www.webreference.com/programming/javascript/jf/column5/index.html
    The documentation on the ExternalInterface class has a nice
    example (in the bottom of the page) on how to communicate with
    JavaScript in a browser. Hope this helps,
    -george

  • Dynamic Tabs using the PanelTabbed component

    I would like to use the PanelTabbed component which is bound to a managed bean to render tabs dynamically. The page will simply consist of a navigationTree on the left and the panelTabbed on the right. When the user clicks a node in the tree I would like to PPR the panelTabbed component to display the new tab. If you know of any examples or could point me in the right direction it would be greatly appreciated!
    Thanks,
    Matt

    Hello Matt,
    panelTabbed won't do for that, you're going to need navigationPane using "tabs" hint. The navigationPane should have a partialTriggers on the tree and its value should be a custom MenuModel instance that get populated from click made on the tree.
    It's not overwhelming, but I fear there's some complexity in achieving what you want.
    Regards,
    ~ Simon

  • Anyone know how to use the QuickTime Component Manager

    I have been reading that you can somehow enable the DV out in QuickTime to play video out via Firewire, but have had no luck. I guess by using the Quicktime Component Manager you can enable certain features and disable certain features. Does anyone have any idea on how to do this? Thanks everyone for the help.

    You can send a .dv file over Firewire (back to a camera for example) using iMovie.
    Maybe if your better explained your objective we could offer some suggestions.
    Many third party hardware devices can also be used to move .dv files to tape drives (like a VCR) or send the signal to broadcast devices.

  • How to use the calender component in a dashboard?

    Hi Experts:
    In my project i need to show the day wise tickets sold  data through calender.Can any one help me out in using this calender component?
    Thanks
    Regards
    sharathborra

    http://www.xcelsiusjournal.com/index.php?option=com_content&task=view&id=63&Itemid=2
    http://ryangoodman.net/blog/index.php/2007/04/09/calendar_date_formatting_in_xcelsius

  • Using the Composite/Component AV cable for slideshows

    iPad 32G WiFi
    Hi,
    I plan to use the Composite or Component AV cable for slideshows in the Photo app. There is a setting (TV Out) for Videos in Settings, I will set it to PAL when I run the slideshows in Asia later this week.
    Question: Once set, will this setting under Videos apply to the Photo app for slideshows as well, or this setting is only good for videos?
    Any suggestion will be greatly appreciated! /Kenny

    No problem
    enjoy your magic machine

  • Anyone have trouble using the av component?

    when i plug in the av component, only the audio and not video comes through...grr. any troubleshooting advice?

    My Thinkvision monitor has a hardware switch allowing you to choose DVI or VGA when using dual cables. What happens if you in integrated graphics mode using your monitor in VGA, switch the monitor to DVI first? According to that footnote the T400 should no longer recognize there is an external monitor attached so allow the switch to discrete mode. And if it no longer recognizes there is an external monitor wouldn't it automatically turn on its own LCD screen so you see what you are doing when going to the power manager for the graphic mode switch?
    Sorry I can't test as I am using the modded ATI driver at the moment (see the voluminous display driver "amdkmdap" crashes thread.)
    T500: Vista 32, 2.8GHz, 4GB RAM, 15.4" 1680x1050, 500GB 7200rpm, ATI Radeon HD3650 + Intel 4500MHD. T42: XP, 1.7GHz, 2GB RAM, 14.1" 1024x768, 250GB PATA, ATI Radeon 7500.

  • How to use the predefined component such as 'POWL_UI_COMP'

    hi,expert.
    i am new to webdynpro for  abap.  i want to use some sap predefined component such as 'SALV_WD_TABLE' and 'POWL_UI_COMP'.
    can someone give me a simple demo about the application of there component?
    thank you.

    HI,
    Well there are lots and lots of examples and tutorials for the type of material you are searching, may be you can search in the WebDynpro for ABAP forum. I am sure you will get lots of threads there which will help you.
    Well to begin with, to use the standard components you need to include them in your WebDynpro component . You can do that in the Used component tab of you component. After doing this you will be able to use the methods, views of that standard compnent.
    Regards,
    Runal

  • How to display the contents of servlet request using the swing component.

    I am trying using the servlet to receive the request of the J2ME client. When the request will be there, this should be automatically displayed by the swing User Interface. Again, that component should display the previous requests made alongwith this request.

    Shriprasad wrote:
    I am trying using the servlet to receive the request of the J2ME client. When the request will be there, this should be automatically displayed by the swing User Interface. Again, that component should display the previous requests made alongwith this request.This makes no sense. Either there's a lot you're leaving out (maybe you're receiving requests on a server, then storing data, and you want to expose the data later via a console of some kind implemented in Swing?), or you don't understand what you're talking about.

  • Using the progressbar component in AS 2

    hey all,
    i'm playing around with the progress bar component included
    in CS3 and am a bit stuck.
    the tutorials i've read that discuss using this component
    don't explain how to use it to target the nested movie clip it's
    contained in. one tutorial i found says to use _root as the source,
    but it drills up to the parent.
    how can i get around this?

    i don't know, are you sure it's not alt+f4?

  • Has anybody ever used the Accordion component?

    The way an Accordion component currently functions is, when a
    user clicks on a segment it slides to display the content.
    I would like it to slide and display the content when the
    user rolls over a segment, but I can't figure out how to detect the
    index of the segment that the user rolls over.
    Also I can't figure out how to align the labels right and
    change the text to white. My code is below, please help.
    import mx.containers.Accordion;
    //skinning the segments
    Accordion.prototype.falseUpSkin = "falseUpSkin";
    Accordion.prototype.falseDownSkin = "falseDownSkin";
    Accordion.prototype.falseOverSkin = "falseOverSkin";
    Accordion.prototype.falseDisabledSkin = "falseDisabledSkin";
    Accordion.prototype.trueDownSkin = "trueDownSkin";
    Accordion.prototype.trueUpSkin = "trueUpSkin";
    Accordion.prototype.trueOverSkin = "trueOverSkin";
    Accordion.prototype.trueDisabledSkin = "trueDisabledSkin";
    //creating the segments
    var s1 = mainAccordian.createSegment("content1", "s1",
    "label1");
    var s2 = mainAccordian.createSegment("content1", "s2",
    "label2");
    var s3 = mainAccordian.createSegment("content1", "s3",
    "label3");
    var s4 = mainAccordian.createSegment("content1", "s4",
    "label4");
    var s5 = mainAccordian.createSegment("content1", "s5",
    "label5");
    var s6 = mainAccordian.createSegment("content1", "s6",
    "label6");
    var s7 = mainAccordian.createSegment("content1", "s7",
    "label7");
    setAccordionStyle(mainAccordian);
    // can't detect when the user rolls over a segment or get the
    index
    // of that segment
    s1.onRollOver = function() {
    // this only seems to detect when the user rolls over the
    // content of the selectedIndex
    //aligning the text right and changing the font color to
    white doesn't work
    function setAccordionStyle(accordion) {
    accordion.setStyle("headerHeight", 31);
    accordion.setStyle("fontFamily", "Verdana");
    accordion.setStyle("textAlign", "right");
    _global.styles.AccordionHeader.setStyle("fontColor",
    "white");
    _global.styles.AccordionHeader.setStyle("fontSize", 12);
    }

    Hi syed..
    Please use FM MD_STOCK_REQUIREMENTS_LIST_API to get all information for transaction MD04/MD05.
    You might also want to check out the function module API.
    MD_MRP_LIST_API
    and also
    check this link for extracting data from MRP tables:
    http://www.sap-img.com/pp001.htm
    If it helps Reward with points..
    Regards Rk..

  • How can I save a video's position using the FLVPlayback component

    I've got a video I'd like people to be able to navigate away from in my project, but resume where it left off if they come back to it.  I would think I could do this by just saving its current position when they exit that frame as a variable and then using .seek() to go back to that spot if/when they return.
    The only problem is that I can't find any script to capture the current position.  I tried .time, but it gives me an error.

    This is what I ended up doing.  I put the FLVPlayback inside a movieclip and put this on the first frame:
    stop();
    var vidTime:Number=0;
    on the frame that the video plays on I have the video and a close button (which is a movieclip) and I put the following script:
    if(vidTime>0)
        htMeasVid.seek(vidTime);
    close_btn.addEventListener(Event.ENTER_FRAME, seekCount);
    close_btn.addEventListener(MouseEvent.MOUSE_UP, closeBtnUp);
    function seekCount(e:Event):void
         vidTime=htMeasVid.playheadTime;
    function closeBtnUp(e:MouseEvent):void
        e.currentTarget.parent.play();
    on the following frame I have this code:
    close_btn.removeEventListener(Event.ENTER_FRAME, seekCount);
    htMeasVid.stop();
    and then on the last frame I have this:
    gotoAndStop(2);
    so that it doesn't reset the vidTime variable to 0.
    Thanks again for the help.

Maybe you are looking for