ActionScript 3.0 :: Duplicate Loaded Swf File?
Oct 26, 2007just a simple question, is it NOW possible to duplicate loaded swf files with AS3? and how to do that?
View 5 Repliesjust a simple question, is it NOW possible to duplicate loaded swf files with AS3? and how to do that?
View 5 RepliesI have developed a script that loads a few images and rotates them based on a timer. Well now I want to use those same loaded images for some thumbnails across the bottom.
Here is some of the code from my initial attempt:
//CREATE ARRAYS TO HOLD BITMAP DATA
var loadedImages:Array = new Array();
var loadedThumbs:Array = new Array();
[Code].....
im trying to duplicate a mc which has had an .swf loaded into it but that dosent seem to work.a bullet image is loaded into a mc called bullet and then when a key is pressed 'fire' is true. my problem is that if comment out the loadMovie part it duplicates just fine but it wont work when it is loading in the external movie
ActionScript Code:
...
bullet.loadMovie("data/weapons/"+dataArray[3]+".swf");
...
if (fire) {
[code]....
I'm trying to create a panning feature where the image repeats itself again and again as the image scrolls right or left. It looks as if it is a 360 view of a room. (No warping of sides, just simply repeating the image.)But damn ... how do I duplicate my loaded image so that when the current image starts to scroll off screen, a duplicate one is placed right next to it for a continuous flow?
View 3 RepliesI need to make multiple copies of a movieclip that I'm loading in via loadclip. I don't want to have to loadclip each time I need a new copy?
View 1 RepliesI am trying to dublicate a loaded movie clip multiple time. Below is the code. I am wondering if someone can advice on how to dublicate it using loadClip method.
[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 read this article about abstracting assets from actionscript:But it requires to set the Linkage Class name. How can I get the same result without setting the linkage class name?What I want to do is to cache a loaded asset, and use the cached version every time I request the same URL. A solution is to clone the loaded DisplayObject, but I think it's unnecessary since I only want a new copy.
View 1 RepliesI am working on an isometric engine called IsoEngine in AS3. I need to duplicate an swf externally loaded. The problem is that after being loaded and duplicated the resulting movieClip lose all its embedded actionScript. Therefore a clip containing 2 or more frames will loop infinitely regardless the stop() that you would have put on the targeted swf fileI am using the following function to duplicate my swf loaded:
var targetClass:Class = Object(loader.content).constructor;
var duplicateisplayObject = new targetClass();
while trying to make a gallery I come across this problem of wanting do duplicate movieclips containing loaded images. Seems like whatever I do, no duplicates. My original script is bigger, but my problem also shows in this little example. The first created image in the mcClip.Holder shows just fine, also the trace and _x commands work. The clip will just not duplicate .
this.createEmptyMovieClip("mcClip",this.getNextHig hestDepth());
mcClip.createEmptyMovieClip("Holder",this.getNextH ighestDepth());
var mclLoader:MovieClipLoader = new MovieClipLoader();
[Code]....
I try to code an as3 where I need to duplicate a mc casted from objects, which are loaded from an XML file. My goal is to make a wrap around effects for animated menu icons that use separate swf files.this is the function I try to create, but my concern is in the else statement:
Code:
private function onItemLoaded(e:Event):void
{
loadedItems++;
var contentitem:MovieClip = MovieClip(loader.content);
[code]....
in the copyFirst/Last declaration I try to dupe refFirst and refLast... but It seems not to be the good way (error).
is it not possible to duplicate a created movieclip with a jpg loaded into it?
View 6 RepliesI am trying to duplicate a loaded movie clip multiple time. Below is the code. how to dublicate it using loadClip method.
ActionScript Code:
var thumbImgLoader:MovieClipLoader = new MovieClipLoader();
var thumbImgListener:Object = new Object();
thumbImgListener.onLoadProgress = function(target:MovieClip):Void {
[Code].....
I have a movie clip in which I loaded an external JPG to. Well, this movie clip works as a thumbnail and, as I click in it, I want the thumb's image to be loaded ("again") in another movie clip. duplicateMovieCLip does not seem to work.I don't want to load the image twice (as it strikes me as bandwidth waste..). Does this make sense? Or must I be load the image twice? (of course..I could use smaller images for thumbnails..)
View 1 RepliesMy problem is that when I click the letter movieclip it does create the duplicate as it should and it starts to drag the duplicate mc. However, when I release the clip it doesn't stop dragging? I realized that if I put onMouseUP event instead of onRelease it actually does stop dragging when I release the mouse. I would, however not like to use the onMouseUP event if possible.
[Code]...
If I have an object that calls
addEventListener(Event.ENTER_FRAME, update);
addEventListener(Event.ENTER_FRAME, update);
will that add 2 listeners?
Is it possible to control one loaded SWF File eg.(MOVIE-1.swf) from another loaded SWF file eg.(MOVIE-0.swf) on a different level? eg. with a syntax like:
onRelease
_MOVIE-1.SWF.gotoAndStop (4)
or:
onRelease
gotoAndStop (MOVIE-1.swf, frame4)
I am having problems dupliating a movie clip. I can make a duplicate from an original but when I edit the duplicate it also modifies what is in the original. (I am just changing the text, thats the only difference between the 2) How come it effects both clips when I only change one?
View 6 RepliesBased on UI inputs I am saving the results to an XML file (eg)[code]...
View 4 RepliesI want to duplicate a movie clip for each item selected from an XML file. I can't seem to find anything that works. Can somebody give me something to start with?
View 2 RepliesI'm building a flash movie for something at work and im loading in some images using an XML file but when i use a preloader it only preloads the XML file (as in just the text inside) and not the images.
This causes the movie to start playing without having the images loaded.Does anyone have any ideas about how i could get it to preload the contents/images being called in the XML file so it doesn't run as soon as the XML file is loaded.
I will try to be as clear as I can. I have an existing swf file that I want to add Play,Pause, FF and Rewind via an externally loaded swf file that has the controls contained in it.I am loading an external swf file that has all of the controls on it via this code:
// Set up the Mouse to use a listener
var mouseListener = new Object();
Mouse.addListener(mouseListener);
[code].....
I have an existing swf file that I want to add Play,Pause, FF and Rewind via an externally loaded swf file that has the controls contained in it.
I am loading an external swf file that has all of the controls on it via this code:
// Set up the Mouse to use a listener
var mouseListener = new Object();
Mouse.addListener(mouseListener);
[Code]....
I am doing this so I can rollover the viewing window and have it appear. I cannot get any code to work to control the timeline (which is broken down into sections with individual MC's in each section.
What I am looking for is the code to apply to the buttons on the external swf file that has the controls to control the playing of the movie.
I have a flash file that is 1.5mb in size. As it takes about 6 minutes for someone on dialup to load this file, I have created a smaller swf file and loaded the larger one from it but I don't want the larger one to begin to play until it's fully downloaded. How do I set this up? I have set up the action script 2 as follows: loadMovieNum("top2.swf", 0);
View 7 RepliesI load a "cal" swf file in another swf files mdi_window. So the window is moveable inside the application. The issue is with the x y axis for the popups that open up in cal swf. The code for the function that opens popup is:
[CODE]...
The x & y axis of the popup act wired based on the location of the mdi_window in which the Cal.swf is being loaded. The x & y axis work fine if I move the mdi_window all the way on the top left corner of the application. The first image shows how the popup opens when I double-click on the 10:00 AM purple color event on my calendar.
and now when I move my window the popup moves to the side as well. I clicked on the same 10:00Am purple event again here: How can I solve this issue.
I've got a loadVars function, but I want to use the variables from the loaded file elsewhere in the file.[code]
View 1 RepliesI'm using this code to load a file...
Actionscript Code:
var swfLoader:Loader = new Loader();swfLoader.contentLoaderInfo.addEventListener(Event.COMPLETE, loadProdComplete);swfLoader.load("MyNiceFile.swf");function loadProdComplete(e:Event):void {trace("Loaded File: " + ????); // I want to see: "Loaded File: MyNiceFile"}
How do i get the file name that has been loaded? How do i get "MyNiceFile.swf" -- or even better "MyNiceFile" .
I have tried this...e.content.name, but all i see is "instance32" which must be the temp name of the loaded file.
I loaded a swf file in a dreamweaver cs3 and tested it on a browser and works fine. However, after I uploaded everything on my server.. I don't see the swf anymore.. I loaded the scripts AC_RunActiveContent.js.. [URL]
View 5 RepliesI have a folder containing some images named 01_image_name.jpg, 02_image_name.jpg, 03_image_name.jpg, ... wich I read with a PHP script. Then I loop loading each image and waiting until all are loaded to display them
View 5 RepliesI have been trying to get a url to work in a xml file that is being loaded into my swf. I have tried using cdata and i was able to get it to wokr once but then it wouldn't work when i placed it lower in the file.
<comment><![CDATA[Blah blah blah Read more here: This mthe first news. Look at <a href="www.blabla.nl">www.blabla.nl</a>. ]]>
</comment>