Old 03-05-2007   #1 (permalink)
photoshop ninja
 
agentxi's Avatar
 
Join Date: Oct 2006
Location: Red Deer - ish, alberta
Posts: 499

attaching keystrokes to frames in flash

I am looking up how to attach a "keystroke" to play a movieclip or go to a frame in the timeline. So for example I want to hit "a" on the keyboard, flash will play a certain movieclip if i want to see another movieclip i could hit "b" and so on...
I am unsure as to what it is called or what to start my actionscript as... Does anyone have any ideas or resources that can help me out it would be very much appreciated...

-agentxi-
__________________

Your a Graphic Designer...If you could go back in time you wouldn't go back to see the rise and fall of civilizations, you'd go back in time to destroy comic sans and papyrus.
agentxi is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Old 03-05-2007   #2 (permalink)
photoshop ninja
 
agentxi's Avatar
 
Join Date: Oct 2006
Location: Red Deer - ish, alberta
Posts: 499

okay so i found out a bit more about this, but I am still having issues about creating a "gotonextframe" when a key is pressed

right now i'm just wanting the timeline to go to the next frame in the timeline.

so if it's on frame 1, I want to press RIGHT arrow button and it advances to frame 2 and if you press LEFT arrow button it will go back by 1 frame.


*URL i'm using for reference...
Macromedia Flash - Using the Key object: Creating keyboard controls in Flash 5: About the ActionScript Key object
__________________

Your a Graphic Designer...If you could go back in time you wouldn't go back to see the rise and fall of civilizations, you'd go back in time to destroy comic sans and papyrus.
agentxi is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Old 03-05-2007   #3 (permalink)
Just unleashed!
 
unleash's Avatar
 
Join Date: Jul 2005
Location: Inbetween
Posts: 2,140
Blog Entries: 9

Event Handler Script for Mouse Events in Flash MX

maybe that tut wil help, they are loading a specific frame(or scene) if you hover over/ out, press, release, release outside a button or press the "e" key on you keyboard.

I think the last one is the on that cna help you out....
well hope it helps:P
__________________
"I haven't failed, I've just found out
10.000 ways that don't work."

~Thomas Edison~
unleash is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Old 03-05-2007   #4 (permalink)
photoshop ninja
 
agentxi's Avatar
 
Join Date: Oct 2006
Location: Red Deer - ish, alberta
Posts: 499

hey thanks a bunch for the link unleash, it's proven useful

here's a test I've been working on.

It's not 100% ready yet but coming close. I think


hmm, i can't seem to attach the flash file, when i have some time i'll post up my working file on my ftp and send a URL

and once again, thanks a bunch for the link
__________________

Your a Graphic Designer...If you could go back in time you wouldn't go back to see the rise and fall of civilizations, you'd go back in time to destroy comic sans and papyrus.
agentxi is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Old 03-06-2007   #5 (permalink)
Just unleashed!
 
unleash's Avatar
 
Join Date: Jul 2005
Location: Inbetween
Posts: 2,140
Blog Entries: 9

sounds good to me,
and could you show me the code....I've been trying to do the same kinda thing, but with me it didn't work out....so if you would so the code, please
__________________
"I haven't failed, I've just found out
10.000 ways that don't work."

~Thomas Edison~
unleash is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Old 03-06-2007   #6 (permalink)
photoshop ninja
 
agentxi's Avatar
 
Join Date: Oct 2006
Location: Red Deer - ish, alberta
Posts: 499

here's the scene file...

it's just samples of things i want to do something "similar" to this, i was just testing the scene...

anyways, enjoy
Attached Files
File Type: zip keypress_test.zip (7.8 KB, 72 views)
__________________

Your a Graphic Designer...If you could go back in time you wouldn't go back to see the rise and fall of civilizations, you'd go back in time to destroy comic sans and papyrus.
agentxi is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Closed Thread

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Flash Player 9 Problems notjustgraphics Flash & Dynamic Media 13 04-07-2008 05:04 PM
[FLASH] Simple Flash Preloader Jacorre Tutorial Submission 3 01-22-2007 09:07 PM
images in flash ecntrc Flash & Dynamic Media 2 01-12-2007 02:37 AM
Flash help.. ecntrc Flash & Dynamic Media 5 01-02-2007 04:41 AM
Flash site making YeYeR00 Flash & Dynamic Media 2 06-14-2004 11:41 PM


All times are GMT +1. The time now is 08:40 AM.
Content Relevant URLs by vBSEO 3.2.0 RC7

Design & Content © BioRUST 2007 :: PRIVACY STATEMENT :: LEGAL INFORMATION :: ADVERTISING MEDIA KIT