Dynamically Importing Images?
Can I download an image from the web and place it dynamically in flash? (meaning not actually adding this file to a movie and loading the movie)
if so, how?
thanks, billy
http://www.frostytomato.com
FlashKit > Flash Help > Flash MX
Posted on: 06-28-2002, 07:37 PM
View Complete Forum Thread with Replies
Sponsored Links:
Dynamically Importing Images From A DB
I'm looking for ideas on how to dynamically swap an image with another image called from a database?
One suggestion I got was to use this method:
Flash_object.SetVariable(name,value); ---->
Flash_object.SetVariable(pictureName,'fred.swf');
This method uses jpegs that have been saved as swf files. The 'fred.swf' could also be a variable that would be pulled from a database rather than explicit.
It seems like a solid method but I'm not too sure how to impliment the entire concept.
Is there anybody out there that gets what I'm talking about and could offer a few more details for me?
View Replies !
View Related
Dynamically Importing Images
HELP!!!
I'm trying to make a small app that can load images of various types. In MX, the loadMovie method allows you to import jpg's but there doesn't seem to be a way to do a dynamic import of other image types... not even freehand images... You'd think Macromedia would give its own file types a little more support, no!? Well, if anybody out there has any ideas, I'd sure owe you one!
Thanks in advance!
View Replies !
View Related
Dynamically Importing Images
Can someone tell me the procedure for dynamically bringing images into a movie from a folder.
I am producing a flash site for a photographer and I want the images to sit in a folder that he can update. The swf will then look in the folder and display the image accordingly.
Is this possible and how do you do it? I've seen things about XML floating around but they don't explain how to do this particlar problem.
View Replies !
View Related
Importing Images Dynamically
Hello,
I want to import some images into various holders, but I want to do it dynamically.
I have some images, like "image1.jpg" "image2.jpg" etc.
I also have the holders on the flash document as:
"mv_btn1 . btn1 . mv_holder1" (no spaces)
I've checked my code on a test holder, but that one was placed on the _root timeline, not inside of a bunch of movies and buttons.
This is my code:
Code:
for(i=1;i<=5;i++){
loadMovie('button' + i + '.swf', '_root.mv_btn_'+i+'.btn_'+i+'.mv_btn_'+i+'_holder');
_root.mv_test
trace("loadMovie('button" + i + ".swf', btn_"+i+".mv_btn_"+i+"_holder);")
}
I'm wondering if I might just be calling the movie holders wrong, or if I need to tell them that they have that name. I've found that unless you give the clip a name in the property inspector then you can't call it dynamically.
Thanks for your help.
View Replies !
View Related
How Dynamically Change The Image In Dynamically Created Row Of Images?
Hi everybody,
I am wondering if someone can help me to find out on how to replace the images in row of dynamically loaded images. I need on Press of an icon from the row of images replace the image of this icon to new one. Below is the code of creating the images row based on array and XMl data. I create an array based on data taking from XML.
Code:
var numOfImages:Number;
var thumbHeight:Number = 8;
var thumbSpace:Number = 100;
var thumbTotalDistance:Number = thumbHeight+thumbSpace;
var xCounter:Number = 5;
var thumbsCollectionHeight:Number;
var currentImage:Number = 0;
var moveOutDist:Number = 10;
//-------------------------------------------------------------------------
//-------------------------------------------------------------------------
var IM_Img:Array = new Array();
var IM_Title:Array = new Array();
//==================================================================================================================
//=============================== THUMBS IMAGE LOADER ==========================================================
//==================================================================================================================
var thumbImgLoader2:MovieClipLoader = new MovieClipLoader();
var thumbImgListener2:Object = new Object();
thumbImgListener2.onLoadProgress = function(target:MovieClip):Void {
};
thumbImgLoader2.addListener(thumbImgListener2);
thumbImgListener2.onLoadComplete = function(target_mc:MovieClip):Void {
};
//==================================================================================================================
//=============================== XML ==================================================================================================
//==================================================================================================================
var totalXML:XML = new XML();
totalXML.ignoreWhite = true;
totalXML.onLoad = function(success) {
var TNnode = this.firstChild.childNodes[1].childNodes;
numOfImages = TNnode.length;
//---------------- ATTACHING THUMBS -----------------
//===========================================================================================================
for (i=0; i<numOfImages; i++) {
var mc:MovieClip = imCollection_mc.thumbs_mc.attachMovie("mcThumb_IM", "thumb_" + i, i);
mc._y = 0;
mc._x = xCounter;
xCounter = xCounter+thumbTotalDistance;
thumbImgLoader2.loadClip(TNnode[i].attributes.thumb,mc.loader_mc);
IM_Title.push(TNnode[i].attributes.title);
imCollection_mc.thumbs_mc["thumb_" + i].mc_title.title_txt.text = IM_Title[currentImage];
mc.id = i;
trace (mc.id);
mc.onPress = mc_im_onPress;
mc.xx = mc._x;
mc.yy = mc._y;
}
};
//-------------------------------------------------------------------------
totalXML.load("images.xml");
Here is onPress event where I was thinking to add this functionality:
Code:
function mc_im_onPress() {
mcToSelect = this;
if(this.id==8){
//here I need to tell to replace the image from mc8 to new image from array to image#34 from xml
}
}
Any advice is highly appreciated. Thanks.
View Replies !
View Related
Dynamically Loading Images Into Dynamically Loaded MovieClips
I'm read through many of the posts and found several on this topic, none, however, that addressed all that I need addressed. I've tried several of the suggestions but so far nothing seems to work.
What I want to do is alter the width of images loaded dynamically into a dynamically loaded set of movieclips. all of the widths of the images are different, but i want them set to the same width. The width seems to stay at zero, however, and I cannot seem to change it.
Here is my code:
for (var i:Number = 0; i < 8; i++){
var mc = attachMovie("rect_mc", "r" + i, this.getNextHighestDepth());
mc._x = 90 + (i * (mc._width+5));
mc._y = 375;
mc.img_txt.text = "image" + (i+1);
mc.img_mc.loadMovie("myPic" + (i+1) + ".jpg");
mc.img_mc._xscale = mc.img_mc._yscale = (50/mc.img_mc._width) * 100;
};
The last line is the one that does not function properly.
I'd appreciate any help anyone can provide. thanks.
View Replies !
View Related
Skipping Missing Images For Dynamically Loaded Images?
Hey all,
I'm creating a image viewer for a photography studio.
I have it dynamically load the images. I'm using a text file to tell flash how many pics there are, the starting number, and the prefix and suffix for the file name ie. Ahp1234.jpg. Im using a simple counter when a person clicks on the "next" button it will add an increment to the starting number. My problem is photography studios often throw out images that didn't come out right, so there is a jump in numbers, and hence I get an error when trying to load an image that isn't there. I was wondering if there was a way to tell if an image has loaded properly using loadMovie. Or perhaps a better method than what I'm using?
I tried
square = new loadMovie;
square.load (_root.Filename);
square.onload = function (success){
if (success) {
//coding
}else{
counter++
}
}
If any one has any insight I would appreciate it.
Thanks.
View Replies !
View Related
Importing Pdf Dynamically
Hello,
I know that I can import pdf files to my library with the flash GUI, then I have a moviclip with all parsed pdf pages. Do u know if it's possible to do that dinamically with actionscript?
Thanks!
View Replies !
View Related
Another Guy In Need Of Dynamically Importing Jpgs
hi,
i was wondering if i could dynamically upload different jpgs in a swf file. i have a client that wants to change the pictures they want to show in their flash movie. how can i do this w/o them using flash?
i thought maybe letting them name the jpgs 1, 2, 3, and 4 and that would allow for changing the pictures, but how could i upload, and update them to the swf?
grant
View Replies !
View Related
Dynamically Importing Jpg Via Textbox
OK I've got this text box that dynamically imports data from an external txt file. My question is, is there anyway to attach a jpg to the txt so that it imports with the data? (data scrolls if content exceeds text box length)
Using Flash MX 2004.
Thanks
View Replies !
View Related
Dynamically Importing Jpgs
hi using flash 8
I want to dynamically import jpgs that have different widhts
my xml looks like this:
<gallery2>
<pic>
<image>gallery2/images/p1.jpg</image>
<caption></caption>
<thumbnail>gallery2/tn/p1.jpg</thumbnail>
<size>272</size>
</pic> etc...
and the actionscript like that:
function thumbnails_fn(k) {
thumbnail_mc.createEmptyMovieClip("t"+k, thumbnail_mc.getNextHighestDepth());
tlistener = new Object();
tlistener.onLoadInit = function(target_mc) {
target_mc._x = hit_left._x+(target_mc._width+5)*k;
target_mc._width = [size]
target_mc.pictureValue = k;
target_mc.onRelease = function() {
p = this.pictureValue-1;
nextImage(); etc...
as you can imagine - IT DOES NOT WORK --- PLEASE HELP!!! HOW TO SET THE SIZE OF THE LAODED IMAGE DYNAMICALLY AND NOT FIXED.
View Replies !
View Related
Dynamically Importing Gif's Or Pngs
Would anyone know if it would be possible to import gifs dynamically into flash at runtime? http://www.kirupa.com/developer/mx20...otogallery.htm
I used this tutorial to make a photo gallery with an external xml file. I know IE doesnt like png's but flash wont even import gifs only jpgs. This sux for me as i need a transparent background.... someone helpppppppppppppppppppppppp
View Replies !
View Related
AS2:CS3-help -which One To Use, Swf Or Flv When Importing Video Into Swf Dynamically
I am making a training video list on a web page. When a training video is clicked, the training video is played by an swf file on a new tab, and at the end of the video, the swf displays a web form to gather some data to be saved in MySQL db. The name of the training video is passed to the swf file as parameter to play the training video dynamically.
I have a question.
When loading the training video dynamically in the swf, should I load the training video in the flv format file or swf format? The training video can be produced in swf and flv format.
I noticed lots of web sites say that flv should be used. But I think training video in the swf format file size is smaller than the flv size.
What is the advantage and disadvantage of loading the training video in flv format and swf format whith all other fators being equal?
Thank you very much.
View Replies !
View Related
Dynamically Importing Gif's Or Pngs
Would anyone know if it would be possible to import gifs dynamically into flash at runtime? http://www.kirupa.com/developer/mx20...otogallery.htm
I used this tutorial to make a photo gallery with an external xml file. I know IE doesnt like png's but flash wont even import gifs only jpgs. This sux for me as i need a transparent background.... someone helpppppppppppppppppppppppp
View Replies !
View Related
Importing Text And Dynamically Formatting
So, I have spent the last three hours searching for this answer and I am still completely lost:
I have an xml file from which I am loading my text into a dynamic text field. That works all fine. The content is coming out of four different nodes in the xml file so I join them together before they go into the text field. that works all fine too. The font for the text field is embeded, which it has to be and "html" is turned on for the text field.
How do I format the text from one of the xml nodes to make it bold?
If you are going to suggest that I just put >b> tags around the stuff that I want to be bold, it wont work because the bold font is actually a completely different font. I can't just change the weight, i have to change the font. I tried using the >font face=> tag, and that doesnt work either, instead none of the text shows up at all.
It seems like such a bloody simple question.
View Replies !
View Related
Dynamically Importing A Pdf Or Word File
Hi guys,
I'm trying to create a Flash book/page flipper that loads pdfs or word documents into it so I can flip through the pages
as I can't import either of these formats manually I can't imagine I can import them dynamically, which is what I want to do.
Is there a strategy for doing this, or am I SOL?
View Replies !
View Related
Dynamically Importing A .mov File Into Flash
Hi,
I need to import a .mov file into a flash file and create a .swf movie. I can do it through File > Import Movies option. But I want to make it dynamic and import the movie. I would like to use ActionScripts rather than the File> Import options. Pls let me know if this is possible. Let me know if you have any questions. Appreciate any help.
Thanks & Regards,
Magesh
View Replies !
View Related
Dynamically Importing A .mov File Into Flash
Hi,
I need to import a .mov file into a flash file and create a .swf movie. I can do it through File > Import Movies option. But I want to make it dynamic and import the movie. I would like to use ActionScripts rather than the File> Import options. Pls let me know if this is possible. Let me know if you have any questions. Appreciate any help.
Thanks & Regards,
Magesh
View Replies !
View Related
Limitations On Dynamically Importing JPEGs?
Does anyone know if Flash has a limitation on dynamically imported jpegs? I find that maybe 30% (maybe more) of the jpegs I have do not import into Flash (using LoadMovie).
I think I read somewhere that you can't import progressive jpegs dynamically. Is that it? Or is there something else?
Cheers,
Mike
View Replies !
View Related
Limitations On Dynamically Importing JPEGs?
Does anyone know if Flash has a limitation on dynamically imported jpegs? I find that maybe 30% (maybe more) of the jpegs I have do not import into Flash (using LoadMovie).
I think I read somewhere that you can't import progressive jpegs dynamically. Is that it? Or is there something else?
Cheers,
Mike
View Replies !
View Related
Dynamically Importing Animated GIFs
I currently have a flash header that calls a PHP script which pulls banner information to display inside of the header. I recently added animated GIFs to the list of images it can pull and have noticed that the images are displayed in the header, but are not animated; the first frame of the banner is displayed, but that is it. Is there something specific I need to do in order to import an animated GIF dynamically?
View Replies !
View Related
Importing Images On The Fly
I am creating a web site for an art gallery whose image content is constantly changing. I created an image scroller, but it is way too time-consuming to repurpose this thing every time I have new images. I am looking for a script that will read in the images from a given location, so no matter what images are there it will automatically update. Any ideas? Thanks in advance
View Replies !
View Related
Importing Images
Hey can anyone tell why, when you import an image into flash, it turns all blurry, how can you fix this? I know you can use bitmap based images on flash cause ive seen some sites that use animated with images that definately aren't vector based.
View Replies !
View Related
Importing Images
I'm working with another person on a small project. He is preparing raster images for me. Is it better for me to import an image that has been created to-size accept at a higer resolution, 100 or 150 dpi (letting Flash perform the compression) or should I have him make the images to exact size and resolution?
The images I'm working with are sample page layout designs so, while the copy on them is not quite as important as the appearance of the layout, if the copy looks real blurry I'm guessing that it will effect the overall appearance of the image.
View Replies !
View Related
Importing Images
What is the best file type to import black and white or grayscale pictures? Which types are the smallest in size but keep the quality. I have some original artwork done in charcoal that I want to scan in and import. Thanks,
View Replies !
View Related
Importing Images
Is there any way to import images into a flash movie, from an external source once the movie is running. Also i would need to have flash preload those images. What i want to do is have an image viewer, where you use flash to select an image then, when you click on it it opens in a new window, bigger. I want to import the image, because i don't want the viewer to have to load the image twice.
Thanks
P.S. How do you put those flash images in your signatures.
View Replies !
View Related
Importing Images
is it possible to have flash call external images and display them to a pre set size within a flash movie, and also have an admin area where the user can upload images on their local machine to the server and have flash call them into the stage, just like a messege board, but with image?
if anyone can help me please mail me at info@codec1.co.uk
thanks alot
View Replies !
View Related
Importing Images..HELP :(
Hello...this is my problem : I've made an image in Photoshop 6.0 (which i know quite well) but when i wanted to import it to flash it imported the whole image with white/transparent background..How can i import only image to Flash when i want to create an animation or button(without background).It imported it also when i copy/paste it from PS to flash.
Please help.
Thx in advance.
Dragan aka Sa1Nt
View Replies !
View Related
Importing Images
I was wondering if its better practice to compress the files as much as you can before import, and let flash use that file as is... or its better to import it at high quality, and let flash compress it. I don't know if flash does a better or worse job compressing then photoshop.
...if it is better to import an uncompressed file, which fileformat is best? JPG, PNG or is there some trick by going thru another program like illustrator or something ;/
Guess it comes with experience... but thought i'd ask first
TIA
dizy
[Edited by dizy on 06-27-2002 at 04:45 PM]
View Replies !
View Related
Importing Images
I created a collage in photoshop that I'd like to import into Flash. However, no matter how I save it (gif, etc.) after flattening the image, the whole thing looks digitized in Flash. Any suggestions?
View Replies !
View Related
Importing Images
Whenever i import an image, it always imports it and appears in a really small size. Much smaller than its actual size. How the hell do i get it to show imported pictures onto the workspace in their actual size. Coz i have to scale it out and its stuffing my movies around.
View Replies !
View Related
Importing Images
When I insert images, they tend to get distrorted. I've tried 72dpi and 300dpi, jpg, bmp, gif, and even extra large sizes so I can reduce the size once I've imported it. Nothing seems to work. What is the "proper" way to import images?
Here's an example of what I've done:
http://www.automaticbankcard.com/flash.html
(go to the "directory" link and look at those images on the mouseover)
__________________________
Scott Sarrells
http://www.sarrells.com
View Replies !
View Related
Importing Images
We're having a debate in the office. Let's say you're laying out a flash piece that will work as a photo gallery -- simple button navigation between images. Now, flash doesn't allow you to import those images from an ftp source, correct? They have to be imported WHEN YOU'RE AUTHORING THE MOVIE -- you can't just plug in images as you would on an HTML webpage, using paths to an external source. Correct?
View Replies !
View Related
Importing Images
We're having a debate in the office. Let's say you're laying out a flash piece that will work as a photo gallery -- simple button navigation between images. Now, flash doesn't allow you to import those images from an ftp source, correct? They have to be imported WHEN YOU'RE AUTHORING THE MOVIE -- you can't just plug in images as you would on an HTML webpage, using paths to an external source. Correct?
View Replies !
View Related
Importing Images
I'm trying to create a hole in a bitmap image by doing the "trace bitmap" and then selecting the area I want to get rid of...then converting the bitmap to a graphic. The idea is to have images behind that image only appearing through the hole that was created.
Is there a photoshop file format I can import that will have a transparent area?
Is there a better way to do this? It seems to be time consuming and tracing the bitmap isn't an exact science...I'm pretty new so any help will be appreciated!
Thanks!
View Replies !
View Related
Importing Images With XML
hi,
i have struck a problem...
i am creating a catalogue slide show of images, where flash calls upon a XML document for the location of the images. the problem is resizing the images. i can do this in photoshop but only if i reduce the dpi/px aswell. this causes a problem because it reduces the quality of the image. if i do resize the image by keeping the dpi/px in photoshop flash imports the image in the form of dpi/px not cm's!!! can i overide flash in actionscript telling it to import the image's size in cm's or inchs rather than dpi/px?
please help!!
John Simpson
View Replies !
View Related
Importing Images
I have tried several different file types when importing bitmaps. I am wondering what tricks people have for displaying bitmaps without them becoming blurry or just plain ugly.
Thanks any help would be great!
View Replies !
View Related
Importing Images
Is there anyway to import an image from outside of the flash movie into it... like... i want to make a big gallery of pictures... but i can't put all of the pictures into toe movie bcuz it will get to big... i want to import them from outside... is there a way to do that?
View Replies !
View Related
Importing Images
hi,
i'm trying to import an image that has transparency into flash. i tried saving it as .png but when i run the movie, the image looks distorted. any suggestions as to a better format or way of making my images look better?
thanks in advance.
View Replies !
View Related
Importing Images
Hello All,
Good to be back. I have two questions from me, the newbeeeee... I am importing images (JPG's) into Flash and dragging them onto the scene. The images are being magnified or something like that and the resolution is bad. Is there a certain procedure to doing this? Secondly, I am attempting to build a site that opens to a specific size in anothe window with out the browser buttons. How do you do this? Thanks for all your help!
SS
View Replies !
View Related
Importing Images
hi, im making a site for a company, which one of the pages needs to be updated every month, and i was wondering if there is a way to make flash import a picture from a url (the company uploads a picture every month so i dont need to update the fla every month).
any help would be greatly appreciated.
u can email me at Thor@TheDarkEmpire.com.
thanks.
View Replies !
View Related
Importing Images
When I am using photoshop.... I am able to make portions of the image transparent. That way... when I put the image in a web page.... the background of that page shows through the transparent portions.
Here's my problem:
When I import those same images into flash... those transparent portions are no longer transparent but rather white.
Can someone tell me if there is a way of maintaining transparency or can I remove those portions that I want without making a mess of the image in the process?
Any help would be appreciated.
Thanks
View Replies !
View Related
|