Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    Flash




Bid Problem To Load Multiple Images Dynamically



hello there, am a newbie to Flash.
i need to do something like http://www.habitclothing.com but entirely in flash and PHP . i need to have the scrolling and dynamic loading of the small images in Flash/php( currently it is in DHTML and php).
can somebody tell me how do this plz help me out



FlashKit > Flash Help > Flash MX
Posted on: 09-17-2002, 01:31 AM


View Complete Forum Thread with Replies

See Related Forum Messages: Follow the Links Below to View Complete Thread

Load Multiple External Images Dynamically?
I'm probably being an idiot here but is it possible to load a series of images into a dynamically created movieclip? I'm under the impression you can't create an empty movieclip and add frames to it dynamically?
Basically I would like the equivilant of loading a series of images into flash and placing them on seperate frames in a movieclip so they animate when the movieclip is played?

jbw

Dynamically Preloading Multiple Images
I've been searching on how to dynamically preload multiple images into my site. I know how to set it up to load dynamically each time someone clicks a thumbnail, but I'm looking for how it's done on "livebooks" where all the images of X gallery are preloaded so fast once the gallery is clicked, I'm assuming it's done dynamically because of the size of each image and the speed that "livebooks" allows. Any ideas?

Loading Multiple Images Dynamically
Ok, i've searched the Forums and tried to figure this out, with other people's examples, but I have no luck so far.

I am making a online catalog and want to dynamically load multiple JPGs at the same time, so that say, 6, jpgs will be shown on the stage at one time. I could go about this by making individual movieclips, but I want to make them dynamically. I'm not sure positive how to do this, and maybe it's staring me in the face, but if somebody could help me i'd appreciate it.

Thanks.

Loading Multiple Images Dynamically
Hi Folks

Would appreciate some help on this AS3.0 problem. I'm reading an XML file no problem and getting a list of images.

The problem I'm having is trying to get them to load into dynamic movie clips.

The code is below if anyone can help, I'd be very grateful.


Code:
package {
import flash.display.*;
import flash.events.*;
import flash.ui.Keyboard;
import flash.net.URLLoader;
import flash.net.URLRequest;
import flash.text.*;

public class MyContent extends MovieClip {
private var externalXML:XML;
private var loader:URLLoader = new URLLoader();
private var request:URLRequest = new URLRequest("five.xml");
private var myLoader:Loader = new Loader();
private var yPos=0;

public function MyContent() {
init();
}
private function init():void {

loader.addEventListener(Event.COMPLETE, onComplete);
loader.load(request);

}

public function onComplete(event:Event):void {
var loader:URLLoader = event.target as URLLoader;
if (loader != null) {
externalXML = new XML(loader.data);
var pictLdr:Loader = new Loader();
var max:Number = externalXML.entry.length();
trace(max);
for (var i:uint=0; i < max; i++) {
var mc:MovieClip= new MovieClip();
mc.name="clip"+i
stage.addChild(mc);
mc.addChild(myLoader);
trace(externalXML.entry[i].img);
var url:URLRequest = new URLRequest(externalXML.entry[i].img);
myLoader.load(url);
mc.x=0;
mc.y=yPos;
yPos+=150;
myLoader.contentLoaderInfo.addEventListener(Event.COMPLETE, imgLoaded);
function imgLoaded(event:Event):void {
trace("image Loaded");
}
}

} else {
trace("loader is not a URLLoader!");
}
}
public function linkHandler(linkEvent:TextEvent):void {
trace(linkEvent.text);
}
}
}
I am managing to trace that they're all loaded, they just don't display! Yet it works with 1 when not using the for loop.

Monkey

Attaching Multiple Images - Load Images One At A Time?
I have a photo gallery that loads many images using a for loop (image data is from XML file). Simplified code looks like this:


Code:
var photos_xml = new XML();
photos_xml.ignoreWhite = true;
photos_xml.onLoad = function(success) {
if (success) {
var photos = photos_xml.firstChild.childNodes;
var itemCount = 0;
for (var i = 0; i < photos.length; i++) {
var path = photos[i].attributes.path;
// attach the photos
var photo_mc = _root.center_mc.photosLevel1_mc.attachMovie("photoFrame_mc", photoName, itemCount);
photo_mc.empty_mc.loadMovie(path);
itemCount ++

...
Then on the photoFrame_mc clip I have a loading like:


Code:
onEnterFrame = function () {
loader_mc._visible = false;
var t = empty_mc.getBytesTotal();
var l = empty_mc.getBytesLoaded();
percent = Math.round((l / t) * 100);
if (l == t && t != undefined && t > 10) {
loader_mc._visible = false;
delete this.onEnterFrame;
} else {
loader_mc._visible = true;
if (isNaN(percent)) {
percent = 0;
}
loader_mc.percent_txt.text = 10 - Math.round(percent / 10);
}
};
So what happens now is that many images get attached at once and they are all loading at the same time.

What I'd like to do instead is to have them load one at a time. The first pass through the for loop attaches an image and then it loads, but it doesn't move on to the next image until the first one is done loading. Is that possible?

Or maybe is it better to let them load all at once? I just think that when the image count is very large it will really bog down loading so many images at once and it might be best to load one at a time. Please advise.

Dynamically Loading Multiple Images On One Frame
Hi,

If some one could help me with this I would be very grateful.
Is it possible to dynamically load more than one jpg into a frame at one time?
My actionscript only loads the last image.

Dynamically Loading Multiple Images On One Frame
Hi,

If some one could help me with this I would be very grateful.
Is it possible to dynamically load more than one jpg into a frame at one time?
My actionscript only loads the last image.

How Can I Load, Multiple Images Into Multiple Key Frames At Once..
Hey guys, I have this..pseudo 3d model viewer for my site that I am working on. The only problem is, I don't want to manually add every image to the flash...especially if I have 45 images or so and I am pretty sure there is no way to automate this in actionscript..


http://www.pcgamemods.com/slideshow/revolve.html

this is a pretty crude example but it shows you what I am aiming for. I just wanted to know if there was an easier way to add images to frames or if there was a program to do it for you.

Preloading Multiple, Dynamically Loaded, Thumbnail Images
Hi,
I'm trying to preload 5 dynamically loaded jpegs... I'm stuck. Here's what I have so far:


Code:
//Preloader for images
allthumbs = _root.Content.gallery.imageall.image1_mc + _root.Content.gallery.imageall.image2_mc + _root.Content.gallery.imageall.image3_mc + _root.Content.gallery.imageall.image4_mc + _root.Content.gallery.imageall.image5_mc;
bytesLoaded = getBytesLoaded(allthumbs);
percent = bytesLoaded/getBytesTotal(allthumbs)*100;
percent = Math.round(percent);
imagePercent = percent;
preLoadBar._width = percent*3.4;
if (percent == 100) {
_root.Content.gallery.preLoader1._visible = false;
} else {
_root.Content.gallery.preLoader1._visible = true;
}
Any ideas?

-Craig

Preloading Multiple Images And Audio Clips Dynamically
Does anyone have pre-exisiting code that would allow me to preload multiple images and audio clips dynamically? I have created a XML-driven image slideshow with audio clips and I would like to preload everything before the slideshow begins, preferably with a progress bar. Please help, this is really urgent!!

Many Thanks.

Preloading Multiple Images And Audio Clips Dynamically - Urgent
Does anyone have pre-exisiting code that would allow me to preload multiple images and audio clips dynamically? I have created a XML-driven image slideshow with audio clips and I would like to preload everything before the slideshow begins, preferably with a progress bar. Please help, this is really urgent!! I am using Flash MX 2004.

Many Thanks.

How Can Load The Images Dynamically
How can i use the dynamic image in my movie. In the whats new setion of flash mx these guys are telling that now we can load the image dynamically but they havent provide any tutorial for this.
PLease tell me how to do this.

cheers
Ritesh

Dynamically Load Images
this may OR may not sound difficult but
if anyone has a link to a tutorial on
loading images dynamically to a flash
movie I would appreciate the direction.

The general problem is this;

To have a menu for images and as is obvious
after a link is pressed on the menu, the image loads,
BUT,
If the owner of the site wants to add new images
daily, then, all he would have to do is upload
the images to the server and the Menu would be updated
and the pic along with the menu item would be accessable.

About the menu, I am going to take care of that myself,
About the images, I will direct the owner of the site
to specifically name each new pic that he uploads,
so that Flash can go through the file each time it loads
and determine if there is another image in the file,
basically it would just loop once and count the number of images. so again, that is not my problem,

the problem is simply loading the data remotely...

Thanks in Advanced everyone

Load Images Dynamically
pls can someone tell me how i can upload images dynamically & also to have a motion for each image i upload.
is there a tutorial which i can go through as well

thanks

Dimuth

Is It Possible To Load Gif Images Dynamically...?
Hi...
Can any one tell me if I can load gif files dynamically from a folder?

How To Load Images Dynamically?
Hi guys,

I'm making a small flash file that will randomly display a series of 10 logos, 1 at a time. I'm wondering how I set up a fla file where Average Joe Schmo can just upload a new logo to a directory, and it will be automatically inserted into the FLA file? Hope this makes sense, I know it's a pretty broad question but if anyone can point me in the right direction that would be great. thanks

Dynamically Load Images
I'm working on a site and I have to do my navigation header in flash for all of the content pages but I have a background image that I have to change on each page. So, instead of having a different swf for each page I'm trying to change the image by using an empty movieclip in one swf and somehow linking it with variable names. My problem is that I'm not savy with actionscripting in flash and I'm not sure the exact coding that I need to use. I named my mc variable with imageLoader and in my html coding I have it pulling the correct jpg and placing it in the imageLoader space but I have to tell the swf to place the jpg in that space...does this make sense to anyone?

Thanks so much!

Need To Dynamically Load Multiple XML Files
A vendor has offered a data stream for elections coverage that is driving me nuts.

It's a county-by-county data stream for a given state's races. Each race has upwards of 250 XML files -- depending on the state -- one for each county's election returns. Thankfully, the XML files for the counties in a race are numberically ordered alphabetically.

Here's the problem -- I need to dynamically read the each county's candidate vote count from, say, 90 XML files. On the fly. The vote counts will then be used to color individual county movieclips based on the results (e.g. GOP = red, Dem = blue, etc.).

I have a script that I call when everything in the movie loads -- it starts looping to call the XML files (90 or so) and begins to read the data to color the county clips. Problem is, I can't switch to a different race (restarting the loop) without screwing up the XML calls and getting a bunch of undefined values which determine county clip colors.

Here's the function I'm using to dynamically color the county clips (imagine 100+ XML files being pulled in using this looping function):


Code:
var loadLeadersCount:Number = 1;
var loadLeadersTotal:Number = countyList.length;
var loadLeadersData:Function = function() {
tempCountyID = loadLeadersCount;
// prepend zeros and other prefixes for countyIDs
if (tempCountyID < 100 && tempCountyID >= 10) {
tempCountyID = "110" + tempCountyID;
} else if (tempCountyID < 10 && tempCountyID >= 1) {
tempCountyID = "1100" + tempCountyID;
} else {
tempCountyID = "11" + tempCountyID;
}

xmlInitLeaders = function() {
var xPathTemp:String = "/Vote/Race/ReportingUnit/Candidate";
leadersCandidates = new Array();
leadersCandidates = XPathAPI.selectNodeList(xmlDataLeaders.firstChild, xPathTemp);

tempLeaderXMLNode = leadersCandidates;

tempCandidateArray = new Array();
for (var i:Number = 0; i < leadersCandidates.length; i++) {
tempCandidateArray.push({tempParty:leadersCandidates[i].attributes.Party,tempVotes:leadersCandidates[i].attributes.VoteCount});
}
tempCandidateArray.sortOn("tempVotes", Array.DESCENDING | Array.NUMERIC);
tempLeader = tempCandidateArray[0].tempParty;
trace(tempLeader);
switch (tempLeader) {
case "Dem" :
tempColor = new Color(this[countyList[(loadLeadersCount - 1)]]);
tempColor.setRGB(0x0000ff);
break;
case "Lib" :
tempColor = new Color(this[countyList[(loadLeadersCount - 1)]]);
tempColor.setRGB(0x00ff00);
break;
case "GOP" :
tempColor = new Color(this[countyList[(loadLeadersCount - 1)]]);
tempColor.setRGB(0xff0000);
break;
default :
tempColor = new Color(this[countyList[(loadLeadersCount - 1)]]);
tempColor.setRGB(0x87676d);
break;
}
loadLeadersCount++
if (loadLeadersCount <= loadLeadersTotal) {
loadLeadersData();
} else {
trace("No more counties to process!");
}
}

xmlDataLeaders = new XML();
xmlDataLeaders.ignoreWhite = true;
xmlDataLeaders.onLoad = function(success:Boolean) {
if(success) {
xmlInitLeaders();
trace("XML loaded!");
} else {
trace("XML did not load!");
}
}
xmlDataLeaders.load(currentRaceXMLPath + tempCountyID + ".xml");
trace(currentRaceXMLPath + tempCountyID + ".xml");
}
Here's the combobox init code that sets up a listener for when someone would switch to a different set of XML files (for a different race):


Code:
// function to initialize race selection combobox
var initSelectRaceCombo:Function = function() {
this.comboSelectRace.dataProvider = raceList;
comboSelectRaceListener = new Object();
comboSelectRaceListener.change = function(event_obj:Object) {
currentRaceXMLPath = event_obj.target.selectedItem.data;
loadState();
loadLeadersCount = 1;
loadLeadersData();
}
comboSelectRace.addEventListener("change", comboSelectRaceListener);
currentRaceXMLPath = this.comboSelectRace.selectedItem.data;
selectRaceClip._visible = true;
comboSelectRace._visible = true;
creditsAltClip._visible = true;
loadState();
initCounties();
loadLeadersData();
}
Any thoughts? There's gotta be a better way to do this, but I can't lock down the combo box and prevent someone from switching to another race while they wait 30 - 90 seconds for the XML load loop to finish.

Thanks,
IronChefMorimoto

Load And Unload, Multiple Dynamically
Creating a page that lists characters. Buttons at the top, click on the button and the character's images load into a placeholder on the top left and the bio loads into a placeholder in the bottom right.

Images are loading fine. Bios are not. The bio movies are semitransparent and are loading on top of each other thus showing the previous movie. Out of sheer laziness I tried making the bios opaque but they seem to load behind each other instead of on top, so it appears that the new bio doensn't load with each button click (images see to load on top of each other for some reason)

I know, I need to unload the movies with each click. Problem is, the buttons aren't clicked in sequence, they may be clicked randomly so I'm not sure which movie I'll be needing to unload. Secondly, I've tried a number of ways to unload even a test movie but I can't seem to get it to work. Here's the code:

ActionScript Code:
on (release) {

createEmptyMovieClip("myHolder1",0);
myHolder1.loadMovie("natashaMovie.swf");

createEmptyMovieClip("myHolder2",1);
myHolder2.loadMovie("natasha2Movie.swf");

myHolder1.onLoad = function(){
myHolder1.stop();
myHolder1._visible = false;
}
myHolder2.onLoad = function(){
myHolder2.stop();
myHolder2._visible = false;
}

//And then for the button:
natashaButton.onRelease = function(){

myHolder1._visible = true;
myHolder1.play();

myHolder2._visible = true;
myHolder2.play();

}

}
Any suggestions are welcome.
Lilibeta

Dynamically Load And Resize .swf Images.
Hi,

I'm needing to dynamically load in .swf images from folder on my server.

Once loaded, they need to be resized automatically so they look the same size as the mc I loaded them into.

Any ideas on how to accomplish this?

Thanks,

Dynamically Load Images In Flash 5?
I love the new feature of dynamically loading images with MX and was wondering if anyone has found a way to do it in 5. I am thanking anyone in advance for a reply.

Stream And Dynamically Load Images
I have a 1 MB swf movie. The reason it's so large is because of many jpgs. So I reduced the size of the movie by removing the jpgs and using loadMovie to insert them as the user moves through each frame. The problem is that there's a delay, sometimes a long delay, whenever an image is loaded, especially on a 56k modem.

Is there anyway to stream the images into the cache while the user is in prior frames. In other words, if the user is on Frame 1 looking at an image, how do I get the images on Frame 2 and Frame 3 to load before the user gets to those frames?

# Of Images In Folder To Load Dynamically
I'm loading images dynamically from a folder. Is there a way for the SWF to count the number of available images to load at run-time (so I don't have to specify before hand)?

Nick

Component Can Load Images Dynamically?
i have a component i purchased for flash that has images in it, since it is a component, can i still preload the images dynamically??... does loading them dynamically like music, make the file a lot smaller ? someone wants a slideshow with 40 images is that possible to do under 600k or so ?
thx

Dynamically Load Images With Transparency
I don't think this is possible, but i need to pull images from a folder on a website into flash that have a transparency. So i know you can dynamically build a list of jpg's and have the user select them, and then load them in. But i need an image type (like a gif) to load in with a transparency on it. Is this possible?

Thanks.

Dynamically Load Images For Menu
I'm creating an image slider menu. My client would like to swap out images in the future for his portfolio. When images are clicked a larger view will show up.

Can you load an image using geturl and then alter it position/ size/ etc...?

That way wehn he wants to replace an image he can just copy the new image to the server with the same name as the one he's replacing.

Load Faded Images Dynamically
Hi Everybody

I am creating a set of thumbnails which are all individual movieclips because of the animation which takes place, but I am having a problem trying to load in jpegs dynamically into a container using fade in and out.

I have tried a few downloaded bits of code but have had no luck.

I could do with some help, please

Dynamically Load Random Images
I have three rectangles I converted to movie clips named pichold1, pichold2, pichold3 and placed horizontally side by side on the stage. I want to use actionscript to dynamically load these images from an images folder. Each image is named "image#" (ex. image1, image2, image3, ...) I want the movie to be placed on a webpage that when a user visits the page, the movie will load random images and cycle through them displaying them in the movie clips. I also want to use some sort of transition effect to fade the images in and out, any help with this?

Load Dynamically Images For Thumbnail
Hi, I am trying to create a thumbnail and load images located in a 2D array filled with a XML.

pArray[x][5]= preview image

Here is a sample of the XML

Code:
<project id="0">
<name><![CDATA[Test1]]></name>
<date><![CDATA[01/01/01]]></date>
<technologie><![CDATA[AS2, AS3, Kek Chose]]></technologie>
<img><![CDATA[behappyfarmer_img.jpg]]></img>
<preview><![CDATA[/behappyfarmer_preview.jpg]]></preview>
<description><![CDATA[Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Pellentesque sed lectus imperdiet felis tempus aliquet. Suspendisse sem nulla, faucibus eu, eleifend at, scelerisque vitae, elit. Donec luctus dui vel urna. Integer at diam. Donec et risus. Praesent vestibulum pede ut urna. In facilisis tempus magna. Cras quis dolor sed dui pharetra blandit. Pellentesque vel arcu a nisi consectetuer iaculis. Ut.]]></description>
</project>
here is my XMLLoader Class

Code:
import mx.utils.Delegate;

class com.cc.XMLLoader
{
private var _xml:XML;
private var xml_result:Array;
public var xml_loaded:Boolean = false;

public function XMLLoader(path:String){
this._xml = new XML();
this._xml.ignoreWhite = true;
this._xml.load(path);
this._xml.onLoad = Delegate.create(this, dataLoaded);
}

private function dataLoaded(sucess:Boolean):Void {
if (sucess) {
createArray();
}
}

private function createArray():Void {
var xmlroot:XMLNode = this._xml.firstChild;
var i:Number;
var j:Number;

this.xml_result = new Array();
for (i = 0; i < xmlroot.childNodes.length; i++) {
xml_result[i] = new Array();
this.xml_result[i][0] = xmlroot.childNodes[i].attributes["id"];
for (j = 0; j < xmlroot.childNodes[i].childNodes.length; j++ ) {
this.xml_result[i][j + 1] = xmlroot.childNodes[i].childNodes[j].firstChild.nodeValue;
}
}
this.xml_loaded = true;
}

public function getXML():Array {
return this.xml_result;
}

public function getToken():Boolean {
return xml_loaded;
}
}
Here is my class

Code:

import com.cc.XMLLoader;
import mx.utils.Delegate;

class com.cc.projects.Projects extends MovieClip
{
private var objXmlLoader:XMLLoader;
private var pArray:Array = new Array();

public var container : MovieClip;

public function Projects() {
objXmlLoader = new XMLLoader("../lib/xml/Projects.xml");
this.onEnterFrame = Delegate.create(this, getToken);

}

public function getToken() {
if (objXmlLoader.getToken() == true) {
delete this.onEnterFrame;
getArray();
}
}

public function getArray() {
/*
This is the part which is supposed to show every preview images of my xml. from 0.0 to 80.0 and so on.
*/
pArray = objXmlLoader.getXML();

var k:Number = 0;
var i:Number;

for (i = 0; i < pArray.length - 1; i++) {
container.createEmptyMovieClip("mc" + i, 100);
container["mc" + i].loadClip("../lib/img/projects/" + pArray[0][5],this);
container["mc" + i]._x = k * 80;
k++;
}
}
}
Can you please tell me why it doesnt works?
The problem is obviously from the getArray function. I know that if I call them by their name manually it works but I am trying to assign them a dynamic name and call them with it which doesnt work.. please tell me how I can do that.

Thank you.

Dynamically Load Images From Folder?
I'm trying to figure out how this flash file is pulling images from a folder.

http://www.andrewberg.com/photobrowser/afpb_flash.html

He included the PHP file, but didn't include the flash source file. I can't see how he's calling the PHP from the flash.

Does anyone have a clue to how he does it?

Thanks!

Dynamically Load Images Into Flash
Hi everyone, I'm new.

I'm not too experienced with flash, but I was recently making a website in flash (trying to get better at this) and I wanna be able to change images in the folder of the site directory as opposed to having to open the .fla file, change the images in flash, then recompile and re-upload the site (like I said I'm not too experienced, and this seems like the only way I know ).


Right now I have a movieclip symbol called 'dynamicIMAGE', its one frame with one line of actionscript applied:

loadMovie("image.jpg", 1);

then I drag this movieclip to the stage of the website, but whenever I preview the site, the image DOES appear (so it works there), but the problem is that it appears in the upper left, no matter where I drag the movieclip onto stage. I've also tried messing with the _x position and _y but I got nothing from that. I have the image named "image.jpg" so that when I wanna replace the picture displayed on the page I can just drag another image file called "image.jpg" to overwrite the previous one.


Any help would be greatly appreciated, I've been racking my brain over this for the past day, meanwhile its probably just something stupid and simple that I need to do . Thanks in advance.

How To Dynamically Load Images Into Flash
I have a movie clip on the stage that I want to dynamically load images into (that constantly change), how would I go about doing this? Thanks.

Dynamically Centering Images In MC As They Load
I am dynamically loading images into a movie clip (MC), but as they load the images load from the MCs registration point which is fine if you want the image to load in the top left side of the MC.

What I would like to be able to dynamically change the registration point of the image to the centre when it is loaded. I would expect you would have to change the registration point of the MC (as the image takes on the properties of the MC).

Basically I would like the images to load from the left, right, top middle, botton middle etc... so that per project I can dynamically change the above.

Here is an example of what I am trying to achieve. I have everything else down pat except the images positioning....

http://www.evb.com

In the above case the images are loaded and their centre point becomes the centre of the image and the frame then expands or contracts depending on the image width and height.

Even if I could be able to make the centre point in the middle would do me...

Can anyone help??????

Using LoadMovie To Dynamically Load Images?
Hi There,
I've managed to use AS to dynamically create empty movie clips and offset them so that they appear side by side. The problem is, I can't use loadMovie to load in images into my empty movie clips. I can successfully use loadMovie outside of my for loop, by directly referencing each of the dynamically created clips (holder_mc1.loadMovie(...), holder_mc2.loadMovie(...),etc) after they have been created. This is ok but I really need to create and fill the empty movie clips within a single for loop. By the way, the references to the images being loaded are contained within an external text file, but this doesn't seem to be part of the problem. Does anybody know if there is a problem using loadMovie in this way or if there is anything I can do to fix the problem?

Thanks


ActionScript Code:
if (succes) {        var imageNum = this.imageNum;        trace("imgeNum="+imageNum);        offset = 200;            for (i=1; i<=imageNum;i++){            duplicateMovieClip("holder_mc", "holder_mc"+i, i);            setProperty("holder_mc"+i, _x, offset);            "holder_mc"+i.loadMovie(this.Image);  // won't load             offset = offset+200;                  }    }        else {        trace("Error loading data");    }

How Do I Dynamically Load Images With DuplicateMovieClip()?
I want to duplicate this Movie Clip so that "bird.jpg" is loaded into all 6 Movie Clips. Why doesn't this code work?

for (i=0; i<6; i++) {
miniHolder.duplicateMovieClip("miniHolder"+i, i, {_x:i*10, _y:i*20, _alpha:50});
var bb = "miniHolder" + i;
bb.loadMovie("bird.jpg", this.getNextHighestDepth());
};

Reconfiguring This To Dynamically Load Images?
How could I modify it to do so? The code is a little to complicated for me.
The link to is here /.

Dynamically Centering Images In MC As They Load
I am dynamically loading images into a movie clip (MC), but as they load the images load from the MCs registration point which is fine if you want the image to load in the top left side of the MC.

What I would like to be able to dynamically change the registration point of the image to the centre when it is loaded. I would expect you would have to change the registration point of the MC (as the image takes on the properties of the MC).

Basically I would like the images to load from the left, right, top middle, botton middle etc... so that per project I can dynamically change the above.

Here is an example of what I am trying to achieve. I have everything else down pat except the images positioning....

http://www.evb.com

In the above case the images are loaded and their centre point becomes the centre of the image and the frame then expands or contracts depending on the image width and height.

Even if I could be able to make the centre point in the middle would do me...

Can anyone help??????

Using LoadMovie To Dynamically Load Images?
Hi There,
I've managed to use AS to dynamically create empty movie clips and offset them so that they appear side by side. The problem is, I can't use loadMovie to load in images into my empty movie clips. I can successfully use loadMovie outside of my for loop, by directly referencing each of the dynamically created clips (holder_mc1.loadMovie(...), holder_mc2.loadMovie(...),etc) after they have been created. This is ok but I really need to create and fill the empty movie clips within a single for loop. By the way, the references to the images being loaded are contained within an external text file, but this doesn't seem to be part of the problem. Does anybody know if there is a problem using loadMovie in this way or if there is anything I can do to fix the problem?

Thanks


ActionScript Code:
if (succes) {        var imageNum = this.imageNum;        trace("imgeNum="+imageNum);        offset = 200;            for (i=1; i<=imageNum;i++){            duplicateMovieClip("holder_mc", "holder_mc"+i, i);            setProperty("holder_mc"+i, _x, offset);            "holder_mc"+i.loadMovie(this.Image);  // won't load             offset = offset+200;                  }    }        else {        trace("Error loading data");    }

Load Faded Images Dynamically
Hi Everybody

I am creating a set of thumbnails which are all individual movieclips because of the animation which takes place, but I am having a problem trying to load in jpegs dynamically into a container using fade in and out.

I have tried a few downloaded bits of code but have had no luck.

I could do with some help, please

Load Images Dynamically From Xml In Loop
I'm attempting to load some images into flash from xml. I'm attempting to loop through the xml and load the images, and set rollover, rollout, and onclick actions. I'm having trouble with the syntax. The rollover works, but the rollout doesn't. I have the images loading statically outside of the loop, but want them inside the loop. I can't get the syntax for that either.

CODE
// call mcLogos movie clip
this.attachMovie("mcLogos", "bLogos", 3);
bLogos._x = 400;
bLogos._y = 250;

var myXML:XML = new XML();
myXML.ignoreWhite=true;
myXML.load("company.xml");
myXML.onLoad = function(success) {
    if (success) {
        var myImage = myXML.firstChild.childNodes;
        for (i=1; i<myImage.length; i++) {
        var imageNumber = i;
        var imageID = myImage[i].attributes.id;
        var imageURL = myImage[i].attributes.img;
        trace ("My image number "+imageNumber+" ID is "+imageID+" and its filename is "+imageURL+".")
        trace(mcSquares["square"+i]);    
                
        // rollover effect for squares    
        mcSquares["square"+i].ID = i;
                mcSquares["square"+i].onRollOver = function(): Void {
                mcSquares["square"+this.ID]._visible = false;
                };
    
        // rollout effect for squares
        this["mcLogo"+i].ID = i;
        this["mcLogo"+i].onRollOut = function(): Void {
                    trace(mcSquares["square"+i]);
                    mcSquares["square"+i]._visible = true;
                };
    
        // onclick
        this["mcLogo"+i].onRelease = function () {
                getURL("press.cfm?id=+imageID+");
                };
        }
    } else {
        trace ("XML not loaded.");
    }
};



// load external images, I want to put this in the above loop
this.mcLogo1.logo1Text.htmlText = "<img src="flashImages/pp1.jpg">";
this.mcLogo2.logo2Text.htmlText = "<img src="flashImages/pp2.jpg">";
this.mcLogo3.logo3Text.htmlText = "<img src="flashImages/pp3.jpg">";
this.mcLogo4.logo4Text.htmlText = "<img src="flashImages/pp4.jpg">";
this.mcLogo5.logo5Text.htmlText = "<img src="flashImages/pp5.jpg">";
this.mcLogo6.logo6Text.htmlText = "<img src="flashImages/pp6.jpg">";
this.mcLogo7.logo7Text.htmlText = "<img src="flashImages/pp7.jpg">";
this.mcLogo8.logo8Text.htmlText = "<img src="flashImages/pp8.jpg">";
this.mcLogo9.logo9Text.htmlText = "<img src="flashImages/pp9.jpg">";
this.mcLogo10.logo10Text.htmlText = "<img src="flashImages/pp10.jpg">";
this.mcLogo11.logo11Text.htmlText = "<img src="flashImages/pp11.jpg">";
this.mcLogo12.logo12Text.htmlText = "<img src="flashImages/pp12.jpg">";
this.mcLogo13.logo13Text.htmlText = "<img src="flashImages/pp13.jpg">";
this.mcLogo14.logo14Text.htmlText = "<img src="flashImages/pp14.jpg">";
this.mcLogo15.logo15Text.htmlText = "<img src="flashImages/pp15.jpg">";
this.mcLogo16.logo16Text.htmlText = "<img src="flashImages/pp_blank.jpg">";
this.mcLogo17.logo17Text.htmlText = "<img src="flashImages/pp_blank.jpg">";
this.mcLogo18.logo18Text.htmlText = "<img src="flashImages/pp_blank.jpg">";


Dynamically Load And Stream Images
I have a 1 MB swf movie. The reason it's so large is because of many jpgs. So I reduced the size of the movie by removing the jpgs and using loadMovie to insert them as the user moves through each frame. The problem is that there's a delay, sometimes a long delay, whenever an image is loaded, especially on a 56k modem.

Is there anyway to stream the images into the cache while the user is in prior frames. In other words, if the user is on Frame 1 looking at an image, how do I get the images on Frame 2 and Frame 3 to load before the user gets to those frames?

Dynamically Load Multiple FLVPLAYBACK : Not At Same Time...
Hi guys, I been fooling around with the progress and ready eventlisteners and I've loaded about five FLVPlaybacks dynamically into a container on my main scene using attachmov.

however, i find that they all load up at the same time and i just want to make it happen one after another.

now im using a for loop j=0;j<4;j++ to attach the flv's. I'm having trouble coming up with a plan to implement them loading clips one at a time instead of all at the same time.

any ideas? thanks a bundle.

D.O.

Load Image & Multiple .txt Dynamically Into Slideshow?
I would like to make a slideshow like they have at brewers.com -
a rotating slideshow of a picture, and below it, a header line, subhead, and short body. Also a link to the complete article (also dynamic).

here is what I have:
5 frames, with framenames. On each is an image, a header, a subhead, a body, and a link.
I am very new at this.. but how would I make each of those separate files load/display together when someone clicks on the button that shows slide 2, for example?

I have read of using separation characters to denote a new formatting style.. can I have all of the text in one file, specified by a certain character?
Also is there a way to do it without having to convert each image in Flash to a movie file?

Thank you for your help.

Load And Loop Folder Of Images Dynamically...
Hi,

I'm trying to create a slideshow which loads images dynamically from a folder on my server. The number of images in the folder will change on a daily basis, so I'm guessing that this needs some kind of array to predetermine the contents of the folder. The files will not have a regimented naming structure.

Basically, I need to display all of the images in the folder one by one and then loop back to the start.

Has anyone managed to do this before? Can anyone direct me to some help or offer some assistance?

Many thanks :-)

Dynamically Load Images Through External Website
Whats up people... here is a problem I am currently coming across and I am not sure if Flash allows this type of operation or not, so any help would be awesome.

I have created a flash photo album that loads images from an XML document into my swf. The code works fine when visiting the link to the swf directly, however, I am trying to link the SWF to myspace, and when I do that, the images no longer will load.

Is it possible to load the images dynamically and link the swf from another website or will that cause a reading error when trying to acess the images I want?

Dynamically Load Images From Server Folder?
Hi, I'm looking for a way to build a gallery so that I can simply upload a folder with images to the server and the .SWF will load all images within that folder, whether it be 3 images or 10 images. I know how to do this using PHP on just a basic HTML page but I want to have some animation in there. Is there a way to do this with only Actionscript? Or if PHP is the answer, how can I put this into a Flash file?

Can I Dynamically Load File With Text & Images?
Hi there
I have a file with text, an image half way down the page where the text just wraps around it. Can I load all the file into a dynamic text box? Or do i have to split the file up into a main paragraph, middle paragraph & image and reassemble it all then on the stage?
Have never loaded text before so any hep would be greatly appreciated

Load And Loop Folder Of Images Dynamically...
Hi,

I'm trying to create a slideshow which loads images dynamically from a folder on my server. The number of images in the folder will change on a daily basis, so I'm guessing that this needs some kind of array to predetermine the contents of the folder. The files will not have a regimented naming structure.

Basically, I need to display all of the images in the folder one by one and then loop back to the start.

Has anyone managed to do this before? Can anyone direct me to some help or offer some assistance?

Many thanks :-)

Copyright © 2005-08 www.BigResource.com, All rights reserved