ActionScript 3.0 :: How To Use Flash BulkLoader Library
May 31, 2010How can I use the bulkLoader library? I downloaded it, but I don't know how to link it with my .fla file.
View 2 RepliesHow can I use the bulkLoader library? I downloaded it, but I don't know how to link it with my .fla file.
View 2 Repliesi've been using different loaders in the past, here are the most popular:.
[Code]...
which one is the best one and for which challenges?
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:
[Code]...
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...
Here's the SimpleExampleMain.as:
Code:
package{
import br.com.stimuli.loading.BulkLoader;
import br.com.stimuli.loading.BulkProgressEvent;
[Code]....
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).
Code:
import br.com.stimuli.loading.BulkLoader;
import br.com.stimuli.loading.BulkProgressEvent;
import flash.events.*;
[code]....
The 'loaded' string IS traced so everything works fine until that.Seems it is the resume() function (or something else ?) that do not work.
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].
Here is a look at the code:
ActionScript Code:
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?
[Code]....
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;
[code].....
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...?
View 1 RepliesMy 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?
View 0 RepliesI'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?
View 3 Repliesi've a preloader that load an swf with bulkloader. How can i access to a function of the loaded swf?
View 3 RepliesI'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??
Here's the class:
Code:
package{
import br.com.stimuli.loading.BulkLoader;
import br.com.stimuli.loading.BulkProgressEvent;
import flash.events.*;
[code].....
The problem: how can I get access to instance items after an external swf loaded?[code]...
View 2 RepliesI'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?
View 1 Repliesi 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");
[Code].....
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.
View 1 Repliesit is said [URL]You can download the JSON library as part of the core ActionScript 3 library.but when clicking on the link it doesn't work
View 1 RepliesI 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?
View 1 RepliesI 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.
How can we import images using AS3 code so that when they are imported once will remain in the library forever..
View 3 RepliesI'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.
View 2 RepliesI 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.
View 3 RepliesAs one would expect, Classes within my RSL can access the classes and methods of the embedded swcs. In other words, classes in my library can for instance call import org.alivepdf.Print and then call AlivePDF's Print.print() method. But it there any way for my project to also use those third-party classes and methods, by "tunnelling through" my RSL??? Even though my project is using my RSL, when I try to type out org.alivepdf.Print it cannot be found.(Obviously I can make a manager class in the library to "pass through" specific commands to the embedded swcs; I'm looking for something a little more generic and all-encompassing here).
View 0 RepliesLibrary symbol "Card" is linked to class "Card" which extends "MovieClip". Library symbol "Card" contains a card background image.Library symbol "Ace" is linked to class "Ace", which extends class "Card". Library symbol "Ace" contains a TextField with a big letter "A".So we have Ace extends Card which extends MovieClip. Ace therefore extends MovieClip, but does not DIRECTLY extend MovieClip.When I drop an instance of Ace on the stage and compile the clip, all that shows up is the big letter A. However, I expected the background image from Card to be included, since Ace extends Card, and the Card symbol contains the background.It seems like Flash ignores symbol content unless it belongs to the top-level class being instantiated.I think it's LAME that one symbol can't extend another. The IDE could easily draw Card as a non-editable background while I'm editing Ace which extends it, and it should instantiate Card's content and then Ace's content when an Ace is instantiated.
View 3 RepliesBecause of intricate animations for an iOS project, I'm kinda forced to use Flash CS5.5 IDE, but I'm trying to use Flash Builder 4.5.1 to code library movieClips. For the most part this is working; I'm making movieClips in the library, giving them class names I then edit in FB 4.5. My rationale is for iOS it all has to be one big ass file anyway. I don't really want to make everything a swc and embed in Flash Builder, just want to make movieClips and edit their code in FB.But, say I have made a ball in the Flash IDE. In the Library I give it a class name of 'Ball' that extends MovieClip. When I go back to Flash Builder in my main class I use [code]The code works and the ball is placed from library onto stage, however there is the "?" next to the Ball instantiation suggesting the type cannot be found or is not a compile time constant. I don't really want to make a custom class for Ball - although I'm pretty sure if I did and imported a custom Ball class it would find it and the '?' would go away, but is there not a way to force Flash Builder 'see' the Flash IDE library objects/classes?
View 2 RepliesI just installed flash CS5 and want to link my folder with my extended library classes so they are always linked when I create a new FLA. How do I make a permanent link? Can I also link .SWC files?
View 1 RepliesI'm working on a project and i need to open a swf file, change contents of a swf tag without touching other tags I've tried "SwfDotNet library" but it does not output the unknown tags. For example if it encounters a "EXPORTASSETS" tag it does not write it to the output SWF because the library is old and supports up to swf version 7 and the tag is new. Are there any libraries with this capability?
View 2 Replies