Can I use the same scrollpane twice in my project?

I am creating a project that has 3 scenes. 1 scene has a movieclip. Inside the movieclip, I have a scrollpane that generates dynamic text called welcome_scroll. The file runs fine when I test it displaying the scrollpane window and loading the text. However, I need to use the same scrollpane with the same dynamic text in Scene 2 titled Home in the main timeline. So I copied and pasted the scrollpane into scene 2's main timeline. When I test it, Scene 1 runs fine, but Scene 2 only displays the scrollpane with no text. Plus I get an error message:
TypeError: Error #1009: Cannot access a property or method of a null object reference.
at Maritime_splashpage_01_fla::MainTimeline/__setProp___id1__home_scrollpane_0()
at Maritime_splashpage_01_fla::MainTimeline/frame1()
Error #2044: Unhandled ioError:. text=Error #2035: URL Not Found. URL: file:///C|/Documents%20and%20Settings/username/Desktop/welcome_scroll
I tried once test. I decided to delete the scrollpane in Scene 1's movieclip thinking that using the scrollpane twice was the problem. But that did not work. Scene 2 stills gives me an error message with just scrollpane and no text.
I was also thinking of duplicating the scrollpane in the library with a different name but not sure if that is efficient or the solution. If that is the case, would I have to duplicate the the dynamic text movieclip in addition changing the actionscript to reflect the changes?
It's just a headache for me thinking Flash would be efficient in allowing you to reuse the scrollpane with the same dynamic elsewhere in my project.

Below is the only code that I had to create which is basically variables for the textfield's point size and fonts to use that I embedded into the library for runtime. The way I was able to get the scrollpane to load the movieclip is by first creating a movieclip, drawing a textfield, naming the textfield instance called welcomeField, creating the actionscript in frame 1 of the movieclip (which you will see below), then setting up the properties of the movieclip by checking Export for Actionscript and Export in frame 1. The class and base class automatically created the names. I copied the class name and entered that into the source field of the component inspector of the scrollpane. That was it.
var myFont1:Font = new Font6();
var myFormat1:TextFormat = new TextFormat();
myFormat1.font = myFont1.fontName;
myFormat1.size = 15;
var welcomeField:TextField;
welcomeField.autoSize = TextFieldAutoSize.LEFT;
welcomeField.defaultTextFormat = myFormat1;
welcomeField.embedFonts = true;
welcomeField.antiAliasType = AntiAliasType.ADVANCED;
welcomeField.text = "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nullam et viverra sapien. Quisque lacinia velit in diam tempor at aliquam nisi tincidunt. Maecenas ut libero enim, eget viverra ligula. Suspendisse potenti. Quisque ut enim lobortis tortor pulvinar lobortis sed lacinia turpis. Nunc quis eros nunc. Curabitur quis tortor neque, in suscipit libero. Duis sit amet nisl lectus, eleifend imperdiet ligula. Integer vestibulum blandit nisi ut tincidunt. Praesent sapien magna, vestibulum sit amet pellentesque a, auctor vitae tellus. Sed dignissim neque non dolor malesuada volutpat. In hac habitasse platea dictumst. Pellentesque pulvinar imperdiet facilisis. Aenean tincidunt magna in turpis euismod ac imperdiet lectus luctus. Sed aliquam semper urna vel ultricies. Proin posuere lacinia ligula vel tincidunt. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nam eu velit ac ante euismod elementum.\n\nAliquam erat volutpat. Praesent a dolor a leo imperdiet ultricies. Maecenas rutrum varius mi nec bibendum. Proin in leo quam, in mollis quam. In laoreet, lacus sed elementum volutpat, velit elit condimentum lorem, faucibus hendrerit est ante id metus. Morbi sed purus ac felis laoreet rhoncus. Donec a felis vitae ligula pharetra vestibulum. Vivamus vehicula aliquet mauris ut posuere. Aenean eget lacus est. Donec lacinia mi vel tellus blandit luctus ac id lectus. Vivamus pharetra felis ac massa cursus hendrerit. Nulla elementum sagittis turpis in laoreet. Nunc tempor felis ut est fringilla cursus. Praesent in rhoncus velit. Aliquam fringilla felis non tortor auctor sit amet euismod velit dictum. Donec ligula eros, suscipit et egestas eget, ultricies ut dui. Integer et lorem felis, at tincidunt ante. Suspendisse tincidunt ultrices sapien. Nunc nibh elit, varius ut viverra quis, fringilla et sem. Duis nec mattis massa.\n\nVivamus interdum auctor diam, id dignissim risus iaculis convallis. Phasellus ac sagittis elit. Aenean est metus, tincidunt in suscipit ornare, vestibulum at massa. Sed ut enim a orci pharetra adipiscing. Proin quis neque sapien. Sed nec vehicula dolor. Nunc metus urna, adipiscing a euismod pharetra, vehicula eu nibh. Etiam a augue in velit auctor commodo. Nulla dictum tempor faucibus. Nunc porta bibendum ante eget condimentum. Sed in ipsum nec dolor malesuada tristique ac sed lorem. Donec nec tortor lacus, sodales dignissim nisl. Curabitur lacus orci, lacinia in dignissim eu, sodales ac ipsum. Nunc viverra magna at erat molestie non ultrices ipsum faucibus.";

Similar Messages

  • Can I use the same SSI twice in same page?

    Hey all,
    i'm having a problem whereby several SSI's are not showing on my page.
    I'm wondering if it's because the instances that are not showing are the ones called the second time round.
    Before i start posting code etc, i just wondered if it was actually not possible to call the same SSi more than one time on a page.
    I can't seem to find documentation stating this anywhere.
    Thanks in advance,
    Katrina
    Edit 1: I tested using a new unique SSI (i.e. one that wasn't called anywhere else on teh page, and it doesn't show either... so I've started a new thread where i post my code here: http://forums.adobe.com/message/5345250#5345250
    Edit 2: I guess i didn't test properly initially. It seems it is NOT possible to use the same SSI twice on a page...   What a bummer!!!

    This issue was resolved in a different thread where s member supplied the following information...
    t's certainly possible depending on the PHP command which you use as the include directive.
    <?php require_once('includes/include-address.php'); ?> will only include the file once
    <?php require('includes/include-address.php'); ?>  will include the file more than once
    <?php include('includes/include-address.php'); ?>  will include the file more than once
    Each has its own rules and quirks.
    http://php.net/manual/en/function.require-once.php
    http://www.php.net/manual/en/function.include.php
    http://www.w3schools.com/php/php_includes.asp

  • Can I use the same picture twice in one book?  How?

    How?

    When creating your calendar (you already have selected the album you are using the pictures from and have clicked on calendar), you have to Duplicate the picture you want to use twice while it is selected in that side bar.
    (Duplicate is under the Photo Menu)
    Melinda W.

  • How do I use the same photo twice in a slideshow created in iPhoto'11?

    I created a slideshow in iPhoto'11 and would like to use the first slide also as the last slide.
    How can I use the same photo twice?

    Seems you have to duplicate the photo in your Library to add the same picture twice.

  • HT201250 can I use the same drive to backup more than one computer

    Can I use the same external hard drive to backup (using Time Machine) my Macbook pro and iMac computers?
    Can they be the same partition?

    etresoft wrote:
    SMS5572 wrote:
    It was never my intention to break protocol here.
    Pondini is not accurately reporting the context of a private conversation.
    I disagee (you called it threadjacking twice), but we can argue about that elsewhere.
    As far as I know, only Lion Server and Time Capsule provide networked Time Machine services
    It is supported. 
    From Lion (client) Help:
    So many folks asked how to set it up that I wrote instructions on my web site -- Time Machine - Frequently Asked Question #22 -- no "unsupported" command needed.
    Message was edited by: Pondini

  • Can I use the same taskflow in the same page ?

    I have an ADF library which I want to input into a single page (jspx).
    In the single page, i drag a taskflow-A twice into showdetailitem1 and showdetailitem2. I used required parameter so I able to define each taskflow.
    Everything looks good for the first time, and no error so far, but some component like carousel and af:foreach only works for the one of these regions.
    My question is,
    - can I use the same taskflow in the same page (2 regions) ?
    - if yes, did I have to configure something to achieve this ?
    Thanks
    Riendy

    Hi
    Iterating over af:region will not work.  Instead, try if using dynamic task flow id works—
    <af:carousel ...>
      <af:carouselItem ...>
        <af:region value="#{binding.item1.regionModel}" ... />
      </af:carouselItem>
    <af:carouselItem ...>
        <af:region value="#{binding.item2.regionModel}" ... />
      </af:carouselItem>
      <!-- and so on -->
    </af:carousel>
    In the page definition file, you should have the following—
    <taskFlow id="item1" taskFlowId="#{backingBean.item[0].taskFlowId}" active="#{backingBean.item[0].active" .../>
    <taskFlow id="item2" taskFlowId="#{backingBean.item[1].taskFlowId}" active="#{backingBean.item[1].active" .../>
    So, you have a bunch of task flows ready to be displayed based on the what the backing bean returns.
    ~Sripathy

  • Using the same subreport twice

    I'm trying to use the same subreport twice in the same
    report, passing it different parameters that modify its query, but
    I keep getting a data binding error. I'm pretty sure what's causing
    it is the fact that I'm using the same subreport twice because if I
    save a copy of the same subreport with a different name and include
    it instead of repeating the same subreport things work fine. Any
    good reason why using the same subreport twice shouldn't work, or
    any solution t o this problem?

    Most certainly - you add the second audio track to the second audio stream for the track (A2). You can then set your menu buttons to play the track with either version of the audio. This is generally how things are done when there is a directors commentary, or where there are different types of audio (say, Dolby 5.1 and a standard stereo track for the same footage) that the viewer can choose between.
    Have a read of this, too:
    http://www.editorsbin.com/authoring/setupandresume.html
    There's a lot of additional info there to help you on your way.

  • Can I use the "same" button multiple times for multiple galleries?

    OK so I am extremely untrained in CS4 and Actionscript. However I have managed to get along fairly well until I started to dynamically upload images as a gallery. This works great if I have one gallery, but for my site I have 9 galleries!!! I have a back and next button, but I want to be able to use those same buttons for all of the galleries so they look the same. I have split them up and renamed them, but I am clueless on how to script the buttons to work. Please help...and don't laugh at my poor scripting. This is what I have now because I do not know where to put the other button names without getting errors.
    stop();
    next_btn .addEventListener(MouseEvent.CLICK, nextImage);
    var imageNumber: Number=1;
    function checkNumber(): void{
        next_btn.visible=true;
        back_btn.visible=true;
        if(imageNumber==15){
            trace(imageNumber);
        next_btn.visible=false;
        if(imageNumber==1){
            trace(imageNumber);
        back_btn.visible=false;
    function nextImage(evtObj:MouseEvent):void {
        imageNumber++;
        mc_engagement.source= "photo/engagement/en0"+imageNumber+".jpg";
        mc_amish.source= "photo/amish/Amish"+imageNumber+".jpg";
        mc_chicago.source= "photo/chicago/ch"+imageNumber+".jpg";
        mc_landscapes.source= "photo/landscapes/land"+imageNumber+".jpg";
        mc_goodvsevil.source= "photo/goodvsevil/ge"+imageNumber+".png";
        mc_animals.source= "design/animals/an"+imageNumber+".png";
        mc_icons.source= "design/icons/icon0"+imageNumber+".png";
        mc_objects.source= "design/objects/pc"+imageNumber+".png";
        mc_typography.source= "design/typography/type"+imageNumber+".png";
        checkNumber();
    back_btn .addEventListener(MouseEvent.CLICK, backImage);
    function backImage(evtObj:MouseEvent):void {
        imageNumber--;
        mc_engagement.source= "photo/engagement/en0"+imageNumber+".jpg";
        mc_amish.source= "photo/amish/Amish"+imageNumber+".jpg";
        mc_chicago.source= "photo/chicago/ch"+imageNumber+".jpg";
        mc_landscapes.source= "photo/landscapes/land"+imageNumber+".jpg";
        mc_goodvsevil.source= "photo/goodvsevil/ge"+imageNumber+".png";
        mc_animals.source= "design/animals/an"+imageNumber+".png";
        mc_icons.source= "design/icons/icon0"+imageNumber+".png";
        mc_objects.source= "design/objects/pc"+imageNumber+".png";
        mc_typography.source= "design/typography/type"+imageNumber+".png";
        checkNumber();

    I'm still a novice with Flash myself, but I have two comments.
    First, at this point, won't your buttons control all galleries at the same time? Which means, if I go to image 5 in one gallery, then move to another gallery, I'll start at image 5, because the actions are all connected.
    Second, you can definitely use the same buttons for multiple galleries. It seems to me that as long as you've assigned the buttons an instance name, these actions should already work to control all the galleries (see the note above). I guess I would need to understand a bit more about how your project is built.

  • I'm in the trial period for Creative Cloud - I have about 19 days to go on Photoshop CC on my iMac.  Can I use the same CC trial on a second machine?  Specifically on a Windows 7 machine?

    I'm in the trial period for Creative Cloud - I have about 19 days to go on Photoshop CC on my iMac.  Can I use the same CC trial on a second machine?  Specifically on a Windows 7 machine?

    Nothing personal to you or Rajshee, but this is exactly why I absolutely despise these "community forums" (not just Adobe but any company).  I called the Tech Support phone line today after digging and digging for a phone number, and they told me the exact opposite, and they did it a lot faster than it was possible to get a forum response.  (That's really not personal, because you can't control that, but it's a fact.)
    Their answer: As long as I'm signed in with the same ID, I can try, say, Photoshop CC on my iMac at home and also try Acrobat Pro CC on my Windows 7 machine at work.  Same account, same login, one trial.
    This makes complete sense to me as I'm financially on the hook (potentially) for the same package.  If I give away my login to someone else, which I wouldn't do, I'm still on the hook.  This is why the cloud approach to software is such genius and I applaud it.
    BTW, 99% of the "community forum" wrong answers come on Microsoft sites, so don't feel bad. 

  • Can you use the same Apple ID on more than one MacBook Pro for updates and applications?

    We just got a few new MacBook Pro's and when I went to install updates it said I need to make an Apple ID.  Can you use the same Apple ID and email address for that Apple ID on multiple machines, or do I need them both to be unique per machine?  I'm not sure how that works when you have multiple machines.

    An Apple ID is a user name you use for everything you do with Apple. Creating an account for an Apple service, such as the iTunes Store or the App Store, creates an Apple ID. Apple ID allows you to access other Apple services.   So you can use the same Apple ID for up to 10 Macs associated with it.
    To create an Apple ID you need to enter  your full name and your primary email address as your Apple ID. This will be used as the contact email address for your account.

  • How many times can you install Lightroom 5? My problem is that I have saved my programs on C. To I have more space, I want to save my programs now on E. Can I now uninstall Lightroom and reinstall from C to E? Can I use the same license code as the first

    Please help!!
    How many times can you install Lightroom 5? My problem is that I have saved my programs on C. To I have more space, I want to save my programs now on E. Can I now uninstall Lightroom and reinstall from C to E? Can I use the same license code as the first installation?

    Thank you for your answers, it helps me a lot.
    But sorry for my ignorance. I understand how you mean it, but I don't know how to do it. I'm scared to lose the settings/edits of the images.

  • I already have adobe digital editions on my mac pc and download books from the library to my android e-reader. Can I use the same digital editions on my ipad air, or do I need to load a different one onto my ipad?

    I already have adobe digital editions on my mac pc and download books from the library to my android e-reader. Can I use the same digital editions on my ipad air, or do I need to load a different one onto my ipad?

    Try following forum:
    Adobe Digital Editions

  • I have a Verizon and At&t Iphone 4 can I use the same Itunes account for both phones?

    I have a Verizon Iphone 4 though my job.  I also have a At&t Iphone 4 for my personal phone.  Can I use the same Itunes account for both phone or will I need a separate account for Verizon Iphone?

    I dont live in US, live in Japan.. but I do have 2 iPhones, one 3GS and one 4. I use same iTunes Account on both.
    You might have a little "problem" if your payment were by Credit Card, everytime you try to buy something (I mean, try to download something on your iphone, not from your computer) , your going to need to verify your payment... but if u use iTunes Gift Card, you wont have any problem with that
    sry about my english... I hope I helped you

  • Can I use the same icloud account on 2 computers?

    I have a ipad, iphone, mac pro and an imac thats at work. Can I use the same account and sync to all the devices? Or will it only work with the computer that syncs my phone and Ipad?

    It works with all your devices that are tied to the same Apple ID.

  • Can I use the same iTunes account for 2 iPads without having the same apps on both?

    Can I use the same iTunes account for 2 iPads without having the same apps on both? Everytime I try to sync my new iPad, it syncs all the apps that are on my account. If I can do this, can someone tell me how please???

    Yes you can, easily.  When you plug the first pad in to sync, note the name of the pad on the last pane.  Set up for that device whatever you want to sync.  When you are done, plug the second pad in.  Make sure it has a different name on the left pane.   Then sync to that pad whatever you want.  I tunes will remember what you did on each pad, and will start from there the next time you plug in.

Maybe you are looking for

  • Schedule a background job

    Hi All, I have an urgent query here regarding the Bakcground job. Let's say I need to schedule a background job on hourly basis to fetch the data. If first job runs more than 60 minutes, then will the second job will fetch the data. What will happen

  • Hyperion Planning 11.1.1.3: Add New User

    1:      When trying to refresh security filters using the workspace interface I get the following error(s) AND the essbase security file gets messed up (including, the native admin id). I then need to login with an alternate id that does not have acc

  • Not Recognizing external Lightscribe drive

    I have just purchased a Bytecc Aluminum External USB 2.0 DVD+/-R RW Dual Layer 18x Burner w/lightscribe powered by Samsung SH-S182M https://www.supergooddeal.com/ProductDetails.asp?ProductCode=S82M-ME5-BK It appears it is an internal drive put in a e

  • Double attachments in incoming mail

    When I receive email with a photo attachment from one particular email address, Mail always doubles it, i.e. it shows 2 of the same JPG photo. I've checked directly in Gmail & there is only one photo showing, so I know the doubling up is happening in

  • Why is this hapening?

    Hi I have got this error from wtk 1.0.4 : ALERT:Maximum byte code lenght (32Kb) exceeded The jar size is under 60ko and classes size are 60ko(non-compresed) & 22 ko (compressed)... Can any one tell me what is wrong.. Thx.