Loading A SWF To Container From Within A Movie Clip Button.
Hey guys. I made a site that has buttons within are animated as a part of a movie clip. I am trying to change the AS to call for these external swfs into the "container" which is of course outside the movie clip button.
here is what the button would call for if outside the movie clip:
Quote:
on (release) {
if (_root.currMovie == undefined) {
_root.currMovie = "gallery";
container.loadMovie("gallery.swf");
} else if (_root.currMovie != "gallery") {
if (container._currentframe>= container.midframe) {
_root.currMovie = "gallery";
container.play();
}
}
}
the only AS that is in the button movie now is:
Quote:
on (rollOver) {
this.gotoAndPlay("over");
}
on (rollOut) {
this.gotoAndPlay("out");
}
any ideas? Thanks very much for your help and time!
ActionScript.org Forums > ActionScript Forums Group > ActionScript 2.0
Posted on: 02-17-2006, 01:58 PM
View Complete Forum Thread with Replies
Sponsored Links:
Loading A SWF To Container From Within A Movie Clip Button.
Hey guys. I made a site that has buttons within are animated as a part of a movie clip. I am trying to change the AS to call for these external swfs into the "container" which is of course outside the movie clip button.
here is what the button would call for if outside the movie clip:
Quote:
on (release) {
if (_root.currMovie == undefined) {
_root.currMovie = "gallery";
container.loadMovie("gallery.swf");
} else if (_root.currMovie != "gallery") {
if (container._currentframe>= container.midframe) {
_root.currMovie = "gallery";
container.play();
}
}
}
the only AS that is in the button movie now is:
Quote:
on (rollOver) {
this.gotoAndPlay("over");
}
on (rollOut) {
this.gotoAndPlay("out");
}
any ideas? Thanks very much for your help and time!
View Replies !
View Related
Loading A SWF To Container From Within A Movie Clip Button.
Hey guys. I made a site that has buttons within are animated as a part of a movie clip. I am trying to change the AS to call for these external swfs into the "container" which is of course outside the movie clip button.
here is what the button would call for if outside the movie clip:
on (release) {
if (_root.currMovie == undefined) {
_root.currMovie = "gallery";
container.loadMovie("gallery.swf");
} else if (_root.currMovie != "gallery") {
if (container._currentframe>= container.midframe) {
_root.currMovie = "gallery";
container.play();
}
}
}
the only AS that is in the button movie now is:
on (rollOver) {
this.gotoAndPlay("over");
}
on (rollOut) {
this.gotoAndPlay("out");
}
any ideas? Thanks very much for your help and time!
View Replies !
View Related
Loading A Swf File Into A Container Movie Clip
I'm trying to load a swf movie into an empty movie clip using the following code....
loadMovie ("contact.swf", "_root.level1.targetclip") ;
I have named the instance of the empty movie clip "targetclip" but doesnt seem to let me load the movie - when i do get it to load it loads top left and i need to be able to position the movie elsewhere on the stage...
Any help is appreciated.
Regards
Mac
View Replies !
View Related
Loading External Files Into A Container Movie Clip
I have some buttons that load an external flash file into the container movie clip with this code:
btn_about.onRelease = function() {
if (_root.currMovie == undefined) {
_root.currMovie = "about";
container.loadMovie("about.swf");
} else if (_root.currMovie != "about") {
if (container._currentframe >= container.midframe) {
_root.currMovie = "about";
container.play();
}
}
}
So it plays the tweening out animation of the file that's already loaded, then loads the new file, playing the tweening in animation. However, currently the container movie clip is empty when the flash movie is played. I want to be able to have some content already loaded in it, but when I use the
container.loadMovie("start.swf") code, it just keeps loading start.swf into it when any of the other buttons are clicked. Is there a way I can have content load when the flash movie is started, but when any of the buttons are clicked, for it to tween out, and basically, never reappear?
Thanks
View Replies !
View Related
Loading External Movie Clip With A Button Inside Another Movie Clip Help
Hi,
I am working on a scrolling thumbnail movie clip, that when you click on the thumbnail button inside the movie clip it will load an external movie clip. I have an empty movie clip on the main stage, and have been trying all sorts of code, but for some reason it doesn't like that I am inside a movie clip using buttons. It can't seem to find the external swf.
I have tried:
on (release) {
loadMovie (ithink.swf, "loader");
and
on (release) }
if (firstTime == true) {
loadMovie("ithink.swf", _root.loader);
firstTime = false;
} else {
_root.clicked = "ithink.swf";
_root.loader.gotoAndPlay("goback");
}
}
and so far nothing, for some reaosn when I click on a button outside of the movie clip with the above code it loads... and than the other works too, but if I click on the buttons inside the scolling movie clip first they won't work.
Any suggests or ideas!!?
I would really appreciate it... I am beyond frusterated!!
View Replies !
View Related
[F8] Nav Menu Not Loading Movies Into Container Clip Help Please
I'm way low on sleep and feeling delirious.... I would really appreciate some help on this one.
I have a menu nav swf loading into a master swf. Once loaded, the menu buttons aren't loading my movies into the container clip I have placed on the master swf.
This is working fine in the fla when using test movie but not from the server.
here's the code:
newRelease.onRollOver = function(){
movieNav.mc_newrelease.gotoAndPlay("over");
}
newRelease.onRollOut = function(){
movieNav.mc_newrelease.gotoAndPlay("out");
}
newRelease.onRelease = function () {
loadMovie("trainman.swf", "_root.topHolder");
unloadMovie("_root.mainHolder");
unloadMovie("_root.movieNavHolder");
}
comingSoon.onRollOver = function() {
movieNav.mc_comingsoon.gotoAndPlay("over");
}
comingSoon.onRollOut = function() {
movieNav.mc_comingsoon.gotoAndPlay("out");
}
comingSoon.onRelease = function () {
loadMovie("linda.swf", "topHolder");
unloadMovie("mainHolder");
unloadMovie("movieNavHolder");
}
catalog.onRollOver = function() {
movieNav.mc_catalog.gotoAndPlay("over");
}
catalog.onRollOut = function() {
movieNav.mc_catalog.gotoAndPlay("out");
}
catalog.onRelease = function () {
loadMovie("kamikaze.swf", "topHolder");
unloadMovie("mainHolder");
unloadMovie("movieNavHolder");
Any ideas are greatly appreciated!
View Replies !
View Related
Movie Clip Container Problem
Hello! Hope you can help me with this:
I have a dynamic scrolling menu which consist of buttons that loads images into a container movie clip. The container clip is placed outside in another layer from the scrolling menu. I did this because if I put the container MC inside the scrolling menu...it will still load the image into that container but when I drag the scrolling handle of the menu the loaded picture will also scroll together with the buttons. The question is...how am I gonna load the images into the container MC outside the scrolling menu?
Here is the command from the button inside the scrolling meu:
-------------------------------------------------------------
on (press) {
this.container.loadImage("img/men1.jpg");
// or .swf
}
and here is the actionscript in the movie clip containeroutside the menu)
-----------------------------------------------------------
onClipEvent (load) {
// this is a prototype, which means that it gives all
// clips in the entire movie the ability to fade
// you just feed it the alpha value you want it to fade to,
// and the name of the function (callback) you want it to call when
// it's finished (more on that below)
MovieClip.prototype.fade = function(alpha, callback) {
this.onEnterFrame = function() {
// the next line causes the alpha to "ease" toward the given alpha value
this._alpha += (alpha-this._alpha)/2;
// the next line checks the difference between the target alpha and
// real _alpha if they're close enough (<1), it cancels the action
// and calls the callback function. it uses Math.abs, because we want the
// "magnitude" of the difference, not the actual value of it (which could be)
// negative
if (Math.abs(alpha-this._alpha)<1) {
delete this.onEnterFrame;
// cancels the action
this._parent[callback]();
// call the callback. (it's on the parent clip)
}
};
};
this.loadImage = function(fileName) {
trace("loadImage: "+fileName);
// the next line checks to see if loading is true, and
// cancels the load if it is (because it means that
// a previous load is still in progress)
if (this.loading) {
return;
}
// make the fileName local to this clip clip, because we need to remember it
this.fileName = fileName;
// set the loading var to true, so the load wont be interrupted.
this.loading = true;
// the next line checks to see if a container clip exists. if it does
// not, it goes to the next step. if there is a container, it is told
// to fade out, and told which function to call when it's done.
if (this.container != undefined) {
this.container.fade(0, "loadStep2");
} else {
this.loadStep2();
}
};
// step2 creates a new container clip, replacing the old one (if
// there was one). this resets the width and all other properties
// of the container
this.loadStep2 = function() {
trace("step2");
this.createEmptyMovieClip("container", 0);
this.container._alpha = 0;
// set the new container's alpha, so we can fade it in again
this.container.loadMovie(this.fileName);
// load the clip into the container
this.loadStep3();
};
// step3 repeatedly checks the width of the container (it'll be > 0 when it's
// fully loaded). if you hev preloader code, it goes inside the onEnterFrame
// function here.
this.loadStep3 = function() {
trace("step3");
this.onEnterFrame = function() {
trace(this.container.getBytesLoaded());
// you can put preloader stuff here
if (this.container._width>0) {
delete this.onEnterFrame;
this.loadStep4();
}
};
};
// step4 fades the container clip in, and tells
// the fade function which function to call when it's done.
this.loadStep4 = function() {
trace("step4");
this.container.fade(100, "loadStep5");
};
// step5 sets the loading check variable to false, so the user can load
// a new image
this.loadStep5 = function() {
trace("step5");
this.loading = false;
};
}
Please help...
View Replies !
View Related
Adding Container Behind Other Movie Clip
i have a movieclip already on the stage which works as my menu so when you rollover it pops out and rollout it moves away, when you click one of the buttons it loads a new container and puts a swf in it but then the menu pops out behind the loaded in swf.
is there a method so that either the movieclip stay on top or the container goes behind?
thanks
Dan
View Replies !
View Related
Unloading Movie Clip From Container
Hi, I've created a main page with my main links on top, and a container as my body.
I load my pages with this action to the container. NO PROBLEM.
on (release) {
if (_root.currMovie == undefined) {
_root.currMovie = "production";
container.loadMovie("production.swf");
} else if (_root.currMovie != "production") {
if (container._currentframe >= container.midframe) {
_root.currMovie = "production";
container.play();
}
}
}
Inside the production.swf files I've created a gallery with a MovieClip that loads from my library to a container1 inside the production.swf. In the galleryMC(from library), Ive created a close button to unload it from the container1. It works fine from my production.swf file, but when it loads to the main page it doesn't unload. This is the ActionScript that I have to unload the Movie Clip.
on (release) {
this._root.container1.unloadMovie();
}
can some tell me how can I fix this problem please.
Best Regards
View Replies !
View Related
Movie Clip Container Problem
Hello! Hope you can help me with this:
I have a dynamic scrolling menu which consist of buttons that loads images into a container movie clip. The container clip is placed outside in another layer from the scrolling menu. I did this because if I put the container MC inside the scrolling menu...it will still load the image into that container but when I drag the scrolling handle of the menu the loaded picture will also scroll together with the buttons. The question is...how am I gonna load the images into the container MC outside the scrolling menu?
Here is the command from the button inside the scrolling menu:
ActionScript Code:
on (press) {
this.container.loadImage("img/men1.jpg");
}
and here is the actionscript in the movie clip container outside the menu:
ActionScript Code:
onClipEvent (load) {
MovieClip.prototype.fade = function(alpha, callback) {
this.onEnterFrame = function() {
this._alpha += (alpha-this._alpha)/2;
if (Math.abs(alpha-this._alpha)<1) {
delete this.onEnterFrame;
this._parent[callback]();
}
};
};
this.loadImage = function(fileName) {
trace("loadImage: "+fileName);
if (this.loading) {
return;
}
this.fileName = fileName;
this.loading = true;
if (this.container != undefined) {
this.container.fade(0, "loadStep2");
} else {
this.loadStep2();
}
};
this.loadStep2 = function() {
trace("step2");
this.createEmptyMovieClip("container", 0);
this.container._alpha = 0;
this.container.loadMovie(this.fileName);
// load the clip into the container
this.loadStep3();
};
this.loadStep3 = function() {
trace("step3");
this.onEnterFrame = function() {
trace(this.container.getBytesLoaded());
if (this.container._width>0) {
delete this.onEnterFrame;
this.loadStep4();
}
};
};
this.loadStep4 = function() {
trace("step4");
this.container.fade(100, "loadStep5");
};
this.loadStep5 = function() {
trace("step5");
this.loading = false;
};
}
Please help....
View Replies !
View Related
Stop Movie /container Clip Issue
Hello Again,
I would love if wehn I press the play/pause button I have in my movie to stop playing.
I have 19 swf files (the stop button is each one) that have been loaded into a container clip.
this is the code I have:
on (release) {
_root.stop();
_root.container_mc.stop();
if (musicplay == true) {
p = Math.round(x.position/1000);
x.stop();
musicplay = false;
} else {
x.start(p, 0);
musicplay = true;
_root.container_mc.play();
}
}
it's not working.
any help is appreciated.
View Replies !
View Related
Load Movie Clip Into Empty Container
This is a total noob question - I searched for it, I'm sure the answer is already up here, but there's so much info and the terms I'm looking for are kinda vague.
I've got about 27 little movie clips that are just 1 frame text boxes, and the main stage is full of corresponding MCs. I want one of the text clips to load into a container at the top whenever a particular button is moused over. I know how to do it with an external swf! Just not an internal one. Can anyone reading toss me a bone?
The stage buttons are numbered 1-27, and the clips that are to load up in the top are similarly 1txt, 2txt etc. Thanks in advance, K-Landers!
View Replies !
View Related
Path To External Container Movie Clip
Howdy
i've been doing the kirupa tutorial -
Transitions Between External SWFs.
I got everthing working fine but then had to do my buttons on an external SWF which loads on top of the main movie.
Now i cant get the buttons to load in the other extrenal SWFs
The tutorial says -
If your buttons are not located on the main timeline, you will have to change the path to the container movieclip.
i can't figure how to do this, of cousre its easy to just "loadmovie" but then i loose all the transitions.
The SWF with the buttons is called "dropdown"
The main SWF i' want to load clips into is called "index"
The SWF i want to load is calles "services"
Below is the actionscript im using on the button.
How do i change the path to link to the container clip?
Can u guys help me?
Thanks in advance
Michael
on (release) {
if (_root.currMovie == undefined) {
_root.currMovie = "services";
container.loadMovie("services.swf");
} else if (_root.currMovie != "services") {
if (container._currentframe>=container.midframe) {
_root.currMovie = "services";
container.play();
}
}
}
View Replies !
View Related
Unloading Movie Clip From Root Container
Hi, I've created a main page with my main links on top, and a container as my body.
I load my pages with this action to the container. NO PROBLEM.
on (release) {
if (_root.currMovie == undefined) {
_root.currMovie = "production";
container.loadMovie("production.swf");
} else if (_root.currMovie != "production") {
if (container._currentframe >= container.midframe) {
_root.currMovie = "production";
container.play();
}
}
}
Inside the production.swf files I've created a gallery with a MovieClip that loads from my library to a container1 inside the production.swf. In the galleryMC(from library), Ive created a close button to unload it from the container1. It works fine from my production.swf file, but when it loads to the main page it doesn't unload. This is the ActionScript that I have to unload the Movie Clip.
on (release) {
this._root.container1.unloadMovie();
}
can some tell me how can I fix this problem please.
Best Regards
View Replies !
View Related
Loading Movie Clip With Button
I am trying to create a slide show that will load different picture in to flash by clicking a button. I am assuming that it would be the load moviecilp action and if so is there a tutorial to on how I can accomplich this.
Thanks in advance.
View Replies !
View Related
Button Loading Movie Clip
Hello
I created an flash file. In it it has 4 buttons. I want those 4 buttons load a movie clip (each). Let me expand
Button 1
Button 2
Button 3
Button 4
When you click on button 1 right beside it a movie clip opens up... Basically button one will be for pictures so when you click on button 1 (pictures) to the right around 10 thumbnails will appear. I am assuming that the 10 thumbnails will be part of the movie clip..
So, how do I script the movie so that on release, it loads the movie clip??
Thanks
PS-All this should happen within the same swf.
View Replies !
View Related
Loading A Movie Clip With A Button
Hi There
I have a button on the main stage. and i want to be able to have the button select and load a movie clip on top of the main stage. and have a button, in the movie clip to unload the moive clip and go back to the main stage.
on the main stage with the button i have i have the following code:
(action for the button it self)
PHP Code:
on (release) {
gotoAndPlay("mc1");
}
the button on mc1
(action for the button it self)
PHP Code:
on (release) {
_root.gotoAndPlay(1);
}
can some on help me!!
View Replies !
View Related
Loading Movie Clip In Button
I am coming back to flash after two years of not working in it!
I built a button and loaded a simple movie clip into the down frame. I've tried to set it so the movie clip will play on release, but it is not working well.
The animation only takes effect when holding the button down.
How can I get the button to play the animation on release?
View Replies !
View Related
Loading A Movie Clip From A Button
Hello everyone,
I am a new flash user and I am trying to load a small Movie clip from a button on the stage. The MC is in its own layer and spands for about 30 frames. The Button is on the main stage and I put on the action script for that button the following code to get the MCto start on realese
on (release) {
gotoAndStop(50);
tellTarget ("websamples") {
gotoAndPlay(1);
}
}
but when I publish the movie and test the button, the MC never plays.
Can anyone help.
Thanks for any help of tip to get me in the right track
View Replies !
View Related
Loading A Movie Clip With A Button
flash8
I have a movie clip on my main timeline that plays (and eventually stops) when the site starts. I need to call it again in the same location through a button that is in a different movie clip. I know to use on(release) and I tried using tellTarget but I either had the syntax wrong or was using it incorrectly. How can I get that same movie clip to restart in the same location on the main timeline?
Thanks
View Replies !
View Related
Problem Scrolling An .swf Movie Clip In An Empty Container
To whom may read this,
I am using this flash scroller with de-acceleration tutorial from Flashkit. I emailed the guy but no longer exists at the provided email address.
The tutorial and downloadable files can be found here:
http://www.flashkit.com/movies/Scrip...3848/index.php
Love it, and it works great. But now what I am trying to do is this…
I have it in my main flash file called Main.swf. I have an empty container with the instance name of Container on the timeline in a movie clip called MainMenu. I exported the scroller movie clip called MainMC which has all of the buttons, code, etc…
I have a layer below the container layer called ActionScript. Which has the following action script code that reads:
{
loadMovie("MainMC.swf","Container");
}
It loads the movie, but it won’t scroll now. The scroll button moves but not the text.
I obviously modified the MainScript movie clip, but it works perfectly. I just changed case sensitive and naming for my brain what to call things for
organizational purposes.
But this is what it reads:
Y = getProperty('/MainMC/DragButtonMC/ButtonMC',_y);
newY = oldY + (Y - oldY)/8;
setproperty('/MainMC/ScrolledMCrecipientMain/ScrolledMCmain',_y,newY);
oldY = newY;
play();
Soooo…. The problem I am trying to figure out I think lays here. But I am not for sure. Since I exported the MainMC movie clip with the scrolling I think I have to figure out how to tell the scroller to go out, and then back into the file path to get the proper commands in order to scroll. Do I need to change the file path of the Action Script in the MainScript movie clip? Does it have to do with x,y axis of an externally loaded movie clip? I wouldn't think that would make a difference as I did make a version of the MC that you could grab and move around with in the main scene and it would still scroll.
When I load the movie into my empty container it won’t scroll, which I think is related to the MC not finding the file path to get the Action Script.
Any thoughts would be helpful!
Thanks for taking the time to look at this!
View Replies !
View Related
How To Speed Up Movie Clip From Inside Container File?
I created a Flash file (which I'll call "movie 1") in which a movie clip was inserted. When I play the whole file, the movie clip runs too slowly for my taste, but I noticed that if I go to the original movie clip file (which I'll call "movie 2") to slow it down and save it, getting back to Movie 1 and updating the clip is impossible due to some motion tween that's misbehaving (no clue about how to solution that).
Is it possible to speed up the movie clip from inside Movie 1? Some kind of scripting or simple tool? I'm quite a newbie to Flash and perhaps there's an easy solution to it. Otherwise I will fix Movie 2, export it and reimport it inside Movie 1 until I am satisfied with the result.
TIA
Regards,
Mosh
View Replies !
View Related
Movie Not Loading In Container
Hello everyone,
Okay - Here it goes, I've attached a 2 seperate .fla files. One as the main container and the other as the movie that is to be loaded. I've used this method serveral times but without this particular scroll bar. I want the TEST BUTTON from the scroll bar content to load movie content. Can anyone help me out? Thanks in advance
View Replies !
View Related
Loading Movie Into Container
Hello!
I am loading a movie into a container.
But instead of moving the swf to a certain position (see script), I would like to tell the container to go to frame "15" of the "pra_westhafen-tower.swf"
_root.currMovie = "pra_westhafen-tower";
container.loadMovie(_root.currMovie+".swf");
stop();
container._x = 0;
posx = -2840;
stop();
onEnterFrame = function() {
diffx = posx-container._x;
container._x += diffx/4;
}
I can´t get it work. Can someone help me please!
Thank you, Harald
View Replies !
View Related
Loading Swf Into Movie Clip; Button Controlled
Ouch, I'm hurting on this simple topic - though I've learned a lot durig the search phase (newbie);
I put this code in frame 1 of the my "action" layer:
this.createEmptyMovieClip("serOver_mc", 1);
var mclListener:Object = new Object();
mclListener.onLoadInit = function(target_mc:MovieClip) {
trace("movie loaded");
}
var image_mcl:MovieClipLoader = new MovieClipLoader();
image_mcl.addListener(mclListener);
image_mcl.loadClip("rtmMovie.swf", serOver_mc);
"serOver_mc" is a movieClip instance placed on the timeline 10 seconds or so down the road. My hope was to control the .swf play by a button. Instead, it launches as soon as the main timeline begins.
Also, I was hoping to play the .swf at (x = 560, y = 2.5) which is where the serOver_mc was placed. I was only able to make this .swf location happen by publishing my .swf in a document that matches the flash file I'm trying to play the .swf in (at x = 560, y = 2.5). (Did I say that clearly? In other words, when the 0,0 coordinates line up my swf video is at 560,2.5). But this kind of proves to me I don't really have it in the serOver_mc and might also explain why I'm not able to control its playback.
I'm thinking this is pretty simple., but I am lost. (Does that make me a loser?)
Rick
Attach Code
this.createEmptyMovieClip("serOver_mc", 1);
var mclListener:Object = new Object();
mclListener.onLoadInit = function(target_mc:MovieClip) {
trace("movie loaded");
}
var image_mcl:MovieClipLoader = new MovieClipLoader();
image_mcl.addListener(mclListener);
image_mcl.loadClip("rtmMovie.swf", serOver_mc);
View Replies !
View Related
Help With Movie Clip Button Loading External SWF
I Have made a movie clip button, But i am try'n to get it to load a external SWF into a MC. Now my AS is, (txt highlight in red is the area i am having a problem with!) It mean alot if some one could help me out!
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 = "temp3_pageone";
container.loadMovie("temp3_pageone.swf");
} else if (_root.currMovie != "temp3_pageone") {
if (container._currentframe >= container.midframe) {
_root.currMovie = "temp3_pageone";
container.play();
}
}
}
View Replies !
View Related
Loading External Swf If Button Is In Movie Clip - Help
PLEASE HELP.
I've been doing tutorials on how to load external swf's using an empty movie clip on the main stage that is triggered by buttons. Those buttons always seem to be on the main stage.... but what your buttons are located inside another movie clip which is then placed on the main stage....?
I am trying to create a menu which moves on rollover and loads an external swf on click, and i seem to have gotten the menu part animated (i have six buttons which are made into an animated movie clip which is then placed on the stage). but i am wondering how to load external movies on the main stage from those buttons. i am using the "load movie" script and it works when i create a static button on the main timeline, but as soon as i use the same code on the same button which is inside the animated movieclip, it doesn;t work. er, am i making any sense? please help!
thanks!
best, lisa
View Replies !
View Related
Loading A Movie Into A Container And Then Controlling It With AS
The main movie is a lesson, which has a flying character explaining things. Up until now, the character was embedded in each lesson SWF, but now I want to move him outside the lesson file, and load with the loadMovie(); action. I erased all the things from the symbol where the creature was, and I left the tweens in the main timeline. Now when I load it into its old container it works beautifully... but only in Flash player 6. When I try to play it with Flash Player 5 it won't show the creature.
So if that was a little vague, I'll summarize it.
- two SWF files - lesson.swf and fly.swf
- lesson.swf loads fly.swf into a container MC called 'fly'
- the container MC 'fly' is tweened in the main timeline of lesson.swf
- I'm using action script to address sub-MCs in fly.swf for more interactivity
- won't work with flash player 5
so is there any way to make it work with player 5? thanks.
View Replies !
View Related
Loading External Swf Into Movie Clip On Button Press
Im just making the switch to AS3 and i'm having some major problems loading in external swfs. In AS2 it was easy but from what i've found i'm just not understanding how it works in AS3. I have a movie clip that has my navigation in it that would call the external swfs for each section of the site, it also contains the backgound design for the site. I have my main movie set up for full browser for positioning. and i want to be able to position where my external swfs are loaded as well.
Any help would be much appreciated, i've been looking and trying to figure this out for a few days now.
thanks
Jake
View Replies !
View Related
Loading A Movie Clip Using Submit Button On Stage
I have a form that loads a movie clip but I want it to play next to the form instead of going to a new page. How do I do that?
This is what I have on my submit button so far:
Code:
on(click){
var fileString:String = _root.combo1.selectedItem.data + _root.combo2.selectedItem.data + ".swf";
_root.loadMovie(fileString);
}
Thanks in advance.
View Replies !
View Related
Alert Component Not Available When Loading Movie Into Container
Hi
I have created an enquiry form that uses the combobox and alert components in mx 2004, when I run this movie by itself it all works fine but when I loaded it externally into a container movie the combobox and alert no longer work. I know it can be solved by adding the alert and combobox to the parent movie but this seems like a major flaw.
I was wondering if anyone had a different solution to this that didn't require adding the components to the container movie.
Thanks in advance
Dan
View Replies !
View Related
Loading Movie Via Level Within A Container Problem
I am using:
mainMovie -> loads 1st child using container -> which loads 2nd child using level....
When the 1st child loads its own child movie via level, works. Put the 1st child into mainMovie and the 2nd child doesn't load.
Here's the code for mainMovie:
Code:
Stage.align = "TL";
//
_progress = 0;
_numTicks = 14;
_endProgress = .95;
_fadeOutRate = 10;
// init
loader.percent.autoSize = "right";
for (var i = 0; i<_numTicks; i++) {
loader[i].gotoAndStop("idle");
}
//
function _checkLoadStart() {
if (_url != container._url) {
container._visible = false;
container.stop();
onEnterFrame = _updateProgress;
}
}
function _updateProgress() {
//_progress = container.getBytesLoaded()/container.getBytesTotal()/_endProgress;
//_progress = container.getBytesLoaded()/1000000/_endProgress;
_progress = container.getBytesLoaded()/(container.getBytesTotal()*0.3)/_endProgress;
//_progress = Math.min(1, _progress+.01);
if (_progress>1) {
loader[_numTicks-1].gotoAndStop("done");
onEnterFrame = _fadeOut;
}
var currentTick = Math.round(_progress*_numTicks);
for (var i = 0; i<_numTicks; i++) {
if (currentTick<i) {
this.loader[i].gotoAndStop("idle");
} else if (i == currentTick) {
this.loader[i].play();
} else {
this.loader[i].gotoAndStop("done");
}
}
loader.percent.text = Math.min(100, Math.round(_progress*100))+"% / 100%";
}
function _fadeOut() {
loader._alpha -= _fadeOutRate;
if (loader._alpha<=0) {
container._visible = true;
container.play();
delete onEnterFrame;
}
}
function onLoadStart() {
trace(1);
}
createEmptyMovieClip("container", 0);
if (path != undefined) {
container.loadMovie(path);
onEnterFrame = _checkLoadStart;
}
I can't change anything for mainMovie because it's being used as a container that loads all other files being used for the website. It's just the way the strucutre of the CMS is set up.
View Replies !
View Related
Loading Movie In Container With Dynamic Text
HEEELP
well thanks to kirupa and the rest of you guys' tutorials i was able to begin work on my very first flash site. so a thanks is in order there. However i have one tiny problem, well 2
First, when i set dynamic text and click on the 'view as html' button, my text shows up with the tags in the player. none of my hyperlinks actually show as hyperlinks, how do i fix this?
Secondly when i click on my buttons to load another swf within the parent, it shows up but the dynamic text doesn't. this is the same text from above which can be viewed when i test that movie, but when i introduce it to the master and test that, the text doesn't show... am i confusing the player? should i be adding the get text actionscript in the master and not the loaded movie? please help!
View Replies !
View Related
Loading External Movie Into Empty Container.
Strange. I have 5 pages (external movies) which are called individually into an empty container on the main timeline (with navigation). I'm trying to add a 6th page (external movie)... using the same process found here (http://www.kirupa.com/developer/mx2004/transitions.htm) which works perfect for the first 5 movies... the 6th movie is only different than the others by content of a photo gallery found here (http://www.kirupa.com/developer/mx/photogallery.htm)....
When the 6th movie loads... it does not follow the trasitions process as mentioned above... no it places itself at the top left corner and the gallery does not function... ??? What in the world?
Thanks in advance for your time...
Fudgealtoid
View Replies !
View Related
Loading External Movie Into Empty Container.
Strange. I have 5 pages (external movies) which are called individually into an empty container on the main timeline (with navigation). I'm trying to add a 6th page (external movie)... using the same process found here (http://www.kirupa.com/developer/mx2004/transitions.htm) which works perfect for the first 5 movies... the 6th movie is only different than the others by content of a photo gallery found here (http://www.kirupa.com/developer/mx/photogallery.htm)....
When the 6th movie loads... it does not follow the trasitions process as mentioned above... no it places itself at the top left corner and the gallery does not function... ??? What in the world?
Thanks in advance for your time...
Fudgealtoid
View Replies !
View Related
Question About Loading A Movie Into A _root Container
This would be a syntax question I assume.
I have a main webpage an I assume that is the _root of everything.
In that root i have an empty holder that when you click buttons on the main page, it plays in that holder.
The movie that plays in there is just another set of buttons that you can click to dump whats in the holder, and play a 3rd clip. Heres the problem. In the 2nd movie how do I dump the holder and load the 3rd movie into the holder thats located in root?
Every way I write it the movie takes up the whole screen in place of the root page.
Below is how I wrote it but I know its wrong.
Code:
s1_mc.onRelease = function() {
this._parent.unloadMovie(holder);
this._root.loadMovie("Ultima_Carousel2.swf",holder);
}
Any insight would be appriciated.
View Replies !
View Related
Help: Targeting Container With Movie Button
I'm creating a site with buttons (movie buttons) targeting a container clip on the root which targets transitions in external swfs. I'm having trouble with my code in targeting the container.
I know how to do It with a normal button but not with a button inside of a movie clip.....I'm pulling my freakin hair out. I attached a simplified version if you have some time. Thanks in advance.
I really hope I can use movie buttons for this because they just look better.
-----joe
View Replies !
View Related
Button Action To Go Back To Main Timeline Movie Container
i made a movie clip "container" on my main nav which pulls every other page into it. i have a progressive preloader on the portfolio section and if you click to go to another page while it is loading, it spazzes out. so for the portfolio section i took the buttons off the main nav and put them in the portfolio section. I can't just put a script to load the new movie because the buttons have brackets that move and close the word of the page you are on.
I need a script that says on release to go to and play a label on the main nav with the movie container.
to pull the movies into the main nav i made a movie clip container and put script on the buttons to gotoandplay a movie which loads the new swf after is plays using this action:
_root.loader.loadMovie("port_remodel.swf");
i thought i could just use:
on(release){
_root.loader.gotoAndPlay("homel.swf");
}
in the portfolio section but it doesnt work.
please help if this makes sense!
View Replies !
View Related
Loading A Container Inside A Container...
I just did the "Transitions Between Swf's Tutorial", i basically understood how it works and got everything to work right, but now my next question is how can i load another container using the same technique as the tutorial shows into the exsiting container. Basically load a container inside a container.
I tried doing it by using the same idea as the tutorial but the swf that i am trying to load in the new container wont load.
I would really appreciate some help.
Thank you!
View Replies !
View Related
Loading A Container Inside A Container...
I just did the "Transitions Between Swf's Tutorial", i basically understood how it works and got everything to work right, but now my next question is how can i load another container using the same technique as the tutorial shows into the exsiting container. Basically load a container inside a container.
I tried doing it by using the same idea as the tutorial but the swf that i am trying to load in the new container wont load.
I would really appreciate some help.
Thank you!
View Replies !
View Related
Movie Clip Button Inside Movie Clip Button Is Driving Me Nuts
hellllllo everyone, this thing has been bothering me for weeks, i've been hiding from it for days but it always seems to come back and bug me..
this is the problem..
on my main timeline i have a movie clip button that plays over/out state within this clip and on the over state it also opens 8 other movie clip in this movieclip that i am hoping to make them clipable, i only made an over state for the first movieclip out of the eight, but it just wont do the rollover effect..
i think there is a better way to do this..if i need to start over..let me know..thanks!!!
i will attach the file please help me out! i am tired of hiding!
thank you again!!!!!
View Replies !
View Related
|