Can I Do Dynamic Images?
Hi: I've got a script using XML. Basically, it's a list of members, each having a department, name, title and IMAGE.
I want to display them in a popup (just a black square) when the user clicks their name in a list. I I can use a dynamic text box to plunk the department, name and title in from vars but I can't figure out how to change the image.
Is there a way to dynamically display images (preferably within a symbol) based on variables using script?
While I'm asking, can I dynamically position the black square? If so, how?
OR --- If you had to display pop-ups (just a black square) using dynamic data (name, title, department + IMAGE) so the correct person's picture appears depending on what name in a list was clicked, how would you do it? Or can it be done?
ActionScript.org Forums > ActionScript Forums Group > ActionScript 1.0 (and below)
Posted on: 10-14-2005, 01:07 AM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Replacing Flash Images With Dynamic Images [please Help]
Ok, I created some flash applets doing some image effects..
like fading between 2 images and so on...
lets take that one.. it is simple..
there are 2 images and in the timeline they fade into each other in a never ending loop.
Now what I want to do.. and where I am stuck.. is the following:
I want the "applet" to work as before, but.. if there are images in the same folder, to load the images and use them instead of the embedded ones.
Actually replacing dynamically the internal images
I think there is no problem achieving the second part..(if they exist) but i'm stuck in loading the images.
I tried loadMovie and loadMovieNum.. but the best I achieved was overlaying right at the beginning but then just for one loop.
Any help would be appreciated
Luciano
Dynamic JPGS, Dynamic Images, Load Image
Just a little not for those who have problems using dynamic loaded jpgs.
If you want to dynamically load some jpgs here is some code I picked up off the forum
Code:
//Step1
createEmptyMovieClip("img",0);
img._visible=false;
//Step2
img.loadMovie("test.jpg");
//Step3
this.onEnterFrame=function(){
BLoaded=img.getBytesLoaded();
BTotal=img.getBytesTotal();
percent=BLoaded/BTotal*100;
//Step4
if(BLoaded == BTotal && BLoaded>0){
img._width=726;
img._height=641;
img._visible=true;
delete this.onEnterFrame;
img._x=0;
img._y=0;
}
}
When you save your JPG in photoshop it gives you a few options for saving your jpg.
1) BASELINE (STANDARD)
2)BASELINE (OPTIMIZED)
3)PROGRESSIVE
It has to be a baseline image, for whatever reason. No clue!
Banner, Dynamic Text, Dynamic Images.
Wandering if someone here can help me with this banner, I am using dreamweaver2004 and Swish, if that helps any.
I would like to do the same as a banner seen at this website, www.martec.ie .
When looking at the code, you can tell that the images are coming from a folder, and the text is dynamic(from a databse). Also, I would like to be able to edit from a form, I may be able to figure this part if I get the help I need. But the images will be figured from the site, a database and such. Look at each or some pages and you will see what I am wanting to do. The images and text change.
Anyone here know how to do this? Thanks.
Dynamic Images Like Dynamic Text?
I'm new to flash and have a newbie question. I have been able to create dynamic text fields that load text from a file using variables - my question is, can you do something like this with images? I've done some basic research but not sure if I should be reading in-depth on "load-movie" or what, as I want to just load images. i.e., for a web site with cars for sale it ould be nice to just have a folder where I have image1, image2, image3, etc. and the flash just loads whatever image1 is - so if I want a picture of a different car I just replace image1 with a new file named image1. Or something like that. I don't really need sample code (although would look REAL close at it if it was supplied lol) - I more need to know if it is possible, and someone to point me in the direction I need to look to find the command(s) for doing it.
Thanks
Dynamic MCs From Gif Images
Hi,
i want to make Movie clips from gif images.
is there any way to generate the movie clips such that if the corresponding gif image changes,the movie clip changes accordingly.
thanks
jayant
Dynamic Images
What is the actionscript for displaying either symbol-1, symbol-2 or symbol-3 into some sort of a placeholder thingy that when someone navigates around it shows the appropriate symbol (instead of having to create 3 scenes with different images).
Thanks.
Dynamic Images
I want to use one image in more than 25 swf files. how do i use a shared image that i change in one place ant it shouls take place in all swf???
Dynamic Images ?
I'm wondering if it's possible and how to call images from a MySQL database to Flash 5. I don't know PHP and I'm sure I wouldn't need help if I did.
Anyone have any ideas?
Thanks!
DYNAMIC IMAGES IN MX
Hi Guys,
Here is a question.I was wondering if anyone knew if Dynamic images really work.
I mean with Flash 5 you could just incase a jpeg in a swf and load movie! but you couldn't give coordinates to the mc, Flash MX! I saw a tutorial on a dynamic slide show! but it used XML aswell. I kneed to know if using a Flash.exe projector you can do the same thing.. without it being online! Can it be done? I'm using Dynamic text in my Flash project now and I would be awsome if I could make the images Dynamic 2!! please help!! I'm going nuuuutz!
Thankyou!
Dynamic Images
any ideas on how to load jpegs dynamically from an images directory on the server...
Dynamic Images
I know that you can have flah mx dynamically insert an image from a specified location. However, do you know if it is possible to have flash search a location, and then display all, or a specified number of .jpgs, from that location onto the flash movie. Say there were 10 images in the location, flash searched and found ten images, then displayed all of them on the screen. Would I also have to create a specific location for each to be displayed, or culd I just give flash coordinates and have it list the images in an orderly fashion?
Dynamic Images
I've built a little file management movie that calls a CFC and populates a UI Data Grid component with the files from the directory call in the CFC. This all works great. So my next step is to put an image next to the file name representing the type of file. I can uses indexOf to determine the file type and all I need to know is how do I then take an item from the library and put it next to the file name in the data grid. I hope that makes sense. Here is the loop I have populating an array which in turn then populates the datagrif component:
1: var dP = new Array();
2: for (var i=0; i<rs.getLength(); i++) {
3: dP[i] = {Name:rs.items[i].Name, Size:int(parseInt(rs.items[i].Size/1024))+" KB", Modified:rs.items[i].dateLastMofified};
4: }
5: dgFile.setDataProvider(dP);
So basically, line 3 is where I need to somehow append an icon before the rs.items[i].Name.
Any help is greatly appreciated.
Thank you in advance,
CFDaddy
Dynamic Images
I want to have dynamic images displayed by .swf
I have already have the .swf accesing the db to determine which .jpg to load but i cannot figure out how to load it and display it.
This is where I am stuck.
Once I have the file name of the .jpg who do I load it into .swf and display it?
Any advice welcome.
Dynamic Images
I'd like to create a flash piece that takes in information from a database and displays it in the piece.
The database would store a list of paths to images and I'd like to randomly pick one image from the database on load and display it in the movie.
Any ideas how I would go about doing this?
Thanks.
Dynamic Images
i'm having a wierd problem. i am using the loadmovie(); to load in jpgs into movie clips. the images are being dynamicly generated by a server script, but i don't know how many will be done at any one time. i have a swf right now that has 20 differnt movie clips, on 20 differnt layers that loads one of the frames into each. if the frame doesnt exist, no matter, next loop around the loadmovie catches it.
but that seems to be the problem. if a jpg is already loaded, how can i check for it? i keep getting a wierd skipping when it starts over.
does anyone know a good way to load images into a series, and display them as an animation? this is assuming that each frame will come in order, starting from 00.jpg and ending with 19.jpg
`grom
Dynamic Images.
HI,
im building a portfolio site and have worked out the dynamic text function so i can add sites/clients later by just updating the text files.
BUT...
How would I go about adding a box which I can add new images in the same way? is it done in xml?
how is this process commonly done in other portfolio sites?
thanks.
Ben
Dynamic Images Possible?
It's been a few years since I dabbled with flash. At that time you had to recompile the movie if you changed pictures. Do I have any options for creating a flash movie that allows me to dynamically change the images without recompiling.
Thanks
Dynamic Images
In MX, how do you make a bitmap pull in its source from an external location? I know that this was a new function in MX, I just can't seem to find it and I'm sure it's really simple.
Thanks!
Dynamic Images?
I have client who wants a flash movie but wants to do his own updating. So I am using dynamic text so he can go in and change the text. He also has a picture that he would like to update as well. Can I do dynamic image like dynamic text is this possible? If I put a link to pull the image in and just tell him to save the image in the same folder and name it the same will it work? Or is their another way.
Thanks for your input.
Dynamic Images
I want to know how to load images from URLs into Flash movies.. For example - if I wanted to load this image from this URL how would I do it:
http://www.ndorgs.com/mgs2/Images/ad.gif
Help would be appreciated.
Dynamic Images
I would like to create a flash movie that loops through 11 dynamic images continually with a fade-in, fade-out each image. Can anyone help?
Thanks!!
---> Dynamic Images..? <---
i would like to know whether is possible to change images in a web site wich are in a swf format by uploading a new image (same size and name) to replace the old one.
i wait any help, but please... no PHP stuff or else, cuz i cant handle it... yet.
Dynamic Images?
Hey guys, i know its possible to load text into a dynamic text box..
IS it possilbe to load images (ie thumbnails) with links to the larger image a similar fashion?
cheers
vamps
Dynamic Images
hi
is it possible to create dynamic IMAGE box in falsh. Can create dynamic text is it possible for the images??? Please help
Thanks
Dynamic Images?
Hi all, I know that we can have dynamic text in flash.... but can we have flash load images dynamically?
Any help would be great.
Thanks for your time
Dynamic Images
Hey guys,
Can anyone offer help or point me to a tutorial that allows me to dynamically pull images into a flash movie? Doesnt matter how simple the process etc.. I just need to make a movie that contains 1 image and some text that a customer can update using FTP. I know how to do the text, thats simple enough but I'm kinda stumped when it comes to pulling in an image from a directory.
Thanks in advance.
Dynamic Images
ok i need some help and inspiration
I have a scene set up with button 1, button 2, button 3 etc and when these are clicked from main.swf they open up popup.swf at level_1, which has a close button with re-enable level_0 etc. Now what i want is when each button is clicked there is code that says open up popup.swf with 1.jpg, button 2 to open 2.jpg etc. I really need help with this, i presume something along the lines on openmovie("") or maybe some sort of varable thing. Im really stumped.
Also would it be possible for "each" button to open the dynamic image in popup.swf and also be able to resize the swf so that the image is a different resolution and landscape/portrait etc
examples, tutorials, ur help will be greatly recieved
thx
Dynamic Images
Hey everyone. Wanted to check on the how-abouts of doing something.
I know how to put in dynamic text into a flash page using .txt files. But i was wondering 1) if i can use HTML tags in the .txt document to make hyperlinks and what not. 2) to see how i can put image files into the dynamic text box.(using HTML tags?) Is this possible. Thanks and let me know what you know.
'preciate it.
Reese
Dynamic Images..
Hi all, im kinda new to flash and was wondering if it is possible to pull in an image dynamically in the way that LoadVars can pull in text or data?
Im currently making a dynamic list for a site that pulls in details of cars, ofcoarse it would be nice to have the pictures there too.
Any ideas?
Thanks,
Al
Dynamic Images ?
I've only been using flash for a few weeks so im sorry if this is a silly question.
I'm working on this....
http://www.quikshop.com.au/images/thumbnail%20test.swf
for my website. As is im using imported images...
What id like to do is load the images dynamicly from my database so i can apply the one flash video to every page and just have it call the images it needs accordingly. Is this possible and if so, How do I do it ?
Thanks a million!
Dynamic Images
HI ALL,
I need some good tutorials in loading and manipulation images into flash dynamically..please show me if theres any good tutes on this or some help with the codes all will be appriciated..
Thanks
Dynamic Images
Can anyone tell me is it possible to create an area that can be dynamically updated with an image. We want to create a flash file that our client can update a certain section of by simply uploading a new image to their ftp site? possible through xml? I am not fluent in flash so any guidance is appreciated.
tony
Dynamic Images
I have seen samples where people have made it possbile to load external images into a graphic box or something.
is this a good way to make the swf smaller and is it very difficult? i know the load function... but it just load the image into flash.. not that handy.
Dynamic Images
Hey guys,
I need to find out how to dynamically load images into Flash but can't use the new support for it in Flash MX as I have to support Flash 5 player.
I know that there was a 'workaround' in Flash 5 - any ideas?
One way would be to include each image in a swf, but this means lots of work, plus would prevent users from uploading their own images.
The site is a redesign of a dynamic HTML version where content is pulled from a database using ASP, so the name of the image to load would be stuffed into a variable already.
Any ideas?
Cheers,
Paul
Dynamic Images
I am trying to dynamically load some jpgs using thumbnails (to pass a name variable), then once the large image is loaded then I have secondary buttons to load other images(2,3,4...) from that series. I am have a problem with my code on the second part (button01 in attached code).
Attach Code
//thumbnail navagation
//this image loads perfectly
thumb01.onPress = function() {
container.loadMovie("portfolio/web/Accent_Windows.jpg");
var displayImage=Accent_Windows;
}
//These do not load
//when I use trace it displays portfolio/web/Undefined2.jpg
button01.onPress = function(){
container.loadMovie("portfolio/web/"+displayImage+"2.jpg");
}
button02.onPress = function(){
container.loadMovie("portfolio/web/"+displayImage+"3.jpg");
}
Dynamic Images
I'm not a huge actionscripting guru, so if there is a simple solution to pulling in images dynamically from an ftp or external image library, I would love the help.
I'm making a rotating image flash piece for the homepage of a site, and I want to be able to easily swap out images and update them. There are only 5 images rotating, so the naming system is simply 'image_1.jpg', 'image_2.jpg', etc. When I want to update, let's say, image_1.jpg, I want to be able to just save a new image as 'image_1.jpg', and upload it to the content management system.
Is there an easy way to do this?
Thanks all.
Dynamic Images?
Hey all! I am working on turning an idea into reality and I think my first stop is Flash...although I haven't worked much at all with it.
Basically (heh) I want to know if Flash (or any other program out there) will allow me to dynamically render an image in a 3d manner, for the web. For example, you have a static base image of a folded piece of paper, the user enters some text into a box on the web and I want to render a new image depicting the text placed on the paper (can be done outside of flash), but I want to be able to update the Flash object with the new image. The purpose of doing so in a product like Flash is I was hoping to be able to get a 360 rotation effect of the piece of paper.
This may be completely impossible but it is something I would like to try.
Any thoughts!? Thanks in advance!
Dynamic Images
I am trying to dynamically load some jpgs using thumbnails (to pass a name variable), then once the large image is loaded then I have secondary buttons to load other images(2,3,4...) from that series. I am have a problem with my code on the second part (button01 in attached code).
Attach Code
//thumbnail navagation
//this image loads perfectly
thumb01.onPress = function() {
container.loadMovie("portfolio/web/Accent_Windows.jpg");
var displayImage=Accent_Windows;
}
//These do not load
//when I use trace it displays portfolio/web/Undefined2.jpg
button01.onPress = function(){
container.loadMovie("portfolio/web/"+displayImage+"2.jpg");
}
button02.onPress = function(){
container.loadMovie("portfolio/web/"+displayImage+"3.jpg");
}
Dynamic Images
I have an image gallery posted online where the images can be linked to from wherever. Instead of having to embed the images and have a large .swf file size, I wish to have the menus and everything using the dynamic images.
So far, I have loaded the images with the actions in a separate layer using the following action script:
this.onLoad = function()
{
image01.loadMovie( URL );
image02.loadMovie( URL );
...
...
(etc.)
}
The thumbnails are all about 15k. so I don't care that they all load up at once, but I may find another way to do it with an animated scrolling menu that loads the thumbnails as they are seen... is that possible?
Well, on with the rest...
I can create a transparent button over the dynamic images (using the images themselves as buttons did nothing) to load up full-size images.
The action script on the buttons is as follows:
on( press )
{
image01_main.loadMovie( URL );
}
You can click on the image once and it's fine, but when you click on it again, it unloads the image. Then, if you want to click a different button to load a different image, you have to click twice... once to unload the previous image, and then again to load the image that is desired.
I don't want the image to unload when it is clicked again. And when you click another button for another image, I just want it to load immediately in the place of the other image.
Thanks,
Michael
Dynamic Images
Hi there!
I need a little help...
I have to make an portfolio for some schools and i have to use childrenīs pictures as buttons. Some schools has 20 students, some has 300. How can i change the pictures whithout change my swf?
Dynamic Images
hi probably this is a newbie question but here it goes
can someone tell me how do i know the size of a jpeg image before i load it into a mc ? the point is that I'd like to make a preload for each dynamic image i load
thanks
Dynamic Images Help
I am having issues with my flash file not keeping my image sizes what they were saved at. All images in my file should be 460x300 (that is the size of the flash file as well), yet the images are being doubled in size for some reason? Am I missing something, images are saved at 72dpi at the correct size.
I can attach file if needed, or post all actionscript in the file.
Dynamic Images
I have an image gallery posted online where the images can be linked to from wherever. Instead of having to embed the images and have a large .swf file size, I wish to have the menus and everything using the dynamic images.
So far, I have loaded the images with the actions in a separate layer using the following action script:
this.onLoad = function()
{
image01.loadMovie( URL );
image02.loadMovie( URL );
...
...
(etc.)
}
The thumbnails are all about 15k. so I don't care that they all load up at once, but I may find another way to do it with an animated scrolling menu that loads the thumbnails as they are seen... is that possible?
Well, on with the rest...
I can create a transparent button over the dynamic images (using the images themselves as buttons did nothing) to load up full-size images.
The action script on the buttons is as follows:
on( press )
{
image01_main.loadMovie( URL );
}
You can click on the image once and it's fine, but when you click on it again, it unloads the image. Then, if you want to click a different button to load a different image, you have to click twice... once to unload the previous image, and then again to load the image that is desired.
I don't want the image to unload when it is clicked again. And when you click another button for another image, I just want it to load immediately in the place of the other image.
Thanks,
Michael
Dynamic Images
Hi there!
I need a little help...
I have to make an portfolio for some schools and i have to use childrenīs pictures as buttons. Some schools has 20 students, some has 300. How can i change the pictures whithout change my swf?
Dynamic Images
hi probably this is a newbie question but here it goes
can someone tell me how do i know the size of a jpeg image before i load it into a mc ? the point is that I'd like to make a preload for each dynamic image i load
thanks
Dynamic Images
What is the actionscript for displaying either symbol-1, symbol-2 or symbol-3 into some sort of a placeholder thingy that when someone navigates around it shows the appropriate image (instead of having to create 3 seperate scenes with the images).
Thanks.
Dynamic Images
hi all
jsut a quick question, when i load an image dynamically, is there a way to check that the image has loaded, i.e.
loadmovie - JPG
begin a loop checking at the end of it whether it's loaded if it has, carry on else begin the loop again.
I saw in the help that it recommends the (data) on movieclip but not sure if that'll work with JPG's
any suggestions?
john cooper
Dynamic Images
Im making a site that is going to use alot of images (like up to 100). All of witch are very hi-rest. But on the page were it lists the thumbnails of the images I want to load the images Dynamically (from an outside source like http://www.website.com/image.jpg) without using components. I've heard u can use some thing like loadMovie... but im not sure. So any code would help alot.
Thanks.
|