IDE :: Keep Buttons From Loading External Movies?
Nov 5, 2009
I got this tutorial about external movie loading. It works but it seems that their is a little problem with it. How do you keep the button from loading an external movie once it's loaded already?
[URL]
Let's BUTTON-1 loaded MOVIE-1, now when you click on BUTTON-1 again it will load the movie even if it's loaded. How do you do it like only when another button is clicked will it load the movie for that button.
View 2 Replies
Similar Posts:
Nov 30, 2010
I've got about 50 buttons onstage with names like btn1a_mc, btn2B_mc, etc. Each one loads an external swf (called "Monosem1Aslideshow.swf", where the "1A" corresponds to the button name.) into a movieclip holder called slideHolder_mc. I'm trying to use an array instead of writing code for each button. I'm using the following:
Code:
buttonNumber = ["1A", "2B", "3C", "4D", "1E", "2F", "3G"];
for(i=0; i<buttonNumber.length; i++){
var btnName:String = "btn"+[i]+"_mc";
[Code].....
But I can't seem to get it to work.
View 7 Replies
Nov 30, 2010
I've got about 50 buttons onstage with names like btn1a_mc, btn2B_mc, etc. Each one loads an external swf (called "Monosem1Aslideshow.swf", where the "1A" corresponds to the button name.) into a movieclip holder called slideHolder_mc. I'm trying to use an array instead of writing code for each button. I'm using the following:
Code:
buttonNumber = ["1A", "2B", "3C", "4D", "1E", "2F", "3G"];
for(i=0; i<buttonNumber.length; i++){
var btnName:String = "btn"+[i]+"_mc";
[Code].....
But I can't seem to get it to work. I'm a little shaky on array syntax and can't find a tutorial that addresses my particular problem.
View 12 Replies
Oct 31, 2009
I have always the argument with my colleagues which authoring strategy to use. I always attached to the idea of authoring several swf files, and have them all loaded to the main swf when needed. And than attach Preloader to each swf that I load.
Others think that it should be only one swf with one preloader. And have all the navigation to use scenes or goto actions.
So the advantage of using my strategy is that users will not wait too long for one movie when its being loaded. And its more convenient to work on several fla with each have its own layers, symbols, etc
View 6 Replies
Oct 14, 2002
I have a movie which is made up:
Level0= my interface layout with buttons
Level1= the different sections of the site, are loaded into this level (eg. home.swf, aboutus.swf etc.)
Because each of these sections has both an 'in' and 'out' transition, i want to use variables (on the buttons) to control these external movies that are loaded into the main movie (im even starting to confuse myself
basically in a nutshell... can you use buttons which control a movie ,which has been loaded at another layer, using variables....
View 1 Replies
Feb 17, 2003
i want to load an external swf movie into the main swf movie. now ive been using the loadmovie script and it works fine but the loaded movie comes up in the top left of my site so my ? is, how can i specify the location of where my loaded movie ends up
View 3 Replies
May 30, 2005
I got some movies loading in a container, but the movies stay open, I want to be able to "close" the container, or hide it when I click on other navigation buttons that are included in my main timeline.
View 3 Replies
Jul 17, 2003
I read the tuts on dynamic loading etc (the one about external stuff like mp3s, jpgs, swfs; and the one with the transitions). I'm messing around with it in MX and all works fine, except the problem I have is I cant check it locally! the bandwidth simulator and profiler doesnt seem to work with loading external content, the movie appears immediately.
So I tried loading the swf from the web (i.e. URL = file://[URL]) that gave errors "opening file" (the movie is there though). my only solution so far is to keep uploading my movie everytime I wanna check it!!! which is CRAP! I dont have a network at home, so cant really use those bandwidth simulators I saw on the sticky. basically I juz wanna load an external movie, and see how the parent movie handles it (i.e. progress is kept track of correctly, loaded notifications work etc.) how can I check all this locally?
View 6 Replies
Apr 19, 2009
I'm building an entirely flash based website using Flash CS3 and ActionScript 2. I'm using external movies for the various pages, and putting buttons that control these movies in the main movie file. Normally, I'd simply put the script to control the buttons on the main movie file, not the external ones, but because there's more than two different pages and I'm fading each external clip in and out, I'm wondering if possible to put the script, for the buttons on the main movie, on the external movies.
View 15 Replies
Sep 24, 2010
I have three (3) buttons in my main movie. And I just realized that everytime I press the "about me" button, it keep loading, reloading, the same movie. Its kinda lame! So I searched for VARIABLES and thought I could work my way around it.What I did was, on the first frame of my movie, I declared 3 variables; namely:
PHP Code:
var portfolio = false;
var aboutme = false;
[code]......
View 8 Replies
Mar 24, 2010
I'm quite new to flash and got stuck on a problem involving: loading external movie clips and file paths.I have 5 swf files and want to access them from one main navigation screen.[code]It fails after a few click because the file paths get duplicated..[code]Can any of you Flash gurus point me in the right direction?
View 2 Replies
Jun 4, 2003
I have a Main Movie with four buttons {about us, services, portfolio, contact}. When you click on Portfolio the Portfolio movie is loaded into the main movie to an instance called "load". This Portfolio movie has four buttons in it the first one being "print", now when I click on this link it loads another movie with the "print slideshow" in it.
In this slideshow there are thumbnail images which when pressed opens up another movie showing a bigger image which works fine. But what I would like to do instead of having separate movies for each thumbnail is to have just the one and load in the picture and any copy into a target depending on which one is pressed. I have tried doing this with this script, but it doesn't work (I've only tried loading the pic up to now)
on (press) {
loadMovie("print/view_file.swf", _root.view);
setProperty(_root.view, _x, "445");
setProperty(_root.view, _y, "25");
That part works OK, but it is replacing the slideshow movie. I've deleted the next part of the script and it no longer replaces the slideshow, so I think that is where my problem is, but I'm still not sure why
loadMovie("print/mdc-large.jpg", _root.view.pic);
setProperty(_root.view.pic, _x, "445");
setProperty(_root.view.pic, _y, "25");
}
This part isn't loading the pic at all. I know I've made it a bit difficult for myself by doing it all in separate movies, but I only want to load what is necessary depending on where people are browsing.
View 2 Replies
Nov 1, 2007
i want to make a flash site but i've run into a few issues, i've made an empty movie clip called 'empty'
and a button under it with the code
on (release) {
_root.empty.loadMovie("example.swf");
[code]....
View 8 Replies
Jan 8, 2011
I'm made a simple preloader that works fine for my main movie. Now I need it to work when loading external movies.Below is the code I'm using (AS 2.0) for the preloader.
onClipEvent (enterFrame) {
loading = _parent.getBytesLoaded();
total = _parent.getBytesTotal();
percent -= (percent-((loading/total)*100))*.25;
[code]....
View 1 Replies
Jun 7, 2011
I have three (3) buttons in my main movie. And I just realized that everytime I press the "about me" button, it keep loading, reloading, the same movie. Its kinda lame! So I searched for VARIABLES and thought I could work my way around it.
What I did was, on the first frame of my movie, I declared 3 variables; namely:
PHP Code:
var portfolio = false;
var aboutme = false;
var contact = false;
[Code]....
But I think I missed something along the lines because evertime I click on ABOUT ME, I still get the movie to load. My point here is that once I have CLICKED one button and the designated movie for that button is loaded, I can not reload it again 'cause it's already there.
What am I missing? I hope someone can push me at the right direction here Here is the FLASH MOVIE I am trying to developing. [URL]
View 3 Replies
Jul 6, 2009
Do you have any tips, or a link to a good tutorial? I'm a bit of a newbie...
View 4 Replies
Jul 30, 2009
I made some banners with Five3d that I am trying to load as external SWF's into another movie. I setup the classes, etc... however when I test the movie it always says "Call to a possibly undefined method... etc, etc" -- (which is making reference to the Five3d external AS file I used for my banners)...
I am new and still learning about Five3d, is there something else required to load Five3d projects as external movies?
View 0 Replies
Aug 20, 2009
I have an interface that needs to load in external activity pages - there's quite a few of these. I've been trying to create an external class to take care of movie loads, but it has a bad memory leak. I've been reading about using unload() and unloadAndStop() but haven't gotten these to work (there are no noticeable differences in system memory usage or performance). Everything grinds to a halt once I've used up about 13+ Mb of memory.
The document class has lots of code (of course) so I'm just showing the code that relates here:
Code:
package {
public class Interface extends MovieClip {
static public var _ui:MovieClip;
[Code].....
View 0 Replies
Dec 13, 2010
I have a flash application running on some local machines. There are 3 movies the flash loads and plays. Each time a movie is played, it makes the amount of RAM the swf is using increase. This is being ran in a museum and users step through the 3 movies over and over and over, causing the swf to use gigabytes of RAM and eventually locking up the flash player.
Here's where I create the movie playback component.
ActionScript Code:
var flvPlayer:FLVPlayback = new FLVPlayback();
addChild(flvPlayer);
The 3 movies are on 3 different frames in the timeline, for each frame I have this code that loads each movie.
ActionScript Code:
flvPlayer.source = "resources/LADEE_overview.f4v";
flvPlayer.play();
flvPlayer.addEventListener(MetadataEvent.CUE_POINT, cuepointfound);
I use the cuepoints to display some text on screen. I also call a function that does flvPlayer.stop(); each time the user navigates away from a movie frame. So is the RAM usage growing because of the flvPlayer.source = "whatever" being triggered each time the movie is called up?
View 5 Replies
Nov 8, 2006
I would like to use Sliding Menu (URL...) on my web site,how to I load the external movie when user lands on let's say slide 3 (content3)?From actions script given on page URL...Then, when user go to another slide, I would ultimately would like to unload/stop the loaded swf movie
View 2 Replies
Nov 25, 2006
i'm trying to create a simple site with three buttons and three different screens rotating (so if one button is clicked the current screen fades out, a new one fades in, then when a second button is clicked the same thing happens and so on).i was using the tutorial found [url]my problem is that i need everything pre-loaded from the begining. i was trying to create a preloader that loads all external files, but it would be a lot easier to have the different screens as movie clips in one file. the problem is, i'm not sure how i should modify the code to place a movie clip in my "container", rather then load an external file...
[code]...
View 3 Replies
Nov 18, 2007
i used kirupa's [URL].. tutorial to create a movie with buttons that load external movies and works seamlessly.
my problem is that i want to do the same thing on the external movies that are loaded so to be able to load new external movies on top of them. it does not work and i know its because of the _root script that gets messed up when a new movie is loaded. it has to become _parent or smthing but i can't seem to be able to make it work..
View 4 Replies
Oct 30, 2006
I used the "loading random movie" tutorial (http:url....) to load 3 external movies. It worked great.But now, my client wants the movies to load one after the other. Each movie is interactive, but requires you to click on it, so it plays an intro and stops. Each movie is built exactly alike. So, I would like a movie to play, then stop for a certain length of time (long enough for the user to read some text). If after that length of time, the user does not intereact with the movie, then I want the next movie to play in it's place. If the user does interact with the movie, I want it to just stop at that movie.
View 12 Replies
Jun 29, 2009
wherever I look for scripts is either AS 1.0 or 3.0... I used to work as a cartoon animator (didn't need AS at all) now I'm trying to build up my own site to show my portfolio. I'm having difficulties loading and unloading external swf files. Basically I'm a total newbie, I managed to figure out that you need an empty movie clip where it will be played, and the buttons themselves...
View 8 Replies
Nov 21, 2010
I've been working on webdesign for some years now, having worked mainly in full flash websites with a lot of actionscripting. Thus I consider myself quite familiar with actionscript but only AS2 as I've still haven't made the cross to AS3 (I know i'm almost 5 years late...).I've been recently hired to convert interactive points on some museums that were working with dvd menu's to flash. I've constructed and programmed everything with no trouble at all using some programing to use a circular menu and the flvplayback component to load external 720P HD movies on f4v format. Everything was working perfectly until I was faced with the real PC's that were being used on the museums. Some of them are okay PC's and so I just had to reduce the quality of the videos a bit (a 20 mb bitrate was too much... lol).
However some of them are the equivalent of netbooks (like the Asus EEE PC) and that's where my nightmare begun.So the real problem is this: the computers can run the HD videos perfectly through the VLC media player. However, using the flash presentation either on flash projector or an swf running through an html on internet explorer results in an unwatchable video all sloppy and with buggy sound.I've even tried loading the videos inside a totally empty flash project which still resulted on the same problems.What happens is that when the flash loads the videos the system usage of the processor results in 60 percent with peaks reaching the 80 percent.The weirdest part is that sites like youtube that run HD movies work on those pc's but my presentation does not.Do you have any suggestions on what might be happening?? Is this a problem that has to do with the FlvPlayback component and that I could solve using the Open Source BetterFlv component instead?
View 6 Replies
Feb 23, 2011
I spent almost a week trying to figure out how to unload a currently loaded swf using its button and loading a new swf... I have three files, a main.fla, file1.fla and file2.fla. In my main.fla, I have a code which loads the other two files. If i will click the "unload" button in the file1.swf, I would like the main.fla to unload the file1.swf and load the other file, file2.swf. Here is the code to load the file1.swf:
[Code]....
View 1 Replies
Jan 16, 2007
I have an intro.swf file that is basically a movie with sound that is exported for actionscript but not exported in the first frame. I just stuck it in a movie on my timeline and it works great and the preloader works because it doesn't load the sound before the preloader. I use :
musicSound = new Sound();
musicSound.attachSound("music");
musicSound.start();
to play the sound in intro.swf.
However, now this intro.swf gets loaded into an index.swf and everything works fine and the sound plays as long as I have the sound included in BOTH the intro.swf and the index.swf and the sound is exported on the first frame in the index.swf. I was hoping I could remove the sound entirely from my index.swf since it already loads into the intro but so far
View 9 Replies
Jun 30, 2010
I have 7 buttons on my main page, on the left side of the screen. I want the buttons to load the external swf on the right, and then unload when a different button is pressed. Do I need to make an array? Do I need an empty movie clip to load each swf into?
[Code]...
View 20 Replies
Aug 17, 2009
Flash CS4 Actionscript 2.0 internal training project Main movie is a single frame project, containing just the interface. This includes a menu listing 80+ individual "chapters" for the training series. Each "chapter" that loads is its own project/swf of varying lengths. Once the main interface loads, it should automatically begin to play the chapters sequentially without the user selecting anything from the menu. When one chapter finishes, the next should load. If the user DOES select a chapter in the menu, it should load that SWF, and continue auto-playing from that selection forward.
- Each chapter swf has a built-in play/rewind/ff bar, various movie clips with animations, dialogue audio track and a fairly lengthy embedded FLV movie, and therefore a preloader before each chapter is mandatory.What I have so far works, but it's embarrassingly crafted my lack of AS skills:- First frame of main interface movie (let's call this main.fla) contains the following code:
var slideName = "modules/00.swf";
var loader:MovieClipLoader = new MovieClipLoader();
loader.addListener(this);
[code]....
View 0 Replies
Nov 30, 2009
Basically I have a site that will load an external .swf for each menu button to display the content for each page. I have found tried several methods to do this and all at least create a loader and display the default .swf without problem.
Heres the code...
***start code***
stop();
var xPos:Number = 0;
var yPos:Number = 125;
[code]....
My problem is I am getting the following error:
"1120: Access of undefined property event. var newSWFRequest:URLRequest = new URLRequest(event.target.name + ".swf");"
Now the buttons I have set up are text converted to a button. Not sure that matters as I have seen other instances where people create an object (retangle) covert that to a button and put the text inside of that as an instance of the retangle. I have even created a new .fla with just a single button creates with a retangle and the text as an instance of that and still get the same problem.
View 2 Replies