[FMX04]Help Needed:S Xml Menu And Transition Between External SWFs
HI all!
I am makeing new website for my AAclan.
I am am loading external SWF files into main file from XML created menu.
I want to make TRANSITIONS between loaded files, but this Kiripa tutorial does not work for me since I can not give each button sepparate code. All buttons come from xml.
At the moment If I do all by tutorial all menu buttons start to load same link which and transition works, but yeah I need menu to understand that it must load new swf not that same.
I know it is possible, but I do not know how it is made, so if anyone could help me I would be very happy!
I hope you understood my problem.
Thanx in advance!
Now comes code that needs to be modified :
if (_root.currMovie == undefined) {
_root.currMovie = _root.link[this.i].attributes.url;
_root.Konteiner.loadMovie(link[this.i].attributes.url, "_blank");
} else if (_root.currMovie != link[this.i].attributes.url, "_blank" ) {
if (Konteiner._currentframe >= _root.Konteiner.midframe) {
_root.Konteiner.gotoAndPlay(_root.closing);
}
}
KirupaForum > Flash > ActionScript 1.0/2.0
Posted on: 01-21-2006, 04:16 AM
View Complete Forum Thread with Replies
Sponsored Links:
[FMX04] Loading External Swf's With Fade Transition
I wanted to use this code to construct one SWF that loads up a set of external SWF's that then just play one after each other fading in and out .... The only problem is that this code is asking the user to click on a button to go to the next movie, I dont want ANY user interaction, I just want the movies to play - fade out - new one fades in - over and over!
Can anyone help me with altering this code to make this happen?
Thanks!!!
Here is the original tutorial I followed:
http://www.devx.com/webdev/Article/28142/1954?pf=true
Code:
/*
array of possible content to pick from. This article answered a question about swapping loaded SWF files with a transition, but this technique will also work with jpgs, without having to make swf files from them.
*/
swfArray = new Array("red_bird.swf", "chinatown_dragon.swf", "working_beast.swf");
//create two MovieClips that will hold the loaded files
this.createEmptyMovieClip("target1",1)
this.createEmptyMovieClip("target2",2)
//load first movie into clip 1 to start with the first image
target1.loadMovie(swfArray[0]);
//set clip2 alpha to zero so it can fade in
target2._alpha = 0;
//variables that store current clip and current content index
activeTarget = target1;
currentIndex = 0
/*
movie-level enterFrame event handler that will fade down object 1 (if it's alpha is higher than zero), and fade up object 2 (if it's alpha is less than 100)
*/
this.onEnterFrame = function() {
if (obj1._alpha > 0) {
obj1._alpha -= 10;
}
if (obj2._alpha < 100) {
obj2._alpha += 10;
}
//enable trace to watch memory used by each loaded movie. this will illustrate the
// benefits of unloading the faded movie.
//trace("clip1: " + clip1.getBytesTotal() + " clip2: " + clip2.getBytesTotal())
};
//button script that swaps load target focus and loads the next movie
nextButton.onRelease = function() {
//toggles values of object 1 and 2 between clip 1 and clip 2
if (activeTarget == target1) {
obj1 = target1;
obj2 = activeTarget = target2;
} else {
obj1 = target2;
obj2 = activeTarget = target1;
}
//assigns content of object 2 as next item in the content array, unless the
// end of the array has been reached. in this case start over at first item
if (currentIndex < swfArray.length-1) {
currentIndex++
} else {
currentIndex = 0
}
//load content into second clip
obj2.loadMovie(swfArray[currentIndex])
//to reduce possible RAM and performance overhead, add an onEnterFrame
// event handler to object 1 to unload it once it has faded out.
//once the movie has unloaded, delete the onEnterFrame event handler
// to prevent future loads from unloading.
obj1.onEnterFrame = function () {
if (this._alpha <=0 ) {
this.unloadMovie();
delete this.onEnterFrame;
}
}
};
View Replies !
View Related
[FMX04]Note On External SWF Transition Tutorial
Hello everyone,
First post. I was just going through Voetsjoeba's tutorial on making transitions between external swf's < http://www.kirupa.com/developer/mx2004/transitions2.htm >, which contained this note:
"If your buttons are not located on the main timeline, you will have to change the path to the container movieclip. In this example the buttons are located on the main timeline, therefore 'container' targets the container movieclip correctly. Though, if they are not on the main timeline, you must change container to the appropriate path."
I was wondering if anyone could elaborate on this. That is, how the path to the container movieclip would need to be changed in this situation. Apologies if the question is too vague.
Thanks!
sjnair
View Replies !
View Related
Transition Between External SWFs
Hey guys, I got a little problem
I'm not having trouble doing the transition. However, I'm not doing it the way its described in the tutorial on the main site. I dont have a frame to tween to as an intro, or a frame to tween to as an "extro" when another SWF is loaded. I am having a SWF tell level0_ the dimensions of some MC right before a different MC is loaded, then level0_ tells the new loaded MC (inside the new SWF) to Tween from the dimensions it just recieved (old SWF) to the dimensions of the new loaded MC. It works great.. its completely dynamic.
The problem is that the MC flashes when the next SWF is loaded, which is obviously it resizing to the old SWF's dimensions, so it can Tween to the new dimensions. Theres got to be a way around this! I've seen dozens of sites tween perfectly, do they use the intro/extro method, or is their entire site in one SWF? or is this possible the way I want it?
Thanks for your time, if you want an example of what I mean, heres a gander at the code:
old SWF Dimensions sent to _level0 before unloading:
Code:
_level0.tempWidth = _level5.contentBox_MC._width;
_level0.tempHeight = _level5.contentBox_MC._height;
_level0.tempX = _level5.contentBox_MC._x;
_level0.tempY = _level5.contentBox_MC._y;
_level0.myMCL.loadClip("resume.swf", 5);
In _level0, when the new level 5 is finished loading, Tween the dimensions:
Code:
myListener.onLoadInit = function(target:MovieClip) {
new Tween(_level5.contentBox_MC, "_width", Strong.easeIn, _root.tempWidth, _level5.contentBox_MC._width, 24, false);
new Tween(_level5.contentBox_MC, "_height", Strong.easeIn, _root.tempHeight, _level5.contentBox_MC._height, 24, false);
new Tween(_level5.contentBox_MC, "_x", Strong.easeIn, _root.tempX, _level5.contentBox_MC._x, 24, false);
new Tween(_level5.contentBox_MC, "_y", Strong.easeIn, _root.tempY, _level5.contentBox_MC._y, 24, false);
}
The level5 referred above is the new SWF as per the loadClip in the first code.
View Replies !
View Related
Help: Transition Between External SWFs
Hello,
I'm creating my portfolio using the "Transition between External SWFs" tutorial and hit a major snag: the buttons don't work.
My problem is similar to this one, posted a while ago. I created my buttons using the "Complex Rollover/out" tutorial, so my buttons are actually movie clips.
The code that calls the external SWF automatically once the page loads works just fine. My test SWF loads, no problem. But when I click on my buttons, nothing happens.
At first I thought what I had to do was put the button code inside the movieclip, at the end of the roll-over actionscript like so:
Code:
stop();
this.onEnterFrame = function() {
if (rewind == true) {
prevFrame();
}
};
this.onRollOver = function() {
rewind = false;
play();
};
this.onRollOut = function() {
rewind = true;
};
this.onRelease = function() {
if (_root.currMovie == undefined) {
_root.currMovie = "test";
_root.container.loadMovie("test.swf");
} else if (_root.currMovie != "test") {
if (_root.container._currentframe>=_root.container.midframe) {
_root.currMovie = "test";
_root.container.play();
}
}
};
But there was no change (with or without the "_root" in front of "container"). So then, I placed the code on a different actionscript layer and frame on the main timeline, and added
Code:
button_1.onRelease = function() {
to the top (without the _root). No go.
For kicks, I decided to download the source file from the tutorial and paste one of the buttons from that into my own SWF to see if it'd work, and hopefully confirm that my buttons were the problem. Unfortunatly, that button didn't work either.
So, I figure there's something else in my main SWF that is conflicting with the buttons' code, but I have no idea what it could be, since it's just a bunch of masks and tweens that form an intro for the navigation.
Here is a zip file containing the FLAs - *click*
Any help would be greatly appreciated.
View Replies !
View Related
Transition Between External SWFs
hi,
i need your help
am doing a flash website (www.newtele.net) and i have used the following tutorial for the transitions between the pages.
http://www.kirupa.com/developer/mx2004/transitions2.htm
There is one more thing i need to do: When the home page opens by default, i have buttons on them and i want the same effect when i click them as it is when i click the other links on the main page.
i.e., i need the home page to slide away when i hit a button on the home page.
Please help!
AJ
View Replies !
View Related
Transition Between External SWFs
Hey All,
I read through the "Transitions between External SWFs" tutorial, and it makes perfect sense.
For my project, I have a total of 14 mc's all together the swf weighs in at a whopping 40mg with sound, video, etc. Obviously that's a ridiculous size for online. Is it possible, and reading the tutorial I assume it is, but just want to check, to make each of the mc's a seperate swf, and load them sequentially in the main movie? I need to be able to do this without the need for the user to click any buttons as in the tutorial. I would have pause and play buttons pointing to the _root, but I need each movie clip to call the next clip, and so on.
Thanks for any help or advice.
J
View Replies !
View Related
[CS3][AS2] Transition Between External SWFs
In reference to the question below I used this tutorial to accomplish some of my AS goals:
http://www.kirupa.com/developer/mx2004/transitions.htm
The question based off of this tutorial is how to correctly target an external movie clip with buttons that are not on the main time line. What would be the approproiate path for the script below for the external swf (work.swf)?
on (release) { if (_root.currMovie == undefined) { _root.currMovie = "work"; container.loadMovie("work.swf"); } else if (_root.currMovie != "work") { if (container._currentframe >= container.midframe) { _root.currMovie = "work"; container.play(); } } }
View Replies !
View Related
Transition External SWFs In HTML
I have 2 different swfs (movie1.swf and movie2.swf) in a HTML....
When the movie2.swf finish playing (at the end there is a stop() )...... I would like to push a button replay to the movie.swf and play the movie2.swf from the beginning.......
Warning: The movies are different and not in one...
Thank you in advance
View Replies !
View Related
Transition Betwen External SWFs
Hello ,
I try to create a transition betwen external SWF , but I cant't succeed .
I followed the tutorial :
http://www.kirupa.com/developer/mx2004/transitions2.htm
I created the buttons , the mouvie clip...
I have put the SWF in the library .
Could it be the reason of my failure ? Where the SWF should be ? Or there is maybe another explantation ?
Many thanks
View Replies !
View Related
Transition Betwen External SWFs
transition betwen external SWFs
Hello ,
I try to create a transition betwen external SWF , but I cant't succeed .
I followed the tutorial :
http://www.kirupa.com/developer/mx2004/transitions2.htm
I created the buttons , the mouvie clip...
I have put the SWF in the library .
Could it be the reason of my failure ? Where the SWF should be ? Or there is maybe another explantation ?
Many thanks
View Replies !
View Related
Transition External SWFs In HTML
I have 2 different swfs (movie1.swf and movie2.swf) in a HTML....
When the movie2.swf finish playing (at the end there is a stop() )...... I would like to push a button replay to the movie.swf and play the movie2.swf from the beginning.......
Warning: The movies are different and not in one...
Thank you in advance
View Replies !
View Related
Loading External .swfs With A Wipe Transition...
im sure this question has been answered before, but ive searched the forums with no luck. what im trying to do is basically what the subject says. i want to be able to load an external .swf using a wipe type of transition. for example. theres 10 buttons on the main .swf (level 0). if the user presses any one of the ten i want the current content (level 1) to stay on screen while this wipe animation plays. once the wipe has taken over the entire content area, i want the selected .swf to be loaded behind the wipe. then when the wipe finishes the new content will be displayed (level 1 again) ... this is probably pretty simple but i cant figure out how to do it. any help on this would be awesome.
thanks!
View Replies !
View Related
Transition Between External Swfs Tutorial Tweak
My transition scripting is based off of the tutorial "Transitions Between External SWFs" by Voetsjoeba.
How can I make the main nav buttons change the current SWF being loaded if they are pressed during the intro phase before the current SWF reaches midframe? The problem I have is the user has to wait for the externally loading SWF to reach midframe before the main navigation buttons will work.
Here is the AtionScript on the main nav buttons.
on (release) {
if (_root.currMovie == undefined) {
_root.currMovie = "AboutUs";
container.loadMovie("AboutUs.swf");
} else if (_root.currMovie != "AboutUs") {
if (container._currentframe >= container.midframe) {
_root.currMovie = "AboutUs";
container.play();
}
}
}
Thanks in Advance.
View Replies !
View Related
Question On Tutorial "transition Using External Swfs.
Hello! I have my main timeline which has a .swf loaded on it, and this swf moves (image scrolls left to right). I want that swf to stay put, and then load, when user clicks on a button, other pages (of course, one at a time) on top of this one.
How is this done? Basically loading swfs on top of other swfs, and then having the current one replaced, all the while having one at the root level.
I hope this makes sense....here's what I'm working on:
http://fiveam.com/plumcrazy/plumhome.html
thanks,
Jed
View Replies !
View Related
[FMX04] Transition From Child Swf - Help
Hi there!
I've just successfully followed the tutorial on transitions http://www.kirupa.com/developer/mx2004/transitions.htm
As a bit of a junior at AS I am struggling to work out how to now use this code in one of the child swfs. ie if I wanted to use this code within a loaded child swf how can I modify the code? I have it all set up with a main swf and a few external swfs to load into this parent.
Is it just a case of changing the _root.currMovie to the parent movie?
on (release) {
if (_root.currMovie == undefined) {
_root.currMovie = "1";
container.loadMovie("1.swf");
} else if (_root.currMovie != "1") {
if (container._currentframe>= container.midframe) {
_root.currMovie = "1";
container.play();
}
}
}
Thanks for your help in adv.
Andy
View Replies !
View Related
Drop Down Menu PROBLEM-Down State For Sub-menu Item Linked To External SWFs?
Hi nice to meet everyone. The drop down menu I'm referring to is located in the main movie. The menu is a movie clip with the buttons inside and I have each button as 'track as menu item' in the properties. The buttons are linked to external swfs that load in the empty movie clip on the main movie stage. Everything loads perfectly no problem. I can't seem to figure out the right code to put on the sub-menu items/buttons in the drop down menu to show the 'down' state when the corresponding movie is loaded (i.e., about-main button, philosphy(menu item). When the 'philosphy' swf loads how do I get the 'philosphy' button that is in the main movie to show the 'down' state until another button is pressed on the menu? I hope I explained myself clear enough without confusing anyone!
Below is a sample of the code that I currently have on the the regular buttons that DO NOT sub-menu items:
on (release) {
gotoAndStop("home");
_root.contents.loadMovie("home.swf");
}
And here is the code that I currently have on the main buttons that have sub-menu items:
on (release) {
_root.contents.loadMovie("philosphy2.swf");
setProperty("_root.home", _visible, "0");
}
I have searched everywhere on the net, tutorials and still can't find the answer, I've been working on this for almost a week now and I just can't get it right.
Thanks again your help is greatly appreciated!
View Replies !
View Related
Drop Down Menu-Down State For Sub-menu Item Linked To External SWFs?
Hi nice to meet everyone. The drop down menu I'm referring to is located in the main movie. The menu is a movie clip with the buttons inside and I have each button as 'track as menu item' in the properties. The buttons are linked to external swfs that load in the empty movie clip on the main movie stage. Everything loads perfectly no problem. I can't seem to figure out the right code to put on the sub-menu items/buttons in the drop down menu to show the 'down' state when the corresponding movie is loaded (i.e., about-main button, philosphy(menu item). When the 'philosphy' swf loads how do I get the 'philosphy' button that is in the main movie to show the 'down' state until another button is pressed on the menu? I hope I explained myself clear enough without confusing anyone!
Below is a sample of the code that I currently have on the the regular buttons that DO NOT sub-menu items:
ActionScript Code:
on (release) {
gotoAndStop("home");
_root.contents.loadMovie("home.swf");
}
And here is the code that I currently have on the main buttons that have sub-menu items:
ActionScript Code:
on (release) {
_root.contents.loadMovie("philosphy2.swf");
setProperty("_root.home", _visible, "0");
}
I have searched everywhere on the net, tutorials and still can't find the answer, I've been working on this for almost a week now and I just can't get it right.
Thanks again your help is greatly appreciated!
View Replies !
View Related
Flash8/AS2: Code Needed For Buttons Inside Multiple Random External Swfs
Any help/suggestion greatly appreciated - and as detailed as possible. Took basic Flash classes, but no AS other than searching online, taking a couple Kirupa tutorials, so it's all greek tho recognizably so.
I have 10 individual "scenes" currently in one swf file, but would love to break these apart individually, and load each into a "container" swf with a "random" code (so each visit to my site starts differently) which I've located and tested with Kirupa's super "Loading random movies" tutorial. Question is: currently I have active buttons in each scene which advance playhead to the next scene. How can I code these to load another swf into the main "container" file and kill/replace the current swf? Another tutorial "Transitions between external swfs" suggests "if your buttons are not located on the main timeline, you will have to change the path to the container movieclip" - but doesn't show exactly how to do this, and I have to say I can't figure the "path" out!
Another issue I foresee is that I'll need the script to automatically pull in the next swf file when the current one finishes, if the visitor doesn't click the button first... Haven't been able to find this with a few hours searching, though some threads come close...
Peace be upon you,
View Replies !
View Related
XML Menu And External SWFs
I need some help.
Having used this excellent tutorial (http://www.kirupa.com/developer/acti...pdown_menu.htm)
to set up a menu I am now trying to set it up so that I can get external swf files to load into a holder when the buttons on the menu are clicked. I have looked at several of the other tutorials, including this one (http://www.kirupa.com/developer/mx2004/transitions2.htm) and the example here (http://www.kirupa.com/web/xml/examples/portfolio.htm), and have spent the last 5 hours pulling my hair out.
If anyone could look at my code and either tell me where I'm going wrong or where to find the right answers that would be greatly appreciated.
Thanks
Stef
View Replies !
View Related
[FMX04] Drag And Drop Help Needed
Hello everybody,
I'm trying to do some kind of test or quiz app that involves drag and drop with collision detection, I want to indicate valid candidate drop places during a drag and drop operation, for do that I change the opacity of the target rectangles.
The problem is that although the app detects all the collisions, just one of the drag rectangles makes the opacity of the drop rectangles change, the other drag rectangles don't.
My code is based in one of the excellent Kirupa tutorials (connected Lines), here it is:
stop();
drag_mc = ["drag0", "drag1", "drag2"];
drop_mc = ["drop0", "drop1", "drop2"];
function init() {
numDrags = drag_mc.length;
for(var i:Number=0; i<numDrags; i++) {
var rect1:MovieClip = drag_mc[i];
temp1 = eval(rect1);
temp1.ind = i;
temp1.onPress = function() {
this.startDrag();
};
temp1.onRelease = function() {
this.stopDrag();
};
temp1.onMouseMove = function() {
collision_detect(this);
};
} // fin del for principal
};
init();
function collision_detect(temp1) {
numDrops = drop_mc.length;
for(var j:Number=0; j<numDrops; j++) {
var rect2:MovieClip = drop_mc[j];
temp2 = eval(rect2);
if(temp1.hitTest(temp2)) {
temp2._alpha = 40;
trace("drag" +temp1.ind+ " collisions with drop"+j);
}
else {
temp2._alpha = 100;
}
}
updateAfterEvent();
}
Any help or ideas?, thanks
* I put my FLA if someone wants to check it
View Replies !
View Related
"Transition Between External SWFs" Tutorial Help
Hi.
I'm using this great tutorial for my portfolio. Now, the thing is that I have an animated Movie Clip in the midframe area of the external SWFs. A simple transition between pictures.
Now, when I'm loading another SWF on the menu the outro-frames starts playing but it always starts fading on the first picture.
I want this changed so that it will fade on the current frame at that moment. Am I being clear, or is it all fuzzy?
Is this done with some sorts of variable? Calling the current frame number from the MovieClip and then fading from there?
Any help is really appreciated since I don't know jack about AS.
This is the thing I'm working on: www.subfusc.se/temporary/temporary.html
If you first press on "Flesh" in the menu, and then press "Molkom Folkhögskola" you can see the transformation and what I need to change.
Thank you so much!
/Mattias
View Replies !
View Related
Possible "Transition To External SWFs" Problems?
Hey, can someone give me a list of potential problems that could occur with using Voets' transition tutorial? I'm not sure I want to post my FLA. (Private help would be great, shoot me a pm or IM)
I've implemented it successfully in one part of my FLA, but the second time I try to do it, the container won't load anything apart from the initial SWF. (Button problems? Dunno.)
I've tried comparing the two implementations, and I can't see any difference..
View Replies !
View Related
Loading External SWFs From Dynamic Menu
Hello all,
I am having trouble getting my external SWFs to load in a container MC by clicking on a dynamic navigation bar [see here for page]
I am not sure how to assign each button its own onRelease event and MC, nor can I figure out how to get those MCs to load within the movie. I would love for someone to take a look at my code and offer any suggestions.
Many thanks,
Mai
View Replies !
View Related
Help With [transitions With External Swfs]+[drop Down Menu]
on my current project i tried using drop down menus combined with transitions with external swfs. i got the drop down menu to show up and the entire dropdown menu to animate and all. my problem is when i click on the button where its supposed to load the external swf to the container... nothing happens.
help please. im currently working on my thesis presentation. any help on this will be greatly appreciated. thanks.
[project.zip]
View Replies !
View Related
Loading External Swfs With A Drop Down Menu
Ok i've follwed lees tutorial on external swfs with the preloader which is okay but i've made a dragable menu system... so the actionscripting on the main stage can't see the buttons (to go to each page) cus they've inside a movie clip... whats the best way to code to link it???
heres the file... It's really rough at the moment as this is more of an experiment....
File
cheers guys!!
View Replies !
View Related
[Flash8] Loading External SWFs In A Slideshow Format, With A Menu AND A Timer
Awesome, I love typing out a long, detailed question, then having the forum tell me I'm not logged in, erasing the whole message. Way to test my patience. Gaaahhh.
Anyway, we'll try this again: I've been searching for about 3 days for various solutions to this problem, but have yet to find something specific enough, so I guess it's time to post it.
I'm redesigning my travel blog and using a Flash header that loads a series of external SWFs in a slideshow format, to show some of the site's content features. See the progress on it here:
http://www.thevagabondproject.com/main
The site's still very much in-dev, but you'll see that the Flash header advances through 3 slides (just drafts, mind you) and stops. That's totally cool with me, as eventually it will have 5 slides, and will have to end on the last slide, which will be a Yahoo Maps API. What I'm trying to accomplish with this header is:
1. Load the series of external SWFs (slide1.swf, slide2.swf, slide3.swf, slide4.swf, map.swf), in order, advancing from one to the next every 5 seconds, and stopping on map.swf, like a slideshow.
2. Allow the user to skip ahead or go back to other frames by clicking on their number/label in the menu in the bottom right (1, 2, 3, 4 and MAP).
3. Show which slide is being viewed by changing the "on" or "rollover" state of the button in the menu (you'll see the buttons change to blue on rollover) as the slides advance.
4. Show the title of the slide shown in the dynamic text box ("Last seen in...") as the slides advance.
You'll see that I've accomplished #1, but at the expense of #2. Originally, loading the external SWFs using the buttons was easy, using this code:
Code:
slideoneBtn.onRelease = function() {
theLoader.loadClip("location/of/slide1.swf", dropZone);
function onLoadInit(mc:MovieClip) {
trace("content has been loaded into "+mc);
}
}
So on and so forth, for each button. (dropZone is the name of the movie clip that each SWF is loading into) No problem there, until I tried adding this code to advance to the next SWF after 5 seconds, until stopping at the end:
Code:
var mcl:MovieClipLoader = new MovieClipLoader();
var list:Object = new Object();
mcl.addListener(list);
var myMovies:Array = new Array("location/of/slide1.swf", "location/of/slide2.swf", "location/of/slide3.swf");
var cont:Number = 0;
function loadSwfs(){
mcl.loadClip(myMovies[cont], dropZone);
}
list.onLoadInit = function(){
clearInterval(interval);
if(cont < myMovies.length){
cont++;
interval = setInterval(loadSwfs, 5000);//defines the wait for next movie load
}
else{
trace("Load complete");
}
}
loadSwfs();
While that code works in itself, (thanks to the authoring of a kirupa forum answer) it also deactivates my buttons. Lame. Eventually I'll also want to add transition animation between the frames, etc, but for now the question is: how do I use AS2.0 to advance to the next slide every 5 seconds, while still allowing the user to skip around? If possible, I'd also like the timer to stop running if a user clicks a button.
I'm sure I'm just misunderstanding some fundamentals of ActionScript, being a novice, but any help would be greatly appreciated – please let me know if any of this needs more explanation. Thanks in advance for your time.
View Replies !
View Related
Transitions Between External SWFs - Looks Crap As The Size Of External SWFs Grow
http://www.kirupa.com/developer/mx2004/transitions.htm
regarding this tutorial I started my site (http://technoportsolutions.com/technoflash/) to get some trasition effects but im getting somewhat different since the external SWFs take time to load. isn't it better to create "intro and outro" on the same time line instead of loading external SWFs bcos once the movie loaded as a whole will lead to smooth and contineous transitions. If anyone ever did something better or how can I use some transition effects (like intro and outro) without using external SWFs ? is my current problem.
View Replies !
View Related
[FMX04] Gallery + Menu Loadimg From XML
I have combined the almighty popular xml gallery from kirupa tutorials with an XML menu from here as well (one of the many, don´t remember the thread, sorry).
Why? Well, the xml gallery load the first swf file (not using jpgs) and can browse it with the next/back button plues the arrow keys. Great.
The menu, loads from the same xml file, from the same nodes information, and it works as a "jump" menu, to go straight to certain swf. Perfect.
Separeted works great, BUT (yup, there was a question!) if I jump to a swf from the menu, when I press the arrow keys or use the button, it doesnt go to the next swf but to the next swf from where the gallery script was left.
I am out of ideas, and I atteched a sample, in case you didn´t understood what the heck am I saying.
Thank you for your attention and help.
View Replies !
View Related
Transitions Between External SWFs - Close Button For External Swfs
I recently created a site using the "Transitions between External SWFs" tutorial for Flash MX 2004. I use this to load the sections of my site into the main movie file. Each section is an External SWF file. When a viewer clicks on a navigation button, the specific external swf move will load and play. Currently, a viewer would need to click on another navigation option to close the current external swf file. I would like to add a close button to each of the external swfs so that a view has the option to close the window without clicking on a naviagtion link. Anyone have any suggestions? I am fairly new to actionscript and not quite sure how to accomplish this.
Thanks in advance for you help!
-RhynoDesign
View Replies !
View Related
[FMX04/AS2.0]Customizing FMX04 Components (label)
Hello, I'm trying to find a clear and concise book or online referece that can assist me in customizing the components that come with FMX04.
Namely the label component. I know how to change the "halo" theme in general to get the buttons and text boxes to change color, but beyond that I am at a lost.
I have tried Macromedia, searched here/Flash Kit/google, but nothing that I can learn from. Live Docs has a feedback part where someone posted some code and while I can cut and paste it, I'm not completely sure how it all worked.
And if I can't figure it out then its just not as fun.
Any help would be greatly appreciated. Focusing on the label component, but any and all are welcome!
Thanks.
View Replies !
View Related
[FMX04] Saving External Sound But Copying To CD
Hi there
I have designed a sound player that externally loads music files depending on where they are kept in a file
what i wanted to ask was that if i burned all my source and projector files on a CD should i edit the URL in the actionscript coding to say the D: drive (That being the CD-ROM Drive)
this is my url now: (on the hard drive)
soundUrls = new Array("C:/Music.mp3");
if i burned this flash file to a CD what would i have to place in the url to make sure it reads from the CD
i hope somebody can help.
View Replies !
View Related
[FMX04] Newbie Question: Loading External Vars
I have this bit of code in my flash document:
Code:
loadVariables("album.php", this, "GET");
this.pathToPics="images/projecten/";
var BlaBla = "IMG_0138.JPG";
loadMovie(this.pathToPics+BlaBla, _root.ImportImage);
What does this do?
_root.ImportImage is a graphic in my flash document.
It just loads an external image into the graphic..
var BlaBla is a temp variable to show what the problem is.
The code here above works, but i want to load ImageName from the php file.
My php file looks like this:
PHP Code:
<?php echo 'ImageName=IMG_0138.JPG &ImageInfo=Geen Omschrijving';?>
This is what it i tried (look at ImageName in php and here under..):
Code:
loadVariables("album.php", this, "GET");
this.pathToPics="images/projecten/";
loadMovie(this.pathToPics+ImageName, _root.ImportImage);
Without succes..
Could anyone help me?
View Replies !
View Related
Transition Between Swfs
Hi. I have a main html (where my buttons and frame are located) and several small swfs (e.g. contact.swf, links.swf ...)
I see a lotta times on other websites that anytime you click on a button, the content doesnt just disappear at once but has nice 'transition outro effects' whereafter the chosen swf is loaded and appears throught an intro transition effect....
How would I do something like that on my website ? Im sorry if this question has been asked a lot, but I have been searching for answers for quite a long time now, but all I can find is softwares for image transition.... but how do I get transition done on swfs ?
[An example of what I mean is found at: www.bugatti-cars.de or www.sarah-connor.de]
Thanks a lot for any help.
A_mistry
View Replies !
View Related
Transition Between Swfs
Using the tutorial found here on kirupa on loading external swfs and transition between them....
I am trying to do the transitons between loaded external swfs... using this code on a button in the main navigation swf..
on (release) {
if (_root.currMovie == undefined) {
_root.currMovie = "aboutus";
container.loadMovie("aboutus.swf");
} else if (_root.currMovie != "aboutus") {
if (container._currentframe>=container.midframe) {
_root.currMovie = "aboutus";
container.play();
}
}
}
I have successfully made it work, but only when this code is placed on a button on the main timeline- NOT nested inside an MC, withing another MC.. Why is that? How can i put this code on a button which is nested twice inside an MC clip?-- my container. MC (the empty MC which i am loading the swf into) is placed on the main timeline, the first frame.
can someone help me ammend my code, so that i am able to nest the code inside a mc inside another mc, yet still target the container MC on the main timeline root.
thanks
View Replies !
View Related
Transition Between Swfs
Using the tutorial found here on kirupa on loading external swfs and transition between them....
I am trying to do the transitons between loaded external swfs... using this code on a button in the main navigation swf..
on (release) {
if (_root.currMovie == undefined) {
_root.currMovie = "aboutus";
container.loadMovie("aboutus.swf");
} else if (_root.currMovie != "aboutus") {
if (container._currentframe>=container.midframe) {
_root.currMovie = "aboutus";
container.play();
}
}
}
I have successfully made it work, but only when this code is placed on a button on the main timeline- NOT nested inside an MC, withing another MC.. Why is that? How can i put this code on a button which is nested twice inside an MC clip?-- my container. MC (the empty MC which i am loading the swf into) is placed on the main timeline, the first frame.
can someone help me ammend my code, so that i am able to nest the code inside a mc inside another mc, yet still target the container MC on the main timeline root.
thanks
View Replies !
View Related
Transition Between Ext Swfs Issue
ok, so i did the kirupa tutorial on transitions between ext swfs. no problems, everything is perfect. when i try to do the same with buttons inside a clip [to animate the entire nav] i cant get it to work.
if i move the container inside the clip with the buttons. it loads the first section you pick and goes through the motions with the "outro". but then comes back with the same movie on each button, like the movie wont unload or something.
i did a test movie from inside the nav clip and everything works fine. from the main timeline it sticks. what?!
its all pretty straight to the tutorial, minus the buttons being inside the clip. ive looked all throughout the forum for answers, but its all answers for buttons on the mainstage. its got to be pretty simple, i think ive just been looking at it too long. anyone?
thanks in advance.
jminor
View Replies !
View Related
Run Transition Between Movieclips (swfs)
I currently have a simple setup, with a few menu buttons, which on MouseEvent.CLICK, loads an individual external .swf into a container.
When I click from one menu button to another, content is loaded really quick. So I want to apply some sort of transition effect between loading the .swf's, - could be some sort of mask effect or just some fading.
Lets say we're using a fade effect and lets say menu1 is loaded, and I click menu2. Then I want to apply my transition (fade out) to run (fading out menu1), and when the fade out is done, I want to fade in my new content (menu2).
How on earth would I go about that?
My code:
Code:
var loader:Loader=new Loader();
menu1.addEventListener(MouseEvent.CLICK, menu1Click);
function menu1Click(event:MouseEvent):void {
var request:URLRequest = new URLRequest("swf1.swf");
loader.load(request);
container.addChild(loader);
}
menu2.addEventListener(MouseEvent.CLICK, menu2Click);
function menu2Click(event:MouseEvent):void {
var request:URLRequest = new URLRequest("swf2.swf");
loader.load(request);
container.addChild(loader);
}
View Replies !
View Related
Transition Between Ext Swfs Issue
ok, so i did the kirupa tutorial on transitions between ext swfs. no problems, everything is perfect. when i try to do the same with buttons inside a clip [to animate the entire nav] i cant get it to work.
if i move the container inside the clip with the buttons. it loads the first section you pick and goes through the motions with the "outro". but then comes back with the same movie on each button, like the movie wont unload or something.
i did a test movie from inside the nav clip and everything works fine. from the main timeline it sticks. what?!
its all pretty straight to the tutorial, minus the buttons being inside the clip. ive looked all throughout the forum for answers, but its all answers for buttons on the mainstage. its got to be pretty simple, i think ive just been looking at it too long. anyone?
thanks in advance.
jminor
View Replies !
View Related
Smoother Transition Between Swfs?
For the life of me, I can't figure this out. I am making a layout that uses a main swf and then transitions between other swfs for the different sections. The transitions are fine, but between each there is a flash of white (the empty space of the main container) before it loads the next swf. At first I thought it was just the preloader layer because i had nothing for the background. After applying the corresponding background to each swf and trying it again, I still get the same result... just shorter. My question is this: How do I get the transitions to go either immediately after one another so there is no flicker, or how do I get the incoming transition to load in just before the other goes out? I'm an utter newbie at ActionScript if that helps in. Hell, I'm a newbie at Flash period.
Link to example: http://webpages.charter.net/reynoljg/new/portfolio.html
Link to fla files: http://webpages.charter.net/reynoljg/flas.zip
Thanks,
jason
View Replies !
View Related
Transition Effect Between Loaded Swfs
Hey All,
I know this sounds similar to other posts. But, this is alittle different. I have used transitions between swfs where the first swf plays the intro, when the user clicks a button the first swf plays the 'outro' and loads the second swf intro. This not what I am looking for. I want the swfs to cross fade. I was thinking of using different layers. I have found a tutorial that seems to work but the action is on a button that loads the next swf in the array. I want to be able to pick any swf and have it cross fade with the one loaded in the holder.
Any Ideas?
Attach Code
//tutorial by Rich Shupe, FMA. http://www.fmaonline.com
/*
array of possible content to pick from. This article answered a question about swapping loaded SWF files with a transition, but this technique will also work with jpgs, without having to make swf files from them.
*/
swfArray = new Array("red_bird.swf", "chinatown_dragon.swf", "working_beast.swf");
//create two MovieClips that will hold the loaded files
this.createEmptyMovieClip("target1", 1);
this.createEmptyMovieClip("target2", 2);
//load first movie into clip 1 to start with the first image
target1.loadMovie(swfArray[0]);
//set clip2 alpha to zero so it can fade in
target2._alpha = 0;
//variables that store current clip and current content index
activeTarget = target1;
currentIndex = 0;
/*
movie-level enterFrame event handler that will fade down object 1 (if it's alpha is higher than zero), and fade up object 2 (if it's alpha is less than 100)
*/
this.onEnterFrame = function() {
if (obj1._alpha>0) {
obj1._alpha -= 10;
}
if (obj2._alpha<100) {
obj2._alpha += 10;
}
//enable trace to watch memory used by each loaded movie. this will illustrate the
// benefits of unloading the faded movie.
//trace("clip1: " + clip1.getBytesTotal() + " clip2: " + clip2.getBytesTotal())
};
//button script that swaps load target focus and loads the next movie
nextButton.onRelease = function() {
//toggles values of object 1 and 2 between clip 1 and clip 2
if (activeTarget == target1) {
obj1 = target1;
obj2 = activeTarget=target2;
} else {
obj1 = target2;
obj2 = activeTarget=target1;
}
//assigns content of object 2 as next item in the content array, unless the
// end of the array has been reached. in this case start over at first item
if (currentIndex<swfArray.length-1) {
currentIndex++;
} else {
currentIndex = 0;
}
//load content into second clip
obj2.loadMovie(swfArray[currentIndex]);
//to reduce possible RAM and performance overhead, add an onEnterFrame
// event handler to object 1 to unload it once it has faded out.
//once the movie has unloaded, delete the onEnterFrame event handler
// to prevent future loads from unloading.
obj1.onEnterFrame = function() {
if (this._alpha<=0) {
this.unloadMovie();
delete this.onEnterFrame;
}
};
}
View Replies !
View Related
Use AS For Transition Animations Between Loading Swfs?
I'd like to learn how to get smooth transitions between my site pages and I've checked out the tutorial on this site: http://www.kirupa.com/developer/mx2004/transitions.htm
This tutorial has the basic effect I'm looking for but I'd like to know if anyone has a way of making this process even more modular. Specifically, is it possible to create a separate transition intro animation swf (or outro animation swf) that is loaded when the user clicks a button to load the next page. In the above tutorial, the transition animation is added to the beginning and ending of each swf.
If I'm taking the wrong approach here, please let me know. I just really want to get this down so my site pages aren't jolted in and out.
How do some of you create smooth transitions between loading swfs?
Any tips, tutorials, or general advice would be great!
View Replies !
View Related
Problem Loading .swfs After Transition
I've created a transition effect in my main timeline so when you click contact for example it uses the following actions -
on (release){
_root.gotoAndPlay ("transition");
}
however after the transition effect there is a keyframe that loads the corresponding file in this case the next frame says
loadMovie ("home.swf","_root.container");
stop();
When my movie starts the first file it loads is home.swf, however if I were to click the home button after the transition has played the home.swf file seems to skip the fade in effects in that movies timeline. I'm stuck.
Can anyone help?
View Replies !
View Related
Use AS For Transition Animations Between Loading Swfs?
I'd like to learn how to get smooth transitions between my site pages so I'm looking for some clarity/help.
The closest tutorial I've found is the one on Kirupa: http://www.kirupa.com/developer/mx2004/transitions.htm
This tutorial has the basic effect I'm looking for but I'd like to know if anyone has a way of making this process even more modular. Specifically, is it possible to create a separate transition intro animation swf (or outro animation swf) that is loaded when the user clicks a button to load the next page, but plays before the page swf is loaded. In the above tutorial, the transition animation is added to the beginning and ending of each swf.
If I'm taking the wrong approach here, please let me know. I just really want to get this down so my site pages aren't jolted in and out.
How do some of you create smooth transitions between loading swfs?
Any tips, tutorials, or advice on this would be great!
thanks!
View Replies !
View Related
Loading External Swfs Into Externally Loaded Swfs.
ive got some buttons on my main timeline that im using to load external swfs into an empty mc. the buttons are coded with the following:
on(release){
if(_root.currMovie == undefined){
_root.currMovie = "1";
emptyMC1.loadMovie("1.swf);
} else if (_root.currMovie != "1") {
if (emptyMC1._currentframe >=
emptyMC1.midframe) {
_root.currMovie = "1";
emptyMC1.play();
}
}
}
1.swf also has some buttons that load external swfs into a second empty mc. those buttons are coded with the following:
on(release){
if(this.currMovie == undefined){
this.currMovie = "2";
emptyMC2.loadMovie("2.swf");
} else if (this.currMovie != "2") {
if (emptyMC2._currentframe >=
emptyMC2.midframe) {
this.currMovie = "2";
emptyMC2.play();
}
}
}
1.swf loads into emptyMC1 ok, and 2.swf loads into emptyMC2 ok.
when i press any of the buttons on the main timeline, the outro animation of 1.swf plays correctly, but the outro animation of 2.swf does not. is there a way to the buttons so that the emptyMC's unload sequentially?
View Replies !
View Related
Creating A Smooth Transition For Loaded SWFs
Trying to make a smooth transition between loaded SWFs.
The script below tells the cover animation to play and asigns it what "next movie" to play...
nextMovie = "gallery.swf";
cover.gotoAndPlay("close");
Then in the cover MC animation has a stop frame and says...
stop();
loadMovie(_root.nextMovie, _root.holdermc);
But there is no transition between the old movie ad the new movie. I need a way to tell it, "old movie" play "out" transition while the new one comes in. Because it just removes the old one and loads a new one. I figured the first half of the movie could have the transition animation going forward. Then stop. And somehow tell it "old move" go out which is really play the next frame.
View Replies !
View Related
Smooth Transition Between Parent Projector And Child SWFs?
I've created a parent projector EXE file for a presentation that loads/plays external SWFs onto level 1. When it gets to the frame with the loadMovie command, there is a brief "skip" where the presentation breaks before it starts the child SWF. Will preloading this movie into a movieclip instead (with visibility 0) solve this problem? If so, what do you recommend is the best way to do this? With visibility set to 0, then to 1? Any other suggestions? Thank you for your time. Any help will be greatly appreciated.
View Replies !
View Related
|