Flasher Archive

[Previous] [Next] - [Index] [Thread Index] - [Previous in Thread] [Next in Thread]


Subject: RE: FLASH: key press woes and Load Movie levels/mc
From: Paul Willoughby
Date: Fri, 3 Nov 2000 12:46:02 GMT

Hi Matt,

I don't get why that happens, as the keypress is a boolean true or false,
there's no 'keyup' command in F4. Unless you are setting a variable to force
a reaction? Anyway, here's the code to move a movie clip left, right, up and
down with the keyboard arrows (in increments of 5 pixels):

On (Key: <Up>)
Set Property ("/mC", Y Position) = GetProperty("/mC", _y) - 5
End On
On (Key: <Down>)
Set Property ("/mC", Y Position) = GetProperty("/mC", _y) + 5
End On
On (Key: <Left>)
Set Property ("/mC", X Position) = GetProperty("/mC", _x) - 5
End On
On (Key: <Right>)
Set Property ("/mC", X Position) = GetProperty("/mC", _x) + 5
End On

hth

paul


> From: Matt Coyne wrote on 03 November 2000 >
>
> Hi
>
> I'm going through the stages of getting and setting
> properties in Flash 4.
> Decided to have a look at moving an mc around using the arrow
> keys. It's
> working apart from when I release an arrow key the mc keeps
> moving! Is there
> a Key release command that I have missed? Or do I have to put
> in void such
> as : If NOT Key:<Left> : Apologies for the lack of syntax,
> I'm just trying
> to get my point across.
>
> Also, when loading movies into a level or targeting an mc,
> can the loaded mc
> then load a movie into itself, thereby nesting swfs into swfs?
>
> I would appreciate any help given to a newbie scripter.
>
> TIA
> m@

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
flasher is generously supported by...
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
flashforward2000 and the Flash(tm) Film Festival
November 27-29, 2000, LONDON, National Film Theatre

Produced by United Digital Artists and lynda.com
-Sponsored by Macromedia, Adobe Systems and Apple Computer
-http://www.flashforward2000.com or UK tel. +44 (0870) 751 1526
Register before November 10 and save �200
http:// www.flashforward2000.com
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
To unsubscribe or change your list settings go to
http://www.chinwag.com/flasher or email helpatchinwag [dot] com


[Previous] [Next] - [Index] [Thread Index] - [Next in Thread] [Previous in Thread]