FB 4.5 and UIScrollBar

Hi everybody,
I am working on a project: I have a FLA file set to publish for AIR 2.6 with all the assets inside. I've set up a Flash Professional Project in FB 4.5.
The problem is that I have a UIScrollBar in the FLA file. If I try to retrieve this object from a class file within FB, it is not recognized. I can still publish the file within flash without problems but the errors in FB are not nice and I miss the code hinting. I get errors like:
1046: Type was not found or was not a compile-time constant: UIScrollBar.
1172: Definition fl.controls:UIScrollBar could not be found.
Is this because FB is using the 4.5.1 Flex SDK and not the 2.6 AIR SDK? Is there a way to set this correctly?
Thank you!
F.

Hi,
I found this article:
http://help.adobe.com/en_US/flex/using/WS2db454920e96a9e51e63e3d11c0bf69084-7f2d.html#WS2d b454920e96a9e51e63e3d11c0bf69084-7f34
I follow adding new locales.
Still have the error:
unable to open 'C:\Program Files (x86)\Adobe\Adobe Flash Builder 4.6\sdks\4.6.0\frameworks\locale\en_US,es_ES'
I'm sure something simple is missing.
Any ideas?
It is a way to attach my test app zip file here?
Thanks

Similar Messages

  • Text area and UIScrollbar - CS3/AS2

    I have a problem with the UIScrollbar component not being
    visible when the movie is generated in CS3/AS2.
    Following the method shown in
    this
    TechNote, the scrollbar displays correctly when the text area
    is the only frame in a movie.
    In the real movie I'm working on, however, the text area is
    in a library item. In that item's definition, I've dragged the
    scrollbar onto the area and the component's targetinstancename
    parameter shows the correct name of the text area. But while the
    text area displays when I preview the movie, the scrollbar is
    invisible. Making it more puzzling, if I guess where it is, I can
    drag it.
    Any thoughts?
    John

    I tried this but the text looks warped and much different than it should. Seems anyway I embed it in the properties panel looks this way.. any other options??

  • Using Flash Components in multiple SWCs inside AS-only project

    Ok, this is a somewhat complicated issue dealing with SWCs and compilers. I've outlined steps to reproduce the problem below. I'm using the method outlined here to bring in Flash content to my project. I have 15-20 SWCs already, and it's working fine for those assets, the problem is specifically related to Flash's components (ComboBox, RadioButton etc.) If anyone has *any* advice on this, please let me know as we are completely stumped at this point!
    The issue we're having involves using multiple external SWC files which contain AS3 components from Flash CS4. When two SWCs are linked to an ActionScript project (using Flash Builder 4 Beta (build 4.0.0)) there are collisions in the referenced classes which cause the most recently published SWC to knock out any duplicate classes in the other SWCs. A simple way to replicate this is as follows:
    1. Create one FLA, called 'compA', drag one ComboBox, RadioButton and TextInput component onto the stage. Select all and convert to symbol, marking the symbol for export with a class name of Test1.
    2. Create a second FLA, called 'compB', drag one ComboBox, Label and UIScrollbar onto the stage. Convert these to a symbol with a classname of 'Test2'.
    3. Create a new ActionScript-only project in Flash Builder, called 'ComponentTest'.
    4. Create a 'libs' folder in this new project. Select 'Project -> Properties -> ActionScript Build Path' and add the libs folder as a new SWC folder in the Library Path window.
    5. Go back to compA.fla and right click the Test1 symbol in the library. Select 'Export SWC file...' and save it as compA.swc in the libs folder.
    6. Do the same thing for compB.fla.
    7. Edit ComponentTest.as and in the constructor, create an instance of Test1 and Test2, placing each on the stage.
    8. Run the app, and the ComboBox will only be functional in one instance (whichever was published last.) The other ComboBox will behave like a MovieClip, cycling over the two frames in the stage asset (avatar and skin.) It will have no association to anything in the fl.* package.
    Looking at the 'Referenced Libraries' in Flash Builder, compA may show it contains classes for the RadioButton and TextInput, but no ComboBox classes are referenced (sometimes it will show no classes at all, but this appears to be an unrelated bug with refreshing external libraries in Flash Builder.)
    Unzipping the SWC files and examining their catalog.xml manifests shows all the necessary classes are listed (i.e. ComboBox is in both.)
    Removing either SWC will cause the remaining one to work properly, so the problem appears to be in compiling the ComponentTest project which includes both.
    Attempted Workarounds:
    1. Create a new FLA, drag all components used in both files onto the stage and export a SWC called 'components.swc'. Add this SWC to the project's libs folder. In both compA and compB FLA files, add this SWC as an external library in the ActionScript 3.0 Publish settings. Re-export both SWCs. The theory is that the compiler will look for the required classes in the components.swc first, and thus not include them in the export, however this is not the case.
    2. Same as above, deleting ComponentShim from both FLAs before exporting. The result is that no component classes are included, so all components act like MovieClips.
    3. Add the Components source folder to the external library path of both FLAs, assuming the compiler will favor classpath references over compiled class references (ComponentShim). Same result.
    Summary: We have been unable to find a way to use Flash Components in a project if they are referenced in more than one asset library. If we were able to import them once, and have all SWCs which need those classes use a single source, this might not be an issue, but the compiler does not appear to handle this (and we are admittedly not advanced enough to even know if this is possible.)

    Hi!
    I'm having the same problem. Any news on the matter?
    Also, this looks like a very similar problem.
    Best regards,
    X_AmonPL.

  • How can you add images and text to UIScrollBar Component

    I can only add the text, can't add images. Also how can you make paragraphs out of long text in a UIScrollBar?
    Thanks.

    Hi,
    UIScrollBar Component can be attached to a dynamic text filed and the text field can be set to Render Text as HTML option which in turn can display both text & images(using <img> tags).
    Refer http://www.flashvalley.com/fv_tutorials/loading_HTML_in_a_dynamic_text_field/page2.php that may help you getting what do you want
    Thanks!

  • (updated)UIScrollBar and my own class. Can they works together?

    Hi Eone,
    i'm implementing a uiscrollbar in a class of mine that extends textfield. Unluckly it gives to me  a lot of 1120 error, undefined property, in each row i use a property of this component (except the constructor).
    I read somewhere that As2 not allow to use uisbar in other type of class that extends movieclip or textfiled or you know what...
    It's the same in As3?
    EDIT:
    I found a solution. Some method an properties of UISB can be used in the cvlass (like, contructor, update, target). Some otherelse not. So the other can be used only when i do an instance of my own class, like properties of the instance. Ex:
    textfield.UISB.x = 100;
    textfield: instance of my class
    UISB: scrollbar declared within my class
    x= properties defined only instancing my class

    You need to read the basics about Swing events.
    For starters, you do not implement listeners in your Applet class. Instead, you add new listeners to specific components that you want to listen on. For example, if you need to perform certain actions when a JComboBox's selection changes, you would do something like:
    my_combo.addActionListener(  new ActionListener() {
        public void actionPerformed(ActionEvent e) {
            System.out.println("selection changed to: " + my_combo.getSelectedItem());
    });And for buttons:
    my_button.addActionListener( new ActionListener() {
        public void actionPerformed(ActionEvent e) {
            System.out.println("You clicked " + ((JButton) e.getSource()).getText() " button);
    }MoustListener and other listeners can be similarily added. See JDK Documentation or Tutorials

  • 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

  • UIScrollBar works fine on my pc but not on server

    I created a textfield on stage, set it as dynamic, put a UIScrollBar next to it , with component inspector I set scrollTargetName to the instance name of the textfield then I wrote these actions:
    var externalReq:URLRequest = new URLRequest("loremIpsum.txt");
    var externalLoad:URLLoader = new URLLoader();
    externalLoad.load(externalReq);
    externalLoad.addEventListener(Event.COMPLETE, textReady);
    function textReady(event:Event):void {
        theText.text = event.target.data;
    Ot works on my pc just fine.  When I upload the swf and the text file to my godaddy linux hosting account the scroller doesn't work.
    example on server: http://www.jimslounge.com/scrollTest.swf 
    the text you see displayed is only about a quarter of the file, I should be able to scroll through it.

    I phoned godaddy and found out they've disabled UIScrollBar on their shared hosting accounts.

  • AS3 UIscrollBar problem

    Hi, I have a movie that I have used the UIscrollBar in within
    various nested movieclips. The text is contained in a series of
    vars which is then called into the dynamic text box. Everything
    works fine when I test the swf in flash, and also works in IE6, IE7
    and FF3, but not in Safari 2...?
    The UIScrollbar is called in 1 of 2 ways in the swf. Either
    through a function assigned to an MC that works as a button or
    through an onEnterFrame event listener and function, and its the
    onenterframe that does not work in safari. I'm completely mystified
    by this as I can't get my head round how a swf behaves differently
    in different browsers? Its not a complex swf and only references
    the Caurina tweener as external files - the rest of the AS sits
    inside the movie...
    Anyone had this? Does it makes sense?
    Thanks

    Hi,
    Yes. Well spotted. I had the instance name of buttText_mc,
    missing the _mc part on a few frames with motion tweens applied, on
    the button animation. I do not remember renaming it differently ;)
    - must blame tools ;)
    Kind Regards,
    Boxing Boom

  • UIScrollBar Not showing up

    I hope someone can help me with this,
    I am using external XML in 3 dynamic text boxes all 3 have a
    UIScrollBar attached, when I play the movie In the IDE the
    scrollbars all show up as they should but if I put the swf file in
    a HTML page the Arrow Up, Arrow down and the thumb do not show up
    so I have no scrolling. Any Ideas why this would be happening
    ?

    "Ipod not showing up on Itunes."
    Try these.
    iPod appears in Windows Explorer but does not appear in iTunes.
    iPod does not appear in iTunes.
    Fast user switching in Windows XP is not supported.
    Strange iPod behavior.
    When restoring the iPod, put it into disk mode first.
    Putting iPod into disk mode.

  • How can I set down the UIScrollBar of my TextArea?

    Hello world...
    I have a little problem:
    I have a TextArea for a Chat. When I write a lot, the UIScrollBar remains on the top of my TextArea...
    I'd like my UIScrollBar is located at the bottom of TextArea...
    Can someone help me?
    Thanks.
    Emiliano.

    Try using the following code after each time you write to the TextArea.  I am assuming you are using a TextArea component and are trying to control the position of where it is scrolled to when it refreshes with the chat data.
    "ta" is the instance name of the TextArea
    ta.verticalScrollPosition = ta.maxVerticalScrollPosition;

  • 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);

  • [PROBLEM] TextField() and addChild(scrollbar)

    Hi,
    i've HTMLText class that extends TextField. When i try to use addChild to an instance of this class like:
    htmlTxt.addChild(mySb);
    it says to me
    Error #1061: Call to a possibly undefined method addEvent through a reference with static type
    Why?
    I need it to visualize a vertical scrollbar. there is a why to add it?

    If it's a UIScrollBar component then you can assign the textfield to the scrollTarget property.
    mySB.scrollTarget = htmlTxt;
    The Flash helps docs explain all the properties and methods available for the UIScrollBar.

  • Multiple instance of UIscrollbar problem

    Hi,
    In a project I have 10 textfields that I turn visible or insivible according to need. Some of those textfields must scroll. I used the UIscrollbar and it worked fine until I added another textfield that used it. At first, I thought it was the variable names and changed them all but it still didn't work.
    The only way I can make this work right now is by putting all my text movieclips (containing the textfieldand, scrollbar, etc) directly on stage instead of all in one container MC for all my text movieclips. That's really impractical.
    Is there any reason the UIscrollbar refuses to work in more than one instance if the MC they are in is inside the same MC?
    To explain better here's a bit of my code:
    private function createTxt():void
                   var mcEncadre:MovieClip;
                   mcEncadre = new MovieClip();
                   mcEncadre.name="txt3";
                   //mcEncadre.alpha=0;
                   zoneTxt_mc.addChild(mcEncadre);              
                   creerEncadre(mcEncadre,1,668,181,0x676767,0,0);
                   txt = creerTxtfield(mcEncadre,txtExpl_arr[2],txtExpl_fmt,627,150,25,20);
                   txt.wordWrap=true;
                   var vScrollBar:UIScrollBar = new UIScrollBar();
                   vScrollBar.direction = ScrollBarDirection.VERTICAL;
                   vScrollBar.move(txt.x + txt.width, txt.y-19);
                   vScrollBar.height = txt.height+29;
                   vScrollBar.scrollTarget = txt;
                   mcEncadre.addChild(vScrollBar);
                   mcEncadre = new MovieClip();
                   mcEncadre.name="txt10";
                   //mcEncadre.alpha=0;
                   zoneTxt_mc.addChild(mcEncadre);              
                   creerEncadre(mcEncadre,1,668,181,0x676767,0,0);
                   txt = creerTxtfield(mcEncadre,txtExpl_arr[9],txtExpl_fmt,627,150,25,20);
                   txt.wordWrap=true;
                   var vScrollBar2:UIScrollBar = new UIScrollBar();
                   vScrollBar2.direction = ScrollBarDirection.VERTICAL;
                   vScrollBar2.move(txt.x + txt.width, txt.y-19);
                   vScrollBar2.height = txt.height+29;
                   vScrollBar2.scrollTarget = txt;
                   mcEncadre.addChild(vScrollBar2);
                   vScrollBar.update();
                   vScrollBar2.update();
    I tried .update() and it changes nothing. With this code only the first scrollbar works but if I add the second mcEncadre directly to the stage instead of to my text container (zoneTxt_mc) then they both work. Urgh!
    Anyone encountered this before?

    A spelling or punctuation mistake, or sometimes a trailing space usually causes this after the artists and/or song/album name, which fools the iPod into thinking that there are two different artists, albums or songs. The trailing space is the hardest to spot.
    Best way to cure this is to go into iTunes, highlight that artist and/or songs/albums, right click on them and select "get info".
    This brings up the multiple song info window. If you see the "artist" field is left blank, then there is a discrepancy with that name.
    So to correct this, retype the name, as you would like it, and then click ok. You should do this even if no mistakes are immediately visible.
    Re sync this new artist/song/album info to your iPod.
    If the above is not the issue, try this also. Highlight all the songs for that artist, right click on them and select "apply sort field/same artist".
    See if that works.

  • Update for UIscrollBar

    I have a scene with 3 buttons that each type a text in a textbox when I click. The third text that appears require a scrollbar which I have. My problem is that I´ve finally find out that I need an Update to make it work. I searched, and did it like this:
    knapp3.addEventListener(MouseEvent.CLICK, showStringIn);
    function showStringIn(Event:MouseEvent):void {
    var myString:String = textbox.htmlText;
    textbox.multiline = true;
    textbox.htmlText = "VINTER ,<i> VÅR </i> SOMMAR,<i>HÖST</i> ,VINTER,VÅR,SOMMAR,HÖSTVINTER,VÅR,SOMMAR,HÖST,VINTER,VÅR,SOMMAR,HÖSTVINTER,VÅR,SOMMAR,HÖS T,VINTER,VÅR,SOMMAR,HÖST"
      scroll.update();
    Where scroll is the name on my UIscrollbar. The scrollfunction now works but I get an error:
    TypeError: Error #1009: Det går inte att få åtkomst till en egenskap eller metod för objektreferensen null.
        at uppgift4_fla::MainTimeline/__setProp_scroll_Del3_textbox_0()
        at uppgift4_fla::MainTimeline/frame1()
    When I put this scene toghether with other scenes that I made.
    I´m new on ActionScript 3, but I wan´t to learn!
    Can anyone give me a hint?

    If the problem only exists when you are using multiple scenes, then there is a problem with something in one or more of those scenes. My first guess is that there is/are duplicate instance names, or function names in more than one scene.
    Scenes are an archaic design method that is left over from the earliest versions of Flash. It is best to not use them.

  • Pls. help on AS2 to AS3 convertion for #initclip and Object.registerClass

    Hi Friends,
    I have converted most of the as2 code to as3 but I am stuck with the below kind of codes where the code looks like #initclip and some number next to it and inside it Object.registerClass("some reference", some reference); and ending with #endinitclip
    Below is an example of what I am talking about.
    #initclip 45
    Object.registerClass("Border", mx.skins.Border);
    #endinitclip
    Thanks in advance.
    With Regards,
    Sagar S. Ranpise

    SOLVED:
    Hey Friends,
    I was able to solve the issue. Since no one was able to give me answer, I think most of you might not be knowing the solution.
    Hence posting it below. All I have done is Added Event listener to instance name of movieclip and in the function I have imported the class the object.registerclass was refering and below import I created a new scrollbar instance and added that to my movieclip which solved the issue.
    Let me know what you think?
    boundingBox_mc.addEventListener(Event.ADDED_TO_STAGE, scrollbarFunction);
    function scrollbarFunction(e:Event):void
         // Import the class.
          import mx.controls.UIScrollBar;
          // Create the scrollbar
          var scroller:UIScrollBar = new UIScrollBar();
           boundingBox_mc.addChild(scroller);
    //Object.registerClass("UIScrollBar", mx.controls.UIScrollBar);

Maybe you are looking for

  • WordWrsp not Working in JDK1.5?

    Hello All I am using JDK 1.5_03 I have a editor kind of stuff for which I have used setLineWrap(true);for JTextAreaHowever this is not working. This is working in 1.4.2_X versions. Has any one encountered this problem?

  • Windows storage server 2012 share not connecting by share name but connecting thru IP address from windows XP machines

    We have a windows storage server 2012 (HP storage server) in our domain. All of sudden We had a issue, connecting the server shares using the share name only from XP machines, but it is connecting through IP address with a delayed response. We are ge

  • Trouble with Tracker

    After several successful tests at distributing using Acrobat.com a form created in Acrobat Pro 9, I decided to distribute the real thing to several users. In the tests, distribution and response files were automatically created and placed in TRACKER.

  • Oracle rdf protege plugin and owl

    Does the oracle rdf plugin for protege support writing owl files into oracle rdf storage backend? I tried saving a new protege owl project, and get stack dumps (see below). Thanks In saveKnowledgeBase 1 java.sql.SQLException: Io exception: The Networ

  • URL for Deployed WAR not accesible 10.1.2

    Hi, I Installled App10G (OID Infrastructure) from OCS. I created new OC4J instance with OEM and deployed new war file to it succesfully. Evrything seems to be configured correctly web.xml.... But url is not accessible.Please Help. JO