ActionScript 3.0 :: Bulkloader As An Option To Library?
Jan 28, 2009
I'm having a little issue during my project, cause I can't use those "normal" preloaders. The problem is that I have all the website-graphics in the library, export in frame 1 (because I don't have any more frames than that, everything is done by actionscript), so I need some magic trick to show the loading bar, while loading, though everything is in the library... I tried this one here, to load my stuff from another swf :[URL] BUT... it gave me this little error here:
i am new in flash development, i heard that Greensock lib is the best one. But when am trying to download its really confusing. there are a lot of names like
I'm using bulkLoader to load an mp3 and an flv using their simple-example.as
It works fine if I make the SimpleExampleMain the file's class, loads sound and video and plays them both when they're finished. However, if I DON'T make it the class and just use:
Code: var se:SimpleExampleMain=new SimpleExampleMain();
it loads both, plays the audio fine, but doesn't show the video?? It says that it's loaded, but it doesn't show anything. NOTHING is different except it's not the file Class...
i'm working on a project that uses a lot of external files (sounds, videos...)So I decided to use the class Bulkloader to load my items.
First item I try to load : i'm stuck.The item (a flv) is loaded, but is not playing once the COMPLETE event is fired.All the code above is in the first frame of my flash. (I don't like to work with external classes).
I'm having a particularly frustrating issue with the BulkLoader API [url] that I thought perhaps someone here might be able to help resolve. What I'm trying to do, is to capture the metadata from a loaded .flv (through Bulkloader) so that I can check its duration. In all my efforts to facilitate this, Bulkloader either misfires once the video has loaded and/or returns null. For the sake of preventing redundancy, here is what I've tried/checked so far...
-I've pulled the metadata of my video(s) through a simple custom net connection... so it is there, and I can grab the duration this way. However, in this particular case, I need the data from BulkLoader.
-I've encoded/re-encoded the video(s), and have also injected custom data. Still no luck.
-I've changed the loading parameter "pausedAtStart" to true, as suggested, and have used netStream.seek() to jump to later frames or back to the first.
Needless to say, this is a very frustrating issue that I just can't seem to find a way around. Here is a link to my source files w/Bulkloader library: [url].
I use BulkLoader to load images for the application. But when I try to use them, I can display only one instance of each image. If I have repeats, the image actually displays only once, in the last occurrence. How can I create multiple instances of the loaded items?
I'm currently using BulkLoader to load in swfs as MovieClips. What I'm trying to do though is duplicate the loaded movieclips and attach them to other clips?
I seen something that senocular posted about creating duplicates of display objects in AS3 but it didn't seem to work with BulkLoader and swfs?
Is there other ways to duplicate loaded movieclips?
I have a bit of an elaborate loading setup I have written asa reusable framework. Right now I have this one kink in it that Ican't get passed.I have class HeatmapComponentController which is a simpleclass extending another class BaseCompoentController.HeatmapComponentController is the DocumentClass of another moviecalled heatmap_component.swf. After my BulkLoader's COMPLETE eventis fired (having fully loaded the swf) I try to use theLoadingItem.content as a BaseComponentController... like so...
private function _onLoadComplete($evt:Event) { var _baseComponentController:BaseComponentController = loadingItem.item.content as BaseComponentController;
Anyone have any experience with bulk-loader for multiple files? Its great for preloading single files, but I am now trying to preload essentially a folder of images. The images have different names (and will change over time), so I can't just create a for loop to preload for example 'image01' then 'image02' etc. They are referenced via XML however, and I'm wondering how I could loop through those, and use bulk-loader to retrieve these...? Essentially I'm confused about integrating XML nodes with bulk-loader, and then also about how to do it with multiple images...?
My problem maybe a development problem is that i've a preloader file.This preloader with bulkloader load and external swf that is the index file.Now because of i'm using the preloader every stage reference in the index class like stage.stageWidth will generate a #1009 error. So my question is how can i access to the an index class function so that when the preloader's stage will resize some index sprites must will assume the new width of the stage?
I'm using BulkLoader as my main loading class for the project I'm working on. I would like to know how to set the name of a MovieClip that has been loaded with BulkLoader. Here's an example of my problem:The error I get is as follows:Code: Select allError: Error #2078: The name property of a Timeline-placed object cannot be modified.I have tried to set the name of the movieclip before I load set it to the swf that was loaded with BulkLoader, like this:Code: Select allvar random:MovieClip = new MovieClip();random.name = "random";random = _bulkLoader. getMovieClip ("randomSwf. swf");However, this results in the name property being changed to the random instance name that flash assigns it when it gets loaded in.So my question is, is there any way I can change the .name property of the movieclip that is loaded in with BulkLoader, so I can get access to it through the getChildByName() method?
I'm using bulkLoader to load my mp3 and flv files (thanks to dawsonk for hooking me up with the answer there), and now I need to be able to play/pause and jump ahead and back in the movie that I loaded, but I can't figure out how to reference it?Also, when I go to load another movie/audio from a button click, do I need to do anything with the old instance, or will flash take care of that??
I'm using BulkLoader to load in images, SWFs, XML, etc into a game. When working local, the content property on the LoadingItem is always good depending on the type of asset: Bitmap if it's an image, MovieClip if it's a SWF etc. When I test the same swf, but under localhost, or online, the content property is always a Loader object. Is this normal? Am I missing out a parameter or something?
i am loading some external swfs with the bulkloader. The strange thing, they start playing in the background ( i can hear the sound) without even having added them to the stage.
Here is my code:
ActionScript Code: public function init():void { bLoader = new BulkLoader("bLoader");
I am using bulkLoader to load dozens of SWFs into my Flex app, and all of SWFs are static (1 frame only). 'Everything' works fine, however, I'm not sure how to handle data from bulkLoader... I am getting MovieClip types for all of my SWFs, and I am not sure how to tell to Image or SWFLoader classes to use some of those MovieClips as source.
I am successfully loading and using several swf's with bulkloader. They are games, and when the user is done with one they are returned to a main menu. However if they go back to the game it is is in its finished state. Is there a way to force bulkloader to "refresh" the swf to it's original state?
I am working in two different applications, one to be compiled for desktop use (AIR) and one to be compiled for the web. They are part of the same project and use the same visual components, but they are completely different apps. When a visual component is changed in one application then it should also change in the other one. Is this a good situation to use a shared library fla? I am new to the concept of shared libraries and I am considering the options.
On one had I would not have to update 2 applications everytime I change something, on the other, I would always have to recompile the library folder when I do the smallest changes to a component.
I've got a simple question. Suppose some simple lib written on c. Did I understood correctly that alchemy compiles it AS3 before compiling it to swf. If so, will the lib be slower or faster in comparison with the same lib written on AS3.
I am making a flash app where I want to have a user defined viewport like the stage in the flash IDE which the user can use to define objects that have a starting postition somerwhere off or on the stage and an ending position either or on or off the stage with the object then tweening between the two points. My question is this: I want the user to be able to define a curved path for the object to tween along. Is there a library of code that I can use to define curved paths for the app?
Ideally I would like something similar to the functionality available in Flash, so a bezier curve sort of path that is subdivided into handles that can be dragged to define the path of the tween. If there isn't an existing library, then do you know of the functions that I would need to define (mathematical equations related to drawing curves etc)?
In my child swf I am using the sound from library with "attachSound". I also use the play/pause button controls of this sound alongwith the other animation.Now when I load this into my main swf file with "loadMovie", It plays fine but no sound. I found that this is due to no sound linkage in my main file library.I want to share my child swf's library with main file's library.
I am interested in buying flash however even with the discount given to students as a program it is still a large investment. I was wondering if I am able to buy an older version for example "Flash 8" at a reduced price from adobe or another trusted retailer I know the newer version have updated the program alot but many of the new features will be unused by me and the older version would suit my needs better.
I have a copy of Adobe Flash CS3 Professional installed on my work desktop. I'm soon going offsite for a couple of months during which period I'd be using my work laptop instead. My laptop does not have Flash CS3 on it, so I was hoping of transferring the license to the laptop. I read somewhere that I need to deactivate the license on my desktop (using Help >> Deactivate license) before uninstalling it. Unfortunately, I don't see that option in the Help menu at all.