Image
Hi!
When i click a button in a html window i wan´t an image to load into a movieclip.
how can i do this??
/Johan
FlashKit > Flash Help > Flash General Help
Posted on: 09-20-2004, 08:22 AM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Loaded External Image Question: Use Default Image If Loaded Image Not Found?
Hello,
I use the following code to load an external logo into a Flash Movie.
Quote:
var myRequest:URLRequest=new URLRequest(logoPath);
var loader:Loader = new Loader();
loader.load(myRequest);
holder_mc.addChild(loader);
What if the logo file is not find? I wish that if the logo is not found, another default logo will be used, i.e.
if (logoPath is here) {
var myRequest:URLRequest=new URLRequest(logoPath);
} else (logoPath is not here) {
var myRequest:URLRequest=new URLRequest("defaultlogo.png");
}
How can I do that?
Thanks and best regards
Alex
Blurry Image With Mask Of Clear Image That Is Supposed To Show When Mouse Rolls Over
Very first thing, after preloader, is a blurry image that is supposed to get clear when mouse goes over the image. Problem is, the image that is clear will not, when previewing the movie, move from the top left corner. It is supposed to be right on top of the other image, which is in the middle of the screen. when i go into the layer that the clear image is it is right over the blurry image. I don't understand why, and have tried many different ways to try and fix this. Please let me know if you can help. Thanks.
Mx2004 Cuts Loaded Image Borders - Image Format Problem?
hi mates
i know i didnt post here quite a long time (wasnt programming quite a long time too), and since i know this forum to be very helpful, i am back with one irritating problem.
i have some jpgs, all contents seem to be ok, and wanna load and rescale them (rescaling would work, thats not the problem). it seems my pictures have some format error, but i cant find it
they dont seem to get displayed completely. or better, their contents dont. that means, the content is displayed in a certain area, but not outside of it, although the image is fully loaded (at least getBytesTotal tells me so). i made a small file to test the picture loading, and it shows the same error as my real clip does.
- no, theres no mask applied
- no, the jpgs are no progressive types
- yes, i tried using baseline optimization, standard baseline, and different compressions.
- yes, when displaying the jpgs with any other tool than
- when inserting one of the pics to the stage in developing and then exporting it being inside the swf, it is displayed correctly
- btw, the pics are quite big (about 3000*2000px/300-700kB) for being able to zoom.
another issue i am noticing is that some areas inside the displayed area of the jpg are not displayed instantly when the jpg is displayed, and fadein (alpha) effects of other clips in front of these areas cause much more cpu load than they should.
anyone ever seen this problem? or anyone having an idea how to solve this one?
thx for reading, greets
self
Kirupa Picture Gallery / Keeping The Image On Stage As New Image Loads
Hi, I have the Kirupa Image Gallery implemented and it works great. But I was wondering how I can go about having the image stay on screen as it is loading the next image, so it's not such an abrupt transition. Currently the image container goes blank as it loads the next image. I assume I will need another image movieclip that sits underneath the first one... but then what?
Thanks!
Simple Gallery Example Flash With PHP Serving Image List And Image Sizes
this is simple gallery example for AS2
gallery is nothing special ease to use and implement
interesting thing about this example is that you pass a folder, and PHP side gathers images list from folder and returns it to Flash in XML form together with images widths and height which makes it more easier to implement this sort of galleries like I've made
example : http://www.hagane.us/as/gallery/
ZIP : http://www.hagane.us/as/gallery/gallery.zip
blogpost : http://mrsteel.wordpress.com/2008/01...s-from-folder/
Seeking Flash Image Gallery That Resizes Movie To Fit Image Dimensions
I am looking for a flash gallery that resizes the movie dimensions to fit the width and height of the image in real-time. Alternatively, the movie does not display a background color or border. I've used slideshowpro and it's feasible ...just looking for another suggestion. Prefer xml-based.
Targeting Thumb Nail Image In Image Scroller To Full Size In Middle Of Screen
Hi people....
Thanks for your time....I`m basically looking for ideas on how to do the following. Most of the work is done all I need I hope is a little actionscript... ( I hope)
I`m building a scrolling picture gallery for someone where they want the thumbnail images, once clicked upon to scale very large in the middle of the screen on top of the image scroller. When the image is clicked it zooms back down to where it was clicked upon in the scolling image gallery. The site that best describes this is http://www.chris-bailey.com.
I can do the scrolling image gallery (well, thanks to other friendly flask kit people) and get the user to click the image buttons to load a movie above the scrolling gallery but its targeting the moving images in the scroller to target to the middle of the screen and stop moving and then go back down to the moving scroller.... All the images in the scroller are seperate movies that are obviously easy to scale but I need to turn off the scrolling action when they start scaling into the main movieso they remain still to view. Any ideas please? Using Flash MX.
Thanks.... Angus
Must-read: How To Batch Convert Image Files To Swf (for Image Galleries)
Sorry for cross-posting, but I thought this was important.
If you ever need to create an image gallery in Flash using loadMovie(), read this:
Last night, I was trying to create a Flash image gallery where each of the images are loaded dynamically using loadMovie(). As you know, this is usually a very painful process, since you have to create a movie for each of the image files, adjust the size of the movie, import the picture, set the quality, test, adjust, etc. etc. A conservative estimate of 5 minutes per picture gives us a whopping 2 hours for a gallery of 25 images.
Well, Fireworks 4 allows you to export to swf. Using its javascript API for extending, I was able to create a command where you specify the files to convert, the output dir, and the JPEG quality for bitmaps, and with that info the command batch converts all of the files to swf. The total process takes about 30 seconds!
Here's how you can use it:
Copy everything between these lines (not including the lines) and paste it into an empty NotePad:
Code:
//Batch export to swf; a script for Fireworks 4
//By Patrick Mineault
//patrickmineault@sympatico.ca
function checkForPC(){
if(fw.platform == "win"){
return true;
}
else{
alert("Sorry, this script works only with Fireworks 4 for Windows
" +
"If you would like to help me make the script compatible for the Mac,
" +
"please contact me at patrickmineault@sympatico.ca");
return false;
}
}
function noWindowsOpen(){
if(fw.documents.length == 0){
return true;
}
else{
alert("Please close all documents
before running this script");
return false;
}
}
function getDocs(){
alert("Select the image files
to batch convert to swf");
theDocList = fw.locateDocDialog(50, ["kMoaCfFormat_BMP",
"kMoaCfFormat_GIF",
"kMoaCfFormat_JPEG",
"kMoaCfFormat_PICT",
"kMoaCfFormat_TIFF",
"PNG"
]);
if (theDocList == null || theDocList.length == 0) {
return false;
}else {
return true;
}
}
function getExportPath(){
alert("Please choose an export folder");
thePath = fw.browseForFolderURL();
if (thePath == null || thePath.length == 0) {
return false;
}
else{
return true;
}
}
function getJPEGQuality(){
fw.dismissBatchDialogWhenDone = true;
var notFinished = true;
var result;
while(notFinished){
JPEGQuality = prompt("Non-vector objects will be converted
" +
"to JPEG's during the export process.
" +
"Please enter the JPEG quality.","75");
if(JPEGQuality == null){
notFinished = false;
result = false;
}
else if(!(JPEGQuality >= 0 &&
JPEGQuality <= 100 &&
JPEGQuality == Math.round(JPEGQuality))){
alert("Please enter a valid value");
}
else{
notFinished = false;
result = true;
}
}
return result;
}
function batchProcess(){
fw.batchStatusString = "Exporting as swf... please wait";
fw.progressCountTotal = theDocList.length;
fw.setPref("SwfMaintainObjEditable", true);
fw.setPref("SwfMaintainTextEditable", false);
var numOpenDocs = fw.documents.length;
for (var i = 0; i < theDocList.length; i++) {
fw.progressCountCurrent = i + 1;
var theDoc = theDocList[ i ];
theDocWindow = fw.openDocument(theDoc, false);
fw.setActiveWindow(theDocWindow);
convertToSWF(theDoc);
theDocWindow.close(false);
}
alert("Done!");
}
function convertToSWF(theDoc){
var lastSlash = theDoc.lastIndexOf("/");
//This part won't work on the Mac, since there is no last dot
var lastDot = theDoc.lastIndexOf(".");
var name = theDoc.substring(lastSlash+1,lastDot);
var url = thePath + "/" + name + ".swf";
fw.setPref("SwfJpegQuality", JPEGQuality);
fw.exportSWF(null,url);
}
if(checkForPC()){
if(noWindowsOpen()){
if(getDocs()){
if(getExportPath()){
if(getJPEGQuality()){
batchProcess();
}
}
}
}
}
Save this as "Batch export as swf.jsf" in C:Program FilesMacromediaFireworks 4ConfigurationCommands. The next time you open Fireworks, you'll see a new item in the Command menu, "Batch export as swf". Just run it and follow the instructions.
The script works with gifs, jpegs, bmp, tiff, pict and Fireworks PNG. Note that for Fireworks PNG the paths are exported as vectors, not as bitmaps. I've only tested the script on Windows, it probably won't work for the Mac; luckily there's an if that checks for the platform.
Anyway, enjoy!
Note: If you can fix the incompatibility with the Mac (look at the comment in the convertToSWF() function), please either e-mail me at patrickmineault@sypatico.ca, or post a meesage below.
[Edited by pmineault on 06-17-2001 at 07:35 PM]
Image Flip - MouseOver Button Triggers Image Change
Hello all,
My appologies if this question has already been answered if so i must have missed it.
My question is easier to explain by pointing here...
http://www.htmlgoodies.com/beyond/dualflip.html
The thing is the example above is in javascript and i would like to do the same thing in Flash.
Roll the mouse over a button and an image on the stage changes, then being a roll over the "image" natually flips back onMouseout.
i'm thinkin' typ
shownew == image1
on(mousover)
{
shownew(image2);
}
stop()
on(mousout)
{
shownew(image1);
}
stop()
on(press)
do what ever.
Hope this makes sense and please ask for more info if needed, or if possible a tutorial some where. 'cos this would really help me.
Thanks for your time, reading this and even more thanks if you can help me.
Mutex
Image Flip - MouseOver Button Triggers Image Change
Hello all,
My appologies if this question has already been answered if so i must have missed it.
My question is easier to explain by pointing here...
http://www.htmlgoodies.com/beyond/dualflip.html
The thing is the example above is in javascript and i would like to do the same thing in Flash.
Roll the mouse over a button and an image on the stage changes, then being a roll over the "image" natually flips back onMouseout.
i'm thinkin' typ
shownew == image1
on(mousover)
{
shownew(image2);
}
stop()
on(mousout)
{
shownew(image1);
}
stop()
on(press)
do what ever.
Hope this makes sense and please ask for more info if needed, or if possible a tutorial some where. 'cos this would really help me.
Thanks for your time, reading this and even more thanks if you can help me.
Mutex
Dynamically Loading Image Problem (Image Covers Up The Animation)
I am trying to create a movie that uses a dynamically loading jpeg. I have some vertical lines that move across the movie and should go over the jpeg image. The problem I am having is the image covers the effects. I have tried to add "loadMovieNum("images/main_image.jpg", 0);" on Layer 2 and then on Layer 1 I have my animated lines that should go across the jpeg image. The line animation is on the bottom layer, but the image still covers the effects. Am I doing something wrong?
I have attached the .fla file for an example.
[F8] Swapping New Image In As Movie Clip - How To Clear Size Of Old Image?
I'm loading in a jpg with the MovieClipLoader object. After the initial load, the movie clip _width property accurately reflects the width of the jpg loaded. Subsequent reloads show the width of the initial image. i need to get the width of the jpg i just loaded so i can properly size it for display. Is there a good way to clear out the initial jpg?
Image Streching For Unknown Reason In Dynamic Image Gallery
Hi everyone, this is my first time using flash.
I followed a tutorial at http://www.lukamaras.com/tutorials/a...e-gallery.html and everything is working okay, except when I view the big images they are 4x wider than they should be, stretching to the right. I think its a problem with action script maybe because I'm using cs3, and saving the file as flash 8? I'm not sure. I've included the file and the xml/photos it references in case anyone is nice enough to check out my problem.
http://www.mediafire.com/?euw1wywgnvg
Thanks! -mike
Copying Loaded Image Bitmap Data To Another Image Loader
Hi,
I have an app where the user uploads an image into an image loader component. I am trying to figure out how to copy the bitmap data from that loaded image into another image loader component.
Could someone steer me in the right direction? I was looking at bitmap clone and copypixels though haven't figured out how to get this to work yet.
Thanks,
Dan
Actionscript Image Gallery > Updating Thumbnail And Main Image
Hi all,
I'm helping a friend produce a small Flash website. For some artwork/photos.
Basically a strip of thumbnail images at the bottom, clicking a thumbnail will load the (fullsize) image above.
Currently ten thumbnails scroll across.
**The problem**
.. is he wants to be able to drop a thumbnail image and the corresponding fullsize image into a folder on the server. The Movie should then display the latest additions. I can produce a simple slideshow where extra images are loaded at run-time (MX introduced this). But am trying to figure out how to update both the thumbnail strip and the main image.
Any help/pointers greatly appreciated.
Robert
XML Gallery: Preload On Current Image/cross-fade Image
Hello,
I am new to action script but I am learning quickly.
I took the following tutorials and made a hybrid:
Photo Gallery Using XML and Flash
Photo Slideshow Using XML and Flash
I redesigned the interface and created this:
http://www.onarresdesign.com/greg/work2.html
Everything works great, but now I want to take it further than the tutorial.
I am trying to make the images cross-fade. I am open to any suggestions and I have tried many techniques with little success.
Here is the closest solution steps I have come up with:
Code:
1) First image preloads (grey background showing)
2) First image loaded into top level MC 1
3) First image fades in
4) First image in top level MC 1 remains visible
5) First image gets loaded into bottom level MC 2 behind current movie clip.
6) Top level MC 1 clears because its preloading next image
Bottom level MC 2 remains visible
7) Preloader shows on top of bottom level MC 2
8) Next image is loaded into top level MC 1
9) Next image fades in (cross-fade effect achieved because previous image is behind it)
10) Next image gets loaded into bottom level MC 2
Repeat process
I can't get the action script to do what I want. I have off set the moveclips to show that the images are loading into both movieclips. I currently have the 'nextImage()' function controlling this so it is understandable the both images are cleared because the function is loading new images into the movie clips at the same time. How do I get one movie clip to remain constant while the other is loading? It seems to be a matter of where the function is placed. Or so I think.
I would appreciate any help I can get on this. If would also appreciate any suggestions for making the code for the control buttons cleaner.
Thank you,
</asla>
Displaying A Larger/fuller Image By Hovering Over Small Image.
Hello guys n galls.
Ok its been a bit since I started learning the ins and outs of Flash. I haven't done much in terms of interactive stuff.
I co-run a site which you can find the link below, and in the past, if you check the home page, there were large 555 x 300 ish borders displayed one above the other. Now if you check the page, a mate altered it so that everything is more compact and theres only a little square containing a snippet of the original banners. Now I like this idea of compacting it all, but I was trying to think of ways to jazz it up a bit by incorporating flash into the whole thing.
I just had an idea of some how allowing the full banner images to appear in a larger screen when the cursor was to hover over the small squares which contain a little image. Would this be practical? Im thinking about the fact that there would be like 7 or so seperate topics at one time each with a small image that you could hover over. I was also thinking about possibly making it a bit more jazzy so that as the curser hovers over each topic, the outer edge glows or something like that with a sound effect.
COuld anyone help me with how i'd go about this?
SITE IS HERE BY THE WAY - www.aftershockpromotions.com
Dynamically Load An Image-Either The Image Resizes Or The Movieclip It's Loading To?
I will make a frame movie instance 400 X 400px called frame_mv.
I will use the script:
loadMovie("pic1.jpg", frame_mv);
If the pics being loaded were of different sizes. eg pic1.jpg was 1600 X 800
1- How would I make the pic resize to 400 X 400 or 400 X 200 so that it fits the frame_mv.
2- How would I make the frame_mv change size according to the pic dimensions being loaded?
Image Panner With Scrollbars - Start At Bottom Of Image
I have an image panner which allows a user to look at an image through a pane. The image is larger than the pane and the user can drag scrollbars around to look at different parts of the image.
I am trying to figure out how I can start the pane off so it shows the bottom of the image and the user would have to scroll to see the top...
Loading External Image > Image Appears Invisible
Hé,
I'm not posting here very much, so hi to anyone new.
I tried search for a solution to my problem, but I couldn't find one.
I'm using a button to load an external image:
code: on (Release) {
_root.temp.loadMovie("img.jpg");
}
Don't worry, both img.jpg and _root.temp (a box-shaped MC) excist.
When I press the button, _root.temp should be swaped by the image. Instead, it disappears, but no image appear. I have absolutely no idea what I'm doing wrong! I'm using Flash MX btw.
Here are my files:
http://www.cmd.tech.nhl.nl/users/regne200/test/
Flash File With *only* One Image Double The Size If The Image?
I have a Flash file.
All I've done is to stick in one image file.
I've got the image publish setting to be 100%.
I publish the file.
The resultant SWF file is double the size of the image.
I would have thought that it should be the same or just a tiny bit bigger files size than the image.
(The image itself is an image I edited in Photoshop... and optimised for the web.)
Where am I going wrong?
Thanks.
OM
I Need To Load A Image(jpg) Into Flash With A Text File With The Url For The Image
As the name says it all.
I need to add some AS in my flash site, so that the image (banner) is dynamic, meaning when I want to make a change to it, or make it look different, i dont want to go into flash to do it. So I want it so that when I change the jpg itself it changes inside of flash.
I would like flash to look up a txt file I give it, and inside the txt file it will have a URL to which jpg to load up in the movieclip.
If not this way, another similar way would be great
Thanks!
Rollover Image Gallery With Swap Image Effect?
I'm trying to do a flash banner like the one from:
http://www.eyeblaster.com/
when you rollover the buttons that say: eyeblaster ACM v2.0, advanced analytics, etc. the nice artistic banner appears. when you are no longer over it, it still stays to that same banner until you rollover the other buttons. so it's like a swap image effect, only in flash.
how would i go about this?
[F8]copy BitMapData To Duplicate Image = Blurred Image?
I'm making a basic image gallery. I'm reading data about the files from xml which then creates thumbnails. I use the loadMovieClip class to load the images into the thumbnails (I'm loading the full size images but then reducing the size of them to look like thumbnails).
I have figured out how to use the BitMapData class to copy the images into cache so when you click on a thumbnail, it instantly appears, but the resulting larger image has pretty low quality. Is this a result of copying the BitMapData?
Also, I saw on another post that if you load an image once, it will be in your browser's cache so you wouldn't have to download it again. I'm wondering how well that works.
Also, GPARIS, if you read this, what method do you use on your site http://www.genevieveparis.com/client...iemacleod.html ?
I noticed it loads thuimbnail images up but the large images are instantly available and they are sharp/high quality. I thought I read in a post somewhere that you use the bitmap method, but couldn't find the post. If that's the case, is there something you do to make sure the bitmap data comes out sharp after copying? Awesome site by the way.
Thanks for any input.
Load Image, Remove MC, Bring Back Image
I'm using some dynamic images for a scrolling menu. The scrolling menu comes from a version that used static images. In that version, it simply ran through the objects that should be visible, attach new mc's for those that are missing and deleting the ones that are no longer visible. Now, when I bring in the dynamic images, the people will have to load the images several times everytime they go up and down.
How do I load all the images into memory and then call on them just as I would call on them if they were in the library?
Flash File With *only* One Image Double The Size If The Image?
I have a Flash file.
All I've done is to stick in one image file.
I've got the image publish setting to be 100%.
I publish the file.
The resultant SWF file is double the size of the image.
I would have thought that it should be the same or just a tiny bit bigger files size than the image.
(The image itself is an image I edited in Photoshop... and optimised for the web.)
Where am I going wrong?
Thanks.
OM
Show Captured Image In MovieClip Without Saving Image First
Hello all,
How can I show an image that I have just captured with the webcam?
I am able to save that image using PHP but before I save it, I want to show a preview. How can I do this? Here is a snippet of the code that I think can be used to do this:
ActionScript Code:
foo = new BitmapData(640,480);
foo.draw(myvideoobject, scaleMatrix);
var myEncoder:JPEGEncoder = new JPEGEncoder(100);
myCapStream = myEncoder.encode(foo);/
How do I take the BitmapData or the JPEGEncoder and put it into a MovieClip or something so that I can just display it?
Thanks all for any help!
Loop While Image Is Loading / Fade Image As It Loads
Hi, another question:
I'm pulling a jpeg into a flash file using this:
loadMovie("digitalP_bg_2.jpg", "holder");
i have a shape over the image which is being pulled in, and this shape is supposed to fade after the jpeg is loaded - i've used straight forward tweening for the fade. howe ever, even though the loadMovie function is placed before the fade on the timeline, the jpeg takes a while to load and so the fade happens before the actual image has loaded.
my action scriptiing is very very minimal, i'd like to know if there's an easy enough solution to this. what i am thinking of possibly is creating a loop while the image is loading - provided that it isn't too complex to detect how much of the image is loaded.
any suggestions?
you can view the fla and swf here:
http://www.ponch.biz/flashtest/
cheers
Ponch
Fading A Black & White Image Into A Colour Image
I would like to load an image and then gradually and linearaly change the image from black and white into a full colour image over a set period of time. I would prefer to not have multiple images preloaded each with increasing colour saturation; as this produces too large a file and isn't linear. Can this be done elegantly please ?
Image Frame Resizes To Variable Image Size
Hey all, I've seen this effect on tons of sites and was wondering how hard it would be to do it myself. The effect is of an image frame that resizes to a variable image size such as at the following site:
http://www.thelotuseater.com/
Any help would be greatly appreciated. Thanks in advance.
Flash File With *only* One Image Double The Size If The Image?
I have a Flash file.
All I've done is to stick in one image file.
I've got the image publish setting to be 100%.
I publish the file.
The resultant SWF file is double the size of the image.
I would have thought that it should be the same or just a tiny bit bigger files size than the image.
(The image itself is an image I edited in Photoshop... and optimised for the web.)
Where am I going wrong?
Thanks.
OM
Photo Gallery Rollover Image Image Swap
I am using the XML Photo Gallery with thumbnails, and i have managed to modify it to suit my needs for the most part. However, some of the work i want to use it to display is photo restoration and i would like to be able to rollover the image and have a different image show on rollover. Something like you see here...http://homepage.mac.com/gapodaca/digital/bikini/ only using the XML Photo Gallery.
Any ideas?
Image Frame Resizes To Variable Image Size
Hey all, I've seen this effect on tons of sites and was wondering how hard it would be to do it myself. The effect is of an image frame that resizes to a variable image size such as at the following site:
http://www.thelotuseater.com/
Any help would be greatly appreciated. Thanks in advance.
How To Mask An Image Exlcuding The Transparent Area Of The Image.
Hi,
I am creating my first motion tween and I am sending a box through an image that I am importing, however the box of light is passing through my whole image that I have imported. I do not want this, I want the transparent area to be excluded, I read somewhere that this should be done with a lasso tool, but the area I want deleted is alreadt transparent, what more is there to delete, I really dont feel like cutting the image out again, can somebody help me?
here is my file so you know what I mean.
http://www.ctremblay.com/TremblayShine2.fla
Tweening Image Container Mc Resizes Loaded Image.
Hello all.
I am having a problem with an image gallery I am writing. The basic logic is as follows:
*click* button -> Resize image container mc(img_mc) to the dimensions of the new image. This is done by passing the new dimensions as arguments to a function that uses the mx.tween property to tween the container_mc to the new dimensions.
Once the tween is complete, place the image in the container_mc .
the mc's are as follows:
img_mc.container_mc
img_mc: has a graphic with a pseudo drop shadow and on the timeline of img_mc is container_mc used as a landing place for the image.
View the example online. NOTE* you must resize the browser window in order for the site to appear properly.. I haven't setup the default yet)
Any help would be greatly appreciated.
Basic Image View Not Dynamically Loading Image URL
What I have done Is added only a List Component to the stage and named it "lb". Then I'm Dynamically loading the data and label attributes from an external XML file. Now, I am Listening for the change event on 'lb" in order to create a new url request from the data property of the selected 'lb' item. Unfortunately, I am recieving this error message.
1067: Implicit coercion of a value of type flash.net:URLLoader to an unrelated type flash.display:DisplayObject.
Code:
var loader:URLLoader = new URLLoader();
var xml:XML;
var imgLoader:URLLoader;
loader.load(new URLRequest("http://www.xxxxxxx.com/Pictures.xml"));
loader.addEventListener(Event.COMPLETE, onLoaded);
lb.addEventListener(Event.CHANGE, itemChange);
// Loads XML data into List Component LB
function onLoaded(e:Event):void{
xml= new XML(e.target.data);
var il:XMLList = xml.Album[0].image;
for(var i:uint=0; i<il.length(); i++){
lb.addItem({data:il.attribute("url")[i],
label:il.attribute("title")[i]});
}
}
//Passes String used for URL
function loadImage(url:String):void{
imgLoader = new URLLoader();
imgLoader.load(new URLRequest(url));
imgLoader.addEventListener(Event.COMPLETE, imageLoaded);
}
//Creates Sprite from image url passed through loadImage
function imageLoaded(e:Event):void{
var image:Sprite = new Sprite();
image.width = 200;
image.height = 400;
image.x = 200;
image.y = 10;
image.addChild(imgLoader);
}
//OnChange .selected item passes URL String to LoadImage
function itemChange(e:Event):void{
loadImage(lb.selectedItem.data);
}
I'll admit I'm still a little new at this but I was thinking that URLRequest only need a String value wich I should be getting from "lb.selectingItem.data.toString()... atleast thats what it has been tracing. Any help is welcomed and thanks in advance.
Poor Image Quality If Image Not In 1st Frame?
All,
I am working on a small movie moving around some images.
Everything was fine until I added a pre-loader and all the sudden the images look very jaggy, all of them.
From my testing it seems rotated images in a 1 frame movie look fine, additional frames make them look all jaggy.
Anyone else know whats going on?
thanks,
brad
Screenscrapes Or Image Captures? Turning Into Image?
Here's a question akin to "Is there a machine that can instatly translate Apple IIe programs into QBasic?"
Is there a way to have Flash (or some addon applet to Flash) screenscrape or screen capture something and turn it into an image? I don't care the format.
What I mean is, I have a tool (see a roughdraft sample at http://www.mechphisto.net/flash/cardtool.swf (ignore the size to fit annoyance),) that allows you to build a postcard.
At the end you get a review of what it looks like.
Right now I have it sending every variable via POST to an ASP page that grabs and submits it to a text file.
What would be cool although I'm sure impossible, is to also take a screen capture of somesort and save it to the server.
Is there anything out there that will allow Flash to do that?
Doesn't hurt to ask, right? =)
Thanks.
Screenscrapes Or Image Captures? Turning Into Image?
Here's a question akin to "Is there a machine that can instatly translate Apple IIe programs into QBasic?"
Is there a way to have Flash (or some addon applet to Flash) screenscrape or screen capture something and turn it into an image? I don't care the format.
What I mean is, I have a tool (see a roughdraft sample at http://www.mechphisto.net/flash/cardtool.swf (ignore the size to fit annoyance),) that allows you to build a postcard.
At the end you get a review of what it looks like.
Right now I have it sending every variable via POST to an ASP page that grabs and submits it to a text file.
What would be cool although I'm sure impossible, is to also take a screen capture of somesort and save it to the server.
Is there anything out there that will allow Flash to do that?
Doesn't hurt to ask, right? =)
Thanks.
Blurred Image Tweened To Clear Image
How do are can you, take a blured image and tween (morph) it into the same image but it's not blurred any more.
Thanks for your time and help.
JT
ATL
Fade Another Image On The Screen In And Out When Mouse Over Another Image
Im hoping someone can help me with this flash dilemma thats been bothering me. I have 3 images on the stage and when the mouse goes over one of the images, i want the other two to fade out. Then when the mouse leaves that same image, i want the two images that faded out, to fade back in. So far, ive turned the images into movie clips and made the movie clips fade out until frame 31. then i put an action to stop at 31 and then i have the fade in sequence from frame 32 to 60 (then i had a stop action at the end of that too). If anyone knows a good way to do this, i would really appreciate it. Id rather not do this with buttons, but if thats the only way you know, im still open to it because i really appreciate any feedback given. THANKS!!!!
Image Gallery... Save Image To Computer?
Hey all,
I just wondered if there was a way to save image files in a dynamic gallery? For example... when an image is displayed, a little save icon appears that allows the user to save the jpeg file to their computer. Thanks!
Adjusting Image Spacing According To Image Width.
Hi again!
Just have a quick question.
I have images that a loaded from an xml file and I want it to detect the width of each
image and then automatically space then by say 10 pixels one after another.
here is the coding.
Code:
for (i=0; i<numimages; i++) {
picHolder = this.firstChild.childNodes[i];
thumbHolder = thumbnails.createEmptyMovieClip ("thumbnail"+i, i);
thumbHolder._x = i * thumbnails._width;
thumbHolder.title = picHolder.attributes.title;
thumbLoader = thumbHolder.createEmptyMovieClip("thumbnail_image"+i, i);
thumbLoader.loadMovie(picHolder.attributes.thmb);
_root.advertising.scroller.black.action="increase";
thumbHolder.useHandCursor = false;
}
I've added the thumbHolder._x = i * thumbnails._width; and that evenly spaces them but they are still overlapping eachother. If i use just a generic number it spaces them ok but the problem appears when the width of images vary. So what I'm after is something that will space them evenly even when the width of each individual is different.
any ideas?
thanks.
w123.
[MX04] Image Fade + Image Cycle [HELP]
Hi guys,
Seeing as how I am only a lowly graphic designer, I was wondering if you fellas who actually know a little bit of Flash could throw me a bone here... and for the record I have searched probably 100 threads before posting trying to find something similar to the below URL but came up with nothing... if you know of one please point me there!
Anyway, I want to design a navigation banner very similar in functionality to:
http://www.greathomessonoma.com/
As you can see, when you mouseover the text, the image fades out and then is replaced by the next of 3 images total per category.
How does this work? I'd REALLY appreciate some help here, I'm just trying to get by with what I know. I'm assuming that they are linked movie clips with an alpha actionscript with some kind of organized (not random) rotation method. Anyway, thanks for the read and hope to hear back from someone!
[MX04] Image Fade + Image Cycle [HELP]
Hi guys,
Seeing as how I am only a lowly graphic designer, I was wondering if you fellas who actually know a little bit of Flash could throw me a bone here... and for the record I have searched probably 100 threads before posting trying to find something similar to the below URL but came up with nothing... if you know of one please point me there!
Anyway, I want to design a navigation banner very similar in functionality to:
http://www.greathomessonoma.com/
As you can see, when you mouseover the text, the image fades out and then is replaced by the next of 3 images total per category.
How does this work? I'd REALLY appreciate some help here, I'm just trying to get by with what I know. I'm assuming that they are linked movie clips with an alpha actionscript with some kind of organized (not random) rotation method. Anyway, thanks for the read and hope to hear back from someone!
[MX04] Image Fade + Image Cycle [HELP]
Hi guys,
Seeing as how I am only a lowly graphic designer, I was wondering if you fellas who actually know a little bit of Flash could throw me a bone here... and for the record I have searched probably 100 threads before posting trying to find something similar to the below URL but came up with nothing... if you know of one please point me there!
Anyway, I want to design a navigation banner very similar in functionality to:
http://www.greathomessonoma.com/
As you can see, when you mouseover the text, the image fades out and then is replaced by the next of 3 images total per category.
How does this work? I'd REALLY appreciate some help here, I'm just trying to get by with what I know. I'm assuming that they are linked movie clips with an alpha actionscript with some kind of organized (not random) rotation method. Anyway, thanks for the read and hope to hear back from someone!
|