ActionScript 3.0 :: Loading Multiple Swf File Into A Main Swf File?

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


Similar Posts:


Professional :: Multiple Fla Projects - When Loading Main Swf File 3 Other Swf Files Are Also Loaded

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

Media Server :: Connection Failed When Loading .asc File On Main.asc File

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

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

ActionScript 3.0 :: Remove / Unload External Swf File(s) From The Main Flash File And Load A New Swf File And Garbage Collection From Memory?

Sep 12, 2009

I can't seem to remove / unload the external swf files e.g when the carousel.swf (portfolio) is displayed and I press the about button the about content is overlapping the carousel (portfolio) . How can I remove / unload an external swf file from the main flash file and load a new swf file, while at the same time removing garbage collection from memory?

View 15 Replies

Professional :: Load Multiple Swfs To Main Flash File?

Aug 27, 2011

I am using the following codeIn actions for Frame 1:

var myrequest:URLRequest=new URLRequest("A.swf");  var myloader:Loader=new Loader();myloader.load(myrequest);img1.addEventListener(MouseEvent.CLICK, clickButton);function clickButton(event:MouseEvent):void{ 

[code].....

View 7 Replies

IDE :: Loading An External Swf File Into Main Site

Jan 16, 2004

i am extreemly new to flash / website design ( i made my first site 6 months ago ) i am very interested in making a good looking flash site. I have made a simple flash site before using dynamic text loading it form .txt documents. too bad the site is realy lame and i want to make a better one. here is the url to my site here This came about throught the useage of tutorials on this site. i am using flash MX version 6 now i am in the process of making a new site for my profile which will be totaly flash, using flash movies getting imported into a main site under a certain layer.here is how it is set up.

[Code]....

View 3 Replies

ActionScript 3.0 :: Loading An External Swf File On Main Stage?

Sep 3, 2010

I m loading an external swf file on main stage which has some links, I want if I click on any of these links the timeline of the main stage should chenge.

View 1 Replies

ActionScript 3.0 :: Make A Preloaded For Loading The Main Content Of The Swf File?

Feb 5, 2009

I want to make a preloaded for loading the main content of the swf file. I put my main program code on frame 2 and put this code on frame 1:

import flash.display.*;
import flash.text.*;
import flash.utils.*;
import flash.net.*;

[Code].....

My issue is it does not seem to track the progress. The trace statement in the onProgress function only displays after it is fully loaded. I thought this was suppose to loop.

View 9 Replies

ActionScript 2.0 :: Loading An External Swf File/movieclip Onto The Main Stage?

Jan 7, 2009

I am loading an external swf file/movieclip onto the main stage - it is a simple transition and once it has finished playing, I want to jump to a frame in the main stage.I've loaded the movieclip onto the stage, but don't know how to jump to another frame after it has played and stopped...what's needs to be added to this to goto a frame on the main stage........

on (release) {
loadMovie("black.swf", holder);
}

View 2 Replies

ActionScript 3.0 :: Flash Loading External Swf And Controling From The Main File

Aug 13, 2011

I am loading a swf named ball.swf in the main.fla. the swf is loading but not playing the next frame that i want.[code]

View 1 Replies

Actionscript 3.0 :: Loading Multiple External Txt File?

May 31, 2010

I'm trying to load multiple external txt files in different sections. Right now I only got the home section working and I'm trying to load another external txt file on the services section but it's not working.

View 1 Replies

ActionScript 3.0 :: Loading Multiple SWF File - DisplayObject Error

Apr 11, 2010

I am loading multiple swf files and I get an error. All files do load.
Error #2025: The supplied DisplayObject must be a child of the caller

Below is a snippet of my code.
var myRequest38:URLRequest = new URLRequest("sisil_website.swf");
sisilWebsite_btn.addEventListener(MouseEvent.MOUSE _UP, loadb38);
function loadb38(event:MouseEvent):void {
myloader.load(myRequest38);
stage.addChild(myloader);
[Code] ....

View 5 Replies

ActionScript 2.0 :: Multiple MovieClips - Loading Text From External File

Apr 1, 2010

I have to modify an existing flash 8 movie (not created by me) which uses as2, and is composed of multiple movieclips. One such movieclip holds a textbox (static) which however needs to be updated frequently to show latest news, and because of this now I have to make this movieclip's textbox to read texts from an external file instead, a text file to be precise. How to proceed with this in Flash 8 AS2, whether I need to create a new layer for the as code or add it directly to the movieclip's layer, and also the as 2 code itself, as I tried the following but it is returning an error that cannot load the text file, I also change the textbox from static to dynamic and gave it an instance name Text1 (I once tried something like this in flash cs4 and it worked fine, but in flash 8 its not working.

Code:
var timeStamp:String = "&timeStamp=" + new Date().getTime();
var noCacheUrl:String = "?noCache=" + Math.random() + timeStamp;
var myLVars = new LoadVars();
myLVars.onLoad = function(success) {
if (success){
_root.mcNews.Text1.text = this.VarEn;
}}
myLVars.load("News_En.txt"+noCacheUrl);

View 4 Replies

ActionScript 2.0 :: MXML Project In Flex 2 - Make SWF File As Main Executable File?

Nov 26, 2006

I have to make a project for school. It will be like a tutorial, but into an application. I already made a part of it in MXML and a bit of action script but I encountered a few problems that are over my newbie limits. So the Flex Builder 2 makes a SFW file, in the main folder of the "project". I want to make that SWF file my main executable file. I have a folder with some pics, and another folder with Action Script Files. The code lvl that I know atm is ABSOLUTE BEGINER... I don know how to make my SWF file have a specific name when I run it.Here is a picture of a training exercices that should make thing more clear:Some people told me that I should use a HexEditor and stuff. Is it ture(what u think?).

Next problem. I dont know how to make the Stage to be fix. I mean.. I dont want the stage to be resizeble. I tryed to change the stagescalemode but that wasn't it. I toke a look at the help files of Flex from the net, about the Resize action and SystemManegment, but I didn't find out what I wantend.

View 4 Replies

ActionScript 3.0 :: Flash - Pass Variables From One Movie Clip's AS File To Main AS File?

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

ActionScript 2.0 :: Load Variable From Text File To Main Movie (swf File)?

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

ActionScript 2.0 :: Including External Swf File With Preloader In Main Swf File

Apr 21, 2008

I'm creating a flash 3d website for a company. The idea is that there is one overall swf file - this holds the navigation and design. Once the user clicks on a button, it goes to frame 10, I have included the following script to load a swf file

loadMovie("deepbartesting.swf", maincontent);
this.onEnterFrame=function(){
if(movieClipName._currentframe==5){

[Code]....

the preloader works, but instead of going to frame 2 of that swf file, it goes to frame 2 of the overall swf that holds the navigation. Does anyone know how to get around this so that it goes to frame 2 in the same swf file as the preloader?

View 1 Replies

ActionScript 2.0 :: Preloading From The Main Swf File To Load Other Swf File

Mar 31, 2010

I am using preloader from the main swf file to load other swf file, if i use a preloader inside my other swf file then it wont show so sorting that problem I am referencing this nice material on preloaders [] I have sorted the preloader problem by calling the preloader from the main swf file and hiding the other swf file till its fully downloaded. but now the problem is I have got no functionality from that swf file, i mean i have got that mouse effect in the other swf file that where ever you move the mouse in the screen the showreel adjusts itself but its static now.

I have got this container mc in my main swf file, and i am using the other swf file by clicking the button, the swf file loads in the container mc after showing the preloader but its kind a static.

View 9 Replies

ActionScript 3.0 :: Embedded Two Class File Into Main.fla File?

Aug 10, 2010

can i embedded two class file into main.fla file?

View 0 Replies

ActionScript 3.0 :: Detect End Of External File (swf) From Main File

Mar 11, 2010

I have a video in .flv format that I have converted into .swf. And this .swf file, I have added it in into my main flash file by using Loader. And now, I want to detect when this video will finish playing so that I can go to the next frame which is not looping the video again and again.

View 3 Replies

ActionScript 3.0 :: Supply XML File All The Time With The Main File?

Jul 27, 2010

when we create a flash file with xml loaded data, do we need to supply that xml file all the time with the main file?Cant we just send main file to the client?

View 3 Replies

ActionScript 3.0 :: Load An SWF File From A Main Swf File

Feb 2, 2009

I wanna know if it is possible to load an SWF file, from a main swf file, but OUTSIDE of it. What I mean to say is, to open it as it was a completely different thing.. like, for example, when you click a link of a video on a website and it automatically brings up your windows media player.. i dont wanna load the swf inside the main swf, I want another flash player to pop-up and play it separately..

View 1 Replies

ActionScript 2.0 :: Main.swf File That Should Open Another Swf-file,

Oct 6, 2004

Problem with external swf loading into a main swf.I have a button inside my main.swf file that should open another swf-file, putting it on the same place as an invisible movieclip called "(projectyta)". I want it there and it works out fine.[code]The external swf file shows just as I want it to show when I press the button from the main.swf, Only, I have buttons inside my external swf that doesn't work. The external swf file just stays in frame 1 all the time.

View 2 Replies

ActionScript 2.0 :: Command External SWF-file To Play Outside Of The Main Movieclip Via Button From Main?

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

Multi File Preloader - File Start Loading Files But Does Not Loop?

Jan 6, 2010

what I'm trying to do is make a preloader that will preload about 20 external SWF files before it lets you get to my main file. I want to do this because my main file needs the SWFs to be ready to go once its done loading. I have looked around and i found a few ways to do this with the "if (loadedBytes>=totalBytes)" and the code loops back till the files are done loading... this would be just what i need but i cant seem to get it to work. the file just seems to start loading my files but does not loop and just runs the time-line even once i state what frames i want it to loop.

View 6 Replies

ActionScript 2.0 :: Load Main Swf File (main.swf) On Top Of Background

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

ActionScript 1/2 :: Loading Swf File Into An Existing Flash File - Script For Waiting It To Play Until It's Fully Loaded?

Feb 6, 2010

I have a flash file that is 1.5mb in size. As it takes about 6 minutes for someone on dialup to load this file, I have created a smaller swf file and loaded the larger one from it but I don't want the larger one to begin to play until it's fully downloaded. How do I set this up? I have set up the action script 2 as follows: loadMovieNum("top2.swf", 0);

View 7 Replies

Flex :: Extract A Zip File From A Zip Archive Without Loading The Whole File Into Memory

Mar 10, 2011

Is there a way to extract a single file from a zip file in Adobe AIR?

I'm using NoChumps zip library to extract files from a zip. In this library the entire IDataStream is loaded into memory and after that you can extract file entries easily. In cases where the zip is 5 to 10MB there are no problems. But when the zip is 80MB, which many are, 80MB is loaded into memory. This causes the app to crash and run slow on mobile devices. According to the zip specification,

"A ZIP file is identified by the presence of a central directory located at the end of the file, this allows appending of new files. The directory stores a list of the names of the entries (files or directories) stored in the ZIP file, along with other metadata about the entry, and an offset into the ZIP file, pointing to the actual entry data."

Also, I do not have control of the size of zip files but most average is 60 to 100MB. Files inside are ~4MB.

View 2 Replies

ActionScript 2.0 :: LOADING FILE. File Plays Before Loding Is Complete?

Sep 5, 2009

I have a "loader.swf" after which my "main.swf" loades. I have used a loaderPro v3 (AS2) component. Doing that was easy but then when it starts loading, even before the loading completes the main.swf starts playing in the background. And i have no coding in my actions panel.

View 2 Replies







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