Professional :: Loading External Swf From Within An External Swf?

Dec 20, 2010

everything was going fine on a website project I've been working on, until yesterday. I'll try to explain the whole scenario first, and I'll put the code in here too so anyone can try to figure out what is wrong. Here's the breakdown of the site:
 
1) There is a MAIN SWF file that plays an intro and then stops on the last frame with the "Main" Navigation buttons.
 
2) Inside the Root folder where the MAIN SWF resides, there is another folder called "swfs" which contains six main external navigation pages, as well as another folder called "galleries" which contains additional external swf files for six gallery pages.
 
3) On one of the layers of the MAIN SWF, there is a movie clip called "mySWFLoadingClip" that the "Main" Navigation buttons load and unload the external  swf pages onto. These all work perfectly. The problem start on the next step. This is the code I used for the navigation buttons on the MAIN SWF timeline:

[Code]...
 
If anyone can help me figure this out I would be really grateful. This is a very important project and the deadline is coming up very soon. Please help me figure out how to load an External SWF onto the main time line and then load an additional external swf from within the first external swf. I'm stumped.

View 3 Replies


Similar Posts:


Professional :: Loading An External Swf

Apr 10, 2010

I want to import an external swf file into my page, ive used the standard loadMovieNum as an action on the frame, however when I run the program i found that it interferes with the rest of the page, meaning it goes over the rest of the page. I have a drop down menu, and it means that the text loaded into the counter overlaps the drop down menu, is there any way of making it so that the movie being loaded into the counter does not overlap the rest of the page?

View 11 Replies

Flash :: Loading / Unloading External SWF Using Buttons From Loaded External Files

Feb 23, 2011

I spent almost a week trying to figure out how to unload a currently loaded swf using its button and loading a new swf... I have three files, a main.fla, file1.fla and file2.fla. In my main.fla, I have a code which loads the other two files. If i will click the "unload" button in the file1.swf, I would like the main.fla to unload the file1.swf and load the other file, file2.swf. Here is the code to load the file1.swf:

[Code]....

View 1 Replies

ActionScript 2.0 :: Loading External XML On An External Server Into Flash Movie When It Is Uploaded

Jun 4, 2004

[FMX] I am having trouble loading an XML file on an external server into my flash movie when it is uploaded. The data loads in fine when the flash file is on my local computer with the xml file on a server. As soon as the flash file is uploaded the XML data will not load in.

View 2 Replies

Professional :: Loading External .swf Files?

Jan 20, 2010

I'm working on a simple example of loading external swf files with some ActionScript.I've placed an instance of List Component and gave it an instance name of loadList. Using Component Inspector, I assigned data for 4 external files as below:

Next, I've added a UILoader component (instance name - loadWindow). The code that is supposed to load the content into UILoader is this:

loadList.addEventListener(Event.CHANGE, selectItem);function selectItem[code]..........

View 4 Replies

Professional :: Loading And Unloading External SWF?

Apr 1, 2010

I'm trying to load an external swf and unload it after its completion. I have tried a few things and am stuck. Here is my current code to loading the swf, which seems to be working fine, its the unload I cant get:

import flash.net.URLRequest;
import flash.display.Loader;
import flash.events.Event;
import flash.events.ProgressEvent;
function startLoad() {
[Code] .....

View 3 Replies

Professional :: Loading Class From External Swf?

Jun 14, 2010

I found some code that let's you load variables from an external swf. I'm trying to adapt it so that I can use the symbols from external swf library in my main swf. I get an error telling me 'call to an undefined method...' and then the name of the symbol I am trying to import to the main swf (testMe123_MC). Here's the code of my external swf as:

[Code]...

View 1 Replies

Professional :: Loading External SWF Files Into A FLA

Jan 21, 2011

I'm having trouble importing an external .swf into my .fla. file. The only AS that is working gor me is-
 
loadMovie("panoSceneNoMarkers.swf", _root);
 
However, once the swf shows, it replaces the background interface. I assume I have to add a _level into the code but how?

View 1 Replies

ActionScript 3.0 :: Loading In And External Swf And Unloading It From A MC Button Inside The External Swf?

Nov 2, 2010

I used to do this fine with AS2 and now i'm struggling to get it to work in AS3.my code is as follows:

PW1.addEventListener( MouseEvent.CLICK,loader1 );
//==================== PS function =============================================
var ldr:Loader = new Loader();

[code].....

View 3 Replies

ActionScript 3.0 :: Loading External SWFs From Another External Swf Into The Main SWF Container?

May 4, 2011

I have created a main "site.swf" file that loads a "default.swf" file into a container after a preloader. On this default.swf file I have buttons that needs to load new external SWF files in its place in the container. All of the external SWFs contain buttons and navigations that will also call up other external SWFs into this container. So, I would like to know how to program each button (some are movieclips as buttons) to unload itself and load the respective SWF into the container (eg. AboutUsButton to call up aboutus.swf into the container). I do not have a main navigation on the site.swf file bacause the navigation changes on each SWF that needs to be loaded into the container.

View 2 Replies

ActionScript 3.0 :: Loading External Pngs And External Text With Html?

Jul 19, 2009

I want to load external png's through this code:

(for this code, check the mcBandPreloader in de .fla file)

Code:
var imageLoader:Loader;
var RespJpeg:String = "images/arch1Proj.jpg"
function loadImage(url:String):void {

[Code]....

Here the problem is that I can't type html in my external txt file. (I did checked the html button in Dynamic Text Properties. What am I doing wrong here?

.fla can be downloaded at [URL]

View 2 Replies

Professional :: Addchild() Not Loading External Swf When Run In Browser

Jul 4, 2010

I've created a couple of flash animations, fairly simple, but the whole relies on loading external swf files and then unloaing them.
 
The base file works fine, loads the externals and unloads them (although I need to preven the user from hitting the unload button when there is nothing to unload) and will then load another just fine, IF I run it directly from my file system.
 
I want it to be on a web page, but when you click the button to load the external files, nothing happens.  Safari tells me it cannot find the file, and I'm using the exact same directory to test.
 
So, works fine when testing with flash (CS4) and running directly from the directory in finder, but from a web page, it cannot find the file.

View 6 Replies

Professional :: Loading Multiple External Images?

Oct 22, 2010

I have created invisible buttons which when clicked will load an image into a UILoader. When testing, an output error message comes up saying:

Error #2044: Unhandled ioError:. text=Error #2035: URL Not Found. URL: file:///E|/butcher1/images/cut0.jpg

I thought it might have been incorrect naming conventions or instance names but I have checked and I'm sure i've got it all right.
 
Could it possibly have something to do with my setup of the timeline as I have all my layers on the same line.
 
Should I start all over?

This is what some of the code looks like an i have done the same for the rest of the invisible buttons

this is what part of the code looks like...

cut7_btn.addEventListener(MouseEvent.CLICK, fl_MouseClickHandler_3); function fl_MouseClickHandler_3(event:MouseEvent):void{ // Start your custom code // This example code displays the words "Mouse clicked" in the Output panel. trace("cut7_btn"); probackground.iloader.source = "images/cut7.jpg"; // End your custom code}

View 16 Replies

Professional :: Loading An External Movie Clip?

Feb 15, 2012

Last time I wanted to load an external clip I could do it like this on (release) {

[Code]..

So now I want to achieve exactly the same thing in AS3, I have been looking at examples on the web but am getting all sorts of errors and basically don't know what I am doing.  I also want to know how to navigate to .swf files in a file structure, as I have to build an old school fscommand file structure for a cd-rom.

View 2 Replies

Professional :: Different External .swf Files That Are Loading Onto A Parent?

Feb 16, 2012

I have two different external .swf files that are loading onto a parent, I have the same code on each, one works fine but the other one is giivng me this error,
 
TypeError: Error #1009: Cannot access a property or method of a null object reference.at aavar/frame1() at flash.display::MovieClip/gotoAndStop() at aavar/mouseA()my FLA still runs, but I would like to work out what is going wrong.  I do not have any references to this function in my document class but it doesnt like it! What is going on here?

[Code]...

View 1 Replies

ActionScript 3.0 :: Stop .mp3 And .flv In External Swfs When Loading A New External Swf?

Apr 10, 2009

Specifically, I am building a flash page that loads external swf files and inside some of the external swf  files, I would like to add audio and flash video (flv) streaming from the Flaash Media Server. In some of the external swf files, (using a FLVPlayback component) when you press a button on the main timeline to unload the current playing swf the audio/video continues to play after loading the new external swf file.So I believe that my approach is all wrong and I should be working to dynamically load the .mp3 and.flvs in the external swf ... my questiion is how to unload those assets when loading the new external swf

View 1 Replies

ActionScript 3.0 :: Loading External Swf Which Attached With Its Own External Class?

Jun 27, 2009

Lets say I have Main.swf and sub.swf, and I wanna load sub when I press a button from Main, but sub.swf has its own external class file attached, so here is the problem, when I load sub using loader class and I would get this message from the output panel:

TypeError: Error #1009: Cannot access a property or method of a null object reference.
at subScript()

seems loader class can not access sub.swf's external class when sub is being loaded.

View 1 Replies

ActionScript 3.0 :: Loading External Swf That Loads Other External Files?

Apr 24, 2010

Lets say I have subgallery.swf file that loads jpeg images. And I have gallery.swf file that loads subgallery.swf.The jpeg images and both swf files are in the same folder.When I test gallery.swf it loads subgallery.swf but subgallery.swf doesn't load images. When testing subgallery.swf alone, it loads jpeg files.Is there any limitation or setting preventing external swfs loading other content?

View 2 Replies

Professional :: Net Stream Glitch When Loading External Content?

Jan 11, 2010

I have a program that plays an FLV using netStream and has cue points embedded which trigger the loading of external graphics.  If the code for loading the external graphics is commented out the video plays normally.  However, if the code to load the external graphics is left in, each time a graphic is loaded the video appears to stop and start. FYI, I built the program using a FLVplayback instance on stage and there is no glitch when the images load, but I have a lot of other things built using the nestStream class so I'd prefer to do it that way.

View 3 Replies

Professional :: Target Event Listener When Loading External SWF

Jan 22, 2010

I'm looking for an alternative to using:
stage.addEventListener(KeyboardEvent.KEY_DOWN, keyFunction);

The problem I am encountering is that eventListener above works fine on its own(stand-alone swf), but when loading an .swf externally into another .swf, the listener fails with the following error:
TypeError: Error #1009: Cannot access a property or method of a null object reference.

How can you target the event listener when loading as an external .swf differently?

View 3 Replies

Professional :: Loading External Movie Clips Randomly

Mar 2, 2010

I am currently trying to load a movie clip in the main SWF. Got that done.Then call and replace the first movie clip with another, got that done too.This is for a menu i am making, I am not too great in action script. I am working in AS2.Problem is after I call the second external movie clip into the main SWF, it all stops working.Is there a way I set this up that no matter what it keeps loading and unloading the external movie clips? This is what I have so far.[code]This starts with the "king_menu.swf" already loaded, i have it unload it and load "dqueen_menu.swf" to the call point named "load_king".I am guessing I need to have a universal call point for all my external movies to load and work in a random chain.

View 10 Replies

Professional :: Loading External Text File Into Animation?

May 6, 2010

I'm a total rookie working with flash and i'm wondering if theres a way to call in text from an external file. I'm building a news feed on my companies home page, and I'd like to be able to have my boss edit it easily 'cause he doesn't know how to use flash.
 
you can see it here... [URL]

View 1 Replies

Professional :: Methods Used For Loading External Swfs And Assets?

Jun 29, 2010

My client wants to take all the Flash games on their website and put them on a portable device that's not connected to the internet. I need to make sure that the swfs are completely self contained, in that they do not require the internet to load any swfs or other assets. The client does not have any of the fla's, so my plan is to download the swf and decompile it with Sothink, and then search the AS for these methods:

URLRequest
loadMovie
loadMovieNum
 
If the search returns results then I'll assume the game is loading something and that game will not be used. The client doesn't want to put any development time into this, so it either goes on the portable as is or not at all.

View 6 Replies

Professional :: Load An External Swf Using A Loader To Show While Its Loading

Jul 26, 2010

how to load an external using a loader to show while its loading...my swf which is to be loaded is a gallery having jus one frame on which action script is placed..

View 10 Replies

Professional :: Loading External Swfs And Playing Them In Succession?

Sep 15, 2010

I found this code for loading external swfs and playing them in succession.
 
It works when I use the external swfs that come with the code, but not when I try to use any other external swfs.

I can't figure out why - does anything seem obvious (the clip swfs are here [URL]
 
// Array of external clips to use. Variable index refers to next clip to be displayed.var clips:Array = ["clip0.swf", "clip1.swf", "clip2.swf"];var index:int = 0; 
// Stuff to load swf filesvar thisLoader:Loader = new Loader(); thisLoader.contentLoaderInfo.addEventListener(Event.INIT,

[Code].....

View 9 Replies

Professional :: External Image Loading Into MovieClip On Stage

Oct 18, 2010

I am trying to load an external .swf (actually it is only an image that I published as a swf file, not a complicated movie) but I get errors. I am trying to load the .swf into a movieclip and the movieclip appears on the stage. I have put the code in frame 1 where the image should appear (in the movieclip). The code that I used is below and works fine with a .jpg and when I load it directly on the stage, that is to say, when I put the code in a frame on the stage. Why does it not 'work' right now?

I have added 'parent' in 'parent.event.target.content.y = 200;' in the first frame of the movieclip timeline, to make sure that it will appear on the (main)stage. The error that i get is this one:
TypeError: Error #1009: Cannot access a property or method of a null object reference.
at galerie2010_fla::mcBallon1_11/frame1()

This is the code in frame 1 in mcBallon1:
var imageRequest1a:URLRequest = new URLRequest("images/SWFoverig/ballon1_702x368.swf");
var imageLoader1a:Loader = new Loader();
imageLoader1a.load(imageRequest1a);
addChild(imageLoader1a);
imageLoader1a.contentLoaderInfo.addEventListener(Event.COMPLETE, onComplete1a);
function onComplete1a(event:Event):void{
parent.event.target.content.y = 200;
parent.event.target.content.x = 205;}

View 2 Replies

Professional :: Loading External Quiz Into Video Player SWF

Oct 20, 2010

I'm having some resizing/full-screen difficulty with loading an external quiz swf into a video player swf. What's happening is that, when the quiz swf is first loaded into the video player, the size of the loaded swf has the correct dimensions and aspect ratio. That part is fine, but as soon as I try to fullscreen or resize the video player (using listeners with stage dimensions) the external quiz swf changes dimensions on me and looks vertically squished and smaller.

I've talked to other people about this issue, and they're telling me that this issue is occuring because the quiz swf contains elements outside of the stage. These hidden elements are supposedly giving the video player "incorrect" dimensions. Is this really the case? Is there any other solution other than fitting any hidden elements within the quiz swf within the stage? And if this is the only solution, then why on initial load does the quiz swf show up properly?

View 1 Replies

Professional :: Next Button In Array For Loading External Swf Files?

Jan 5, 2011

Someone here recently helped me immensely with a question I had about creating a previous button in my flash file that would allow the user to click on the button and view the previous swf file.  I'm hoping someone can help me with making the Next button now, too.

I have a movieclip that loads an array of external swf files.  I thought making the next button would be as simple as changing just a select few things to the previous button.However, that's not working.  When I try that, the movieclip doesn't even load the swf files.  Below is my AS2 code for my file.  I bolded the part at the end that is for the previous button.  Does anyone know how to make the previous button?

[Code]...

View 16 Replies

Professional :: Loading External Swf Then Going To Frame In Root Timeline?

May 10, 2011

when a button is clicked, I want an external swf to load and play, then I want to go back to a particular frame in the original timeline.

View 2 Replies

Flash :: Professional - Loading External Content In Frame

Sep 5, 2011

I have been searching on how to do this but I haven't found anything that I can use yet. I have a flash template that has about 6 different flash files. There is a menu on the right side that allows you to call the other files like this.

[Code]...

View 3 Replies







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