Movieclip 'blinking' Transition
Hi all.
I need help with getting a movieclip to enter the stage. what i want is the effect of a fluorescent light coming on; in other words, i would like my movieclip to blink a couple of times really fast before staying on the stage. I would also like to remove it from the stage in much the same way.
where i'm at now is im setting opacity to 0 on enter_frame and then starting a really fast timer and setting opacity to 1 when it completes. then start another timer, setting the opacity to 0 and then... you get the picture.
Does any of you know if theres a smarter way of doing this? I have a lot of movieclips i want to act this way, but i cant write a class because they have different reasons for doing it.
Thanks,
Esben
KirupaForum > Flash > ActionScript 3.0
Posted on: 05-23-2008, 07:14 AM
View Complete Forum Thread with Replies
Sponsored Links:
MovieClip 'blinking' Transition.
Hi all.
I need help with getting a movieclip to enter the stage. what i want is the effect of a fluorescent light coming on; in other words, i would like my movieclip to blink a couple of times really fast before staying on the stage. I would also like to remove it from the stage in much the same way.
where i'm at now is im setting opacity to 0 on enter_frame and then starting a really fast timer and setting opacity to 1 when it completes. then start another timer, setting the opacity to 0 and then... you get the picture.
Does any of you know if theres a smarter way of doing this? I have a lot of movieclips i want to act this way, but i cant write a class because they have different reasons for doing it.
Thanks,
Esben
View Replies !
View Related
Transition When Unloading Movieclip...
Hi,
I have a few movieclips which are gonna be loaded into a blank movieclip container (place holder) depending on which button the user presses.
Now, the good thing is that with this technique the movieclip automatically unloads...
The bad thing is, that I wanna control the transition between the two clips (alpha fade out, moving off screen etc.)
Is there any way of doing that ?
Thanx for your help in advance !
Mike
View Replies !
View Related
Transition When Unloading A Movieclip
Hi,
I have a few movieclips which are gonna be loaded into a blank movieclip container (place holder) depending on which button the user presses.
Now, the good thing is that with this technique the movieclip automatically unloads...
The bad thing is, that I wanna control the transition between the two clips (e.g. alpha fade out, moving off screen etc.)
Is there any way of doing that ?
Thanx for your help in advance !
Mike
View Replies !
View Related
Transition Problem Within Movieclip
hello everyone..
Check out my attachment.. if you open up the TEST.swf you can see how I want my transition to look like.. everything works perfectly.. then if you open the Load.swf and click one of those red buttons.. it loads up the external swf.. but if you click another button it loads up the same external thing!!!!!!
the difference between Load.swf and TEST.swf is that in Load.swf is container in which the TEST.swf is loaded.. thanks very much for any help..
View Replies !
View Related
Movieclip Transition Problem
Hello I have been looking for an hour now and cant find a thing to help so maby one of you flash wizards out there can.
I have a movie clip with a stop action in the middle of it and when I click on a button on the navigation I want the movie clip to play the second half of the animation then when its finished I want it to do a gotoandplay depending on the button I clicked from the navigation.
Basicaly mc playes half way threw to s stop();
user click on a button from the navigation bar
mc finishes playing and does a gotoandplay depending on the button the user clicked
I have a few of these and am trying to find some actionscript to help so I dont have to make every posible transition because that would take way to long. I am thinking I have to use listeners or somthing. Now keep in mind I am a very new at actionscript so If you can help try to explain it so I can understand it. Thanks for reading this and I hope you can help.
View Replies !
View Related
MovieClip Transition Problem
ActionScript Code:
this.onRelease = function() { if (_root.currSection == undefined) { _root.currSection = "areas"; _root.container.attachMovie("areas","areasSection_mc",_root.getNextHighestDepth()); trace(_root.currSection); } else if (_root.currSection != "areas") { _root.currSection.alphaTo(0,0.8,"linear",0); if (_root.currSection._alpha==0) { _root.currSection = "areas"; _root.container.attachMovie("areas","areasSection_mc",_root.getNextHighestDepth()); } trace(_root.currSection); } _root.welcomeBg.alphaTo(0,0.8,"linear",0,function () { _root.welcomeBg._visible = false; }); };
There is my code. I have it attached to 6 different buttons. Basically, I am trying to get each previous loaded MC section to fade before it loads the new selected section. I threw in the trace to see if it was loading the section, and it's not. So the problem is definitely with my if statement, it's not able to declare that the MC alpha is 0...
I hope all this makes sense, thanks in advance for any help.
View Replies !
View Related
Slideshow With Movieclip Transition
i'm trying to modify the xml slideshow code. i've done some searching, but haven't really found an answer for what i'm looking for.
instead of adjusting the alpha property for a fade out transition, i'm trying to use a movieclip to create a flashing transition between photos. i'm basically trying to achieve an effect similar to the one on the photo slideshow in the header of this page. i tried to use attachMovie, but i couldn't get that to work the way i wanted it to. i've got this effect working right now by just setting movieclip.play(); in the nextImage function, but is there a better way to do it? i'm suspecting that this is possibly eating up memory, so if there is a more efficient way to do this, or if i'm doing it wrong, i was wondering if anybody could point me in the right direction.
here is my code:
Code:
var delay:Number = 4500;
//flashmc.stop();
function loadXML(loaded) {
if (loaded) {
xmlNode = this.firstChild;
image = [];
total = xmlNode.childNodes.length;
for (i=0; i<total; i++) {
image[i] = xmlNode.childNodes[i].attributes.url;
}
firstImage();
} else {
content = "file not loaded!";
}
}
xmlData = new XML();
xmlData.ignoreWhite = true;
xmlData.onLoad = loadXML;
xmlData.load("images.xml");
/*listen = new Object();
listen.onKeyDown = function() {
if (Key.getCode() == Key.LEFT) {
prevImage();
} else if (Key.getCode() == Key.RIGHT) {
nextImage();
}
};*/
var p:Number = 0;
//var p:Number = Math.floor(Math.random()*total);
this.onEnterFrame = function() {
filesize = picture.getBytesTotal();
loaded = picture.getBytesLoaded();
preloader._visible = true;
if (loaded != filesize) {
preloader.preload_bar._xscale = 100*loaded/filesize;
} else {
preloader._visible = false;
if (picture._alpha<100) {
picture._alpha += 10;
}
}
};
function nextImage() {
if (p<(total-1)) {
p++;
if (loaded == filesize) {
//picture._alpha = 0;
picture.loadMovie(image[p], 1);
picture_num();
slideshow();
flashmc.play();
}
}
}
function prevImage() {
if (p>0) {
p--;
picture._alpha = 0;
picture.loadMovie(image[p], 1);
picture_num();
}
}
function firstImage() {
if (loaded == filesize) {
//picture._alpha = 0;
picture.loadMovie(image[0], 1);
picture_num();
slideshow();
flashmc.play();
//attachMovie("flashmc", "picture", 1);
}
}
function picture_num() {
current_pos = p+1;
pos_txt.text = current_pos+" / "+total;
}
function slideshow() {
myInterval = setInterval(pause_slideshow, delay);
function pause_slideshow() {
clearInterval(myInterval);
if (p == (total-1)) {
p = 0;
firstImage();
} else {
nextImage();
}
}
}
View Replies !
View Related
Movieclip Transition When Using LoadMovie() In A Photogallery
Hi,
I want to make a photogallery which loads each photo (loadMovie() )into a container MC in the main movie. I like the transition you see in this template, the dodge effect:
http://www.flash-template-design.com...=952&a_aid=581
Question: do I have to put two containers in the main movie to get this transition between two photos? Or there is another solution?
Thanks
View Replies !
View Related
Movieclip Transition When Using LoadMovie() In A Photogallery
Hi,
I want to make a photogallery which loads each photo (loadMovie() )into a container MC in the main movie. I like the transition you see in this template, the dodge effect:
http://www.flash-template-design.co...d=952&a_aid=581
Question: do I have to put two containers in the main movie to get this transition between two photos? Or there is another solution?
I know about the intro and outro for external SWFs., but what about jpg photos for a gallery? Is there any solution?
Thanks
View Replies !
View Related
Loading Jpegs Into Movieclip, With Transition
Hi
I'm a new poster.
I'm trying to load some jpegs into a movieclip, and have them fade in, and fade out, as you click through the slide show.
I can set up the swf file to load the jpegs, and cycle through the slide show no problem. But what I can't figure out is how to play the movieclip transition before the next jpeg loads.
Basically, I want the first image to fade out completely before the next image is loaded and fades up.
Is there some way to attach a listener or an event handler to a frame in a movieclip? sort of like "if frame 10 (the last frame of the fade out, say) of movieclip X is played, load jpeg, then play frame 1 of movieclip X (the fade up)"?
What happens right now is that when I click the button to go to the next image, the image loads before the movieclip is done playing.
I know it can be done, but it's driving me crazy.
View Replies !
View Related
_mask:MovieClip In Blinds Transition
Looking at Blinds.as I see that it has the follwoing 2 variables defined:
ActionScript Code:
private var _mask:MovieClip;
private var _innerMask:MovieClip;
But my attempts to use them have resulted in nothing. I created a movie clip of a figure traversing my blinds animation, but there was no masking effect...
Here's my code:
ActionScript Code:
mx.transitions.TransitionManager.start(anim1, {
type:mx.transitions.Blinds,
direction:0,
duration:6,
easing:mx.transitions.easing.Regular.easeOut,
numStrips:20,
dimension:1,
_mask:my_mc
});
Anyone know how to use this variable properly?
View Replies !
View Related
Using Transition Manager For Custom Class (movieclip);
Having an issue, because I don't really understand how it works. I have a custom class called EmailForm, which is a email form movieclip. Now, I am having no trouble getting it on the stage...
[php]
PHP Code:
var form:EmailForm = new EmailForm();
form.x = 300;
form.y = 300;
addChild(form);
// TransitionManager.start(form, {
// type:Fade,
// direction:Transition.IN,
//duration:1,
// easing:Strong.easeInOut
// });
...however, if I try to use the transition manager, it throws the following error:
Quote:
PHP Code:
ReferenceError: Error #1069: Property __transitionManager not found on Web.EmailForm and there is no default value.
at fl.transitions::TransitionManager$/start()
at Web::Website()
What do I need to do to my custom class (EmailForm.as)?
View Replies !
View Related
Adding Preloader Graphic To Movieclip Transition
Hi Folks,
I have a Flash movie where, when you click on one of the buttons, a transition movieclip plays over the top of the currently playing movie. When the transition movieclip finishes playing, the new movieclip (for the button you pressed) is now playing in the middle of the screen instead. Confused? Here's the link to the short tutorial/example on this site:
http://www.kirupa.com/developer/mx/p...transition.htm
This script is almost perfect for what I want, except, instead of the simple "loading graphic" in the middle of the transition, I would rather have a loading graphic with a percentage indicator and "amount loaded" bar/graphic too.
Here's my attempt at trying to combine the script above with another standard preloader used in the past:
http://www.amplexus.com.au/source/AB...testloader.fla
Can somebody show me how to do this. Maybe I need to be passing global variables back in the "content" actions?
Any help is very much appreciated!
Cheers
Chris
View Replies !
View Related
Blinking Dot
i have a flash movie that is controlled by variables outside of the movie... basically, i have some points on a map that i want to 'blink' if they're viewing that particular area at the time. for example...
if the user selects 'Area 1' from the webpage, i'm having it reload the site and i want the flash movie to reflect that. i'm transfering that area's ID to the flash file. that's working no problem. (src="myflash.swf?aid=1")
i'm trying to think of the best way to take that variable, and have the node for 'Area 1' blink...
like if the map has 5 points with values respectively... Area 1 is aid=1, Area 2 is aid=2, etc...
any ideas?
View Replies !
View Related
Blinking
Hey guys,
I was experimenting with actionscript as usual, and tried creating this 'blink' effect. Below is the idea:
AScript to be used:
setInterval() & 1 blink function
Objective:
I wan to achieve a white text blinking from white to yellow then back to white at an interval of every 2 seconds.
My Script:
// making the press blink at regular interval
function blink(){
var colourful = new Color('press_mc');
if(colourful.setRGB(0xffffff))
{
colourful.setRGB(0xfcff26);}
else
{colourful.setRGB(0xffffff);}
}
setInterval (blink,1000);
-------------------------------------------------
But the thing is my script doesnt work !!!
Can someone pls assist ?
Thank you so much !
regards,
Joehann
http://www.greenimagination.com
View Replies !
View Related
Blinking On And Off?
Hey,
I want a MC go from Black to White. I want a strobe like appearance. It's easy enough to do this. But it's not looking as subtle as it should. I have the flash going at 25 fps. Even when I make it faster the MC blink still does not look smooth enough. It's almost as if a line is going down the MC black to white effect.
Is there a way I can do this even better with action script?
Thanks
View Replies !
View Related
Blinking Cursos
Hi,
again a very simple question, but I'm a newbie and I don't find an answer to this in Flash Help
How can I make a cursor blink as if an input-textfield wait for an answer?
thank you for helping
kgp
http://www.geocities.com/moonysite
http://www.vbsjabbeke.com
View Replies !
View Related
Blinking Lines...
Excuse me for asking a (probably, at least) stupid question...but I'm extremely new to Flash (using version 4), and am having a bit of trouble.
Basically, I want the word "welcome" to jump from the lower left to the lower right, and then have lots of long, white lines blink in and out of the middle of the screen.
So far, I can get the welcome word, and the white lines in...but I can't get them to blink.
Thanks in advance; all help is greatly appretiated!
-mythren
View Replies !
View Related
Blinking Satellite
I'm very NEW to Flash (started today). I'm using Flash5 - I need to create a satellite (or tower) that looks as though it is "sending waves up from the top of the tower". How would I go about doing this or is there a tutorial somewhere I can go through to learn more about doing something like this.
Any help would be greatly appreciated.
Thanks
Kathi
View Replies !
View Related
Random Blinking
i have a logo movieclip.... mcLogo.
i need to make it blink at a random time within a 30 second range
just wondering if anyone had any direction to push me towards?
View Replies !
View Related
Blinking Starfield
i am trying to make a starfield where certain stars blink, and others are stationary and dont do anything
i would like to use actionscript for this - unless someone has a nice, good looking way of doing it through something else
any help would be appreciated
it would also be good to have the stars be in random places and certain random stars will blink, but to a maximum - so say to a maximum of 10 stars, just so that all of them do not blink
also it would be nice if they blinked at different times and different speeds
anyways - sorry to ask so much, i figure if one person doesnt know one part, someone else will, or should
thanks
View Replies !
View Related
.swf Blinking Issues
i have a scolling images .swf that when it reaches the end and loops to the beginning, it blinks then starts to play again.
there is a movie clip symbol in the main movie that contains placeholders for external .jpgs to be brought in using the loadMovie command.
is there a way to stop the .swf from blinking when it starts at the beginning?
View Replies !
View Related
Blinking Button
I have a Flash file that you click continue each time to go to the next frame where a movie clip plays. I need the continue button to flash red and white a few times when the movie clip is finished so that they will know it's over and it's time to click continue. My movie clips are on a layer under the background layer in the timeline for animation reasons so if I add it to them each it doesn't work because it's covered. Please tell me if this is making any sense and if you have any ideas or advice.
Thanks.
Flash Developer WannaBe. . .
coyotekel
View Replies !
View Related
How Can I Stop This From Blinking?
Can someone take a look at this link http://www.rustygeorge.com/test.swf and tell me why my buttons blink. I think it's something in my code but not sure. This is what my code looks like.
this.onEnterFrame = function () {
if(_global.SECTION1){
btn2.enabled = true;
notVisited._visible = false;
}else{
btn2.enabled = false;
btn2._visible = false;
notVisited._visible = true;
}
if(_global.SECTION2){
btn3.enabled = true;
notVisited1._visible = false;
}else{
btn3.enabled = false;
btn3._visible = false;
notVisited1._visible = true;
}
}
View Replies !
View Related
Blinking Text?
How can I make blinking text? I'm trying to make a flash video where at the end it goes something like Circle: Linked, and I was thinking it would be a nice effect for the Linked to blink in and out... Thanks for any help you can give me.
View Replies !
View Related
Blinking Buttons
I posted this on the General help forum with no luck. HOw can I get the effect I am looking for. The blink I am talking about can be seen in the sample webpage that I posted about. It is: www.dxinvisiblewar.com and the buttons are the download and stream buttons on the right side. Thanks.
http://www.flashkit.com/board/showth...hreadid=503508
View Replies !
View Related
Random Eye Blinking
Hello all,
A novice coder here with a, hopefully valid, question. I have a character with blinking eyes. In order to make the eye blinking look natural I wanted each interval between blinks to be random. Unfortunately my code generates one random number and applies it to all the intervals. Is there something I can add to this code to make a truly random # for each interval?
Any help would be greatly appreciated! - B
---------------------------------------
function blink() {
evilblink.gotoAndPlay("blink");
}
function Blinkorama() {
setInterval(blink, random(3000)+1000);
}
Blinkorama();
View Replies !
View Related
Flash Mx 'blinking'
hi there ive jus downloaded flash mx and i know very little about it
i need to animate eyes blinking and have tem looped as well.............................................. ........................... the only type of thing that ive got to move so far is a circle with the tweening lol
so in a how to in a way a dummie could understand it would be nice
thanks,
Luke
or if anyone has a pair of animated eyes that blink to spare can i have them plzzzzzz
lol
View Replies !
View Related
Blinking Mouse Over Box
does anyone know how to do the effect that they have on www.oringe.com when you move your mouse over the boxs they blink or so first and then show the content? a .fla would be great
thanks in advance
View Replies !
View Related
Blinking Parts
What is up people. I have a quick question that is driving insane. I saw a website where there would be an image, and some parts would flash for a second. How do you do that? The flashing was looped too. How do I do that? I need help ppplllleeeaasssee!
View Replies !
View Related
Blinking Eye Effect
Can anyone help me out with how I would go about the code for the eyes to blink about every 4 seconds? Would I select the blank circle around the eyes, make that a movie clip, and then use motion tween to fill the space with black?? I would rather not use motion tween if there was a better way. View the image here -
http://heisourlife.com/resume/actionScript.html#
Click on "view .swf file" at the bottom under eye movement.
Thanks.
View Replies !
View Related
Blinking Buttons
I am a beginner and apologize if this is a stupid question, but how can i make my simple circluar button blink in Flash? I assume it has something to do with looping a movie, but how to i apply this to a button?
Thanks for the help.
View Replies !
View Related
Eye Blinking Code
I have a movie clip of the eyelids lowering, then raising. I also wrote this code to control when the clip is activated. It's supposed to do it at random times, but it executes it twice - the first at the initial rendering of the movie and then another for what I assume is the only iteration of the code...
code: blinkEye = function()
{
EyeLids.gotoAndPlay("start");
clearInterval(timer);
}
timer= setInterval(blinkEye, Math.random()*1000);
Why does it seem to only activate once?
View Replies !
View Related
Blinking Problem
i have a movie clip which is an owl, and the eyes of the owl is also a movie clip inside the first one. the thing is i want to make blink with action script.
here's my script...
onClipEvent(load){
onEnterFrame.this;
x==1;
if(x<120){
x++;
}else if(x>120 && x<160){
x++;
eyes._alpha ==100;
}else {
x==1;
}
}
}
i can't seem to get it right. can someone pls help me.
thankyou!
View Replies !
View Related
¿Why Are My Buttons Blinking?
When I create a simple button with Up/Down/Over/Hit states and PublishPreview, the button is blinking out of control. Sometimes as soon as the preview appears and other times when I try to test it and mouse over it. Keep in mind, I'm not setting it up to blink. And previously the buttons were working fine.
I deleted the button, set it up again, and it still does it. And when I tried to create the buttons again, this time they all blinked...???
I'm at a loss. I'm currently learning Flash and am definitely a "Newbie" so any "seasoned" advice will be GREATLY appreciated.
southern07
View Replies !
View Related
LoadMovie Blinking?
Hey guys I'm creating a game where levels are cut into blocks, and I'm using the loadMovie function to load swf's in and out.
The problem is that there is a 1 second blinking delay between the loading of the swf's.
I was wondering if there is any way around this 1 second delay between loads? I obviously want the transitions to be as seemless as possible.
View Replies !
View Related
How To Stop The Blinking?
When a user click on ON, it will keep on blinking till users click on the execute button(which is the orange btn).
But if I click on ON again, OFF would light up again & ON would keep on blinking. This should not be the case.
Anyone can help?
MHS.zip
View Replies !
View Related
Blinking Hyperlinks
I am new to Flash and Actionscript 2. I want to take a hyperlink and make it blink on the page. I have it where you can hover over a link and it highlights but now I want the hyperlink to blink when it is on a page.
View Replies !
View Related
Loading .mc Without Blinking
Hello everyone,
thanks everyone who is helping me.
I have an issue with blinking (apper-dissapper).
I am calling 18 images into the empty .mc from the local drive.
MasterHomePage_mc.ImgButton1_btn.Img1_mc.Img1Holde r_mc.
ist working fine and images are NOT blinking when they called up.
But, once I have done a simple thumbnail image bar with spinning 18 images
they start blining.
I think there is a probles with speed of loading images.
Any ideas, pls, help.
Thanks
Jamolhon
View Replies !
View Related
Blinking Cursor
Hi all,
I've been making online questionairre in Flash and can't get the first input text box to have a flashing/blinking cursor (ie so it's ready to type into without having to click with mouse).. can't get the tab function to help out much..
also how can I set a "Send Info" button as the default so that when you hit return (without moving the mouse about) it actions a function.
I'm sure this is fairly simple to anyone with a bit of 'know' out there, I've come to halt while I work it out..
any advice appreciated from a sunny Wales
Chris
View Replies !
View Related
Blinking Text
Hi how can I make blinking text like the enter text on www.webagent007.com??
please show me! i"m a newbie!
thanks
one more thing is it possible to use a preloader if the movie has nothing moving?
View Replies !
View Related
Blinking Movieclips
Hi
I have seen this website and was wondering how the movie clips flash when it is loaded on the the screen.
has anyone got an example to look at please
cheers
the link is
http://www.arcticcat.com/snowmobiles...ecat/index.asp
View Replies !
View Related
Blinking .swf On Loading
Hi
I was working lately on this tutorial:
http://www.kirupa.com/developer/mx/p...transition.htm
and I wanted to make sth similar but a little more complicated (only in looks - not in code).
Its sth like this: I got a sheet of paper with loaded .swf file on it (same as in that tutorial); then the sheet wraps itself (the .swf file on it disapears because the sheet is a MASK); when it is wraped another .swf file is loaded; and at the end the sheet unwraps and the new contet (new .swf) is revealed.
And I got this problem:
when the new .swf file is being loaded it appears for a half of a second (even if there is NO MASK on it - and it shouldn't be seen!) before even the sheet begins to unwrap. Why do I have such effect ? It completely ruins the cool thing with wraping. Can you give me any advice ? There is no such thing in mentioned tutorial
View Replies !
View Related
|