Loading Frame Images For Movie, Most Effective Way?
Ok, basically i am just wandering what everyone thinks if the best way to load a movie.
I am learning OpenGL, and hopefully DirectX soon as well, and in some of my projects i am going to be displaying them on my website. I am going to be taking a frame by frame screen**** of my OpenGL movies to import them into flash, and i was wandering what everyone thinks is the best way to do it?
In my understanding i have two options,
1.) Take my Fla and load them all into it by hand. 2.) Make it more dynamic and loadthem at runtime via ActionScripts LoadMovie Command.
Now it would be easier on me to do #2, but i am not looking for ease. I am looking for the most effective in FPS at Runtime, Load Speed, and obviously tied into Load Speed, the File Size for people to load.
So which would be faster, better, smaller, ect.? Thanks to any replies!
FlashKit > Flash Help > Flash MX
Posted on: 01-28-2005, 01:05 PM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Effective Preloader Possible On 1 Frame Swf?
Hi,
Usually when I build a site, I have a preloader on frame one that proceeds to frame 2 when the swf is fully loaded (and my classes are loaded on 2).
I'm wondering if there is any way to have an effective preloader on a one frame site?
Effective Way Load Movie Into Movie Clips
Is there a effective way to load movies into MC's(movie clips) rather than using levels. For some reason, I try use the load movie action and the movies start to play before I want them too. I place a stop action on the first frame of the swf.file, but flash seems to be ignoring it.
First I use the load action in the frames before;
loadMovie ("tb.swf", "lb");
and the trigger frame where I want clip to start, I place this
with (_root.lb) {
gotoAndPlay (2);
}
For some reason, it loops. Do I have to have a blank keyframe or any keyframes on the movie clip? Does the MC have to have only one layer? How does the action know which layer to go to?
Tempe,Arizona
Is Loading Many Images In First Frame Efficient?
I am doing something like a company advertisement in flash (for web ofcourse) and i need to display a clip everytime a user clicks a particular button.
There are 8 or 9 such buttons.
I dont want the user to wait for the clip to load in runtime at each button click. Will loading all images in first frame work? How heavy will it be on the memory then?
Movie Clip Images Deteriate If Not On Frame 1
Hi,
I'm having a real problem with a flash movie which I desperatly need to get sorted out ASAP.
I've a selection of logo's which simply need to fade in and out one at a time. This short looping animation is in a movieclip. Now if the movieclip is on frame 1 the logo's are in the quality they should be but if I place the movie clip on another frame with a stop(); command the logo's deteriate as if the .jpegs have been stretched slightly out of porportion.
I've tried everything I can think of such as having the logo movieclip in one file and then loading it into another level on a main movie and a later frame.
I really don't think I'm doing anything wrong as I use Flash everyday and generally know what I'm doing but I've never come across this problem before. If anyone has any idea's or know of any bugs in flash which may cause this please let me know.
Thank you, Craig
Loading External Images Loading Bar (Movie Clip)
I have managed to have external images loaded with the progress bar. However, when I place these items into a movie clip the preloader no longer works. can someone please take a look at the flash file for me.
http://www.bloggot.co.uk/file.zip
Loading A Frame In _root And Also Loading An External Movie Problems.
First of all, hello everyone and nice to meet you
I have been hacking at a problem for a couple of days now and I am in need of help to solve it. Please excuse my noobishness, but I have a lot to learn when it comes to flash.
Here is my scenario:
I have my main movie (_root)
In the actions layer of my main movie I have:
Code:
this._lockroot = true;
I have a button that loads a new external movie at the end of which I want to load a particular frame in the main movie. I call this from the external movie:
Code:
on (release) {
_root.gotoAndPlay(610);
}
Everything up to here works brilliantly....But my problem arises when I also try to load an external movie onto level 5 at the same time as I am instructing the main movie to play frame 610 from an external movie. I want the external movie to call frame 610 in main, and also load a new external movie on level 5 in the main movie. I have tried about every way of loading movies that I can think of but I can never get the external movie to load along with frame 610 of the main movie. I even tried _root.loadMovieNum("myexternalmovie",5) right after my first root call, like this:
Code:
on (release) {
_root.gotoAndPlay(610);
_root.loadMovieNum("myexternalmovie",5)
}
Is that possible or do I have to approach this entirely differently? Thanks for any responses
Frame By Frame Loading Movie
I need to have a loading movie advance in relation to the frames it has loaded. I can get a "Bytes" preloader to work when I'm loading a movie, but when I have miltiple frames in the timeline it only wants to load the first frame then try to play and load as it goes. I used to
use "IfFrameLoaded" on the odd frames with a "GoTo" on the evens to advance the loading movie (Flash5). Anyways, sorry it's so long. If someone can help me it would be greatly appreciated.
Loading A Movie (within A Movie) & Assigning A Random Start Frame
Flash 5
Hello everyone.
After taking almost a year off from web programming Im relearning flash :0
I haven't gone past the basics with Flash 5 and have a couple projects coming up.
The routine I wish Flash 5 to do should be something simple to explain I hope for a vetrin user.
1) Flash Movie A (180 x 60) loads Flash Movie B (60x60) into left most space (say slot 1) and then randomly tells Flash Movie B to start at a particual frame (random(8). Each frame is a simple image with an actionscript Stop; command).
2) Flash Movie A fades in 1st Flash Movie B at slot 1.
3) Flash Movie A loads another Flash Movie B in the middle space (slot 2) and once again randomly tells Flash Movie B to starts at a particual frame (random(8) (just a static picture like in 1).
3) Flash Movie A fades in 2nd Flash Movie B at slot 2.
4) Flash Movie A loads another Flash Movie B into the far right space (slot 3) like the others (tells Movie B which random frame to start at).
5) Flash Movie A fades in 3rd Flash Movie B at slot 3.
My feeble mind is having a problem telling:
1) Where to tell Flash Movie A to position each load of Flash Movie B.
2) How to tell Flash Movie B I wan't it to start at a random frame.
I have the fade in and fade out set
also.... slightly more complex.. Does anyone have experience in doing somethnig similar to this and setting a variable to define which random numbers were selected for each slide so they will not repeat. (i.e. after loading slot 1 it will also define 'slot1' at the same time it creates that random number for slot1 and so on).
TIA
Dan
Help Needed With Loading A Movie (and Frame Number) Within A Movie
i would like to make a function (?) that checks a variable constantly throughout a movie.
the function would check a variable (mood) which is initialised at 50.
depending on what mood is (checked by using an if statement?), i would like to load a movie that is placed within my main stage, specifically a frame (labelled something like "Happy", "Sad", "Normal").
i have no idea where i would put the function, having sort of only just worked out how to initilise the value for "mood", no idea how to load a movie within a movie to a specific frame number, and no idea how to write that all in an if statement.
any light shed on this would be appreciated like you'd no believe (project is due in 48 hours).
thanks in advance.
Loading Images Into Movie Clips
How do I load an image located in a folder into a Movie Clip.
I have tried with picture1.loadMovie("images/pic1.jpg") but this doesn't seem to work.
Loading Images From Flash Movie
I was wondering if there is a way to load images from Flash... my movie starts playing before the entire page has loaded, and my boss didn't like that
If anyone knows a way to do that, please help me!
The problem can be seen at: www.mastro.com.br/mc_eng
Thanks!
Loading External Images Into Movie
Hello,
I am wondering if someone can share the knowledge about the most appropriate way to create a flash file that will be able to get external images from some kind of code (XML or some cookies) that will have a path to the image that will be needed to download into flash movie. The problem is that the path will be all the time different. As a result I'd like to know how can I make the flash file reading that path from XML file and then download the image into flash.
It is kind of challenge for me. I never did something like that.
Any advice is highly appreciated. Maybe there are some examples. It would be the easiest way to learn about it.
Many thanks in advance.
Loading SWF's And Images Into Movie *preloader
http://www.saltyfoot.com/civic
that is the little movie I made. Each button you click brings up a new movie in a container movie clip.
Each .jpg that you can click on in the exterior/engine part are externally loaded.
Check out the site and you will see the delay on how it works. But my question is that I have preloaders on the movies (Exterior/Engine) but they don't show up when viewed in the parent clip. I'm not sure how to make them visable.
And is there a way to preload all the jpgs? Do that right at the beginning just to get it out of the way.
You guys rock as always.
Problem Loading Images Into Movie
i downloaded a movie from flashkit "Scroll_H-Massimo_-11298.zip" Continuous Horizonal Photo Scroll, and have implemented it into my existing flash movie.
I have edited it and it works. However, due to the method the creator used all of the photos are embedded within the movie, and thus has bumped the file size to 1.6mb. Not good am sure you'll agree. So i tried in vain to load the images, got half way through and am now stuck. i can load the images, but it screws it up.
I was wondering if someone out there can help me please?
This is the website www.soniastrong.com
Its the "Press Release" page and here's the source file.
www.soniastrong.com/press.fla
Within the movie there's 16 photos and 16 movie clips named from clip0 to clip16
I have edited "clip0" and this is where im trying to load the image into, as you can see by the .swf file, it works, but it decides to insert an extra thumbnail for some reason?
Im kind of new to flash and action script, and it doesn't help how the original creator of the horizonal photo scroll has written the comments in Spanish
any help grately appricated as i've been pulling my hair out for days now!!
Daz
Loading More Than 1000 Images To A Movie
Hi,
Iam creating a map same like the one in this site
Almost like this: http://www.cpluv.com/www/creativenetwork/
This is a design challenge where peoples can post their designs online. The fields allowed are name, image (not more than 15kb) and discription.
I am loading the values (x and y position of the bullets, image, name and description) from an XML file. Everything is working perfectly.
When i tested this file with 1000 posts with thumbnail images of 20kb each the system hangs....
1) How can I get size of the memory using by the swf ?
2) What is the way to overcome this issue, ?
Loading Movie For Images And Data?
OK...
I've just recently gotten Flash MX and would like to move into more dynamic movies. I know that you can now load JPG directly into MX at any time (even after the movie has loaded).
I'm building an ecard which will have a slide show of sorts. 2 images (per slide) as well as 2 snippets of text about said image. I don't want the user to have to watch a blank screen while the images load so I'd like to build a preloader for each image similar to Solid State Records (http://www.solidstaterecords.com/front/) (under the "New Releases" in the middle of the page). The problem is, I don't know how to do that. I've got a preloader that I use for the beginning of my ecards, but I've always loaded in the content all at once so I don't have any clue where to start. Can someone please help me out, or at least point me in the right direction?
thanks
Loading Images Into Empty Movie Clips
Can anyone tell me how to load an image called "frame.png" into an empty movie clip on the stage called "frame"?
I tried doing this on the first frame of the main timeline (there is only one frame in the movie so far)
loadMovie("images/frame.png", "frame");
This doesn't work. What am I doing wrong?
Thanks
Loading External XML Images Into A Movie Clip
I'm trying to load an external image thru an XML file, into a empty movie clip, so that I can control it after thru AS
This is the code I'm using, but It dosen't seem to work properly.
Quote:
var imageLoader:Loader;
var boxX:int = 0;
var myXML:XML;
var myXMLList:XMLList;
var xmlLoader:URLLoader = new URLLoader();
xmlLoader.load(new URLRequest("assets/xml/bottom.xml"));
xmlLoader.addEventListener(Event.COMPLETE, xmlComplete);
function xmlComplete(evt:Event):void {
myXML = new XML(evt.target.data);
myXML.ignoreWhitespace = true;
myXMLList = myXML.caseStudies.children();
for (var i:int = 1; i <= myXMLList.length(); i++) {
imageLoader = new Loader();
imageLoader.load(new URLRequest(myXML.caseStudies["jpgURL"+i]));
MovieClip["box_"+i] = MovieClip(imageLoader.content);
["box_"+i]x = boxX;
boxX = i * 86;
["box_"+i]addChild(imageLoader);
}
}
Loading Images Into Movie Clip Dynamically
I am trying to create thumbnails and when I try to load the image onto the dynamic movie clip...it suddenly becomes non-clickable.
if I create a movieClip with borders and color, it is fine.it just messes up when I load images onto the dynamically created movie clip.
It is baffling. any help would be appreciated.
here's the code for it:
myPhoto = new XML();
myPhoto.ignoreWhite = true;
myPhoto.onLoad = function(success) {
numImages = this.firstChild.childNodes.length;
d1 = 1;spacing = 70;
trace(numImages);
x = 250;d2 = 1;
for (i=0; i<numImages; i++) {
_root.createEmptyMovieClip("btn"+i,100+i);
_root["btn"+i].lineStyle(2, 0x000000, 100);
_root["btn"+i].beginFill(0xFF0000, 100);
_root["btn"+i].lineTo(25, -10);
_root["btn"+i].lineTo(25, 10);
_root["btn"+i].lineTo(-25, 10);
_root["btn"+i].endFill(-25, -10);
_root["btn"+i]._x = x + i*spacing;
_root["btn"+i]._y = 420;
trace(this.firstChild.childNodes[i].attributes.thmb);
//the line below is the one that messes up things
loadMovie(this.firstChild.childNodes[i].attributes.thmb,_root["btn"+i]);
}
btn1.onRelease = function(){
trace("Inside btn1");
}
btn2.onRelease = function(){
trace("Inside btn2");
}
btn3.onRelease = function(){
trace("Inside btn3");
}
btn4.onRelease = function(){
trace("Inside btn4");
}
btn5.onRelease = function(){
trace("Inside btn5");
}
btn6.onRelease = function(){
trace("Inside btn6");
}
btn7.onRelease = function(){
trace("Inside btn7");
}
btn8.onRelease = function(){
trace("Inside btn8");
}
trace(this.firstChild.childNodes[1].attributes.main);
//loadMovie(this.firstChild.childNodes[1].attributes.main);
};
myPhoto.load("xmlphoto.xml");
Loading Images To Duplicated Movie Clips
Hi ppl,
I have a problem in loading pictures to duplicated movie clips. I have a dynamic sliding menu and I wanna load images to submenus. However I havent succeeded yet.
Here is the code:
setProperty("Rub", _visible, false);
setProperty("subrub", _visible, 0);
bas._visible=false
n = 0;
while (n<=TotalRubs) {
n = n+1;
set("PosY"+n, getProperty(n, _y)+RubHeight- 1.5);
if (TargetRub==n and eval("Total_Subrubs_Rub" add n)>0) {
z = 0;
while (z<eval("Total_Subrubs_Rub" add n)) {
z = z+1;
duplicateMovieClip("subrub", n+"_"+z, Number((n*10))+Number(z));
this[n+"_"+z].img.loadMovie("urun2.jpg");
set(n+"_"+z+":subtxt", eval("L" add n add z));
if (Number(z) == 1) {
setProperty(n+"_"+z, _y, Number(getProperty(n, _y))+RubHeight- 1.5);
} else {
setProperty(n+"_"+z, _y, getProperty(n add "_" add (z-1), _y)+SubrubHeight);
}
}
max = SubrubHeight*eval("Total_Subrubs_Rub"+TargetRub);
//set("PosY" add TargetRub, Number(getProperty(TargetRub, _y))+Number(getProperty(TargetRub, _height)));
set("Distance" add n, eval("Distance" add n)+5);
if (eval("Distance" add n)>=max) {
set("Distance" add n, max);
}
//setProperty(Number(TargetRub)+1, _y, eval("PosY" add TargetRub)+eval("Distance" add TargetRub));
} else {
z = 10;
while (z>0) {
z = Number(z)-1;
removeMovieClip(n+"_"+z);
}
set("Distance"+n, eval("Distance"+n)-10);
if (eval("Distance"+n)<=0) {
set("Distance"+n, 0);
}
}
setProperty(n+1, _y, eval("PosY"+n)+eval("Distance"+n));
}
I ll be very happy if somebody help me on this problem
thanks in advance...
Loading Images To Duplicated Movie Clips
Hi ppl,
I have a problem in loading pictures to duplicated movie clips. I have a dynamic sliding menu and I wanna load images to submenus. However I havent succeeded yet.
Here is the code:
setProperty("Rub", _visible, false);
setProperty("subrub", _visible, 0);
bas._visible=false
n = 0;
while (n<=TotalRubs) {
n = n+1;
set("PosY"+n, getProperty(n, _y)+RubHeight- 1.5);
if (TargetRub==n and eval("Total_Subrubs_Rub" add n)>0) {
z = 0;
while (z<eval("Total_Subrubs_Rub" add n)) {
z = z+1;
duplicateMovieClip("subrub", n+"_"+z, Number((n*10))+Number(z));
this[n+"_"+z].img.loadMovie("urun2.jpg");
set(n+"_"+z+":subtxt", eval("L" add n add z));
if (Number(z) == 1) {
setProperty(n+"_"+z, _y, Number(getProperty(n, _y))+RubHeight- 1.5);
} else {
setProperty(n+"_"+z, _y, getProperty(n add "_" add (z-1), _y)+SubrubHeight);
}
}
max = SubrubHeight*eval("Total_Subrubs_Rub"+TargetRub);
//set("PosY" add TargetRub, Number(getProperty(TargetRub, _y))+Number(getProperty(TargetRub, _height)));
set("Distance" add n, eval("Distance" add n)+5);
if (eval("Distance" add n)>=max) {
set("Distance" add n, max);
}
//setProperty(Number(TargetRub)+1, _y, eval("PosY" add TargetRub)+eval("Distance" add TargetRub));
} else {
z = 10;
while (z>0) {
z = Number(z)-1;
removeMovieClip(n+"_"+z);
}
set("Distance"+n, eval("Distance"+n)-10);
if (eval("Distance"+n)<=0) {
set("Distance"+n, 0);
}
}
setProperty(n+1, _y, eval("PosY"+n)+eval("Distance"+n));
}
I ll be very happy if somebody help me on this problem
thanks in advance...
Loading Images Into A Blank Movie Clip
This may seem simple...but ive been watching all the Lynda tutorials and looking on Flash help..and i cant seem to figure out how to load an image into a blank movie clip on the stage from the library or using the URLRquest...any help would be greatly apreciated.
Loading A Movie At A Certain Frame
can anyone help me on how to load a movie at a particular scene? i have a movie that loads when the user clicks a button, but i need it to load at frame 5.
thanks.
Loading Movie And Go To Frame
Hi all,
Her's the deal !
I've got a movie... with buttons on it.
As I press one of the butons, I want to load another movie and go to a frame of that specific movie..
I know how to load a movie with a buton, but I can't make it go to a specific frame.
I was thinking of setting a variable in the first movie, and using that variable to give the position of the frame where i want to go !
here's the code.. that I set !
----------------------------------------------
on (release) {
tellTarget ("../") {
gotoAndPlay ("fin");
loadMovieNum ("dialogue.swf", 2);
}
}
-------------------------------------------------
What this code does, is go to the last frame of the curent movie, and then loads, the seconde one.
Thanks all, if ever you can help me !!
Good flashing =)
Loading A New Movie At A Certain Frame?
Hello,
I am loading a new movie in a frame inside an html page when I click a button in a movie in another frame of the html page. This is easy, I actually use the getUrl command and just load the movie as a web page.
However, I would like to be able to load the movie and have it start at a different frame within the movie based on different button clicks within my other movie. I hope this makes sense... I have not been having much luck with Flash or with this board.... I hope my questions are not too vague. I can elaborate if necessarry.....
Thanks
Loading A Movie And Going To A Certain Frame
Hello all....
If i want a movie to load when i press a certain button but i want it to go to a certain frame within that movie how would i do that. For example if I have
loadMovieNum("test.swf", 1);
gotoAndPlay(10);
but I need that gotoAndPlay(10) to refer to frame 10 in the test.swf not in the main movie. Is there any way to do this within the main movie?
Loading Movie On Frame Other Than 1
i can't for the life of me figure out how to get a movie to load on a frame other than 1. what i mean is, say on a menu you have a button with an over state. after you click on the button it takes you to a different html page and loads my swf on frame 2 instead of 1. any help is appreciated
Loading Movie At Frame...
I have several .swf files connected together... meaning at the end of each timeline it loads the next swf file.... this runs fine. Ive put buttons in each .fla file ... so my fast forward works great too...
So im trying to rewind.. and when it reaches to beginning of the .swf it stops...(obviously because previousFrame goes to the previous frame of THAT timeline) so i put a new keyframe in the first frame of the timeline and wrote
this.loadMovie("previous_movie.swf"); but i want it to go to a specific frame
my question
Can i load a movie at a specific frame, if so can someone show me the code? or direct me where i can find it?
Movie Loading On Frame 0
I searched for answer but haven't been able to find one yet.
Any help would be great.
I have a movie with a simple animated mc for a preloader and the script;
ifFrameLoaded ("end") {
gotoAndPlay("items");
if (false) {
gotoAndPlay("load");
}
}
on the 2nd frame. When I test the movie, I see nothing and then a blip of the preloader and the main movie. In the bandwidth profiler under state, I see that the movie is completely loading in frame 0. wtf?
Sorry, but I'm totally baffled.
[F8] Loading A Movie Then Going To A Frame (please Help)
I feel like such a dummy for not being able to figure this out but, i guess thats why I am here. So this is what i have so far:
I have a circle (lets call it wheel.mc) that is broken down into 6 even buttons (btn1, btn2, etc). the circle spins to a button when it is pressed. when the button finally reaches its position i want a SWF file (same file everytime) to play and then go to a specific frame based on what button is pressed.
This is the code i have so far.
Code:
stop();
function rotateWheel(num) {
wheel2.onEnterFrame = function() {
if (wheel2._rotation != num) {
if (wheel2._rotation < num) {
wheel2._rotation += 5;
} else {
wheel2._rotation -= 5;
}
} else {
delete this.onEnterFrame;
}
};
}
wheel2.btn1.onPress = function() {
rotateWheel(0);
};
wheel2.btn5.onPress = function() {
rotateWheel(140);
};
wheel2.btn6.onPress = function() {
rotateWheel(60);
};
wheel2.btn2.onPress = function() {
rotateWheel(-50);
};
wheel2.btn3.onPress = function() {
rotateWheel(-100);
};
wheel2.btn4.onPress = function() {
rotateWheel(-160);
};
Each button inside the MC has this code inside:
Code:
on (release) {
_root.gotoAndStop(6);
}
How do i make the action script tell these buttons to play a SWF first then go to frame (whatever). If someone can also help me figure out how to make the clip transition into frame or vice versus, instead of a rough drop into the frame.
Thank you gods of flash.
PS: can somone please tell me a place where i can learn through tutorials about designing several diffrent page transition (with actionscript). Thanks
Loading Img Src Into Movie Frame
Hi all,
This might be really simple , but for the life of me I cannot see how to do it.
All I want to do is load a predefined hit coutner from my hosting service into a box on my site - the hit counter is defined as a linked img src reference: <img src=/tinc?key=nZOEpLjD>
I have set a box on the desired page and location in the Flash movie and named it as Counter_Box. This is the script in actions that I use to call the Hit Counter into the Coutner_Box:
loadmovie("<img src=/tinc?key=nZOEpLjD>",Counter_Box);
stop();
When the page loads, it just removes the Counter_Box and no hitcounter appears.
For a demo, look at the contact page of the site: www.pumaknight.co.uk. The Hit COunter should be in the bottom left of the screen.
I do hope you can help.
Thanks in anticipation,
Michael HText
Loading A Movie On FRAME 1 ?
Hi,
I used a Tutorial from Senocular to preload my movies internaly.
My problem is simple:
The tutorial works only with onPress:
btn_360.onPress = function() {
startPreload("load/answer.swf");
};
What I would like to do is to make a first movieclip load in the beginning without having to click any button or do anything. How can I starPreload automaticaly ? Here is the code on frame one:
----------------------------------------
btn_360.onPress = function() {
startPreload("load/answer.swf");
};
// this function begins preloading a swf url
function startPreload(url){
// assign the url to the preloader
// it will load it internally
preloader_mc.url = url;
// set destination movie clip for loaded content
preloader_mc.target = content_mc;
// begin the transition by playing frame 2
preloader_mc.gotoAndPlay(2);
}
Loading A Frame Within A Movie?
Can anyone suggest how I can navigate to frame after selecting a movie. I can currently open a new movie in my container but can not navigate to a particular frame once this is done.
Code I am currently using:
on (release) {
_parent.content.loadMovie("wandm_detail.swf",1);
}
Any advise would be helpful!
Go To A Certain Frame In A Movie I'm Loading
I'm loading firstFloor.swf into an empty movieclip (photoMovies) in my main movie, but how do i tell it to go to a certain frame within firstFloor.swf. Here's the code:
_root.photoMovies.loadMovie("firstFloor1.swf",1);
Can any one help?
Loading A Frame From Another Movie
ok, this is something i have done many times before, but it has been so long since i have needed to, that i have kinda forgotten how.. and i lost all my previous files last year (long story)..
ANYWAY.. what i am wondering is, how to load a frame from another movie.
i know how to load a frame from the current movie you are in, but i need to, for example, be able to click a button and it to load frame 3 from another movieclip.
any suggestions?
Dyanamically Loading Images Randomly From The Movie Clip
hi,
i had developed a flash file of 300*75 dimensions, and i created 7 movie clips of same dimensions 140*75 and are scrolling from right to left and the images will be dynamically loaded from a folder outside.
Here my question is when the images are moving from right to left ie., image 1 to image 7 moving the image 1 should have to become as image 8 and so on from the same folder .
can any body help in this regard.
Thanks and Regards
srinivas balla
Problem Loading Images With Test Movie But Not In Browser?
Hi,
I searched quite a lot to find a solution to my problem but it is still a mystery... let me explain...
If I use publish preview and see the file in the browser everything works fine: all images are loaded from external files...
If I use test movie, only one image loads and the image is neither the first one nor the last one of the array of images, its the sixth (about 16 in total)
Since all the images are about the same size, and same format (jpeg as long as the extension is concerned) I see no reason why they are not loading in flash...
I really am not sure what is the problem here...
Loading Random Images Into Movie Clips Using Attachmovie?
Ok so I'm totally at a loss here...
I have four empty movie clips that I want two types of pictures to load into randomly.
(example)
food1_mc place1_mc food2_mc place2_mc
now I want to randomly load images into those empty clips (pictures of food and places, imagine that). I can load in PNGs randomly but I ALSO want to have those images animate into frame each time the user visits the home section. So if I load PNGs it doesn't animate since the animation frames are passed before the PNG loads in. I also tried to throw a loader on the front but that only loads the flash file (of course) and not the PNGs. So my idea is to import all the images (there are 12 of each kind) into the library into their own movie clips (naming them food1, food2 etc etc) and then randomly AttachMovie to those empty movieclips... And then I will throw a loader on the front of that whole thing.
So I have the basic idea correct, I think, but I can't figure the code out.... Is this the most efficient and sane (at least on my end) way to do what I want?
halp?
big thankee sais in advance.
Loading And Unloading Multiple Images In A Movie Clip
I have a project I'm working on now that is suppose to load images from an xml file into a movie clip. I have no problems loading an image but I just can't figure out how to unload that image. Basically when a button is clicked I want to unload the current image and load a new image in the same movie clip holder. Any help would be great!
ActionScript Code:
function ImageLoad(u:String,target,Ypos,Xpos){
var targetClip = target;
var positionY = Ypos;
var positionX = Xpos;
var logoLGHolder:Loader = new Loader();
var request:URLRequest = new URLRequest(u);
logoLGHolder.load(request);
targetClip.addChild(logoLGHolder);
}
player1Holder.addEventListener(MouseEvent.CLICK, slidePlayers1);
function slidePlayers1(mevt:MouseEvent):void {
ImageLoad(myXML.children().logoLG[0],logoLGHolder,0,0);
}
Dynamically Loading Images Into Movie Clip Or Button
Hi
I'm having a real problem trying to load a dynamic image into a movieclip or button. Does anybody have a good starting point for me as I've used a button to initiate the load but I cannot get the image loaded when the movieclip loads (which is what I trying to acheive)
Loading Images Into Moving Movie Clip As Animation Happens
Hi all
its a new year and its all got real complicated real quick!!!
here is the gen:
i have a spinning globe (i know but its what the client wants!!!)
as it spins he wants images to come out of countries pause then go back into the country they came from, there are a hell of a lot of countries with a few images each.
He has a guy speaking over the intorduction (I know stop gawping this guy is quite twee realy) its a good spund file but about 5 mins long.
globe spins animation all sorted:
i have an array for each country setup:
Position is the position as the globe spins through a virticle line so it moves to the next country.
clipplaying is set to true when the movie clip is loaded and set to false once it has completed, the last position should then load a movie clip so that it comes out of the right country and goes back into the right place.
var Position = new Array ();
Position[0] = "sam";
Position[1] = "waf";
Position[2] = "eur";
Position[3] = "eeu";
Position[4] = "mea";
Position[5] = "afg";
Position[6] = "ind";
Position[7] = "chi";
Position[8] = "ido";
Position[9] = "aus";
Position[10] = "rus";
Position[12] = "nam";
Position[13] = "car";
Position[14] = "ust";
Position[15] = "sam";
Ignore = false
ClipPlaying = false
PositionNumber = 0
function ArrayPosition (){
onEnterFrame();
mytext = Position[PositionNumber];
if (PositionNumber == 15){
PositionNumber = 0;
} else {
PositionNumber = PositionNumber+1;
}
}
ok now i need to figure out how to get the movie clips to load a seriese of different jpgs - each country has 4-5 images and i don't want to have to load them all at the begining.
so each movie clip will have a number and will be set to come out of the right country and return to the right place.
each one of these movie clips also has to have an array of images to load into itself and remember where it is.
and finally
the issue of the sound file loading and running.
yours completley confused
sticky
ps anyone have any suggestions please help as i need to get this done asap
Making A Loaded Swf-file Loading Images Into The Movie..
Trying to convert my problem from norwegian into english isn't always that easy... :)
Anyway..
I've created som cool buttons that I want to be loaded into a movie (let's call i MainMovie.swf) and from there I want the buttons to be able to load images into a movieclip (ImageContainer) inside the MainMovie.swf.
Is it possible to make the MainMovie.swf communicate with the the loaded buttons (each button is a swf-file containing the actionscript, objects, etc.) so when the buttons are clicked they load different images into the ImageContainer?
My idea here is to include an as.file into the MainMovie.swf as well containing the url's to the images that I want to be loaded into ImageContainer.
I've tried to create a button on a layer above the buttons that's loaded into the MainMovie.swf but I end up with the loaded buttons not working properlu because of the button that I've created and placed above them.
Now, I don't want the url's inside the buttons thats loaded into the MainMovie.swf as I want the ability to be able to replace those buttons-files without having to use too much time writing the url's in each button.
Thanks folks.
Loading Random (externa) Images In A Movie Clip
hey i just want my movie clip to load random images in a frame
so in frame one it shows image2
in the next frame it shows image15
in the next frame it shows image7 and so on.....
all the images are in the library, they cant be loaded externally as its going to be used for an advert on a site somewheree
any ideas??????
thanks
ps im a newbie :-(
Loading A Specific Frame In Different Movie
i have 3 different swf files. flash1.swf, flash2.swf and flash3.swf. How can i make a button in flash1.swf that will load a frame 5 of scene 17 in flash2.swf? please help, thanks
Loading Movie To A Specific Frame
Hi,
I have a movie "first.swf" that provides a jumping off point for three other movies.
My Goal: When the user selects one of the three movies in the first.swf by clicking on a button, the first.swf is unloaded by the second.swf selected. When that second.swf finishes playing it automatically is unloaded by the return of the first.swf, but now at a specified frame.
My Trouble: Is the script placed at the end of the second.swf for the automatic reloading and navigation to a particular frame of the first.swf. So far the first.swf reloads perfectly, but it starts playing from frame number one, totally ignoring line 3.
Script placed in the last frame of the second.swf:
1. unloadMovieNum (0);
2. loadMovieNum ("first.swf", 0);
3. gotoAndStop (50);
All help will be greatly appreciated.
Corl
|