Function do work in only one frame

this function showing in all frame on stage....i want to it within a perticular frame
function callThumbs() {
    _root.createEmptyMovieClip("sliderBox",_root.getNextHighestDepth());
    sliderBox._x = _root.gallery_x=30;
    sliderBox._y = _root.gallery_y=30;
sliderBox.addEventListener(MouseEvent.CLICK);
    var clipLoader = new MovieClipLoader();
    var preloader = new Object();
    clipLoader.addListener(preloader);
    for (i=0; i<myImagesTotal; i++) {
        thumbURL = myImages[i].attributes.thumb_url;
        myThumb_mc = sliderBox.createEmptyMovieClip(i, sliderBox.getNextHighestDepth());
        myThumb_mc._x = _root.thumb_height*i;
        clipLoader.loadClip("thumbs/"+thumbURL,myThumb_mc);
        preloader.onLoadStart = function(target) {
            target.createTextField("my_txt",target.getNextHighestDepth(),0,0,1,1);
            target.my_txt.selectable = false;
        preloader.onLoadProgress = function(target, loadedBytes, totalBytes) {
            target.my_txt.text = Math.floor((loadedBytes/totalBytes)*100);
        preloader.onLoadComplete = function(target) {
            new Tween(target, "_alpha", Strong.easeOut, 0, 100, .5, true);
            target.my_txt.removeTextField();
            target.onRelease = function() {
                callFullImage(this._name);
            target.onRollOver = function() {
                this._alpha = 100;
            target.onRollOut = function() {
                this._alpha = 100;

In what way do you mean the function is in all frames?  If you write the function on a layer of its own and only provide one frame for it, it will only exist in that one frame.
If you mean that what the function creates lives throughout the timeline, then that is because you are creating content dynamically without securing it to an object that has a home in the timeline.  Dynamically created content does not have a home in  the timeline unless you make it a opart of something that has been manually affixed to the timeline, like a movieclip.
So what you might try is to manually add an empty movieclip in the frame where this code is (on a separate layer) and assign it an instance name, let's say you name it "container".  Then you can change the following line from...
_root.createEmptyMovieClip("sliderBox",_root.getNextHighestDepth());
to
container.createEmptyMovieClip("sliderBox",container.getNextHighestDepth());
and that should end up retsricting the dynamically created movieclip to the frame where the container is.  If there is any other content being added to the _root, that too should be retargeted to the container.

Similar Messages

  • How to close only one frame

    Hi!
    How do i close only one frame?
    I know this close everything:
    private void exitActionPerformed(java.awt.event.ActionEvent evt) {                                       
    Component panel = null;
    System.exit(0);
    But i tried this: but dos'nt work ....
    public static void main(String args[]) {
    java.awt.EventQueue.invokeLater(new Runnable() {
    public void run() {
    new configuration().setVisible(false);
    }

    r035198x wrote:
    Enojado wrote:
    Sorry, i tried this:
    private void confexitActionPerformed(java.awt.event.ActionEvent evt) {
    new NewJFrame().setVisible(false);
    }Which frame are you hiding here? You are creating a new one and hiding it before it has a chance to say or show anything. That's incredibly rude.
    P.S setVisible(false) just hides. dispose() throws the frame and its components into the trash bin.Yep, that was the answer. :] thanks

  • I have just downloaded Elements 11 & there is only one frame (basic) in collage, how do I get more?

    I have just upgraded from Elements 7 to Elements 11 but find in the photo Collage there is only one frame, how do I get more, my old 7 had a good variety???

    Hi Wobygong5,
    I am afraid PSE11 has just one theme, ie. Basic.
    However you can go to Expert mode, and then create a new image of the size you want, and then insert frames from the Graphics panel. You can insert as many frames as you want.
    But Photo Collage will offer you just one theme.
    -Rahul.

  • Creating iphoto book and can't seem to view/ work on only one page at a time.

    I am creating an iPhoto book and can't seem to view/work on only one page at a time.  The Navigator, that allows you to focus on a part of the page is actually 1 1/2 pages in size so 1 1/2 pages are in view when trying to work on one page.  What am I doing wrong or how can I fix this.  It is very distracting viewing half of a previous page when trying to create a new page and write a story to go with the related pictures.

    My Navigator seems to be to large.  It covers 1 1/2 pages while in the training information it shows as the size of one page.  Is there a way to adjust the size of the Navigator?
    You can hover the mouse over the left border of the Navigator - then the cursor will turn into a resize cursor and you can drag the border and make the Navigator panel smaller by enlarging the source list.
    Or drag the lower right corner of the iPhoto window and shrink the appliaction window. This will only make the navigator smaller - the source list and information panel will stay the same size.
    Regards
    Léonie

  • Why won't my iMessage work with only one contact in my phone all my other iMessages send and they just got an iphone but all their iMessages are sending also. I've tried restarting my phone, deleting messages, contact, restarting network

    Why won't my iMessage work with only one contact in my phone all my other iMessages send and they just got an iphone but all their iMessages are sending also. I've tried restarting my phone, deleting messages, contact, restarting network

    Hello Jesslb23,
    Thanks for using Apple Support Communities.
    For more information on this, take a look at:
    iOS: Troubleshooting Messages
    http://support.apple.com/kb/ts2755
    To resolve issues with sending and receiving iMessages, follow these steps first
    Check iMessage system status for current service issues.
    Go to Settings > Messages > Send & Receive and make sure that you have registered iMessage with your phone number or Apple ID and that you have selected iMessage for use. Learn more about troubleshooting iMessage registration if the phone number or Apple ID isn't available for use.
    Open Safari and navigate to www.apple.com to verify data connectivity. Learn more about troubleshootingcellular data or a Wi-Fi connection if a data connection isn't available.
    iMessage over cellular data might not be available while on a call. Only 3G and faster GSM networks support simultaneous data and voice calls. Learn more about which network your phone supports. Go to Settings > Wi-Fi and turn Wi-Fi on to use iMessage while on a call if your network doesn't support simultaneous data and voice calls.
    Restart your device.
    Tap Settings > General > Reset > Reset Network Settings on your iPhone.
    If you are still unable to send or receive an iMessage, follow these steps
    Make sure that the contact trying to message you isn't blocked in Settings > Messages > Blocked.
    Verify that the contact you are attempting to send a message to is registered with iMessage.
    If the issue occurs with a specific contact or contacts, back up or forward important messages and delete your current messaging threads with the contact. Create a new message to the contact and try again.
    If the issue occurs with a specific contact or contacts, delete and re-create the contact in the Contacts application. Create a new message to the newly created contact and try again.
    Back up and restore your device as new.
    Best of luck,
    Mario

  • I have lost the remote that was paired. I bought another remote, but the procedure to pair the new one does not work. I suspect the the AT will work with only one remote at-a-time and i have to unpaid the first before pairing the second. How do I unpair?

    I have lost the remote that was paired. I bought another remote, but the procedure to pair the new one does not work. I suspect the the AT will work with only one remote at-a-time and i have to unpair the first before pairing the second. If this is true, how do I unpair? If not, what can I do?

    I was premature in posting the question. I found the answer in andother posting, and it was successful.
    Thanks, and sorry for the false alarm.

  • My imsg is not working with only one person and her imsg is working perfectly fine with her friends

    My imsg is not working with only one person and her imsg is working perfectly fine with her friends

    See this thread:
    https://discussions.apple.com/thread/5306216?tstart=0
    From Apple:
    MacBook Air (Mid 2013): FaceTime HD Camera might not work after OS X 10.8.5 update
    Yes, a fix is coming soon.

  • Open only one frame

    Hi, I want to open a frame when I run an application. The problem is that that frame is opened always that I run the application, so you can have several opened frames.
    How can I make to open only one frame, and that no frame is opened until I close the first one?
    thanks

    This is with useing a button
    first class
    import java.awt.*;
    import javax.swing.*;
    import java.awt.event.*;
    public class ball extends JFrame implements ActionListener{
      ballball bebe = new ballball();
      public ball() {
      super("My button");
      setSize(400,400);
      setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
      Container pane = getContentPane();
      FlowLayout flow = new FlowLayout();
      pane.setLayout(flow);
       pane.add(bebe.button);
      bebe.button.addActionListener(this);
      setContentPane(pane);
      setVisible(true);
      public void actionPerformed(ActionEvent me){
       Object ob = me.getSource();
       if(ob == bebe.button) {
         bebe.Myothergui();
         bebe.button.setEnabled(false);
    public static void main(String[] args) {
         ball ba = new ball();
    Second class
    import java.awt.*;
    import javax.swing.*;
    import java.awt.event.*;
    public class ballball {
       JFrame frame;
       JButton button = new JButton("my butto");
    public void Myothergui() {
       frame = new JFrame();
      frame.setSize(300,300);
      frame.addWindowListener(new WindowAdapter() {
                public void windowClosing(WindowEvent e) {
                     button.setEnabled(true);
                    frame.setVisible(false);
       frame.setVisible(true);
    GOOD LUCK and learn to use the http://java.sun.com/j2se/1.4/docs/api/ most of your ? can be answered there.Anyways have a good one and STUDY STUDY STUDY

  • Ae cs5 importing seq images all blacked out or only one frame - help

    I created a pan background and keyframed it and it is working fine. I then brought in pngs with transparent background as a seq and the image is all black when they imported into ae cs5 once one image was brought in correctly (the first image of the seq). I have batch converted to psds with same results. What am I doing worng importing in seq to work over the pan background?
    And I have tried PSD image sequence file - it only brings in one frame.
    Message was edited by: l1o1t1r1

    I just did some tests. If you export the png's using the save for web and other devices and png 24 then things work fine with grayscale images. If you save grayscale images as png's directly then the png's are aparently saved as png 8's so they won't work properly in After Effects. Any pixel not completely white is rendered black.
    To be honest I've never run into this before. It may be worthy of a bug report.
    I'm not sure what technique you're using to remove the background from the originals but a jpg made from the original png file can be used as an Luma Inverted matte on a black solid to create the transparency. A little adjustment to the jpg sequence with levels will clean up most of the garbage. This would give you an acceptable result without resorting to a bunch of processing to try and create transparent pngs.

  • Touchpad and keyboard aren't working properly][Only one battery charges

    When charging cable is plugged in, I have no problems, but when I detach it, keyboard and touchpad stops working.If I put my flashdrive into keyboard dock it will do sounds like it's connecting and disconnecting looped. And the second weirdness: it shows that I don't have the second battery.. I checked it in bios and there were displayed two batteries(32wh and 33wh)..I wonder if it's really only one battery charging all the time..  I just bought it yesterday and it is killing me..

    Hi  ,
    Thank you for visiting the HP Forums! A great place where you can find solutions for your issues with help from the community!
    I came across your post about the Notebook, and wanted to assist you! I have looked into your issue about your HP Split 13-m010dx x2  and issues with the charging while detached. When the Tablet part is detached you will not see the other battery and it will not charge as it is detached. The setting you have it on will drain the battery very quickly, Change the setting from High performance to Hp recommended will help. Here is a link to update the battery. Here is a link to troubleshoot the battery. Plug the power adapter directly into a functioning wall outlet. Do not plug it into a power strip, surge protector, or secondary power source as this could cause and issue. The keyboard and TouchPad will not work when the Tablet is detached. This is by default. If this does not help, please use the following link to create yourself a case number, then call and it may help speed up the call process:
    Open link: www.hp.com/contacthp/
    Case number and phone number appear.
    They will be happy to assist you immediately. Thanks.

  • Search is not working for only one site collection

    Hi All,
    I have one issue where users are searching something on a site collection nothing is coming out.  Search is working on web application level but not in only one site collection.
    I checked the crawl log and found  below error for this site collection

    Hi Aditya,
    From the error message, there might be several reasons:
    Configure search time-out settings (Search Server 2010):
    http://technet.microsoft.com/en-us/library/ee808892.aspx
    Please check the user accounts created under the home group that could push the limit of the ACL, and this error message may be occur:
    http://www.sweendog.net/blogengine/post/2012/02/03/The-Filter-Daemon-has-Timed-Out.aspx & http://sharepoint.stackexchange.com/questions/26755/sharepoint-2010-search-server-not-crawling-content-due-to-filter-daemon-timeout
    Make sure the search service account has access to SearchIndex share:
    http://www.sharepointsecurity.com/sharepoint/sharepoint-development/fixing-the-filter-daemon-did-not-respond-within-the-timeout-limit-error/
    If the links above doesn’t help, please collect more error message in ULS log for troubleshooting.
    Regards,
    Rebecca Tu
    TechNet Community Support

  • IWeb hyperlinks working on only one page

    Hi,
    I'm building a website with iWeb - www.dariusenakim.nl
    It's in Dutch so the words won't mean anything to you but it's a fairly simply product with just four pages in total:
    Home, Work, About Us, Contact
    When you go to the site you arrive at Home (I did not make it so, this was default. I guess it recognized the Home.html? - another question) and all the hyperlinks at the top work. However whenever you click on one you go to the directed page but there the exact same hyperlinks are not recognized as hyperlinks any more. It's the exact same lay-out for all pages but only one of four is working!
    Can anyone help me solve this problem? I've already tried moving the images up or down (the whole header-layer discussion) but it doesn't make any difference and the lay-out as it is seems to be working flawlessly on the first page (home), so why not on the others? I've also tried not using links to internal pages but external links to the actual website address but no difference: only the first page is working.
    The really strange thing is that I have an alternative Home page set up: www.dariusenakim.nl/Home_Alt.html
    This was just a test to see if we wanted another lay-out but we didn't go for it. However on this page the hyperlinks are also working!!
    Please advice. Thanks in advance.
    ps. iWeb 3.0.4 (304) developped in 2011

    Hi Wyodor,
    If that was the case why would the exact same lay-out work on the first 2 pages but not on the others? Does the body layer alter its size randomly so that sometimes the images are in the wrong layer and sometimes not? Even with duplicating the exact same page?
    Will try later tonight anyway but like I said: it doesn't make any sense it's 4 times the same page with just different content beneath it...

  • JMS Queue working with only one AIA instance.

    Hi,
    We are having a Web-Logic JMS Queue configured for an instance. I have developed a consumer in AIA instance to pull the messages from the Queue.
    And this works fine.
    Now I have an another instance consumer which is pointing to the same Queue, but it fails to get the messages from it.
    I have switched off the consumer in the FIRST instance, but even then consumer from the SECOND instance was not able to pull the messages.
    Later, I tried switching on the consumer of the FIRST instance, and all the messages were pulled in this instance.
    So how can I make it work with two AIA instances and one JMS Queue, provided only one AIA instance consumer is active at a time.
    Thanks in Advance.
    Regards!

    * Likely your best bet is to check your server logs for "Error" and "Warning" messages, and/or, since these questions are specific to AIA's usage of JMS, post your questions to the AIA newsgroup.
    * WL JMS does not impose a limit on the number of consumers on a queue, but it does only allow one named connection with the same "client id" to connect at a time. Its unusual to name connections in queueing applications, but possible - and AIA may be doing this. (If this is the problem there should be "client id in use" style log messages or exceptions.)
    * Another possibility is a misconfiguration of your remote consumer. Make sure the URL is correct, and remember, if an application is running in the same cluster as the remote destination, don't specify a URL.
    * Also, if the remote consumer is running in a different domain, make sure the domains are named differently, and that no two JMS servers in the two domains have the same name (as per the unique naming restrictions documented in the Best Practices section of the JMS configuration guide -- http://download.oracle.com/docs/cd/E14571_01/web.1111/e13738/best_practice.htm#CACJCGHG ).
    Regards,
    Tom

  • Time Delay works for only one step

    HI
    I have a vi (not programmed by me but I was told to make few changes in it) in which there is a time delay. When I apply time delay it works for the first step and the delay doesnot work for the later steps. I tried to make few changes but it is effecting the other parts of the vi. I'm fairly new to Labview. Could someone please tell me what modifications do I need to do for the time delay to work perfectly. Thank you in advance
    Best Regards
    Pratheek
    Attachments:
    vi.zip ‏334 KB

    Jeff·Þ·Bohrer wrote:
    crossrulz wrote:
    Your Time.vi is set to be non-reentrant.  What this means is that only one instance of it can run at a time.  So if you call it twice, the first one will start running but the second call must wait until the first is complete before it can start.  To change the reentrancy, go to the VI Properties and then to the Execution section.  You want to choose "Shared Clone Reentrant Execution".
    Pre Allocated
    Get them their own data space so the local variable doesn't bang its head
    I knew somebody was going to say something there.  They really don't have their own data space that they need to maintain.  So it doesn't really matter which reentrant type they choose.
    There are only two ways to tell somebody thanks: Kudos and Marked Solutions
    Unofficial Forum Rules and Guidelines

  • Mail does not work with ONLY ONE e-mail address

    I am using mail with 6 different e-mail addresses all using godaddy as my mail server. Some(4) are imap, some(2) are pop3.
    All of my e-mails work great except for 1 (which is imap). My iPhone and iPad as well as entourage all work for this e-mail address. It is only Mail that does nto work all the time.
    This is the frustrating part. It works some times, and not others. No rhyme or reason to it. When it is not working, the only way to make it work right away is to delete the account and re-install the account. Some times, it will just start working on it's own. The worst part, is whenever I bring it in to a genius to look at it, it starts working, and of course, they say nothing is wrong.
    Any thoughts on how to fix this???

    Okay, it works the same way for me. I'm not sure whether "open all" will come back in that case, where there's only one bookmark. Does it slow down your workflow a lot to middle-click on the bookmark itself instead of on the folder?
    Requests for feature changes get a bit lost here in the support forum. You can submit suggestions in one or more of the following ways:
    (1) Feedback site: https://input.mozilla.org/feedback
    (2) Developer mailing lists (sometimes hard to figure out which one is best): https://lists.mozilla.org/listinfo
    (3) Bug tracking system (yours would be a request for enhancement): https://bugzilla.mozilla.org/ and https://developer.mozilla.org/docs/Mozilla/QA/Bug_writing_guidelines
    With all the bookmark-related extensions out there, it's possible someone has posted one that adds this feature back, but I haven't searched.

Maybe you are looking for

  • Delivery scheduling in BAPI_SALESORDER_SIMULATE

    Hi Experts, I have a problem with schedule lines in BAPI_SALESORDER_SIMULATE. If ordered quantity is larger than ATP I get a strange scheduling because all of the ordered quantity is postponed to a later date. For me it seems as partial delivery woul

  • Help me, driver's HP G42- 455TX .

    Dear Modes!  I've just reinstalled window7 ultimate-32 bits for my laptop HP G42- 455TX  but lacks some drivers. please help me to get enough. 1, AMD High-Definition Graphics Driver  2, Realtek High-Definition (HD) Audio Driver  3, Synaptics TouchPad

  • No connection between camera and new MAC

    I just bought a new computer and want to upload my photo's from my camera (D 7100) in CS6, but nothing happens at all! Yesterday on my ols MAC it just worked fine. Does anybody know what to do?

  • ARCHIVING FI_DOCUMNT

    Greetings Everyone! l'm struggling when running the archiving job for the Object FI_DOCUMNT. The job log says that 'PERIOD VERSION IS NOT DEFINED' and nothing is archived at all. Would you guys happen to know what's going on? am l missing some config

  • My ipod won't go to disk mode...

    I installed a different OS on my ipod, and there was some error and now it won't go to disk mode to be recognised by my computer...what do I do now?