On Key Event change sprite and sound

I can't sort this out for the life of me.
I have this at the moment....They are cast member scripts.
There are four movies that switch on mouse clicks along with
their associated sound.
Trouble is that they are different sizes and the largest
stays on the screen behind the new clip.
I tried an unload
_movie.unLoadMember(member("movieTwo"))
but wherever I put it it did not work.
I am new to Director and using ver11
I have put the first clip on channel 1 and its sound on sound
channel 1. Then that has a cast memeber script to swap the sound
and image from the cast.. Each clip has a cast member script to
move to the next clip.
I did post earlier in the 'basics' a similar problem but have
as yet found no solution.
I really do need to have the changing of clips and of sound
driven by key events. But I cannot get any key
event to be recognised by director when the projector runs..
Where does one put key.up and key.down in director?
I really am stuck here and truly any help would be great
Cheers

You can place 'on keyUp' or 'on keyDown' event handlers on
any sprites
that would normally get keyboard input (i.e. editable #text
or #field
sprites as well as certain #flashComponents). You can also
make a
"movie-wide" control by putting an 'on MouseUp'handler in a
MOVIE
script. This event will happen if there is no editable text
item on the
stage.
If you want to use a global keyDown handler, you need to set
up 'the
keyDownScript' (refer to the help file for explanation and
syntax)

Similar Messages

  • On KeyUp change sprite and sound

    I made something in Flash and it works fine. Now I am trying
    to migrate it to Director.
    I need to have six sprites on the stage.. they are avi's and
    they loop. Each has a sound cast memebers associated with it. They
    are designed to run in synch.
    I would rather re do it from scratch in director thatn import
    the swf.But my lingo and understanding of Director is kinda almost
    zero.
    I can get the mouseUp to change a sprite but I need key board
    interactivity. And using key codes like (32) for spacebar etc
    I need to adapt this very basic instruction
    (The code is below)
    to this... onKeyDown change sprite "myClipOne" to member ==
    "myClipTwo"
    and there is because there is a Play Sound behaviour attached
    to the "myClipOne" sprite I also need this
    on the same onKeyDown event to swap the sound from
    "mySoundOne" to you guessed it "mySoundTwo"
    Each of the movie sprites will have a bunch of keys
    associated with it. And pressing keys just changes the avi and the
    sound for each movie on the stage. Simple really but I am stuck
    with it.
    I need to use Director for this project and would be most
    grateful for any help.
    Cheers

    Try something like:
    on keyUp me
    case _key.keyCode of
    32:
    sprite(1).member = member("myClipTwo")
    sound(1).play([#member: member("mySoundTwo")])
    36:
    sprite(2).member = ...
    sound(2).play([#member: member("...")])
    -- other key codes listed as required
    end case
    end

  • Using + and - keys to change dates and times; Find and Replace event

    Hi all, \
    I have two iCal related questions. One has been bugging me since the Snow Leopard upgrade and the other I'm just wondering about.
    1. Is it just me or is it no longer possible to use the + and - keys to increment dates and times when editing an event? It seems that now I have to actually type in the numerals instead. Is there something in the preferences I'm missing or is that just the way it is now? Seems like a step backward, if so.
    2. Is there a way to do a "find and replace" for an event that occurs sporadically throughout the year, but isn't a repeating event per se? I just want to rename the event itself.

    Don,
    ...is it no longer possible to use the + and - keys to increment dates and times when editing an event?
    I did not know that was possible. Try using the ↑/↓ arrow keys to increment numbers, and →/← arrow keys to change fields.
    Is there a way to do a "find and replace" for an event that occurs sporadically throughout the year, but isn't a repeating event per se?
    AFAIK, you have to use the search field to find the individual events, and change them when you click on the events in the search results field.
    ;~)

  • ICal events changing duration and start time after .Mac sync

    I sync two OS X Tiger computers (10.4.2) using .Mac to keep my iCal calendars in order. Certain events following a certain date are mutating with longer durations and different start times after syncing between the two computers.
    Anyone experiencing the same problem?
    Any ideas?

    Two different problems here:
    Try one at a time:
    Quit iCal. Delete iCal preferences in your User Library: ~/Library/Preferences/com.apple.iCal.plist ( you'll have to reset iCal prefs after)
    For those having problems with .Mac sync, reset the sync System Preferences/ .Mac/ Advanced tab.
    Come back with results

  • HT2513 I can't delete events recurring annually...not part of birthday calendar, one's I've added manually.  I've tried delete key, cut event, changing to no recurrence, they just revert to original recurrence and will not be removed from my calendar.  Th

    I can't delete events recurring annually...not part of birthday calendar, these are events I've added manually.  I've tried delete key, cut event, changing to no recurrence, they just revert to original recurrence and will not be removed from my calendar.  Events that occur weekly I'm able to delete, this is only happening with events recurring annually.  Very frustrating.  Thanks for any ideas.

    If you are using a PC, log on to iCloud using Safari (rather than Explorer) to reset the photostream. Then turn iPhone/iPad photostream off and back on. I was getting the same server error as you and this advice from another blog worked for my iPhone and iPad.  But I still can't get photostream deleted from my apple tv. There does not seem to be a photostream on/off control In Apple tv 4.4 software.  I tried switching the screen saver to one of the ones that comes preloaded on the device, then back to photostream but all the old photos are still there.  If anyone can help with this, I would appreciate it.

  • Event on changing Look and Feel

    I want to know what event is fired when I change Look and Feel.
    Thanks,
    Pati

    Ideally you'll be using the UIManager.setLookAndFeel() to change the installed LookAndFeel. In the UIManager, the installed LNF is bound to a JavaBeans property using the SwingPropertyChangeSupport with the key: "lookandfeel". Any time this changes, a PropertyChangeEvent will be fired to the PropertyChangeListeners registered with the UIManager. You can simply add a PropertyChangeListener to the UIManager and listen for events that are bound to that particular property, such as...
        UIManager.addPropertyChangeListener( new PropertyChangeListener() {
            public void propertyChange( PropertyChangeEvent e ) {
                if( "lookAndFeel".equals( e.getPropertyName() ) ) {
                    System.out.println( "look and feel changed" );
        });The event encapsulates the new value and the old value so you can do whatever you need with that information.
    I used an anonymous inner class mostly as an example - You may need to consider a cleaner design for your purposes.
    Hope this helps!
    Matt

  • How to change the alarm sound for CALENDAR events?

    I missed an important meeting today, thanks to the almost-inaudible and incredibly short alarm sound in the Calendar app.
    Is there a way to change the alarm sound for events in Calendar?
    Setting another alarm in Clock is viable but obviously inconvenient.
    Thanks in advance!

    Settings > Sounds > Calendar. Maybe it was inaudible because yoursound was not turned up.

  • My F11 and F12 keys do not affect the sound,

    My F11 and F12 keys do not affect the sound, The only way I can change the volume is through system preferences. How can i fix this?

    1. Reset SMC.     http://support.apple.com/kb/HT3964
        Choose the method for:
        "Resetting SMC on portables with a battery you should not remove on your own"
    2.Reset PRAM. http://support.apple.com/kb/PH4405
    Best.

  • How to separate "Key down" event from panel and numerical control

    Hi, All
    I have a vi proecess key down events for panel and  a numerical control in this panel. the application will do: 
    1. when panel is focused, user can use "up" and "down" key to driver some hardware.
    2. when the numerical control has the focus, "up" and "down" key will change it's value as usual.
    somehow the second one did not work, because the panel "key down" event was trigger as well when I use "up' "down" key inise the numerical control. 
    then I used "Key down?" of numerical control to block the "up/down" key. But the first time when I run the Vi, the panel still got triggered one time. 
    any suggestions on this? test code attached  in this post too. 
    thanks
    CQ
    Solved!
    Go to Solution.
    Attachments:
    KeyDown_Up_valuechange.vi ‏16 KB

    This works for me in 2014.  In short, you just need to check to see if your numeric has the focus.  If it doesn't, then you process the key value.  No need for any other event here except for the stop button.
    There are only two ways to tell somebody thanks: Kudos and Marked Solutions
    Unofficial Forum Rules and Guidelines
    Attachments:
    KeyDown_Up_valuechange_BD.png ‏32 KB

  • How to change default alarm sound for events

    I remember initially when setting up ical, it gave an option to set a default sound for messages. I want to change the sound, but cannot find the option to do so. currently when creating a nerw event, the message with sound option shows up with the default sound (Basso) that I selected initially. And I have to change it manually every time a new event is created. Is there a way to change the default sound?

    Settings > Sounds > Calendar. Maybe it was inaudible because yoursound was not turned up.

  • Default key date, Document date and posting date needs to be changed automa

    Hi Experts,
    The user wants to create a variant for Foreign currency valuation, wherein the default key date, Doc date and Posting date needs to be changed every month automatically. Is it possible?
    Please let me know your thoughts.
    Warm regards,
    Murukan Arunachalam

    Hi
    Please follow this process.
    Only specify fields that should be changed
    Select these fields by entering an X in the checkboxes
    Enter a U in the UPDATEFLAG field
    Always specify key fields when changing the data, including in the checkboxes
    The configuration is an exception here. If this needs to be changed, you need to complete it again fully.
    Maintain quantities and dates in the schedule line data.
    1. Minimum entry:
    You must enter the order number in the SALESDOCUMENT structure.
    You must always enter key fields for changes.
    You must always specify the update indicator in the ORDER_HEADER_INX.
    2. Commit control:
    The BAPI does not run a database Commit, which means that the application must trigger the Commit so that the changes are read to the database. To do this, use the BAPI_TRANSACTION_COMMIT BAPI.

  • My number 5 key is not working and my password has a number 5 in it. How can I change my password when I'm signed in on another account or as guest user? I need help :(

    My number 5 key is not working and my password has a number 5 in it. How can I change my password when I'm signed in on another account or as guest user? I need help

    - If the "other" account has administrative privileges then just try changing the PW for your account.
    - Forgot Mac Password? How to Reset Your Mac Password (with or without CD)
    Change the Admin Password with Mac OS X Single User Mode
    Reset mac mini admin password: Apple Support Communities
    - If the problem is due to a bad KB just get a new KB

  • No longer able to use + and - keys to change dates or time?

    I recently upgraded from an igloo iMac running OS 10.3.9 to a new Mac mini with 10.5.8 (awaiting upgrade to Snow Leopard).
    I used to use the + and - keys all the time to change dates and time in iCal, but have been unable to since my upgrade. Has that functionality been deleted, or is there a way to do it that I have just not discovered yet?
    Thanks.

    Forgotten Passcode or device disabled after entering wrong passcode
    If you have Find My iPhone enabled, you can use Remote Wipe to erase the contents of your device. If you have been using iCloud to back up, you may be able to restore the most recent backup to reset the passcode after the device has been erased.
    Alternatively, place the device in recovery mode and restore it to erase the device:
    Disconnect the USB cable from the device, but leave the other end of the cable connected to your computer's USB port.
    Turn off the device: Press and hold the Sleep/Wake button for a few seconds until the red slider appears, then slide the slider. Wait for the device to shut down.
    While pressing and holding the Home button, reconnect the USB cable to the device. The device should turn on.
    Continue holding the Home button until you see the Connect to iTunes screen.
    iTunes will alert you that it has detected a device in recovery mode. Click OK, and then restore the device.

  • I get an error:"Unable to sync. Your sync key has changed" But I simply type in the old key and it starts woring again

    When Firefox starts I get an error : Sync encountered an error. An unknown error has occurred. when I go to sync preferences it says your sync key has changed. When in the update key dialog I simply type the old key it accepts it ans again starts syncing as if nothing had happened.

    hello, when this is happening after you've already updated firefox with your admin account, try to delete the ''updates'' folder and ''active-update.xml & updates.xml'' within the %localappdata% folder of your restricted account like it is described in http://kb.mozillazine.org/Software_Update#Software_Update_not_working_properly

  • I'm having trouble with my sound up and sound down keys. They're doing other functions. This is only a new thing.

    I'm having trouble with my 'sound up' and 'sound down' keys. They're doing other functions. This is only a relatively new thing.

    You didn't mention what those "other functions" were.  That might help!
    First thing to check is System Preferences > Keyboard > Keyboard tab - make sure "Use all F1, F2, etc. keys as standard function keys" is un-checked.  Hopefully that still works in Mountain Lion.

Maybe you are looking for

  • Import/Export Jobs Fail - ORA-01017 Invalid UserName/PW - Solved!

    Every time I try to run either an Import or Export Job from OEM it always fails with ORA-01017 Invalid UserName/PW. I have read numerous posts in this forum on related topics. Suggestion have been; 1. Make sure OS login is a member of the ORA_DBA gro

  • Invoice date earlier than GR date

    Hi Friends, We have GR based IV activated in our system. This helps us in preventing Invoice posting before GR. However currently the system is allowing me to post the invoice with the posting date earlier thatn the GR posting date. Can anyone please

  • Adobe CC will not install programs onto the selected drive.

    I have 2 hard drives in my computer. I have low space on my boot drive so i'm attempting to install adobe cc premiere onto my 2tb storage drive. however whenever i attempt the install it wants to install onto the c:// drive. where i have no space. I

  • Everytime i left my computer on on windows 7 it shuts down by itself

    please help i dont know whats happenining its happening to me everyday

  • Query to CSV file

    Hi, Is there a way to execute the query and save it in application server as csv format .  I've aleardy tried couple of the options - RSCRM_BAPI - due to complex restrictions in the query, the output is not consistant. Information Broadcasting - can