How To Position (_x, _y) A Custom Made Cursor?
How do you set the _x and _y positioning of a custom made cursor? No matter what I seem to do, it always positions itself in the middle of the screen. It like completely ignores setProperty, and even where I place it by default on the stage. Why is this?
I would like to have it, that when you move your mouse over the flash movie, your cursor is replaced with a custom cursor, and when you move out of the flash movie, the custom cursor is replaced with the orginal cursor. Is this so difficult to try and master.
FlashKit > Flash Help > Flash ActionScript
Posted on: 09-07-2001, 11:15 PM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Pre-position Custom Cursor
I built a custom cursor that works OK, but it shows up in the upper left of the movie when it first loads in a web page. I have it off the stage in the fla, but it seems to be instantly going to x=1, y=1. This general area happens to be empty. You can see the effect at http://www.extragravity.com/examples.htm
Can I preset the custome cursor to be off screen entirely, or even centered in the movie. Either would look better than what I have.
tx - Joe
Custom Cursor To Return To The Regular Mouse Cursor
How can I get my custom cursor to return to the regular mouse cursor when in the bottom 3rd of my flash movie. I need to do this for nav functions and I want the regular cursor actions in this area. So to recap: within the top 2/3 of the movie I will have my custom cursor, upon entering the bottom 3rd of my movie I need the cursor to switch back and vice verse...
my code below, please any suggestions are very helpful as I have tried several things:
stop();
import flash.events.Event;
import flash.events.MouseEvent;
import flash.ui.Mouse;
Mouse.hide();
stage.addEventListener(MouseEvent.MOUSE_MOVE, moving);
function moving(evt:MouseEvent):void {
if (cursor.currentFrame != 0) {
cursor.gotoAndStop(1);
}
cursor.x = stage.mouseX;
cursor.y = stage.mouseY;
cursor.mouseEnabled = false;
evt.updateAfterEvent();
}
//These three eventlisteners are telling flash to "listen" for specific events
//in our case if the mouse moves and if the mouse button is down or up.
//then if one of these events happens, it calls a function (mouse_down, mouse_up or moving).
stage.addEventListener(MouseEvent.MOUSE_DOWN, mouse_down);
stage.addEventListener(MouseEvent.MOUSE_UP, mouse_up);
// This is how to construct a simple function,
// this function will write in our text field "mouse is moving"
// when the even is raised by the eventlistener
// function just like above, just for the mouse down event.
function mouse_down(e:MouseEvent) {
if (mouseX < 800 && mouseY < 450) {
timer.start();
timer2.start();
}
}
// function just like above, just for the mouse up event.
function mouse_up(e:MouseEvent) {
timer.stop();
timer2.stop();
}
Thanks again and help!
How Is This Cursor Made?
I like how the ball stretches more the faster you move your cursor.
How is that done?
http://games.armorgames.com/games0015/orange.swf
Thanks!
Custom Cursor + Custom Scrollbar = Problem
Ok, this is the thing: I made a scrollbar in flash, just like I made a cursor. the cursor only works when I set the settings to flash < 6 and as soon as I use the scrollbar while also using the cursor, it stops working. i suck at AS-ing and any help would be greatly appreciated.
~YF220
PS: .fla included.
How Do I Make The Cursor I Made Always...
I was wondering how to make my custom cursor stay in front of everything else. I made a note pad kind of thing where you can draw, but the pen is behind the ink. please help, i think it is just a property. I have tryed the layers crap.
Custom Made Cursors?
Hey
i was just wondewring if sumone can help me with custom Cursors...I want to make my own cursor and whenever my mouse is over my flash movie, my cursor will be the cursor that i made
I would Greatly appreciate it if u could help me
Thanks
Need A Custom Web Template Made
I need someone to help me with a web template I need. I have looked all over to buy one but no one has anything even close to what I want. Here is what I need basically.
1.it is a western theme (Set back in 1865)
2.don’t need it too flashy
3.needs a cool intro
4.like to have all pages different swf files
5.need done within 6 weeks
6.Don’t need sound effects. I can do that.
Anyone interested e-mail me at acidblue0@hotmail.com
Custom Made Scrollbar
I know there are lots of posts but I want to make a simple custom scrollbar for a text field.
I know I can make a couple of buttons with the following code:
Code:
Upward Button
on(press)
{
upint=setInterval(scrup,100);
}
on(release)
{
clearInterval(upint);
}
Downward Button
on(press)
{
downint=setInterval(scrdown,100);
}
on(release)
{
clearInterval(downint);
}
But how do I make a dragger?
Custom Made Scrollbar
I'm using a simple scrollsystem for a wile now.. wich I cannot change a lott from(beside the color and the width).
Anyone knows a scrolling thing to scroll an mc, from wich you Can easily change the scrollhandle into your personal style/shape!?
example like on m-error.net from drawingart. He makes his different one's for each site..
And like the great big one on juniorsgiants ?
thanx igor
Can't Load An Mp3 With A Custom Made Butn
Hey dudes I've made up a set of buttons and want them to load an mp3 when clicked, I also want them to unload any files currently playing. so far I have managed to run the mp3 file on the down state of the button, but I'd rather load the file into the movie and unmload the other files at the same time.
I have been trying:
function loadMP3() {
sound = new Sound();
sound.loadSound("D:webprojectsLawrencemusic ra ns1", true);
}
and ain't nuthin happenin, any clues?
Custom Made Scroll Panes
Hi there, I intend to dynamically load content onto a stage (from a MySQL database), but not knowing the size of the contents, I need to create something like a scrollpane assumably using the mask function in Flash MX (which is what I use).
Does anyone have hints or linke to tutorials I might investigate? Anyone with experience from this kind of deal?
A Scrollbar That's Completely Custom Made; Possible?
OK, basically I want a scrollbar that I can have custom buttons for and not have to see the conventional one, e.g. with the two little boring arrows, the track and the bar bit, I want one that's completely different.
Now, I'm sure I've seen one somewhere, but I can't seem to remember where now....
Can anyone point me to a tutorial??
Cursor Made Invisible After 4 Seconds - Problem. Movie Attached
See attached movie.
I have a movie with some nice graphics that I dont want to be disturbed by the cursor. Therefore I have this script in the frames over the graphics that makes the cursor invisible after 4 seconds, if the mouse has not been moved. The script is working perfectly.
BUT :
- I have a options box where the user can turn off the background music and other things.
This options box is made visible by clicking on a options button on the stage. The options box is then showing on stage.
As long as the options box is visible on the stage I dont want to have the cursor made invisible after 4 seconds. It will disturb the user when he is deciding in the options box what settings to use, that the cursor suddenly will disappear. It will come back as soon a user move the mouse again, but it will give the user a disturbing experience with this undesiding cursor flickering.
What I want is that when user click on options button then the "hide cursor" script is turned off. And when the user thereafter is clicking the "OK" button in the optionsbox to make the box go away, then I want the hide cursor script to be active again.
What I want is something like this on the options button:
on(release){
sliding._x=230;
sliding._y=78;
clearInterval(nIdleTime);
}
What I want is something like this on the OK button:
on(release){
_root.sliding._x=-260;
_root.sliding._y=631;
idleTime:Number = 4;
}
---------------------------------------------------------------------------------------------------------
Here is the hide cursor script on the frames:
var idleTime:Number = 4; //define number of seconds for idle time here
var mouseCord:Number = _xmouse+_ymouse;
var nMouseMoveDetect:Number = setInterval(mouseMoveDetect, 500);
var nIdleTime:Number;
function mouseMoveDetect():Void {
if (mouseCord != _xmouse+_ymouse) {
//mouse has moved in last half a second
Mouse.show();
clearInterval(nIdleTime);
nIdleTime = setInterval(idleProcess, idleTime*1000 - 500);
}
mouseCord = _xmouse+_ymouse;
}
function idleProcess():Void {
clearInterval(nIdleTime);
Mouse.hide();
}
Rmtp Address For Custom Made Components, Can It Be Done?
Good afternoon
(Just joined actionscript.org as I'm about to embark on a large web project for a client, and I've been given the mind bending task of integrating streaming video).
Managed to setup a normal player streaming via servers, FMS servers and clients etc etc ...took a while but it works perfectly...
THE PROBLEM:
We have a player that was created without using any of the drag and drop components and has all been fully coded.
The problem is that if I put the 'rmtp server video' address where the flv filename was used before (it was a progressive download before), and put it up on the web server it cannot find the address.
The address works fine when using prebuilt flash player components.
Does anyone know if:
a) is it possible to stream video through Flash Media Server using custom built components.
b) is there a different address needed, to get it to work?
c) any ideas, as I wont be able to create the same style of player using the pre-built components.
Many thanks
Jon
sure to be searching the forum for a lot of other anwers soon, got some already but this is the first question. cheers.
Issues With Custom Made Functions - Parameter Undefined
what this code does is load text from one dynamic text box to another. now I can load it with defined variables but have problems when I try to make it dynamic using a parameter. can anyone point me in the right direction as the parameter is tracing back as undefined.
any ideas? i dont want to repeat the same function millions of times over when most of the code is the same
Code:
function test(loadingText) {
loadingText = "";
charsPerTime = 10;
tel = charsPerTime;
addChars = function () {
body = phil2_text
bodytwo = loadingText;
loadingText += body.slice(tel-charsPerTime, tel);
updateAfterEvent();
tel += charsPerTime;
if (body.length == bodytwo.length) {
trace("done");
clearInterval(myInterval);
}
}
var myInterval
myInterval = setInterval(addChars, 1);
}
test (phil_text)
Move (draggable) Menu Back To Position After Selection Made
Hey All...
I have a draggable menu movie that is loaded into a target on level10 and I want to have that draggable menu move back to a position in the top half of the screen and then stop the behavior so the menu can be draggable again- all of that after the person makes a selection from a menu item. I was trying to modify the exercise in Flash 5 Actionscript Studio p.148 "Math.abs and programmatic movement"..... How would i modify that MC or those behaviors to act as a manager of another movie clip (the menu) and not itself...
thanks alot , sonero
Loading Extrenal Text Into The Custom Scrollbar Made In Kirupa's Tutorial.
Well, that title was a mouthful...
Anyways, I've tried five different tutorials for laoding external text now, and none of them work with the custom scrollbar.
What i currently have is a dynamic textbox in the content movieclip in the scrollbar.
the code for the frame is:
Code:
myData = new LoadVars();
myData.onLoad = function() {
myText.text = this.content;
}
myData.load("menucontent.txt");
And yes, the textbox has a instance name, and a variable name.
Does anyone know what I'm donig wrong?
How To Use Cursor Position
Does anybody know how I can use the x or y position of the coursor so that the movie clip would understand the movement of the mouse and move a movie clip to the next or the former frame according to the movement (ex. right movement=next frame ) ?
Cursor Position
Hi Guys
I need to identify coordinates within a movie so that when the user moves the mouse into that area a piece of script is executed / a movieclip is played.
I can get the same effect by creating an invisble button that, when rolled over executes the script but this is a messy way of doing it as the cursor switches to the hand pointer.
Hope someone can help.
Thanks
Phil
Set Cursor Position
i am writing a auto suggest list where the user begins typing, then possible matches are displayed and they can use the arrows to select one. if they hit enter the textfield is filled with the selected item. the problem is that the cursor does not move to the end of the text... how can i set the cursor to the end of the text??
TAB Cursor Position
Hi!
I've for example 5 TextInputs. How can I set the position of TAB cursor between these TextInputs after export movie? I want to have the TAB cursor in the 3rd TextInput.
Thank you for answers, WISION
Cursor Position
Im trying to move the (Blinking) Cursor in a text field to the end?
Is there any way of doing this?
CUSTOM CURSOR
Hi again FK. I need help with producing a customised cursor in Flash4. I have the necessary artwork in flash 4 but i don't know how to turn it into a cursor easily.
Muchos helpos would be appreciated... Thanx peeps I knew I could rely on u guys/gals.
_____________________________
Eggman sez 'Stay In School'
Custom Cursor
ok, i have a flash site with a custom cursor that i want to fade out when the mouse leaves the borders of the window that the flash movie is in. i have the animation set to fade out, all i need is the code to place that will tell the cursor mc to go to that fadeout animation when it detects that the mouse is out of the window. anyone out there wanna help me out???
thanks in advance
mr nix
Custom Cursor
Is there a way that i can create a custom cursor that acrtivates on button Rollover. Tricky Part is:
The button is an alpha masked mover from affter-effects taht carries transparency.
Any help would be great.
_drewf
Custom Cursor
hey there, i need a set of lamest terms instructions or tutorial to make a custom cursor for my site. im only a newbie so could it please be easy to understand? thanks in advance.
Custom Cursor
I have created a custom cursor for a website. The problem is that the cursor appears to go underneath the buttons. I have tried rearranging the layers but that does not work.
Any suggestions?
Also does anyone know if you can have the same custom cursor appear in the website if part of it was made in dreamweaver. I have another site that just the intro is in flash and the rest in dreamweaver and I want the custom cursor to appear throughout the site.
Thanks in advance for the advice
Tazmania
More About Custom Cursor...
Please tell me actionscript for my custom cursor, who would change size or colour when I roll on buttons./Just script for that colour or size changing/
Custom Cursor
Hey guys
Have a little problem
Am making this little movie and have created a custom cursor, but with this custom cursor i want to pick another MC up and drap it, which is fine, but when i do it drops the cursor. Is there away to have the cursor remain draging and still be able to drag the other MC?
Regards
Steve
Custom Cursor And...
hey im really startn to get mad lol 1.how do u make animation inside a buton for example when u click i guy he starts to dance or somthn like that
2.and how do u make a custom cursor
pleez write 1 or 2 before your answer
Custom Cursor
I created a custom cursor in Flash MX & the problem I am having is when you go in any direction to the ends of the sides the cursor cuts off. Does anyone know of a way to fix that. Listed below is the code that I am using.
Spirit Beanies click
Any help would be appreciated.
Thanks
onClipEvent (load) {
Mouse.hide();
startDrag("", true);
}
Custom Cursor
here's the deal:
in director you can replace the arrow-cursor with a hand (or any other default cursors of windows) whenever it rolls over an object. you can also make your own - saved as two 8-bit bmp's (one as it's supposed to look and the other as a mask).
can this be done in flash. the thing is; i don't want the cursor to depend on what framerate (12 in this case) the movie is. there's some sort of script to prevent this though (something about "function"), but that's all i know.
by the way;
can you only make hittest-areas as squares...? that seems rather boring...
/bensa
Custom Cursor
I have made a custom cursor for my current project. I am wanting the cursor to "move" or play a short movie when the cursor clicks a button. To further explain it, I have a set of water glasses as the background. Each glass is a button. When the button is pressed, it plays a sound on release. My cursor is a spoon. When I press on of the glasses, I want the spoon to move as if it is tapping the glass. I have a small movie made of this. Is it possible to do this??? Please help!
Custom Cursor.
Hi,
I am having a problem with a cursor that I built I can get it to work with one exception. I have draggable windows in my project and when ever I drag them the cursor stops working. Why and how can I fix this problem.
Oh and what I am doing is loading the cursor in a higher level than everything else. I am not sure if this method is the best but it is the only way I can get it to show up over certain graphics. Any help would be awesome.
Custom Cursor
k, im not sure how to explain this, i want a custom cursor that when u click nothing it changes to one graphic, and when u do click something(a button) it changes to random graphics other than the first(and the normal)
maybe the attachment will better explain better...
how do i do this?
Custom Cursor
k, im not sure how to explain this, i want a custom cursor that when u click nothing it changes to one graphic, and when u do click something(a button) it changes to random graphics other than the first(and the normal)
maybe the attachment will better explain better...
how do i do this?
Custom Cursor
I used to know how to make a custom cursor but I forgot now. Can anyone refresh my memory? I know it has something to do with dragging a clip event or something but I am not familiar with that much AS. If anyone could give me the AS that'd be cool. Thanks!
Custom Cursor
Hi, can someone please tell me how to make a custom cursor??
i want a hand to be the cursor instead of the arror inside my flash movie. im not sure if you understand whay im talking about... but i hope you do ^_____^;;
Thanks for your time
Custom Cursor
Hi
how would i create a custom cursor that stays the same when you roll over a button ?
Thanks again !!!!!
PLEASE HELP ME !
Custom Cursor Help
I want a custom cursor to animate when the mouse button is clicked.
I built the custom cursor animation using the timeline. I have a stop action on the first key frame so the animation will not start playing.
Right now I have this code to change my cursor. What do I have to do to make my timeline start playing on mouseDown?
Mouse.hide();
startDrag("cursor",true);
I tried this....
onClipEvent (mouseDown) {
this.gotoAndPlay();
}
where am i missing the boat?
Thanks!
Custom Cursor Anyone :(
Hi,
Anyone know a good tutorial on creating custom cursor that ONLY APPEARS when the mouse is over a certain area?
I've seen lot's of tutorials that show you how to create a custom cursor, but
the cursor sits there all the time. It's visible to the eye.
I'm trying to create one where you don't see the cursor until your mouse is over the area where it appears.
Custom Cursor Any One?
I'm trying to create a custom cursor that appears ONLY in a certain area of my flash movie.
I don't need this cursor to appear on the entire movie, I only need it to appear in a certain area of my flash movie. For example, maybe I have a simple little box in the center of my 800x600 flash movie, and I want the custom cursor to appear only in that little box.
Does anyone know how to create such a thing?
tg
Custom Cursor Help
Hi all,
After searching for a while and being the absolute novice i am, i can't find an answer. please help........
I created a quick dummy movie with start stop action. If you click on the movie it will stop, then click again it'll restart.
How can i change the cursor icon from a hand/arrow into something of my choosing????
sample movie here
ohh yeah, im using flash mx on a mac
Custom Cursor Help Please
Hi, Im trying to make a simple custom cursor work with a line drawing app, but I lose clicking fuctionality. this cursor is only to activate while over a certain section of my SWF so I did this
Code:
_root.screen_mc.onRollOver = function(){
Mouse.hide();
_root.pencil._alpha = 100;
_root.pencil.startDrag(true);
}
_root.screen_mc.onRollOut = function(){
Mouse.show();
_root.pencil._alpha = 0;
_root.pencil.stopDrag();
}
how can I do this and maitain the full capabilities of the mouse?
thanks in advance
Mark
Custom Cursor
Hi,
I'm making a photo gallery site. When the user scrolls over an image, I want the cursor to turn into an arrow that will advance to the next image.
I made a custom cursor, but I only want it to be activated when it's scrolling over the photo, not the entire site.
Here's my code:
onClipEvent(load)
{
Mouse.hide();
this.startDrag();
}
Thanks!
Custom Cursor
Hi,
I'm having trouble with a custom cursor that i made into an arrow.
It works, except it "flashes" on the very top left of the site when you enter the area where the cursor changes.
Any suggestions?
I posted my file:
go to FTP.fatcow.com
username and password: dianeco
Thanks!
|