Indigo Rose Software

Professional Software Development Tools

 
+ Reply to Thread
Results 1 to 15 of 15
  1. #1
    Join Date
    Jul 2007
    Posts
    1,512

    Flash Left and Right

    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:
    Code:
      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.

  2. #2
    Join Date
    Aug 2003
    Posts
    2,427
    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.
    Last edited by longedge; 02-09-2009 at 02:39 AM.

  3. #3
    Join Date
    Aug 2003
    Posts
    2,427
    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.

  4. #4
    Join Date
    May 2006
    Posts
    5,380
    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
    Open your eyes to Narcissism, Don't let her destroy your life!!

  5. #5
    Join Date
    Aug 2003
    Posts
    2,427
    Quote Originally Posted by RizlaUK View Post
    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.

  6. #6
    Join Date
    Mar 2007
    Location
    HeaveN
    Posts
    534

  7. #7
    Join Date
    Jul 2007
    Posts
    1,512
    Quote Originally Posted by longedge View Post
    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

  8. #8
    Join Date
    Jul 2007
    Posts
    1,512
    Quote Originally Posted by longedge View Post
    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?

  9. #9
    Join Date
    May 2006
    Posts
    5,380
    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

    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.
    Open your eyes to Narcissism, Don't let her destroy your life!!

  10. #10
    Join Date
    Aug 2003
    Posts
    2,427
    Quote Originally Posted by rexzooly View Post
    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.

  11. #11
    Join Date
    Aug 2003
    Posts
    2,427
    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 -

  12. #12
    Join Date
    Aug 2003
    Posts
    2,427
    This is the best one - right I'm going to stop playing now

  13. #13
    Join Date
    Jul 2007
    Posts
    1,512
    Quote Originally Posted by longedge View Post
    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

  14. #14
    Join Date
    Aug 2003
    Posts
    2,427
    Quote Originally Posted by rexzooly View Post
    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
    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?

  15. #15
    Join Date
    Jul 2007
    Posts
    1,512
    Quote Originally Posted by longedge View Post
    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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts