ActionScript 3.0 :: Portfolio - How To Get Images As Buttons And Set TextField

Feb 4, 2009

I'm making a portfolio using XML and AS3. Loading the XML is all fine, I put images in a loader using a for loop. However, I would like these images to be buttons and set a TextField.alpha at 1 when hovering the image. The problem I'm having here, is whenever I hover an image, all the set textfields will show up. How do I change this? I've been trying to put it into an Array with no result.

View 1 Replies


Similar Posts:


ActionScript 3.0 :: Xml Portfolio Multiple Images?

Jun 28, 2009

I kinda got a problem with my xml portfolio image loader. I want to load multiple images and the images have a thumbnail and a big image. loading the thumbnails works, but what do i have to write in the mouse down handler to let it work right? since i really got no idea how to pick the right image :Othis is how my xml file looks like:

Code:
<?xml version="1.0" encoding="UTF-8"?>
<portfolio>

[code]......

View 1 Replies

IDE :: CS4 Buttons - Make A Portfolio

Sep 5, 2009

I'm new to this CS4 world and I can't make my buttons work...I'm trying to make a portfolio. I have a button created named "books". I created a new layer just to insert the AS of that button and to stop the movie clip...the button is inside that movieclip.
Here is what that layer contains:

[Code]...

EDIT I took off the ":void" part and the compiler doesnt show me any errors. But still it doesn't go to the "design" frame.

View 2 Replies

Professional :: Preloader For Portfolio - Stutters On All The Images

Jan 11, 2011

I have created a portfolio with flash using action script 2. But when I click on the button going to the portfolio Scene (containing pictures and tweens) it stutters on all the images when they are first clicked on. As the image increases in size, it is a smooth tween until the one from last frame which it stops then flashes on to the final frame. Is there a way I can preload all the images so that this will not happen? Or anything else I could do?

View 1 Replies

Actionscript 3 :: XML Portfolio Images Stack On Top Of Each Other Instead Of Being Terminated

Feb 13, 2011

i recently started to learn AS3 and i decided to make a portfolio website with it. I am loading the information about the websites i created from an external XML file.Everything its working well but when i load a new picture to the stage the previous picture remains there which in my understanding it shouldn't happen. As i understood from Adobe's AS3 Guide once you create a new instance of a loader, the previous one should be erased.

I've been looking all over the place for a solution but i can't find one that will work. I tried using the .unload class and i tried removeChild as well but it keeps giving me errors.

[Code]...

View 1 Replies

Web Portfolio - Reusing Thumbnail Buttons?

Jun 21, 2009

I am doing a web portfolio with thumbnail buttons that change the pictures. What is the best way to avoid having to make a new button for each new picture thumbnail? So resusing the button but changing the thumbnail picture in it and what picture it links to? Using CS4.

View 1 Replies

ActionScript 3.0 :: Unloader Visible Online - Portfolio Images Don't Appear

Oct 25, 2009

i'm using uiloader to load my portfolio images... and when i test my movie the images appear, but when i put them online they don't... all my site is ok but my portfolio images just don't appear... i don't know if i'm missing some code... here's what i have in my actions layer:

[CODE]...

View 0 Replies

ActionScript 2.0 :: Portfolio With Externally Loaded Images Fading In And Out

Mar 5, 2010

I'm still an amateur at flash (more precisely, actionscript), how to do a simple gallery with static thumbnails which, when clicked, dynamically load an image into an empty movie clip, fading in and out (using actionscript)? By that I mean, click on a thumbnail, main image fades in, click on another thumbnail, loaded image fades out, image of clicked thumbnail fades in. Is it possible? I have successfully achieved thumbnails that load an image externally using both XML and using the ordinary loadMovie function, opting in the end for the loadMovie function and modifying AnaS' [URL] code (some of his comments are still in there). The reasons being that I'm not particularly concerned if I can't use XML for this, but I do want the images to load externally to save space.

I figure that the thumbnails are small enough in file size for me to afford to put them in, but just in case anyone think that XML is better for the job, I'm also including my XML file. On top of AnaS' code, I have added an if-else statement (lines 13-21) but, as I have said before, I'm an amateur, so I can get my head around the 'if' part of the statement, but haven't figured out the 'else' section (namely, the fade out). From what I have seen (I've been looking for the solution for a long time), most people just settle for fading the image either in or out, but rarely both. If there IS a gallery with both fades, it is usually done professionally and the code is either unavailable or goes over my head.

How to click on a thumbnail and load and unload the image using in and out fades. I have seen something which is almost what I need (both fade in and fade out are present) in the form of Kirupa's XML gallery, but I wanted to make mine just the bare essentials and really simple (i.e., no carousel/sliding effects). I just noticed that there is no tutorial for something like this. Kirupa has two very, very good tutorials (the XML portfolio, which is very simple, and the XML gallery with the slide, which is quite advanced) but not an 'in-between' one, such as the one I'm trying to create. [URL]. I have an empty movie clip ('loader') and three thumbnails ('thumb1', 'thumb2' and 'thumb3') on the stage.

My code:
this.onEnterFrame=function() {
if (loader._alpha <100) {
loader._alpha += 5;
} /*else {
if (loader._alpha > 0) {
loader._alpha -= 5;
[Code] .....

View 2 Replies

ActionScript 3.0 :: Getting Errors! Manage To Create A Loader To Load The Images Of Portfolio?

Apr 8, 2010

I'm new in the flash world. I'm trying to set up my website but I keep on getting errors! I manage to create a loader to load the images of my portfolio, first I couldn't remove the previous image, when I loaded the second one, the first one was still there. Now it seems to disappear when I added the line removeChild(loader1). BUT I still get a message in the output panel:

ArgumentError: Error #2025: The supplied DisplayObject must be a child of the caller. at flash.display::DisplayObjectContainer/removeChild() at prueba3_fla::MainTimeline/clickF2()

I don't know if this is going to be a problem in the future or not. I don't have any idea of what this message is talking about

[Code]...

View 16 Replies

ActionScript 3.0 :: Online Photography Portfolio - Scalable Full Screen Images

Jun 7, 2010

I am currently building myself an online photography portfolio. I want scalable full screen photos. The only problem here is, photos are different sizes and landscape/portrait. This is what I have so far. [URL]. If you resize the browser to a different ratio to the landscape image, you see black margins top and bottom. I want the image to always bleed.

This is what I have used:
ActionScript Code:
//resize image function setImageSize():void {
// Portrait image
if (imageLoader.height>imageLoader.width) {
imageLoader.height=stage.stageHeight-thumbBase.height;
imageLoader.scaleX=imageLoader.scaleY;
[Code] .....

For a portrait image, I want to show the margins so I am happy how it is for portrait.

View 3 Replies

ActionScript 3.0 :: Link (code) Swf Pages To Each Other (through Buttons) When Making A Flash Site Or Portfolio?

Nov 2, 2010

how do you link(code) your swf pages to each other (through buttons) when making a flash site or portfolio?

View 5 Replies

ActionScript 2.0 :: Adding Images To A Textfield?

Nov 28, 2006

how to add images to a textfield?

View 5 Replies

ActionScript 2.0 :: Appending Images To Textfield?

Dec 5, 2006

how to append images to a textfield in actionscript.This is how i want it to be: text, image, text, image. I want the image to be on the same line with the text

View 3 Replies

IDE :: Buttons To Change Textfield?

Feb 8, 2009

How can I make a button that, when pressed, changes a textfield (with a scrollbar) to a different textfield (with a scrollbar) in the same place? Essentially (I think), using a button to swap an element and make it fade in or out.

View 3 Replies

Actionscript :: Replace Keywords By Images In TextField

Jul 13, 2011

I have some textfield with text like "Click @button1, then @button2". Have you got any idea how to replace keywords by images ? I must do it in AS2 :/ I know there is htmlText in textField, but useing it I can only use one image, and image can only align left or right site.

View 1 Replies

Actionscript 3.0 :: Tag Doesn't Work On Images In Html Textfield

Apr 14, 2009

I've got some HTML text in my XML which i load in flash. But when i try to use an image as a link using <a href="http://site.com"><img src="img.jpg"></a> nothing happens when i click the image. Links work fine unless the image is wrapped in the "a href"-tag. Anyone know how to solve this?

View 6 Replies

ActionScript 3.0 :: Adding 2 Numbers With One TextField And Four Buttons

Oct 31, 2011

Adding 2 numbers having 3 textfields and a button, I can do. The first textfield for input one, the second one for input two and the third one for output (result). The button triggering the operation. [URL]. How can I add 2 numbers only with one textfield( result) and 4 buttons. One button for number 1, another one for number 2, another one for the operator +, and finally another one for the sign =.

I have the code, how to put everything to work:
import flash.events.Event;
var txt_inp:TextField = new TextField();
txt_inp.type = "input";
txt_inp.x = 168.95;
txt_inp.y = 51.10;
[Code] .....

View 10 Replies

ActionScript 3.0 :: Multiple Buttons Output On The Same Textfield?

Apr 23, 2011

I'm trying to Have multiple buttons that when clicked on, they display a text unique to each button. I don't want it to simply throw a textfield on top of the old one but rather to hide the other text field and insert a new one.

ActionScript Code:
var fl_TF:TextField;
var fl_TextToDisplay:String = "Text 1";
var fl_TextToDisplay2:String = "Text 2";

[code]....

Clicking on 'button', it displays the proper text.Then when I click on 'hider' button, it displays the right text and takes the text from 'button' away.However, the file crashes when I click on 'hider' first. Also, clicking on 'button' a second time doesn't take away the text that 'hider' symbol produces.

View 4 Replies

ActionScript 2.0 :: Changing Text In Textfield With Buttons

Feb 8, 2009

how can I make buttons that change the text inside of a textfield? What coding would need to be used? If you could actually write out one example of a button that changes the text inside of a textfield.

View 3 Replies

ActionScript 3.0 :: Bad Quality Dynamically Loaded Images In HTML TextField

Nov 11, 2008

I have images being dynamically loaded into a html textfield and they look very pixelated. I am able to getImageReference via an id attribute in the <img> tag, but I can't apply smoothing to this DisplayObject because I can't access it's content which is the bitmap. I know the image is loading and I know the reference is working because I can call the id name, I can scale, rotate change the alpha and apply filters. I have tried setting the stage quality to best, but that doesn't make a difference. If I do an addChild(loadedObject) as a test, the image is loaded (not in the text field) and looks beautiful no pixelation at all.

Here is the error I am getting:
1119: Access of possibly undefined property content through a reference with static type flash.display: DisplayObject.

Here is the code:
ActionScript Code:
var loadedObject:DisplayObject = testText_4.getImageReference('image_mc');
var myBitmapData:BitmapData = Bitmap(loadedObject.content).bitmapData.clone();

View 2 Replies

ActionScript 3.0 :: Remove A Dynamic Textfield When I Click One Of 2 Buttons Which Moves To Another Frame?

Nov 11, 2009

I am trying to remove a dynamic textfield when I click one of 2 buttons which moves to another frame.I can't seem to get it off the screen. removeChild works but it removes it totally and its not there when its suppose to be.

View 4 Replies

Images Imported With Xml Be Used As Buttons?

Apr 10, 2011

I'm putting together a website in Flash CS4, and my Actionscript knowledge is pretty minimal. The site has a portfolio section with a scrollbar, which I modified from a downloadable example I found here: http:[url]...The prewritten code uses xml to import the thumbnails into the scrollbar- all of this is fine and working beautifully so far. What I'd like to do is to have each thumbnail act as a button, so that when clicked, you jump to another page/frame on the timeline. I see that it's very straightforward to either open a 'full' image or to go have the thumbnail take you to an html page, but is there a command that can go into the xml text that will simply take you to another spot on the timeline?

View 3 Replies

Actionscript 3 :: Using PNG/GIF Images As Buttons?

Mar 25, 2011

I am trying to use images as buttons (PNG/GIF images as buttons(simple, toggled and multi-state) - Image change on mouse over, normal and pressed) using AS3 only. I tried to search. All I got is to setting icon of a Button.

View 2 Replies

ActionScript 3.0 :: Non-Rectangular Buttons With Images?

Feb 11, 2009

is it possible to create a non-square "button" in flash cs4 programmatically using as3?

Using a xml document, i'm trying to be able to retrieve a png file with transparency, and have said transparent area's be not clickable.

Long story short, I'm creating a map with a bunch of clickable areas. These areas are non-rectangular and I need them to not obscure other area's which would be in their rectangle. I need this to be done programmatically since the area's are going to be dynamic as is the data attached to them.

fyi: I have a fairly good grasp of OOP, so don't be afraid to post up complex instructions.

View 8 Replies

ActionScript 3.0 :: Scrolling Images As Buttons?

Jul 26, 2009

Has anyone got an example of scrolling images as buttons. I been trying to use scrolling images as buttons to access pages on the main timeline but haven't got it to work one bit, plus a lot of the tuts I find aren't for AS3.

View 1 Replies

Random Images Appears But The Buttons Are Missing?

Jan 4, 2010

random images appears but the buttons are missing

View 3 Replies

ActionScript 2.0 :: Rotating Images Connected To Buttons

Mar 2, 2010

I want to create the same effect that is on this website: [URL]. There are four links below the rotating images. when you mouse over each button the image changes. It changes over top of the previous one. When I create this effect, it seems to jump back to the background and then it fades to the image. I want the image to fade over top of whatever image is already there.

I tried using loadMovie and have each image load on top of the other level but the only problem is that once a movie is loaded on top of another you can't call that previous image up again. It's like once you load level 10 over level 5 then level 5 can't be seen again until you refresh the page. Is there a way to just tell it to loadMovie over the current level without actually calling that level?

View 1 Replies

Flex :: Spark Buttons With Embedded Images

Mar 31, 2011

I want to do something like:
Main.mxml
<s:HGroup id="animals">
<s:Button name="dog">Dog Name</s:Button>
<s:Button name="bird">Bird Name</s:Button>
<s:Button name="cat">Cat Name</s:Button>
</s:HGroup>
[Code] .....
Do I have to extend the Button component or how should I proceed?

View 1 Replies

ActionScript 3.0 :: Can Images Imported Into Flash With Xml Be Used As Buttons

Apr 12, 2011

I'm putting together a website in Flash CS4, and my Actionscript knowledge is pretty minimal. The site has a thumbnail section with a scrollbar, which I modified from a downloadable element I found from flashmo dot com (admin won't let me include link). The prewritten code uses xml to import the thumbnails into the scrollbar- all of this is fine and working beautifully so far. What I'd like to do is to have each thumbnail act as a button, so that when clicked, you jump to another page/frame on the timeline. It's very straightforward to either open a 'full' image or to go have the thumbnail take you to an html page (as that's how the code was written, but is there a command that can go into the xml text that will simply take you to another spot on the timeline? The website is going to be entirely in Flash, so URL links don't help me. Is there a simple command I can add into the xml and Actionscript?

This is what the xml looks like, in case that's helpful:

<thumbnail>
<filename>black.png</filename>
<title>Item No. 1 (192 color art)</title>

[Code].....

View 5 Replies

ActionScript 2.0 :: 15 Buttons Load Different Images Into One Border?

Oct 2, 2003

How can i have 15 buttons load different images into one border.When the swf loads picture 1 is loaded. When you click some of the other buttons picture 1 stays into the border. A preloader bar and percent shown up under picture 1. After the preloader and percent bar reaches 100% picture 1 "alpha-fades" out and the picutre correspnding the button you clicked "alpha-fades" in ?

This transissions will happen beetween all the pictures you load.The pictures must be loaded dynamic .

View 2 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved