Open and Close Shelf Effect

Relative newb to Flash and not sure what the issue is but I have a shelf opening and closing effect  The timeline is 45 frames long and when the shelf is out it has this AS3 code in it:
import flash.events.MouseEvent;
stop();
ShelfOpen,addEventListener(MouseEvent.CLICK, closeShelf);
function closeShelf(evt:MouseEvent){
gotoAndPlay(17);
Once clicked, the shelf closes and only a sliver of the shelf appears.   The person can re-open it by clicking the sliver at frame 30 using this code:
import flash.events.MouseEvent;
stop();
ShelfOpen,addEventListener(MouseEvent.CLICK, openShelf);
function openShelf(evt:MouseEvent){
gotoAndPlay(31);
In the last frame (45) I have the code:
gotoAndStop(16)
which should return the shelf to its open position and allow the user to close it again if they click in the shelf, but it seems to be listening at at frame 30 and just running the Open Shelf motion again.  I would just like the user to be able to open and close the shelf as they like.  Any help would be apprecaited.
-DC

See if removing the event lsteners in the event handlers helps, as in...
ShelfOpen.addEventListener(MouseEvent.CLICK, closeShelf);
function closeShelf(evt:MouseEvent){
   ShelfOpen.removeEventListener(MouseEvent.CLICK, closeShelf);
   gotoAndPlay(17);
(similarly for the other)
and make sure you are not using commas after ShelfOPen like you did in the code you posted.

Similar Messages

  • IChat opens and closes repeatedly

    I've seen this come up in discussions a few times but without answers.
    iChat opens and closes repeated then tells me I've logged in too many times and to try again later. BUT... this only happens on one particular Airport connection. Everywhere else is fine. Is it the wireless router that is the problem... some compatibility issue? Is that the issue for the other people getting this problem too, perhaps?
    Any ideas how to fix this?

    Hi,
    From that (9C7010) I can see that you have done the Time Machine and Airport Update.
    I presume this updates the specs for the Airport Card as well as adjusting the Airport Devices themselves to Apple's version of the latest 802.11n draft spec.
    I would have then said that it was effecting the connection presumably as this is now out of step with the firmware on the Netgear, but you say other Internet features work.
    First I would delete the com.apple.iChat.AIM.plist from Users/(your account)/Library/Preferences
    Then I would see if this Netgear is set to Respond to Internet Pings and has the Block Port Scan and DOS (or SPI) turned Off.
    As test I would see if the N spec can be turned off in the Netgear and use the G only.
    4:39 PM Sunday; April 6, 2008

  • Find open and close smart quotes

    Dear scripter,
    Here I am trying find whether all the open double smart quotes(") are closed with close double smart quotes("). Here is my small work to find how many open and close quotes.
    myopenqu=app.activeDocument.search("^{", false, false, "^{");
    myclosequ=app.activeDocument.search("^}", false, false, "^}");
    myopenqulength = myopenqu.length;
    myclosequlength = myclosequ.length;
    if(myopenqulength!=myclosequlength)
    alert("Quotes not matched\n"+ myopenqulength +" Open quotes found\n" + myclosequlength +" Close quotes found")
    It works well, the script just alert if I have 25 open quotes and 23 close quotes
    Quotes not matched
    25 Open quotes found
    23 close quotes found
    Now I want to find the quote set where the 24,25th set close quotes are missing?
    Is there any way to find the misisng quotes
    Thanks in advance
    regards
    a r u l
    vpublish.net

    You'd have to look for unmatched quotes, in this case two cases of two open quotes without an intervening closed quote. This is difficult to script in CS2 because it doesn't have GREP natively and because of footnote problems. In CS3/4 it should be possible. But even then it will work only if you don't have quotes within quotes.
    Peter

  • Report OPEN and CLOSE in computers client

    Post Author: B.prata
    CA Forum: Crystal Reports
    I have an application developedin Visual Basic with report in the CR 4.6, but in the computers customers when I will access the application,I try to emit a report , it opens and close the report. What can be?

    There is no FaceTime app for the iPhone if that's what you're asking.  FaceTime is accessible through your Contacts as one of the options in how to contact a person -- there is no standalone FaceTime app for iPhone.
    If you mean how to disable FaceTime, you can do that in Restrictions (Settings/General/Restrictions).

  • Since installing LTR 5.4, which I've now upgraded to 5.6, I've encountered repeated slowness and malfunctions in operations, especially when using the Compare View function and the Tab key to open and close the right and left side panels.  Such problems n

    Since installing LTR 5.4, which I've now upgraded to 5.6, I've encountered repeated slowness and malfunctions in operations, especially when using the Compare View function and the Tab key to open and close the right and left side panels.  Such problems never arose during two years of using LTR-4 and nothing else has changed on my computer.  I have a pretty simple system with only a few plug-ins, which are usually not in operation.  I have 12GB of RAM in my Windows 7 PC.  I could illustrate these problems with screen shots if you would tell me how to submit screen shots.  Otherwise I will try to describe the problems in words.
    The problem is clearly cumulative, growing worse as usage time passes.  Compare View feature gradually slows down and eventually seems to choke as my work session proceeds. If I Exit LTR and re-enter and start all over, things will work normally for maybe 30 minutes, but then the Compare View feature begins to become very slow to respond.   In a recent example with my screen full of thumbnails in Library mode I highlighted two images to compare. LTR started to open the Compare View screen by first having the top row of thumbnails disappear to be replaced by the "SELECT" and "CANDIDATE" words in their spaces  (but no images), but Compare View never succeeded in gaining control of the screen. After some seconds the top row of thumbnails reasserted its position and the Compare View windows disappeared. But LTR kept trying to bring them back. Again the top row of thumbnails would go away, Select and candidate would reappear, try again, and give up. This went on for at least 2-3 minutes before I tried to choose File and Exit, but even that did not initially want to respond. It doesn't like to accept other commands when it's trying to open Compare View. Finally it allowed me to exit.
    To experiment I created a new catalog of 1100 images.  After 30-40 minutes, the Compare View function began to operate very slowly. With left and right side panels visible and two thumbnails highlighted, hitting Compare View can take half a minute before the two mid-size  images open in their respective SELECT and CANDIDATE windows. When the side panels are open and two images are in the Select/Candidate spaces, hitting the Tab button to close the side panels produces a very delayed response--25-30 seconds to close them, a few more seconds to enlarge the two images to full size. To reverse the process (i.e., to recall the two side panels), hitting Tab would make the two sides of the screen go black for up to a minute, with no words visible. Eventually the info fields in the panels would open up.
    I also created a new user account and imported a folder of 160 images. After half an hour Compare View began mis-placing data.  (I have a screen shot to show this.)  CANDIDATE appears on the left side of SELECT, whereas it should be on the right. The accompanying camera exposure data appears almost entirely to the left of the mid-screen dividing line. Although the Candidate and Select headings were transposed, the image exposure data was not, but the data for the image on the right was almost entirely to the left of the line dividing the screen in two.
    Gurus in The Lightroom Forum have examined Task Manager data showing Processes running and Performance indicators and they see nothing wrong.  I could also send screen shots of this data.
    At this point, the only way I can process my images is to work 30-40 minutes and then shut down everything, exit, and re-start LTR.  This is not normal.  I hope you can find the cause, and then the solution.  If you would like to see my screen shots, tell me how to submit them.
    Ollie
    [email protected]

    Since installing LTR 5.4, which I've now upgraded to 5.6, I've encountered repeated slowness and malfunctions in operations, especially when using the Compare View function and the Tab key to open and close the right and left side panels.  Such problems never arose during two years of using LTR-4 and nothing else has changed on my computer.  I have a pretty simple system with only a few plug-ins, which are usually not in operation.  I have 12GB of RAM in my Windows 7 PC.  I could illustrate these problems with screen shots if you would tell me how to submit screen shots.  Otherwise I will try to describe the problems in words.
    The problem is clearly cumulative, growing worse as usage time passes.  Compare View feature gradually slows down and eventually seems to choke as my work session proceeds. If I Exit LTR and re-enter and start all over, things will work normally for maybe 30 minutes, but then the Compare View feature begins to become very slow to respond.   In a recent example with my screen full of thumbnails in Library mode I highlighted two images to compare. LTR started to open the Compare View screen by first having the top row of thumbnails disappear to be replaced by the "SELECT" and "CANDIDATE" words in their spaces  (but no images), but Compare View never succeeded in gaining control of the screen. After some seconds the top row of thumbnails reasserted its position and the Compare View windows disappeared. But LTR kept trying to bring them back. Again the top row of thumbnails would go away, Select and candidate would reappear, try again, and give up. This went on for at least 2-3 minutes before I tried to choose File and Exit, but even that did not initially want to respond. It doesn't like to accept other commands when it's trying to open Compare View. Finally it allowed me to exit.
    To experiment I created a new catalog of 1100 images.  After 30-40 minutes, the Compare View function began to operate very slowly. With left and right side panels visible and two thumbnails highlighted, hitting Compare View can take half a minute before the two mid-size  images open in their respective SELECT and CANDIDATE windows. When the side panels are open and two images are in the Select/Candidate spaces, hitting the Tab button to close the side panels produces a very delayed response--25-30 seconds to close them, a few more seconds to enlarge the two images to full size. To reverse the process (i.e., to recall the two side panels), hitting Tab would make the two sides of the screen go black for up to a minute, with no words visible. Eventually the info fields in the panels would open up.
    I also created a new user account and imported a folder of 160 images. After half an hour Compare View began mis-placing data.  (I have a screen shot to show this.)  CANDIDATE appears on the left side of SELECT, whereas it should be on the right. The accompanying camera exposure data appears almost entirely to the left of the mid-screen dividing line. Although the Candidate and Select headings were transposed, the image exposure data was not, but the data for the image on the right was almost entirely to the left of the line dividing the screen in two.
    Gurus in The Lightroom Forum have examined Task Manager data showing Processes running and Performance indicators and they see nothing wrong.  I could also send screen shots of this data.
    At this point, the only way I can process my images is to work 30-40 minutes and then shut down everything, exit, and re-start LTR.  This is not normal.  I hope you can find the cause, and then the solution.  If you would like to see my screen shots, tell me how to submit them.
    Ollie
    [email protected]

  • My apps dance open and close on their own in my IPad 2 what can be the prob? I have already restored

    I got the charger flex or pin changed and now the apps dance on the screen, photos open and zoom in, then out, the other apps open and close. I have already restored the device with Itunes and prob is still there. What can be the problem? Any suggestion will be welcome. Thank you

    THANKS for your prompt reply  Bluetooth is off in my laptop and IPhone.. and in fact the reset is the only thing that can make it back to normal. But for a lil while. I wonder if it is the touch, or the home botton... both things are very expensive to replace, so I wouldn't like to spend $$ and continue having the prob.....

  • Apps in iPad 1 open and close quickly

    Hello,
    My mother has an iPad 1 (she has her own itunes account) but had never synced and updated her iPad with a computer (pc or mac).
    Today I had to use it and connected to my iTunes on the pc but only to update her iOS on the iPad wich was 3.x. After the whole update process (wich went normal and smooth) almost every app that I woud open, closed imeadtly. I say ALMOST because, a few from the default apps (like Mail, Photos, Safari, System, etc) opens normaly. Though iBooks doesnt and all 3rd party apps also doesnt open normaly.
    I've tryed to reboot it one more time thinking it was some kind of strange bug or something but didn't work. The apps continue to open and close almost instantly.
    I'd like to know if anyone had a similar problem and how they solved it or if my only resource is to roll back to the iPad backup made in my pc.
    Thanks in advance.
    Luis Felipe

    Try double-tapping the home button, then holding the app icon until the minus sign appears. Touch the minus sign to kill all the apps. Then restart the iPad with the home/power buttons (hold for ten seconds) until the apple appears.

  • Where we have to open and close posting periods in asset accounting

    hi sap gurus
      can anybody give where we have to open and close posting periods in asset accounting
    thank you
    venkatareddy

    Hi Venkatareddy,
    You make specifications for fiscal years and posting periods in the SAP R/3 System in Customizing for Financial Accounting. This is done in the fiscal year variant in the global parameters of the company code. These settings are, in general, also binding for Asset Accounting. The depreciation periods in Asset Accounting then correspond to the posting periods in Financial Accounting.<b> It is usually not necessary to create a separate fiscal year variant for Asset Accounting.</b>
    The period control in the depreciation key determines the start and end of depreciation when asset transactions are posted . The period control determines the relationship between the calendar period in which the asset transaction is posted and the depreciation period.
    These calendar periods are independent of the posting periods in Financial Accounting. The only restriction is that the beginning of the first calendar period and the end of the last calendar period defined in a period control have to match the start date and final date of the fiscal year in Financial Accounting.
    Kindly let me know if this useful for you

  • How can I enable the center mouse click to open and close tabs in Firefox and Chrome?

    I have a MacBook Pro Model A1261 purchased in 2009. On my other mac at work (and my PC) I can center click to open a link in a new tab while in Chrome or FireFox, and also to close a tab by clicking on it in the tabs at the top. I am using an external USB mouse on my MacBook Pro and when I click the center scroll wheel it brings up the dashboard. I looked in the settings but wasn't able to find a way to change that setting for the center button to open and close tabs in my web browser. Is there a way? Please help!

    You can restore the zoom feature by changing the values of the related prefs on the <b>about:config</b> page.
    * browser.gesture.pinch.in -> <b>cmd_fullZoomReduce</b>
    * browser.gesture.pinch.in.shift -> <b>cmd_fullZoomReset</b>
    * browser.gesture.pinch.out -> <b>cmd_fullZoomEnlarge</b>
    * browser.gesture.pinch.out.shift -> <b>cmd_fullZoomReset</b>
    * browser.gesture.pinch.latched -> <b>false</b>
    *http://kb.mozillazine.org/about:config
    See also:
    *pinchy: https://addons.mozilla.org/firefox/addon/pinchy/

  • What is the better way to open and close connection in bean

    Hello, may i ask about the best way to open and close the connection?
    At the first, the connection code is store in Conn class bean. The JSP page will call a method in Process bean to process the query and update of database. the Process bean is using th Conn to connect to database.
    In my process bean, it have a method for each type of sql like select, insert, update, and delete for each tables. Each method will call the Conn to open and close the connection. The jsp page can simply call a method retrieve or update records.
    However, when calling the processUpdate method, it is a method that update a group of tables base on the query result of another group of tables and calculation. If I calling the query method in the same bean file, it will open and close the connection many times (more than 1000 times). After open and close the connection several times, the connection to mySQL will be fail.
    Currently, i include 2 method in Process that is only calling the Conn to open the connection and close connection. When calling the openConnection method, it will also set the boolean connected in the class to true and call Conn to open connection. When calling the closeConnection method, it will also set the boolean connected in the class to false and call Conn to close connection.
    After that, i add some change to the query method which is when the connected is false, it will open the connection by calling the Conn and close the connection themself. If the connected is true, it will not call the Conn to open and close the connection because it already connected to the database.
    Now, i when i calling the query method in jsp, it can open the connection and close the connection individually. When i call the processUpdate in the jsp, this method will calling the openConnection before calling the query and calling closeConnection at the end. It not only faster the process(less open and close), it also no cause the connect to mySQL fail error again. However, it also make the coding in the bean file more longer and complex.
    Is there have any better solution?

    Use connection pooling. This will put the connection management in the hands of the webserver, not your code. Check out this post:
    http://forum.java.sun.com/thread.jspa?threadID=741788&messageID=4252932#4252932

  • Any way to see ICONS in Open and Close Dialog boxes?

    Is there any way to see ICONS in Open and Close Dialog boxes, instead of just lists of items names?
    I know you can preview one at a time, but I'd love to see all my artwork as picture icons, just as you can in a finder window.
    Windows does this, but not OSX that I know of. Is there a third party app that enables you to see icon view in the Open and Close Dialogs?

    Thank you Steve Jobs. I guess that feature has been added in Leopard. Now there really is nothing that I'll miss from Windoze.

  • Two intervals in Open and Close Posting Period (OB52)

    What is the purpose of the two intervals (period 1 and period 2) in Open and Close Posting Periods (transaction OB52)?

    Hi,
    Financial statements cannot be prepared on the last day of the accounting period... to find out the correct profit and to determine the correct financial positing... sometimes you may require to make some adjustment  to accounting records after the closing of the accounting year... like adjustments for expenses payable, income receivable, writting off bad debts ...etc. 
    For posting those transactions....period 2 is maintained ..which are also called as special periods... to make the postings in these periods ...special authorisation is required..... 
    Period 1 is for regular postings ...
    Radha

  • Open and Close Posting Period (OB52)

    Dear Experts,
    My client wants to close the posting period of the previous month. 
    First I went to transaction OB52 to define an entry From Per. 1 2008 To Per. 12 2009 to open all the posting period for the year.  But when the time passes, do I have to manually change the From Per. back to the current month (e.g From Per.1 2008 changed to From Per. 2 2008 and so on)
    If this is the case, is there any way to make this a automatic function to do this.
    Points will be rewarded.
    Thanks.

    Hi,
    You define posting periods in your fiscal year variants. You can open and close these posting periods for posting. As many periods as you require can be open for posting simultaneously. Special periods can be open for closing postings during the period-end closing.
    You have the following options for opening and closing posting periods:
    - Posting Period Variants: You can specify which company codes are open for posting in a posting period variant. Posting period variants are cross-company code and you have to assign them to your company codes.
    - Account Type: You can differentiate the opening and closing of posting periods by account type. This means that for a specific posting period, postings can be permitted to customer accounts, but not to vendor accounts.
    - Account Interval: You can differentiate the opening and closing of posting periods by account intervals. This means that you only open a posting period for posting to a specific account.
    Path for making the settings for opening and closing posting periods:
    Customizing for Financial Accounting under Financial Accounting Global Settings -> Document -> Posting Periods
    For detailed example for opening and closing posting periods please refer the link below:
    http://help.sap.com/erp2005_ehp_03/helpdata/EN/96/8b300943ce11d189ee0000e81ddfac/frameset.htm
    I hope it will help.
    If helpful, please assign points.
    Regards,
    Manju

  • Open and Close Front Panel of SubVI

    Hi all,
    Running LabVIEW 2011 on Windows 7 x64.  I am trying to get a subVI front panel to open from my main FP with the press of a button and then close with a button press in the subVI.  Here is the piece from my main FP that calls the VI and opens the FP 
    Plots is defined in another loop and all of the loops are in a flat sequence.  I did it this way because I want it to start with the first press and not stop my main loop from running.  I have moved the item in the left loop around a lot so I'm not sure if I can run that in the same loop as the event or not.  Either way opening the VI seems to work fine.
    The problem shows up when trying to close the subVI for the SECOND time.  The code is here:
    As I said, the first time I open and close the VI everything works as I expect it should.  I am then able to open it again but now the "blank button" doesn't function and I can't close the window or even open the block diagram to probe anything.  I have been trying to figure this out for awhile, any insite would be greatly appreciated!
    Thanks
    Solved!
    Go to Solution.

    Its good that you found the bug.
    This code may serve as a way for you to compare notes.
    Ben
    Ben Rayner
    I am currently active on.. MainStream Preppers
    Rayner's Ridge is under construction

  • Open and close posting periods urgent! (ob52)

    Hi SAP gurus,
    i am trying to post open and close balances (it is spesific to my country) however i do not want users to post to 2007 except me.
    how can i achieve this with not blocking all users.
    in other words, i need authorization to post last year although it is closed for all users.
    note: can you pls explain the difference btw "from period 1" and "from period 2"  in OB52. and also there is an authorization group at the last column what does this mean?
    thx in advance.

    Hi,
    If you stand on the field "authorization group" and use "F1" you can find the help on that field, you will find that it is very helpful.
    You should define period 2 for all users and period 1 to the restricted users,
    Next, you should assigned a free symbol in the field "authorization group" (which refer to period 1), then ask the person that responsible in your organization of the authorization to assign the authorization object F_BKPF_BUP with that specific symbol to the restricted users,
    That should do the job.
    If that helps, feel free to assign points…
    Kind regards,
    Yoav

Maybe you are looking for

  • Using iTunes to organise apps?

    I like the folder concept on my iPhone, but would love to have folders or some other means of organisation in iTunes so I could quickly load certain apps onto my iPhone. Say, for example, I have several apps all related to one activity or one interes

  • TREX: delete single records in an index

    Hey guys, is there a way to delete one single record on a TREX index? I am using function module TREX_EXT_UPDATE_DOC_ATTRIBUTES. I don't want to delete the whole index because it takes to much time to build it up again. Therefore i want delete single

  • Purchased the master suite and premiere pro does not open

    purchased the master suite and premiere pro does not open

  • Can not download the App from App Strore

    I don't know what's going on that I can not download the app from App Store using my iPad2. but I can download the app from App Store using my iphone 3S.

  • Iphone 4S Stuck in Recovery Mode

    I tried restoring it from itunes and it doesn't work, I youtubed videos and downloaded Tiny Umbrella, didn't work and also redsn0w.. did not work. Help! My home button is broken which puts a hinder on things as well.