Sie sind nicht angemeldet.

1

Sonntag, 3. Januar 2010, 13:26

Possible to open textfield on cursor ?

Hi all,
Happy New Year 2010

I want that the textfield not open in center of pano but on cursor, possible ?

Thank's for reply *thumbup*

2

Sonntag, 3. Januar 2010, 17:17

i bet it could be done. get this setting, get that setting, set this ,set that. i just dont know how to code it but if it can be done i can think of a few places to use that.

3

Dienstag, 5. Januar 2010, 12:11

Hi,

at the moment there is no automatic way to place a textfield at the mouse cursor position,

but one way would be to use a "invisible" and "fullscreen" plugin (alpha="0.0" width="100%" height="100%"),
and use the showtext() action, it supports all flash html tags, but just with '[',']' instead of '<','>',

or a bit tricky - set the position of the textfield to the mouse position in short intervals via delayedcall,
but I'm not sure how accurate that will work...

e.g.

Quellcode

1
2
3
4
5
6
7
<action name="updatemousepos">
  set(plugin[text].align, lefttop);
  set(plugin[text].edge, center);
  copy(plugin[text].x, mouse.x);
  copy(plugin[text].y, mouse.y);
  delayedcall(0.02, updatemousepos() );
</action>


best regards,
Klaus

4

Freitag, 8. Januar 2010, 22:16

Hi , Klaus

Thank a lot

It's working, but the plugin keep on the cursor and I can't close it

5

Freitag, 8. Januar 2010, 23:40

Hi,

what do you mean with "can't close it" ?

you could add a onclick event to the plugin and close/remove it...

best regards,
Klaus

6

Samstag, 9. Januar 2010, 02:47

Hi Job.1,
It's working, but the plugin keep on the cursor and I can't close it
If I understand, the plugin follows the cursor and, then, you can not click on it to close it...
If so, just erase the delayedcall(0.02, updatemousepos() ); line...
I have not tried the code... it's just an idea...
Can you show what you are trying to do?

SAlut.

7

Samstag, 9. Januar 2010, 11:15

Hi Klaus and Michel

yes michel you understand well

8

Samstag, 9. Januar 2010, 11:27

Zitat

If so, just erase the delayedcall(0.02, updatemousepos() ); line...


yes good, it's working well now *thumbsup* *thumbup* *squint*

Ähnliche Themen