Stupid button tricks

OK, try this simple test with me.
In Flash CS3, make a new AS 2 movie.
Create three named frames, ten frames apart - call them "s1"
"s2" and "s3". Do not use Scenes.
Make an actionscript layer. On the first frame of each of
these named sections, put a "stop();" in the actionscript layer.
Create a button on the stage. Let's call it "btn1" -- you can
name it's instance "btn1", too, if you like, we don't care.
Convert the button to a movie clip. Call it "mc btn" or
whatever. So now we have a button wrapped in a movie clip.
Make two copies of the movie clip, so now we have three movie
clip/buttons instances on stage. Name the movie clip instances "b1"
"b2" and "b3"
Extend the span of these movie clip buttons across all three
named markers, so they're on stage the whole time. No keyframes
necessary, just insert frames (F5) for their layer around frame 30
or so.
Put something else innocuous on stage for each of the
sections, so that you can distinguish between the named frames, so
you know you arrived there, e.g., a static text label that says
"s1" "s2" or "s3"...
Add this script into the actionscript layer on frame 1, after
the stop();
this.b1.onMouseUp = function () {
_root.gotoAndStop("s2");
this.b2.onMouseUp = function () {
_root.gotoAndStop("s3");
this.b3.onMouseUp = function () {
_root.gotoAndStop("s1");
So, button 1 is supposed to take us to s2, button 2 will take
us to s3 and button 3 will return us to s1.
Test the movie.
Click on any of the three buttons. It will take you to "s2"
In s2, click on any button. It takes you nowhere.
Even if you copy/paste the button scripts into the first
frame of the s2 and s3 actionscript layer, there is no difference.
All buttons take you to s2.
Furthermore, if I click ANYWHERE on the stage, not even on a
button, it still takes me to "s2"
What kind of madness is this?
I know there must be a simple answer, but this is completely
counter-intuitive.

Thanks, all.
Just to clear up a couple of points -- the buttons run the
whole span from frame 1 to frame 30. That's what I was trying to
say about insert frames.
One question -->
>>onMouseUp is a mouse event, not a movie-mouse
interaction<<<
So, it's a different command than onClipEvent (mouseUp)? Man,
that is GENIUS! That's almost as brilliant as having the same hot
keys mean different things depending on which window is in the
forefront! (snark snark)
Also, as to why a button inside a movie clip...
The system I'm building is going to run on a touch screen
monitor, off a proprietary digital signage box running a version of
XP embedded (i.e., not a real computer) and ELO touch screen
drivers. They claim to "support Flash" and it's my job to make it
work.
There's just a few problems!
The only two button-related commands the system recognizes
are roll over and mouse up.
It does not understand nor respond to Press, Release, Roll
Out, Mouse Down, etc. So I need my only two available commands
available to me in any button I'm going to use.
Of course, since this is a touch screen, there really is no
such thing as roll over. That's just what it interprets when you
mouse down or drag over a button. Another problem is what happens
when we move to another screen where a new button resides in the
same spot as the button you last clicked. It automatically thinks
you're rolled over, of course, and you can't click on the same
button to get a mouse up until you click elsewhere on the screen.
This is one of those few times where being able to send the
cursor to another location on the screen (e.g., 0,0) via code would
be desirable.
Definitely a PITA!
But that is for another day and another thread..
I probably could have figured this out, but I appreciate the
help after a long and frustrating haggle.
My thanks again.

Similar Messages

  • On starting up my new iPhone 4s, it freezes on the apple logo. I have tried the reset buttons trick and have tried restoring again too but nothing works. Any other ideas? Or is the phone simply corrupt in some way?

    On starting up my new iPhone 4s, it freezes on the apple logo. I have tried the reset buttons trick and have tried restoring again too but neither works. Any other ideas? Or is the phone simply corrupt in some way?

    Did you try to connect in recovery mode and restore without using the latest backup?
    Recovery mode and  How to back up your data and set up as a new device
    If setting up as new device does not work, you'll have to get it serviced or looked at by visiting an Apple Store.
    Did you try to remove the ipsw firmware file and restore, to make iTunes download a new copy from Apple?
    Those files are located here:
    Rename, move, or delete the iOS software file (.ipsw)
    iTunes uses "ipsw" files to restore your iPod or iPhone. If those files are unusable, then try deleting them, renaming them, or moving the file to a different directory. This will cause iTunes to download a new copy of the IPSW. When a restore issue is specific to a user, it is likely due to an unusable .ipsw file. If removing the .ipsw file does not resolve a user-specific restore issue, then the issue is caused by other user-specific security software settings or iTunes preferences. Creating a new user will also cause new .ipsw restore files to be downloaded in the new user. You can find the ".ipsw" files in these locations:
    Mac OS X
    iPhone
    ~/Library/iTunes/iPhone Software Updates
    iPad
    ~/Library/iTunes/iPad Software Updates
    iPod touch
    ~/Library/iTunes/iPod Software Updates
    Note: The tilde "~" represents your Home directory.
    Windows 7 and Vista
    iPhone
    C:\Users\[username]\AppData\Roaming\Apple Computer\iTunes\iPhone Software Updates
    iPad
    C:\Users\[username]\AppData\Roaming\Apple Computer\iTunes\iPad Software Updates
    iPod touch
    C:\Users\[username]\AppData\Roaming\Apple Computer\iTunes\iPod Software Updates
    Note: If you don't see the AppData folder, you may need to show hidden files.
    Message was edited by: Ingo2711

  • HT201263 I'm so disgusted! I just realised I will lose the photos of my daughter's birth... And why??? because I pushed a stupid button for a software update???? Apple,..I need a solution. I haven't paid this device to have this kind of issues.

    I'm so disgusted! I just realised I will lose the photos of my daughter's birth... And why??? because I pushed a stupid button for a software update???? Apple,..I need a solution. I haven't paid this device to have this kind of issues.
    My Iphone is still in the recovery mode and I don't know if there is a way to restart it without losing my photos? I made the last backup months ago...:(((

    I'm a little confused. At what point did the phone go into Recovery mode? Did you just leave it alone for awhile after you clicked the update button? I just updated my phone, and after the initial download, the phone restarted itsef a couple of times, installing the update in the process. When you do an update, you need to leave your device alone until it is completely done.
    As far as your photos go, sorry, but if you have not backed them up, and you are truely in Recovery mode, then you won't have any way to restore them.
    Are they in your Photo Stream in iCloud by any chance?
    If not, and you have to do a Recovery, then you won't be able to restore them from a backup.
    But if they were so important, why wouldn't you have backed them up?
    You cannot blame Apple for this. What if your phone had been stolen, or you had lost it? You would be in the same boat - you would lose your photos.
    So, two things:
    Are you sure your phone isn't just completing the update? Have you let it do it's thing for 20 or 30 minutes? If not, leave it alone and see if it is in the same condition in 30 minutes.
    If you have, then determine if you have those photos in your Photo Stream. If you do, then they should still be there when you restore your device and sign back onto iCloud.
    Cheers,
    GB

  • My IPad Mini Wont Turn On even with the sleep/wake button trick wont work

    My IPad Mini Wont Turn On even with the sleep/wake button trick wont work.
    what do i do?

    It sounds like it's time to get Apple to check it out for you ...
    Apple Support
    http://www.apple.com/support/
    Apple Retail Store - Genius Bar
    http://www.apple.com/retail/geniusbar/

  • Is there anyway to remove the "undo" from the screen keyboard? That stupid button has cost me a page and a half of notes. And no, the "redo" didn't bring the notes back.

    The subject says it all any way to lose the stupid "undo" button from the keyboard? O maybe get my notes back?

    I feared as much.
    Thanks.

  • Downloading app seems to have crashed ,now have striped screen and wont turn off, tried the 2 button10sec trick but still nothing dturn off, tried the 2 button 10secill not turn off tried the 10sec two button trick still not working any suggestions please

    while downloading apps seems to have crashed ,now have striped screen and wont turn off, treid the 2 button 10sec trick but still not responding any suggestions please ?

    Try here:
    iOS: Not responding or does not turn on
    If not successful, let the battery fully drain. Then charge for an hour and try again.

  • Simple button trick ?!

    Hi there, let's say i have to make a button and when I press
    it a rectangle will appear next to it.
    So, I create a new button, I make a new frame key in the
    "down state" of the button and create there a rectangle.
    Sounds good? But when I press the button -> the rectangle
    appears, then I release the button--> the rectangle disappears.
    My question is how could this rectangle stay there without
    disappearing even when I release the button!
    Should I create a new key frame with my button and the
    rectangle and make my button point to this frame when pressed? Or
    is it a better way?

    If you are not comfortable with Actionscript then the best
    method for you to do this would be to create a new keyframe and
    point the button there.
    The "better" way would be to do it with code. Something
    like......
    myBtn.onPress = function(){
    var rectMC:MovieClip =
    _root.createEmptyMovieClip("myRect",_root.getNextHighestDepth());
    rectMC.beginFill(0x000000,100);
    rectMC.moveTo(0,0);
    rectMC.lineTo(this._width,0);
    rectMC.lineTo(this._width,this._height);
    rectMC.lineTo(0,this._height);
    rectMC.lineTo(0,0);
    rectMC.endFill();
    rectMC._x = this._x + this._width;
    rectMC._y = this._y;
    This code goes in the frame actions. The gist of it is this:
    When I press the button with the instance name "myBtn" create
    a new movie clip on the root level with the name "myRect" at the
    next highest depth. Then draw a rectangle into the new movie clip.
    beginFill(0x000000,100) starts the fill for the movie clip - black,
    100 alpha. moveTo(0,0) initializes the drawing point. The next line
    initializes the stroke for the rectangle - 1 px thickness, medium
    gray, 100 alpha. The next 4 lines actually draw the rectangle
    sides. rectMC.lineTo(this._width,0); draws a line from 0,0 to the
    width of the button,0. Next we go down from that width to the
    height of the button, then back across the bottom, and finally back
    to 0,0 to finish the rectangle. Finally, the code moves the
    rectangle movie clip to the point that is flush with the right side
    of the button.
    This is considered "better" because you can reuse this code
    wherever you want to, and you can add conditions to it to add, say,
    more rectangles to the stage after the first is drawn.

  • My iPod Touch 5 won't turn on.A minute before it was working perfectly fine and then i locked it. after an hour when i check on my itouch. it won't open. they say try to restart it using the lock home button trick.My home button is broken what to do?

    please someone help me now.

    Connect the iPod to your computer and restore via iTunes
    iTunes: Restoring iOS software
    If still problem, make an appointment at the Genius Bar of an Apple store since it appears you have a hardware problem besides the Home button.
      Apple Retail Store - Genius Bar                              

  • My iPad suddenly started to show crazy colors.  I turned it off and had to use the two button trick to turn it back on.  Now it shows only green stripes for a few seconds and goes back to sleep.

    My iPad suddenly started to show crazy colors.  I turned it off.  It would not reboot until I used the two-button reboot.  Now it shows only green stripes.  only for a few seconds and goes back to sleep.  HELP!

    Standard troubleshooting...
    1. Try a Restart by pressing the sleep/lock button until you see the slider.  Slide to power off.  Restart by pressing the sleep/lock button until you see the Apple logo.
    2. Try a Reset by pressing the home and sleep buttons until you see the Apple logo, ignoring the slider if, it comes up. Takes about 5-15 secs of button holding and you won't lose any data or settings.
    3. Remove all apps from Recently Used list...
    - From any Home Screen, double tap the home button to bring up the Recents List
    - Tap and hold any icon in this list until they wiggle
    - Press the red to delete all apps from this list.
    - Press the home button twice when done.
    4. If still a problem restore with your backup.
    5. If still a problem restore as new, i.e. without your backup. See how it runs with nothing synced to it.
    6. If still a problem, it's likely a hardware issue.

  • Stupid button has gone missing

    Can someone plaese tell me how I turned off the drop-down button to switch from ray tracing to classic 3d that used to live in the upper right corner of my comp window?

    You have hidden the composition navigator strip. Check the flyout menu in teh top-right corner of the comp window.
    Mylenium

  • Stupid button question....

    Hello all.
    I'm relatively new with Flash and I'm using the MX version. I
    have a query regarding buttons. I have created a number of buttons
    that link to different frames, but now i'd like to alter them
    slightly. I would like to have text appear upon rollover of the
    buttons, but would like the text to appear in a seperate place to
    the rest of the button (in a text box further up on the page). I am
    unsure on how to do this. Any help would be greatly appreciated.
    Thanks,
    Jack Brierley

    create a dynamic text box and give it an instance name like
    myText and embed a special font or just use device fonts, then in
    your onRollOver event put
    myText.text = "Hello World";

  • Iphone 4s, won't turn on, won't restore, home/sleep button trick doesn't work?

    woke up this morning to my iphone 4s turned off, thought it might just have died will sleeping but i plugged it in and after a few mins the apple logo never came on. tried a few other iphone cables i had to see if cable or plug i was using was the problem. i tried the home + sleep buttom trick and still nothing. i tried to restore on 2 different computers and nothing. it always starts to setup the restore but gets stuck on "waiting for iphone".

    Your phone is broken; there's no magic solution for you.  You can try plugging it in to wall power and see if this turns the phone on, but if it doesn't, you can either go on vacation without your iPhone, or make the time to visit the Apple store before you leave.

  • Stupid HFS+ tricks

    (adapted from Rixstep, so as not to confuse the message with the messinger...)
    1. Make a disk image, and using Disk Utility, erase and reformat the disk image as a unix file system format disk image.
    2. Make a pdf file (eg use the print/save dialog to print this browser window). Save the file to the Desktop, and copy it to the UFS disk image.
    3. cd to the Desktop, and issue
    ln yourfile.pdf hardlink.pdf
    4. cd to the disk image, and issue the same command.
    5. open yourfile.pdf on the disk image, rotate the pdf by 90 degrees, and save the file to the disk image. All should go smoothly.
    6. cd back to the desktop. Repeat the procedure. It fails.
    Back to the messenger.

    I just did some experiments with fink, HFS+ and UFS. To do this easily, I made two 2.6 GB disk images. One remained HFS+ and the other I made into a UFS. I moved my normal fink installation out of the way, installed a new one in /sw, and then used
    ditto --norsrc /sw /Volumes/fink_usf
    The result was stripping almost 18 MB out of the minimal installation (it went from 85M to 67MB).
    I then installed a rather large, time-consuming package called ccp4-onlylibs-dev, that takes about 2 hours to compile on my 867 MHz laptop. I was hoping for a major speed-up, but it was only incremental. The size of the installed package was 78 MB on the UFS installation, vs. 83 MB on the HFS+ disk image. The speed-up was roughly proportional to the smaller size.
    In testing programs, it seems that file I/O on a flat UFS is almost a factor of two faster.
    I'm beginning to think I might install things in the future such that I have an HFS+ partition for the default OS X stuff (/Applications and so on), and then have a UFS partition for /sw, /usr/local, and symbolic links from my user account to do all my normal unix stuff on a UFS partition, on which I will prevent Spotlight indexing. I think the performance gain might be significant.
    Has anyone tried this?

  • Validate.nullTest working only with the EMAIL button

    Hello,
    This piece of code is working just great when submiting a form by
    email.
    TextField1.validate.nullTest = "error"; (highlighting the empty fields when pushing the EMAIL button)
    On the print button it doesn't have any effect. How can I highlight
    the required fields when clicking the print button the same easy way
    as with the email button? (I have other highlighting scripts but I want to use the exact same method as used on EMAIL)
    Your input is really appreciated! And any explanations for this stupid behavior?

    To make this functionality you can use two buttons trick:
    First button Print, onClick event should has this script: realPrintButton.execEvent("click").
    Second button is invisble Print button.
    So, when you click on your first button print validation is appear and real print will be executed.

  • IPod Touch 3rd Generation Home Button stuck

    Okay, I'm sure this question has been asked four hundred thousand times before, I have a 3rd gen ipod touch 32 gb model and I use it on a daily basis. I've dropped the thing so many times and the only damage is a few scratches (surprised the screen hasn't broke to be honest, but it hasn't!). So anyways, the home button doesn't work anymore. Normally when you press the button you would hear a nice satisfactory click. Well, recently it wouldn't work quite right but you could still persuade the home button to work. Now though, you can't press it at all. You can get the button to respond if you apply enough force to it,but that warps the screen itself and no one's got time for that. Taking it to a repair shop isn't really an option ($249 to repair it? might as well buy a new one!). So if there is any potential fix, please let me know. Note that I have heard of these tricks already:
    - putting a drop of rubbing alcohol on the home button and letting it into the button by pressing the home button with a pencil eraser. I won't do this because I don't see putting any liquid on an electronic.
    - blowing into the charging port will somehow make the button pop back up. what a load that is.
    - placing the ipod facedown in a bowl of rice. Seems just as stupid a trick as pouring rubbing alcohol on it.
    - and rapidly pressing the power button and the home button until the screen flashes white (which I thought meant you took a screen cap by pressing those buttons simultaneously) either way, this solution didn't work.
    If anyone has a good method to try and can back it up with proof that said method works (not just 'trust me, it works') that'd be greatly appreciated. I really don't want to have to buy a new iOS device as I haven't been impressed with the last few years of updates.

    Try (I do not know if looked here)
    fix for Home button
    iPhone Home Button Not Working or Unresponsive? Try This Fix
    - If you have iOS 5 and later you can turn on Assistive Touch it add the Home and other buttons to the iPods screen. Settings>General>Accessibility>Assistive Touch
    - If not under warranty Apple will exchange your iPod for a refurbished one for:
    Apple - Support - iPod - Repair pricing
    That ays the USA exchange price for a 32 GB 3G is $149
    You can do it an an Apple store by:
    Apple Retail Store - Genius Bar
    or sent it in to Apple. See:
    Apple - Support - iPod - Service FAQ
    - There are third-party places like the following that will repair the Home button. Google for more.
    iPhone Repair, Service & Parts: iPod Touch, iPad, MacBook Pro Screens

Maybe you are looking for

  • Error in Accessing Service Browser in CAF

    I am trying to accessing Service browser from test tools in CAF.I am getting Sevurity warning as Access forbidden.So please resolve this issue. Thank you, Murthy.

  • Help me sign on to iTunes from my i5 phone.

    Help me sign on to iTunes on my i5 phone.

  • Failed to save document.

    Post Author: Nicholas CA Forum: General I've been working on this report for several hours. Changing formulas, updating the stored procedure, verifying the database... now all the sudden when I try to Save or Save As, I'm getting an error message: "F

  • All field lables of PCUI screens in Portal is displayed with Vertical bar

    Hi Group, In Portals, all PCUI screen Field lables are displayed with Small vertical bar in the biginning of the field. can somebody tell me how i can get rid of that vertical bar from all Fields or all screens?. let me know if there is any SAP Note

  • BC Email Specifiations

    Hi! What are the system limitations and specifications for each email account in Business Catalyst? Thanks! GideonStark