Home Tutorials Forums Articles Blogs Movies Library Employment Press
Old 06-15-2008, 09:28 AM   #1
jleong
Registered User
 
Join Date: Mar 2005
Posts: 28
Default combobox issue

Hi, I created a combobox and it's not working while I try to pass the label value to
HTML Code:
Tweener.addTween(air, {x:Math.random()*stage.stageWidth,
				y:Math.random()*stage.stageHeight, time:1,
				rotation:Math.random()*300, onComplete:mover,
				transition:combo.value});
can any1 please teach me how to do it?
Attached Files
File Type: zip Tweener.zip (278.6 KB, 45 views)

Last edited by jleong; 06-15-2008 at 09:33 AM.
jleong is offline   Reply With Quote
Old 06-15-2008, 02:29 PM   #2
jleong
Registered User
 
Join Date: Mar 2005
Posts: 28
Default

Hi, it still not working. help me....

HTML Code:
import caurina.transitions.*;

import fl.controls.ComboBox;
import fl.data.DataProvider;


var trans:String;

cb.dropdownWidth = 125;
cb.width = 125;
cb.prompt = "transition type";

cb.addItem({label:"Linear", data:1});
cb.addItem({label:"easeInSine", data:2});
cb.addItem({label:"easeOutSine", data:3});
cb.addItem({label:"easeInOutSine", data:4});
cb.addItem({label:"SeaseOutInSine", data:5});
cb.addItem({label:"easeInCubic", data:6});
cb.addItem({label:"easeOutCubic", data:7});
cb.addItem({label:"easeInOutCubic", data:8});
cb.addItem({label:"easeOutInCubic", data:9});
cb.addItem({label:"easeInQuint", data:10});
cb.addItem({label:"easeOutQuint", data:11});
cb.addItem({label:"easeInOutQuint", data:12});
cb.addItem({label:"easeOutInQuint", data:13});
cb.addItem({label:"easeInCirc", data:14});
cb.addItem({label:"easeOutCirc", data:15});
cb.addItem({label:"easeInOutCirc", data:16});
cb.addItem({label:"easeOutInCirc", data:17});
cb.addItem({label:"easeInBack", data:18});
cb.addItem({label:"easeOutBack", data:19});
cb.addItem({label:"easeInOutBack", data:20});
cb.addItem({label:"easeOutInBack", data:21});
cb.addItem({label:"easeInQuad", data:22});
cb.addItem({label:"easeOutQuad", data:23});
cb.addItem({label:"easeInOutQuad", data:24});
cb.addItem({label:"easeOutInQuad", data:25});
cb.addItem({label:"easeInQuart", data:26});
cb.addItem({label:"easeOutQuart", data:27});
cb.addItem({label:"easeInOutQuart", data:28});
cb.addItem({label:"easeOutInQuart", data:29});
cb.addItem({label:"easeInExpo", data:30});
cb.addItem({label:"easeOutExpo", data:31});
cb.addItem({label:"easeInOutExpo", data:32});
cb.addItem({label:"easeOutInExpo", data:33});
cb.addItem({label:"easeInElastic", data:34});
cb.addItem({label:"easeOutElastic", data:35});
cb.addItem({label:"easeInOutElastic", data:36});
cb.addItem({label:"easeOutInElastic", data:37});
cb.addItem({label:"easeInBounce", data:38});
cb.addItem({label:"easeOutBounce", data:39});
cb.addItem({label:"easeInOutBounce", data:40});
cb.addItem({label:"easeOutInBounce", data:"easeOutInBounce"});
cb.addEventListener(Event.CHANGE, typeSelected);

function typeSelected(e:Event) {
	trans = (cb.selectedItem.label).toString;
	trace(trans)
	//mover(trans);
}

function mover(/*t:String*/) {
	Tweener.addTween(air, {x:Math.random()*stage.stageWidth,
	y:Math.random()*stage.stageHeight, time:1,
	rotation:Math.random()*300, onComplete:mover(),
	transition:trans});
}
jleong is offline   Reply With Quote
Old 06-15-2008, 02:29 PM   #3
jleong
Registered User
 
Join Date: Mar 2005
Posts: 28
Default

Hi, it still not working. help me....

Code:
import caurina.transitions.*;

import fl.controls.ComboBox;
import fl.data.DataProvider;


var trans:String;

cb.dropdownWidth = 125;
cb.width = 125;
cb.prompt = "transition type";

cb.addItem({label:"Linear", data:1});
cb.addItem({label:"easeInSine", data:2});
cb.addItem({label:"easeOutSine", data:3});
cb.addItem({label:"easeInOutSine", data:4});
cb.addItem({label:"SeaseOutInSine", data:5});
cb.addItem({label:"easeInCubic", data:6});
cb.addItem({label:"easeOutCubic", data:7});
cb.addItem({label:"easeInOutCubic", data:8});
cb.addItem({label:"easeOutInCubic", data:9});
cb.addItem({label:"easeInQuint", data:10});
cb.addItem({label:"easeOutQuint", data:11});
cb.addItem({label:"easeInOutQuint", data:12});
cb.addItem({label:"easeOutInQuint", data:13});
cb.addItem({label:"easeInCirc", data:14});
cb.addItem({label:"easeOutCirc", data:15});
cb.addItem({label:"easeInOutCirc", data:16});
cb.addItem({label:"easeOutInCirc", data:17});
cb.addItem({label:"easeInBack", data:18});
cb.addItem({label:"easeOutBack", data:19});
cb.addItem({label:"easeInOutBack", data:20});
cb.addItem({label:"easeOutInBack", data:21});
cb.addItem({label:"easeInQuad", data:22});
cb.addItem({label:"easeOutQuad", data:23});
cb.addItem({label:"easeInOutQuad", data:24});
cb.addItem({label:"easeOutInQuad", data:25});
cb.addItem({label:"easeInQuart", data:26});
cb.addItem({label:"easeOutQuart", data:27});
cb.addItem({label:"easeInOutQuart", data:28});
cb.addItem({label:"easeOutInQuart", data:29});
cb.addItem({label:"easeInExpo", data:30});
cb.addItem({label:"easeOutExpo", data:31});
cb.addItem({label:"easeInOutExpo", data:32});
cb.addItem({label:"easeOutInExpo", data:33});
cb.addItem({label:"easeInElastic", data:34});
cb.addItem({label:"easeOutElastic", data:35});
cb.addItem({label:"easeInOutElastic", data:36});
cb.addItem({label:"easeOutInElastic", data:37});
cb.addItem({label:"easeInBounce", data:38});
cb.addItem({label:"easeOutBounce", data:39});
cb.addItem({label:"easeInOutBounce", data:40});
cb.addItem({label:"easeOutInBounce", data:"easeOutInBounce"});
cb.addEventListener(Event.CHANGE, typeSelected);

function typeSelected(e:Event) {
	trans = (cb.selectedItem.label).toString;
	trace(trans)
	//mover(trans);
}

function mover(/*t:String*/) {
	Tweener.addTween(air, {x:Math.random()*stage.stageWidth,
	y:Math.random()*stage.stageHeight, time:1,
	rotation:Math.random()*300, onComplete:mover(),
	transition:trans});
}
jleong 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

Similar Threads
Thread Thread Starter Forum Replies Last Post
ComboBox Component Issue donald.graham Components 0 01-28-2008 12:29 PM
comboBox component issue: Flash MX2004 Pro asWarrior Components 1 09-04-2006 09:55 PM
LoadVars Combobox Issue Xman51 Components 3 11-03-2005 04:11 PM
Combobox and Loader Class Issue : ) @ctionscript Components 0 03-31-2004 10:00 AM


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

///
Follow actionscriptorg on Twitter

 


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2014, 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.