ActionScript 2.0 :: Loading A .swf Into A Loaded Swf.

Nov 5, 2002

What I have here is my main Flash movie.

My main flash movie goes out and loads an external swf into an empty MC

_root.contents.loadMovie("2_portfolio.swf");

There is no problem there.

Now in one of the scenes on the loaded movie I want to load some other swf's into a blank MC. I am using the code (just one example)

_root.flash.loadMovie("flash/cardcage.swf");

The movie works fine when I run it by itself "2_portfolio.swf"

But when I run the whole movie, (the one that loads 2_portfolio.swf)the secondary .swf files do not load.

View 3 Replies


Similar Posts:


ActionScript 3.0 :: Pre-loading Images Loaded From XML?

Apr 20, 2009

I have a Gallery that loads thumbnails from an XML. I have added a pre-loader to each one of the thumbnails as it is being loaded from the XML. My problem is that I can't figure out how to remove the pre-loaders after it has called the Event.COMPLETE. With my curent code, As it completes loading the thumbnails, it throws an error and only removes the very last pre-loader. Thanks for any help you can provide.

Here is the code I am currently using.
var urlRequest:URLRequest = new URLRequest("images.xml");
var urlLoader:URLLoader = new URLLoader();

[code].....

View 2 Replies

ActionScript 3.0 :: Pre-loading Images Loaded From XML.?

Mar 26, 2009

I have a Gallery that loads thumbnails from an XML.I have added a pre-loader to each one of the thumbnails as itis being loaded from the XML.My problem is that I can't figure out how to remove thepre-loaders after it has called the Event.COMPLETE.With my curent code,As it completes loading the thumbnails, it troughs an errorand only removes the very last pre-loader.

View 1 Replies

ActionScript 2.0 :: Continuously Loading After Loaded?

Oct 6, 2006

I have a problem that i don't really know the source of. I have some flash on an html pagesimple enough. Once the flash loads, the status bar at the bottom continually says loading, or "reading" the site, or in IE "opening page, 1 item remaining". It never stops. This is very simple flash, no external swfs. The only thing i load is a small bit of XML, which loads some images one at a time on rollover, then i load a song or video if a button is clicked. I'm using netStream for the video and streaming mp3's for the songs.I know the initial thought would be the videos or songs, but this will continue to happen even if i never load a song or video. Just wondering if anyone has had this type of issue before

View 2 Replies

ActionScript 2.0 :: Loading Variables From Loaded SWF's

Jan 6, 2005

I am developing a flash board game which entails moving a piece around a board as a result of throwing a dice (the person will either move the dice themselves or it will move according to the outcome of the throw). When they land on particular squares I am going to have a random question (this is going to be a loaded SWF) appear that will have a multiple choice questions. My question to you guys is this. Can I save the result of 'multiple choice question' within the main movie / separate movie and then use this variable? I think essentially what I am asking is how do I load a variable from an external SWF.

View 4 Replies

ActionScript 3.0 :: Relative Path Loading In Loaded Swf

Mar 7, 2010

Code:
/
|-main.swf
|-game
|-game.swf
|-assets
|-a.jpg

let's say I have a file structure like above, I have game.swf loads resource by relative path like "assets/a.jpg". It runs fine on its own. But when I try to load game.swf from main.swf (using relative path again "game/game.swf") it tries to find a.jpg from "/assets/a.jpg" instead of "/game/assets/a.jpg"

View 2 Replies

ActionScript 3.0 :: Loading Images Into Array After URL Loaded

May 25, 2010

I am loading my images into an Array after my url is loaded
Code:
function urlLoaded(event:Event):void {
urlLoader.removeEventListener(Event.COMPLETE,urlLoaded);
xml=XML(event.target.data);
xmlList=xml.children();
[Code] ....

It is arrayThumb I am interested in, I wanted each each to be placed into a location within this Array. I then wanted to do
Code:
thumbArray[0].addEventListener(MouseEvent.CLICK, click_handler1);
function click_handler1(e:MouseEvent) {
trace("IMAGE CLICKED");
}

But when I try this, I get
TypeError: Error #1010: A term is undefined and has no properties.

View 2 Replies

Loading External JPEG Files And Keep Them Loaded

May 19, 2009

I have a flash file that loads jpeg files and runs through each on the timeline. I have nav buttons to go back and forth. Here is the problem, all images load on frame 5 and I do this while another image is displayed so that they are loading in the background. I do this so that my initial file size is small, but I can load images in the background making the flash file appear to load quickly and loading other elements after it starts.

So all images load on frame 5, then I go frame by frame until I hit frame 11. If I click one of my nav buttons to go back to say, frame 7, the jpeg is gone and is no longer loaded. How to load jpeg files into the library, or at least, keep them loaded after they have loaded once? I have attached my fla file for reference. I had to rename the extension to eps, but it's a fla file, just rename the extension.

Attachments: hm-slideshow2.eps (1.1 MB)

View 2 Replies

ActionScript 1/2 :: Loading .swf File Into .swf Loaded Through Movieclip?

Sep 11, 2009

I'm using loadMovie("folder/file.swf", "_root.host"); to load the first swf file into a blank movieclip named 'host'.When I try using the same code it loads the other swf file, it just closes the first one.I want to have it as more of a popup that can be closed without affecting the original swf file

View 5 Replies

ActionScript 3.0 :: Loading Object Is Not Sufficiently Loaded

May 29, 2007

I'm working on a class to track the loading of N objects.In order to do that, I Use a class called Advenced Loader inheriting from flash.display.Loader.I want to be able to listen to the ProgressEvent.PROGRESS but instead of receiving how many bytes have been loaded so far, I want to know how many byes have been loaded since the last PROGRESS event.So, I have the bytesPerProgress property inside the AdvancedLoader class which listens to its contentLoaderInfo object to calculates the bytesPerProgress.Then, inside another class which uses the AdvencedLoader I could do that:[code]

That's where I get an error #2099. It seems that I can't access the Loader instance only until after it completed the loading proccess.What I really need here is (if I could) to change the contentInfoLoader. loader to reference to my AdvancedLoader class instead of the Loader interface which doesn't include my new bytesPerProgress (implicit getter).What I could have done instead is to listen to the PROGRESS event inside the AdvancedLoader and then dispatch new PROGRESS event from within the AdvancedLoader. That's not quite what I thought it would be like, but I can't think of anything else since the contentLoaderInfo is an implicit getter (read only).

View 9 Replies

ActionScript 2.0 :: Loading Text Into Externally Loaded Swf?

Jan 15, 2009

when I press a button, the text loads into the still visible imageArea_mc text area.When a button is clicked, I have external swfs which contain 2 dynamic text boxes, named heading_txt and content_txt, loading into my main movie. They are receiving their data dynamically from an XML file. The problem I am having is that as soon as the button is clicked, the new data loads into the still visible text boxes. What I want to do (I think) is somehow tell the main movie to assign the appropriate text for each individual movie.

ActionScript Code:
var myXML:XML = new XML();
myXML.ignoreWhite=true;
myXML.onLoad=function(ok){

[code]...

View 7 Replies

ActionScript 3.0 :: Object Loader Loaded And Not Loading

Jan 27, 2009

I loaded 5 JPG's into specific locations of an array via the URLRequest. So now when I trace my array:

[Code]...

THE PROBLEM: when I scan getXMLlinksArray and see that its NOT null, and i try to addChil to xmlImgHolder and then to spriteHolderArray, I just get a blank space. The debuger is showing that spriteHolderArray contains some loader info and the appropriate URL up until I load it with the existing loader from getXMLlinksArray. Then it says it doesn't have any conentedLoadedInfo.

View 1 Replies

ActionScript 3.0 :: Loading External Swf Only After Previous Swf Has Loaded

Jul 10, 2009

I have a feeling that this is going to be an easy solution, but I don't have as much experience with the Loader class as I should. I have 2 external swfs that I'm loading, but i only want the second swf to load after the first has finished loading.How would I go about doing this? Would I call the loadBus function from within the loadAir function?[code]

View 4 Replies

ActionScript 2.0 :: Check When Swf Is Loaded / Prevent It From Loading Again?

Feb 8, 2007

I have a menu nav that loads swfs into a container clip. Once the swf loads, the menu nav unloads and is replaced by a page-specific nav. If the user clicks on the menu button, the page-specific nav is unloaded and replaced by the menu nav. ...this is to toggle back and forth between the two nav menus, as I'm sure you've noticed

Once a swf has loaded and if the user loads the menu nav, the option to load the same swf (current swf) appears. Rather than reload the current swf, is there anyway I can have the button check if that specific swf is already loaded and if so, not load it again?[code]...

View 4 Replies

IDE :: Get Flash To Keep Loading All The Images In The Array Until They're All Loaded?

Feb 26, 2009

So I've got an array of images,

Code:
pixArray = ["Images/Architecture/Hospitality/01.jpg", "Images/Architecture/Mixed/01.jpg", "Images/Architecture/Office/01.jpg", "Images/Architecture/Performing/01.jpg"];

It's part of a slide show, loading one image, waiting 4 seconds, then it loads another, etc etc. The problem is, between each image, it has to load.I'm trying to find a way to get flash to keep loading all the images in the array until they're all loaded, something to the effect of:

on the completion of the loading of the first image, start loading the second image in the array. On completion of loading that, load the third image, etc, until there are no more. I already have a variable that tells it how many items there are as well:

Code:
var total:Number = 4;

View 1 Replies

ActionScript 3.0 :: Loading Xml Files From Already Loaded Xml File?

Aug 31, 2010

I have created a flash movie which loads a XML file. This XML file contains around 8 links.

Now I am trying to load another XML files corresponding to each link. That is, if clicked on Link1, flash movie should load XML File 1, Link2 should load XML File 2 and so on.

View 1 Replies

ActionScript 2.0 :: Stop Re-loading An Already Loaded Movie?

Nov 10, 2003

Is there a script that can cancel out re-loading a loaded .swf? i have 4 buttons which load 4 different .swfs, so when you click on button one, movie one loads, but if the user clicks on button one again the movie re-loads again.

View 3 Replies

ActionScript 2.0 :: Loading Text Inside A Loaded SWF?

Jan 25, 2004

I have my MAIN FLASH WEBSITE that loads a PROFILE section which is a separate SWF file.Inside the profile.swf, I have the sub nav button 'experience' dynamically pulling a text file into my text box.If you view the 'profile.swf' file alone, the text is being pulled fine.However, If you view the MAIN FLASH WEBSITE, choose 'Profile' link, then 'Experience' Link. The text box DOES load the text, but you can't SEE it. You can tell it is loading the text files because the scroll bar becomes active, and I can cut and paste the invisible text into my notepad program.Why is my text invisible?Here is my Sub navigation code for the 'experience' button located on 'profile.swf':

[AS]
on (release) {
loadText = new loadVars();

[code]....

View 3 Replies

ActionScript 2.0 :: Clear A Loaded Swf From A Level Without Loading?

Sep 3, 2004

Is there a way to clear a loaded swf from a level without loading something in its place? I just want to be able to clear out levels that aren't in use anymore.

View 4 Replies

ActionScript 3.0 :: Does Loaded Content Get Choppy While Loading In Background

Apr 27, 2010

I have some preloader (timeline-based) content and some FLV's that I want the user to see while other content is loading in the background. The preloaded content and the FLV's are very choppy while the content is loading and run fine afterward. I initially thought this might be a RAM issue, but my other apps are running fine at the same time (YouTube, etc.) so I think it's an issue within my code or Flash Player. How do the really nice preloaders (animation on timeline OR FLV's) run so smoothly while background content is loaded? For example, are they independent SWF's? internalized classes exported for Actionscript? some other option I'm not privy to? Mine, for example, are internal classes in the main library that I have exported for AS.

View 6 Replies

ActionScript 3.0 :: Btn Function In Loaded Swf To Go To Frame On Timeline Of Loading Swf?

Jun 24, 2009

An external swf file (swfEx), which contains a button, is loaded into another swf file(swfLd).  When clicking the button contained in swfEx, it should navigate to a certain frame of the main timeline of the swfLd movie and at the same time remove swfEx from swfLd.

View 2 Replies

ActionScript 3.0 :: Make A Loading Screen Where Every 5% Loaded Something Pops Up?

Jun 5, 2010

I want to make a preloader, and I know how to make basic ones (where a rectangle gets bigger as the amount of loaded content increases), but I would like a little more complicated one, like this: I have 20 letters in my website title, and when you go to my website you don't see anything, but as it loads, for every 5% loaded, a letter will blur in.

View 6 Replies

Flash :: Xml - Loading Special Characters In A String Loaded Via XML In AS3

Feb 26, 2010

When I load an XML using ActionScript all the characters inside strings render fine except special characters like:

[Code]...

View 1 Replies

Flash :: Controlling Sub-movieclips Of A Loaded SWF From A Loading Class?

Feb 4, 2012

I have a compiled swf File (lets call it "cat.swf") that is loaded via the Loader Class of my Main movie. The cat appears without problems. But inside cat.swf there are two movieclips defined (lets call em "head" and "body"), and I have ye to find a way to get control of these from my Main movie.

When I check for numChildren of the loader Object it only gives me back one (an unnamed instance), if I cast that as a Movieclip to check for deeper children it continues all the way down like a tower of turtles.

View 1 Replies

ActionScript 3.0 :: Make A Loading Bar It Won't Show Up Until The Whole Game's Loaded

Nov 12, 2009

I know this has probably asked a lot before, but I tried searching some and couldn't find it.

When I make a loading bar it won't show up until the whole game's loaded.

View 9 Replies

ActionScript 3.0 :: Adjust Loading Paths Of Loaded SWFs?

May 28, 2011

I have an SWF called A.swf which dynamically loads other assets from a relative path. However, if I want to load this A.swf into B.swf, for the dynamic loading in A.swf to work properly, A.swf and B.swf have to be in the same path. But I want A.swf to be in another folder, along with its assets.

There are no broken paths - if the loading path was relative from A.swf, all the assets would load correctly, but when I load A.swf into B.swf, all the paths start from B.swf, even if they are requested from A.swf, and that causes problems for me.

View 7 Replies

ActionScript 2.0 :: Loading Onclip Events In A Loaded Movie?

Feb 4, 2003

I have a timeline, with an instance iDropZone. I am loading an SWF into that instance. The .swf that i'm loading has an OnClip (MouseUp) event in its Action script. Which i use to open a new browser window when the clip is clicked. When I run the swf by itself it works fine, but when I load it into my main movie, the blank window opens even if I click outside of the iDropZone. I understand that it has to do with the path to target. But Flash gives me an error when i do _root.iDropZone.OnClipEvent....

View 1 Replies

ActionScript 2.0 :: Clear A Loaded Swf From Level Without Loading Something In Its Place?

Sep 3, 2004

Is there a way to clear a loaded swf from a level without loading something in its place?

View 4 Replies

ActionScript 2.0 :: Loading Order Of Dynamically Loaded Thumbnails

Nov 6, 2006

I'm working on a portfolio site that I'm pretty much done with, but I'm having trouble with the loading order of the thumbnails on the site. The work in the portfolio is grouped into clients, and within each client, there are thumbnails that display the selected work. This will probably make more sense if you can see what I'm talking about: [URL]. (Only the first two clients are enabled at the moment). Specifically, when the page is first loaded (from a web server) the thumbnails show up in the wrong order. When the page is refreshed, the thumbnails are displayed in the correct order.

The thumbnails always display in the correct order when being viewed locally, or in the Flash Test Movie environment. I'm pulling in the data from an xml file into an array, and iterating through the elements of the array with a for...next loop, I'm loading the thumbnail images with a MovieClipLoader instance. Using the onLoadInit event, I then set the horizontal position of each thumbnail clip. As much as I'm looking for reasons why the order could be switching. I suspect it has to do with which thumbnail image finishes loading first - in which case, how to force the images to load in the correct order. Maybe I should use if...then and load the next thumbnail only when onLoadComplete fires?

View 2 Replies

ActionScript 2.0 :: Loading A Video File From Within A Loaded Movie?

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







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