ActionScript 2.0 :: Can't Load A JPG Twice To Differents MovieClips
Jul 3, 2005the problem is that I can't load a JPG twice to differents MovieClips. What can I do ?
View 2 Repliesthe problem is that I can't load a JPG twice to differents MovieClips. What can I do ?
View 2 Repliesi'm trying to loading three different images from xml in three differents movieclips that i have on the stage.
Code:
function handleComplete(e:Event){
var myXML:XML = new XML(e.target.data);
var mySfondo = myXML.sfondo;
[code]...
This is my code for loading the three different images but in the addChild it adds only the last image...how can i do?
I am trying to use a timer in differents parts of a movie, but I want each part to play a different amount of millisecounds, but even though I change the var millis, it still times for the same amount as the timer on the first timeline. DO I need to make a new timer, and how would I do it. Some else gave me the script for the timer I am using.
[Code]...
This is what I am using for the other frames because if Flash wont allow me to use the same script more than once. I use this for the second scene, but when I try to change it, there is no change it still follows the parameters f the timer in the first scene.
I'm building a training module in flash.I have main.swf for the main movie.I have menu.swf for the menu of the main movie.I have menu1.swf, menu2. swf, menu3.swf, etc for each section of the training module.I would like for the user to be able to finish later the training module.By doing this, I need to add sharedobject to my flash movie.I'm assuming I will add this on my main movie.How do I go by making sure the user comes back where he/she stop and continue with the training module at a later time?
View 1 RepliesI want to be able to choose three differents colors from a color picker. I want to choose between red, green and blue. How can I change my code below to do this? Should I have my color picker in its own class?
public class SuperDraw extends Sprite
{
private var loadImage:LoadImage;
[code]......
How do you dynamically load JPG's into movieclips in AS3. I was familiar with this process in AS2 but have been looking for a the simplest way to do this in AS3.
I found this code while doing research but I appear to be missing something as it doesn't work when I publish the file.[code]...
I had an idea I would like to incorporate into my site, and sure that Flash can accomodate, but what better place to check!? Say I have a mc_1, mc_2, mc_3, mc_4, and mc_5 all are basically the same information, just varied lead in animations. Is there a code that I can call to randomly choose among those when the site is loaded? Pretty vague I know, but right now I am adding them via "addChild," so would there be something I could use to accomplish this?
View 3 RepliesI'm creating a gallery and having a problem loading thumbnails into different MovieClips. I have all the MCs stored into an Array. I could load them if I wanted to type out:
var thumbLoader1:Loader = new Loader();
movieClipName1.addChild(thumbLoader1);
but I would think there's a more dynamic way. Right now Im stuck at:
[Code].....
I tried switcing the var "image" with a name from the "imageThumbNames" array but that would've been too easy.
I have 60 characters that I have drawn, and I believe they are making the FLA file take ages to load, and lag.
I would like to seperate the game into 2 files, characters.fla and everything else in another .fla.
I know that I could do loadmovie, but if I move the exported swf file with the loadmovie code in to my desktop for instance, then it wont load.
I would like it so that the two files are seperate, but when i export, it exports from both files to make a single swf with everything in it.
Every 5 minutes, a new movieclip should be loaded.These movieclips show a message 'still 20 min to go', 'still 15 min to go', ...
The project should start by a button in the first movieclip.
I have a flash file with about 32 empy MovieClips on the stage.Basically what I need to do is take an array of images and load them into these empty MovieClips. Hope this makes sense so far.This array will be dynamic and will come from a PHP file.The problem is I'm not sure how to do this? I don't know to take an array in flash and allocate the images to individual MovieClips.
View 1 RepliesI would really like a class that i can use to load all my movieclips from.I have 100's of external swfs - and i want to load them to stage from one class - as they are requested.I did manage to do it one way, to get access to the stage i did this:
Actionscript Code:
private var _stage:Stage;
and in the constructor code, just did:[code]...........
how to actually load the swfs, what i'm really looking for is a way to use addChild to the stage from within my class.
I'm importing images from a folder into movie clips located in my flash, the clip on my first frame loads the graphic, but i can't quite get the others to work[code]...
View 4 Repliesi am having problem to load multile swf one by one . the details of swf file name will be in a xml file . it should load one by one . and one more thing how we can know the details of that loaded swf like wheteher that contains Background movieclip aur Games Character's Movieclip
View 5 RepliesI've got a function to load multiple MovieClips on different rollovers.[code]But this way I can't dynamically change the movieclip instance when I call the function multiple times.
View 7 RepliesIs there a way I could use an externally loaded image in multiple movieclips? I load the image using the Loader class but how can I copy it over to some other clips?
View 2 RepliesIs there a way I could use an externally loaded image in multiple movieclips? I load the image using the Loader class but how can I copy it over to some other clips?
View 4 RepliesI'm new in AS3 and i'm having some problems. I'm trying to put thumbnails that are load by xml inside a ScrollPanel.
What happened is that the ScrollPanel didn't have a scrollBar and didnt scroll. I thought that if i put each thumbnail inside a MovieClip and set the height maybe would do the trick. But things got worse because i couldn't be able to put the thumb's inside de MC's. Just put them in front
[Code]...
i want to create and manage 2 movieclips inside a single class. i just wrote a simple setup for this and i ran into a problem:i create 2 movieclips and want them to be displayed on stage.but only the second movieclip is actually displayed and the first one is just not visible. when i switch the order in which the movieclips are created i see the one being created last. so i totally dont know what to do here. since i am very new to flash i might be missing out on something obvious.here is my class:
ActionScript Code:
package {
import flash.display.MovieClip;
[code].....
I was wanting to load different movieclips from within my library onto the stage of my main movie when the user mouses over a button. Each movie clip that I was wanting to load is the same size and also are to load into the exact same location as one another.I think I can do this by setting up an empty movie clip on the stage and scripting it so they all load into it? Is this right?
View 2 RepliesI have several movieclips placed on the timeline that I want to be invisible and not run until the user clicks a button. The movieclips are linked to a class I set up:
Code:
class Hidestop extends MovieClip {
function onLoad() {
[Code]....
The problem is that some, but not all, movieclips show briefly when they load before becoming invisible. I can get around this by starting each movieclip with a blank frame, but there must be a better way.
I need to load random movieClips from the library to a middleStage container on my stage. I already have this.
Code:
for (i=1; i<7; i++) {
this["btn"+i].iD = i;
this["btn"+i].onRelease = function() {
[Code]....
I just need to add to that random loading to the middleStage this will only work when the user is not interacting with buttons = btn's.
I have an XML document that lists url of images to be displayed. What I want to do is load the length of images in the XML doc into an Array. Then take that array and make movieclips for each one.
View 2 RepliesIf I have a folder with a random number of images in it, how could I add each image to its own movieClip?
View 1 RepliesI was wanting to load different movieclips from within my library onto the stage of my main movie when the user mouses over a button. Each movie clip that I was wanting to load is the same size and also are to load into the exact same location as one another. I think I can do this by setting up an empty movie clip on the stage and scripting it so they all load into it? Is this right?
View 2 Replieshow to make buttons play movie clips in a particular area when I press a button however I'm trying to make the jump up higher.
I have 3 menu items with 3 movie clips loaded just beneath the menu Items. However my first problem is, how do I hide content or even better, only play certain movies when a button is released?
At the moment the code for a button I use is:
on(release){
_root.intro.play();
}
But all the movie clips are overlayed!!
I have 9 movie clips which I want to load in random order, so that viewers who come to the webpage don't always see the same thing. I have them set up as 9 frames within another mc. I need EXCEPT it always displays the first one first, and then the rest in random order. I tried making the first frame empty, but then there was a big lag before it showed anything, because of the timer. Here's the script I used:
myMc.stop();
time = getTimer();
wait = 500;//1000ms = 1 second
_root.onEnterFrame = function(){
[Code].....
Can you addChild to a specific movieclip instance i.e. movieclip.name.addChild(movieclip).
I have built a 'for loop' to render a series of 'products'. The idea being to create a movieclip, load an image into this movieclip, assign a URL and later some text.[code]...
"Rotation Around A Common Center" Tutorial Posted at the following link [URL]I was wondering if there was a way to load different movieClips at Different Points in the rotation, instead of having the same movieClip for all; and if so how?
View 1 RepliesI want to load movieclips when my main moviecliploader are loading. So eg I have a loadbar and when its 50 % I want a movieclip to come up. And if the loader is at 70& another movieclip comes up.[code]
View 1 Replies