loader

How can I get the background color of a loaded swf file ?

I'm loading an swf file into my main application using URLLoader, I want to get the background color of the loaded swf file. ( I heard that one solution wold be reading the byte code of the loaded swf ) ...

how to load a big picture or swf file by calling Loader.load() in Flex, and make the container adjust the size of the loading content?

Hi All, I get a ActionScript class for loading the content: public class LoaderContainer extends Sprite { public function LoaderExample() { loader = new Loader(); loader.contentLoaderInfo.addEventListener(Event.COMPLETE, completeHandler); addChild(loader); var request:URLRequest = new URLReque...

javascript ONLY loader before aspx...like gmail.com login loader

Hi. I have a Home.html that has a login form that POSTS to login.aspx the login.aspx takes a hell lot of time to load... so i want to have a javascript based function where the instant i click Login Button, a loader must be shown ...while in the background the POST happens and then aspx page must get loaded and then the modal must redir...

How do I load multiple large images and video in Actionscript 3.0?

I am creating a Flash site for a client who wants to display many (about 15) fairly hi-res photos as well as a video. I am using the Video class to display and control the video, and the Loader class to load the photos. I preload them from an XML file up front, while "loading..." is displayed. The video plays immediately after the loade...

Linux user-space ELF loader

I need to do a rather unusual thing: manually execute an elf executable. I.e. load all sections into right places, query main() and call it (and cleanup then). Executable will be statically linked, so there will be no need to link libraries. I also control base address, so no worries about possible conflicts. So, is there are any librar...

How to access parent movieclip's variable from loaded swf.

Hello, I have a swf which load an external swf. The loader swf has a variable which i want to access from the loaded swf. I use MovieClip(parent.parent).myVar but it return this error TypeError: Error #1009: Cannot access a property or method of a null object reference. at card01_fla::MainTimeline/frame1() The loader swf has...

Flex SWF assets loaded into Flash SWF at runtime within same ApplicationDomain

I'm trying to load a swf compiled by the Flex SDK into a swf exported by the Flash IDE and instantiate the assets by way of getDefinition(). Normally this works fine with assets exported from the Flash IDE then loaded into another swf also from Flash IDE. This is how I could normally do this using only the Flash IDE: Loader - > Using sa...

Using the Loader display object to load X jpegs, then resize each of the images differently while they're on the stage

Hey there, I was wondering if this is possible to do I am able to load the image in and have it displayed easily enough by using addChild(myLoader); where myLoader is in the classWide private scope. The problem is, whenever I call my function inside that class which adds the loader to the stage, it clears the old one and puts this new o...

Flash Loader and ByteArray

I need to be able to load a jpeg/png image from disk and show it in flex and send it to a server as a base64 encoded string. But once the image file is loaded, in my flash.display.LoaderInfo object, the bytes property (type of ByteArray) contains more byte than the file content. Example: image file size: 3089 flash.display.LoaderInfo.b...

addEventListener to loader? or loaded swf?

I am loading an external swf file using the following code: //add close button var reqButton:URLRequest = new URLRequest(btn_close); var loader2:Loader = new Loader(); loader2.load(reqButton); addChild(loader2); loader2.addEventListener(MouseEvent.CLICK, closeInfoBubble); function closeInfoBubble(event:MouseEvent):void ...

How do I make an unreferenced object load in C++?

I have a .cpp file (let's call it statinit.cpp) compiled and linked into my executable using gcc. My main() function is not in statinit.cpp. statinit.cpp has some static initializations that I need running. However, I never explicitly reference anything from statinit.cpp in my main(), or in anything referenced by it. What happens (I sup...

How variables of .bss are resolved in final image?

Hi, Pardon me if this question is too trivial! It is known that the final executable does not allocate space for the uninitialized data within the image. But I want to know, how are the references to the symbols with in .bss get resolved? Does the object file contain only the addresses of these variables of .bss some where else and N...

sql loader through C#

I am using a sql loader statement and have the Time_Stamp column t be updated in the database. I am using Time_Stamp EXPRESSION "current_timestamp(3)" in the sql loader command but im doin this through C# program. All the other fields are loaded in a csv from where they get loaded. But what do i write in the csv for Time_stamp colu...

adobe flash buider (flex4): addChild() is not available in this class.

Hi. I want to be able to load an swf into a flex 4 application in order to use it's classes. var ldr:Loader=new Loader(); ldr.load(new URLRequest("file://path/to/fileswf")); ldr.contentLoaderInfo. addEventListener(Event.INIT, loaded); function loaded(evt:Event):void { addChild(ldr); } i receive the error: Error: addChild() is not a...

Passing Informaton for Files with Loader

I'm using Loader to get the image data out of a ByteArray. The problem is that I need to store that image data with a name (which is known beforehand) once it's passed to the complete handler. Since the operation is asynchronous, I can't be sure which image of multiple will finish loading first, so it seems I need to pass the information...

Difference between load-time dynamic linking and run-time dynamic linking

When loading programs into memory, what is the difference between load-time dynamic linking and run-time dynamic linking? ...

ActionScript 3.0 loader is not loading???

I put a progress bar on my stage. I called it "this". It is put on frame'1'. on frame'2' there is a flvplayback component.When people go to the application it does'nt load. my code is below: myProgressBar.source = this.loaderInfo; this.loaderInfo.addEventListener(Event.COMPLETE, loadComplete); function loadComplete(evt){ gotoAndStop...

Flash (AS3) doesn't like draw method, but only when swf is run on server?!

I have a swf (AS3) that runs fine locally, but when I put the swf on a server and run it in a browser, it crashes when it tries to use the draw method: var bmp:BitmapData=new BitmapData(ldr.width,ldr.height,true,0x00FFFFFF); bmp.draw(ldr); ldr is a Loader that has at this point successfully loaded a jpg from some other server. I can a...

Run an encrypted application

I wish to seal a .net application before distributing it to the user. My purpose is to seal the application "app.exe + *.dll" and prevent the user from loading the application except from an application loader "Process.Start(app.exe)", the idea is to prevent the user from loading the application by double clicking on "app.exe". I found...

Does the Google AJAX API Loader have any advantage over direct link to Google hosted files via script tag?

I've recently moved a site over to use the Google AJAX Libraries instead of hosting the library js files myself. At the moment I'm using the Google recommended approach: <script type="text/javascript" src="http://www.google.com/jsapi?key=MYAPIKEY"&gt;&lt;/script&gt; <script type="text/javascript">google.load('jquery', '1.3.2');</script>...