Fade Out Current, Load In New On Release?
Hello Kirupians,
I hope someone could assist me with this.
Im looking to have background1(an mc). If a button is pressed then the current background fades while background2 fades in. There would be about 5 buttons. So I couldnt just use something like
Code:
btnOne.onPress = function() {
background1._alpha = 100;
}
btnTwo.onPress = function() {
background1._alpha = 0;
background2._alpha = 100;
}
because what happens if i press btnThree, then btOne, then btnFour then btnTwo.
I think i have the idea right by storing the current bg mc into a var and referencing that.
something like
Code:
background1._alpha = 100;
currentBg = background1;
btnTwo.onPress = function() {
currentBg._alpha = 0;
background2._alpha = 100;
currentBg = background2;
}
btnThree.onPress = function() {
currentBg._alpha = 0;
background3._alpha = 100;
currentBg = background3;
}
and so on. Im not really sure.
p.s sorry for syntax and functions usage. just trying to get my point across.,
KirupaForum > Flash > ActionScript 1.0/2.0
Posted on: 10-22-2006, 02:01 PM
View Complete Forum Thread with Replies
Sponsored Links:
- On Release.....text Fade And Load Movie?
- Fade Out Swf On Release, Preload, Fade In New Swf
- On Release Fade Out.
- On Release Fade In
- Fade In External Jpg With On Release
- Fade In External Jpg With On Release
- A Fade Out On The Current 10 Frames
- Fade Out MC For Current Mc Viewing
- On Release Fade A Movies Opacity? Possible?
- Fade Back After Release Of Object
- Fade Loaded Movie Over Current
- Fade Loaded Movie Over Current
- Fade Loaded Movie Over Current
- Fade Out My Current Playing Music When Reach Certain Frame
- Actionscript To Load Random External Movie, Fade In, Wait, Fade Out, Repeat
- [FMX]Load Movie In Container With Fade In Fade Out?
- [FMX]Load Movie In Container With Fade In Fade Out?
- On Release Load Mc And On Mc End Load Frame
- No On (release), Just Load How?
- FLV Load Over Current FLV
- Xml To Load On Button Release
- How To Load A Movie On (release)
- On Release Load Dyn Text
- On(release) Load Question
- Load External Flv In A Mc On Release
- Help To Load Exe In Current Window...?
- Using The Current Date To Load A Swf
- I Want To Load An External Swf Into An Mc That Is Above The Current Mc....HELP?
- Load A Movie On Top Of Current One
- Load Photo In Current Swf?
- UnLoad Current Swf And Load New Swf
- Load Xml To Replace Current Xml
- Delay Load Movie On Release
- On Release, Load Movie Function
- On Release Load Movie Into Container
- Load A Movie On Button Release
- Mc Button On Release Load Movie...?
- Problem Getting XML Data To Load On Release
- XML Gallery: Preload On Current Image/cross-fade Image
- Load An SWF File Into My Current Project.?
- Load External Swf While Current One Is Playing
- Current Movie _level4, Then Load...
- LoadMovie Doesn't Load Current Swf
- A Script 2 Load Main Page On Release
- Button Auto Release On Frame Load
- On Release - Play Timeline Back, Then Load A Swf?
- How Do You Load Dynamic Text On On(release) Button?
- How Do You Load Dynamic Text On On(release) Button?
- Load Swf Into Current Movie And Pass It A Variable
- On Click Continue To End Of Current Swf Then Load New Swf In Its Place ?
- [F8] How To GetURL To Load .html In Current Window
On Release.....text Fade And Load Movie?
I have a button..that at the moment loads a movie. However I need the button to fade text then load movie!! Is it as simple as combining these twp pieces of action script? How do I go about altering this to work?
on (release)
{_root.loadMovie
("profile2.swf");
}
bodycopy._alpha = 0;
onEnterFrame = function () {
if (bodycopy._alpha<100) {
bodycopy._alpha += 10;
}
}
Thank you
View Replies !
View Related
Fade Out Swf On Release, Preload, Fade In New Swf
title tells you what i need to do. i have it so that the external swf movies all fade in. however, the trouble comes when fading out the external swf on a release of a button, then showing the preloader, then loading the swf.
Code:
#include "mc_tween2.as"
Code:
var mcl:MovieClipLoader = new MovieClipLoader();
var mclL:Object = new Object();
mclL.onLoadProgress = function(target,loaded,total) {
loader.percent.text = Math.round((loaded/total) * 100) + "%";
}
mclL.onLoadInit = function() {
loader._visible = false;
loader.percent.text = "";
}
mcl.addListener(mclL);
mcl.loadClip("home.swf",main_holder_mc);
here is my on release:
Code:
overview_btn.onRelease = function() {
loader._visible = true;
mcl.loadClip("overview.swf",main_holder_mc);
}
so as you can see, instead of fading out, it will just immediately cut to the preloader. how can i have the external swf's fade out.
thanks in advance for your assistance.
jesse
View Replies !
View Related
On Release Fade Out.
Hi All.
Can any one help me with this? I have a button. when the button is clicked i want the buttons alpha to tween to 0. i have it so it gos to 0 but how do i make it tween to 0?
Any help would be cool thanks.
on (release) {
setProperty (music.swf_level5, _alpha, 0);
}
View Replies !
View Related
Fade In External Jpg With On Release
I know this has been touched on before specifically here: http://www.kirupa.com/developer/mx/photogallery.htm
but what I am wanting to do is a variation on this theme. I have a movieclip nestled in a movieclip notation: _root.frontmovie.frontmovie2 (it is animated)
I want to be able to load jpgs into it with a similar fade in fade out to the example above, but I dont just want to be able to step forward and back I want say 4 buttons on the main time line that target that movie clip each loading a specific gallery item into it as it scrolls slowly across the page.
I was prepared to settle for just a forward and back version aLa the photogallery version, but whenever I add the second . in the path, (in this instance before the " frontmovie2" term the photogallery code delivers and endless nAn loop. Anyone got any ideas about how I can achieve this> Much appreciated.
View Replies !
View Related
Fade In External Jpg With On Release
I know this has been touched on before specifically here: http://www.kirupa.com/developer/mx/photogallery.htm
but what I am wanting to do is a variation on this theme. I have a movieclip nestled in a movieclip notation: _root.frontmovie.frontmovie2 (it is animated)
I want to be able to load jpgs into it with a similar fade in fade out to the example above, but I dont just want to be able to step forward and back I want say 4 buttons on the main time line that target that movie clip each loading a specific gallery item into it as it scrolls slowly across the page.
I was prepared to settle for just a forward and back version aLa the photogallery version, but whenever I add the second . in the path, (in this instance before the " frontmovie2" term the photogallery code delivers and endless nAn loop. Anyone got any ideas about how I can achieve this> Much appreciated.
View Replies !
View Related
A Fade Out On The Current 10 Frames
So i made a intro for one of my Work In Progress flash sites. While the intro is playing i have made a button that says 'skip movie'. When you click on this i want a fade out of the current ten frames. Because i can let it jump to a part of the movie that got a fade out of two gradients. But then the two gradients just jump into the stage (if the watcher of the movie immediatly click on the button) and then got a fade out. So after this long story... How to make a fade out of a movie that is playing???
View Replies !
View Related
Fade Out MC For Current Mc Viewing
Hi All
I am creating a flash doc that has buttons that i want to go to various labelled frames on scene1 (i.e. home, contact etc)
they go to the labels fine, but the labels act as different pages and i want the current page to fade out before it goes to the next. is there a way of doing this, all forums i have searched do not offer any advice on this
help would be great! thanks
View Replies !
View Related
Fade Back After Release Of Object
Good day,
I have a hunch that this is not too difficult to do but I cannot figure out how to do it. Any help would be much appreciated.
I have a bunch of rollover sites laid on my animation...the mouse rolls over the hotspot and an image fades into focus. However once the person leaves that hotspot the image disappears rapidly. Does anyone know how I can make the image fade out after a rollover just as it faded in?
Thank you once again for any help or information.
View Replies !
View Related
Fade Loaded Movie Over Current
Dear members of the flash community.
I´ve just spent 3 days scanning the whole Internet after this script (see below). I´ve read maybe 100 topics on varios actionsscript forums but they all end the same.
- Unanswered or incomplete.
- Now, I´m just a poor web designer without no fanzy as-skills and without money.
- All I could offer you in return if you could help me out, except the sweeeeet feeling of solving a huge problem to millions of poor web designers, is helping you with a logo or something.
This is what I´m looking for:
- The visitor clicks on a link that starts to load a external swf.
- The swf loads behind the current content, showing the preloading process with a loading bar och numbers or what ever.
- When the swf has preloaded it fades over (with alpha) the current content which creates a very smooth web experience.
It´s not nessesary to the script to be xml driven, slideshow gallery or automatic. Pleease help me, pleeeese.
Best regards
Tony Bolero
View Replies !
View Related
Fade Loaded Movie Over Current
Dear members of the flash community.
I´ve just spent 3 days scanning the whole Internet after this script (see below). I´ve read maybe 100 topics on varios actionsscript forums but they all end the same.
- Unanswered or incomplete.
- Now, I´m just a poor web designer without no fanzy as-skills and without money.
- All I could offer you in return if you could help me out, except the sweeeeet feeling of solving a huge problem to millions of poor web designers, is helping you with a logo or something.
This is what I´m looking for:
- The visitor clicks on a link that starts to load a external swf.
- The swf loads behind the current content, showing the preloading process with a loading bar och numbers or what ever.
- When the swf has preloaded it fades over (with alpha) the current content which creates a very smooth web experience.
It´s not nessesary to the script to be xml driven, slideshow gallery or automatic. Pleease help me, pleeeese.
Best regards
Tony Bolero
View Replies !
View Related
Fade Loaded Movie Over Current
Dear members of the flash community.
I´ve just spent 3 days scanning the whole Internet after this script (see below). I´ve read maybe 100 topics on varios actionsscript forums but they all end the same.
- Unanswered or incomplete.
- Now, I´m just a poor web designer without no fanzy as-skills and without money.
- All I could offer you in return if you could help me out, except the sweeeeet feeling of solving a huge problem to millions of poor web designers, is helping you with a logo or something.
This is what I´m looking for:The visitor clicks on a link that starts to load a external swf.
The swf loads behind the current content, showing the preloading process with a loading bar och numbers or what ever.
When the swf has preloaded it fades over (with alpha) the current content which creates a very smooth web experience.
I don´t need any xml driven, slideshow gallery, automatic scripts. Pleease help me, pleeeese.
Best regards
Tony Bolero
View Replies !
View Related
Actionscript To Load Random External Movie, Fade In, Wait, Fade Out, Repeat
Hello,
I'm trying to construct some AS3 that will load a random one of several external swf files, fade the instance in, wait 5 seconds, fade the instance out, and load a new random movie (it can be the same one; I don't want to get too complicated at this point).
I could do this with no problem using older methods, but the client insists this is written in 3.
Please help; I'm at my wits end!
View Replies !
View Related
[FMX]Load Movie In Container With Fade In Fade Out?
Hi,
I have a menu (mc_menu) with 6 button mc's (btn_home, btn_about, ..........btn_contact) I also have 6 containerson the stage (content_home, content_about, ..........content_contact)
Right now I'm loading different external swf's(home, about,......contact) with the following AS code:
Code:
function pagina(page) {
showContent(page);
}
function showContent(page) {
var c = this["content_"+page];
for (var i in this) {
if (this[i]._name.substr(0, 8) == "content_") {
this[i]._visible = (this[i]._name.substr(8) == page);
c.loadMovie(page+".swf");
}
loadingPage = page;
}
}
and on the buttons I call that functions:
Code:
function setButton() {
for (var i in menuMc) {
if (menuMc[i]._name.substr(0, 4) == "btn_") {
clip = menuMc[i];
//RollOver and RollOut stuf goes here
clip.onRelease = function() {
pagina(this._name.substr(4));
};
}
}
}
But I want the external swf's to load in just one container with fade in and fade out. How can I reach this?
Thanks in advance
View Replies !
View Related
[FMX]Load Movie In Container With Fade In Fade Out?
Hi,
I have a menu (mc_menu) with 6 button mc's (btn_home, btn_about, ..........btn_contact) I also have 6 containerson the stage (content_home, content_about, ..........content_contact)
Right now I'm loading different external swf's(home, about,......contact) with the following AS code:
Code:
function pagina(page) {
showContent(page);
}
function showContent(page) {
var c = this["content_"+page];
for (var i in this) {
if (this[i]._name.substr(0, 8) == "content_") {
this[i]._visible = (this[i]._name.substr(8) == page);
c.loadMovie(page+".swf");
}
loadingPage = page;
}
}
and on the buttons I call that functions:
Code:
function setButton() {
for (var i in menuMc) {
if (menuMc[i]._name.substr(0, 4) == "btn_") {
clip = menuMc[i];
//RollOver and RollOut stuf goes here
clip.onRelease = function() {
pagina(this._name.substr(4));
};
}
}
}
But I want the external swf's to load in just one container with fade in and fade out. How can I reach this?
Thanks in advance
View Replies !
View Related
On Release Load Mc And On Mc End Load Frame
on release load mc and on mc end load frame
is the the bst way to script a load effect for a frame
not a preloader well..i dont wanna do this but lets use 2a as an example. whenever you click a button theres that mc of a box being transformed to fill up the content window...im sure you have see nthis a lot. what is the best way to integrate that into the movie...
View Replies !
View Related
No On (release), Just Load How?
Okay heres the deal clearly:
I have this existing code to work with, But in my case I dont have a button (so no "on (release)". I just want an external swf to load without anyone clicking anything. I want it to load by itself and without a navcontainer.
Thanx, Joseph aka teamred
Code:
on (release) {
unloadMovie(2);
loadMovie("fo_champion.swf",2);
}
View Replies !
View Related
FLV Load Over Current FLV
Hello, hope you guys can help me with this one.
I've got a learning module that plays an FLV in a main.swf with a question and answers. When you select an answer a second swf, answerA.swf, loads over the top and in some cases contains another FLV. This worked fine with progressive download except we couldn't stop downloads and it got bad.
So, we are now streaming off of a media server, but cannot get FLV main.swf to stop and stay on the stage while answerA.swf loads over the top playing it's FLV, then when clicking a backToQuestion button it completely deletes answerA.swf leaving main.swf exactly as it was.
I hope that makes sense... It is essential that the main.swf stays on stage for usability, answer.swf is partially transparent and really grounds the user.
Thanks
View Replies !
View Related
Xml To Load On Button Release
have some AC loading xml and creating dynamic content in a scrolling movie clip.. no prob it works.
but i cant seem to get it to do the same thing when i initiate it from a button release.. will only work when the movie first loads.
i dont want it to load when the movie starts. just when someone clicks on a button. since i am going to have it end up loading 6-7 different xml files for differnt sections.
any suggestions please?
stop()
//function loadxmlfile(){
var web_xml = new XML;
web_xml.onLoad = startImages;
web_xml.load("downloads.xml");
web_xml.ignoreWhite = true;
//}
//startImages======================================= ==================
function startImages(success){
if (success == true){
rootNode = web_xml.firstChild;
nodes=rootNode.childNodes;
for (i=0; i<nodes.length; i++){
newClip = _root.downbox_mc.toploader_mc.list_mc.attachMovie( "contenttab","tab"+ i, i);
newClip._x = 5;
newClip._y = newClip._y + 15 + (i*35);
newClip.thumb_mc.loadMovie(nodes[i].attributes.jpegURL);
newClip.desc_txt.text = nodes[i].firstChild.firstChild;
newClip.maker_txt.text = nodes[i].firstChild.nextSibling.firstChild;
newClip.rating_mc.gotoAndStop(nodes[i].firstChild.nextSibling.nextSibling.nextSibling.fi rstChild);
trace(nodes[i].firstChild.nextSibling.nextSibling.nextSibling.fi rstChild);
//for (var i=0; i < nodes.length; ++i){
}
}
}
View Replies !
View Related
How To Load A Movie On (release)
hello again...
I'm almost done! but once again I need some help. this is the life of a newbie in flash, haha~
anyways, i need to know how to make a movie clip symbol of some text and an image fade onto the screen in the on(release) state of a button. (i do know to use alpha to make the movie clip fade in actually...just wanted to explain the movie clip) the thing is, I would PREFER if the movie loaded after my Dropbox movie clip played(which is basically a box dropping down, it will serve as the background for this movie I want to load)if it is unclear how to get it to play after the dropbox movie, that's ok...it will fade in after all so by the time it fades in, the box will most likely be down anyway. i just figure it would be smoother if it played after the box was done dropping.
Part 2 of all this, is I need this movie of text to vanish once you press another button...and then when you press this button, another movie clip of text and an image will need to fade in. so basically, i guess you can say this is the same instruction of script for each button, but just different movies. you press profile button, the dropbox comes down and my profile movie plays. then you press the links button, and the profile movie fades out and the links movie fades in. this is the main idea.
if anyone thinks they can help but needs my flash file for a better idea let me know, although i think i've pretty much explained it all.
I'm in the homestretch! thanks in advance!!
peace~
View Replies !
View Related
On Release Load Dyn Text
ok, i have tred my hardest to get this action to work, but it still won't... please help me out...
I am trying to load external text to a dynamic text on the release of a button click with (5 different buttons, 5 .txt files, 1 dynamic multiline text space)
Please post your input, as i am confused.
I have included the .fla along with the .txt files.
View Replies !
View Related
On(release) Load Question
Hello!
I have added this code to a button in my flash file. When the viewer presses the button a external .swf file will load. The problem is how do I specify where it loads. For example, when the viewer hits the button the external swf file default loads at 0,0. If I want it to load somewhere else on the page is there a way to make it load at a certain specified location? Here is the code I am using on the button.
Code:
on (release) {
loadMovieNum("test.swf", 1);
}
Now this works fine and the swf file is loaded correctly but it is always at the top left corner. How can I go about loading it in a specific place on the flash file? Is there a way to create a holder that would make it load in that certain area?
Thank you for all your help!
Greg
View Replies !
View Related
Load External Flv In A Mc On Release
hello all
i am attempting to load an external flv into an EmptyMC on my stage from a button all using actionscript 3.0. any ideas on how i can accomplish this? i have tried many different ways but nothing seems to be working...
thanks for looking!
View Replies !
View Related
Help To Load Exe In Current Window...?
hi
I have a mainmenu.exe with links to other .exe's...
I'd like to open the other .exe's (I'm using JStart) in the same window as my menu - effectively replacing it. Here is the code I've used to open the .exe from my mainmenu.exe and I've put in a quit command to close the main menu. :
on (release) {
fscommand("exec", "fg.exe");
fscommand("quit");
}
It effectively leaves me with just one window open, however it's a new window. Is there a way I can open it into the mainmenu window?
Cheers
View Replies !
View Related
Using The Current Date To Load A Swf
Hi all,
I have a swf file that I use as the title for my website on my home page. I named the main file splash and I load it into _level1 of an otherwise empty file named splash_host. I have created several copies of splash and made each copy holiday oriented (easter bunnies easter, santas for christmas, etc..)
My question is this: Can someone give me an example of the actionscript I would use to tell splash host a holiday is coming up and to load it's unique holiday file, not the original?
Any help would be really appreciated.
Thanks,
Steve
View Replies !
View Related
I Want To Load An External Swf Into An Mc That Is Above The Current Mc....HELP?
It seems fairly basic.
I want to load in an external swf into an mc that is above another mc. Once the new swf is loaded in, I want the lower one to be set to _visible = false.
How would I set this up? Is it a matter of swapping depths?
Each time a button is clicked, I want the new file to be loaded in on top.
I was thinking of doing something with levels, so that I load it into the current level + 1. Is that even possible or a good approach. There are infinite levels right?
Thanks,
View Replies !
View Related
Load A Movie On Top Of Current One
I am trying to load a movie clip on top of the current movie I have playing, I want it to stay in the same window and not open a new browser window or anything. It does not need to be moveable at all, I am just not sure how to load it and to get it to display how I want.
All the tutorials I am finding are showing how to open a seperate pop up window, not one in the same window.
Any help would be great.
View Replies !
View Related
Load Photo In Current Swf?
hello, im using some AS that scotty modified from the photo gallery tutorial on this site.
it goes like this.
Code:
var absX = 523;
var absY = 320;
this.pathToPics = "";
this.pArray = ["pic1.jpg", "pic2.jpg", "pic3.jpg", "pic4.jpg", "pic5.jpg", "pic6.jpg"];
this.fadeSpeed = 20;
this.pIndex = 0;
this.photo._x = absX-200;
// first picture = 400 width/2
this.photo._y = absY-133;
// first picture = 266 height/2
MovieClip.prototype.changePhoto = function(d) {
this.pIndex = d;
this.onEnterFrame = fadeOut;
};
MovieClip.prototype.fadeOut = function() {
if (this.photo._alpha>this.fadeSpeed) {
this.photo._alpha -= this.fadeSpeed;
} else {
this.loadPhoto();
}
};
MovieClip.prototype.loadPhoto = function() {
var p = this.photo;
p._alpha = 0;
p.loadMovie(this.pathToPics+this.pArray[this.pIndex]);
this.onEnterFrame = loadMeter;
};
MovieClip.prototype.loadMeter = function() {
var i, l, t;
l = this.photo.getBytesLoaded();
t = this.photo.getBytesTotal();
if (t>0 && t == l) {
this.onEnterFrame = fadeIn;
this.photo._x = absX-this.photo._width/2;
this.photo._y = absY-this.photo._height/2;
} else {
// trace(l/t);
}
};
MovieClip.prototype.fadeIn = function() {
if (this.photo._alpha<100-this.fadeSpeed) {
this.photo._alpha += this.fadeSpeed;
} else {
this.photo._alpha = 100;
this.onEnterFrame = null;
}
};
// loading en setting x/y for first picture
this.changePhoto[0];
it works great in the swf im using it in, but when the swf is loaded into another one the pictures don't load. i know its a simple fix, but ive tried everything that i know.(which isn't much, but im gettin better.)
View Replies !
View Related
UnLoad Current Swf And Load New Swf
Hi,
i have a photo gallery of thumbnails in one swf (wedding_scroller.swf) and when i click on the thumbnails I want to unload the thumbnail swf and load in a new swf with the larger image (wedding_large.swf). I cant seem to get it right. I can load in the the new swf but the thumbnail swf stays there. this is the code i am using on one of the thumnail images:
on (release) {
unloadMovie("wedding_scroller.swf");
loadMovie("wedding_large.swf",2);
}
also when wedding_large.swf loads I want it to go to frame 2.
any help would be appreciated.
thanks
View Replies !
View Related
On Release, Load Movie Function
Quote:
flash buttons:
select insert>>new symbol click button, and give it a name (menu1_btn)
this will then open symbol editing mode, and you will notice that the time line looks different (there are four frames defined, up, over, down and hit)
in the first frame, draw whatever you want the button to look like when it is just sitting on the page.
in the second frame, alter your image to whatever you what it to look like on rollover
(you can do this so the button itsself is animated, ie text fades in or whatever, but we won't go into that now)
in the third frame, alter your image to whatever you want the down state to be (ie what it looks like when someone clicks on it)
the fourth frame you can just leave for now.
go back to the main stage, and drag menu1_btn from the library onto your stage.
Test your movie - the button should show up, but not do anything until you hover or click on it.
At the moment, when you click on it, it won't direct you anywhere, but we will come to that
next thing to do, create an empty movie clip insert>>new symbol select movie clip, give it a name (empty_mc)
go back to the main stage, and drag empty_mc from your library onto the main stage. It will show up as a little white circle - don't worry about that. put it wherever you want the top lefthand corner of your new clip to be.
now create a new movieclip, give it a name (content_mc) and make sure you select "export in first frame" "export for actioscript" and make sure linkage is filled in as "content_mc". Fill it with whatever you want the new section to contain. create your clip so that the registration point is at the top lefthand corner.
Ok, back to the main stage
click on your button, so it has a blue line round it, then go to the bottom to the "actions" pane
Make sure you are in "expert mode"
and type in the following
on (release) {
empty_mc.attachMovie("content_mc", "content_mc", 1);
}
Anotherway to do the last part:
Quote:
on (release) {
_root.empty_mc.attachMovie("content_mc", "content_mc", 1);
}
I can't seem to get this to work. Any ideas on what might be wrong.
View Replies !
View Related
On Release Load Movie Into Container
Hello, so here I am, created my first site using Flash MX.
Movie size 800 by 600, all grafic and fixed feature done and working...I'm only left with a big blank square of 500 by 450 and lots of separate movies of the same measure. What to do to load one specified movie on the release of one specified button into that big blank square (It would be a container, right? It's laughing at me right now )
Thanks all for ur help.
View Replies !
View Related
Mc Button On Release Load Movie...?
hi all!
i've got a mc button that onRelease i want to load a movie (in an empty movie clip). so will this work?
b1 is my mc button
b1.onRelease = home;
function home() {
_root.emptyMChome.loadMovie("home.swf");
}
the thing i am unsure of is the emptyMChome
does home have to be there after emptyMC, or what exactly has to be there?
thanks!
View Replies !
View Related
Problem Getting XML Data To Load On Release
I've been looking at this code now for months and I am just not understanding why I cannot seem to get this to work. I have a gallery that loads in a series of thumbnails. What is supposed to happen is that you click on a thumbnail and a larger image of that thumbnail appears. At the same time a second thumbnail image loads in a different movieClip while simultaneously loading a series of dynamic text fields. I think it sounds more complex than it really is.
I can get everything to load correctly initially, but when I click to view any other thumbnail only the larger image loads. The data in the XML file doesn't seem to load the secondary thumbnail or the dynamic text fields. I have included my .fla file and also my xml file. I am hoping someone can take a look and tell me what I've done wrong so I can try and make this work.
I am using Flash CS3 with AS2.0. Thanks in advance for anyones help!
View Replies !
View Related
XML Gallery: Preload On Current Image/cross-fade Image
Hello,
I am new to action script but I am learning quickly.
I took the following tutorials and made a hybrid:
Photo Gallery Using XML and Flash
Photo Slideshow Using XML and Flash
I redesigned the interface and created this:
http://www.onarresdesign.com/greg/work2.html
Everything works great, but now I want to take it further than the tutorial.
I am trying to make the images cross-fade. I am open to any suggestions and I have tried many techniques with little success.
Here is the closest solution steps I have come up with:
Code:
1) First image preloads (grey background showing)
2) First image loaded into top level MC 1
3) First image fades in
4) First image in top level MC 1 remains visible
5) First image gets loaded into bottom level MC 2 behind current movie clip.
6) Top level MC 1 clears because its preloading next image
Bottom level MC 2 remains visible
7) Preloader shows on top of bottom level MC 2
8) Next image is loaded into top level MC 1
9) Next image fades in (cross-fade effect achieved because previous image is behind it)
10) Next image gets loaded into bottom level MC 2
Repeat process
I can't get the action script to do what I want. I have off set the moveclips to show that the images are loading into both movieclips. I currently have the 'nextImage()' function controlling this so it is understandable the both images are cleared because the function is loading new images into the movie clips at the same time. How do I get one movie clip to remain constant while the other is loading? It seems to be a matter of where the function is placed. Or so I think.
I would appreciate any help I can get on this. If would also appreciate any suggestions for making the code for the control buttons cleaner.
Thank you,
</asla>
View Replies !
View Related
Load An SWF File Into My Current Project.?
I know, Im an idiot, but I have an old SWF File I want to put into my current project. well how can I do this? Movieclip.loadmovie? well I tried this but what method do I use?! for URL I put the file name, tried with and without the extention of swf. any help please? or how cna I implent the html file into it?
View Replies !
View Related
Load External Swf While Current One Is Playing
I'm kinda beginner/intermediate user to flash and I've seem to run into a problem. I'm creating a website out of flash and it is made up of multiple flash movies. I orginally started with just one movie but the file size got to big, so I am now breaking it up into smaller movies.
I want to have first movie playing which ends with a user menu. Each button links a different external swf movie. Currently when I test it online, there is a gap between movies as the second one loads once the user clicks the button that loads that movie.
I would like a way to (pre) load the next movie while the current movie is still playing, or looping, without having the gap giving it a smooth transistion between movies. I would like it too happen automatic, sorta behind the scenes of the first movie thats playing.
any ideas?
Brian
View Replies !
View Related
Current Movie _level4, Then Load...
How should I create this?
I have a movie that calls in a bunch of movies into _level4 - each one loads the next one into the level. At the last minute, the client changed his mind and wants controls to pause/play and skip to the next movie. I'm putting the controls into level6 I guess.
What's the best way to check to see what movie is loaded into level 4, and if it's a certain movie, make the next button go to the next movie in the list and the previous button go to the previous movie in the list? I'm thinking an array, but don't know how to set this up. This was already due, so any help with how to write the code would be great too.
So the logic for the next button would be:
if the movie in _level4 == muddyjim1.swf;
_level4.loadMovie("busysun2.swf");
Not sure of the code for that though and if you have to set up a listener, etc. Do I set and array that says if muddyjim1 then prevmov ==intro.swf and nextmov==busysun2.swf and so on? I had told the other programmer to name these program1.swf, program2.swf, etc. but he didn't - would that be easier?
The names of the movies are:
intro.swf
muddyjim1.swf
busysun2.swf
whenliza3.swf
horidfly4.swf
gentle5.swf
snagg6.swf
farmwell7.swf
kingnic8.swf
polite9.swf
unclesam10.swf
thought11.swf
silent12.swf
conclu.swf
menu.swf
Thanks,
Yevri
View Replies !
View Related
LoadMovie Doesn't Load Current Swf
Hi all,
I am loading several swf's into my main Flash movie on the timeline. I've published my Flash into an HTML document and everytime I update my smaller swf and upload it to the server, the older version of the swf continues to play! I even take careful steps to publish the smaller swf file. Then I even publish my main Flash movie, and then I upload all the files to the server in the same folder and everything! But every time the html plays it always plays the older version of the smaller swf that I edited and uploaded! Do I need to incorporate the source code for the smaller swf into my HTML doc as well? So frustrating, please help!
Thanks
View Replies !
View Related
Button Auto Release On Frame Load
I have a simple button then when pressed calls a function. I'm having trouble with the code to get the button to release automatically when they get to the frame that the button is on.
My simple button's code.
ActionScript Code:
on (release)
{
showInfo("Update");
}
Thanks for any help.
View Replies !
View Related
How Do You Load Dynamic Text On On(release) Button?
I need to add score points and load dynamic text at the same time. This is my code. Thanks!!!
on (release) {
//This is where I need to load dynamic text
//-----"response" is my dynamic text field; same as "total"-----
_root.response = _root.response(load text here???)
//This is my score keeping
_root.total = _root.total + 100;
//Goes to next frame
nextFrame();
}
View Replies !
View Related
How Do You Load Dynamic Text On On(release) Button?
I need to add score points and load dynamic text at the same time. This is my code. Thanks!!!
on (release) {
//This is where I need to load dynamic text
//-----"response" is my dynamic text field; same as "total"-----
_root.response = _root.response(load text here???)
//This is my score keeping
_root.total = _root.total + 100;
//Goes to next frame
nextFrame();
}
View Replies !
View Related
On Click Continue To End Of Current Swf Then Load New Swf In Its Place ?
Ok. Here is what I am looking to do. I want to have a background template that NEVER changes and has a menu that is part of the background that also NEVER changes. I am wondering if there is a script that would load an swf on top of the background, wait for the user to click a link on the menu, then continue playing the current swf after which the clicked link would load a new swf in its place. I have been trying to fiure this out on my own for way too long! Thanks a lot for your help and for even taking the time to read thus far.
View Replies !
View Related
[F8] How To GetURL To Load .html In Current Window
I have a flash intro which I've published with an html file.
I've also published the main swf with an html file and I'd like the intro to load this into the same window when it reaches the last frame of the intro.
So, once intro.html gets to the last frame of its swf, it will load the main html file in the window. Does that make sense?
I'm assuming some kind of onEnter or onLoad in the last frame will do it but I can't get it work and I would really appreciate some insight!
Here's what I've got in the last frame now:
stop();
onLoad = function(){
getURL("main.html", "_this");
}
what am I missing?
thanks!
*edit - RESOLVED.... damn, I realized the problem as soon as I posted this. This forum really is fast! _self
View Replies !
View Related
|