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


Similar Posts:


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 :: Loading External Swfs Extending From Classes In The Same Shared Codebase?

Jul 25, 2011

I'm currently developing a game in flash and want to be able to divide up my .fla assets in a way that means artists can work on a game menu .fla in isolation from the game.fla and rest of the game code.If I could briefly explain how I've approached this so far, I would be extremelyMy project is setup like this:HighScoreMenu.fla -> document class HighScoreMenu extending GameMenu class.game.fla ->document class game.asgame.as class loads the published HighScoreMenu.swf and manipulates the menu i.e. animates on and off screen via inherited functions in the GameMenu class.

Now this seemed to work to begin with, until my code evolved and upon going to publish my HighScoreMenu.fla flash started complaining about symbols being used in Game.as that were in Game.fla... If I'm only publishing the HighScoreMenu which extends from GameMenu then why is it even looking to compile Game.as

View 4 Replies

ActionScript 3.0 :: Loading External Assets - Screen Stops Until The Loading Is Finished?

Oct 11, 2009

I have a movieclip clip that plays when the movie starts, the movieclip is a visual assets that show's that the application is loading some information but it's not showing any loading progress, just playing while the assets are loaded.I created a for loop that will load the assets using a simple loader, and then when the object is loaded the application push the object to an array.Problem is that when the loading starts all the animation that i have on screen stops until the loading is finished.The whole point is that the animation will play while it's loading.

View 10 Replies

Professional :: Access Methods From/to Parent And Loaded Child Swfs?

Sep 14, 2010

Imagine the following setup. The main swf loads a child swf.In AS2 i would simply use _parent or _root to call the desired function. How can that be done in AS3?Can this still be done? Can I call a function on the main swf from the loaded one? How about the other way around, this time, from main to loaded swf?

View 1 Replies

ActionScript 2.0 :: CS3 Buttons In Loaded Swfs Loading Other External Swfs Into The Main Timeline?

Sep 11, 2009

I have a main fla file which loads an external swf into an empty movieclip on the main timeline which works fine but I want a button in the external swf to load another external swf into another empty movie clip on the main timeline.eg. start.swf loads UKEIAMap.swf into (empty movie clip within start.swf) MapLoader_mc then a button havant_b within UKEIAMap.swf needs to load HavantProjectSheet.swf into (empty movie clip within start.swf) ProjectSheetLoader_mc without unloading UKEIAMap.swf

View 3 Replies

Actionscript 3 :: Loading Assets From External Swf?

Aug 18, 2010

I am trying to load assets from an external swf. As in:

I drew a square in flash Made it into a symbol made sure to check the "Extract for Action Script" to doubly check I created an instance of it from within the asset file. went to my loader file loaded the assets.swf tried to find the class variable using "getDefininition" FAILED.

from what I'v been seeing from around the web the following code should work. (I actually copied it word for word from one of the tutorials) but it doesn't work.

import flash.system.ApplicationDomain;
import flash.display.MovieClip;
var myLoader:Loader = new Loader();

[Code]....

there should definately be class definition for XIconG though because I tried it myself from within the Asset.swf file. also I'm not sure whether this helps you, but when I tried to debug, I looked at the event.target.applicationDomain variable from the debugger menu and under it it said domainMemory = null. I don't have a clue why that is though.

View 1 Replies

ActionScript 3.0 :: Loading External Assets - Making Them Reusable

Aug 13, 2008

I've been using a fairly un-dynamic approach in AS3 as until now when it comes to loading assets, but now I'll be trying to adapting a current project to fit other clients with different needs which means I'll have to grab the bull by the horns. I have an XML with a list of images that will be used, which is reused multiple times in each project. So I'm wondering if there's a way to load an image using the loader-class, and making it reusable? Being able to attach said asset later to a placeholder inside a movieclip I have stored in the library would be ideal.

I managed to load it into a movieclip but duplicating it from there on was a bit of a headache, using an approach similar to this would be great(but I have personally no idea of how to implement it): [URL] Here's the current code I'm using, in case it helps understanding what I'm after(it's most likely really ugly compared to what you SHOULD be doing in as3):

[Code]...

View 3 Replies

ActionScript 3.0 :: Loading External Assets + Multiple ApplicationDomains?

Sep 17, 2010

This is a follow-up to another thread that is getting wordy and unfocused:

[URL]

I am trying to load an external library .swf to use its embedded fonts, much like this method:

[URL]

However, the swf that is loading the font swf is loaded within a wrapper swf, and is defined as a separate ApplicationDomain as the wrapper.

Wrapper swf (app domain 1) <--- Player swf (app domain 2) <--- font library swf

The font is loading fine, and I'm even able to retrieve the font name (so I'm able to reference the object), but it is *not* showing up in the textfield as it should be.

When I remove the ApplicationDomain issue between wrapper and player swf by testing the player swf locally in the IDE (*not* loaded through the wrapper), it works fine. But I'm not sure how or why this is, because like I said, I'm able to get the font name so I'm able to reference it, it seems.

The TextField is being set to embedFonts, the font is loading, everything else seems to be working 100%, but there's some issue between the application domains that I just *can't* figure out.

View 14 Replies

Methods Of Accessing/loading External SWF's?

Apr 20, 2010

What are some methods of accessing/loading external SWF's aswell as there variables inside them. I've been using URLrequest and loader methods no luck yet.

View 1 Replies

ActionScript 3.0 :: Optimize Flash For Loading External Assets (videos/pictures)?

May 17, 2010

I'm loading a lot of external videos and pictures and I'm wondering what is the best way for handling the loaded videos and images. Should I unload them after they have finished playing and reload them whenever they are needed, or it's not required since they just use the clients memory and not the cpu cycles when inactive?

View 2 Replies

Professional :: Play An Intro Video Smoothly While Loading Assets In The Background?

Dec 10, 2010

For the current site I'm working on, I need to display an intro video while other ssets(mostly flv files)load in the background.The issue is the framerate drops from ~30 to about ~1 because of the loading. When the videos loadinto memory, it grows by about 266MB~ and until it's 'written' the framerate drops.Is there any workaround/solution that will allow me to play an intro video while the assets load intomemory ?

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 :: 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 Swfs Into Mc?

Jan 12, 2010

how can i load 3 external swfs into one movieclip at the moment i can only get it to load one or it may be loading each clip over the previous one.

View 3 Replies

ActionScript 2.0 :: Possible To Loading External SWFs?

Apr 27, 2006

I'm doing the tutorial for "transitions between external SWFs", but I'm having a problem because in the tutorial all of the buttons are on the main timeline, but in my site the buttons are on a different timeline. This is the actionscript that the tutorial tells me to use....

on (release) { if (_root.currMovie == undefined) { _root.currMovie = "work"; container.loadMovie("work.swf"); } else if (_root.currMovie != "work") { if (container._currentframe >= container.midframe) { _root.currMovie = "work";

[code].....

View 5 Replies

ActionScript 3.0 :: Loading External Swfs?

Feb 22, 2009

iv made a flash site using as3 using the actionscript on thefirst frame, this by itself works fine.iv also used an online tutorial tocreate a dynamicslideshow/photo gallery which again works fine, but this time usingan external .as file.When i try to load the external slideshow/gallery into amovieclip in the site it dosnt work and i get this error:TypeError: Error #1009: Cannot access a property or method ofa null object reference.im pretty sure its because the code used in the main flashfile is on the timeline and the code in the external file to beloaded in is in an external as file.

the code im using to load the external flash file is:
var toload =new Loader();
toload.load(new URLRequest("newfile.swf"));

[code]....

View 2 Replies

ActionScript 2.0 :: Loading External Swfs?

Feb 20, 2010

I am trying to figure out where is the problem with loading external swfs on a site that i uilt..actionscript 2. The site has an intro slide show and buttons underneath. It plays everything But when you go to "works" and click on a gallery, it takes you to that frame and although it looks like it starts loading it bubs you back to the beginning.

[Code]...

View 1 Replies

ActionScript 2.0 :: Loading Var From Javascript To External Swfs?

Mar 31, 2009

I am loading one variable from javascript to one main swf file which does have 2 more links to other 2 external swf files, i want to use the same var to be transfered to those 2 files when they are loaded

This is teh javascript in the header:

function CountryCode(){
document.getElementById('Spotlight_en_gb').SetVari able("ccode", "SU");
}

This script is triggered onLoad when the page loads.

One dynamic text box var name is ccode and instance name countrychk is taking the values and action accordingly, other two files need the same var to use but on LoadMovie they dont get teh value.

Here are the links:
1.

on (release) {
unloadMovie(1);
loadMovie("Movies.swf", 1);

[Code]....

View 5 Replies

ActionScript 3.0 :: Loading And Unloading External SWFs?

May 29, 2009

I have a question regarding the swapping out of swf files in Flash CS3 / AS3.I start my project with a �logo� swf, which has no interactivity.At the last frame, the following code is used to load another swf from the local folder:

-------------------------------------------
//Stop current swf and stop its sound
stop();
SoundMixer.stopAll();

[code]...

How do I remove and/or unload the previous swf when a new one is loaded? and remove that previous swf from memory? Can I give the current swf access to the previous one, then run a �remove� or �unload� function on it?

View 3 Replies

ActionScript 3.0 :: Loading External SWFs With Params From Within A SWF?

Jun 2, 2009

How would I load a .swf from within a .swf with parameters?First, I need to know how to pass the parameters, and second I need to know how the other .swf is going to read those parameters...

View 1 Replies

ActionScript 2.0 :: CS3 Loading External Swfs In The Background?

Aug 2, 2009

As you can see, I have an external swf file that loads into a container clip. When a user clicks on the next project button, or any other category, another image gallery starts loading. My question is, is there anyway to load the other galleries in the background while users browse through the loaded ones?

View 4 Replies

ActionScript 3.0 :: Loading Multiple External SWFs At Once?

Sep 23, 2009

I have a game which has various cutscenes. Each cutscene is split up into 3 or 4 seperate swf movie files which can be played (and replayed) by the user.

My question is, I've seen many tutorials on how to load external swfs but how do I load several movie clips into memory, and then clean everything up once the user has finished viewing them all?

View 2 Replies

ActionScript 2.0 :: CS3 : Loading External Swfs In The Background?

Oct 18, 2009

[URL]I have an external swf file that loads into a container clip. When a user clicks on the next project button, or any other category, another image gallery starts loading. My question is, is there anyway to load the other galleries in the background while users browse through the loaded ones? Is having an off-stage invisible movieclip with an loadMovie function the best way to do this, or is there a better method?

View 3 Replies

ActionScript 3.0 :: Loading And Unloading External Swfs

Feb 17, 2011

After years of putting it off, I've finally begun the move to AS3.The frustration I've encountered is evidently shared by a lot of other designer/developers. Knowing that the future is inevitable, I have bitten the bullet and forged ahead. There has been one thing, however, that has just been a real quandry and has cost me hours of banging my head against the wall.That would be getting an externally loaded swf to (really) unload in an AS3 file.Before I even begin to post code, let me just say that I've tried a lot of things read in books, posts from this and other forums, and trial and error to no real avail. In my research I've come across many others who are experiencing the same problem and even one reference that suggests you not use AS3.For a project that uses multiple loads and unloads that's due in a month, should I just go with AS2?I'm using CS4 on a PC publishing to Flash player 10. And yes I have tried "unloadAndStop()" and "removeChild()".

View 8 Replies

Actionscript 3 :: Loading External Swfs With A Loop?

Jun 25, 2011

I've spent days working on this code, it seems so simple, but yet it never works. All I'm trying to do is make a loop automatically load person0.swf through person4.swf in the same directory. I've got it set-up so that I can change a single number and it loads up to person[whatever-the-new-number-is].swfCurrently it loads the first movie and thats it. I also get this error: "TypeError: Error #1009: Cannot access a property or method of a null object reference.at Menu()"Here is the code

package {
import flash.display.*;
import flash.net.URLRequest;

[code].....

View 3 Replies

ActionScript 2.0 :: Loading External SWFs Without Buttons?

Aug 17, 2009

Flash CS4 Actionscript 2.0 internal training project Main movie is a single frame project, containing just the interface. This includes a menu listing 80+ individual "chapters" for the training series. Each "chapter" that loads is its own project/swf of varying lengths. Once the main interface loads, it should automatically begin to play the chapters sequentially without the user selecting anything from the menu. When one chapter finishes, the next should load. If the user DOES select a chapter in the menu, it should load that SWF, and continue auto-playing from that selection forward.

- Each chapter swf has a built-in play/rewind/ff bar, various movie clips with animations, dialogue audio track and a fairly lengthy embedded FLV movie, and therefore a preloader before each chapter is mandatory.What I have so far works, but it's embarrassingly crafted my lack of AS skills:- First frame of main interface movie (let's call this main.fla) contains the following code:

var slideName = "modules/00.swf";
var loader:MovieClipLoader = new MovieClipLoader();
loader.addListener(this);

[code]....

View 0 Replies

Actionscript 3.0 :: Loading Random External Swfs?

Nov 10, 2009

I have this code that I am using to randomly load in external swfs. It seems to be working but, as I know very little about coding I just wanted to ask the experts and see if its ok? or should be done differently. I added the preloader code from watching the tutorials but not sure if its even in the right place?

Code: Select allimport flash.display.Loader;
import flash.net.URLRequest;
import flash.events.Event;

[Code].....

View 4 Replies

ActionScript 2.0 :: Loading External SWFs To MC Content Box

Oct 8, 2003

How to load external swfs into the an MC content box using movies with embedded buttons? The problem I'm running into is this: I have animated buttons within movie clips. I also have a main_content MC in my scene into which I'm trying to load background images from another file. This other file has 3 frames, each with a different image. I don't know what the action script would be for a movie/button to load my external swf frames into the main_content MC.

View 1 Replies

ActionScript 2.0 :: Loading External Swfs Into A Movie?

May 23, 2004

can someone give me the AS for loading external swfs into a movie? the swf name is slideshow.swf. (i am trying to load a slideshow into the movie using AS so that when the keyframes his the "stop();" function, the slideshow does not stop) or is their a better way of accomplishing this?

View 1 Replies







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