Reflecting Images?
whats up you guys, i was wondering if in MX you can reflect an image. by reflect i mean, modify > transform > flip horizontal, but with action script of course...
I dont think that it is possible, but i hope you can prove me wrong!
Thanks. Tommygunn
Ultrashock Forums > Flash > Flash Newbie
Posted on: 2003-01-20
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
The Reflecting Ball
What would be the best way to have a ball change direction on the y-axis based on how far away it is from the center of a paddle upon collision?
Thanky in advance.
Reflecting A Movieclip :S
hi all.
im trying to get an effect working where i have a movieclip on stage which is reflected dynamically. Then i wish for the reflected movieclip to have a fading gradient.
(like the effect that can be seen at: http://www.tutorial9.net/wp-content/...reflection.jpg)
So far i can dynamically reflect the movieclip by using the code:
mc.duplicateMovieClip("mc1", 1, {_yscale: -100, _y:(mc._y+380), _alpha:40});
I am having a great difficulty in finding out how to apply a gradient to this reflected movieclip
as always guys, thanks in advance for any help
Reflecting A Movie Clip?
I was wondering what the best method for reflecting a movie clip would be. I have a bouncing ball that is animated by actionscript, it uses gravity and such to bounce in as a sort of intro to a button bar. Well these balls need to have a reflection and i was wondering what the best way for it would be, such as when the ball bounces in and hits the surface it shows a reflection, then as it bounces up the reflection fades then eventually settles. Now i know this can be done with a tween because i have it done with a tween but its not ideal, the reason being because now i found this bounce actionscript code that uses gravity and such to determine how the ball bounces and it would be a bit difficult to time a tween, it can be done yes but i was wondering if anyone had any sort of actionscript solution or other solution for achieve what i am looking to do, I found a refleciton class by leebrimlow however the refleciton follows the animation in rather than locking it in place, for instance as the ball bounces it shows the reflection but it the reflection bounces WITH the ball instead of staying static and fading in/out etc. Here is the thread on another forum for the reflection class:
http://www.gotoandlearn.com/forum/vi...770&highlight=
Thanks in advance.
Reflecting A Movie Clip?
I was wondering what the best method for reflecting a movie clip would be. I have a bouncing ball that is animated by actionscript, it uses gravity and such to bounce in as a sort of intro to a button bar. Well these balls need to have a reflection and i was wondering what the best way for it would be, such as when the ball bounces in and hits the surface it shows a reflection, then as it bounces the reflection fades then eventually settles. Now i know this can be done with a tween because i have it done with a tween but its not ideal, the reason being because now i found this bounce actionscript code that uses gravity and such to determine how the ball bounces and it would be a bit difficult to time a tween, it can be done yes but i was wondering if anyone had any sort of actionscript solution or other solution for achieve what i am looking to do, thanks in advance.
Embeded Fonts And Text Not Reflecting Them
I have several movies that are all very much the same, using many of the same components.
All using embeded fonts linked to the same source movie.
Now, about half the movies use the embedded fonts perfectly!
The other half, if the the fonts in question aren't installed on the viewer's PC, the text defaults to a system font and won't show in the font requested.
Problems with embeded fonts in the past have sometimes had to do with a text field using a font that's not embeded messing up the embeding for all the other fonts, or something like that. It's been so long I can't remember exactly.
But I've gone over every component, every line of code, and can't find anything different between a movie that works and one that doesn't!
I've tried re-embeding the fonts, I've tried using different fonts...and nothing changes on the movies that refuse to reflect the embeded font.
Does this sound at all familiar to anyone? Any suggestions?
Thanks!
Embeded Fonts And Text Not Reflecting Them
I have several movies that are all very much the same, using many of the same components.
All using embeded fonts linked to the same source movie.
Now, about half the movies use the embedded fonts perfectly!
The other half, if the the fonts in question aren't installed on the viewer's PC, the text defaults to a system font and won't show in the font requested.
Problems with embeded fonts in the past have sometimes had to do with a text field using a font that's not embeded messing up the embeding for all the other fonts, or something like that. It's been so long I can't remember exactly.
But I've gone over every component, every line of code, and can't find anything different between a movie that works and one that doesn't!
I've tried re-embeding the fonts, I've tried using different fonts...and nothing changes on the movies that refuse to reflect the embeded font.
Does this sound at all familiar to anyone? Any suggestions?
Thanks!
Uploaded Flash Site Is Not Reflecting Changes
Hi,
I have made some changes to my company's Flash site (http://www.alj.com). Those changes are not reflecting over some dialup connections and I still get the old files that were before the modifications. I had erased everything from my host and uploaded again but the problem still exixts. I'm wondering where the old files are comming from?!
Comments?
Big MC Made Up Of Small MCs Not Reflecting Change Made To Small MC
Hi, I hope someone can help me. I have a large movie clip (screen size) that is made up of 30 small movie clips called 'element1'. I was hoping to load a small (screen size) external movie clip into this 'element1' movie clip and knock out the existing content. This it does, but because the large movie clip was made up of 30 movie clips I would have expected after the content of 'element1' was replaced with the external SWF file that the whole of the large movie clip (made up of the 30 small clips) would have changed to reflect the change in swapping over the targeted 'element1' movie clip. All that is happening is that only the targeted 'element1' is showing the swap. Do you have to refresh the screen or something?
Any help would be appreciated.
Cheers
Pulling Images From Folder/txt File, The Images Loop With Delay?
I would like to have a flash movie where images change from one to the next with maybe a 10second delay, and it will loop over n over.
I want flash to take images from a folder or a .txt file stating where the images are found so adding new photos or removing photos from this looped movie will be a breeze.
Any help would be greatly appreciated, thanks!
Load All Images From The Images In 1 Folder (named By Random Number)
Hi Guys,
I've got a gallery style viewer, you click on an image and it enlarges. It pulls in images which are numbered 1 to 12 in a folder called 'images'. I want it to pull in randomly numbered images instead. so i suppose i want it to search the folder for images named 1.jpg up to 1000000.jpg and pull them in.
I've uploaded it to: www.dhardy.co.uk/gallery.zip as it'll become clearer then!
Thanks in advance! dave.
Bad Quality For JPEG Encoded Images ,,<***(sample Images INSIDE)***>
I have noticed that the quality of the images produced by the JPEGEncoder does not match that of other encoders available (i.e. php’s built in image compression functions from the gd library)
Any explanation ? or hints/workarounds for improving the quality of compressed images by JPEGEncoder ??
Please have a look at the following samples:
original image:
http://img212.imageshack.us/img212/5930/67624460qh5.jpg
Size: 110KB
Image encoded with JPEGAsync (same effect with JPEGEncoder):
http://img136.imageshack.us/img136/3554/77570198qp0.jpg
Size:46.7KB
Image encoded with Php’s built-in functions (gd library):
http://img382.imageshack.us/img382/7751/1492if8.jpg
Size:33.4KB
Much smoother than the JPEGAsyncencoder and JPEGEncoder version.. and smaller too
Any hints ? or workarounds to improve the quality of the encoded images ?
Images Pulled From Folder/txt File, Images Loop With Delay?
I would like to have a flash movie where images change from one to the next with maybe a 10second delay, and it will loop over n over.
I want flash to take images from a folder or a .txt file stating where the images are found so adding new photos or removing photos from this looped movie will be a breeze.
Any help would be greatly appreciated, thanks!
Images Pulled From Folder/txt File, Images Loop With Delay?
I would like to have a flash movie where images change from one to the next with maybe a 10second delay, and it will loop over n over.
I want flash to take images from a folder or a .txt file stating where the images are found so adding new photos or removing photos from this looped movie will be a breeze.
Any help would be greatly appreciated, thanks!
Images In Layers Being Hidden By Transparent Parts Of Other Images?
I am having a weird issue with Flash MX. I am working on a design, and I have images that are being hidden by the transparent section of other images. Basically I have 10 layers. Each layer has a piece if an image. They all kinda fit together to make one big image. But the problem is that even though none of the pieces overlap some layers seem to be hiding others. All the images are transparent png images. I have tried this with gif images as well and the problems still are there. Am I missing something totally easy here? Or is this some bug? Any help would be greatly appreciated.
Thanks,
Bill
Loading External Images Randomly, Getting The Amount Of Images Out A *.txt
hello there!
i've made an a script that loads images externaly from a specific map
randomly. there's only one thing:
how can flash learn to know how many images are loaded?
it's for a client so he can only upload the images and that's it.
can he somehow fill in a *.txt-file that flash can use further???
this is my sourcecode for the external-stuff:
code:
_root.importImage = "background_netomzet"+random(*)+".jpg";
(the * has to be a value that needs to be generated by how many pics
there are in the image map")
thanks a million people!
g
Is It Possible To Upload Images From CMS To Update Images In Flash Movie?
Hi,
I've got some developers working on a job that I'm project managing. Check it out by clicking here.
On the home page, you will notice a Flash movie of images of cars that fade into each other. My client wants to know if it's possible for him to be able to update the images of the cars (when the model gets out-of-date) from the CMS. Is there a way of updating the images from the CMS? The site is scripted in php on a Linux server. Any help will be greatly appreciated.
Regards,
Dan
Help With Unique Random Images - Multiple Images At A Time
Ok so what i would like to do is set up a page that has 36 images on it. But every time anyone goes to the site i want them to show up in random order. I have jpgs they are all labeled 1.jpg, 2.jpg 3.jpg and so on. I have used code that pulls the images form a folder that the swf isnt in like /images/1.jpg. So what im saying is i want to pull them externally. Any one have any ideas on how to do this?
The Age Old Question: Upload Images To MYSQL Or Images To Webserver?
hi guys, im having trouble deciding on the approach to go about.
i want peopel to be able to upload images so should i have them upload it into a db using BLOB or should i have them upload it to the web server?
i've been reading people say that the web server is probably better to use, but i dont know about that using AS.
anyone got a preference or a good approach?
I don't mind doing either one, but i don't know, i read some folks are paranoid about DB corruption.
any advice, let me know.
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.
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.
Images Slideshow Problem: Empty Screen Between Images
hi
i've made a script for slideshow an array of images.
I'm trying to figure out what's wrong with my script, why it has small pauses between images.
could anyone help me?
thank you.
here is the script, on the first (and only) frame of the movie:
disp_int = 150;
var index = 0;
var img_mc = new MovieClip();
var background1 = new MovieClip();
var iarray = ["test1", "test2", "test3", "test4", "test5", "test6"];
loadImg(index);
loadBackground(++index);
function loadImg(index) {
clip = iarray[index];
file = clip + ".jpg";
img_mc = this.createEmptyMovieClip(clip, 2);
img_mc.loadMovie(file);
}
function loadBackground(index) {
clip = iarray[index];
file = clip + ".jpg";
background1 = this.createEmptyMovieClip(clip, 1);
background1.loadMovie(file);
}
function fade() {
img_mc._alpha -= 10;
if (img_mc._alpha <= 0) {
img_mc._alpha = 100;
loadImg(index);
index++;
if(index==iarray.length) index=0;
loadBackground(index);
}
}
setInterval(fade, disp_int);
Loading Images Into A Container-H And V Images Centered
I am trying to load multiple images into a container clip to make an image gallery. Since there are both horizontal and vertical images I want the images to load into the center of the container clip (the center of container clip is aligned with the center of each image) because I cannot align both h and v images in my design by a corner. how do I do this?
Thank you!
72dpi Images Versus 96dpi Images
Does anyone know if importing higher dpi images into Flash would result in nicer images? Because when I import a 96dpi image into a Flash document, it appears smaller on the stage than the same image at 72dpi. Flash shrinks it accordingly.
Does this shrinking cancel out all the gains of the higher dpi?
72dpi Images Versus 96dpi Images
Does anyone know if importing higher dpi images into Flash would result in nicer images? Because when I import a 96dpi image into a Flash document, it appears smaller on the stage than the same image at 72dpi. Flash shrinks it accordingly.
Does this shrinking cancel out all the gains of the higher dpi?
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
Linking Images To Images In Flash
hey. im wondering how to link an aimage to another image in flash.
see what i want to do is have some like thumbs and when u click on it, it opens up the original large picture inside a new window.
just wondering hwta the script and stuff is for it.
on release
open picture in new window
or what??
cheers
Can't Fit All Images Into My Scrolling Images Movie
I'm pretty new at Flash, especially actionscript and I can't figure out how to get my movie to go through all the images I put in. In the library there's a movie folder in which there are 3 movies. The second one has most of the actionscript. I can't figure out what I need to manipulate so that all the images play/scroll through.
I put it up a link to the flash film on the web because even when zipped the file is too large to post as an attachment.
http://www.wakefly.com/staging/flash/flashmovie.htm
Any input would be much appreciated. Thanks!!!
Scrolling Images With Rollover Images
Ok, I am going to try to describe what I am trying to do to the best of my ability.
I have a scrolling menu of images, when you rollover the right arrow they move right, the left they move left. That all works fine, but I am having a problem figuring something out. What I want to do is: When someone is scrolling along they can rollover one of the images and it will bring up the pic in a certain area. Only problem, how would I do this without the scroll bar reseting itself. Right know I have it set up so that when you click one of the images in the menu it goes to another scene with that pic in it, but the scrollbar is gone. You then have to click a back button and it takes you back to the page with the scroll bar, but it is back at the beginning of the menu, and not where the person left off.
Any need to clarify anything let me know!
Thanks!
3 Images… Fading Effect Between The Images
I am very new to flash and I was looking to do a basic flash movie. Here is what I am looking to do. I have 3 images and I would like to create a flash movie that displays the first image and then fades. Then the 2nd image fades in and then the 2nd image fades out. Then the 3rd image fades in and then fades out. Basically it will just display 3 different images, one at a time with a fade in and out effect. I did a Google search looking for a tutorial to help me through this but was not able to find one. Can any one point me to a tutorial that does this very basic effect (even though I say this after playing around for over 2 hours now and I have nothing working).
Fading In Images Over Over Images?
Can anyone help??
I want a have a set of images in one place and have a set of buttons linking the them individually..... when you click on button to reveal the image i want it to fade in, then in turn when you click on the next image i want the new image to fade in over the top of the previous one........
there will be no set order for clicking on the images so I cant do in in a sequence?
anybody have any good flash brains to sort this problem out simply?
Its been bugging me for ages to come up with a good solution!?
cheers!
Images Overpowering Other Images
Quick question - How do I make an image so that it appears on TOP of other images? I'm trying to write text on top of an image during a movie but the text doesn't show.
Replace Images With Other Images
Hi,
I have a movie clip which essentially contains an image. And each time someone rolls over the image I'd like to replace that image with another image in the same spot. So I tried making the image a movie clip and on rollover I removedMovieClip and then I attached the new movie. The only partially works. I am forced to change the name of the movieclip instance each time. That is if have an image called img(instance name) then I do a holder.img.removeMovieClip() and I am not able to holder.attachMovie(Image3,img,depth), but I can holder.attachMovie(Image3, img1,depth). That is if I change the instance name it works. Now if I want my movie to keep running and everyTime there was a mouse Over, then my instance names would keep growing tremendously. Is there an easier way of doing this? Any suggestions would be appreciated.
Thanks.
HELP, Me Pan My Images
I am trying to duplicate a navigation technique I ahve seen before, but most recently at Hummer.com.Click on either enter or the vehicle itself, then "H2 Suv", then "Images". The buttons at the bottom when clicked make the images pan back and forth until the proper enlarged image appears. How is this done, how do the buttons tell the movie to move back or forth and when to stop in this case.
please help.....
hacegray
Images
ok I'm having some trouble here.
I import my image and I want to delete something of it but I can't....is it possible to delete the things I don't want in my image?...or is it possible to preserve transperency in my images I copied from a layer?
Hope I make myself clear
Thanks
Images In .FLA But Not .SWF Or .EXE
I'm part way finished with a new Flash Movie and have published it. The weird thing is, images that appear in the .FLA, do not appear in the .SWF or .EXE. I go back and look at the .FLA nad they are still there.
Any ideas on whats happening and how to fix it?
Thanks,
Rodney
Images
Well first off hi everyone I'm new to these forums and flash which I've been using for 2 days and am finding it quite hard, at least compared to swish.
Well I've made a template for a flash site using infomation windows. One of the windows i want to have a picture gallery in.
I would like to know the best way to go about this.
I was thinking of having lots of thumbnails in the scrollable window which enlarge to fill a portion of the screen when clicked on and downsize when clicked again.
Like I said I'm new and not sure how to go about doing this, any help would be much appreciated.
Help With Images
I can't seem to load an image from a text file.
I am sure this can be done, can someone help me with this?
Thanks
Images And Mcs?
i am using the puzzle slider game (http://www.flashkit.com/movies/Games/Full_Game_Source/Picture_-Shekar_K-5813/index.php) and i need a little help with this idea. Thanks to Senocular i could do what i want with this prog. after i fig. out this one problem.
the puzzle pieces are created (cut) from a image file - so if you change the image then the puzzle pieces change - now how can i make it so that the pieces are cut from a movie clip. Which means instead of from the source being from the image file it should be from the mc?
thanks
Yechiel
PLEASE HELP Images
Please someone help!
My jpg.s are moving ever so slightly from side to side during a simple fade transition. This isn't happening inside on flash....only on playback in a browser.
PLEASE HELP ME!!!
Thanks,
Images..............images............images...... ....
Hello everyone!
I have tried to search for the answer but I can't actually get the answer that I am looking for........
The qusetions is:
How can I dynamically load a thumbnail of each image into a movie clip that can then act as a button. Each image will then open up the bigger picture in another section of the canvas once clicked on.
I know how to load an image using the loadMovie("image1.jpg") using MX, but how can I make each image a button? I would love to be able to do this dynamically, meaning for however many images there are it will load them all up............... i know how to use asp scripting so getting a list of the files in a directory is no problem.
I also know how to open up the bigger image so thats not a problem either.
So does anyone know of any turorials about this or some help.
Images
greetings
i have created a simple image in fireworks. The image is on a transparent background, when i save and import into flash it has a white shadow where the background hasn't become transparent.
the background in flash is fading, so the gif has to be transparent.
i have tried various anti-alias levels.
any ideas.
spider
Images
how do i pull an image to a file from an outside location. i dont want it to be in my library it is in an outside directory. please help
Images
Hi, how can i make my jpegs into thumbnails, and when i do make them into thumnails, and place then in my scene, how can i make it so when somebody clicks the picture, it can be opened BIGGER in a new window?
Images
Hi,
Can anyone tell me what I need to save (or how i need to save) my images as in photoshop so that the background is transparant when I import it into flash.
Basically I have a black Logo in photoshop and i want to import it into flash without the white surrounding it.
Thanks.
Ben
Png Images?
Hi guys
I've been using some PNG images in my website to achieve higher quality 'cutout' images on my site than simple gifs (which sometimes results in jagged edged areas where the image meets the transparency). I read somewhere that many browsers do not support this type of graphic so I'm now panicking! Is this a genuine problem - I thought perhaps flash burns the images into the flash file and the image type only affects such things as file size etc...?advice please!!
cheers
Images
Hi guys,i have to use an image for animation that i created in photoshop,the image is the background for the web site,the problem is that when i import it from photoshop it looks ugly!!!!
sombody told me that the only way is to creat it in Adobe Illustrator,is it the only Way???????the image is bevelled (with style).Thanks a lot in advance
Images.......
whenever i make images on photoshop and copy it into flash it looks fine on the stage but when i test the movie they always look blodgy and the colours all change, how can i fix this??
|