View Full Version : Flash Left and Right
rexzooly
02-09-2009, 03:28 AM
Hey all i am messing with AMS and flash and just wondered how i would send the Left and right key commands via AMS as i want to make like a hover with mouse contraller the flash commed in the fla are
Flash FLA:
if (Key.isDown(Key.RIGHT)) {
_rotation += 5;
}
if (Key.isDown(Key.LEFT)) {
_rotation -= 5;
}
Not sure if there is away to send from app or if i have to program the app and flash to be one any help :P thanks.:yes
longedge
02-09-2009, 03:36 AM
The AMS action is Flash.SetFlashVariable but I've never managed to implement it succesfully. I think this is because of my very limited understanding of flash. The AMS action is so straightforward that I can't imagine that has been my problem. I imagine you have to create a listener in flash.
If you manage to produce something with interaction going the other way, would you post the .fla please.
P.S. Not sure what you mean by "a hover" but if all you want to do is detect when the pointer is over a flash object, then you don't need to send anything from AMS. In flash the button/movie "On" event will send fsCommand to do that for you.
longedge
02-09-2009, 04:12 AM
Have a look at the attachment. It just moves left and right but gives an idea of what I think you want without sending anything from AMS.
RizlaUK
02-09-2009, 05:20 AM
rotation
does anyone have a turn dial knob like the volume control found on HiFi systems, iv been looking for one to use in AMS for ages and and have only ever found an activex control for vb
i assume this can be done with flash but i dont have a clue where to start
like the one in the pic below, just a little smaller
http://i64.photobucket.com/albums/h175/TigerSword/IMG_0364.jpg
longedge
02-09-2009, 05:43 AM
does anyone have a turn dial knob like the volume control found on HiFi systems
I didn't have one but this is one of the default buttons from flash that I've just doctored a bit. Point to it and drag left/right.
jackdaniels
02-09-2009, 06:38 AM
look here !!!
http://indigorose.com/forums/showpost.php?p=134781&postcount=35
rexzooly
02-09-2009, 07:02 AM
Have a look at the attachment. It just moves left and right but gives an idea of what I think you want without sending anything from AMS.
thanks i have a wee look :yes
rexzooly
02-09-2009, 07:23 AM
Have a look at the attachment. It just moves left and right but gives an idea of what I think you want without sending anything from AMS.
Ok this moves on the keyboard left and right how would i make them arrows on the programm/app to go left and right? and faster?
RizlaUK
02-09-2009, 07:30 AM
I didn't have one but this is one of the default buttons from flash that I've just doctored a bit. Point to it and drag left/right.
prefect :yes
look here !!!
nice work
i think now, between the 2 i can get what i want, thanks guys
on a side note, i just singed up for a dreamweaver course at my local adult education center, also offer xhtml, javascript and css courses, i think im going to do them all, i might even do the PSP course as well, its time i expanded from windows devlopment to web bases apps.
longedge
02-09-2009, 07:54 AM
Ok this moves on the keyboard left and right how would i make them arrows on the programm/app to go left and right? and faster?
The picture is actually being tracked as a button in flash and is sending fscommands when you press the right or left arrow keys. If the arrows were flash buttons then you could do the same thing and also have the usual over, out, press, release and release out mouse interaction as well.
Only downside I can think of is that the flash object must have focus for the movement to work but I suppose you could set focus to it on mouse over.
Speed is just how often you fire the page timer and the number of pixels you move each time.
longedge
02-09-2009, 09:20 AM
Try this one Rizla might be just a bit more what you want you click left or right side of button to increase or decrease -
longedge
02-09-2009, 10:06 AM
This is the best one - right I'm going to stop playing now :)
rexzooly
02-09-2009, 05:33 PM
This is the best one - right I'm going to stop playing now :)
Ok i think i am a N00b as i think i got what i need backwords i have a swf
from a opensorce flash site of StarFox i have edited it to a ward and way harder game to play just for the fun and i want to be able to add a hotspot or image so i can contral it with the mouse as well as the left and right arrows
so means i can play it on a keoss system of sorts? that any clearer sorry :wow
longedge
02-10-2009, 01:35 AM
Ok i think i am a N00b as i think i got what i need backwords i have a swf
from a opensorce flash site of StarFox i have edited it to a ward and way harder game to play just for the fun and i want to be able to add a hotspot or image so i can contral it with the mouse as well as the left and right arrows
so means i can play it on a keoss system of sorts? that any clearer sorry :wow
I'm sorry Rex - I got sidetracked with the rotary knob thing.
Is this right - You want to control the movement of an image left and right with the mouse left and right buttons but not while pointing at the image?
rexzooly
02-11-2009, 09:02 AM
I'm sorry Rex - I got sidetracked with the rotary knob thing.
Is this right - You want to control the movement of an image left and right with the mouse left and right buttons but not while pointing at the image?
I want to sent left and right Key commands to my flash game .... just as if i
was hitting the keys as i want to have 2 images or hotshots with on hover commands so when i over with the mouse it able to go that way :P thanks
vBulletin® v3.8.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.