Flash Transition
I have just recently started working on full flash websites, using the loadMovies script. I can't figure out how to get a transition to work so it always loads on top of the last loaded movie. I'm probably wording it wrong..but like I need it to be able to say, if there was a metal door effect like on my site, have the doors close on top of the last loaded movie, while what I have now is the new movie replacing the old movie, thus not allowing the doors to close on top of it. Here's the site I'm working on, any advice would be much appreciated. Transcendence
FlashKit > Flash Help > Flash Newbies
Posted on: 02-27-2005, 08:49 PM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Transition Causing Colors To Be Off In Transition
I'm trying to recreate a transition/fade of an image from a flash file that I only have the swf to. It looks great on my box, but once live a viewed through Firefox, the colors get almost pschycodelic during the transition. I am using a tween between 0% alpha setting to 100% alpha, and selecting the blend to 'Hard Light'.
Has anyone else seen this and know of a work around?
Thanks.
jean
In/out Transition From Voetsjoeba : Problem With The Out Transition
hello,
I have some problem with a in and out transition Voetsjoeba explain here
My problem is that my 'out' transition is in a movieclip in the clip loaded so i tried to target it like this
ActionScript Code:
on (release) { if (this.currMovie == undefined) { this.currMovie = "print"; container.loadMovie("print.swf"); } else if (this.currMovie != "print") { if (container._currentframe == container.midframe) { this.currMovie = "print"; container.content.play(14); trace("???"); } }}
It is the code i have for my buttons that load the page, the trace command is read succesfully but it won't play my animation out.
On my loaded movie i have
ActionScript Code:
midframe=content("out")
on frame 1 because my transition is in the movieclip content.
The button that load the file is 'print' and 'web' in the soumen movieclip. I've posted my file here :
FILES
If someone can help me, it would be a great help !!
Thanks
Ubik
In/out Transition From Voetsjoeba : Problem With The Out Transition
hello,
I have some problem with a in and out transition Voetsjoeba explain here
My problem is that my 'out' transition is in a movieclip in the clip loaded so i tried to target it like this
ActionScript Code:
on (release) { if (this.currMovie == undefined) { this.currMovie = "print"; container.loadMovie("print.swf"); } else if (this.currMovie != "print") { if (container._currentframe == container.midframe) { this.currMovie = "print"; container.content.play(14); trace("???"); } }}
It is the code i have for my buttons that load the page, the trace command is read succesfully but it won't play my animation out.
On my loaded movie i have
ActionScript Code:
midframe=content("out")
on frame 1 because my transition is in the movieclip content.
The button that load the file is 'print' and 'web' in the soumen movieclip. I've posted my file here :
FILES
If someone can help me, it would be a great help !!
Thanks
Ubik
Flash Transition ?
how can i do ,transition ,effect in flash ?
is there any software ?
thanks
[CS3] Flash Transition
Hey FlashKit-ters,
I am making a flash banner area similar to this site http://www.pinnaclerealty.com/flash_index.htm and I really liked their transition. Now I know I could probably use a mask (seems to be difficult route), but I was wondering if anyone knows other tricks or sites with scripts I could use.
Thanks,
Jonathan
Flash Transition
How can i make this type of transitions workin in flash 8?
http://www.hed.swin.edu.au/design/tu...ions/index.php
thanks a lot!
Flash Transition
does anybody have or know of any tutorials for flashMX in which you can make transitional animations during loading sequence for external flash movies, and when the external movie is loading, it shows the progress?!?!
The Transition On Top Of The Flash Website
I saw this website that has all kinds of flash website and I love how they did it. You click on this link URL=http://www.a4flash.com/tlib/index.php?tcat=PR]http://www.a4flash.com/tlib/index.php?tcat=PR[/url] then click on the picture that says trav_w_5 on top. What I like was how there was a transition to the next picture with a lot of these white fades. How do you do that?
Thanks an advance
Pixel Transition For Flash Mx
Hi All. I have been trying to get a great transition to loop 6 pictures together and found this FLA at http://www.flashkit.com/movies/Effec...5431/index.php . The trouble is my movie is 560x200px and I can't seem to adapt it for this size, also I just need the pictures to progress after a delay of about 4 seconds rather than having to mouse click. I have very little knowledge on actionscript and have been trying to adapt the script but with not much luck. Does anyone know of a tutorial that explains how this affect is achieved or offer advice? Any help much appreciated.
Cheers
Lance
Page Transition --- Flash 8
I want a tranition to play from one scene to another when a button is clicked.
I have a stop on my timeline, then tried putting a gotoAndPlay on the button to continue playing. What kind of script do I have to put in between the "on (release) gotoAndPlay(31)" and the 'on (release) gotoAndPlay("Scene 2", 1)'?
Or, am I completely off on this and I can't do that. Basically I just want this translated into Actionscript language: " Stop here. When this button is clicked, play the rest of Scene 1. When Scene 1 finishes, go to Scene 2.
Image Transition In Flash
I want to create Image Fade in Fade out effect in flash for different sites,but the problem is I want the same fade in fade out effect but with different pictures for different site. Is there a way I can “program” this process? What if I have 5 pictures in a folder, and if I want to change the flash, I can just replace the pictures in that folder?
Flash Page Transition Help
Hello everyone,
I'm trying to get into Flash but have been finding the actionscript stuff tough.
What I'm trying to do is have a static image in the corner of my page fade out and then another image fades in depending on what page I'm going to. I have the timeline set up so that frame 1-15 would be one image fade out then 16-30 would be an image fade in, 31-45 would be that image fade out, etc. Everything is labeled as well.
What I'm essentially trying to do is this;
on (release) {if (a particular page)_root.gotoAndPlay (a certain range of frames that is labeled)and then_root.gotoAndPlany (another range of frames that is labeled)this scripting would then be duplicated changing the "if" statement so that if the viewer was on a different page then a different range of frames would be played.
I'm assuming that I'm making this a lot more complicated than if should be and that there is a better way of doing this but could someone help me out?
I would appreciate all the help that I could get. Thanks.
Flash Animation Transition
I have this file that i bought. it is a transitioning circles:
click here for preview
and I want to do a second transition that will go from the opposite corner side. Here are the frames and action scripts:
Frame 1:
layer 1 = // specify the number of rows and columns needed for the movie
var grid_rows = 50; // (15 rows x 20 pixels = 300 pixels)
var grid_cols = 50; // (15 cols x 20 pixels = 300 pixels)
layer 2 =// declare depth var
var next_depth = 0;
// declare var to determine which diagonal loop is on (next frame)
var next_diagonal = 0;
// add unit masks to the grid
for (var j = 0; j < this.grid_rows; j++) {
for (var i = 0; i < this.grid_cols; i++) {
// determine name of this unit
var unit_name = "unit_" + i + "_" + j + "_mc";
// create the unit
this.grid_mc.attachMovie ("unit_mc", unit_name, this.next_depth++);
this.grid_mc[unit_name]._x = i * 20;
this.grid_mc[unit_name]._y = j * 20;
}
}
Frame 2
layer 2 = // start playing the unit clip for each diagonal
for (var i = 0; i <= this.next_diagonal; i++) {
// determine x and y coordinates
x_coord = 0 + i;
y_coord = this.next_diagonal - i;
// play the unit movie
if (x_coord < this.grid_rows && y_coord < this.grid_cols)
this.grid_mc["unit_" + x_coord + "_" + y_coord + "_mc"].play();
}
Frame 3:
layer 2 = // increment the next diagonal
this.next_diagonal++;
// determine whether to carry on or stop
if (this.next_diagonal < (this.grid_rows + this.grid_cols))
this.gotoAndPlay (this._currentFrame - 1);
else
stop();
can someone please help me, i am kinda confused. any help please
Flash Transition/link
okay theres this site, http://ransomedheart.com/, and i want to know how the left navigation bar transitions and changes with the top nav. Now these 2 navs are different flash files, and so they are actionsripted. Does anyone know how this might have been done?
Flash Wave Transition
Can anybody give me any ideas on how to make a Flash page transition that looks like a wave. I want it to simulate a wave on the beach. You know with the white foam sweeping across. Any ideas?
Flash Alpha Transition
Hello,
I am in need of a little help to put me towards the right direction - I thank anyone that can help me!
What Im trying to do is create a Dynamic slideshow. So far I've told flash to create a blank MC image folder and pull out the next image. Once that blank MC has an image in it I create a new one.
So say I had 4 images I would have 4 MC's containing the images inside another MC. Here is the code if I've confused anyone.
PHP Code:
function loadImages(blankMC, amount:Number):Void { blankMC.onLoadInit = function(mcTarget:MovieClip) { }; for (var i = 0; i<amount; i++) { var mc:MovieClip = blankMC.createEmptyMovieClip("img_"+i, blankMC.getNextHighestDepth()); var mcLoader:MovieClipLoader = new MovieClipLoader(); mcLoader.addListener(blankMC); var sURL:String = "images/0"+i+".jpg"; mcLoader.loadClip(sURL, blankMC["img_"+i]); trace("this is varMC " + mc) }}this.createEmptyMovieClip("blank", this.getNextHighestDepth());blank._x = 10;blank._y = 10;loadImages(blank, 4);
Now this is where I am hopefully stuck and confused!
Im wanting to create a transition between each one, fading the alpha of one and show the next. Any ideas where to start?
Thanks
UPDATE
Ive started working with a fade but something is messing up... could someone take a look.
Heres all the code all you have to do is copy it into your movie and create an images folder.
PHP Code:
function loadImages(blankMC, amount:Number):Void { blankMC.onLoadInit = function(mcTarget:MovieClip) { }; for (var i = 0; i<amount; i++) { var mc:MovieClip = blankMC.createEmptyMovieClip("img_"+i, blankMC.getNextHighestDepth()); var mcLoader:MovieClipLoader = new MovieClipLoader(); mcLoader.addListener(blankMC); var sURL:String = "images/0"+i+".jpg"; mcLoader.loadClip(sURL, blankMC["img_"+i]); trace("this is varMC "+mc); }}this.createEmptyMovieClip("blank", this.getNextHighestDepth());blank._x = 10;blank._y = 10;loadImages(blank, 11);function fade(MC:MovieClip) { onEnterFrame = function (load) { MC._alpha = random(100); MC.a_count = MC._alpha; MC.targetA = random(100); onEnterFrame = function () { ca = _alpha; a_diff = MC._alpha-this.targetA; MC.a_count -= a_diff*.1; MC._alpha = this.a_count; if (Math.abs(a_diff)<1) { MC.targetA = random(100); MC.a_count = MC._alpha; } }; };}fade(blank.img_00)fade(blank.img_01)fade(blank.img_02)fade(blank.img_03)fade(blank.img_04)fade(blank.img_05)fade(blank.img_06)fade(blank.img_07)fade(blank.img_08)fade(blank.img_09)fade(blank.img_10)
Flash 8 Text Transition Help
Hi Everyone,
Could you please help me. I want to create a "News Headline" section something like this http://www.kirupa.com/developer/mx2004/newsticker.htm
I want to show a 300px x 400px news headline section. Is it possible to generate more than one story (which includes the title and description) with a fading or sliding transition between stories from a text file or from a xml file.
Like in the link mentioned above, i want to display (title and description) information on more than one line, unlike in the link which displays just the title.
i hope it makes sense.
If someone could help me, i would appreciate it.
Thanks
K
Flash Transition Question.
hey guys, so i have an idea but i so far have come up with no ideas on how to accomplish this.
Heres the Idea, i have a set of buttons and when you click those buttons i want it to go to a different page, but the transition of the page i want it to fade the current page out, and fade the new page in. how is this usually accomplished? any help is appreciated.
Also here is a photoshop storyboard of what i was thinking, i have no idea how i would accomplish the stroke expanding covering the whole page but i figured it may be connected ot the fade out in some way, thanks again.
Flash Wave Transition
Can anybody give me any ideas on how to make a Flash page transition that looks like a wave. I want it to simulate a wave on the beach. You know with the white foam sweeping across. Any ideas?
How To Make This Transition In Flash 8?
Hi everyone! I would like to know how can i put this transition here playing in flash 8? Every time i publish the file i got this message: **Error** Scene=Scene 1, layer=actions, frame=1:Line 13: Syntax error.
_level0.preloaderGraphics.percent = int(Percentage) add "%";
what should i change?
Transition Effects With Flash MX -Impossible?
Hi Flash people!
Well, this is something new. Because I have been working with Java Applets technology for a while, I discover that everything (basically) can be done with Flash MX technology. But – just one thing is, at least for me, impossible to do in Flash technology. Please look first at following link and pay attention to transitions effects done with Java Applets technology.
http://www.gravyrform.com
The interesting thing is that transitions effects are changing whole the time. From roll over, side to side, pixelate and so on. I am especially looking for pixelate transitions. Of course, the dream scenario is a flash script that can randomly generate all this transitions. I am not so advance programmer of Flash, and I assume that this question is something for some kind of Flash guru. Maybe I am wrong.
If someone can give me little advice recommend some open source movie in movie section – I would be very glad!
Regards,
Bess F.
Flash Transition To A HTML Page
Okay... I have not seen this yet... but I'm going to ask you experts here... I have a Flash intro and a html home page. My client wants to have a smooth transition from the Flash intro to his home page which is not Flash.
The only way I can think of is to have the intro fade to black, then jump to the html page. But he want something like a page flip effect.
What can you guys suggest?
Trying To Find Out What This Transition Is Called For Flash
Here is the link....
http://www.defsoul.com/kellyprice/
NOTE: When you visit the website, please click on ENTER to see what I am talking about. The flash is used in the main pop-up window.
I am trying to find out how to create and use this transition on some of my designs. If anyone can help me by telling me what it is or if it comes with a program. I have seen it on various websites.
Thanks in advance.
Flash Code To Get 6 Pictures To Transition From One To Another
Hi,
I am a html beginner and a beginner photoshop user. I have assigned a certain area of a site to show a .jpg image, but I want to use some type of flash or java script to have several pictures alternate in that exact location, where one picture after appearing for about 5 seconds, slowly fades out and is replaced by a new picture, and so forth. I want about 5 pictures to cycle like this. Can someone suggest either java script, or flash, or whatever, for me to do this, and can someone please give me the exact code? I am a beginner and don't know anything besides html right now.
Thanks!
Flash Slideshow Transition Help , Fla Attached
Hello,
I am creating a flash site news slide show. Each slide will come on screen, wait for 10 seconds and loops. i am also giving bulleted links to each slide such that user can goto any slide they want. I am attaching my fla file. The transition between slide is very basic. I want the tranisition such that each slide will shrink and the next one grows giving us a cube effect. Any suggestions on how to do that will be much appreciated.
Thank you
**** Simple Flash ? - How Do I Do A Screen Transition?
I searched in the Flash help guide for how to create a screen transition between scenes and while it was very simple instructions I don't understand possibly one of the simplest ones....
It says to first "select the screen"
and then add a new behavior.....from there go to screen > transition.....
So my question is, HOW do I select the screen so that when I click on behaviors > add, the screen transition option will come up.....all i want to know is how to select my screen.....help!
mary elise
maryelise.com
Flash Transition/tween Class
I'm making a function that can be used to tween a movie clip. I've set it up to accept multiple arguments:
code:
import mx.transitions.Tween;
import mx.transitions.easing.*;
function slideX(mc:MovieClip,end:Number,dur:Number,et:Strin g):Void{
var x_tween:Object = new Tween(mc, "_x", et, mc._x, end, dur, true);
}
The last argument, 'et', is for the Ease type (ie - Bounce.easeOut). My problem is that Flash doesn't recognize 'et' as a String. What object type would this be for this function to work properly?
Thanks.
Edit: for those interested, it would be of type Object.
Flash Slide Show Transition
Hey All,
Quick question regarding slide shows. Im in the process of creating a very basic interactive slide show but need some assistance on the transitions from one image to the next. The slide show will be controlled by the user clicking on thumbnail buttons.
As the user navigates through the thumbnails, I would like the images to subsequently display on top of each other....meaning one image will fade over the other so that a nice visual flow is maintained. What I want to avoid is picture 1 instantly dissappearing and then picture 2 fading in. Instead I want picture 1 to remain, while picture two overlaps it.
Can someone offer some actionscript (attachMovie or something) that will allow me to do this. Thank you
Smooth Photo Transition With Flash
Hello,
I am just starting using Flash 8.
I just succeeded to create a first simple Flash movie. This movie is located at the following url ( http://www.perros-guirec.eu/ ).
I just used the first training of the Flash help to create it.
Now my goal would be to create a movie where the pictures are progressively replaced one by the other without any left-right scrolling ( like at the following url : http://www.montbareil.com/).
I put a first photo on the timeline starting at 0, then a second photo at 80 going to 160.
I put a 'move' transition from 40 to 80. Then I tested the movie.
But the transition is not smooth. The second photo appears suddently. I think I missed something.
Can anybody help me to find a solution to do this?
Thanks a lot.
Flash Random Bar Transition Function Help
Hello,
I posted this thread earlier but it got a little confused and no one had responded so I deleted it and here is a fresh new cleaned up version so everything will be much clearer.
Here's the scoop. If you test swf you'll see a main nav, and bars randomly tweening back and forth. There are 6 bars, and they are all fixed sizes so the only thing that is tweening randomly is the x position. What I need is to put a short duration on the bars tweening, 5-10 seconds, and have it act as sort of a transition so when you click to go to from one section to another, the tweening bars move around for the short duration and then when they stop a gotoandplay or set visible true action is triggered to load the content. But here is the tricky part...i need to have the bars return to their initial positioning.
I've been stuck on this for two days now so your help is greatly appreciated. Please let me know if you have any questions.
Thanks.
***
After reviewing the fla then read the following...
What i'm looking into now, is taking the initiate random movement script from the random layer, and placing it within each of the onrelease functions in the navigation layer with some kind of if/else element, like if 10 seconds has passed return bars to initial position and show clip... or something like that... Or...couldn't i put the //initiate the movement part in a function and then activate it onRelease for a few seconds using getTimer somehow and then call another function after getTimer is up that would stop the bars and return them to their initial x positions. i don't really know though. That's just an idea...
Flash Website - Transition Problem - Help
I'm doing a website for a band (www.theaviators.co.uk) but the menu system isn't working properly. Basically the main animation (download .fla here) has a blank space into which it calls the other .swf's. I used Claudio's preloader and transition tutorial
Now heres the strange bit. If I publish the main.fla as a .swf and play it in the standalone player - everything works (You can test this by downloading the bios.swf here and clicking on the bios button)
However if I publish the main.fla as a .swf and display it in a html page the menu system stops working.
I have no idea why this is happening and its immensly frustrating so if anyone can help it would be great.
I Want To Show A Transition Of A Flash File
hello everyone
I want to show a transition of a flash file on a particular event and the transition you can see in a flash file.
This flash file has been atteched with this message. So in this flash there are some menu on left top corner
on these menu when u click u will see the effect at the right bottom corner . Well now i need the exact that effect
using action script in flash mx for that plz tell me how can implement this king of effect in my flash movie.
link is
http://img93.imageshack.us/my.php?image=85239ga.swf
regards
sandeep
Flash & Aftereffects Generic Transition
Hi,
Ok I am noticing a increasing numbeer of sites that use very funky effects
that seem to be done in Adobe AE and are integrated in image galleries etc.
I mean it's totaly inefficient to perform an effect on every single image
then import into flash. Is there a way to create a generic effect such as
blur-zoom, or something new that can only have 1 instance ?
In another words I am trying to make an interesting transition effect
for images in my folio but everything that I created in AE applied to
20-30 images was way too large for web ... is there a solution for this?
Like a semi-transparent effect that can just be layered over image ... ?
any ideas welcome ....
thanks.
Flash Grid Transition Effect
Hello everyone-
I'm wondering if someone could possibly point me in the direction of a specific tutorial... Basically, the effect I would love to create is as demonstrated on this website, where the different squares transition into the image. I think it looks amazing and I would really like to create something to that similar effect.
http://www.kseproduction.com/event-design/index.shtml
If anyone has any pointers or knows of any good tutorials, that would be great! Thanks, and have a good evening!
Flash MX Ver6. Help On Song Transition.
hello again everyone. im loving this forum. ^ ^ anyway. im trying to create a effect on which on the main frame it is playing a soundtrack, and upon clicking another button, this original soundtrack would dim off and on starts another different song. there would be several buttons doing this and thus, several soundtracks. anyone has any idea? thanks!
Flash Random Bar Transition Function Help
Hello,
I posted this thread earlier but it got a little confused and no one had responded so I deleted it and here is a fresh new cleaned up version so everything will be much clearer.
Here's the scoop. If you test swf you'll see a main nav, and bars randomly tweening back and forth. There are 6 bars, and they are all fixed sizes so the only thing that is tweening randomly is the x position. What I need is to put a short duration on the bars tweening, 5-10 seconds, and have it act as sort of a transition so when you click to go to from one section to another, the tweening bars move around for the short duration and then when they stop a gotoandplay or set visible true action is triggered to load the content. But here is the tricky part...i need to have the bars return to their initial positioning.
I've been stuck on this for two days now so your help is greatly appreciated. Please let me know if you have any questions.
Thanks.
***
After reviewing the fla then read the following...
What i'm looking into now, is taking the initiate random movement script from the random layer, and placing it within each of the onrelease functions in the navigation layer with some kind of if/else element, like if 10 seconds has passed return bars to initial position and show clip... or something like that... Or...couldn't i put the //initiate the movement part in a function and then activate it onRelease for a few seconds using getTimer somehow and then call another function after getTimer is up that would stop the bars and return them to their initial x positions. i don't really know though. That's just an idea...
Flash Website - Transition Problem - Help
I'm doing a website for a band (www.theaviators.co.uk) but the menu system isn't working properly. Basically the main animation (download .fla here) has a blank space into which it calls the other .swf's. I used Claudio's preloader and transition tutorial
Now heres the strange bit. If I publish the main.fla as a .swf and play it in the standalone player - everything works (You can test this by downloading the bios.swf here and clicking on the bios button)
However if I publish the main.fla as a .swf and display it in a html page the menu system stops working.
I have no idea why this is happening and its immensly frustrating so if anyone can help it would be great.
The Flash Blog Header Transition
Hi all.
The other day I payed some attention to The Flash Blog and I realized that the transition effect on the blog header would be great to start a background image solution for a client.
So... I went and took a look at the code (sorry Lee :oops: ) and adapted it to work on the client's site... The only problem is that it's a full browser flash site and I would like to make the photos and the masker resize with the stage.
And I did using a Listener for the stage :
Code:
var stageL:Object = new Object();
Stage.addListener(stageL);
stageL.onResize = function() {
[function to resize the photo1, photo2 and the masker] ()
};
But it doesn't work. The photos do resize but the masker doesn't "mask" and resizes in very strange manner.
I'm guessing I can't do this kind of stuff with a dynamic mask.
Has any one tried to do this? Would it work?
Playing Outro Transition In Flash 8
Ok, here's the deal: I can't, of the life of me get a working outro playing into the intro of another external swf.
This is a piece of my button AS:
on (release) {
if (_root.currMovie == undefined) {
_root.currMovie = "Sub2";
container.loadMovie("Sub2.swf");
} else if (_root.currMovie != "Sub2") {
if (container._currentframe>=container.midframe) {
_root.currMovie = "Sub2";
container.play();
}
}
}
The midframe is defined at the beginning frame of each external swf.
The first swf works and loads in the first page:
_root.currMovie = "Sub1";
_root.Container.loadMovie(_root.currMovie+".swf");
I'm tempted to believe that it is a targeting error, since the buttons are in the swf being loaded, but don't know enough about actionscript to correct it. HHAALLLPPP!!! All buttons refer to the container (the playing movie clip) but I don't know if the _root is sufficient since the Container movie clip is in the main swf
ie:
Main.swf holds Container
Sub1.swf loads into Container in Main.swf
Nav buttons in Sub1.swf play outro and load Sub2.swf, and Sub3.swf which have their own buttons and, on release, play their outro's and then load the .swf into the Container Movie clip.
IS THERE AN EASIER WAY?
How To Add Transition Animations On Flash Based Website
***(home and about us button references are used for example purposes only)***
I know how to make an animation come in when the home button is clicked, but when I click on the about us button, how would I add action to the home page as a transition to about us?
Smooth Transition Of Flash Between HTML Pages
for the first time, i'm using the same Flash menu on different HTML pages... is there any way to stop the Flash movie from flicking on and off as the pages are selected?
the transition between images and text that are in the same position on two different HTML pages is fairly smooth, but there's quite a gap between the Flash media...
site: www.designfood.co.uk
cheers
Photoshop Flash Gallery Transition Effect
Dear all,
does someone now more about the transition effect which is used in the photoshop CS2 flash gallery 2?
I've included a link here to a sample:
sample gallery
Adobe was kind enough to publish the fla's of this gallery on their website
you can view it here
Now I did find the right pieces of code:
the handler I guess -----------------------------------------
Display.prototype.fadein = function () {
//trace('fadein from '+this);
this.image_mc.hold.colorFade(100, 0, 100, 0, 100, 0, 100, 0, this, 'done');
this.image_mc.loadDisplay._visible = true;
// var for first load
_global.firstLoad = true;
if (showInfo == true){
info_mc.showInfo();
};
};--------------------------------------------------------------
And the function itself ----------------------------------------
// This handles the image dissolve to white effect
// usage
// image_mc.colorFade(100, 0, 100, 0, 100, 0, 100, 0, this, 'done');
MovieClip.prototype.colorFade = function(r1, r2, g1, g2, b1, b2, a1, a2, obj, callback) {
var c = new Color(this);
var tV = [r1, r2, g1, g2, b1, b2, a1, a2];
var speed = 1.5;
var margin = 10;
this.onEnterFrame = function() {
cV = [c.getTransform().ra, c.getTransform().rb, c.getTransform().ga, c.getTransform().gb, c.getTransform().ba, c.getTransform().bb, c.getTransform().aa, c.getTransform().ab];
change = {ra:tV[0]-(tv[0]-cV[0])/speed, rb:tV[1]-(tv[1]-cV[1])/speed, ga:tV[2]-(tv[2]-cV[2])/speed, gb:tV[3]-(tv[3]-cV[3])/speed, ba:tV[4]-(tv[4]-cV[4])/speed, bb:tV[5]-(tv[5]-cV[5])/speed, aa:tV[6]-(tv[6]-cV[6])/speed, ab:tV[7]-(tv[7]-cV[7])/speed};
c.setTransform(change);
if (cV[0]>tV[0]-margin && cV[0]<tV[0]+margin && cV[1]>tV[1]-margin && cV[1]<tV[1]+margin && cV[2]>tV[2]-margin && cV[2]<tV[2]+margin && cV[3]>tV[3]-margin && cV[3]<tV[3]+margin && cV[4]>tV[4]-margin && cV[4]<tV[4]+margin && cV[5]>tV[5]-margin && cV[5]<tV[5]+margin) {
obj[callback]();
delete (this.onEnterFrame);
}
};
};
----------------------------------------------------------------------
Now what interests me: how can I make this code work stand alone. for a totally new movie that loads one image (or more) in to it....
If anyone could help me on this it would be a great help, on forehand thanks!
Yntze
Flash Website - Transition + Sound Problems
Whats up everyone....
I have this site im working on, and I am trying to fix 2 problems. I am decent with flash but not too good. If anyone can help me I would be very appreciative.
URL: www.blc1.com
1. I can't figure out how to have transitions between pages. I have each section of my flash site as an individual frame with the section's content as movie clips on that single frame. Each navigational button uses a "gotoandstop" action. Here is the code im using for my buttons:
Code:
stop();
this.onEnterFrame = function(){
if(rewind == true){
prevFrame();
}
}
this.onRollOver = function(){
rewind = false;
play();
}
this.onRollOut = function(){
rewind = true;
}
this.onRelease = function(){
_root.gotoAndStop("creative");
}
I am looking to have it fade out before it does the gotoframe, this could be as simple as having a black rectangle movie clip fade in, then the gotoandstop runs. I just cant figure out how to do this AS.
2. My second problem is adding sound to my rollovers, for some reason I CANNOT figure this out. I've tried adding sound via dragging onto the rollover movie clip, and Ive also tried using a few actionscript methods. For some reason it will not work, if you take a look at my FLA you will agree this is a WEIRD issue. I have a introductory sound on my site and it plays fine.
I dont want to publish my FLA but if you PM me I can send you it.
Thank you guys in advance.
|