ActionScript 2.0 :: Creating A Line Mouse Trailer That Fades Out ?
Apr 21, 2008how to create a mouse trailer in AS2 that gives the effect of the mouse "drawing on the screen", and fading out after a short period of time?
View 9 Replieshow to create a mouse trailer in AS2 that gives the effect of the mouse "drawing on the screen", and fading out after a short period of time?
View 9 RepliesI have the following script on a movie clip which fades the clip in when your mouse is over the MC and fades it out when your mouse moves off. It works fine, but it "flickers" when its faded in all the way. How can I stop that?
[Code]....
i have had this file sitting around a while and what i would like to do is make the blob/bubbles mouse trailer actually set as a mask for an image or mc. all the code sits on a small control clip just outside the stage.
here be the fla - blob.fla
also any hints on how to get this little thing to work in MX 2004 ?
You know how some flash sites have navigation buttons and everytime you put your mouse over the other navigation button there is a line or an "element" that comes and follows the mouse and stays under that navigation options?
View 6 RepliesI want to set a point to start my line from and have the other end of the line follow my mouse. Here's what I have so far:
Code:
var clip:Shape = new Shape()
addChild(clip);
stage.addEventListener(MouseEvent.MOUSE_MOVE, drawLine);
function drawLine(evt:MouseEvent) {
clip.graphics.moveTo(0,0);
clip.graphics.lineTo(mouseX, mouseY);
clip.graphics.lineStyle(1, 0xff9933);
}
But it's constantly drawing the line due to my mouse_move listener. I only want one line on stage - know what I mean?
How do i create a basic duplicating mosue trailer?
View 2 RepliesBasically I want the user to be able to create a line on runtime by first pressing mouse_down on the stage estabilisting the first xy points of the line and then move the cursor somewhere else to a different x, y co-ordinate where the user finishes the line by pressing the mouse_down button again. How to do this? I need it to be a straight line
View 9 RepliesI'm trying to modify a mouse trailer I've found somewhere else so that it only reacts within a specific area on the flash page - say an area 780x549 on a 1024x700 flash file.Here is the code I am starting with - The file is written in AS2 for Flash 8+
//mouseTrailer
i=0
onMouseMove = function () {
var cur_x = _xmouse;
[code]...
found nice dynamic mouse traile which i'd like to use on my flash banner. I can get rid of mouse actions but how do make random sparkles move from left side of banner to the right side? Here is mouse trailer code:
//import bitmap class
import flash.display.BitmapData;
//Settings
[Code].....
Recently I was using the mouse trailer script on the site but cannot figure out how to change the color of the text from black to white. I tried putting in letterformat.color = "FFFFFF"; but it didn't work.
Here is the script for the mouse trailer.
Text = "Kirupa has the best site on the net!!!";
letters = Text.split("");
letterformat = new TextFormat();
[Code]....
Ok i am a total n00b to Flash MX, and i made the trailing mouse text thing, and im wondering wether i cood use it on my HTML site or do i have 2 make a flash site? if i can use it in my HTML site how do i intergrate it? I no this might sound lyk a really stupid question but im a n00b
View 5 RepliesI have a mouse trailer which trails pixie dust and would like it to follow a movie clip instead of the mouse. Here is the script I have for the mouse trailer... the mc is named mc_fly.
[Code]...
i made the trailing mouse text thing, and im wondering wether i cood use it on my HTML site or do i have 2 make a flash site? if i can use it in my HTML site how do i intergrate it?
View 5 Replies[code]...
It fades in correctly when you mouse over but when you mouse out it turns to a black color when it should be turning blue. Not sure why.
I would like to make a sort of menu where the buttons fade when the user moves the mouse over the object/button. The problem is that the fade is looping over and over again while the mouse is over the object. how I control the fade effect, so it only fades in once when the mouse is over the object and then fades out when the mouse leaves the object.
ActionScript Code:
import fl.transitions.*;
import fl.transitions.easing.*;[code].....
This is my first post here and it my be a hard one to understand? Overview I have four buttons on the main stage (info) (help) (bio) (main) When you Rollover a button it fades to another color/when you rollout it fades back to the original color I have a script that does the color change because I do not want to use motion tweens. Here is what I did I made a 2 frame MC named infoMC In the 1st frame of the MC I made the word (info) a nested MC and attached the color change code to it. The 2nd frame of the MC Is the same as the 1st frame but I revesed the color change
[Code]....
draw a line on mouse movement, not the static line.
I am attaching a sample which is 90 degree bounded as it has been given in animation, I want to make this or such type through mouse movement.
I've managed to follow some drawing tutorias which work fine (mouse down draws a line everywhere you move mouse like MS paint).I would like to adapt this now if I can so that when a user clicks down, a straight line will follow their mouse until they click again and this releases the straight line. This should leave one line on the screen, then they are free to move their mouse and repeat the action again.
View 6 RepliesI want to create line between 2 points ...such tht the line will start when i click the point A then i will drag the line by holding it to point B and i will join the line to point B by clickin on point B (somethin like the pen tool) ..then line will then be joined between the points ...
View 1 Repliesi want something likeclick whatever video inside and watch the exsample)a movie trailer with preloader and play before part of preloader(not waiting buffering until 100% loaded)should i convert media file to flv.?
View 1 RepliesI am using actionscript 2.0 and I am trying to develope a line in 3d space. When I try to create a line base off of two variables, it doesn't work.
[Code]....
I want to make a timeline spanning the year -3000 up to the year 2100. I want it to have a prefixed width between the numbers, 100px, and it has to add up with 50 years every time.
View 3 RepliesHow do I create and control a line of text that i turned into a button. I want to have a selected state built into the button. is that possible? Previously I created a light next to the text that changes color or highlights when the button had been selected, but I would like the text to change color when it is selected and have script that I can use to reset the button state when another button is selected.
Current button:
Actionscript Code:
S1.addEventListener(MouseEvent.MOUSE_DOWN,click_S1);
function click_S1(evt:Event):void {
Truck.gotoAndStop(16);}
I am looking to create an effect this this: [URL] Or even were the lines come in as a group or lines do a moment and move off the stage again. Been trying to mask it but the problem is that the line vectors have no inside too them, just a pure line.
View 1 RepliesI'd like to create cool lines and bars charts dynamically, from xml data. Since I'm not an expert in Flash, I wanted to get a tool to accomplish this. So far, I've tried Flex Builder 3, but I can't figure how to draw the chart dynamically, as the xml data is constantly changing. I just see examples on the internet with xml like "Orange, Banana, Apple", when what I'd like to see is something like "......" and get each item's value and attributes to show in the chart.
View 1 RepliesWhat is the syntax for creating a line break in a dynamic text field?
Similar to:
PHP Code:
<p>The cow<br />jumped over the moon.</p>
I have a line randomly being drawn and moved across the stage. Here is the code:PHP Code:
import flash.display.Sprite;
var xValue:Number= 0;
var yValue:Number = 150;
[code].....
In my latest project I'm trying to have a line follow my mouse, I succeeded doing this with the LineTo and MoveTo functions this is what i have come up with [URL]if you will play with it for a while you will notice that sometimes the line is burned on the screen and just stays there,Another thing i want to achieve is that the line will be created out of a movie clip and will have animations and graphics in it insted of just plain color.
btw heres my code
package
{
import flash.display.*;
import flash.utils.*;
[code]....
I am trying to load various swfs into a main swf. The initial swf loads in by default, the others load when buttons are clicked. All of the buttons also call a lengthy function called loadpic which appears later in the code - Currently the buttons load in the swfs as required, however the swfs are always behind the initial default swf. Is there a way to add removeChild to the buttons? I have tried creating seperate functions for each button and added the line removeChild(); however doing that means I would also have to repeat all of the later functions as well. If I add removeChild(); without placing it in a function the default swf doesn't show at all.
[Code]....
I have my file set so that the mouse cursor leaves a trail behind it. However, it clutters up the screen. Is there any way to make it fade after a set amount of time? The only script is the following, which is set in the initial frame.[code]...
View 2 Replies