ActionScript 3.0 :: Load External Swf ("index.swf")

Mar 10, 2012

1. I have created "index.swf" in AS3. Has it's own "MainClass" class.

2. I created "holder.swf" which is the main landing page. Has 2 buttons, for the viewer to load the site in fullscreen or standard.

3. In the timeline of "holder.swf" I have created 2 frames, 1st frame containing the buttons, second frame containing the AS3 external swf loader script.

It does not seem to want to load my "index.swf". I have tested a million different ways, it load other swf's just fine, AS2 and AS3, but for some strange reason it just will NOT load "index.swf". This is driving me crazy, I have a feeling it has something to do with a class conflict. I have tried (import MainClass;) in the first frame of "holder.swf" and no luck.

View 20 Replies


Similar Posts:


ActionScript 3.0 :: Play External Preloader Before It's Load Original Movie Index.swf?

Sep 21, 2010

I like to play external preloader before it's load original movie index.swf.But I have a problem on resizing index movie.

Here is preload AS3 code:

package
{
import flash.display.*
import flash.display.MovieClip;

[code]....

View 1 Replies

ActionScript 3.0 :: Set Index Of An External Swf In A Mc?

Apr 23, 2010

a main movie clip (photo_group) which call an external movieclip from xml which call another movieclip which load a video... but the video is placed at the bottom of my main stage and i would like to have it at the top of everything.

main clip :
function loadClip():void {   var Clip_request:URLRequest = new URLRequest( folderswf + photo_list[swf_no].swf); var Clip_loader:Loader = new

[code].....

View 8 Replies

Professional :: Created SWF File But - Get It To Load As Index.htm?

Jun 30, 2011

I have created a Flash intro for my website my hosting compnay is Godaddy and the only load certain types of index files.  How do I either embed or publsih this swf file to display as whole screen. When I publish as intro.htm I only get a small window in the upper right corner.

View 1 Replies

ActionScript 2.0 :: Load An Swf That Doesn't Take Whole 1020x610 Of Index.swf

Oct 18, 2005

I have a main swf named index.swf with only 1 frame, on that frame I have actionscript that creates an empty movieclip loads an external swf and centers it depending on the user's browser size.My problem is if I load an swf that doesn't take the whole 1020x610 of the index.swf it won't be centered.[code]

View 7 Replies

IDE :: Full Movie Not Loading - Only Index SWF Load Online

Mar 1, 2009

Setup: I have an html page with an embedded flash object. The object is an "index.swf" with an empty movie clip on it. External swf's load onto the index swf via the empty movie clip when buttons are pushed.

Problem: On my test server in dreamweaver, the swf's load fine. When I put them on my server and test it online only the index swf loads. not the initial swf or any of the other swf's.

Site: [URL]
Files: [URL]
(index page and home page for your reference)

View 3 Replies

ActionScript 2.0 :: Call External Swfs In An Empty MC On The Index Page?

May 28, 2008

I am currently building a website and what i need to do is to call external swfs in an empty MC on the index page regarding which buttons of the nav you clicked on.It works, very nicely. But then i need to be able to preload another swf on the index when i click on a thumbnail.

e.g: index load the "who.swf" first. On the who.swf there are 2 thumbnail and when click it must replace the "who.swf" with contact.swf. It works but the only problem is that i cant make the preloader of the index to preload the empty MC which load all the external swf.

Is it because i am using loadMovie and not loadCLip.

View 2 Replies

Flash :: Get The Specific Array Index Based On Value Inside The Index's Object?

Jun 22, 2011

So, for sending to individual streams we have to reference the connected netStream we want to send to in some way like this:

sendStream.peerStreams[0].send("MyFunction",param1,param2);

and I have to determine which peer I'm sending to by their ID such as "peerID1234"

I know that you can check the peerID of the stream by doing:

sendStream.peerStreams[0]["farID"]

how can I make my send stream function know to use the array index where the peerID is?

so basically it could be like:

sendStream.peerStreams[where peerStreams[]["farID"] == peerID].send("MyFunction",param1,param2);

View 1 Replies

ActionScript 2.0 :: Flash 8 - Load Specific Swf Files When The Screen Is Refreshed Or When Someone Clicks On The Home Or Index

May 29, 2007

awhile back I completed the load random swf tutorial provided here on kirupa. But now I want to load specific swf files when the screen is refreshed or when someone clicks on the home or index. here is the code, can anyone point me in the right direction?

[Code]...

View 1 Replies

ActionScript 2.0 :: External Text Files Wont Load Into External Swf File?

May 28, 2007

Structure: There is 1 main file that loads external SWF files depending on what is clicked on.One of the external SWF files loads its text from external text files. This works fine when viewing the SWF applet on its own. But when viewing as a whole site, the text doesnt appear. Very annoying.I made that particular SWF on my mums computer running Flash MX 2004The flash file itself uses the Scrollbar component from MX.Could someone tell me why the text doesnt load in this scenario? It runs fine on its own, just not as an external SWF.

View 4 Replies

Actionscript 3 :: Load A Local External SWF, The Application Load-unload Infinitely?

May 6, 2011

I have a Flex application that just load an external SWF, but the application load and unload infinitely my swf.

[Code]...

View 2 Replies

ActionScript 2.0 :: Trigger External Swf To Load Into Main Swf From Button In Another External Swf?

Apr 22, 2007

I am trying to get a nav button in one movie (main_nav.swf) to target a my main movie (index.swf) and load a sub nav movie (metals_subnav_infinite.swf) into it. The sub nav movie will do a similar task - loading a portfolio swf into main movie (index.swf). Here is the file breakdown of my working files:index.swf - main final movie which loads "main_nav_infinite3.swf" on startmain_nav_infinite3.swf - loads main nav "main_nav.swf" and scrolls it infinitely (infinite menu)main_nav.swf - main nav with buttons that trigger sub nav "metals_subnav_infinite.swf" to load into index.swfmetals_subnav_infinite.swf - loads sub nav "metals_subnav.swf" and scrolls it infinitelymetals_subnav.swf - sub nav with buttons that trigger "folio.swf" (have not created this file yet!) to load into "index.swf"The script I was focusing on is in main_nav.fla and it is:

metals_mc_bn.onRelease = function() {
reActivateMenu();
this.gotoAndStop(3);

[code].....

View 2 Replies

ActionScript 2.0 :: CS3 : Load External Library Objects From An External Swf?

Jan 19, 2009

How do you load external library objects from an external swf? I want to have an external swf that only contains library objects that are exported for Actionscript, and load these from the master .swf file dynamically during the master swf execution. (I may have multiple external swf resource files)I want to be able to load the external swf, and then access it's library objects via actionscript in my main swf file.

View 6 Replies

ActionScript 3.0 :: Using Loader To Load An External Swf And Control The External Swf?

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

ActionScript 3.0 :: Load The .swf File Into My Index.swf File?

Aug 2, 2011

i'm working on a project, where i purchased a news scroller...and now i'm trying to load it into my original project with this code

Code:
var l:Loader = new Loader();
l.contentLoaderInfo.addEventListener(ProgressEvent.PROGRESS, loop);
l.contentLoaderInfo.addEventListener(Event.COMPLETE, done);[code].......

i have tried other different codes and it just won't load the file, i've tried to load in other files and it works without any glitch at all..so i'm wondering if there is any other way to load the .swf file into my index.swf file...

View 4 Replies

Actionscript 3 :: Load An External Swf File Using Loader.Load?

Sep 19, 2011

When i try to load an external swf file using Loader.Load(); The swf starts playing even before the init event is fired. Is there any way to stop the swf from playing atleast until the init event or complete event is fired?

View 1 Replies

ActionScript 3.0 :: External Swfs Load In Different Places On 2nd Load

Oct 19, 2009

I'm loading (and unloading) external swfs into a holder in my main document. However, they seem to load perfectly the first time, but after that, they load at a different x and y. I've seen this happen before in someone else's file, but I'm not sure what the solution is.

This is the bare bones of it:

Code:

sceneHolder.x=0;
sceneHolder.y=0;
addChild(sceneHolder);

[Code].....

View 1 Replies

ActionScript 3.0 :: Load External Swfs Which Load Videos

Apr 11, 2009

Okay so I am trying to load external swfs which load videos dynamically.

I can load the swfs into the parent fla fine (if I remove all the code and just place a circle or something on the stage of the swf), and the swfs are also loading their respective videos correctly. But when I try to load the external swfs, if they contain any casting related code in them, I'm getting an error

[AS]TypeError: Error #1009: Cannot access a property or method of a null object reference.
at swf1_fla::MainTimeline/frame1()[/AS]

Is there some specific method to casting within external swfs?

My code for loading the videos is this:

[AS]var vc:NetConnection = new NetConnection();
vc.connect(null);
var vs:NetStream = new NetStream(vc);

[Code].....

View 1 Replies

IDE :: Load Mp3 From External Xml File And Make To Load Random?

Dec 24, 2009

How I can make this script lo load mp3 files via an external xml file like music.xml and if is possible to load random

Code:
music = new Sound();
music.onSoundComplete = function() {

[code]....

View 1 Replies

Actionscript 3 :: After Shuffling Array - Variable = Array[index] Gives 0, Trace(array[index]) Gives Correct Number

Aug 16, 2011

I think it would be simplest to explain it like this:

[Code]...

View 1 Replies

ActionScript 1/2 :: Load An External Xml In An External Loaded .swf

Jul 24, 2009

I've got a small (more than 100 hours of thinkwork up till now!) problem I can't seem to solve:

I want to populate an external loaded swf with an dynamicly loaded xml fil (loaded from my config.xml).

[Code].....

how do I get the external xml into the external swf as a variable for the actionscript in the external loaded swf (So I just want to put the path in the script in my external swf...).

View 5 Replies

Actionscript 3 :: Using Events In An External Swf To Load A New External Swf

Mar 31, 2010

I'm trying to get an external swf to load when the flv content of another external swf finishes playing.

I've only been using actiosncript 3 for about a week and I've got to this point from tutorials, so my knowledge is limited.

This is what I've got so far:

Code for External swf (with flv content):
import fl.video.FLVPlayback;
import fl.video.VideoEvent;
motionClip.playPauseButton = player;

[Code].....

I'm starting to get an understanding of how all of this works, but it's all to new to me at the moment, so I'm sure I've approached it from the wrong angle.

View 1 Replies

Actionscript 3.0 :: External Menu Load External Swf

Aug 2, 2009

i have a main.swf and i load menu.swf into main

[Code]...

this works right on its own but when using addchild in main.swf the menu loads the button events work, even click but it will not load the associated file. If i place the menu code in the main.swf it loads all required files. QUESTION How do reference menu.swf when loaded as an external swf?

View 2 Replies

ActionScript 2.0 :: External .swf - Unable To Load CSS With External .swf's?

Dec 24, 2006

I have a "about.swf" file that loads a CSS file and formats some dynamic HTML text. On its own, it works fine...but when it gets loaded into my "Main.swf", it doesn't work. What am I doing wrong? Is there a bug that doesn't let you load CSS with external .swf's?My style sheet and index file holding the "Main.swf" are all on the root level of my site. The "Main.swf" has a "holder_mc" clip that I load the "about.swf" into which has the CSS formatting. When loaded into "Main.swf", it doesn't work.

View 9 Replies

ActionScript 3.0 :: Load External SWF And Unload External SWF

Jun 13, 2010

I'm sure this question has been answered but I have been looking everywhere and all I can find is how to load an external SWF but not how to unload it. I come from a basic knowledge of AS2 and it was easy for me to load using levels but I have run into a wall. I have a main swf and to keep the initial filesize small I would like to split some image intensive sections out and load them when needed.

View 6 Replies

Professional :: Projector Load Several SWF And Each Of Them Load Different External MP3?

Nov 8, 2010

I have problems in running a projector under win 7. My projector load several SWF and each of them load different external MP3 that plays during the show.Under Win 7 sometimes the sound (Mp3) stops.

View 5 Replies

ActionScript 2.0 :: Load= True - Load An External .swf?

Aug 30, 2004

i have a scen named preload, and i want it to load an external .swf, but once it's done doing so to move on to frame two so far i have

[Code]...

and this doesn't work, i think my problem is the "if(this.getBytesLoaded()" but i am not sure how to identify if the movie is loaded, maybe with true and false? but i am not sure how i would do that,

View 11 Replies

IDE :: Preload External Swf Then Load Another External Swf On Top Of It?

Dec 17, 2009

Normally I do get by with a lot of R&D, but for some reason am stumped and really pressed for time!An interactive file (say main.swf) is already ready to go.I now need to make this play over a background (say bg.swf) which is a fairly heavy file.

What I'm trying to do it this:Open a new flash document (say "index.fla")- on the first frame, call "bg.swf" by using "loadMovie('bg.swf', 2)"[where 2 is the level number] and then calling "main.swf" by using "loadMovie('main.swf' 4)" [where 4 is the level number]

Now the problem I am facing is this:"bg.swf" is quite a heavy file so takes quite some time to load, whereas "main.swf" is much lighter and loads before "bg.swf" buffers fully.

What I want to achieve is this:Create a new swf file (say "index.swf"), making sure that "main.swf" does not load until "bg.swf" loads completely under it. Note: I cannot make any edits to "main.swf" (which is like a slideshow) file and it is rendered such that it starts the slideshow after 5 seconds.

View 1 Replies

Load An External Swf?

Nov 4, 2009

I can do this with a button ok eg[code]...

this loads into the empty mc But I want to to happen automatically when it enters frame 4. So nobody has to click anything- it just loads.

View 2 Replies

ActionScript 2.0 :: GetURL("index-"+Number(num-1)+".html"); - When Press "Home" To Load For Example Actionscript.org

Sep 1, 2010

I am trying to modify a ready for use menu but can't understand what I should change. Each button of this menu points to 6 files: index.html, index-1.html, index-2.html, ... etc. I want to can write links instead the link to be a file as is index.html. I want when press "Home" to load for example actionscript.org

View 5 Replies







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