How do i attach a scrollbar to a container?

Hi i use
docc.verticalScrollPolicy=ScrollPolicy.AUTO;
so scrolling works but i want to attach a scrollbar. Here is my bulky code. I have no idea how to get a scrollbar attached to this. I now my scripting is pure chaos...
package {
    import flash.display.Sprite;
    import flash.events.Event;
    import flash.net.URLLoader;
    import flash.net.URLRequest;
    import flash.text.TextField;
    import flash.text.TextFieldAutoSize;
    import flash.xml.*;
    import flash.events.IOErrorEvent;
    import flash.geom.Rectangle;
    import flashx.textLayout.compose.StandardFlowComposer;
    import flashx.textLayout.container.DisplayObjectContainerController;
    import flashx.textLayout.container.IContainerController;
    import flashx.textLayout.elements.TextFlow;
    import flashx.textLayout.factory.TextLineFactory;
    import flashx.textLayout.conversion.*;
    import flashx.textLayout.conversion.TextFilter;
    import flashx.textLayout.conversion.ConversionType;
    import flash.text.engine.TextLine;
    import flash.events.MouseEvent;
    import flashx.textLayout.events.FlowElementMouseEvent;
    import flash.text.engine.TextLine;
    import flashx.textLayout.container.ScrollPolicy;
    import flashx.textLayout.formats.IContainerFormat;
    import flashx.textLayout.formats.ContainerFormat;
    import flashx.textLayout.container.*;
    public class text_container extends Sprite {
        XML.ignoreProcessingInstructions=false;
        XML.ignoreWhitespace=false;
        XML.prettyPrinting=false;
        private var xmlTextField:TextField=new TextField  ;
        private var externalXML:XML;
        private var loader:URLLoader;
        public var history_time:String="";
        public var URL_Adresse:String="";
        public var XML_Identifier:String="";
        public var size_container:Object="";
        public var container_me:Object="";
        public function einstellungen(XML_Identifier_lok:String,Size:Object,History:String) {
            history_time=History;
            size_container=Size;
            XML_Identifier=XML_Identifier_lok;
            var request_1:URLRequest=new URLRequest("assets/"+XML_Identifier_lok+".XML");
            loader=new URLLoader  ;
            try {
                loader.load(request_1);
            } catch (error:SecurityError) {
                trace("A SecurityError has occurred.");
            loader.addEventListener(IOErrorEvent.IO_ERROR,errorHandler);
            loader.addEventListener(Event.COMPLETE,loaderCompleteHandler);
        private function loaderCompleteHandler(event:Event):void {
            try {
                XML.ignoreProcessingInstructions=false;
                XML.ignoreWhitespace=false;
                XML.prettyPrinting=false;
                externalXML=new XML(loader.data);
                readNodes(externalXML);
            } catch (e:TypeError) {
                trace("Could not parse the XML file.");
       private function readNodes(node:XML):void {
            XML.ignoreProcessingInstructions=false;
            XML.ignoreWhitespace=false;
            XML.prettyPrinting=false;
            var markup:String=node;
            var flow:TextFlow=TextFilter.importToFlow(markup,TextFilter.TEXT_LAYOUT_FORMAT);
            var Xref=parent;
            var sprite:Sprite=this;
            this.x=size_container.x;
            this.y=size_container.y;
            sprite.x=size_container.x;
            sprite.y=size_container.y
            var docc=new DisplayObjectContainerController(this,size_container.width,size_container.height);
            docc.verticalScrollPolicy=ScrollPolicy.AUTO;
            flow.flowComposer.addController(docc);
            flow.addEventListener(MouseEvent.CLICK,linkHandler);
            flow.flowComposer.updateAllContainers();
            var textHeight:int = Math.ceil(docc.calculateHeight());
            trace (textHeight)
        private function errorHandler(e:IOErrorEvent):void {
            XML_Identifier="Had problem loading the XML File.";
        private function trace_ID_XML(event:Event) {
            this.XML_Identifier;
        private function linkHandler(ev:FlowElementMouseEvent) {
            var temp_id=this.parent;
            var send_befehl:String="";
            //temp_id.Meldung_ID.text=ev.type.toString();
            var Link_temp=ev.flowElement;
            //var Link_temp_2 = Link_temp.linkCharacterFormat
            new_fenster(Link_temp.href.toString());
        function new_fenster(befehl:String):void {
            var temp_id=this.parent;
            var send_befehl:String="";
            var myPattern:RegExp=/#/;
            send_befehl=befehl;
            send_befehl=send_befehl.replace(myPattern,"");
            temp_id.Meldung_ID.text=send_befehl;
            if (send_befehl!=befehl) {
                var xref=parent;
                this.visible=false;
                xref.aa=new text_container  ;
                xref.aa.einstellungen(send_befehl,xref.fenster_1,history_time);
                xref.addChild(xref.aa);
                xref.removeChild(this);
                this.visible=true;

Julian
Thanks, but I had figured this out.  Let us suppose you are replying to an email from the boss who, copying 50 Polish, Indian, Arab and Thai coworkers on their personal emails-- and with whom you have never previously communicated--has asked you to share with the group your latest drafts for the upcoming weekend top secret strategy session and now you want to attach something other than a photo, such as a slide presentation in ersatz PowerPoint, a draft marketing plan in fake word and the budget in pseudo excel? You are fly fishing in the pesos without access to a computer, only your trusty IPad which fortunately has the drafts you need and a wireless connection.  Because this new initiative must fly under the company radar screen due to its sensitivity, you cannot use the corporate VPN and the attach docs are too chunky to be in anything but a series of three emails as you have no compression software.
What is most efficient way to execute?  If it's to drive the two hours in the storm back to Santa Fe and use the local Kinko's, I am disappointed.
K

Similar Messages

  • How do you change the scrollbar size in the listbox control

    I have what appears to be abug with the vertical scrollbar on the listbox control.  I am trying to make the verticle scrollbar wider (so it is easier to press with your finger on a touch panel).  I open the control in "customize control," change the scrollbar, and apply changes.  The scrollbar is wider and it works in my original VI.  Now I close LabVIEW and open it again.  The scrollbar is back to it's original width.  I have also tried saving it as a strict type def and the same thing happens.  How do I get the scrollbar to stop shrinking back to it's original width everytime I reopen the VI.  I need it to stay the same width for an executable as well.
    Thanks,
       Javi

    I have the same problem.  Has anyone found a work around?  Must be a bug.  See attached screen shots for before, and after restart.
    Attachments:
    Lg ListBox screenshot.gif ‏66 KB
    Lg ListBox screenshot - after restart.gif ‏65 KB

  • How do I address the scrollbar's updateDisplayList properties if I do not instatiate the scrollBar component?

    Is there an easier route?
    My issue is that I am not attaching the scrollbar via
    <mx:HScrollBar or mx:VScrollBar, rather it is being
    automatically attached to a container. Therefore my only means of
    addressing this particular scrollbar seems to be from within the
    condainer's script, and the container's properties do not make
    provision for it's child scrollBar's height/width.
    Is it a matter of re-writing the default scroll component?
    For example, I've skinned a scrollBar using the examples at
    Narciso Jaramillo's
    http://www.adobe.com/devnet/flex/articles/flex_skins.html
    (using Flash) but this article does not explain how to
    override the default scaling.
    Next I've applied the skins to the Adobe example,
    http://examples.adobe.com/flex2/inproduct/sdk/photoviewer/srcview/index.html
    within the ThumbnailView.mxml file there is a Vbox containing
    a HorizonalList container with the id of photoList , that when
    loaded, adds a HorizontalScrollBar, like this..
    <mx:HorizontalList id="photoList"
    dataProvider="{gallery.photos}"
    width="98%" height="135" selectedIndex="0"
    itemRenderer="Thumbnail"
    styleName="thumbnailList" />
    I understand that the scope of this matter may be small in
    comparison to other issues but as a designer these otherwise simple
    tasks are terribly frustrating and time consuming.
    I would appreciate any insight.
    Thank You,
    Key.

    First this forum is intended for questions about Flex
    Builder. Flex language questions should be posted in the Flex
    General Discussion forum.
    That is why you are not getting any response.
    There is a yahoo group called flexcomponents that is devoted
    to issues around customizing/extending/creating components. The
    folks that hang out there are top notch, give it a look.
    http://tech.groups.yahoo.com/group/flexcomponents/
    Tracy

  • In mail, how do I attach pictures or documents as icons that open full size

    in mail, how do I attach pictures or documents as icons that will open full size?

    Try Option + click the picture and choose Show as Icon

  • TS3899 Hi. How do I attach more than one document to an email on the iPad, especially if they come from different apps? When writing an email on the iPad there's no option for attachments.

    Hi. How do I attach more than one document to an email originating from my iPad, especially if the documents come from different apps? When starting an email there's no option for attachments, unless you send the document from inside an app like iBook and then you can only send one at a time.

    How to add, send and open iPad email attachments
    http://www.iskysoft.com/apple-ipad/ipad-email-attachments.html
     Cheers, Tom

  • How do I attach more than one photo to an email?

    How can I attach more than one photo to an email?

    Yes. With the mail you want to attch the photos to open, tap and hold in the body of the email. One of the Menu ittems will be Insert Photo or Video. Tap that, Select the photo, Tap Use. Repeat for each photo.

  • How do I attach a form to my Wix website....I tried and everything works EXCEPT payment options.

    How do I attach a form to my Wix website.  I was able to attach a form (through link a document) but the payment options do not work.  Payment options work when I use the preview on the Adobe site.

    Hi,
    Please see this link on how to embed a form into a webpage:
    http://forums.adobe.com/docs/DOC-1991
    Please see this link on how to setup the form for payment collection:
    http://forums.adobe.com/docs/DOC-1632
    Hope this helps, if you still have questions, please write back.
    Thanks,
    Lucia

  • How can I attach j-pegs and other documents to an email unopened and stop each them taking up a whole page of my email ?

    How can I attach j-pegs and other documents to an email unopened and stop each them taking up a whole page of my email ?

    In addition to the last poster's suggestion  -  just so you know, it also depends on the email program the recipient uses as to how they will see any attachments - for instance, when I am using my Yahoo Mail, I am absolutely unable to view any attachment within the browser window - Yahoo forces me to download it; there is no way for me to check it (like a preview) to see if I want to download it or not.
    And, FWIW: the window shown in the screenshot does not show on my version of Mail 5.1 (which is the latest for 10.7.2); the only one similar shows when viewing a message received with an attachment, not while sending one. So that must be a different version.

  • How can I attach a PDF file to an email I am replying to?

    Hi!
    How can I attach a PDF file already saved on my iPad to an existing email I am replying to from my inbox??

    If you have the PDF stored on the iPhone as a separate file you obviously also have a third party app for reading it, so you should be able to e-mail it from there.
    If it's on an existing e-mail, forward the e-mail and just change the contents but include the pdf

  • How can I attach a photo to an email,using Photoshop Elements9,without going through the Revel cloud

    How can I attach a photo to an email using Photoshop Elements 9, without going through the Adobe Revel cloud?

    Adobe user wrote:
    I'm using Windows 7.  I have no email clients.
    You don't need an Email client nor Adobe Revel account to send email and photos as attachment.  All you need is an email account (could be free web-based account such as Gmail, Outlook, Yahoo, AOL or whatever including from your own ISP.  And of course an Internet Connection.
    Now the most obvious requirement is out of the way so you need to go in to your Organizer and click on Share button and choose Photomail. Select the photo you want to send and follow the instructions that are on your screen.
    You also need to request an Adobe Verification Code to enable you to use Adobe's Mail Servers to send the photos for you.  To do this go to:
    Edit >> Preferences>> Sharing
    Look for something like this and fill out the red boxes where indicated (click on this image to see it clearly).
    Hope this gets you started.

  • How can I attach my form to an email?

    How can I attach my form to an email?

    Go to the distribute tab - you can either email a link to a web form or create a PDF form to send.
    Randy

  • How can I attach a PDF in an email, using javascript in PDF document?

    How can I attach a PDF in an email, using an interactive button in the PDF-document?
    I tried to create a form button with the menu action 'attach this PDF in an email'.
    This Send.to-action doesn't work with Microsoft.
    Does anyone has a solution by implementing a javascript-code for this in the PDF?

    Dick,
    Thanks for your replie.
    Nice alternative, but it still doesn't work on a Windows machine when the
    mail software from Microsoft doesn't react on PDF actions.
    You can do many things in Acrobat, but it is a problem when it doesn't work
    on Windows and iPad.
    So now I am looking for alternatives like  interactive magazine software
    (based on html5).
    2012/5/11 dick the flash <[email protected]>
       Re: How can I attach a PDF in an email, using javascript in PDF
    document?
    created by dick the flash <http://forums.adobe.com/people/dicktheflash>in
    JavaScript - View the full discussion<http://forums.adobe.com/message/4395927#4395927

  • How can I attach a picture to an email in file format not as a picture

    how can I attach a picture to an email in file format,

    Please pardon the intrusion…
    Hi, Leroy! 
    Congratulations on advancing to Level 6!
    At the Water Cooler in the Level 6+ Lounge, we are throwing virtual confetti in celebration of your attainment of Level 6-dom. Would you care to join us at the Water Cooler?
    Towards the bottom of the index on the Apple Support Communities Home Page you soon will find the Lounge link available to you. It should work for you within the next 24 hours if all goes as it should.
    Hope to see you there soon!

  • How can I attach an image without the image is in the email body? (using the new mail the Lion)

    How can I attach an image without the image is in the email body? (using the new mail the Lion)
    I want in attachment, not in the body mail.

    I think your only solution is to zip the image files first and then attach them.
    Read this from a site I found:
    Sending Graphical Attachments -- When you attach a graphical image to your message, the recipient of your message sees the image inline (that is, in the body of the message) if her email client supports inline display. ("Take Control of Email with Apple Mail" contains a table listing the capabilities of popular Mac and PC email clients.) If a client does not support inline display (or the recipient has turned off the inline display option), the file appears as an attachment that must be opened in a separate program.
    On the one hand, an inline image is easier for the recipient to see - all she has to do is look at it. On the other hand, inline images can be frustrating to scroll through. If you do not wish to send a graphical image inline, you must compress the file before attaching it - Mail, sadly, lacks a built-in compression option, though fortunately for Panther users, the Finder offers Zip compression without requiring a separate application.
    Note that when you compose a new message, Mail always shows attachments in the body of your message. You can manually drag them somewhere else, but many email clients display all attachments in a separate list, regardless of where you place them in the message body.
    If you paste an image into a message or drag & drop an image from another window (say, a Web browser), Mail converts the raw image data to an attachment in TIFF format. On the other hand, if you drag & drop the icon of an image file (or use the Attach button to locate the file using the file browser), Mail leaves the attached image in its original format. This difference is significant, because although most email clients can display JPEG images just fine, support for TIFF - especially in non-Mac email clients - is less common. If possible, I suggest attaching image files as opposed to pasting or dragging in raw image data.

  • How can I attach multiple filled-form PDFs to the same outgoing email on iPhone/iPad?

    How can I attach multiple filled-form PDFs to the same outgoing email on iPhone/ iPad?

    This isn't supported in the current version of Adobe Reader on iPhone/iPad.
    Shradha

Maybe you are looking for

  • How to properly create and configure SharePoint 2013 Search service with PowerShell?

    Hello Forum, I have installed SharePoint 2013 across three tier servers: WFE Server  (Of course, SharePoint is installed here. Bsically this is just a Web server) APP Server  (Of course, SharePoint is installed here + Central Admin + Service Apps). S

  • Apex 4.2.2 PDF Printing with Apex 2.0 Listener

    We recently installed Apex 4.2 with the Apex 2.0 Listener and can successfully print interactive reports and classic reports to PDF.  I viewed Mark Sewtz PDF Printing with Apex 4.2.2 and saw how he is using third party tools to format reports.  We ha

  • How do i remove itunes from the control panel?

    Hi all, i have spent the past few weeks browsing these forums and others trying to find a solution to my problem. I am trying to remove all traces of the itunes program off my computer so that i can download the new copy. I have tried uninstalling it

  • IPod Touch 3G Won't load past Lockscreen Unplugged from power source

    I plugged up my iPod up to charge fully and was able to play on it with no issues. But once I unplugged it, it had turned off instantly. Once I went to reboot it, it showed the Apple Logo and had tried to load. But once the Lock Screen started up it

  • Check status of trouble tickets?

    Hi all.  Yesterday, 12/26, I submitted a trouble ticket because I don't have service at my home.  I have the ticket number and I was wondering if there was a way for me to check the status of this without having to call customer service and sit on ho