ActionScript 2.0 :: Get Buttons To Display Different Image?
Feb 22, 2009my buttons are working and displaying image but cant figure out how to get buttons to display different img
View 2 Repliesmy buttons are working and displaying image but cant figure out how to get buttons to display different img
View 2 Repliesi want to rotate 3D an Image called img1 in Flex. I want to rotate it around y axis 180 degree. I can do this by using 3D effect already built in Flex but i want to do a bit more different. I want during rotating, there's another image called img2 appear on back of img1 (in default case, the image appear on the back is img1) and when rotating finish, the image will be img2.
View 2 Repliesim messing with a movieclip symbol and i want to make a button, what'd i mean on Mouse over display/change this image in this X,Y cords or replace this image, something close to what buttonSymbol does but i want to make it using movieClip symbol...
and i have no idea how to do it.. i started like this:
[Code]....
After browsing for the images, and selecting them. How can I display a preview of the image in the datagrid? I am able to display the file name, file size, but was unable to display the image. Below are the codes I have written, it is not a complete code but just enough to make it understandable.
// variables used
var list:Array = new Array();
var listDP:Array = new Array();
[Code]....
I am using this following code to display images using xml.Everything is working fine for me but i have to add background image or border to the displayed image using function BitmapFileMaterial.
using BitmapData or Bitmap Class but same functionality.
[Code]....
What would you use to create buttons which when pressed load an image in an image area within the same flash document?
View 1 RepliesI'm trying to create a movie clip with images that will slide from one image to another using next and previous buttons. I want a sliding effect. For example on this site: [URL] The right side large image you can slide the image by using the arrows. That's exactly what I want...but in flash.
View 3 RepliesI can't figure out why there is a display problem around the "Green Printing" button. Each of the button is created the same way, using the same graphics. Only this one displays incorrectly when the swf is produced.
[URL]
I have quadruple checked position and all the buttons are correct. No overlap. If you right click and zoom in on the button in question, it looks perfect. only at 100% is the display problem visible and only on that button/area of the flash swf.
I'm having trouble with my site [URL] As you may see, the animation is often all mixed up: the buttons do not take the user to the proper frame, the frames and buttons do not display or just partially... Sometimes everything goes back to normal when I empty the cache and/or refresh the page and click repeatedly on random buttons, but not always, and not for long. I don't know, it just happens somehow randomly, especially when I upload the swf file again to update the site. I understand it has something to do with the flash file itself and having to insert some code somewhere,
View 4 RepliesI have a total of 5 separate buttons in my flash document. I want to have a user to be able to click the button and have it display some sort of text near the button itself. How do I get the text to stay once a button is clicked and disappear when another button is clicked? I dont want to use the hit method because the text will contain hyperlinks that I want the user to be able to click on.
View 1 RepliesI am creating a website that teaches kids about the about the brain and I am creating a website very familiar to this one, [URL]. I created one flash file and drew the background for where the text will display. Next I created several movie clips for each of the brain parts and I placed an invisible button over each of these movies, e.g., I told the button, "cerebellum_button" to play the movie "cerebellum_mc." which includs text.
I feel that my code is redundant because I am having to create an invisible button for each animated movie clip which plays a movie clips with text. Is there a way that I can centralize all of the text in the project then call it from different buttons? My aim is to have the user roll over the brain part, have it animate, and have it display the text that explains what that brain part does.
cerebellum_button.onRollOver = function(){
cerebellum_mc.gotoAndStop("turnon");
} cerebellum_button.onRollOut = function(){
cerebellum_mc.gotoAndStop("turnoff");
Is it possible to change the language of display for the alert buttons. i.e whether YES,NO, CANCEL can be made to be shown in some language other than english? whether it is possible to the change the button's caption of a alert window based on multilingual operation?
View 2 RepliesI have just started messing around with flash. I am trying to make a very simple website, it has 4 buttons and 4 sets or text. you have home, about, camp and contact. when someone clicks on the text i want the corrent text to display. My code 2.0 :
[Code]...
flash cs3 and im having a problem displaying an image from an external folder using XML. ve created an image holder movie clip on my stage however im not sure what code I need to include to load the image from XML into the holder movie clip.I also have a second image that i want to display in a different movie clip from the same XML code.
View 1 RepliesI'm trying to add the btns in array "but" via stageMc.addChild(section1), but instead of tracing "section1" I get "instance1", and of course stageMc wont advance. I guess what I'm asking, is whats the diff. from a functional standpoint if I embed the clips in flash, or embed them into the stageMc clip via the display list? what am I missing? FYI, this code works, so long as i place the assets on stage myself. But I want to add the btns via the display list, and i can add them, they just instanciate wrong?
[Code]...
i need to display this dynamically generating buttons from xml into moveclip with scrollbar in as3.
var yPlacement:int = 230;
var xPlacement:int = 66;
var distance:int = 100;
var format:TextFormat = new TextFormat();
[code]....
I'm having a hard time wrapping my head around XML, in particular using XML to place an image on the stage.
I've got some code which I've appropriated from a tutorial, which creates a nice XML driven menu - And I would like to adapt it so that when I click on a menu item it displays a JPG (it currently calls up defined labels on my timeline, which is not really what I'm looking for)
I was looking for (lots of XML galleries tutorials, but I couldn't find an easy tutorial to display 1 image)
Here is my XML:
Code:
<?xml version="1.0" encoding="iso-8859-1"?>
<menu>
<menu buttonName = "item 1" />
[Code].....
I would like to know how could I display the same image I loaded (with Loader) twice on the screen. AddChild dont accept repeated instances, what should I do? Copy the Image? Wont that be slow? What if I have the GIFPlayer class, I loaded a gif with it, I want to add it twice on the screen, loading more than once could be slow! What should I do?
View 7 Repliesi need to display an image from an URL on a symbol. ( or in a symbol )
like [URL]
i want it to show up in a symbol so i can do things to it.
i have no idea how to do this even with AS2 but right now i am into AS3..
any 2-3 lines of code out there capable of doing this?
oh yeh, i am asking this because i've been working on video player ( flv video player, finally got it working with AS3 a lot of hard work, because LEE's tutorials are with AS2 and AS3 is soo much different.. )
now i am at a point where i need to display an image on the front so when the user clicks play the image goes away and video beings playing.
i will probably just make the InstanceName.visible = false;
once the ns.play(video); is triggered.
but the real question is, how do i take the image from an URL and make it show up inside instanceName ?
never done this before.
actually i have done something but i never managed to get it to show up inside an instance ( like a square box or something) so i could position it properly.
OK I'm stuck. I can get everything to display that I want to except the image. I keep getting the error: Error #2044: Unhandled IOErrorEvent:. text=Error #2124: Loaded file is an unknown type.
[Code]...
I designed a flash website for realestate client. I have saved my work & the related images in folder named as realestate. I have created buttons in banner part.The client has some big images related to his projects. He said that if a user clicks on the button named as enlarge view etc. The related image should get opened in new window(eg. like when we click on any thumnail image, the related image gets open in new window).So, i need a clear code to display the image in new window without any fuss. So please understand my problem & do reply me as soon as possible.
Note: Do u have Gtalk? This is b'coz i can conversate with u online. Also do give me ur Email ID.
Displaying full image in AS3 App
View 3 RepliesI'm trying to figure out if it's possible to display a specific image based on the current date? for example, say I have something for sale 7 seven days, and I want to create an animation of images with numbers, countdown from 7 to 1, and have it stop on the number of days left.
The only place i've seen something like this is here
on the right side, just above the dark grey bar, a little calendar flash loads in and animates.
i'm having a strange image display problem where i load an external image onto the stage, then at runtime if i put a sprite over part of that image, say a pulldown menu covers the image temporarily, after the sprite goes away the image repaints with a 2 or 3 pixel offset from the uncovered part of the image.this happens regardless of any dpi adjustment in the image or the image format (.jpg, .png, .gif). this happens regardless of whether i load from an external file or from the library.
View 6 RepliesI have this for loop where I am circling through an array. I have swf's for each of the numbers like dropTarget_1.swf, etc. For whatever reason I can't seen to get this loaded into my holder.
When I hard code it then it works.
[Code]....
hello,I created an FLV player using AS3 , and I want to display an image taken from the video instead of the black background is it that possible ?
View 4 RepliesIs there any opensource flash/actionscript code to display an image for x number of seconds.
View 1 RepliesI have a simple aspx web page that includes a flash video. I'd like to replace the video with a jpeg for those browsers that don't support flash. Does anyone know of an example showing how to do this?Here's the flash div from my aspx:
<div id="flash">
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19
[code].....
I can make images transparrent and tween etc. I want to create an animation (like this one), if someone can please help put me in the correct direction? I am not sure how to get the circles animated to get the next image to display.
View 2 RepliesI am trying to allow a user to upload a file and then have this file displayed in Flash.Currently I have:
ActionScript Code:
import flash.net.FileReference;
var progressBar:MovieClip;
[code]....