ActionScript 2.0 :: Add One To The File That Is Loaded Into The Main Movie Main Movie That Is Loading The File?
Aug 3, 2003
using the command:
loadMovie(_root.section, _root.content);how would i work in a preloader bar?? add one to the file that is loaded into the main movie or on my main movie that is loading the file?
View 1 Replies
Similar Posts:
Jul 7, 2010
how to pass variables from one Movie clip's AS file to my Main AS file. Let say my Movieclip's AS file is calling damage = 1; so how the Main AS file retrieve the damage value from the Movieclip's AS?
Code:
public class robotMC extends MovieClip
{
public function robotMC()
{
[code]....
View 5 Replies
Jan 14, 2004
i want to load variable from text file to my main movie (swf file).what should i put in the second parameter of the function loadVariables ("target" parameter) - should i insert _this? _parent? _global? (nothing works.
View 3 Replies
May 31, 2011
I am new flash developer, and inherited a project which has 4 fla project files. When it runs inside a browser, it appears "window" which occupies whole browser. This project is write in Flash CS3. I have few questions:
1). When loading main swf file, 3 other swf files are also loaded. These swf files are communicating with each other through message. When debug the mail swf with CS3, I can set breakpoint and the program can stop only at limited AS files. My questions is how to debug other AS files in other swf file?
2) I used CS5. It seems that I can stop at more AS files, which does not belong to main swf file. Why?
My questions is should I use CS5, which might makes debugging easier? Is it right direction to go to debug multiple swf? (For CS5, I need to fix some code in order to make the program fully working as CS3)
3) What's best tool to use for such project since CS3 is very old. Should I use Flash builder, Flex. Amethyst?
View 1 Replies
Jan 30, 2003
when i load a swf file into main movie.I get no animation from swf.... it's like frozen. But the swf itself works fine.
View 8 Replies
Dec 23, 2004
I want to load six seperate .swf's into the main movie while the main movie loads too. So in simpler words, i want to be able to load all of the swf's the same time i am loading the main swf.
View 2 Replies
Aug 12, 2011
I am trying to control a movie clip from the main fla file.
Explaining below:--
I have a main file with menu/navigation.
In another swf file which is loading on the main fla file.
In the another swf file I have a moviclip for example sq1. and I have write the code:--
test2.sq1.visible=false; which is by default value.
when this load in main fla file on the click of a btn I want to visible sq1 I write the code like this way:--
MovieClip(this.parent.parent).test2.sq1.visible=tr ue;
the swf is loading in holder moviclip.
But when I clik on btn the swf is loading but the movieclip is not visible.
View 2 Replies
Aug 11, 2011
I am trying to control a movie clip from the main fla file.I have a main file with menu/navigation. In another swf file which is loading on the main fla file.In the another swf file I have a moviclip for example sq1. and I have write the code: test2.sq1.visible=false;when this load in main fla file on the click of a btn I want to visible on I write the code like this way:-MovieClip(this.parent.parent).test2.sq1.visible=tr ue;the swf is loading in holder moviclip.But when I clik on btn the swf is loading but the movieclip is not visible.
View 2 Replies
Aug 5, 2009
I load external swf file into main movie. and i give that child a name page0 there is a bit of code.
[Code]....
so after its loaded i want to insert some text into external swf using main movie. i managed to remove external swf, like this ActionScript Code: holder_mc0.removeChild(holder_mc0.getChildByName("pages0")); but i wonder how to insert text into that swf. i don't understand how hierarchy works, when you addChild, what name should i use for my external files. for example ActionScript Code: holder_mc0. ?????? .mainTemplate.tContent.text = "TEXT"
View 6 Replies
Dec 8, 2009
I am not sure what is the difference between externally and dynamically loading pages, but I have created swf files for each of my pages and then a main page that those swfs get loaded into. The problem I am having is: I have transitions between my pages and my movie clip will animate when it is in the page swf, but not when it is in the main file.
View 0 Replies
Jan 14, 2004
i want to load variable from text file to my main movie (swf file).what should i put in the second parameter of the function loadVariables ("target" parameter) - should i insert _this? _parent? _global? (nothing works...)
View 3 Replies
Apr 14, 2004
Is it possible to target a loaded movie within the main timeline and stop sounds in that particular movie only?
View 4 Replies
Jan 9, 2010
my problem is that i need to make a reisze, cause the screen resolution for other users. My main and news movie works perfect, but the others movies re-scale everything bigger. The problem of the external loaded movie is: this movie needs the funktion:
Stage.scaleMode = "noScale";
Stage.align = "TL";
If i dont have this code inside the movie is not going to resize fullscreen into the main movie. Inside this movie im scalling photos and some mc's You can take a look what i mean under: [URL]
If you take a look to the bar where the Number of pictures (30) are you will see that the lower bar and the pictures is not going to scale to fill the full screen if i delete the this code;
Stage.scaleMode = "noScale";
Stage.align = "TL";
View 3 Replies
Jan 6, 2011
Got a really big problem here. I keep on getting "NetConnection.Connect.Failed" when I load a .asc file on my main.asc file, i use the method load() in my code. I really don't understand why this happens, but when i comment out the code that loads the asc file, I can successfully connect to fms. I can't figure out what's happening here. Btw, i'm using fms4 in windows 7 32bit.
View 6 Replies
May 26, 2010
Im making a movie with a menu that loads movie clips according to which menu is selected simple enough. However, the newly loaded movie clip also needs to allow the user to load another movie into the main movie effectively swapping the first movie clip with the second. This needs to be done without using the main menu.
View 6 Replies
May 18, 2011
I have problem in loading multiple swf file into a main swf file. I will state the things clearly at first. I have a main Index file to which i have to load some swf files which i have placed in a seprate folder. I tried to load those movies to main swf file using loadMovie it worked well when i give the exact path of the swf movies in subfolders. Aslo it worked when i placed the entire swf files including the Index file on a single folder, this worked only on my local machine suppose if i copy those entire folder to some other Computer and tried to run the Index file it doesnt works if it is in an single folder it works. The thing i need is the Index file alone has to be placed on the main folder and rest of the Swf file has to be placed on sub folder so when i run the index file it has to load the required swf file from sub folder this even have to work when i run the application on some other computers.
View 4 Replies
Nov 17, 2009
i want to loaded a swf into my main swf file. How do I place it on the main timeline in the main swf. To be exact I have a frame label called about. Where i want the swf to be.[code]
View 7 Replies
Jan 17, 2012
I Have a flashmovie thats almost done and will soon hit the internet, but I want to add some animations into the website it�s two gears that I�m about to put at the bottom of the page and when a button releases in the main flashmovie the two bottom gears will turn a few frames and just stand still.These three movies are all separate (main movie, first gear and second gear).
It's a homepage designed in HTML and flash that has this "main flashmovie" in the middle of the screen, the size is about 1500(width)X800(height). And the gears is about 800wX200h placed at the left and right side bottom of the page. Dont worry the site is easy to apply to any screen resolution.I have been looking everywhere for any soul out there who suffering from the same problem but no success. Is it possible to script a button in the main movie to launch two separate movies in their own contents?
View 2 Replies
Jan 29, 2007
I've set up a test file and I'm having problems loading a video file from within a loaded movie.I have 3 files - "base.swf". This loads a swf - "LoadVideo.swf" into level 10
Code:
loadMovieNum("Files/videoFiles/LoadVideo.swf",10);
This, ("LoadVideo.swf"), has a button with the code
[code].....
View 1 Replies
Jul 21, 2009
If I have a main.swf which loads, for example, outside.swf, is there a way to make outside.swf useless if run on its own, but working when loaded via main.swf? The purpose would be preventing people from running parts of a presentation on a CD, forcing them to use only the main.exe projector file. I tried making a Boolean variable called "allowed" in outside.swf telling the movie not to play if it's set to false, and then tried changing this property from main.swf after loading it by calling loader.content, but it didn't work.
I did this:
ActionScript Code:
button1.addEventListener(MouseEvent.CLICK, loadaj);
function loadaj(e:MouseEvent):void {
var MVloader:Loader = new Loader();
var req:URLRequest = new URLRequest("outside.swf");
MVloader.load(req);
attacher.addChild(MVloader);
MVloader.content.allowed = true;
}
View 3 Replies
Jun 26, 2005
In my main swf, I m loading 1 swf file which is having 1 mc and in that there is 1 btn.
what i want is when a user will click this btn of my loaded swf i want to move to another scene of my main swf.
How can i do it? I tried to search the ans in forum bt could not trace out.
View 6 Replies
Apr 29, 2008
My site consists of a main swf file ('home.swf') which then has other swfs loaded into it via an empty movie clip.I have created one such swf. file (news.swf) which features 2 simple scrolling text buttons (one to move text down, and the other to move it up).http:[url].....
Everything works fine when I preview the news.swf on its own, but when I preview the home.swf and view the news.swf loaded into it, the button which should move the text up doesn't work.I think it's something to do with using the term _root. but i don't know what to replace it with.This is the script I have on the button that doesn't work:
//Events during mouse click
on(press) {
_root.controller.gotoAndPlay (2);[code]........
Is it just a case of changing the _root. term, and if so what should I change it to, or is it trickier than that.
View 9 Replies
Sep 24, 2004
I have a background swf that has been coded so that it scales with the browser. I want to load the main swf file (main.swf) on top of this bg so that it is always centred on the page.
View 2 Replies
Mar 31, 2007
I have created a main swf file which holds a movie container which other swf's load into. One of the sections has a form in it. When I preview this section on its own the form works, but when I preview through the main swf file (or online) the text fields cannot be typed into. How can I fix this? Files can be downloaded from;[url]....
View 6 Replies
Sep 4, 2008
i am using flash cs3,i have a main movie that load many swf using a document class..i need to pass "userid" variable from the main movie to loaded swf so they can change their content dynamically.
View 7 Replies
Jun 10, 2009
If I load an external swf:
my_loader.load(new URLRequest("abc.swf"));
addChild(my_loader);
abc.swf starts playing - how do I get it to tell the main movie that it reached the end of its timeline and finished playing? Added bonus: the loaded swf is AS1 and the main movie is AS3. I'm not sure if I could convert the loaded swf to AS3.
View 2 Replies
Apr 28, 2005
In my main movie I am loading external swf files. The proplem is that these files are cached so when they load the updates aren't shown. I've read some stuff about loading vars or xml with a random function to prevent it from caching, can that work with swf files? Maybe something like:loadMovie ("news.swf?="+random(1000),_root.dropPage_mc);'ve placed the meta tags in the main html to stop that from caching; which doesn't really work. Could the same be applied in the html? Or maybe a php function when loading the main flash movie?
View 2 Replies
Jan 4, 2011
I cannot align the loaded swf exactly on top of the main movie? To see it online check here.Note only the about button works for now...also note how the top menu moves when about button is clicked! why is that?? Follow this link to download the FLAs and the other image folders I am using...
View 12 Replies
Apr 14, 2004
Is it possible to target a loaded movie within the main timeline and stop sounds in that particular movie only?
View 4 Replies
Apr 28, 2005
In my main movie I am loading external swf files. The proplem is that these files are cached so when they load the updates aren't shown. I've read some stuff about loading vars or xml with a random function to prevent it from caching, can that work with swf files? Maybe something like:
loadMovie ("news.swf?="+random(1000),_root.dropPage_mc);
I've placed the meta tags in the main html to stop that from caching; which doesn't really work. Could the same be applied in the html? Or maybe a php function when loading the main flash movie?
The files that are loaded are only a few kb so I'm not worried about the user having to load the files everytime.
View 3 Replies