Should I build my own component, or is there a solution to my built-in ScrollPane woes?

"I am desperate. I am going insane. Please, please help me."
That is how my last post ended. And no one replied, which I
suppose means that there is no solution to the problem I have with
the ScrollPane component in flash 8.
I just want to put both of the scroll arrows of the
ScrollPane's scroll bar together on the same end of the scroll
track, instead of at opposite ends of the track.
I have customized everything else about the ScrollPane with
HaloThemes and setStyle, etc, but cannot seem to re-position the
arrows.
So, I am wondering if I should just make my own scroll pane.
I have been cautioned against using too much actionscript in flash,
though, so I am wary. Anyone know of a reliable method for making a
scroll pane for images with scroll arrows that can be positioned
together?
Or should I stick it out with the built-in ScrollPane?

No, what you ask is not possible with the standard
components.
I don't understand why you would be cautioned against using
"too much actionscript" in Flash....
Everything I do is built entirely with AS these days. I even
draw out all of my elements at runtime, and this makes my
interfaces faster, both in loading and in processing. So there is
nothing wrong with using a ton of AS in Flash. However, if you do
not know AS very well, these things are fairly difficult to do.
If you do know AS fairly well, then go ahead and make your
own Scroll Pane. Best-case scenario, you make a component that fits
your needs, and is much smaller (file-size) than the ScrollPane.
The built-in components tend to be a bit bloated. Worst-case
scenario: Over too much time, you make something that is bigger
than the ScrollPane component, and pretty much does the job you
want, but is a bit buggy, and you have quite a few headaches on the
way.
Personally, I do not understand why Adobe hasn't given us the
ability to rearrange the arrows on the UIScrollBar, or even simply
turn the track off completely. These seem like simple things that
should be easy for Adobe to add. I really need to compile a list of
things to submit through the wish list page.
So, you can stick with the ScrollPane, have it easy and done,
but with a sub-ideal scrollbar. Or you can work at building your
own ScrollPane component. If you build your own, you may spend a
bit of time in development, but you will be able to get your
scroller to display the way you want.

Similar Messages

  • Using the pen tool, how best should I build or construct this image?

    Hello,
    I'm trying to recreate a certain image with the pen tool.
    I have already tried using Live Trace using the "Simple Trace" setting. Live Trace did a pretty good job but not with enough accuracy or fidelity to the original image as I would like.
    I am pretty rusty with Illustrator now, but I remember from past lessons that the basic idea is that artwork in Illustrator is divided into layers, objects, and elements within objects. But one of the biggest principles with Ilustrator is the order these layers, objects, and elements are stacked. Elements are stacked to create an object. Objects are often stacked, each object on its own layer, to create the entire piece of artwork.
    Also, the lower an element, object, or layer is in a stacking order, the further towards the back it appears in the image.
    Also, the higher an element, object, or layer is in a stacking order, the closer to the front it appears in the image.
    So, in Illustrator, you don't so much draw or paint a piece of artwork, but, instead, creating artwork in Illustrator is more a matter of building it or constructing it.
    So, with all that said, below I have an object I would like to create with the pen tool. It is a fleuron. It is at least fairly complex.I am not sure how to build it or construct its parts. What would come first, second, third? What would be on the bottom layer, middle layer, top layer, etc.? 
    I know there is no one way to reproduce this object with the pen tool. Whatever way you would use or would like to share is fine. I guess, more specifically, I'm not afraid of rigor and working hard, but I'm also not necessarily looking for rigor. Instead, what I am looking to do is work smartly and efficiently. I'm looking for what might commonly be considered "best practice." 
    So, how would you advise I approach the object below? How should I build or construct it?
    Thanks!  : )

    As for the simple graphic itself, this is what I would end up with:
    One Group containing:
    One red-filled, unstroked Compound Path consisting of three subpaths.
    One white-filled, unstroked Compound Path consisting of 18 subpaths.
    The reason I would compound the red paths and the white paths is simply so I could apply to them different fills with one move, should I want to.
    The reason the two Compund Paths would be grouped is simply so the whole graphic can, when finished, be moved, rotated, scaled, flipped, skewed (i.e.; transformed) as if it were a single object. (Which it would be; a Group is a logical object, just as a "set" is a logical object.)
    As for how I would actaully draw the graphic:
    First I would roughly evaluate it to get an idea of what I want to end up with in terms of clean, tidy, paths (as already describe above.)
    Second, I mentally devise a "plan of attack" by which to achieve that; just studying the shapes a little more deeply for anything that can be exploited to minimize the work:
    Are there any repetitive elements of the shape that can be accomplished by duplication, moving, scaling?
    Is there any symmetry that can be accomplished by duplication and flopping?
    Is there any simple geometry that can be accomplished with basic shape prmitives (whole or partial ellipses, rectangles, polygons)?
    Third, I always try to also consider whether the process of drawing the current graphic and/or portions of it might be of future use to me, and if so, can I exploit other software features to save me time and effort later. For example, consider a single one of the ess-shaped "coils" of the middle tapered "spiral" grouped together with its white highlight. Such a graphic, colored in black and white and stored as an ArtBrush with its Colorization set to Hues & Tints would let me stretch and scale that basic shape along other-shaped paths. Similarly stored as a PatternBrush, it might do multi-duty for many things suggestive of coils, like rope or jewelry chains.
    Then I just start drawing the necessary paths, using my default Graphic Style (.25 black stroke, no fill). As I proceed, I store (as Brushes, Symbols, etc.) any intermediate things that I think I might find useful later. For the graphic at hand, I then optimize the paths I've drawn by combining them (cutting, joining, path operations) into the fewest, cleanest, and simplest paths necessary to define the shapes. I then store the finished graphic as a Symbol, Brush, etc. if I think it might be of use later.
    Regarding Layers, Groups, etc., etc:
    It sounds like you (like many beginning AI users) are way over-thinking the matter of stacking order. Yes, it's good to use some sensible amount of organization as your illustrations and designs become more elaborate, but you don't have to fret so much over it. The principles are very very simply.
    Layer really don't even enter into my mind when creating such a graphic, because the paths of which it consists are all going to be grouped, and all the contents of a Group have to exist on the same Layer anyway. Multiple Layers would only come into play when this whole graphic is used as one element in the overall page layout. For example, suppose several instances of this object will exist on a page layout to serve as dividers between ads or stories arranged in columns in a page layout. I may choose--if it makes organizational sense to me--to put all the copies of this object on a Layer dedicated to them. The Layer on which they reside may or may not include other graphics; it's just a question of what makes organizational sense and editing convenience to me while I'm working the file. For example, having the copies of this graphic on a separate Layer would allow me to lock that Layer to avoid accidently selecting the graphics when I'm editing text objects that I've organized on another Layer.
    Don't think of Layers as some oppressive "right or wrong" thing that you have to decide upon at the start of every little thing you draw. It's nothing but an organizational convenience that is driven almost entirely by common sense. The mechanics of it are really very very simple in principle.
    Look: Everything you create or import in an Illustrator document is an object. Just like sheets of paper in a tablet, each of those objects (each path, text object, raster image) is going to reside somewhere in the z-order (think front to back) of the document's object stack. You can't do anything to prevent that. It's the way the program works. The file is basically just a list of things that the output device has to draw. Being a list, it has a first object, a second object, and so on. Objects higher in that list are nearer the "front"; objects lower are nearer the "back." Normally, objects in front obscure objects behind them, wherever they "overlap."
    Now, considering that what you have is just a list of objects, as that list grows and grows, doesn't it eventually just make sense to be able to "bracket" or "label" contiguous portions (contiguous is key here) of that list for organizational and manipulative purposes? That's all Groups and Layers are; brackets around sections of the list.
    Consider that an Illustrator file (like most computer files you create) is really just a text file. So suppose you have written a technical manual in a word processing program. Would you write that manual as one big, honkin' text string, or would you "bunch together" contiguous portions of the story under some labeling scheme of subheads? After that, wouldn't you similarly "bunch together" contiguous subhead sections as chapters?
    So you can think of Groups as "subheads," and Layers as "chapters" in your Illustrator document's list of objects.
    Sure; if you're working on a page layout document, sometimes it makes sense to go ahead and set up some of this structure at the start (just as when writing a book, it makes sense to start with an outline). So you might go ahead and define a Layer for printer marks, another for the diecut, another for text, another for images, another for background fills.
    The very next designer might decide to structure the very same project a little differently. He might, for example, decide there's no reason not to keep the text objects on the same layer with the raster images. There's no hard & fast right & wrong her. You do what makes sense for the project at hand.
    Now in this context, back to your simple graphic: I don't need a PrinterMarks Layer, a DieCut Layer, or a TextObjects Layer to draw this graphic. I just need the default Layer 1. For convenience, I may want to add a TraceThisStuff Layer onto which I put the original raster image, just so I can conveniently isolate it (lock it, dim it, etc.) while drawing the paths on Layer 1. On the other hand, I can really just as easily leave the raster image that I want to trace on Layer 1 and reduce its opacity and lock/unlock it at the object level. It's up to me.
    But for that matter, revisit my "third level" of evaluation described above. In reality, I would very likely not even start drawing this graphic in the document for which it is intended. I would just as likely open an existing JET_Dingbats.ai or a JET_Ornaments.ai or CustomerName_StyleGraphics.ai file or template, draw the graphic there and when done, just copy it and paste it into the current document file. That's how you, over time, build yourself a reasonably organized "personal library" of re-usable resources that save you countless hours of repetitive work in the future.
    JET

  • How can I build a composite component?

    I heard that Java Swing can support composite component, meaning combining several component's
    functionalities onto one component. Does anyone know
    what class and methods I should choose to build such
    a component? Thanks for helping!

    Hi,
    I use JPanels to construct composite components.
    Create a subclass of JPanel, for example as follows:
    public class NameField extends JPanel {
        private JTextField tf;
        public NameField() {
            setLayout(new BorderLayout());
            add(new JLabel("Name:"), BorderLayout.WEST);
            add(tf = new JTextField(10), BorderLayout.EAST);
        public String getName() {
            return tf.getText();
    }Now use can use this NameField component wherever you like. You could make much more complicated components, of course.
    Henri

  • New to Apple - Need help.  Here is the breakdown. I just got my wife a iPhone 4s and I'm trying to decide how to set it up. Should she get her own Apple ID or use mine? This for some reason is very confusing to me.

    Here is the breakdown.  I just bought my wife a new iPhone 4s and I'm trying to decide how to set it up for her.  Should she have her own Apple ID or use mine?  If she uses my Apple ID, will that cause issues with iMessage - say when I'm chatting with someone else and vice a versa. Will our messages show up on each others devices?  How will a FaceTime call work?  Will the video call come across both our devices (ipad also)?
    Just some information that might be of note:
    I have the new iPhone 4s, iPad2 and one iTunes account - the iTunes account is my Apple ID which I use also for the iCloud (I think...it's getting murky
    What am I trying to achieve is having the ability for me (iphone, ipad) and my wife (iphone) to be able to share and sync just music, apps, movies, etc...  I have Google Calender and I have not made up my mind yet if we will share a contacts list (I have large business list).  Also this might be of note, I most likely will be using iTunes on my LG LCD TV (appleTV) at some point in the near future.
    So, basically I'm confused, which is not unusual for me.  If I'm thinking to much inside the box, please let me know and feel free to offer up any suggestions.  Even if the suggestion is I'm not asking the right questions.  Of course if that is your suggestion, then please tell me the question.  And an answer would be nice to. 
    Thanks.
    Bentley

    No it's not stealing. They have an allowance that you can share with so many computers/devices. You'll have to authorize her computer to play/use anything bought on your acct. You can do this under the Store menu at top when iTunes is open on her computer.
    As far as getting it all on her computer....I think but I am not sure (because I don't use the feature) but I think if you turn on Home Sharing in iTunes it may copy the music to her computer. I don't know maybe it just streams it. If nothing else you can sign into your acct on her computer and download it all to her computer from the cloud. Not sure exactly how to go about that, I haven't had to do that yet. I wonder if once you authorize her computer and then set it up for automatic downloads (under Edit>Preferences>Store) if everything would download. Sorry I'm not much help on that.

  • How to build my own SOAP envelope

    Hi
    after a lot of work I have now realised that my SOAP to SOAP scenario can't use SAP XI std SOAP ENVELOPE on the receiver part.
    How to I build my own SOAP ENV in my RECEIVER payload? iMaybe in the mapping or in the WSDL/XSD?
    Any guides or experienses are welcome
    hope someone can help
    cheers

    Hi Bowie,
    Here is one possible approach...
    1) Set "Do Not Use SOAP Envelope" in your Receiver SOAP Adapter.
    2) Add this xsl as a second step in your interface mapping.
    <?xml version="1.0" encoding="UTF-8"?>
    <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
      <xsl:template match="/">
        <env:Envelope xmlns:env="http://www.w3.org/2003/05/soap-envelope">
          <env:Body>
            <xsl:copy>
              <xsl:apply-templates select="@*|node()"/>
            </xsl:copy>
          </env:Body>
        </env:Envelope>
      </xsl:template>
      <xsl:template match="@*|node()">
        <xsl:copy>
          <xsl:apply-templates select="@*|node()"/>
        </xsl:copy>
      </xsl:template>
    </xsl:stylesheet>
    You can then modify the soap envelope nodes above to create what you need.
    -Russ

  • Flash builder 4 html component

    Hi,
    I have a html loader ( <mx:HTML... ) on my air app developed with flash builder 4 and I have a problem.The links that have the target="_blank" attribute can't be opened (when I ckicl a such link nothing happens). I want them to be opened in a new browser window (or in a new air window).
    Links that not have the target="_blank" attribute works well and are opened in the same html loader component.
    Is there any way to make the links with  target="_blank" attribute works ?

    Try using StageWebView: http://www.adobe.com/devnet/air/quick_start_as/quickstarts/qs_using_stage_web_view.html

  • Builder my own RTSP client

    Hi, guys
    I want to build my own RTSP client,
    I know that JMF2.0 can support RTSP URL, but i want to find a source code which implements RTSP client treatment without using JMF's Manager.createPlayer . Because i need some changes in RTSP treatment
    I have found the source code to implement the RTSP server in Java using simple socket.

    Douglas, any progress?

  • How to build your own install img?

    How do I build my own arch install image...iirc there are tools but I don't know how to use them.
    Also is it possible to use the usb .img installer off of one's harddrive?  I know I can use dd to put it on a partition, but was wondering if it would be able to boot and install properly.

    This is from an email by Dieter to the arch-releng list:
    git clone http://projects.archlinux.org/git/archiso.git
    cd archiso/archiso
    sudo make install #to be packaged later
    cd ../configs/install-iso
    # change version in Makefile
    # if on x86_64, remove intel-536ep and intel-537 from packages.list
    ./buildall.sh
    scp release/* ...somewhere...

  • How I build my own libraries of classes/methods in java ?

    How I build my own libraries of classes/methods in java ? how then I refer a functionX() (i mean method) in LibraryX ? can you give a short/brief example of a library with a class with a method and a main method of normal class calling this method (of external's added library's) ?

    Just another cross poster.
    [http://www.java-forums.org/new-java/12389-how-i-build-my-own-libraries-classes-methods-java.html]
    db
    edit And [http://forums.java.net/jive/thread.jspa?messageID=305387]
    Edited by: Darryl.Burke

  • How to build my own policy?

    i need build my own policy to interact with database.
    just tell me where can i get a better reference of this.
    thanks a lot

    http://www-106.ibm.com/developerworks/library/j-jaas/?n-j-442
    This example from IBM is very good however it does more than you may need. Concentrate on the XMLPolicy.java code and corresponding .xml files.
    hope this helps!

  • How to build my own LEXER

    Hi :
    I want to build a Text Query Application which bases on Oracle interMedia Text. Besides some default languages the interMedia supports (English, French ...), I need index on my own language document. When I refered to the Oracle Text Reference, I saw that I can use the BASIC_LEXER for English and all other supported whitespace delimited languages. My language is Vietnamese which has whitespace delimiter. The question is that can I build my own language dictionary-lexer (similar to some default dictionaries : English, France, German, Chinese ...) to index my document and how can I do that ? In the documents I refered (Oracle Text Application Developer's Guide and Oracle Text Reference) I could'n find direction for doing this.
    Thanks.

    Hi,
    In 9.2 there is a new feature: USER_LEXER. The USER_LEXER lets you write and plug in your own lexer to handle
    languages or other indexing techniques that Oracle Text does not support. We will be publishing the 9.2 Text technical
    overview in a few days that shows you how to do it.

  • Check for used DCs failed:Cannot build because used component is broken

    Hi All,
    when i Build the DC after creation public part getting the below error,
    Jun 30, 2008 4:06:41 PM /userOut/Development Component (com.sap.ide.eclipse.component.provider.listener.DevConfListener) [Thread[ModalContext,5,main]] ERROR: eprtest: Build failed for chdp.com/eprtest(MyComponents) in variant "default": Cannot build because used component is broken: chdp.com/labourmanagement( MyComponents)
    please help me.
    Thanks,
    RameshBabu.V

    Hi rameshbabu,
                             Check for the dc chdp.com/labourmanagement , which u r using as dependency for ur dc . That dc is not built properly. Rectify the problem in chdp.com/labourmanagement & then rebuild ur dc, which is using that dc as used dc.It will work properly.
    regards
    Sumit

  • SQL Server Data Warehouse Creation External or Build Your own

    Hi, 
    In our firm we have a data warehouse which has been created by an external supplier.
    The warehouse is being used for some reporting and dashboards but only for a single client, we have yet to fully utilize it.
    My question is should we build a new data warehouse or should we push forward with the data warehouse created by the external supplier. I know it would take some time to build a data warehouse however it means we will have full control over it and could
    overcome any issues we have with it in house.
    It would really help if someone could offer some advice.
    Thanks

    Hi Nasa1999,
    I am trying to involve someone more familiar with this topic for a further look at this issue. Sometime delay might be expected from the job transferring. Your patience is greatly appreciated.
    Thank you for your understanding and support.
    Regards,
    Katherine Xiong
    Katherine Xiong
    TechNet Community Support

  • Can I use a PCI-1424 with a non-standard camera and build my own camera file?

    I want to test a certain CCD which in non-standard and I want to setup the direct interface with it. My idea is to use a 1424 board and build the camera file.

    Technically, you can build your own cable and ICD (configuration) file for your camera. It can be very difficult, though. If the CCD is fairly standard, NI might be willing to create a basic ICD file for you which you can modify to do what you want. The best way to figure out what can be done in an ICD file is to look at ICD files for other cameras.
    Bruce
    Bruce Ammons
    Ammons Engineering

  • Create my own Component ???

    When I try to create my own component, I have alway the problem that the components do not resize with setBounds() or something similar. My Component is always shown at the position 4/23 (which depends on the Microsoft Windows Frame-Border-Size with title) and the size of my component is always the full size of the owner-frame.
    import java.awt.*;
    import java.awt.event.*;
    public class MyComponent extends Component implements MouseListener
        public MyComponent()
            setBounds(30, 30, 64, 64);      //this line was ignored
            setBackground(Color.white);
        public void paint(Graphics g)
            g.setColor(Color.black);
            g.drawRect(0, 0, 64, 64);
    // Mouselistener interface implementation
        public void mouseClicked(MouseEvent e) {}
        public void mouseEntered(MouseEvent e) {}
        public void mouseExited(MouseEvent e) {}
        public void mousePressed(MouseEvent e) {}
        public void mouseReleased(MouseEvent e) {}
    import java.awt.*;
    import java.awt.event.*;
    class Test extends Frame
        public Test()
            addWindowListener(new WindowAdapter()
                    public void windowClosing(WindowEvent e)
                        dispose();
                        System.exit(0);
            MyComponent m = new MyComponent();
            m.setBounds(60, 60, 128, 128);       //this line was ignored, too
            add(m);
        public static void main(String args[])
            Test mainFrame = new Test();
            mainFrame.setSize(400, 400);
            mainFrame.setTitle("Test");
            mainFrame.setVisible(true);

    Well, I believe the setBounds method is used when using Absolute Positioning. See the Swing tutorial on "Using Layout Managers":
    http://java.sun.com/docs/books/tutorial/uiswing/layout/index.html
    I don't use Frames but I know the default LayoutManager for a JFrame is the BorderLayout. By default any component added to a BorderLayout is placed in the CENTER of the layout and will resize to fill the available size of its container. Again, this information is contained in the above link.

Maybe you are looking for