Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    Flash




ComboBox - UseHandCursor - Possible?



Is there a way to force the comboBox to use the hand cursor?

w/ a comboBox component named myCB,


ActionScript Code:
myCB.useHandCursor = true;
doesn't work.



Ultrashock Forums > Flash > ActionScript
Posted on: 2007-07-02


View Complete Forum Thread with Replies

See Related Forum Messages: Follow the Links Below to View Complete Thread

UseHandCursor
I want the hand cursor to come up when the user rolls over a movie clip, instead of the arrow pointer.

I think you can do it with useHandCursor action, but I can't seem to get the script right.

Can anyone help me?

UseHandCursor?
I have a series of movie clips that each have a mouse event associated with them.
They work fine but I'd like the hand cursor to show when a user rolls over them.

Is there a quick way to tell it to do that?

I've tried various combinations of
e.target.mouseEnabled = true;
e.target.useHandCursor = true;

And things along those lines... but I'm missing something.

Thanks.

UseHandCursor()?
i have this simple code

Code:
p_innerObj.addEventListener(MouseEvent.MOUSE_UP, p_onMouseUp);
works great function is called and everything... but... HOW do i get the hand cursor to show up on this?

i looked it up and found this..

flash.display.SimpleButton.useHandCursor

does this mean i HAVE to create a SimpleButton to use the hand cursor?

thanks in advance!

Help With 'useHandCursor'...
I will try to explain this as clearly as possible, and I have also uploaded a sample file if you want to see what's going on.

I have a project where there will be a masked movie clip on my main timeline. This MC will only move side to side when a user clicks a button on eother side of the MC. The result will be a side scrolling gallery. It works fine, but the button 'hand' cursor needs to be gone when you are at one far end or the other. I can figure out how to ALWAYS turn it off, but not just only on the one frame where it's needed. Currently the MC has this AS in its instance on the main timeline:


Code:
onClipEvent (enterFrame) {
if (_root.pressedRight) {
this.nextFrame();
} else if (_root.pressedLeft) {
this.prevFrame();
} else {
this.stop();
}
}
And the left control button has this code:


Code:
on (rollOver) {
useHandCursor = false;
}

on (press) {
pressedLeft = true;
}

on (release) {
pressedLeft = false;
}
on (dragOut) {
pressedLeft = false;
}
The code for the right button is identical except every 'Left' value is replaced with 'Right'

If you look at the files you will see there are right and left buttons IN the MC, but these purposely don't have any actions, they are just to provide the visual reference on where to click, they could actually just be graphics, and will be in my final files. The actual triggering buttons lie on top of the MC instance in the main timeline.

Just to be really clear on what i WANT it to do is I want both triggering buttons to have the hand cursor except when the MC is at the begining frame (for the left button), and the end frame (for the right button). I think the buttons just need an if/else statement based on the position of the MC, I just don't know how to accomplish this. MUCH THX in advance for any help!

UseHandCursor & ID3
Hi all, I've two questions:

1) I need to use my_btn.useHandCursor = false; on over than 10 buttons. Instead of defining it 10 times I want to define it one time like _global.style.setStyle but it doesn't work.
Someone know if I can or not and what is the command?

2) Someone know if Sound.ID3 works on streaming files?

Thanks to all

This.useHandCursor = False;
this.useHandCursor = false;

I put this code on an invisible button so the cursor doesn't show as a hand It works fine in the player with "test movie", but not when the swf is loaded in the browser in an html page.

Any ideas why?

Usehandcursor Problems
Hi,

I have a movieclip that plays when the mouse rolls over it, and I have made the useHandCursor = false. Now when the movieclip plays, I also want buttons to appear over it and when the mouse rolls over the buttons I want the hand cursor to appear.

I've tried putting the buttons in the movieclip and putting moviename.buttonname.useHandCursor = false, but that's not working. And if I put the buttons in a separate movie clip and just put that on top of the first movieclip on the stage, the first movieclip stops playing when I roll over the buttons.

Does anyone have any ideas on how to make the hand cursor appear *only* when the buttons are rolled over and not appear over the entire movie clip?

thanks,
nitakt

UseHandCursor For All Clips?
Hey Folks,

I'm using Flash MX 2004 prof. I want to apply '..useHandCursor = false;'
to all of the clips in my movie. Do I have to set this for every movie
clip in my movie individually, or is there a way to set this property
for all clips all at once?

I've tried

_root.useHandCursor = false;
_root.classificationMenu.useHandCursor = false;

Neither works. It does work, though, when I reference a specific clip...

Thanks,

Tripp Lowe

UseHandCursor Problem
Hi guys. Having a problem with a flash document: when I have my web page with the swf opened, ALL the links (including from other pages that might be simultaneously opened) seems to turn the mouse a bit crazy...

Check out: http://www.mentalfactory.com/carina/asd/contactos.asp


So, try to get the mouse over any link from that or any other page...

Sure I have several verifications for the useHandCursor true or false, in onEnterFrame's... is that a problem? Well, but I always make it "if hitTest the _root" or something. I don't understand...

Thanks

UseHandCursor Problem
I'm loading an external jpeg into an empty movieclip and would like the handCursor to appear when the user rolls over the movieclip. I've tried the following code with no success:


ActionScript Code:
onClipEvent (mouseMove) {
    if (hitTest(_root._xmouse, _root._ymouse)) {
        this.useHandCursor = true;
        trace("mouse over")
    }
}

The trace works but handCursor does not change from the arrow to the hand.

How To Get UseHandCursor To Work?
i got an MC named btn
and this code:


ActionScript Code:
btn.addEventListener(MouseEvent.CLICK,wasa);
btn.useHandCursor=true;
function wasa(e:Event):void
    {
    trace("[ressrdf");
    }

and the cursor does not change!!!! why?

UseHandCursor Over A MovieClip
hello everyone,

Is useHandCursor = true possible somehow over the MovieClip? My problem is that i have a script, that changes the text inside the button. But when i change type of the button to Button, i cannot acces the TextField inside this button. When using a MovieClip, then textField is accessable, but overing button with mouse, doesn't give a cursor change!

Any help would be much appreciated.

Tanks in advance!

Universal UseHandCursor
Hi

Is it possible to set useHandCursor = false for all movies within a site (inc. external movies) rather than setting it for each instance?

thanks

Curtis

UseHandCursor Is Not Working...
Hi,

I have created a custom cursor. All works fine in navigating within the flash movie. I have a button that links to an external website. When the mouse is moved over it, I don't want the hand cursor to appear. I have tried button.useHandCursor = false; in every way and place that I could but that hand is still there. What shall I do?

Thanks in advance.

P.S: Please don't be too complex in instructions, I am not even a newbie to scripting...

UseHandCursor - Not Working
Hello all.

I have a movie clip on the main time line. Nested in that movie clip is a button. I don't want the had cursor to show, and I am unable to make it so.

I've tried the following:
button.useHandCursor = false; //action frame on _ root main time line
MCInstanceName.button.useHandCursor = false; //action frame on _ root main time line
this.useHandCursor = false; //this AS was attached to the button itself

Am I missing something simple?
this.useHandCursor = false;

UseHandCursor And StopDrag
Hope this is an easy one, I have an mc which is moveable (startDrag) and a mouse listener that detects if _xmouse has passes a certain co-ordinate, if it does then I tell the mc to stopDrag. Part of the moveable mc can extend beyond that point and If the user continues to drag the hand cursor persists despite me asking otherwise, even tried to delete the onPress event.
Thanks

Mikeb








Attach Code

var isMoving:Boolean = false;

target_Mc.onPress = function() {
this.startDrag();
};
target_Mc.onRelease = function() {
this.stopDrag();
};
var mouseListener:Object = new Object();
mouseListener.onMouseDown = function() {
isMoving = true;
};
mouseListener.onMouseMove = function() {
if (isMoving == true && _xmouse>=370) {

//delete target_Mc.onPress;
target_Mc.stopDrag();
target_Mc.useHandCursor = false; //this doesn't work until the cursor is dragged out of target_Mc

updateAfterEvent();


}
};
Mouse.addListener(mouseListener);

UseHandCursor To A Sprite
Hi,

I got a Sprite and I want to enable the hand cursor when rollover like a stardar button,

I try sprite_name.useHandCursor = true; but I think that only works for a SimpleButton

Cheers

rS

Problem With UseHandCursor?
I have a number of buttons I am using to trigger certain actions, however I do not want the handcursor to show up when the mouse is over these buttons.

I am using:

PHP Code:



but1.useHandCursor = false
but2.useHandCursor = false
but3.useHandCursor = false
but4.useHandCursor = false
but5.useHandCursor = false
but6.useHandCursor = false
but7.useHandCursor = false
but8.useHandCursor = false
but9.useHandCursor = false
but10.useHandCursor = false
but11.useHandCursor = false
but12.useHandCursor = false
but13.useHandCursor = false
but14.useHandCursor = false
but15.useHandCursor = false
but16.useHandCursor = false
but17.useHandCursor = false
but18.useHandCursor = false 




each of the buttons has been named correctly and they are all set as menu items, help me out!

thanks!

UseHandCursor = False; ?
My first post is question

How to move HandCursor from button? i have the code:


Quote:




myButton.useHandCursor = false;




but i dont know where to put it?

I tried in Layer 1 and (blank) Layer 2 , nothing happens.

Problem With UseHandCursor
hi all,

does anyone know whats wrong with this piece of code. i have a text field within a movieclip and i would like the hand cursor to show when the mouse passes over it. but the hand won't show, i'm not sure if the text field is influencing the outcome.

thanks for any help


Quote:




var mc:MovieClip = new MovieClip();
mc.useHandCursor = true;
addChild(mc);

var printfield:TextField = new TextField();
printfield.border= true;
printfield.selectable = false;
mc.addChild(printfield);

UseHandCursor On Non-Sprites
I haven't been able to figure out through my searches how I can enable the hand cursor on objects that are not Sprites or MovieClips or SimpleButtons. I have a List component and now matter what I have tried I can't get that friendly hand mouse icon to appear. Same thing goes with TextField objects, they can't seem to accept a hand cursor on mouse over.

Is there a simple way I can do this for either of those situations?

Problem With UseHandCursor?
I have a number of buttons I am using to trigger certain actions, however I do not want the handcursor to show up when the mouse is over these buttons.

I am using:

PHP Code:



but1.useHandCursor = false
but2.useHandCursor = false
but3.useHandCursor = false
but4.useHandCursor = false
but5.useHandCursor = false
but6.useHandCursor = false
but7.useHandCursor = false
but8.useHandCursor = false
but9.useHandCursor = false
but10.useHandCursor = false
but11.useHandCursor = false
but12.useHandCursor = false
but13.useHandCursor = false
but14.useHandCursor = false
but15.useHandCursor = false
but16.useHandCursor = false
but17.useHandCursor = false
but18.useHandCursor = false 




each of the buttons has been named correctly and they are all set as menu items, help me out!

thanks!

UseHandCursor With Accordion?
Is it possible to use useHandCursor with Accordion?


Thank you.

Agik

[as2.0]Is UseHandCursor Go Wrong?
i want to cancle the handcursor when mouse on the button
but the "useHandCursor" is go wrong.

then..how can i cancle the handcursor in flash2004?

UseHandCursor = False;
Is there a way to put theButton.useHandCursor = false; on all buttons in a mc? I have very many buttons and it's boring to name them all like this..

UseHandCursor Globaly = False
I am wanting to set up my movie so that I can set useHandCursor once and have it apply globaly. Is their a way to do this without writing a function. I tried _global.useHandCursor=false

didn't work

Any Ideas.

Quick UseHandCursor Question
Can you use the useHandCursor command on MCs (not buttons)? and if so, how?

...because im trying to make a MC behave like a button, complete with the hand pointer.

thx for any help

UseHandCursor In Nested MovieClips
I'm making this website and I'm trying to make the hand cursor appear over my buttons (well they are actually movieclips) that are nested within another movieclip on the main timeline. The movieclip links on my main timeline work fine, and are controlled by script in a separate class with the following code:

package {
import flash.display.MovieClip;

class ClickableMovieClip extends MovieClip {

function ClickableMovieClip():void{
this.buttonMode = true;
this.useHandCursor = true;
}
}
}

if I hook up my nested buttons to this it gives me this error:
1046: Type was not found or was not a compile-time constant:mPortfolioThumb0

I then I tried putting script on my main timeline because thats how I got these buttons to function (as opposed to my main timeline buttons which are in a separate class)

function ClickableNestedMovieClips(evt:Event):void {
this.mPortfolioThumb[i].buttonMode = true;
this.mPortfolioThumb[i].useHandCursor = true;
}
- 1119: Access of possibly undefined property mPortfolioThumb through a reference through static type Website.

function ClickableNestedMovieClips(evt:Event):void {
mHeader1.mPortfolioThumb[i].buttonMode = true;
mHeader1.mPortfolioThumb[i].useHandCursor = true;
}
this one didnt give me any errors but still doesn't work....

sorry this is ridiculously long...wanted to cover everything...please help!

UseHandCursor Over Dynamic Text Is Possible?
Hey dudes, i have a little issue. i have a dynamic gallery, with many buttons dynamic created, u set the movieClips to:

ActionScript Code:
buttonMode = true;
useHandCursor = true;
The mouse cursor of hand (like a link) is ok on the movieclip, but over the Text the mouse cursor become as a normal state..

i attach a file to better explanation...

if someone know how to solve this issue, plz let me know!

McBtnTextFiled.useHandCursor = False;
I have a form with 4 textfileds.
1. When the user drag the mouse over the textfilelds the
cursor should remian as a blipping text cursor.
2. When I click on one textfield the textfiled should be high lighted.

I´ve tried som tricky stuff with mcButton but I didn´t manage to solve the problem.
Anyone who can guide me further
I should really appreciate that
Here´s my showcase:








Attach Code

http://www.goodwill.se/staff/form.html
source code:
http//www.goodwill.se/staff/Form.fla

Scroll.... Stop UseHandCursor()
i want to ask for somthing maybe simple but i don't knw it.
in scroll text (dynamic loaded) it works greate but i want to make if the text in the last line the up button isn't clickble... and if it in the first line the buttom button isn't clickble too...

Scroll.... Stop UseHandCursor()
i want to ask for somthing maybe simple but i don't knw it.
in scroll text (dynamic loaded) it works greate but i want to make if the text in the last line the up button isn't clickble... and if it in the first line the buttom button isn't clickble too...

UseHandCursor._visible = False?
Hi,

I am trying to do something pretty simple but cant get it to work.

I have a main movieclip that holds my entire application. I want to disable the hand icon for all of the active buttons and Movie clips inside this main movie clip


Code:

mainMovie.useHandCursor._visible = false;

i have placed this code on frame 1 in the main timeline on the actions layer.

this doesnt work

Any suggestions would be great!

UseHandCursor = False (make Global)
How do you set useHandCursor to false GLOBALLY and true to all mc's so that i dont have to keep setting it to false?

thanks
tea

Button.prototype.useHandCursor = False; ...not Quite
I used the Button.prototype.useHandCursor = false; action to hide hand cursor for my site..and that does the trick for all buttons like it's supposed to. However, I have a scrollbar that when you rollover the dragger or up and down arrows while the clip is still playing (the mask layer that 'uncovers' it), the hand cursor shows. After the mask clip stops, the hand cursor is hidden, and it's back to the arrow like I want.

What gives? Any suggestions?

THanks in advance.

UseHandCursor Only Works If Publishing For Flash 5?
OK folks, this is a REALLY annoying little problem. Another one of those "Macromedia fixed what ain't broke--and broke it!" type of things..

I am trying to turn off the hand cursor over certain buttons...
I've done it before and it works fine IF I PUBLISH FOR FLASH 5.

The exact same script, exact same movie, if published for Flash 6 or 7 does NOT work.

Here is the code:


PHP Code:



onClipEvent(load) {
    this.useHandCursor = false;
}




Obviously, that script is on a movieclip which contains the button I don't want to see the hand over. As mentioned already, it WORKS if publishing for 5, but not if publishing for 6 or 7. makes NO sense.

Help! (file attached)
~Ray B.

URGENT - .useHandCursor For Html-textfield
sorry for the caps,

i need to get the handcursor gone onRollover a link in a dyn html textfield.

.useHandCursor code doesn't seem to work.

is it possible and how.


thanks all you guys

URGENT - .useHandCursor For Html-textfield
sorry for the double post, really urgent.

for MX2004pro.

http://www.flashkit.com/board/showth...hreadid=611827

Using UseHandCursor = True; In A OSX Style Menu
Hi everybody ^^

I am looking for assistence using:

themovieclip.useHandCursor = true;

in the code for this:

http://jrgraphix.net/research/flash-dock-mx-2004.php

I tried use this code in every place i could without sucess... I am looking for a way to change the cursor when the mouse over the icons. Tried contact 2 weeks ago with the autor but without sucess...

Thanks for any light ^^

Huggs

Applying UseHandCursor To All Buttons In A Movie
Hi
sorry if this is a newb question

Is there a way to set a global useHandCursor=false for an entire movie rather than declaring it explicitly for every button instance ?

Thanks

Problem With: Mybutton.useHandCursor = False;
i am using:
mybutton.useHandCursor = false;

The button I am using the script on however is not in the main timeline of the movie. I have tried using the script in the first frame of the timeline of the MC that the button exists in.

I have also tried using
_root.content.mybutton.useHandCursor = false;

this was used in the main timeline, no luck with that either.

what am I doing wrong?

thanks!

Trying To Use UseHandCursor With Accordion Header, With No Luck...
I'm using an accordion, and I'd like the hand-cursor to appear when the user hovers over each header.

I know the syntax is something like:

myAccordion["_header"+i].useHandCursor = true;

but this doesn't work.

Any ideas? THANKS!

Problem With: Mybutton.useHandCursor = False;
i am using:
mybutton.useHandCursor = false;

The button I am using the script on however is not in the main timeline of the movie. I have tried using the script in the first frame of the timeline of the MC that the button exists in.

I have also tried using
_root.content.mybutton.useHandCursor = false;

this was used in the main timeline, no luck with that either.

what am I doing wrong?

thanks!

UseHandCursor Property On Button Component
Hi all,

My problem is to do with the useHandCursor property which I am applying to a 'button' component on my stage.

Basically whenever I add a button component to my stage - by default the 'hand cursor' does not display over the button, so by adding the following to an instance of a button:

myButtonInstanceOnStage.useHandCursor = true;

this works nicely and I get to see the hand cursor appear when hovering over the button - the problem is I will be adding a lot more buttons and was wondering if there is a line of code to put in at the top of my actionscript file that will set all buttons by default to have their useHandCursor property set to true.


Flash: Version 8 Professional
Thanks in advance!

Dynamic Text Box (link) In A Movie Clip - UseHandCursor
Guh! I'd love to solve this myself but not-a-thing is wanting to work for me.

I have some very inefficient code here, regardless, I need to make this link act like a button:


Code:
myDynamicTextBox.htmlText = readMoreLinkText[0];

var myLinkURL1:URLRequest = new URLRequest(myLinkURL_Uno);

myDynamicTextBox.addEventListener(MouseEvent.CLICK, linkOnClick);

function linkOnClick(event:MouseEvent):void
{
if (event.target.name == "myDynamicTextBox") {
navigateToURL(myLinkURL1, "_self");
}
The text for the link and URL are being imported from an XML document.

My MovieClip the dynamic text box is stored in: "MyMC"

I've tried setting these a million times... and making sure the text box wasn't selectable...

myMC.myDynamicTextBox.buttonMode = true;
myMC.myDynamicTextBox.useHandCursor = true;
myMC.myDynamicTextBox.mouseChildren = false;

How should I target the dynamic text box? Is this possible?

Also, where should these settings be placed in the code above. I'm very confused --

THX

UseHandCursor = False; Works With Component Seek And Volume?
Been working on a video section for my site, and have run into a snag.

Using the useHandCursor = false; I've been able to eliminate the hand cursor from showing up over the pause and play component buttons, but I'm having trouble with the Volume, Seek, and Mute.

Any tips or suggestions? I've been trying to name my instances everywhere I can, and using the useHandCursor code, but no luck.

Thankya.

ComboBox Doesn't Use ComboBox Assets
I've been customizing some components, and discovered that the ComboBox doesn't actually use the ComboBox Assets, but instead uses the ScrollBar Assets. I need to have a slightly different design for the ComboBox down button. Does anyone know how to make the ComboBox use it's own assets, perhaps by editting the ComboBox.as or ComboBase.as file?

Thanks.

ComboBox Problem, Displays A "text Box Like" Object Instead Of A ComboBox
Hello friends,

A friend of mine is having a tough time getting a ComboBox integrated into an existing flash movie, to work right.

Here's the story so far.....

The ComboBox when tried out in a sample new file works absolutely fine, but when the same thing (see code below) is added to
an existing movie (which has a preloader in Scene 1) does not work at all. Instead, it displays a "text-box-like" object in place of a
ComboBox...


Code:


form = new Object();
form.change = function (evt){
trace(evt.target.selectedItem.label);
}
comboBox.addEventListener("change", form);



Now, is there a possibility that because a preloader exists in the movie, the ComboBox does not work, not sure on this reasoning!

If someone could help out here, I'd really appreciate it!

Possible Bug With ComboBox
I'm having a problem with a ComboBox component.

I need to check periodically the value of the currently selectedItem on a ComboBox. So what I'm doing is on an enterFrame event of the movieclip that contains the ComboBox, trigering a function that reads that selectedItem. My problem is that when I run the swf movie, sometimes I am able to make a selection on the ComboBox (using the mouse, not programmaticaly) and sometimes not. So far I haven't been able to find a pattern of when this thing works and when it doesn't.

So I was wandering if any of you have found a similar problem, or have any idea what may be cousing it?

Copyright © 2005-08 www.BigResource.com, All rights reserved