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




Special Cursor FX



I have figured out how to replace the original cursor in flash but when you take your mouse off the video the Flash cursor object is still visible, is there a way so when your mouse leaves the frame the flash cursor object can fade out, and fade back in when the mouse is placed over the frame again?

I am using MX



FlashKit > Flash Help > Flash ActionScript
Posted on: 03-10-2004, 11:26 AM


View Complete Forum Thread with Replies

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

Creating A Special Cursor...
Hello I know how to create a custom cursor for my whole flash site, but how do I do it for a specific area? like when the user hovers over a button, how would the mouse change from normal windows/mac mouse to my own cursor?

i know the code for a simple cursor

onClipEvent (load) {
startDrag("", true);
}
onClipEvent (load) {
Mouse.hide();
}

just not on a specific button, or movie clip in my movie.

Thanks.

Flash Script - Cursor Trick 1: Cross Hair Cursor
This is a dedicated thread for discussing the SitePoint article 'Flash Script - Cursor Trick 1: Cross Hair Cursor'

Flash Script - Cursor Trick 3: Cursor Tracking Effect
This is an article discussion thread for discussing the SitePoint article, "Flash Script - Cursor Trick 3: Cursor Tracking Effect"

Cursor Speed And Direction Math To Jump Cursor
Looking for a little help.

I have a project that implements a jump type of desktop mouse interaction. Basically what this does is ...when the user moves the mouse, if moved fast enough (beyond a set speed threshold) the mouse jumps a predetermined amount in the direction the mouse was originally traveling. So I've tried to break it down this way.

First I need to calculate the speed. Based on the below code I can calculate speed on x and y axis but not sure how to evaluate overall speed as a function of both together.


Code:
attachMovie("mouseMC","mouse_mc",1000);
mouse_mc.onLoad = function() {
Mouse.hide();
};

var vxMouse:Number = 0;
var vyMouse:Number = 0;
var xi:Number = _xmouse;
var yi:Number = _ymouse;
mouse_mc.onEnterFrame = function() {
vxMouse = _xmouse - xi;
vyMouse = _ymouse - yi;
xi = _xmouse;
yi = _ymouse;
_root.speedX =vxMouse;
_root.speedY =vyMouse;
_root.cordX =xi;
_root.cordY =yi;
setProperty(this, _x, _root._xmouse);
setProperty(this, _y, _root._ymouse);
updateAfterEvent();
};
I have also added some code to provide a cursor trail.

Code:
onClipEvent (mouseMove) {
if (i >= 100) {
i = 0
}
i++;
this.duplicateMovieClip("flare"+i, i+10);
_root["flare"+i]._x = _root._xmouse;
_root["flare"+i]._y = _root._ymouse;
}
onClipEvent (enterFrame) {
if (this._name == "flareMC") {
_visible = 0;
} else {
this._alpha -= 5;
this._rotation += 2;
this._xscale -= 5;
this._yscale -= 5;
if (this._alpha<=5) {
removeMovieClip(this);
}
}
}
The next part is to evaluate the direction. Now I have done this in reference to a set spot MC using the following code accept that it doesnt update as the mouse moves therefor its only provides the direction from the starting point. Is there a way to update this on the fly as the mouse moves.

Code:
onClipEvent (mouseMove) {
//mouse angle code
x = this._xmouse;
y = this._ymouse*-1;
angle = Math.atan(y/x)/(Math.PI/180);
if (x<0) {
angle += 180;
}
if (x>=0 && y<0) {
angle += 360;
}
_root.angletext = angle;
updateAfterEvent();
}
Thirdly once I have the the speed and the direction how to I go about jumping the mouse distance x in the direction the mouse was moving?

I hope I explained this well enough...if not please shooot me some questions. Any help would be greatly appreciated.

Hand Cursor Turns To Text Cursor Over Button
if you goto the action section and then click the 13th from the left. ( kris foley) the hand turns to a text thing.

I'm not sure whats going on.

Thanks

http://www.ryanhamiltonphotography.com

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 Do You Get The Hand Cursor? Not The Finger Cursor
how do you get the hand cursor with all 5 fingers spread out, and when u click down the hand looks like it grabs the object.

thanks

MC Follows The Cursor. How To Restrict The MC Movement And Not The Cursor?
I am trying to make something similar to this idea but my MC has a couple of buttons that follow the standard cursor - which is not hidden.
The movieclip movement is working by using:

Code:
onClipEvent (enterFrame) {
this._x += (_root._xmouse-this._x)/25;
this._y += (_root._ymouse-this._y)/25;
}
At the moment with this code, the button mc follows the mouse over the entire stage. I am trying to figure out how I can limit the movement to a smaller proportion of the stage, by either a hit area or some other method
Obviously I wont want this to effect the normal cursor movement, just the MC that follows it. Anyone give me a clue of how I should go about trying to do this?
Thanks

Set Cursor To I-cursor Usually Seen Over Textfields
I want to us AS to set the cursor so that it's the I-cursor that's over a textfield. In this case, it would be over a text field, but one that's in a movieclip that has an event handler for it. Because of that _parent event handler, the cursor is a hand when the mouse cursor if over that field. Is there some way I can change the cursor to the I-cursor? Do I need to make a bitmap of the cursor and use it as a custom cursor? I'd prefer not to do it that way if I can avoid it.

Emm Special Help Please.. ;)
Hii i need your helps friends i need annyone gave me a link were i can take an example made with flash

a kind of product that teaches kids english and soo on...



hope annyone can help me on this...

Why Is Cgi-bin Special?
I have a server side perl script running in the cgi-bin directory that returns html to the client. It embeds a flash object with the standard <object> and <embed> tags. The HTML is received correctly by the client, but the flash object does not display.

If you save the received page as static html, it displays just fine, so the syntax is correct. Obviously saved someplace other than the cgi-bin directory, as it is not readable, generally.

Once the html is returned to the client, how can the rendering be different from a static html page? I'm saying that if you do "view source", once from the returned html and once from the static page, you see no differences, whatsover. The only difference is the URL of the page. When "cgi-bin" is in the URL, the object does not display.

Special Fx
i was wondering if anyone could point me to a book or a tutorial that teaches those little fx that you see on many sites like a light outlinning a image and stuff like that, or any other useful things i could impliment into a web page.

Special Efx
Hi all,

I'm not sure this is the rite forum 2 ask this but i've seen http://www.advertisingvisual.com/home.htm

and i'm interested in understand how to do that kind of effects seen also in their Intro ( http://www.advertisingvisual.com/intro.htm )

Anyone want to try 2 brainstorm with me how to do this or anyone wants to share his own techinques to do that?

Personally i think it's made in After effx but, recently, i think it can be done also with flash, using gradients in superb way.
There is some tutorial that explains how to aproach this kinf od effects, also seen in http://www.zenfestival.com/

check how the menus appears and other cool effects...

See also the portfolio in http://www.advertisingvisual.com/ and how to do that cool light effects morfing into logos or simply that cool light-water effx in the middle of the page...

cool!

Nothing Special
im just a noob with flash but i made a small movie if you have any sugjestions on how to make it better please tell me.

Special Efx - How Is This Done?
Hey there!
Please take a look at this LINK !

How is this done? I think he used 25 images (80X80) to make the total image (400X400), but what about the AS?

Something Special
I was wondering if anyone knew some links to tutorials or knows how to export a personalized greeting inside a .swf as a .swf. I'm guessing you could use flashvars and have a main shell .swf that loads the data to tell it how to repsond. Any help is congratulated with turtle cookies and rice.

Sites like below use it :
http://roxik.com/pictaps/
http://itsredagain.odopod.com/

Special Fx
i was wondering if anyone could point me to a book or a tutorial that teaches those little fx that you see on many sites like a light outlinning a image and stuff like that, or any other useful things i could impliment into a web page.

Special Efx
Hi all,

I'm not sure this is the rite forum 2 ask this but i've seen http://www.advertisingvisual.com/home.htm

and i'm interested in understand how to do that kind of effects seen also in their Intro ( http://www.advertisingvisual.com/intro.htm )

Anyone want to try 2 brainstorm with me how to do this or anyone wants to share his own techinques to do that?

Personally i think it's made in After effx but, recently, i think it can be done also with flash, using gradients in superb way.
There is some tutorial that explains how to aproach this kinf od effects, also seen in http://www.zenfestival.com/

check how the menus appears and other cool effects...

See also the portfolio in http://www.advertisingvisual.com/ and how to do that cool light effects morfing into logos or simply that cool light-water effx in the middle of the page...

cool!

Something Special
I was wondering if anyone knew some links to tutorials or knows how to export a personalized greeting inside a .swf as a .swf. I'm guessing you could use flashvars and have a main shell .swf that loads the data to tell it how to repsond. Any help is congratulated with turtle cookies and rice.

Sites like below use it :
http://roxik.com/pictaps/
http://itsredagain.odopod.com/

Special Thanks
In the last week I have posted about 5 or 6 different topics, each with a very different, but all the more frustrating question. Every single one of those posts were replyed to, with thoughtfull responces by clearly compitent people who are taking time out of their lives to help 'lil 'ole me, and many others. I would like to name the people who have helped me.

Tann San
Lauri
Noel4DMB
ISpyTy
wizard34

And last, but most deffinatly not least, our fearless moderator shaolin666 whom I have seen help many many other people.


Once again, thank you very much. You all make this an awsome place to find answers, and to show your knowlage

Special Characters
I was wondering if anyone has encountered any creative ways for getting around using special characters in dynamic text fields. Specifically, getting text characters into Flash isn't a problem, but (using a third party extra) saving that info to a text file creates significant problems because the literal character is saved (or not depending on which character it is) to the text file and then won't appear on a reload. Aside from creating our own save utility (which we're working on), have you ever run across this scenario or heard of workarounds for this?

Special Scrollbar
can anyone here tell me how to make a slidding scrollbar?
i tried to look for tutorials, but couldnt find any.. could anyone tell me where to find either a tutorial or even a example of this stuff...?
thx.. just responmd to this thread, ill be up all night
regards,
gshock

Special Sign Like <b>
Okay, I did a dynamic application, which loads data from an asp file (which is the connection to a database).

Now I get trouble to load a "&" into flash, because flash makes there a cut and thinks there is a new variable.

I hope someone can help me out there.

PS: (Is there a list with such problems or characters ?)

Special Characters
does flash support special characters?

thanks!

Special Actionscript 5.0
I really need help. I'm doing a movie in FL 5.0

This is an invitation card. My boss asked me if the animation can be desactivated or automatic deleted after 2 or 3 days after we send it. Can we do that?

I really don't know how can I do that, and its very important.

Special Effect?
Hi, I'n new to flash and would like some help with a special effect I would like to make. I would like to make an animation with a moving sky. See http://tv.yahoo.com/scariestplaces/ to see an example of this. Can any one suggest how I can creat this effect. Thanks a lot.

Special Scrollbar
hello,

i've desigend a scrollbar as a movieclip with a motion tween over 100 frames to move the scrollbar up and down. (by calculating the scroll position i send the movie to the correct frame, when the user scrolls in a textfield);
the problem is : the bar doesn't move straight up and down, but is guided by a motion guide to go some small curves.
is there any way to make the scrollbar dragable - (movement still restricted to the motion guide)

thanks for your help in advance,
alex

Special Characters
Hi,
This is make me crazy,
I have a text field set as html which as to receive content from a script.
If that contents contains special character it just does not display them how to do ?
the <> for example gives me that problem!
thanks

Special Fonts
I want to use my own font in a flash movie. Do I need to embed the font in order for others to see it, or have the font load with the movie? Help is appreciated.

Special Character
When dealing with variables is the any way of doing any of the following.

A)Insert a Tab
B)Make certain letters bold italic and or any other formating.

Dave

Special Preloader
hello everyone, here's a question about creating a preloader in between a bunch of .swf that are driven by loadMovie script.

i.e. I started with a blank page loading in buttons, when clicking a button it reloads the buttons + a picture. I need a loading movieclip in front of the picture. Now I understand that there is a problem that individual .swf files don't read scripts from one another. Or do they???

Special Preloader
hello everyone, here's a question about creating a preloader in between a bunch of .swf that are driven by loadMovie script.

i.e. I started with a blank page loading in buttons, when clicking a button it reloads the buttons + a picture. I need a loading movieclip in front of the picture. Now I understand that there is a problem that individual .swf files don't read scripts from one another. Or do they???

Special Keys
Are there certain keys not supposed to be used in the key even handlers?? I found TAB and ENTER dont work...do they have to be handled a little differently?

Animation Vs. Special Efx
ok this is something i've been wondering about, I have flash 5, what is a good flash animation program? from macromedia or any 3rd party software??? i had coffeecup but there was only so much you could do...somebody help me out plllllllease! i have jasc software (psp 7 and animation shop) but the animation shop takes forever i need something that would compresst he animations ya know??? so everybody feel free to hit me with a list of that good stuff! let me know what the deal is....

Special Effect
Does anyone how to do the following special effect?

I want to do a thin line running across the screen, start from left side, stretch until reach the right side of the screen. Then the line stretch out in widthwise (top and bottom)to become a semi-transparent window. Then I can use that new little banner-sized window as backgroud for the picture sequence.

thanks a lot

Special Chars Into XML
Hi!

I need to put words with special chars as atribute values into a XML file and load them into flash.


<item>
<sub atr="Conceição"></sub>
<sub atr="Pelé"></sub>
<sub atr="Locação"></sub>
</item>


The problem is the special characters where replaced with invalid characters. I tryed to urlencode them and also to use code names as described in http://hotwired.lycos.com/webmonkey/...al_characters/ . In both cases i had no result.

Could you help me?


Thanks

[Sorry my english!!]

Special Characters
I have a problem when I load an external txt file into a dynamic textfield. Language specific charachters æ ø å does not display properly when I launch my swf. What can I do?!

Special Effects
Hey how goes?
Does anyone know how to create a firework effect or explosion effect to text and/or graphics in MX?

Cheers,
Vgar

Special Effect
Can anybody tell me how the effect on the girls pic is done in the following URL. I am trying this for a long time but can't get through it. Pls. help.

http://www.reptil.dk/sony/

Special Characters
Hi,
I'm trying to load txt_files in to a dynamic textfiled and it works fine except for special characters like "å, ä, ö".
Does someone know how to solve this?
Thanks!
Magnus

Special Characters On Mac Os X
Hi, - I recently discovered that when I use System.useCodepage = true; in a swf where I import external txt files, - the special characters like æ, ø, and å doesn't show if the swf is played on a mac with os x.

However, it works on mac 9.x systems and all the pc's I could test.

Isn't it strange to make a new os and then this is what you get??

Well, - can anybody tell me a way to get by this problem??

Regards

Godowsky http.//www.katrinegislinge.dk

Special Characters
Hi,
How do I encode these characters "<" and ">" in a dynamic textfield which has html formatting (myField.htmlText) without they being interpreted as html?

Thanks.

Special Preloader
I'm very tired of searching how to do a preloader that checks if a frame (by Label) is loaded.
Has someone an exemple?

Now I try with Frame Numbers but I have problems too.
I axplain you what I need to do:
1) The user is in Scene 1.
2) He push a button.
3) The script gives variables to a movie clip. (vScene,vFrameNb)
4) The movie clip checks if the frame is loaded. *
5) if ok it goes to the frame vFrameNb in vScene

*
switch (Scene) {
case "Scene2":
if (_parent._framesloaded>=FrameNb){
_parent.gotoAndPlay("Scene 2",FrameNb);
gotoAndStop(1);
}
}

I see a problem with FrameNb. For me it's the Frame Number of the scene and not of the movie.
Why is that so difficult to test such thing? One big point is that Flash can be streamed but there is no easy way to test if one frame of one scene is loaded.

If someone could help me with this it will be great.

Special Characters
Hi!

can Somebody tell me why have I problems with especial characters when I'm loading variables from an external file?

For example I can not load the ´ or the : chars.

Thanks!

Les.-

Special Charater Pc / Mac
anyone have a solution for special charater pc / mac

if i do € - _ etc in flash on mac it looks fine on mac but not on pc.

if i do € - _ etc in flash on pc it looks fine on pc but not on mac.

verdana, device font. without device font no problem. export flash 5.0. flash 6 takes care of this problem.

.tobbe

Special Characters
Can anyone tell me why special characters like é, à and ç are not
displayed properly when they are loaded from an external text-file?

The font used in the movie is arial CE and can display this characters.

MOVIE can ben found at : http://www.vanremoortel.be/p2003-fr%20agenda.swf
TEXTFILE can be found at : http://www.vanremoortel.be/fragenda.txt


Thanks for your help.
Bert.

Help With A Special Effect?
Hey all, I don't know if this is the right place to post this, but I think I've seen something like this done before with actionscript, so I figure why not ask it here. I'm looking for help with an effect that will look like pouring water. I want to have this red hot liquid pouring from the top left of the screen down into this metallic surface. It will bubble when hitting the surface and as more gets poured, fill up the metallic bin sort of thing. I've got everything else covered, the bin, the bubbles, how to make it look as its filling up and everything. The act of pouring however, I'm clueless. I'm assuming some mask that will be in the shape of the pouring liquid, the size of it changing gently until it stops. What it will be showing, the actual fluid falling, I have no idea how to create. I would really appreciate any help I can get on this, and I would really like to try to make this effect as realistic as possible. Thanks in advance!
-Ange52

Special Effects?
Hi, I've searched flashkit with no luck so far trying to find small special effects that I can put into my flash movies such as film dust scratches, horizontal line animations, etc. Anyplace I can find therse small effects to place in my larger movies?

Looking For Special Software
Hello

I'm looking for software thamt able to make on image (let say portrate of George Bush) out of many others images. Hope that someone there know what I'm taalking about

TIA

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