Actionscript 3.0 :: Change Name Of Movieclip Loaded With BulkLoader
Aug 18, 2009
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?
View 3 Replies
Similar Posts:
Jan 18, 2011
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?
View 1 Replies
Oct 7, 2010
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?
View 0 Replies
Oct 7, 2010
i've a preloader that load an swf with bulkloader. How can i access to a function of the loaded swf?
View 3 Replies
Nov 17, 2009
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??
Here's the class:
Code:
package{
import br.com.stimuli.loading.BulkLoader;
import br.com.stimuli.loading.BulkProgressEvent;
import flash.events.*;
[code].....
View 2 Replies
Dec 24, 2009
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 Replies
Apr 11, 2011
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?
View 1 Replies
Jun 2, 2011
I have an xml flash gallery at a .swf file and i want to load this .swf to main.swf. So, i use the code:
[Code]....
aligned to the center of main.swf. How can i move this created movieclip to wherever i want with some code? I tried this:
MyGalleryContainer.y = 200;
MyGalleryContainer.x = 50;
with no results.
View 1 Replies
Sep 17, 2011
I have successfully loaded an external swf file into my own one. now what i want is to change the size of the loaded file.
the loaded file is an image and its height:500 and width:500 but what i want is to resize it to 200x200
How can i do that.
here is my code to load external image
var peelawayimage = _root.createEmptyMovieClip("peelawayimage", 7);
var mcImage = new MovieClipLoader();
mcImage.loadClip(_root.video_image, peelawayimage);
View 9 Replies
Nov 16, 2009
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]....
View 2 Replies
Apr 19, 2010
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.
View 1 Replies
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:
[Code]...
View 0 Replies
Jun 2, 2010
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:
View 2 Replies
May 31, 2010
How can I use the bulkLoader library? I downloaded it, but I don't know how to link it with my .fla file.
View 2 Replies
Feb 23, 2010
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]....
View 4 Replies
Sep 21, 2008
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].....
View 2 Replies
Sep 3, 2009
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 Replies
Jun 8, 2010
The problem: how can I get access to instance items after an external swf loaded?[code]...
View 2 Replies
Jan 19, 2012
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?
View 1 Replies
Apr 28, 2010
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");
[Code].....
View 0 Replies
Mar 21, 2011
i've been using different loaders in the past, here are the most popular:.
[Code]...
which one is the best one and for which challenges?
View 1 Replies
Jul 5, 2007
I'm loading an external swf that is a button to close other loaded movies. I want it to stay above all the other movies at all times so that the user has a way to close them and go back to the main stage. There are buttons on the stage that load external movies and the close button movie loads automatically. All of the movies load in fine but once I load in a movie from a dynamically created movieclip button on the stage, it covers up the close button movie.The following code is where I dynamically load movies from the dynamic movieclip buttons and then after that is where I load in the external swf for the close button.
//Dynamically assign external movies to load from
//the dynamic buttons
for (j=1; j<holderArray.length; j++) {
[code]...
View 1 Replies
Oct 16, 2011
what I'm trying to do is accessingsnapText = scrollPane.source.textSnapshot;from an external swf. I've tried:
trace("-->: "+scrollPane.source.textSnapshot.getText(0, 1000));
trace("-->: "+myLoader.content.textSnapshot.getText(0, 1000));
trace("-->: "+mc.textSnapshot.getText(0, 1000));
[code].....
View 3 Replies
May 26, 2010
Im making a movie with a menu that loads movie clips according to which menu is selected simple enough. However, the newly loaded movie clip also needs to allow the user to load another movie into the main movie effectively swapping the first movie clip with the second. This needs to be done without using the main menu.
View 6 Replies
Nov 15, 2004
know how I can resize the stage to match the size of an external graphic/movieclip which is loaded into an empty movieclip,
View 3 Replies
Dec 20, 2011
how i could change the movieclip border around a circular object/movieclip.cuz know my my hitTestObject will also test on the corner of the movieClip and not the actual see able object like i show down here how coud i change this border to the second image?
View 3 Replies
Jul 25, 2011
I load an image into a MovieClip. At a second time I want to move this image to another MovieClip.
View 1 Replies
Jun 27, 2006
I'm loading an image into a blank_mc within a movieclip called 'background_mc' using the MovieClipLoader object; when the onLoadInit for the MovieClipLoader object is fired, i then attempt to clone my 'backgound_mc' object and the loaded image it contains so i can do something with it (i,e a funky masky/blur thing, not important right now)I'm successfully loading my image into the blank clip within background_mc, the onLoadInit behaviour fires and duplicates background_mc once the image has been loaded, but in a disappointing turn of events, my clone of background_mc no longer has an image attached, and has instead reverted back to it's original form, just as ti was before it had the jpeg image loaded in.
View 3 Replies
Jan 7, 2010
Using a movieclip rollover to change another movieclip timeline?
View 1 Replies
Mar 30, 2009
This is something I'm experimenting with, but haven't seemed to figure out... I have several MovieClips, basically the same, only different colors. As each one plays, I'd like it to "overlap" whichever one is already there. Right now I have each button linked to a gotoAndPlay function, but I don't think that will ever get me what I want. You can see how I have it now here: [URL]
Instead of having the content MovieClip go back to all white when a button is clicked, I'd like the preivious one to remain, and get "covered up" by the new one. You continue to see the old color, and the new color overlaps it. I have a feeling I need to use a variable and then addChild, with a removeChild for the old MovieClip after the new MovieClip has loaded, but I'm not getting any good results yet.
View 1 Replies