ActionScript 2.0 :: LoadMovie, Control From Maintimeline To External Swf?
Sep 11, 2006
I have an external swf that I've placed in an empty movie clip using loadmovie into the main movie.
The swf shows and plays fine, however I have an interactive movie clip which does nothing when loaded into the main movie. (note: the loaded .swf is fine when tested outside of the main movie). How do I target the external .swfs interactive features after it has been loaded into the main timeline?
here's an example:
code in the external .swf-- on a movieclip, instance name: growObject
onClipEvent (enterFrame) {
if (_root.grow == 1 && this._xscale<300) {
[Code].....
I just need to figure out how to activate these instances while watching the external swf from my main movie timeline.
View 2 Replies
Similar Posts:
Nov 27, 2011
I have an external swf called "lakefillpreloader.swf." It works, except when I put it in another swf, called lakefillwireframe. I get Error#1010 for the lines about ButtonMode and the EventListeners that gotoAndStop at different frames. What do I add to my code?
Lakefillpreloader:
Code: Select allclose_btn.visible=false;
buildings_text.visible=true;
//defines measurements, in pixels
const PANWIDTH:Number=10061
[Code].....
View 1 Replies
Mar 15, 2007
Is it possible to control the volume of a swf which has been loaded using loadmovie ?
I have several loadmovie swfs on the same page so want to only have one animation play sound at the same time.
View 1 Replies
Aug 17, 2011
I have a main SWF that is comprised of scenes. I have buttons that go between those scenes at the bottom (prevscene, nextscene). This works well. On the last scene, I have it loadmovienum and it loads an SWF that has a few scenes in it. It also has the buttons to go between those scenes, which works well.My issue is the first scene of that SWF that is loaded in the main SWF needs to have a button that will send the main SWF to the previous scene in it. Of, conversely, I need the buttons in the main SWF to tell the loaded SWF to go nextscene/prevscene.
View 3 Replies
Apr 30, 2011
but i just can't figure it out. I've made a website in flash, with a button. The purpose is when you click one button, a portfolio will open. This portfolio is xml driven and i've got the FLA file and the SWF file.
But.. when i put the portfolio FLA file in my website timeline it won't work, and when i try to use the SWF file instead and connect it to the button using AS2.. it won't work at all. The last option i used the following AS2 codes and put the code on the button frame.. that didn't work (not at the same time offcourse ):
[Code]...
This last code did work.. but for some strange reason this last code loaded the SWF again and again...
Is there someone who knows what i'm doing wrong? I just want that the portfolio opens when you click on the button.. and opens in a container with certains measures.
View 3 Replies
Aug 14, 2009
This is my first time ever constructing a web site ONLY using Flash 8. I normally just use elements here and there, and I am totally confused. The link to the project is here: [URL] I want the site to be set up so that when I click a button (at the bottom), an external .swf file loads into that gray box in the center. How do I start? Where do I start? I should be able to figure this out, but I am stuck.
View 1 Replies
Jul 23, 2009
I need to create a button with script, on rollover load an external swf into movieclip in AS3. This was able to create this in AS2, but I need to create this in AS3
View 3 Replies
Jan 28, 2009
I need to do is load an external swf into a movieclip and make sure it stays within a certain size.
1. How do I make it a set size? Instead of it inheriting the root timeline height/widht. ie: my main movie is 900 x 900 the external swf is 700 x 500 and there are mouse moves that rely on the 700 x 500 boundaries.
2. How do I make this: loadMovie("external.swf", "load_mc"); utilize MovieClipLoader?
View 6 Replies
Nov 17, 2010
as3 is new for me, but i would like to write a script using loader to load an external swf, and control the external swf. But I find I can't control the swf, because there are no fixed instance name. here is my script.
[Code]...
View 3 Replies
May 6, 2010
I am running into some real problems with importing a png and associating it with a movieclip.Basically I want an image (image1.png) to appear inside a blank movieclip on my stage called "image1". I need this to all run from the library and not from an external folder - thus this does not work for me : loadMovie ("image1. png", "ClickReveal.image1");Is this possible? Or do I absolutely have to run from an external folder or convert the png to a movieclip by hand and then use attachMovie? I am desperately trying to avoid those options.The reason is that I am building a template file here and the users need to be able to import their own images which may be called anything and need to pop into movieclips.
View 1 Replies
Feb 3, 2006
i have a button that when pressed passes a variable:
_root.movieToLoad = "testAni";
then the next movie clip thet "receives" the variables needs to play the external .swf in an empty movie clip... i have the code like so:
movieToLoad = eval("external_" + _root.movieToLoad + ".swf");
emptyMovie_mc.loadMovie(" + VARIABLE_GOES_HERE + ", "_self", "GET");
of course it doesn't work... how do i place a variable in that loadMovie?
View 3 Replies
Jan 29, 2009
i hav one main swf inside which iam loading second swf, but instead of hardcoding it, iwant the secound swf to calldynamically using variables.
The querystring is as follows:
<PARAM NAME=movie VALUE="film.swf?extSwf=movie.swf">
This method works fine:
[code]....
View 2 Replies
Mar 12, 2005
I have 100 mc's loading external thumbnail jpgs via loadMovie(). I need a preloader of some sort to show the status of the thumbnails. The problem is that each of the mc's are loading JPG individually and I am not sure of how to combine their loading statuses into a preloader. The other option I had planned to use was to make one thumbnail larger in file size than the others so that it would load last and therefore I could use some onload function for this particular thumbnail, but I do not know what would be best to use in this case.
View 1 Replies
Mar 22, 2011
I have a main movie is coding AS2 which contains a movieClip called MC_header.And I have an external movie is coding with AS3.
My question is : Can i loadmovie the external movieclip in the main movie?
View 1 Replies
Nov 1, 2009
I have a flash website, which has 4 menu options, each of which when you click fetches a different XML file in which the child nodes indicate the content, or description of an item, and fetch a external image to represent it on stage. Each menu option when clicked gets a new XML file, replacing the old one in the xml variable. Once the XML is loaded (xml.onLoad()) it sends it to a function (loadItems) to place each item on stage. Obviously, when uploaded onto the Internet, when a XML loads, the images are still loading, thus the Tween effect of them appearing on stage can't be seen.
I need to find a way of how to create a preloader, that would show the status of ALL the images download progress, and once complete, starts the Tween effect of them appearing on stage.
loadItems function (places the external images from the XML file on stage):
ActionScript Code:
var xml:XML = new XML();
xml.ignoreWhite = true;
function loadItems()
[Code].....
View 4 Replies
Apr 16, 2005
i load external movie with loadMovie action.
It loads the SWFs into the movie correct.
I have problem, how simply switch between the loaded movies. The last loaded movie overlay all loaded movies.
How is possible do it the swap of the loaded movies?
View 1 Replies
Nov 5, 2005
my next experiments consist on loading a movie/ or gotoframe on a hyperlink with html text that i load from a .txt file.i mean this such type of html code
Code:
visit the site<a href="http://test.com" target="_self"><font color = "#FF9933"> for more info so basicly my intention is, to refer to a hyperlink but just go to a "frame" or load a movie. where you have in your FLA some more info about the site you are going to enter again, i am just experimenting with these things, it has no real purpose but it would be considered nice if it really could work.
View 3 Replies
Dec 7, 2005
I want to load an external .swf file through the loadMovie function. The problem is flash takes sometime to load the file and therefore what ever commands I put below the loadMovie function, will not work. Placing this commands say 10 frames from the loadMovie function works but when online and you have a slow internet connection, it yet again fails. How do I solve this problem? I tried using onLoad but from what I gathered from several sites, it will not work with LoadMovie.
View 6 Replies
Sep 12, 2006
I am loading a external swf into a MC "m_loader" but i want to go to a specific marker within the external .swf (Marker "m1q1"), i can load the .SWF fine but how do i go to specific place currently using the following AS.
[Code]...
View 1 Replies
Mar 2, 2007
I've been trying to use loadMovie to load external SWFs into 200x200 MCs arranged on the stage. What I get is a strange placement of the loaded movies, and, the loaded movies don't appear as they should. The loaded movies are really all the same: they display 4 squares that change randomly every 3 seconds.
1) The loaded movies seem to use their center point as the registration point instead of the top left corner. Why? How can this be changed?
2) The loaded SWFs ("1.swf", "2.swf", "3.swf") get transformed from 200x200 pixels to 100x100 pixels. Why?
View 3 Replies
Oct 2, 2009
We sometimes get swfs at my job that doesn't match our standard banner width and height. We only have the swfs and not always able to get hold of the *fla.So we want to load the swf into our different standard banner size and show it.
How do I load the swf into a new *fla that has my standard stage width:995 and stage height: 150? Without distorting the swf to much. Swf could be loading into a MC or loading directly onto stage.I tried the loadMovie and loaded the swf into a empty MC. But I can't set the MCs width and height.
View 4 Replies
Mar 12, 2005
I have 100 mc's loading external thumbnail jpgs via loadMovie(). I need a preloader of some sort to show the status of the thumbnails. The problem is that each of the mc's are loading JPG individually and I am not sure of how to combine their loading statuses into a preloader. The other option I had planned to use was to make one thumbnail larger in file size than the others so that it would load last and therefore I could use some onload function for this particular thumbnail, but I do not know what would be best to use in this case.
View 1 Replies
Jul 7, 2007
I am doing a simple loadmovie, bringing an external swf into a holder clip that is empty.
here is my code. I have it placed on frame one INSIDE the holder clip:
PHP Code:
_root.pages.weddingholder.loadMovie("wedding_section.swf",this);
The external movie loads, but the issue is HOW it loads. The swf is 643x394 and looks fantastic by itself. When it is loaded into the holder clip though, it scales it and makes it much taller and wider than the actual external SWf is, and is messing the way it looks up.
View 1 Replies
Oct 1, 2004
I'm using Flash MX 2004, and using the loadMovie() function to draw an external .swf file into a blank movieclip. My question is how the browser (let's assume Internet Explorer) caches this information. I know that after a Flash movie is loaded within an HTML page, the browser caches it, so that on the next load the movie appears nearly instantly from the cache. However, does it also cache the movie loaded using loadMovie(), or does it always redownload that external movie regardless?
View 2 Replies
Apr 5, 2005
I'm having a problem with embedding a Flash movie that loads an array of SWFs- specifically, ones that exist in the same movie as the .fla loader file. When I move the external SWFs and .swf load_movie file into a separate directory from the HTML file, they do not load properly. I get just a white window. [URL]. When I keep the SWF movie clips and load_movie.swf in the same (root) folder as the .html file, then everything loads properly, though. But this would extremely clutter up my directory!
The code is as follows:
MovieClip on Stage
onClipEvent(data){
//test to make sure it's completely loaded, when swf's load this way onData is called with each 'chunk' of data
if(bytesLoaded()==bytesTotal()){
this.onEnterFrame=function(){
if(_currentframe==_totalframes){
_root.loadNextMovie()
[Code] .....
I 'm not sure if there is a way in loadMovie to specify another folder, or the best way to solve this problem. I'm relatively new to Actionscript.
View 3 Replies
Apr 16, 2005
a SWF that will serve as the main movie for the site. Inside this SWF, I have a script that loads a JPG into a holder MC that's on stage. So basically it's like this:
- main.fla
-- holder_mc (this isn't an empty MC, it has some PNG's inside)
--- external JPG loaded in by loadMovie
I'm ok with building a preloader for the holder_mc and the rest of the FLA (without the size info of the external JPG), but how would I incorporate the size of the external JPG into my initial preloader before I actually start playing everything. Would I have to set the holder_mc visibility to false, call the loadMovie, initiate the preload, and then set visibility back to true. There's gotta be a better way?
View 7 Replies
Oct 6, 2003
I've made a component to control the movieclip in the main timeline. The instance name of that movie clip passed as a parameter to the component. That is working fine in that file. But when that file loads into another SWF file, that containes a movieclip to hold the file that is being externally loaded, the methods are not working in that componentThis is the code of the component.
#initclip
function visiblerClass() {
this.what = this.insofitem;
[code].....
View 1 Replies
Jun 6, 2006
how to do a random internal movie clips NOT calling external mcs with loadmovie?Let's say I have two internal mc's with instance name : my_mc1, my_mc2 and I want them to load randomly in starting in frame 2 here what I did so far:
var tab_mc = [this.my_mc1, this.my_mc2];
function randomMC(tab_mc) {
var i=tab_mc.length;
var r = (Math.floor(Math.random()*i);
[code]....
View 4 Replies
Oct 6, 2003
I've made a component to control the movieclip in the main timeline. The instance name of that movie clip passed as a parameter to the component. That is working fine in that file. But when that file loads into another SWF file, that containes a movieclip to hold the file that is being externally loaded, the methods are not working in that component.
This is the code of the component.
//------------------------------------------------------------------------------
#initclip
function visiblerClass() {
[Code].....
View 1 Replies
Jan 5, 2012
I have 2 flash files,one is mine (the main container) and one is a external swf.I want to load the external SWF to my container SWF.I write this code in my AS2 container, inside the main timeline flash (mine flash).In the first method, I add a movie clip with instance name mc1 to the first layer:
mc1._lockroot = true;
mc1.loadMovie("external.swf");
countdown = function(){
trace("ok");
}
countdownIt = setInterval(countdown,1000);
This code works fine in most of the cases, but I found many SWFs files that it dosen't work with. These SWFs and work with the following code instead:
loadMovieNum("external.swf",0);
countdown = function(){
trace("ok");
}
countdownIt = setInterval(countdown,1000);
I really try to use that code - BUT !!! -> if I use this code the external SWF predominant, my main SWF code and all the rest of my code dosen't work (like the setInterval() timer).... I want to load the SWF like the second example and still run the setInterval() function.
View 1 Replies