ActionScript 2.0 :: Loadmovie/ External Swf Or Fla?

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


Similar Posts:


Flash8 LoadMovie - Load An External Swf

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

ActionScript 3.0 :: Load An External Swf Using Loadmovie?

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

ActionScript 2.0 :: MovieClipLoader Vs LoadMovie External Swf

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

ActionScript 2.0 :: Flash CS4 Alternative To LoadMovie From External

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

ActionScript 2.0 :: Dynamically Loaded External .swf's With LoadMovie();

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

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

ActionScript 2.0 :: Variable To Load External Swf Using LoadMovie?

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

ActionScript 2.0 :: [MX2004] External JPGs & LoadMovie()?

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

ActionScript 1/2 :: Loadmovie The External Movieclip In The Main Movie?

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

ActionScript 2.0 :: Preloading External Images Fetched By XML Via LoadMovie?

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

ActionScript 2.0 :: Load External Movie With LoadMovie Action?

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

ActionScript 2.0 :: LoadMovie/gotoFrame From External Text File?

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

ActionScript 2.0 :: Loading External Swf Files Through The LoadMovie Function

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

ActionScript 2.0 :: Loadmovie - Goto A Specific Marker Within The External .swf

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

ActionScript 2.0 :: Use LoadMovie To Load External SWFs Into 200x200 MCs?

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

ActionScript 2.0 :: Load An External Swf With LoadMovie And Set It To New Width Height?

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

ActionScript 2.0 :: [MX2004] Mc's Loading External Thumbnail Jpgs Via LoadMovie()

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

ActionScript 2.0 :: Loadmovie, Bringing An External Swf Into A Holder Clip That Is Empty?

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

ActionScript 2.0 :: LoadMovie - Draw External SWF File Into Blank MovieClip

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

ActionScript 2.0 :: Random LoadMovie Function - Location Of External SWFs

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

ActionScript 2.0 :: Call The LoadMovie Initiate The Preload + External Images

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

ActionScript 2.0 :: Component Method Cannot Be Accessed When That Load As External Movie By LoadMovie()?

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

ActionScript 2.0 :: Get A Random Internal Movie Clips NOT Calling External Mcs With Loadmovie?

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

ActionScript 2.0 :: Component Method Cannot Be Accessed When That Load As External Movie By LoadMovie()

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

AS2 :: Load External SWF Correctly To Main Flash File As Root And Level0 Using LoadMovie()?

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

ActionScript 2.0 :: Create Animation And Loading External Jpg Files Using LoadMovie() - It Is Not Work In Firefox2?

Jan 8, 2007

i created a very simple flash animation and loading external jpg files using loadMovie(). I had test it in IE7 and its works fine but not in Firefox2, it cannot display the jpgs. What is the problem?

View 1 Replies

ActionScript 2.0 :: Use LoadMovie Function Inside Loop To Load External PNG Files / When Game Is Loaded

Jan 19, 2009

I'm trying to use a loadMovie function inside a loop to load external PNG files when my game is loaded. Unfortunately, I can't get even a single loadMovie to work correctly, much less execute a bunch of them.The code is on the root time line, and is targetting an empty movie clip that is nested inside about 3 levels. There is a button, with a movie clip on it, and the empty clip I'm trying to load into on that.so the full target path is myBox_00.smallBox.myLogo(myBox_00 is the button, smallBox is the movie clip, and myLogo is the empty)[code].I even tried using a JPG image instead of a PNG and still no luck. The best I could do was number 4; and that didn't work, all it did was SOMETHING instead of NOTHING... unfortunately that something was to make the button (myBox_00) disappear entirely T_T.I've never had much luck with loading external images. What am I missing here?

View 9 Replies

ActionScript 2.0 :: Loadmovie - Load An External Swf "simple.swf"

Apr 27, 2003

i am haveing a serious dilema with the loadmovie AS... ll make everthing as clear as possible.. main timeline 1st frame i have script for a menu... when u click an item in the menu it kicks you to a frame label "simple" in the main time line. in simple i an am trying to load an external swf "simple.swf".. i have tried everything and racked my brain but i cannot get flash to laod simple.swf...a nd on the off chance i do get it to load i am unable to position it with _x,_y...

View 1 Replies

ActionScript 2.0 :: Loadmovie("","") To Replace The Symbol From A External Jpg?

Dec 25, 2004

what i want to do is, when certain button is clicked, replace a certain symbol(button) by another symbol(movieclip) stored in the library.i try things like loadmovie("","") to replace the symbol from a external jpg, but some how it does not align even both images are exact dimension.can i replace an image straight from the library?

View 1 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved