Solved

Finger mouse cursor on href in flash dynamic textfield

Posted on 2004-08-03
4
4,753 Views
Last Modified: 2013-12-24
Hi,

I have a dynamic textfield in flash, I put some html content here.
I would like to show finger mouse cursor over every <a href="#">link</a> in this textfield.
How this could be done?

Thank you very much!
0
Comment
Question by:hsmtp
  • 2
4 Comments
 
LVL 20

Expert Comment

by:MediaMacros
ID: 11707528
You can check the flash by using hittest() to see what under the mouse in the flash and change the cursor accordingly.
0
 
LVL 1

Expert Comment

by:backbaychef
ID: 11707834
First question is have you tried using the Flash cursor behavior in the library.  This might solve that problem otherwise, I think MediaMacros is correct you will have to change the cursor from flash with something Like


getUrl("Lingo:_player.cursor(280)"); //change to the finger cursor

getUrl("Lingo:_player.cursor(0)"); //change to the arrowcursor

with the hit test.  I don't remember there being any onMouseOver for the textfields though (especialy for some subtext).  I hope the mouse cursor works for you.

--BackBayChef
www.backbaychef.com
0
 
LVL 6

Author Comment

by:hsmtp
ID: 11708954
Guys, you'll be laught a lot :)
I just looked at the direcrtor's mx2004 behavior library and found behavior named "Flash Cursor". It does everything we need about obeying the Flash mouse cursor!

The main idea is based on the getflashProperty("", #cursor) function, take a closer look:

on setCursor(me)
 
  tFlashCursor = pSprite.getflashProperty("", #cursor)
  --  Return values...
  --  0: No cursor
  --  1: Arrow
  --  2: Hand with finger
  --  3: Hand
  --  4: I Beam
 
  case tFlashCursor of
    0: tDirectorCursor = 200
    1: tDirectorCursor =  -1
    2: tDirectorCursor = 280
    3: tDirectorCursor = 260
    4: tDirectorCursor =   1
    otherwise:
      tDirectorCursor = pSprite.cursor
  end case
 
  if pPrevCursor <> tDirectorCursor then
   
    cursor( tDirectorCursor )
    pPrevCursor = tDirectorCursor
   
  end if
 
end setCursor


I'm happy more then ever! I'll forget about getUrl("Lingo:_player.cursor(280)") in 20 minutes :)
0
 
LVL 20

Accepted Solution

by:
MediaMacros earned 500 total points
ID: 11709081
He,he.  Yeah thats funny.  The magic happens here...
tFlashCursor = pSprite.getflashProperty("", #cursor)

This basically just asks Flash to tell it which cursor its using.  Hitting myself for not thinking of that... ;)
0

Featured Post

Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
HTML Editor to Choose? (2015) 13 79
Advanced Visual HTML Editor 2 84
Show/hide areas of web form 10 71
Could you point a workaround on how to open this Adobe Flash documents? 5 125
Introduction In this tutorial, I'll explain how to create an animated progress meter in a wireframe prototype developed using Axure RP 7.0 - a leading prototyping tool for designing web sites and software. (For more information about Axure and gett…
This guide will walk you through the essential considerations and tech stack for building scalable websites. Know how to grow your business the smart way!
The purpose of this video is to demonstrate how to reset a WordPress password if you are locked out and cannot reset the password. A typical use would be if you cannot access the email to which WordPress would send the password recovery email to…
The purpose of this video is to demonstrate how to Test the speed of a WordPress Website. Site Speed is an important metric of a site’s health. Slow site speed can result in viewers leaving your site quickly and not seeing your content. This…

914 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now