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]
FlashKit > Flash Help > Flash ActionScript
Posted on: 09-07-2002, 07:01 AM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
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);
}
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
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
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.
Revised Button Question
I have a menu field slide in when they rollover a button. How do I get that menu to slide out and another one slide in when they rollover a different button.
Thanks in advance.
[F8] Revised Radio Button Help PLEASE
Ok I made a quick example of what I am trying to achieve.
Basically when you click the radio button (on frame 1) I want it to tell the empty movie clips in other frames to load those images. When I get to that frame the images are loaded. The idea is for a desktop application. I want the user to pic the product (in the example the color) and when they get to the correct frame the write picture will be loaded in. As you can see on the individual frames I have commented out what I want to have happen. Please take a look and if it doesn't make sense please tell me why and I will explain further.
Thank you in advance.
Scroll Images Revised..
Hi all,
I got the image scrolling working to some extent. but there is a simple problem.
Whle the images are scrolled , there exists a large gap after every image is scrolled. How do i remove the gap in order to get the continuous image scrolling effect with no gap?.
i attached my .fla for ur view
Pls try to help to achieve this.
Jsam.
Content Scrollbar (Revised)
Hi everyone,
Here is something that I worked on earlier today. Basically, it is a simplified scrollbar that scrolls whatever content you place into a movie clip.
From my initial testing, the scrollbar seems easy to use for beginners. The code automatically adjusts for varying heights in the content, scrollbar, and dragger button so that the scrolling boundaries remain consistent.
Cheers!
Kirupa
Help...revised XML Flash Gallery
This was from thread - http://www.kirupa.com/forum/showthre...V3_with_thumbs. What I like to revise is how I can make the image tween(anchor point) from the top left hand corner instead of the center? Basically I like to align the height with the thumbnails to the image.
2 other things is how I would like to add a rollover action to the thumbnails? And how can I add scoll button to add a new set of thumbnails?
See attached. Thanks for any help.
FF Rise Of The Magiteks Revised
Ok only one person bothered last time ...
I finally have a demo of the scripting and ideas shoved on NG so try it out then if you want to help just post your skills on this thread.
Thankyou all
http://www.newgrounds.com/portal/view/376634
Revised Actionscript Dictionary Online
As of July 18, there is a revised Actionscript Dictionary online at
http://www.macromedia.com/support/fl...ipts_dict.html
in PDF format.
Macromedia says: "This is the first revision of the ActionScript Dictionary that was published with Flash 5. It includes new entries, examples, and corrections."
Some changes I noticed (not a comprehensive list):
- getProperty: typo corrected in code example.
- setProperty: typo corrected in code example. Unfortunately, another typo has been introduced: 'setProperty("star", _alpha = 30);' is now 'setProperty("star", _alpha, "30);'
- Movieclip properties (_x, _alpha, etc.) are now placed together with the MovieClip methods. Previously, the properties were scattered alphabetically throughout the Dictionary.
- tellTarget: code example expanded. Now shows how to use dot notation and "with" to achieve the same result as tellTarget.
- Object: now documents the __proto__ property.
- XML.ignoreWhite: new entry. Unfortunately, the entry is missing the standard "Player" section, which should inform you that ignoreWhite is only available in Flash Player 5.0 build 41 or later.
- XML.contentType: still no entry. Should have been added, since it was introduced together with XML.ignoreWhite.
- XML.toString: formatting corrected in code example.
- XML.attributes: unfortunately, multiple typos in the code example have not been corrected.
- String methods charCodeAt, fromCharCode, slice, and split: new code examples.
- targetPath: code example completely rewritten. The old example had an inaccurate comparison of targetPath and tellTarget.
- #include: syntax corrected
- Color.setTransform: several typos corrected in code example.
- Color.getRGB: corrected code example and improved explanation.
- Color.setRGB and Color.setTransform: improved explanations.
- Date.getDay: corrected explanation (day of the week, not month).
- delete: improved explanation and code formatting.
- Sound.attachSound and Sound.setPan: improved explanations. Humorous to see that the "u2" sound has been replaced by "L7" (not familiar with them).
- Sound.setTransform: code example and explanation have been substantially rewritten.
- Selection.setFocus: revised syntax, longer explanation, and new code examples.
- return: expanded code example.
- new: revised explanation and expanded code example. Unfortunately, the typos "_prototype_" and "_proto_" (underscores are amiss) have not been corrected.
- Appendices: omitted from PDF.
Overall, many helpful revisions from Macromedia, though several omissions and typos remain. The reworded explanations, improved code examples, and new entries are much appreciated. Nevertheless, Colin Moock's Language Reference in Actionscript: The Definitive Guide is still the ultimate source for detail, examples, and accuracy. As a final note, I hope Macromedia generates new HTML files and posts them for download, so we can "upgrade" Flash's built-in documentation.
Load Movie/Frame (revised)
Anyone got any idea what I need to add to this piece of code, to make
003ITT.swf load at frame 29??
ifFrameLoaded (1) {
loadMovieNum("003ITT.swf", 0);
}
Revised Post: One Actions Layer That Does Everything
Hi all,
This is what i want to happen.
head runs to frame 50 then stops,
Menu buttons appear
once these are clicked the frame head jumps to either frame 70 or frame 75. (deppending on what button is pressed).
The buttons are allready coded with gotoAndStop(70); (or what ever frame is relevant.
I have an actions layer which spans 100 frames
i need the below to be in it.
Any ideas on where to go from here?
this is what ive got:
PHP Code:
this.onEnterFrame = function()
{
if(_currentframe==50)
{
trace("you're on frame 50");
openMenu();
delete this.onEnterFrame;
} else if(_currentframe==70){
trace("you're on frame 70");
email();
delete this.onEnterFrame;
} else if(_currentframe==75){
trace("you're on frame 75");
music();
delete this.onEnterFrame;
}
}
XML Photo Gallery Linkage Question Revised
Hi, my last message was lame, so i have revised it. hopefully someone can help.
My jpegs dont appear in the xml and flash photo gallery, due to the path from the xml to my image folder on my web space, i think? as the other dynamic elements work ie the captions.
basically my xml file is corrrect, i think (downloaded from kirupa), modified to the path of my images folder.
The fla. file i downloaded works also.
Here is my xml file, with the links to my images folder which is in public_html
for the site www.wallofdeath.uk.com.
Are the links correct? why else would this not be working?
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<images>
<pic>
<image>http://www.wallofdeath.uk.com/images/image1.jpg</image>
<caption>wall of death</caption>
</pic>
<pic>
<image>http://www.wallofdeath.uk.com/images/image2.jpg</image>
<caption>Media Lab</caption>
</pic>
<pic>
<image>http://www.wallofdeath.uk.com/images/image3.jpg</image>
<caption>wall of death</caption>
</pic>
<pic>
<image>http://www.wallofdeath.uk.com/images/image4.jpg</image>
<caption>wall of death</caption>
</pic>
<pic>
<image>http://www.wallofdeath.uk.com/images/image5.jpg</image>
<caption>Construction</caption>
</pic>
<pic>
<image>http://www.wallofdeath.uk.com/images/image6.jpg</image>
<caption>The Dome</caption>
</pic>
<pic>
<image>http://www.wallofdeath.uk.com/images/image7.jpg</image>
<caption>Structure</caption>
</pic>
</images>
The kirupa file looks like this:
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<images>
<pic>
<image>http://www.kirupa.com/developer/mx2004/pg/kresge.jpg</image>
<caption>Kresge</caption>
</pic>
<pic>
<image>http://www.kirupa.com/developer/mx2004/pg/medialab.jpg</image>
<caption>Media Lab</caption>
</pic>
<pic>
<image>http://www.kirupa.com/developer/mx2004/pg/stata.jpg</image>
<caption>Stata Center</caption>
</pic>
<pic>
<image>http://www.kirupa.com/developer/mx2004/pg/stata_lobby.jpg</image>
<caption>Stata Lobby</caption>
</pic>
<pic>
<image>http://www.kirupa.com/developer/mx2004/pg/construction.jpg</image>
<caption>Construction</caption>
</pic>
<pic>
<image>http://www.kirupa.com/developer/mx2004/pg/dome.jpg</image>
<caption>The Dome</caption>
</pic>
<pic>
<image>http://www.kirupa.com/developer/mx2004/pg/structure.jpg</image>
<caption>Structure</caption>
</pic>
</images>
Kirupa's Simple Custom Scrollbar - Revised
Hey'a!
I am trying to modify Kirupa's Simple Custom Scrollbar to function the same as www.oringe.com
I have managed to reposition / resize the scrollbar based on the Stage/Browser width/height but need your help to include these functions.When the Stage/Browser is resized, the "scrollFace" adjusts its scrollFace._y position to maintain its proportional position based on the new scrollTrack._height.
Eg: The "scrollFace" is moved 3/4 of the way down the "scrollTrack".. When the Stage/Browser is resized, the "scrollFace" is still 3/4 of the way down the "scrollTrack" proportionally.
When the Stage/Browser is resized, the "contentMain" adjusts its contentMain._y position to maintain its proportional position based on the new scrollFace._y.
Eg: The "contentMain" is moved 3/4 of the way down via the "scrollFace".. When the Stage/Browser is resized, the "contentMain" is still 3/4 of the way down proportionally to the "scrollFace".
When the "Mousewheel" of your Mouse is moved, it scrolls the content accordingly.
Also it is a wee bit juttery in the scrolling, I'm not sure if it is anything I have done or just because its a large file?
The "_as" layer contains all the scroller code needed, please have a crack for me! !
Or if you can suggest any other scrollers similar to www.oringe.com.
Cheers,
Ryan
Revised FLA File, Need Heal Loading Extrenal SWF
Hey,
I fixed my main .fla file so now its a bit more organized.
What I am trying to accomplish is to load an external .swf file in my main .swf file but for some reason it will not work.
On the _root I have one main mc called "main_mc". Inside that mc are a bunch of additional mc's that have tween animations within each one. I got the stop function to work when you rollover the mc's but what I need to do now is have each one load an external .swf file each time your rollover. I also need to mention that I need the external .swf to unload if you rollover a different mc.
Hope that makes sense.
You can take a look at the source file if you wish. I uploaded it here:
http://www.infernostudio.com/downloads/main-2.zip
I added an external .swf file for test purposes called "loaded.swf".
Please let me know if you have any questions.
Can someone please take a look?
Thanks for your help, I really appreciate it!
[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?
Forcing A "DELAY" - Revised (making Movie Pause & Count)
hi,
I would like to know if anyone knows how to "DELAY" and action. I would like to cause a small delay on a button action.
This action is tied to a dynamic menu. When the button is pressed (frame 3 of 3) it makes a URL call and then goes back to frame 1 to "refresh". The movie continues to frame 3 and stops. The problem is that it is not pulling in the content fast enough, so I would like to make the URL call, make the movie pause for 1 second, then go to frame 1 and refresh.
Here is the code... (I want to make the movie count 1 second before executing the gotoAndPlay)...
on (release) {
// sendSERVER.setVerb("VERB_XXXX_XXXXX");
x = x+1;
trace ("X is "+x);
sendSERVER.sendData("http://MY URL IS HERE);
sendSERVER = new sendDataList();
THIS IS WHERE I WOULD LIKE TO FORCE A 1 SECOND DELAY
gotoAndPlay (1);
}
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 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 .
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
|