How do I use a button within a movieclip to go to the root?

Hi there, I am new to flash and AS3 and need some help
getting my buttons to work.
I made a script for the file that i am working with that has
buttons located within 2 movieclips. I want that button to load and
image into a UILoader (problemLoader_mc) that I placed on the stage
on the main timeline (the timeline that contains WeekBar_mc). The
problem is that I don't know how to get to the root of the file to
start a new directory to tell my function to load the image i want.
I have tried multiple approaches including:
MovieClip(root).problemLoader_mc.source = problemArray[0]
MovieClip(parent).problemLoader_mc.source = problemArray[0]
root.problemLoader_mc.source = problemArray[0]
parent.problemLoader_mc.source = problemArray[0]
(root as MovieClip).problemLoader_mc.source = problemArray[0]
If anyone can help me out with this, I would greatly
appreciate it, I am banging my head against a wall at the moment.
(Also, please excuse my vague descriptions, I am still learning the
official terms.)
Here is the code that I have written that pertains to this
problem:

I have a mental block for reasoning things out as far as
assigning the listener to an object two mc's away from the main
timeline while having the function in the main timeline, so I may
play with that on my own for awhile. One thing you didn't do
though, was to pay the same attention to the problemArray[0]
assignment in that function, which I assume also lives in the root.
But here's what I'd do for the moment.
Take all that code except the array and plant it in the
timeline where WEEK1btn lives, modifying it as follows....
WEEK1_btn.addEventListener(MouseEvent.CLICK, pload1);
function pload1(event:Event)
MovieClip(this.parent.parent).problemLoader_mc.source =
MovieClip(this.parent.parent).problemArray[0];
I haven't utlized root myself yet, so I am not comfortable
offering you a solution that attempts it.

Similar Messages

  • How do i use F buttons on macbook pro

    how do i use f buttons on macbook pro?
    is it alt+f12 or cmd...totally clueless! -.-'
    can i use f buttons if using citrix on a windows platform opened on mac ???
    thanks.

    The function key (fn).

  • How can I use Applescript to copy a file's icon to the clipboard?

    Hello,
    How can I use Applescript to copy a file's icon to the clipboard?
    Thanks.
    Lennox

    there is no way to do that that I know of. but you can extract an icon of a file to another file using command line tool [osxutils|http://sourceforge.net/projects/osxutils]. you can then call the relevant command from apple script using "do shell script".

  • If I get a user to enter their name as a variable and I am linking one movie to another using a button, is there a way to carry the user name forward into the second movie?

    If I get a user to enter their name as a variable and I am linking one movie to another using a button, is there a way to carry the user name forward into the second movie?

    Hi there
    See if the link below helps
    Click here
    Cheers... Rick
    Helpful and Handy Links
    Captivate Wish Form/Bug Reporting Form
    Adobe Certified Captivate Training
    SorcerStone Blog
    Captivate eBooks

  • How do I use Java Button to launch a separate Java application?

    I have created separate Java applications using NetBean. Once the user has entered information on one application screen, I would like the a second screen (created as an application) to open once the "OK" Button is clicked. How do I make this separate program an action Listener?
    Thanks,
    JR

    jamroman wrote:
    I have a general understanding of JFrames and containers, etc. But my question is if, as an independent application, can a JFrame be called upon?Yes, sure. There are at least 3 ways a second JFrame can be created from within an existing Java application.
    1) Call the JFrame's constructor
    2) Call the JFrame's main(String[])
    3) Create a Process via. ProcessBuilder.
    For more specific help, you'll need to ask a more specific question.
    Note that if you already knew how to use buttons and action listeners, it would have been a good idea to either:
    a) Not mention buttons at all, or..
    b) Post an SSCCE that shows both the button and action listener. (AKA - Let the code do the talking.)

  • How can i use connection pool within the sqlj?

    hello
    i am a beginner to sqlj,i find all of the sample code from the oracle DON'T use connectionpool,they only write the database url to "connection.properties" file,but i think in the production environment we should use the connectionpool to optimise the querying,i usually use the weblogic connection pool.
    how can i use the connection pool within the sqlj?
    thank you very much!

    Im not sure if I understand. :)
    English is not my best language...
    Looking up the connection again? Do you mean I have to create new DataSource object and bind it again to ServletContext?

  • TS1398 How to connect using wps button

    How to connect wifi using wps button
    I cant connect using wps

    The Extreme DOES support WPS, it just is that there isn't a button on it. You have to use the old version of AirPort Utility (5.6).
    Open the AirPort Utility, select your AirPort Extreme base station and click "Manual Setup."
    Next open the "Base Station" menu, located on the display's top menu bar, select "Add Wireless Clients..." and carry on from there.

  • How to upload using  upload button and want to process it....

    Hi,
    I need a program to upload a file [Excel file] using upload button and
    want to process the excel sheet and store the data in database.
    I know that we can upload using Html - file type.
    but I dont know how to retrieve that uploaded file to process it?
    I mean , Is there any function like requset.getParameter() to get the uploaded file?

    Go to the [Apache Commons FileUpload homepage|http://commons.apache.org/fileupload] and carefully read the 'User Guide' and 'Frequently Asked Questions' sections from top to bottom (do not only focus on the code examples, but also on the article's text!!).

  • How to add a new button in IC tool bar and handle the event for the button?

    Hi,
        I am working on CRM 2007 Interaction center. To add a new button to IC toolbar, customizing is available to define a new button and then assign in to the profile.
    In SPRO->CRM->IC webclient->Customer Specifc System Modifications->Define Toolbar Buttons, I defined one new button with ID ZSTART.
    Now in SPRO->CRM->IC webclient->Basic Functions->Communication Channels->Define Toolbar Profiles , I selected Default profileid and in Generic Layout Buttons Tab, I added the new button ZSTART in Position 3.
         So after completing the customizing when the user logs in using role IC_AGENT,  the button (with ID:ZSTART) gets displayed in the IC toolbar too.
          Now on click of this button, I need to create an object.
    To do so, I have to catch the event which is raised by this new button.
           Please let me how to implement the event handler for this new button. What will be the event name for this button click event and how I can subscribe for it ?
         Please let me know if anyone of you have already worked on similar requirements.
    Regards,
    Manas.
    Edited by: manas sahoo on Jul 22, 2008 7:49 PM

    Hello Manas,
    There are a couple of threads in the community that might help you out (if you haven't already found them):
    Re: IC Web Client Toolbar
    /message/3621917#3621917 [original link is broken]
    Regards,
    Renee Wilhelm
    Edited by: Renee Wilhelm on Nov 6, 2008 7:46 PM

  • HT201933 How can I use my trackpad and my Apple Magic Mouse at the same time? If I don't have my mouse with me I can't use my laptop. The trackpad only moves an arrow around but doesn't let me click on anything?

    When I want to use only my laptop without the apple magic mouse, how do I disable the mouse so that the trackpad works?

    Hi, thanks for your answer,
    No, I connected the midi-in from the blofeld to midi-out from the virus. I was told to do so by the guy who sold me the ultralite mk3.
    I made some tests before getting the ultralite... I used the Virus soundcard as audio device and I could control the blofeld. But I had to link my monitor to the Blofed Out... then I wasn't able to listent to the Virus. But this way I could play the Blofeld in Logic (but couldn't see any midi data and when I bounced I had no sound)
    That's the main reason I decided to buy an external audio device (to be able to play both the Virus and the Blofeld)
    But I think the way I connected Blofeld to Virus is right because I can see the light which means it receives midi data.
    I think it's more about how to set it within logic...
    And the Blofeld only gets one Midi connection: Midi In
    Both my Virus and Blofeld are also connected to my MacPro via USB, that's the reason I didn't connect the synths to the ultralite via midi...
    thanks for you help! I'm getting crazy lol

  • Button within a movieclip

    Hi all,
    I am relatively new to Flash and am looking for help with a
    file I am working on.
    I have created a movieclip of an area which is placed so that
    only the outer right edge is on the stage. When the mouse hovers
    over the area, it moves onto the stage and reveals menu options. It
    works beautifully as an animation, and the menu options (which have
    over, down, and hit states) work when not part of this movieclip,
    but when I place instances of the buttons within the tweened
    movieclip, they no longer work.
    I have been scouring the web for answers and most people say
    that you cannot have a rollover within a rollover as the first
    rollover (in my case, the movieclip) is still active.
    I have seen this work with various files in flashden for
    example where the menu slides out from the side and then slides
    back in when you 'roll off' but while you are 'rolled on' you have
    access to menu options which all perform their own roll on/off
    movies.
    Hopefully there is a simple answer!
    Thanks in advance.
    J.

    I had to step out for awhile too.
    Well, I'll give you a jump start on the AS version of Tweens.
    Taking this approach will give you a better bit of sliding. With
    your gotoAndPlay(label), you'd end up having things probably still
    jumping around when it moves from the background to a button and
    vice-versa which would end up complicating the coding to avoid it.
    Below is a link to a small sample file I made for you that
    you can study/utilize... it was easier than trying to explain it in
    this forum. It shows you a better way of coding mouse interaction
    stuff as well (using on(...) attached to objects is bad practice...
    now outlawed in AS3).
    The way I did it has all of the code visible in the main
    timeline so you don't have to go digging and clicking on things to
    find code.
    The menu's background is a movieclip and the menu's button is
    a button. I only have one button, but the more the merrier as long
    as they all have their own code and instance names. Though for the
    rollOver you could assign them all as follows:
    btn1.onrollOver = btn2.onrollOver = btn3.onrollOver =
    function(){...}
    I forget during this edit (some hours later) if I have a
    rollOut for the button, but since/if the background surrounds it on
    all sides, you can probably eliminate it... only the background
    would need to have that aspect covered.
    There are two versions of the file linked below... a CS3
    version and a Flash 8 version.
    Sample Fla
    File - CS3
    Sample Fla
    File - Flash 8
    PS - my host's server is acting up today, so be
    patient.

  • How do I use my airport express or time capsule to increase the signal strength of my comcast router

    How do I use my airport express and/ or time capsule to increase the range of my newly installed comcast modem/router.

    Neophite50 wrote:
    Thanks.
    A question. Do I plug the TC into the Comcast modeum Router or the iMac?
    Both is good.. but at least one of your routers.. TC or express must be plugged into the router.. the imac can get internet connection by wireless.

  • How do I use one of my photos as my wallpaper from the iPhoto app?

    Hi, As the heading says - How do I use one of my photos as my wallpaper whilst using the iPhoto app please.

    ziffos wrote:
    Yes - you assume correctly although I thought this would have been obvious seeing as we are in the iPad section of the forum.
    Obvious to you and me who are paying attention, but actually, if you look through the post topics, many people confuse iPhoto for iOS with iPhoto for the Mac. 

  • How can i use index in select query.. facing problem with the select query.

    Hi Friends,
    I am facing a serious problem in one of the select query. It is taking a lot of time to fetch data in Production Scenario.
    Here is the query:
      SELECT * APPENDING CORRESPONDING FIELDS OF TABLE tbl_summary
        FROM ztftelat LEFT JOIN ztfzberep
         ON  ztfzberep~gjahr = st_input-gjahr
         AND ztfzberep~poper = st_input-poper
         AND ztfzberepcntr  = ztftelatrprctr
        WHERE rldnr  = c_telstra_accounting
          AND rrcty  = c_actual
          AND rvers  = c_ver_001
          AND rbukrs = st_input-bukrs
          AND racct  = st_input-saknr
          AND ryear  = st_input-gjahr
          And rzzlstar in r_lstar                            
          AND rpmax  = c_max_period.
    There are 5 indices present for Table ZTFTELAT.
    Indices of ZTFTELAT:
      Name   Description                                               
      0        Primary key( RCLNT,RLDNR,RRCTY,RVERS,RYEAR,ROBJNR,SOBJNR,RTCUR,RUNIT,DRCRK,RPMAX)                                          
      005    Profit (RCLNT,RPRCTR)
      1        Ledger, company code, account (RLDNR,RBUKRS, RACCT)                                
      2        Ledger, company code, cost center (RLDNR, RBUKRS,RCNTR)                           
      3        Account, cost center (RACCT,RCNTR)                                        
      4        RCLNT/RLDNR/RRCTY/RVERS/RYEAR/RZZAUFNR                        
      Z01    Activity Type, Account (RZZLSTAR,RACCT)                                        
      Z02    RYEAR-RBUKRS- RZZZBER-RLDNR       
    Can anyone help me out why it is taking so much time and how we can reduce it ? and also tell me if I want to use index number 1 then how can I use?
    Thanks in advance.

    Hi Shiva,
    I am using two more select queries with the same manner ....
    here are the other two select query :
    ***************1************************
    SELECT * APPENDING CORRESPONDING FIELDS OF TABLE tbl_summary
        FROM ztftelpt LEFT JOIN ztfzberep
         ON  ztfzberep~gjahr = st_input-gjahr
         AND ztfzberep~poper = st_input-poper
         AND ztfzberepcntr  = ztftelptrprctr
        WHERE rldnr  = c_telstra_projects
          AND rrcty  = c_actual
          AND rvers  = c_ver_001
          AND rbukrs = st_input-bukrs
          AND racct  = st_input-saknr
          AND ryear  = st_input-gjahr
          and rzzlstar in r_lstar             
          AND rpmax  = c_max_period.
    and the second one is
    *************************2************************
      SELECT * APPENDING CORRESPONDING FIELDS OF TABLE tbl_summary
        FROM ztftelnt LEFT JOIN ztfzberep
         ON  ztfzberep~gjahr = st_input-gjahr
         AND ztfzberep~poper = st_input-poper
         AND ztfzberepcntr  = ztftelntrprctr
        WHERE rldnr  = c_telstra_networks
          AND rrcty  = c_actual
          AND rvers  = c_ver_001
          AND rbukrs = st_input-bukrs
          AND racct  = st_input-saknr
          AND ryear  = st_input-gjahr
          and rzzlstar in r_lstar                              
          AND rpmax  = c_max_period.
    for both the above table program is taking very less time .... although both the table used in above queries have similar amount of data. And i can not remove the APPENDING CORRESPONDING. because i have to append the data after fetching from the tables.  if i will not use it will delete all the data fetched earlier.
    Thanks on advanced......
    Sourabh

  • How do I use mono and 1 spot colour for print, where the spot colour applies to an element, rather than the whole image?

    I am struggling to work with spot colours, using scanned images edited in Photoshop for use in InDesign to then go to print.
    We print to two plates to save money for our publication. In this case magenta and black.
    I could use the spot colour mode but that works with curves and I only want a certain part magenta. Imagine a business card with a gloss finish where I only want to apply it to certain part ie the name of the employee, using a curve would match a certain shade therefore this method would be unsuitable.
    I have also tried using channels, one grayscale and one magenta, but using the file types either InDesign bugs or it comes out in mono.
    It isn't possible to recreate the logo in InDesign, if only it was this easy...
    If someones already discussed this, I can't find it, but if someone could point me in the right direction—I'd be very grateful!
    Using Photoshop CS4, InDesign CS4. Access to Adobe Cloud at home...

    I'm assuming at least some people on here must have experience of the Scintilla control for creating a Notepad++ type application. I'd like to use this control, unfortunately there is very little in the way of documentation or working examples
    around
    >unfortunately there is very little in the way of documentation
    Have you read all of this?
    Scintilla Documentation
    http://www.scintilla.org/ScintillaDoc.html
    >or working examples around
    Have you examined this project in detail?
    SciTE is a SCIntilla based Text Editor.
    http://www.scintilla.org/SciTE.html
    SciTE Documentation
    http://www.scintilla.org/SciTEDoc.html
    - Wayne

Maybe you are looking for

  • Can I use more than one SIM card in my iPhone if I buy it SIM free?

    Can I use more than one SIM card in my iPhone if I buy it SIM free?

  • Can't Send Mail

    Hi, In Mail, I'm unable to send e-mails using my .me account. I had the same trouble when it was .mac. I get the message: "Cannot send message using the server smtp.mac.com:jt1bates The connection to the server "smtp.mac.com" on port 25 timed out..."

  • Enter button doesn't work in address bar.

    After inputting a site address in the address bar, either through typing or from the history/autocomplete, pressing enter does not send me to the page, and I have to manually click the go button on the right. Disabling all my plugins didn't make any

  • VPN users cannot connect to LAN

    I have to users down in australia, they can connect via vpn but cannot ping any of the LAN ip address PLease help URGENT!

  • What exactly are cookies?

    Should I ever clear them?