Home Tutorials Forums Articles Blogs Movies Library Employment Press

Go Back   ActionScript.org Forums > Extensions and Plugins > Components

Reply
 
Thread Tools Rate Thread Display Modes
Old 05-17-2012, 03:56 AM   #1
kidsplash
Registered User
 
Join Date: Jul 2009
Posts: 20
Default [AS3] Help with List component linking to particular images

I'm doing a presentation software and I'm trying to link the List component to particular images. I'm still a beginner at AS3.0 so I'll try to be as specific as possible.

label: $500
data: fivehundred
image: 500.png

label: $1000
data: onethousand
image: 1000.png

label: $1500
data: fifteenhundred
image: 1500.png

label: $2000
data: twothousand
image: 2000.png

label: $2500
data: twentyfivehundred
image: 2500.png

label: $3000
data: threethousand
image: 3000.png

label: $3500
data: thirtyfivehundred
image: 3500.png

label: $4000
data: fourthousand
image: 4000.png

If you need me to be more specific, let me know. However, I'm in need for a code.
kidsplash is offline   Reply With Quote
Old 05-17-2012, 04:08 AM   #2
ASWC
Super Moderator
 
ASWC's Avatar
 
Join Date: Dec 2007
Location: Greenville, SC
Posts: 6,514
Default

what do you mean by 'link'? What is supposed to show when selecting an item? Or is the image supposed to show in the item?
__________________
aswebcreations
Super Duper!
ASWC is offline   Reply With Quote
Old 05-17-2012, 03:27 PM   #3
kidsplash
Registered User
 
Join Date: Jul 2009
Posts: 20
Default

If a user selects "$500" in the list, the image "500.png" is supposed to show.
If a user selects "$1000", the image "1000.png" is supposed to show.
If the user selects "$1500", the image "1500.png" is supposed to show.

I know "link" doesn't sound right.
kidsplash is offline   Reply With Quote
Old 05-18-2012, 09:46 AM   #4
Yui
Senior Member
 
Join Date: Jun 2008
Location: Romania
Posts: 162
Default

you could use the List's "change" event to display the image (when you click on a List item, the "change" event is fired and the selectedIndex/selectedItem changes to the new selected value)
Yui is offline   Reply With Quote
Old 05-19-2012, 03:47 AM   #5
kidsplash
Registered User
 
Join Date: Jul 2009
Posts: 20
Default

How do I do that in code? Let me try to be more specific:

In frame 1, I put a list named "MoneyCardList" on the stage. In frame 10, I put a movie clip named "panel" on the stage. Behind a "panel" is supposed to be a "money card". I've used the png's for AS linkage:

$500 (AS linkage: fivehundred)
$1000 (AS linkage: onethousand)
$1500 (AS linkage: fifteenhundred)
$2000 (AS linkage: twothousand)...etc.
kidsplash is offline   Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump


All times are GMT. The time now is 10:04 PM.

///
Follow actionscriptorg on Twitter

 


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2013 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.