Change Image With Flash
ok, so i have this photo viewer that allows you to change images. i also have an ok button. i want it so that when people click the ok button it puts the image that is currently being viewed onto the html web pagesomewhere and saves a cookie so every time they log in the image is still there.
thank you for looking
FlashKit > Flash Help > Flash General Help
Posted on: 12-16-2006, 08:55 AM
View Complete Forum Thread with Replies
Sponsored Links:
Can Flash Change HTML Bg Image?
I have a flash file that has two different layouts. One for the home page and one for the interior pages. Each layout needs a slightly different background image in the HTML file. Is there a way I can change the background image from Flash with JavaScript or something without needing to open a different HTML page?
View Replies !
View Related
Changed Image, But Dont Know How To Change The Flash
hi everyone,
I am new at flash and i wanted to edit a flash file that i was given.
The only thing i wanted to do was instead of seeing everything left to right, i want to see it right to left.
here are two links to give you an example of what i mean.
what i have now is:
http://gomavrix.com/ofer/flash/0200.html
what i need is:
http://gomavrix.com/flash/0200heb.html
What i am trying to do is:
1. Placing the camera to the right where the people are walking.
2. The 3 large pictures need to come from left to right to thier place.
3. The navigation text is placed correctly, but the animation is now. They are all messed up.
Can anyone help me on this one???
I will be glad to send you the .fla file.
Thanks,
Me
View Replies !
View Related
Can I Dynamically Change An Image In A Flash Movie
i have a database of images and i want to apply a magnifying glass effect to the entire series, idealy i will not have to create a flash movie for each but rather pass some variable somehow that just calls the necessary image out of the database and places itself into the flash movie. Anyone got any ideas?
View Replies !
View Related
Flash 5 - Change Image Possition On(release)
i have a navigation bar that has a box that goes around the last selected link. so, assuming the links range from 'link 1' to 'link 6' (meaning i have six links total), i'd like to make it so that when a person clicks one of the links, the box moves from its previous location to the link they clicked on. sounds simple, right?
i thought so. i just don't know that much about actionscript, and i can't find any particular tutorial that fits my needs. so, i figured i'd come and see what you all had to say about it.
thanks bunches.
-- Cm
View Replies !
View Related
[CS3] How Do I Change The HTML Background Image From Flash?
Hi,
I'm new to the whole forum thing, but i'm running out of ideas of how to resolve this issue.
I've created a transparent flash movie, for a new portfolio website. I've dropped it into an html page with a full bg image (2000x1500) but i want to change the html bg image each time i click on a new area of the flash movie.
Can this be done? I know it requires javascript and actionscript, but as a designer i am having a real hard time trying to find any solutions or understanding any code thats out there.
Please help if you can...
Cheers in advance.
View Replies !
View Related
XML/Flash Slideshow - Change Hyperlink For Each Image?
Hi there,
I'm new to these forums and to Flash in general so my apologies in advance if I leave something important out of my questions. I've used the excellent tutorial at http://www.kirupa.com/developer/mx20..._slideshow.htm to create a slideshow from an XML file generated by PHP/MySQL. I've successfully managed to add a couple extra text fields, but I would also really like to be able to have the viewer directed to a different link depending on what image is clicked. Is this possible? So far, I've only been able to get clicking to open a link by putting the following on the movie:
Code:
on (release){
getURL("http://www.mysite.com/", "_blank");
}
Can anyone give me a pointer as to how I can change that URL with a field from the XML file with the change of image?
View Replies !
View Related
Change Td Background Image With Flash Button
i have a flash file sitting in a html file...
a table td within this html file has the following: <td id="bgTable" style="background: url(images/strip_black.gif)">
i have a button in the flash file, and when it is clicked i want it to change the html td background from images/strip_black.gif to images/strip_white.gif .
does anyone know the correct getURL javascript call to do this???
Thanks and kind rgds!
mitcho
View Replies !
View Related
Flash 8 - Change Image To Black And White And Blur
Hello, I am trying to change an image to black and white plust blur it just a little all at the same time with actionscript. I have an image on the stage name "mc" and 2 buttons. The 1st button changes the picture, the 2nd reverts the picture back to the original state.
The trouble I am having is I cannot get the two filters to work at the same time. I am not what is wrong with it.. I commented the blur part so the color adjust works.
Any ideas??? Here is the my code:
stop();
import flash.filters.BlurFilter;
import flash.filters.BitmapFilter;
import flash.filters.ColorMatrixFilter;
//
var mc:MovieClip;
var blurX:Number = 0;
var blurY:Number = 0;
var quality:Number = 3;
var desaturation:Number = 0;
//
function mcChange() {
this.onEnterFrame = function() {
if (desaturation<=0) {
des = 0.025;
} else if (desaturation>=1) {
delete this.onEnterFrame;
}
desaturation += des;
var fColorMatix:ColorMatrixFilter = new ColorMatrixFilter();
mc.filters = new Array(getDesaturationFilter(desaturation));
//blurX++;
//blurY++;
//var imageBlur:BlurFilter = new BlurFilter(blurX, blurY, quality);
//mc.filters = [imageBlur];
};
}
//
function mcRevert() {
this.onEnterFrame = function() {
if (desaturation<=0) {
des = 0;
delete this.onEnterFrame;
}
desaturation -= des;
mc.filters = new Array(getDesaturationFilter(desaturation));
//blurX--;
//blurY--;
//var imageBlur:BlurFilter = new BlurFilter(blurX, blurY, quality);
//mc.filters = [imageBlur];
};
}
//
function getDesaturationFilter(t:Number):BitmapFilter {
t = t ? t : 1;
var r = 0.212671;
var g = 0.715160;
var b = 0.072169;
return new ColorMatrixFilter([t*r+1-t, t*g, t*b, 0, 0, t*r, t*g+1-t, t*b, 0, 0, t*r, t*g, t*b+1-t, 0, 0, 0, 0, 0, 1, 0]);
}
//
change_btn.onPress = function() {
mcChange();
};
//
revert_btn.onPress = function() {
mcRevert();
};
View Replies !
View Related
Change Image Number Area: XML/Flash Photo Gallery
I'm following the tutorial for the Photo Gallery using Flash and XML, but I'm wondering how I can customise the number area.
I'd like it to be set out like this:
I prefer the layout with the current image number on top of the total image number (rather than the 2 / 4 format).
How can I customise the ActionScript code so that it works in this format (eg: this is set up using two dynamic text boxes- one for each number)
I've been following the tutorial but I'm not sure how to implement this change.
Any help would be greatly appreciated!!
View Replies !
View Related
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
View Replies !
View Related
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
View Replies !
View Related
How Do I Get A Loaded Image To Change Size Into The Next Image
ok, that probably sounded a bit wierd here's a link http://www.ronyshram.com/ what I want to do is something I see a lot but don't understand, you click a thumbnail and an image opens, you click another thumbnail and the image fades but the shape/frame resizes or changes from landscape to portrait to fit the next image when it appears.
any tips or AS ideas would be of great help please.
View Replies !
View Related
[CS4] Mouseover On Image To Change A Different Image Than Itself
Hi,
I am making a page that will have a section to describe the different TLDs (Top Level Domains) out there. I would like to make it so that when the user hovers over the TLD logo a description comes up in the middle of the logos. Please see this image so it makes sense.
I think the best/nicest way to accomplish this will be to use Flash. I have made a few Flash movies but I am really new and have been teaching myself. I'm great at researching and finding code/tutorials on the imternet, so please just point me in the right direction.
Thanks
Ryan
View Replies !
View Related
Image Change On Click.
I just need to kno how to have the image change when u click it, Like the image will be an "A" and when u click it , it will change to a "B". It is gonna be a wheel of fortune game for my school, so when u click the blank square it has to chage to the letter image. THANKS! Please Help..! Im begging!
View Replies !
View Related
Change A Background Image
I basically have 10 pictures in JPEG / or GIF , and want to show the pictures for 5 secs each, then swap to another picture. That's all I really need in the movie, nothing else..
I have imported them into the library,, but beyond that, I'm kinda flustered...
I'm not entirely sure if I shouldn't just use javascript for this, but I would like not to have an annoying 'navigate' sound everytime I want the picture to change...
View Replies !
View Related
Image Animated Change
Might be too ambitious for the likes of me, but worth asking...
I have a jpeg picture of a car (good digital quality mono pic), I would like to animate it in flash changing from this picture to the same picture, but one that's had just the edges highlighted (like a pencil outline of the same pic).
I've currently changed the original pic in fireworks and tried re-inserting it back into flash.
I've converted the image to a symbol to be able to animate - perhaps this is the problem?
I've seen this done on other sites, but am worried the only way to do it is long and tedious.
Any ideas?
Thanks for any help.
View Replies !
View Related
Change Image On Bounce
I've created a sort of droplet of water button that has an elastic bounce that expands on rollover and bounces back to original size on rollout. Pretty simple for those of us who aren't programmers but can download code.
But here is what I'm after now...
when the button is not expanded I want it to look like a droplet of water without an image in it and when it expands I want an image to appear in it - preferrably to expand with the button. Then on rollout I want it to go back to the droplet with not image.
I've attached the .fla of where I started. Any direction would be appreciated!
--butch
View Replies !
View Related
Image To Change With Buttons
I have a floor plan and I want my customers to be able to choose the options that are available by checking or clicking a button that will show it on the origanal image.
So if they want to choose more than one option I want them all to show up at the same time or as the click them. And if they decide they don't want an option they can just unclick the button and it will go back.
Can anyone help me? Or even tell me where I can find a tutorial or script on line to do this? I have dream weaver and flash 5.
I attached a sample of what other builders are doing but we don't want the pull down menu we want the buttons that they can pick and choose from.
View Replies !
View Related
Change Image On Hover
Hello all,
First, Hopefully this hasnt been asked before, I would have searched but Im not sure what to call it.
I have a 720X370 flash file with 4 text buttons on the left and an image on the right. Each text button is linked to a different image so when the user hovers over a button the image associated with it slides into place(from the top or bottom) Also, the color of the text buttons should change based on whether its active or not. Finally, after the image slides into place, I want some text to fade in over the image. Im not quite sure how to accomplish this with actionscript. Sorry if this is a long explanation, but any help would be appreciated.TIA.
Also, there are no links attached to the buttons, they simply slide in a new image.
Thanks again.
View Replies !
View Related
Reload And Have The Image Change?
hey all,
i need some input. i put flash down for quite a while and well i guess for me it's not like riding a bike.
listen i need a function that will make the main image of the page change to a new one.
if you know of a tutorial great...if you can lay it out for me here, well that would be really great too.
either way, thanx for the help!
jt
View Replies !
View Related
Image Change On Mouse Over
Hi Guys! Can you help me with this one? Here's what I'm trying to do. Let's say I have a couple buttons. On the other side of the document I have an image. So the question is what do I do to make this image change to another one when I move mouse to another button? For example: when mouse over button#1 - I have image #1, mouse over button#2 - I have image #2
View Replies !
View Related
When I Change An Image, The Other Changes Too, HELP (.fla Inside)
Hey guys, I am having a problem with my Flash file. Whenever I try to change an image, the other image changes as well. I want one image to stay the way it is, and another to be different, but it seems that if I try to change one image, both of them will be identical. How do I go about fixing this? I even tried renaming the instance names.. I'm not sure.
I have attached a source file so you know more clearly what I am talking about. Just swap the image or movie clip with one of your own images and both of them will be the same for some reason.
You can download it here www.wongj.com/helpmx.fla
View Replies !
View Related
Change Image Every 24 Hours
So, I wrote a script that pulls images from a directory using LoadVars and posts them inside the flash ever 20 seconds new image. Now I need to make it every 24 hours. What are my options and solutions for this?
To clarify, I want to have 5 images in a folder named image1, image2, etc and have LoadVars pull image1 today and image2 tomorrow, new image at midnight.
View Replies !
View Related
[F8] Simple Image Change... I Think
I am new to Flash and have searched the forums for the answer to this with no luck.
I have built a basic animated menu which will sit at the top of my website and call pages.
I would like to show different images for each section of my site.
When I release from a button i would like to play certain segments of another movieclip with some basic masking effects to hide the old image and show the new image.
I have my main timeline and two movieclips which reside on the main timeline.
mc_Menu (My Buttons)
mc_Images (My Animated Images)
the images are placed into movieclip mc_Images and that timeline is broken up into layers and segments with different animations and stops at the end of each segment.
Now in mc_Menu I would like to use actionscript on each button to call mc_Images and:
1) tell to to play next frame (mask to hide current image)
2) pass it a number telling it the exact frame to begin playing at.
at the end of each mask animation which hides my image, I want to have a little script which says something like. (gotoandplay(i)) I being the number passed to the movieclip by the button who called it.
Hope this isnt too confusing.
Is this possible ?
Thanks!
View Replies !
View Related
Change Image Size?
I'm trying to be able to create a movieclip of a certain size. Here is the code I'm using. If i take out the xwidth and yheight from everywhere it works but the size is the default size. If I include them, the picture doesn't even show up
Code:
import flash.display.BitmapData;
function showImage(linkageId, xpos, ypos,xwidth,yheight) {
var linkageId :String;
var xpos:Number;
var ypos:Number;
var xwidth:Number;
var yheight:Number;
var myBitmapData:BitmapData = flash.display.BitmapData.loadBitmap(linkageId);
var mc:MovieClip = this.createEmptyMovieClip("mc", this.getNextHighestDepth());
mc._x = xpos;
mc._y = ypos;
mc._width = xwidth;
mc._height = yheight;
mc.attachBitmap(myBitmapData, this.getNextHighestDepth());
}
btn1.onPress = function() {
showImage("andy1", -80,-80,400,300);
};
View Replies !
View Related
Image Timed To Change With AS
Hello fellow flashers,
Its been a while since I've been on here. I used to live here so it feel like going back to visit our old school or something.
Anyway I have a question for you smart types.
I need an image in my flash to change every 30 minutes but as I'm a designer type I would normally just extend the timeline but there is probably a better way with AS.
Can anyone help.
Thanks,
Stef
View Replies !
View Related
Change Object Image
Hi,
I'm new to this forum, as well as ActionScript. I've stumbled into a problem that I just can not seem to solve. I am trying to change the image of an object dynamically by loading an image into flash. I so far have the following code working:
Code:
var myLoader:Loader = new Loader();
var urlReq:URLRequest = new URLRequest("image.png");
myLoader.contentLoaderInfo.addEventListener(Event.COMPLETE, imageLoadComplete);
myLoader.load(urlReq);
function imageLoadComplete(event:Event):void
{
addChild(myLoader);
}
But what I want to happen, is when the image is loaded, I want to change the background of an object (button in this case) to the new loaded image. Is this possible?
Thanks for your help in advance.
Danny.
View Replies !
View Related
Change The LoadClip Image
Hello,
I am trying to change the image being loaded by the loadClip method... here is my code...
Code:
// default settings
this.createEmptyMovieClip("myThumbnailHolder", this.getNextHighestDepth());
myThumbnailHolder._x = 113;
myThumbnailHolder._y = 60;
myThumbnailHolder.createEmptyMovieClip("myThumbnail", myThumbnailHolder.getNextHighestDepth());
var myThumbnailLoader:MovieClipLoader = new MovieClipLoader();
myThumbnailLoader.loadClip(this["image0thumb"], myThumbnailHolder.myThumbnail);
slideShow_mc.specSlides_mc["holder4"].loadMovie(this["image0uri"],slideShow_mc.specSlides_mc.getNextHighestDepth());
desc_text.text = image0desc;
and one of the code on my buttons...
Code:
// function for the up button
up_btn.onRelease = function() {
slideShow_mc.gotoAndPlay("up"+(currImage));
if ((currImage+1)>=totalImages) {
currImage = 0;
} else {
currImage++;
}
desc_text.text = prizes[currImage];
myThumbnailLoader.loadClip(this["image" + currImage + "thumb"], myThumbnailHolder.myThumbnail);
}
What happens is that I can't seem to get the image to change to the new one, and the default image is staying up the whole time. I am sure that this is not a hard problem to fix, but it's been baffling me for a good hour and I'm getting a headache from trying to get it to work... if anyone could give me a hand it would be greatly appreciated...
View Replies !
View Related
Change Image Daily?
I wrote a script that pulls images from a directory using LoadVars and posts them inside the flash ever 20 seconds new image. Now I need to make it every 24 hours. What are my options and solutions for this?
View Replies !
View Related
How To Change An Url Image Into A Variable
hello guys, i need help to change the script below:
theLoader.loadClip("http://domain.com/App_Themes/back_header.gif", _root.tempMC);
into a variable, so if the url changed, the variable changing too.
for example i create
var img_link:BitmapData;
and i want the url to contain this data :
http://domain.com/App_Themes/back_header.gif,
but if the template skin changing to
http://domain.com/App_Themes//back_header.gif
then my variable img_link change to the updated link (or the active theme now).
thanks
View Replies !
View Related
Change A Movieclip Image
Hi -
How do I change the the image of a movieclip ?
I have an image that I made into a movieclip and when I click
on the image I want to change the image of that movieclip.
I have something like this -
my_MC.onRelease = function()
{
// need to change image here
}
Thanks.
View Replies !
View Related
Set Button To Change Image On Over
I have made 8 flash button squares, and on "Over" i made it a "Graphic" so that i could change the "Brightness level" Im not sure if i needed to make it a graphic?
However when i try and set the "Over" to change the Main Pic it doesnt give me the Option unless i set it back from a graphic to a button, but than it makes it flash a hundred times on rollover,
All i really want to do is simply have each button on rollover make the Main pic change, i dont know how to set each button so that on over it does this,
Its been a long time since ive used flash, any help will be much appreciated, the link is here to what i have done so far;
http://www.melbourne-search.com/zelmanlew.htm
View Replies !
View Related
Change Loaded Image To FLV
I have a player that contains a video with synchronized image slides that is controlled through actionscript cue points in an XML file. At certain cue points I want an flv video to play instead of my images and go to frame 3 of my mc and then play the video. The problem is while my play head is going to frame 3, it doesn't show anything (just white), the loadmovie function for my image slides seems to be cover it or something. I tried unloadMovie before showing my flv, but that doesn't seem to work. Any ideas?
Here's what I got:
Code:
this.pathToPics = "slides/";
function clear(){
content.gotoAndStop(1);
}
clear();
function showText(name:String, wholeObject:Object, speed:String){
slides = wholeObject.info.parameters.slide;
trace (slides);
frames = wholeObject.info.parameters.frame;
trace (frames);
// specify the movieclip to load images into
if(wholeObject.info.parameters.format == "img"){
content.loadMovie(this.pathToPics+slides);
}
if(wholeObject.info.parameters.format == "flv"){
content.unloadMovie();
clear();
content.gotoAndStop(wholeObject.info.parameters.frame);
//play video
var playback:mx.video.FLVPlayback;
playback.autoPlay = false;
playback.contentPath = slides;
}
}
function getSize():Object{
return {width:480, height:270};
}
View Replies !
View Related
Change Image On Hover Help.
I have a replay button, and i want the image to change on hover. Can anyone give me the ActionScript for that? If it helps, i have
Code:
stop();
in the frame and
Code:
on(release)
{
gotoandplay("Main", 2);
}
on the picture for the replay.
View Replies !
View Related
How To Change Image Order . . ..
. . in a Flash .fla file? I don't have access to the original images, just the ones within the library. There are 8 images and I'd like to move them around and it appears, that I need to point to the originals in order to do so.
May possibly be my lack of Flash knowledge if there's another way.
Any helps would be appreciated.
Ciao,
HiTekMom
View Replies !
View Related
Smartclip To Change Magnification Of An Image
howdy!
Here is the problem I have:::
1.I need the user to be able to click and hold the mouse and draw a square over a background image.
2. When the user releases the mouse the section of the background image that is highlighted with the square should zoom on that area.
3. When the user presses a key(preferrably spacebar) everything should return back to the normal view (100%).
---this last part is pretty easy, I understand it.
I am pretty new to advanced actionscripting (if this isn't advanced that should tell you how new I am to it!)
Thanks for any advice, tutorials, examples, etc. I can email the code that I have started if needed.
View Replies !
View Related
|