Blink Using Actionscript>>>>
Can some one please help me in how to make text/movieclip blink, by using actionscript,, please some one help..this is same as making a movie clip flicker .
FlashKit > Flash Help > Flash ActionScript
Posted on: 08-19-2002, 12:05 AM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Blink >_< Blink >_< Help Please....thnx :)
How do I make my movie goto full screen the moment it opens?
and why is it that everytime i test my movie, let's say "car" usually it will appear as an swf movie "car" right? Mine appears as "car.fla" and its a swf.
[F8] In The Blink Of An Eye.....
i am trying to program a little animation of an eye blinking, but the curveTo command seems to leave a line beween the two curves that i can't get rid of, can someone have a look?
Rapid Blink?
its kinda complicated to explain so i uploaded the fla
http://www.dx-p.com/shape4.fla
if you check menuitem7, it blinks rapidly. Why is this happening?
Text Blink
hi! im curious to noe if there's a way to make text blinks in Flash.
Thanks heaps!
Shawn
Blink Function
I am having a hard time writing a function for making an movie clip that blinks a graphic partly because I dont know how to handle the timer object. I've enclosed my code! Your help as always is appreciated..
onClipEvent(enterFrame){
//BLINK FUNCTION-->
blink = function(object){
//frequency of blink
var rate;
//current timer position
var count;
//time before blink-node change
var wait;
//number of blinks to run
var blinks;
//number of pods in a system of blinks
var pods;
//BLINK-SYSTEM-LOOP-->
rate = 25;
pods = 5;
//BLINK-POD-LOOP-->
do{
wait = (1/rate);
blinks = rate;
//BLINK-NODE-LOOP-->
do{
//blink-node-off
object._visible = false;
count = getTimer();
//blink-node-wait
foo = blinknode(count,rate,object);
--blinks;
} while((blinks>0));
//END NODE--------------->
--pods;
rate = rate - 5;
} while(rate>0);
//END POD--------------->
//END SYS--------------->
}
blinknode = function(count,rate,object){
var thiscount;
//when was this function ini
thiscount = getTimer();
//recursive function call
if ((thiscount-count) >= rate){
object._visible = true;
} else {
foo = blinknode(count,rate,object);
}
}
foo = blink(this);
}
Makin It Blink
Hello....
i was just wondering how to make something blink continuously. any tut would be helpful...
cheers,
Igor
Trying To Get Rid Of A Quick Blink...
Hello,
I made very small 1kb titles.. simple text and animation...
but when you click on the buttons on the menu, you can see the titles of each section do a quick blink of of what looks like black then white... how can I get rid of this? I put a temp link so you can see...
http://www.magicofjb.com/newsitetest...an2/index2.htm
Any help is appreciated!! thanks!
Allie1138@aol.com
Blink For The Love Of...
here's the scenario...
i have some points on the stage that are buttons. it's the same button, re-used from the library, but each button has a different release action attached. for example:
Code:
//point 1 looks like this
on (release) {
getURL("mypage.php?id=1");
}
//point 2 looks like this
on (release) {
getURL("mypage.php?id=2");
}
//etc...
obviously, when the page reloads do to the getURL command, the flash movie will reload as well. the last button clicked is stored in the address as the variable id. if id=3, i know the 3rd point was clicked, etc... i'm wanting the flash movie to represent that.
my idea is to have the points "blink". the best way i know to have this happen, is to place the button inside of a movie clip. on frame 2 of the movie clip would simply be a movie loop of the point "blinking". so i want a way to change that point to a "blinking" state based on what id is set to. if id=1, i want point 1 to blink. etc...
LoadMovie Blink
I have a flash movie that I'm using loadMovie with.
The _root movie is 640 x 480 pixels.
From the _root I load a swf into holder_mc (this swf is also 640 x 480 pixels and covers the whole _root movie).
I then load other movies into holder_mc , but when I do this, theres a brief second where the movie loaded in holder_mc disappears, I see the root movie, and then the new movie loads into holder_mc .
Is there a way to make my movie so that you don't see the _root when switching out movies in holder_mc with loadMovie?
Can Do? Blink Using RollOver?
Button Function Looks Good
MC Function Looks Good
Script Function Looks Good
But it is "NFG"
I am interested in why it doesn't work. Is it because of the rollOut/Over function isn't capable?
Comment or solution would be helpful
p.s. Watch out for the weather in the next 10 days!
Thank You
Keyframe Blink?
Okay, so I'm using Flash 8 and animating a bunch of vector shapes to expand and shrink and move across the stage. Each shape is within a movie so I can add the new blur effect, along with alpha. Most of them start with a zero alpha and then move up to a more visible point, before moving back to a zero alpha. And this is where i'm encountering a sudden change in the alpha that's about like a blink. Anyone know whats going on with this?
It'll be fine as it starts from the first keyframe, going from transparent to more visible, then when it hits the next keyframe where i set the next alpha level, it blinks and becomes much more solid before moving on to the next level of alpha on the next keyframe where it may or may not blink again.
I'm running an animation at 30fps and so i'll ease them in to a semi-transparent point, then move them and make them slightly more transparent over time, then back out.
This is just adding to a problem i already have with enlarging the evil thing and having it run properly.
Any help would be appreciated.
Blink Window?
Ive searched everywhere!!!
is there a way to make the window blink, to indicate new data has arrived or something from a minimized IE window???
I cant seem to find out anywhere
using maybe javascript or something???
Blink Object
Hi,
how can i make a blink ball with actionscript?
attach a object ball, and blink with loop.
i using laco tween class.
Blink Window?
Ive searched everywhere!!!
is there a way to make the window blink, to indicate new data has arrived or something from a minimized IE window???
I cant seem to find out anywhere
using maybe javascript or something???
Making Something Blink On/off?
Seems like this is a simple thing to do but I'm asking anyway.
Say we want to create a blinking object to be used as needed, maybe an arrow to call attention to something on the screen.
What I created was a mc w/the text in F1 and nothing in F2. I then used a setInterval based function in each of the 2 frames to create a delay:Code:
/////// Pause Function ///////
function pausePlayback() {
play();
clearInterval(pauseHere);
}
pauseHere = setInterval(pausePlayback, 2000);
A good coder might notice right away that once this function is called, there will always be an uncleared interval, which will wreak havoc during playback. Can someone tell me a "right way" to pull this off?
Thanks as always.
Mitch
Cursor Blink
Does anybody know why is the cursor blinking when i mouse over "x, g, e" buttons here:
http://banner.conweb.es/swf/part1b.swf
It happens again after i click on "new" or on the ">" in the bottom right corner!!!
Please help me!
Thanks alot
Blink REAL Fast--
anyone knows how i can make something blink REAL fast? like 10 times a sec--- this is not made with keyframes i think so i must be scripted,, but how.
thanks a lot
dirty
Making Buttons Blink
I was wondering how to make a button blink on the over part. Here is what I did, which failed.
1. Created a new symbol-button.
2. Created new symbol-movie clip.
a. The movie clip has 2 frames, 1st frame is the button in one color and the 2nd frame is the button in another color. I then added a goto and play action to make it go back to frame 1. That way it went to from frame 1 to 2 then repeated over and over.
3. Back to the button. On the over section, I added the movie clip. Then I tested the movie and it doesn't work. What am I doing wrong and how can I make it work.
Make Clip Blink
Hi
Have a look at the attachment. Im trying to make the thumbnails blink on roll-over. Its been pissing me off for ages now
Maybe change the alpha of thumbnail to 30% then gradually to 100%.
How can I do this???
Thanx in advance
Blink With Dynamic Jpg Transitions?
Got stuck,
please look at http://www.xmoment.nl/flashTest/home.html
i got the images and text dynamic loaded, but i get a pesky blink between transitions.
Any ideas tips how to prevent this?
Part of my code
code:
function preload () {
var t = container.getBytesTotal (), l = container.getBytesLoaded ();
var tt = containerBG.getBytesTotal (), ll = containerBG.getBytesLoaded ();
if (t && l == t) { //wanna be sure container is loaded
//container._visible = true;
if (tt && ll == tt) { //be sure containerBG is loaded
//containerBG._visible = false;
clearInterval (myInterval);
gotoAndPlay (2); //both are loaded so go
}
// end if
}
//end if
}
//end preload
loadMovie (pathToPixs + "image" + bgPic + ".jpg", "containerBG");
loadMovie (pathToPixs + "image" + whichPic + ".jpg", "container");
myInterval = setInterval (preload, 5);
Blink Button Text
Hello,
How do you create a button that has text and have the text blink?
Like this web template that i saw:
Button with the rollover blink text effect
Thanks
Blink Of White Between Scenes
I am new to this site (and flash) and have been reading a lot of the information on this site. It is great!!
I have a question... I am trying to set up a whole site in flash, because when I did it in html and flash, I was getting a blink of white while the page loaded. I even tried changing the background to black, but it still blinked to white first.
So, now I am trying to set it up in flash. I am setting it up with five different scenes, but when I uploaded to check I am still seeing the blink of white when it changed scenes. Because of the layout it looks really funny. Is there a way to get rid of this? Do I have to set it all up on the same timeline and jump back and forth? This could get really confusing.
I appreciate any suggestions.
Thanks!!
Getting The Insertion Point To Blink
Hi, I have a form and I would like the insertion point to automatically blink when the page loads. There is more than one field. I would like the insertion point to be blinking and the user can automatically start typing without having to click into the text field. Is this possible? Thanks
How To Get Rid Of The Blink Between Photo Transistion?
zie http://www.bldd.nl/flashproblems/photoSlideshow3.swf
i see a blink right after my animated mask is finished
Code:
stop();
var myMCL:MovieClipLoader = new MovieClipLoader();
var myMCL2:MovieClipLoader = new MovieClipLoader();
var maxNrOfPhotos:Number = 4;
var photoHolderTop:MovieClip;
var photoHolderBottom:MovieClip;
function startSlideShow() {
trace("halllo");
var nummer:Number = 1;
var nummer2:Number = nummer +1;
var myListener:Object = new Object();
myMCL.addListener(myListener);
//myMCL2.addListener(myListener);
myMCL.loadClip("photos/photo"+nummer2+".jpg", photoHolderTop);
myMCL2.loadClip("photos/photo"+nummer+".jpg", photoHolderBottom);
myListener.onLoadInit = function(photoHolderTop) {
trace("Nummer: "+nummer+" Nummer2: "+nummer2);
if (nummer< maxNrOfPhotos) {
nummer++;
} else {
nummer = 1;
}
if (nummer2<maxNrOfPhotos) {
nummer2 = nummer + 1;
} else {
nummer2 = 1;
}
photoHolderBottom._visible = true;
photoHolderTop._visible = true;
photoHolderTop.setMask(masker);
masker.gotoAndPlay("_start");
setTimeout(loadNext, 5500, nummer, nummer2);
};
}
startSlideShow();
function loadNext(nummer:Number, nummer2:Number) {
myMCL.loadClip("photos/photo"+nummer2+".jpg", photoHolderTop);
myMCL2.loadClip("photos/photo"+nummer+".jpg", photoHolderBottom);
photoHolderBottom._visible = true;
photoHolderTop._visible = true;
}
regards
Fixing Alpha Blink?
Hi all!
I was having some trouble with a loadMovie script that has two MC instances that it loads to. Basically, the script is setup to load random external swf files from an array. It fades the top instance (movietarget) to the one below it (movietarget2), and once it's alpha is at zero it copies the bottom instance to the top and loads a random new swf underneath it to start fading to all over again.
The problem is that I need this to look smooth, and when it's done fading the top image and it's ready to copy the new bottom one I just set it to change the alpha of the top instance to 100. It has a long white blink when it does this.
Do I need to setup a preloader for the swf I'm going to show? Any help is much appreciated!
-----------files----------------
http://web.ics.purdue.edu/~mwallac/ECO/Swap1.swf
pay no attention to the red text, I was just using that to test different variables
http://web.ics.purdue.edu/~mwallac/ECO/Swap1.fla
if you want to test it with the images (which are in swf form) just get this zip
http://web.ics.purdue.edu/~mwallac/ECO/images.zip
Blink With Dynamic Jpg Transitions
Got stuck,
please look at http://www.xmoment.nl/flashTest/home.html
i got the images and text dynamic loaded, but i get a pesky blink between transitions.
Any ideas tips how to prevent this?
Part of my code
ActionScript Code:
function preload () {
var t = container.getBytesTotal (), l = container.getBytesLoaded ();
var tt = containerBG.getBytesTotal (), ll = containerBG.getBytesLoaded ();
if (t && l == t) { //wanna be sure container is loaded
//container._visible = true;
if (tt && ll == tt) { //be sure containerBG is loaded
//containerBG._visible = false;
clearInterval (myInterval);
gotoAndPlay (2); //both are loaded so go
}
// end if
}
//end if
}
//end preload
loadMovie (pathToPixs + "image" + bgPic + ".jpg", "containerBG");
loadMovie (pathToPixs + "image" + whichPic + ".jpg", "container");
myInterval = setInterval (preload, 5);
Blink Document Problem
I 'm created the popup menu and saved it. Later, I opened it and I saw the blink document although I saw the popupmenu in the librarty. Is it ok dragging the popupmenu to the document every time? I tested the movie but it's blink. What happen?
here
Blink On My Test Site
On my test website, where I show my work, there is a blink before the first item slides in. I didn't write the code, so was wondering if someone could figure out what is wrong. The site is at: http://www.gulladesign.com/homepage09.html If you select the planet magnet on the bulletin board you will know what I mean. The code is:
onClipEvent ( enterFrame ) {
id= _parent.StartId;
ExampleStart= _parent.ExampleStart;
AnimationSpeed= _parent.AnimationSpeed;
MovieCenter= 198.5;
posStart= this._x;
posDestination= ( this["example_"+id]._x * -1 ) + MovieCenter;
/*** DETERMINE ANIMATION SPEED ***/
speed = ( posDestination - posStart ) / AnimationSpeed;
/*** ANIMATE APPROPRIATE COMPONENTS ***/
this._x= this._x + speed;
for ( var i = 1; i < 11; i++ ) {
scale = Math.abs ( ( ExampleStart - posStart ) - Math.abs ( this["example_"+i]._x ) );
scale = 100 - ( scale * .3 );
this["example_"+i]._xscale = scale;
this["example_"+i]._yscale = scale;
this["example_"+i]._alpha = scale;
this["example_"+i]._alpha = 100;
}
_parent.label= _parent["label_" + id];
_parent.url= _parent["url_" + id];
}
thanks!
Sg
Blink-effect With SetInterval
I wanted to do a simple blinking-effect for my animations, and put this code into the eyes:
Code:
var timeDelay = 2000;
setFrameTimer = function(){
if ( (Math.random(1)*100) > 90 ) {
blink();
}
}
setInterval (setFrameTimer, timeDelay);
Nice and easy, right, giving the eyes a 10 percent chance of blinking every two seconds.
Well, it works nicely in the beginning. But then, after a while, the blinking increases until finally the animations are blinking constantly.
Whyyyy? It just shouldnt happen, right?
Make The Text Blink
How can i make a text blinka via a dynamic text area?
what do i need to make this?
How To Make A Speedometer Blink
Hello!
I will write down the code I have written and then ask some questions on the specific code..
.............................................
if (tSpeed > (_legalSpeed +10))
{
this.gotoAndPlay(1);
}
.............................................
When the speed exceed 10 km/h of the current speedlimit, the digital speedometer is supposed to start blinking - a movieclip that starts at frame 1. However, if I drive in 120 on a 90 way, the flash application constantly goes through the condition "if (tSpeed > (_legalSpeed +10))" which bring the moviclip to stay on frame 1 all the time, since the code tells the application to gotoAndPlay(1). That is, the application will never play the entire movieclip since "tSpeed" is beeing constantly updated. Can you see my problem and please tell me what to do? I would appreciate to see your code-solution!!!
//Oskar
How To Get Rid Of The Blink Between Photo Transistion?
zie http://www.bldd.nl/flashproblems/photoSlideshow3.swf
i see a blink right after my animated mask is finished
ActionScript Code:
stop();var myMCL:MovieClipLoader = new MovieClipLoader();var myMCL2:MovieClipLoader = new MovieClipLoader();var maxNrOfPhotos:Number = 4;var photoHolderTop:MovieClip;var photoHolderBottom:MovieClip;function startSlideShow() { trace("halllo"); var nummer:Number = 1; var nummer2:Number = nummer +1; var myListener:Object = new Object(); myMCL.addListener(myListener); //myMCL2.addListener(myListener); myMCL.loadClip("photos/photo"+nummer2+".jpg", photoHolderTop); myMCL2.loadClip("photos/photo"+nummer+".jpg", photoHolderBottom); myListener.onLoadInit = function(photoHolderTop) { trace("Nummer: "+nummer+" Nummer2: "+nummer2); if (nummer< maxNrOfPhotos) { nummer++; } else { nummer = 1; } if (nummer2<maxNrOfPhotos) { nummer2 = nummer + 1; } else { nummer2 = 1; } photoHolderBottom._visible = true; photoHolderTop._visible = true; photoHolderTop.setMask(masker); masker.gotoAndPlay("_start"); setTimeout(loadNext, 5500, nummer, nummer2); };}startSlideShow();function loadNext(nummer:Number, nummer2:Number) { myMCL.loadClip("photos/photo"+nummer2+".jpg", photoHolderTop); myMCL2.loadClip("photos/photo"+nummer+".jpg", photoHolderBottom); photoHolderBottom._visible = true; photoHolderTop._visible = true;}
Blink-effect With SetInterval
I wanted to do a simple blinking-effect for my animations, and put this code into the eyes:
Code:
var timeDelay = 2000;
setFrameTimer = function(){
if ( (Math.random(1)*100) > 90 ) {
blink();
}
}
setInterval (setFrameTimer, timeDelay);
Nice and easy, right, giving the eyes a 10 percent chance of blinking every two seconds.
Well, it works nicely in the beginning. But then, after a while, the blinking increases until finally the animations are blinking constantly.
Whyyyy? It just shouldnt happen, right?
Window Set Focus / Blink
Hi,
I have a projector that it's supposed to be running in the background, and receiving status notifications from a server side script.
What I need is to create a visual alert to the user when some value is returned by the server.
The ideal was that the projector window, on the task bar started blinking.
Can this be done? Will it work if the swf is running on a browser window?
Thanks
Can You Make Dynamic Text Blink
Hiya fellow flashers, is it possible to make a dynamic text blink if the data within it has changed? I want to allow viewers to immediately notice there has been a change of data on page.
PT
Small Blink When Loading Movies.
I have a site that preloads several movies and then by clicking on buttons, you can view these movies. depending on the order you view them, animations can run. the problem is, I want the animations to run together fluidly but unfortunately, they're not, theres a very small blink.
its hard to explain so just have a look
http://clients.crombieanderson.com/opwe01/
then once all the movies have loaded, click the top buttons in order. any way to get rid of this? I've racked my brains. the mc's all on the stage at the same time is unfeasible.
cheers
Blink Function With Revised Code
check out this code.. still havent got it to work, but im trying to pass a movie clip object to the function to make it blink-in.. an affect ive seen on a lot of cool sites! let me know if you know how to implement this and/or improve on this code:
blink = function(object,seed,count,rate){
// Arguments for function
// object - is the movieclip
// seed - is the initial delay
// rate - is the rate of change
// Delay Method is local to the blink function
function delay(){
clearInterval(timer);
}
//--->
// Main Loop of Blink function
do{
for (i=count; i > 0; i=i-1){
//blink-node
object._visible = false;
timer = setInterval(delay, seed*1000);
object._visible = true;
//--->
}
// Reiterations-->
count = count - int(rate/5);
if(count<1){ count=4;}
seed = seed * rate
}while(seed<1);
//--->
}
THANKS FLASHERS ! lol
[Edited by SOKALPAPI on 09-07-2002 at 06:11 AM]
Trying To Get Rid Of A Quick Blink In Flash Movie...
Hello,
I made very small 1kb titles.. simple text and animation...
but when you click on the buttons on the menu, you can see the titles of each section do a really quick blink, when the page loads, of what looks like black then white... how can I get rid of this? I put a temp link so you can see...
http://www.magicofjb.com/newsitetes...han2/index2.htm
Any help is appreciated!! thanks!
Allie1138@aol.com
Blink 182 Wierd Movement Thing
hey. i was on blink 182.com, and at the top of the page, it has this really cool thing where the little smileys move when the mouse goes over them. does anybody have any idea how to do that.
thanks
-Naaman
OnRollover Blink Text On Button..o_O How?
I want to make a button with a text on. As I rollOver the mouse on the button the text should start blinking... and when I rollOut the text should go back to normal...
I learned how to make a blinking text from this forum..:- but now i want to add the rollOver and rollOut script... i dunno how to make this work x_X .... maybe i need a loop or something?
your help is appreciated
OniHime
Random Blink Code - Can Someone Show Me How To Use It?
This code comes from Claudio old post to generate random blink
Code:
tMin = 5;
tMax = 10;
function randomblips() {
randommc = Math.floor(Math.random()*5)+1;
_root["mc"+randommc].gotoAndPlay(2);
clearInterval(moveInt);
t = Math.round((Math.random()*(tMax-tMin))+tMin)*1000;
moveInt = setInterval(randomblips, t);
}
moveInt = setInterval(randomblips, 1000)
and this is the link : http://www.kirupa.com/forum/showthre...ighlight=blink
Can someone show me how to use this code?
Thank you
Dynamikally Loaded Images Blink
I load images dynamically from the xml.
I use this function:
loadImage=function(num)
{ eval("holder"+num).clip_mc.loadMovie(path+pageImag e[imageLoaded]);
(num<2) ? imageLoaded++ : imageLoaded+0;
if (imageLoaded+1>imagesNum)
{ imageLoaded=0; }
};
where holder.clip_mc - mask for the imageholder. I have 2 of them
on the stage for 2 masks,
pageImage -array of images from the xml,
imagesNum - array length,
imageLoaded - index of image that's already been loaded.
When I load new image in the placeholder, it blinks first. Where the problem can be? Help me, please.
Dynamic Text Blink Using _alpha
Hi guys.
I stuck. I have a slideshow that loads images fia xml.
I have a caption in the middle of stage, that fade in with image.
my problem is that it blinks all the time. I don't know what should I do this is my code that fade image:
ActionScript:
this["image_dropzone" + _root.currentImage]._alpha = 100 * (_root.counter / (_root.fade * _root.second));
and in this way I'm trying to fade text:
ActionScript:
if(_root.captions == true || _root.captions == "true"){
_root.caption.tb_caption.text = xmlData.slideshow[1].images[i-1].image[1].caption.value;
_root.caption._alpha = 100 * (_root.counter / (_root.fade * _root.second));
} else {
_root.caption._alpha = 100 - (100 * (_root.counter / (_root.fade * _root.second)));
}
I have this Slideshow. http://www.flashkit.com/movies/Scrip...8470/index.php
Any Idea or How to make _root.caption Fade in and fade out with Image. Without Blink.
Thank you
Flak.
Blink 182 Wierd Movement Thing
hey. i was on blink 182.com, and at the top of the page, it has this really cool thing where the little smileys move when the mouse goes over them. does anybody have any idea how to do that.
thanks
-Naaman
Random Blink Code - Can Someone Show Me How To Use It?
This code comes from Claudio old post to generate random blink
Code:
tMin = 5;
tMax = 10;
function randomblips() {
randommc = Math.floor(Math.random()*5)+1;
_root["mc"+randommc].gotoAndPlay(2);
clearInterval(moveInt);
t = Math.round((Math.random()*(tMax-tMin))+tMin)*1000;
moveInt = setInterval(randomblips, t);
}
moveInt = setInterval(randomblips, 1000)
and this is the link : http://www.kirupa.com/forum/showthre...ighlight=blink
Can someone show me how to use this code?
Thank you
|