11 Replies - 350 Views - Last Post: 05 January 2013 - 10:36 AM Rate Topic: -----

#1 krazyshank  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 38
  • Joined: 21-December 12

Sending the same key push to multiple fash objects within a form

Posted 04 January 2013 - 08:16 PM

If i have a form with multiple flash objects, lets say 4, how could I take a keyboard press, and make not only the focused flash object, but the other 3 take the key press as well?

I have googled it a bunch and can't find anything...
Is This A Good Question/Topic? 0
  • +

Replies To: Sending the same key push to multiple fash objects within a form

#2 modi123_1  Icon User is online

  • Suitor #2
  • member icon



Reputation: 8952
  • View blog
  • Posts: 33,552
  • Joined: 12-June 08

Re: Sending the same key push to multiple fash objects within a form

Posted 04 January 2013 - 08:17 PM

What sort of flash objects?
Was This Post Helpful? 0
  • +
  • -

#3 krazyshank  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 38
  • Joined: 21-December 12

Re: Sending the same key push to multiple fash objects within a form

Posted 04 January 2013 - 08:22 PM

View Postmodi123_1, on 04 January 2013 - 08:17 PM, said:

What sort of flash objects?


Game, .swf
Was This Post Helpful? 0
  • +
  • -

#4 Skydiver  Icon User is online

  • Code herder
  • member icon

Reputation: 3479
  • View blog
  • Posts: 10,724
  • Joined: 05-May 12

Re: Sending the same key push to multiple fash objects within a form

Posted 04 January 2013 - 08:23 PM

Have you already successfully taken the keyboard press and pushed it to your first flash object? If you can do it to one object, then you can do it to N other objects. If not, then you are much more to accomplish. (It doesn't count if what your are currently doing is merely having the keyboard focus in one object. What has to happen is that it is really you intercepting the keypress, and you are directing it to that object.)
Was This Post Helpful? 0
  • +
  • -

#5 krazyshank  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 38
  • Joined: 21-December 12

Re: Sending the same key push to multiple fash objects within a form

Posted 04 January 2013 - 08:31 PM

View PostSkydiver, on 04 January 2013 - 08:23 PM, said:

Have you already successfully taken the keyboard press and pushed it to your first flash object? If you can do it to one object, then you can do it to N other objects. If not, then you are much more to accomplish. (It doesn't count if what your are currently doing is merely having the keyboard focus in one object. What has to happen is that it is really you intercepting the keypress, and you are directing it to that object.)


Maybe i'm not sure what you're implying, but
I can already controll one of the games normally if i want to (with the keyboard) 0 coding. I want to make it where if i'm controlling one, the others get the same controlls.
Was This Post Helpful? 0
  • +
  • -

#6 Skydiver  Icon User is online

  • Code herder
  • member icon

Reputation: 3479
  • View blog
  • Posts: 10,724
  • Joined: 05-May 12

Re: Sending the same key push to multiple fash objects within a form

Posted 04 January 2013 - 08:39 PM

What I'm implying is that are you sure you are in full control of the keyboard input being taken in and being directed to the flash object. With your current set up, can you set things up so that if the user presses a key, the flash object won't see the key press until 2 seconds later? Can you set things up so that if the user presses the letter 'A', the flash object sees the exclamation mark being pressed?
Was This Post Helpful? 0
  • +
  • -

#7 krazyshank  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 38
  • Joined: 21-December 12

Re: Sending the same key push to multiple fash objects within a form

Posted 04 January 2013 - 08:46 PM

View PostSkydiver, on 04 January 2013 - 08:39 PM, said:

What I'm implying is that are you sure you are in full control of the keyboard input being taken in and being directed to the flash object. With your current set up, can you set things up so that if the user presses a key, the flash object won't see the key press until 2 seconds later? Can you set things up so that if the user presses the letter 'A', the flash object sees the exclamation mark being pressed?


I have no code at all. I don't know where to start with this one.
I literally just have 4 shockwave flash game controls on a form. I can click on the the game to "bring it to focus" i guess, then click another and play it, but not all at the same time like I want.
Was This Post Helpful? 0
  • +
  • -

#8 modi123_1  Icon User is online

  • Suitor #2
  • member icon



Reputation: 8952
  • View blog
  • Posts: 33,552
  • Joined: 12-June 08

Re: Sending the same key push to multiple fash objects within a form

Posted 04 January 2013 - 10:29 PM

Sounds like someone is trying to scam on a game or four..
Was This Post Helpful? 0
  • +
  • -

#9 krazyshank  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 38
  • Joined: 21-December 12

Re: Sending the same key push to multiple fash objects within a form

Posted 04 January 2013 - 11:21 PM

View Postmodi123_1, on 04 January 2013 - 10:29 PM, said:

Sounds like someone is trying to scam on a game or four..


hahaha what?
Sending keys to multiple flash objects is scamming?
Was This Post Helpful? 0
  • +
  • -

#10 Anthonidas  Icon User is offline

  • D.I.C Head

Reputation: 30
  • View blog
  • Posts: 218
  • Joined: 25-April 11

Re: Sending the same key push to multiple fash objects within a form

Posted 05 January 2013 - 04:39 AM

Well i don't know if you are trying to scam anything, but i know that if you have no code at all it would be very difficult, that someone gives you the finished code to put to your form.

you have to study c# to understand how it works. then your form has to catch all keyboard keys (it should be not flash to catch them) and then you have your form to send the key to all flash objects...

i would like to start with c# basics... ;)
Was This Post Helpful? 0
  • +
  • -

#11 krazyshank  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 38
  • Joined: 21-December 12

Re: Sending the same key push to multiple fash objects within a form

Posted 05 January 2013 - 10:25 AM

View PostAnthonidas, on 05 January 2013 - 04:39 AM, said:

Well i don't know if you are trying to scam anything, but i know that if you have no code at all it would be very difficult, that someone gives you the finished code to put to your form.

you have to study c# to understand how it works. then your form has to catch all keyboard keys (it should be not flash to catch them) and then you have your form to send the key to all flash objects...

i would like to start with c# basics... ;)/>


I know how to have the form catch the keys, but I dont know how to SEND keys directly to certain controlls (in my case, teh falsh objects). If i can find out how, ill easily be able to set things up myself.
Was This Post Helpful? 0
  • +
  • -

#12 macosxnerd101  Icon User is online

  • Self-Trained Economist
  • member icon




Reputation: 10397
  • View blog
  • Posts: 38,464
  • Joined: 27-December 08

Re: Sending the same key push to multiple fash objects within a form

Posted 05 January 2013 - 10:36 AM

I do tend to agree with Modi. This does sound like something that can be reasonably used to scam games. I can't think of a reason for a C# program to control a flash program. I'm closing this thread.
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1