ActionScript 2.0 :: Loading Pics Into External Movies
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
Similar Posts:
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
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
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
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
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
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
Jul 2, 2009
I am trying to develop a way to load and unload pictures and zoom in to them in a dynamically way. This is done with the idea to save space in memory for further use. I was helped by Dawsonk a while ago and we came to this code:
[Code]...
View 0 Replies
Apr 15, 2010
I am loading XML file with images and text. I am resizing the pictures so I have to add an additional loader just to do that. By the time the images load, they are in different order than the XML file (cause it took time to load), which means it also throws my text off. Prior to loading, I place all the text of the images in an array. But when the images load, the array no longer matches the images loaded because they loaded randomly, rather than in order.
Code:
picData = new XML(e.target.data);
my_images = picData.image;
image_text = picData.image.@name;
[Code]....
This loads all of the pictures fine, but again I can't make the picture match the text because the text array has no idea what image is being loaded first.
View 1 Replies
Oct 8, 2009
I have 12 pictures I need to load and then make accessible as buttons or - when the user presses on the picture it initializes a function.
What is the best way to do this? I went the loading a picture through URLRequest and URLLoader route but I need to load 12, place them on the stage, make them move upon NextBnt press and and then when the user selects the picture., the view goes to another screen. does that make sense?
View 6 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
May 21, 2009
I made a website that does it alright on the internet on my PC, and I haven't heard any complaints from my client either, but a few hours ago I visited a friend and on his PC the website didn't work exactly as it should. So I wanted to ask all who reads this, to please have a look at this and tell me if you have the same problem or not.
The website is here
When you're on the opening page you have to press the 1st button under the pics (the word = the link), then a centered flash pop-up appears with in the upper banner the buttons of the 4 different pages. In the Arabic "gate" there should always be a text scroller.
The problems were the following:
- - On some of the pages the text scroller didn't appear, or the scroller appeared but where the text should have been there was the word 'undefined'
- - On the "wat" page, there should be a horizontal picture slider behind that Arabic gate. On the PC of my friend only a few pictures appeared, making the gaps between the pics that were shown gigantic and with variable sizes (normally, with all the pics shown, the spaces between the pics are all the same width)
View 3 Replies
May 22, 2005
... I've had my preloader successes already, but something still doesn't work for the external movies... I'm loading the main movie - which contains several chapters, loaded as external swf's - with the following preloader on the first frame, rest content from second frame on:
[Code]...
View 5 Replies
Sep 21, 2009
I want to create a website having one main stage file(main.fla) with different swfs(movie1.swf, movie2.swf,movie3.swf) for various sections. Am not sure what I am doing wrong here but somehow when I click the button it does not load the respective flash file
View 6 Replies
Oct 1, 2009
I am creating a presentation which has a main flash and then 3 sub categories to it. Main.fla is nothing but a container to load the other movies into. I could get the the first movie (movie1.swf) to load onto main.swf by using the foll code:
this.createEmptyMovieClip("empty_mc",1);
empty_mc.loadMovie("movie1.swf");
empty_mc.x=0;
empty_mc.y=0;
Now the problem is in movie1.swf the menu is like on the 3rd level, i.e. main stage>menu_mc>menu (where the buttons are).
How can I add a code on level "menu" so that when I click button2 or button3 it loads movie2.swf and movie3.swf respectivley onto the main stage. Makes sense or am making it too confusing..
I want to try this breaking a big movie into smaller parts functionality so that I can understand flash more.
View 1 Replies
May 5, 2009
i have a photography website, the main 'index.swf' file has two scenes, one for the loader and one with the content.i have a navigation menu:item 1, item 2, item 3, and so on. i have 10 layers, my nav menu is on layer 10, at the very top.i also have a a layer for each one of my navigation menu content. Now i click on item 2, and i load a external movie clip called "fotos_mc" on to the stage and inside this movie clipe i load pic1.swf using: loadMovie ("pic1. swf", 1);it loads fine, except that it loads on top of my navigation menu, logo and so on, even it's on a layer that's under the layer where i have placed my menu and logo. is there a way that i have load my movie so that it displays behind my menue?
View 3 Replies
Feb 5, 2010
i am trying to create a swf file that contains 3 movie clips inside of it. i want the swf file to randomly choose one of those movies and play it.
i am on a mac with flash cs4.
View 1 Replies