Hey Glen,
Thanks for that, but I am not using a class in this case to get the
items, just a function.
Maybe I should be, but I could never figure out how to use classes
and there may lie-in the problem.
Think Flash 8. :) Sorry if that hurts a little..
Here is what I have //shortened
AS2
Have you tried:
colorBox.addEventListener(change, changeObj);
or
colorBox.addEventListener(change Delegate.create(this, changeObj);
I think you got your listener the wrong way around, but might be wrong?
Karl DeSaulniers wrote:
Hey Glen,
Thanks for that, but I am not using a class in this
Could it be because I am using the class below?
Not sure if I need it or not.
On Nov 20, 2009, at 4:03 AM, Glen Pike wrote:
import mx.controls.ComboBox;
Karl DeSaulniers
Design Drumm
http://designdrumm.com
___
Flashcoders mailing list
Yes. I tried both of those and nothing..
actually the one below gets an error
Error: type mismatch colorBox.addEventListener(change,
Delegate.create(this, changeObj);
Karl
On Nov 20, 2009, at 4:03 AM, Glen Pike wrote:
colorBox.addEventListener(change, Delegate.create(this, changeObj);
I think the scope is lost in the colorBox not knowing which picBox to
associate itself with.
:-/
Karl
On Nov 20, 2009, at 4:16 AM, Karl DeSaulniers wrote:
it is actually colorBox.addEventListener(change, Delegate.create
(this, changeObj));
just forgot the ), but still does not work
On
If I put this code in, I dont get the type mismatch error but it
still doesn't work.
On Nov 20, 2009, at 4:03 AM, Glen Pike wrote:
colorBox.addEventListener(changeObj, Delegate.create(this,change));
Karl DeSaulniers
Design Drumm
http://designdrumm.com
it is actually colorBox.addEventListener(change, Delegate.create
(this, changeObj));
just forgot the ), but still does not work
On Nov 20, 2009, at 4:12 AM, Karl DeSaulniers wrote:
Yes. I tried both of those and nothing..
actually the one below gets an error
Error: type mismatch
Karl DeSaulniers wrote:
If I put this code in, I dont get the type mismatch error but it still
doesn't work.
On Nov 20, 2009, at 4:03 AM, Glen Pike wrote:
colorBox.addEventListener(changeObj, Delegate.create(this,change));
Karl DeSaulniers
Design Drumm
http://designdrumm.com
Hey Glen,
Yes I agree with you on how it should be, but for some reason flash
allows it the other way.
Yes I did try it the way you suggested when I first started working
on it.
That is the text book way. that is why I am puzzled.
I went to the source and the source isn't working. plus the
If you are doing multiple anonymous functions, you might have to use the
naming convention for the combo boxes and picture boxes - if you have
multiple instances of these - so when you get a change event on
combo1, that's associated with picture_box_1, etc?
Karl DeSaulniers wrote:
I think
Right! How to do that though I guess is my main issue.
I cant assign pr to picBox or colorBox.
Karl
On Nov 20, 2009, at 4:43 AM, Glen Pike wrote:
If you are doing multiple anonymous functions, you might have to
use the naming convention for the combo boxes and picture boxes -
if you have
Do I need to be using
colorBox.handleEvent();
?
Karl
On Nov 20, 2009, at 4:39 AM, Karl DeSaulniers wrote:
Hey Glen,
Yes I agree with you on how it should be, but for some reason flash
allows it the other way.
Yes I did try it the way you suggested when I first started working
on it.
That
I think you can use the _name of the clip to assign pr:
You might even be able to set this as a property on MovieClip as it's
not a closed class...
I am not sure about ComboBox though - try setting a property ID on it
like you do with thumbHolder.
From your code though, I can't work out
Hey Glen,
If it wouldn't be a trouble and I know this may sound odd,
but could you send me a FLA with a combo box in it?
no code, just the component on a blank stage?
I am wondering if its just the combo box component that I have that
isn't working.
Karl
Hi,
Done that...
Glen
Karl DeSaulniers wrote:
Hey Glen,
If it wouldn't be a trouble and I know this may sound odd,
but could you send me a FLA with a combo box in it?
no code, just the component on a blank stage?
I am wondering if its just the combo box component that I have that
Glad to help.
Karl DeSaulniers wrote:
HAHA
Looks like that may be it. It doesn't load the data or label text, but
it tries to call the picture change.
Whoo hoo... well looks like you got me a little closer. Now I have to
set my styles i guess?
Thanks a lot for your input and time.
Karl
HAHA
Looks like that may be it. It doesn't load the data or label text,
but it tries to call the picture change.
Whoo hoo... well looks like you got me a little closer. Now I have to
set my styles i guess?
Thanks a lot for your input and time.
Karl
On Nov 20, 2009, at 6:04 AM, Glen Pike
One last thing.
How do I get the first item in the combo box to show up?
I got the text in the dropdown to show, but nothing in the main.
Yours tested fine from your fla. so did the text??
Karl
On Nov 20, 2009, at 6:23 AM, Glen Pike wrote:
Glad to help.
Karl DeSaulniers wrote:
HAHA
Looks
...but also, I think you created your data provider Colors object with
an empty / dummy row so make sure you are wanting to do that.
Karl DeSaulniers wrote:
One last thing.
How do I get the first item in the combo box to show up?
I got the text in the dropdown to show, but nothing in the main.
I think you can set the selected index or something like that.
Karl DeSaulniers wrote:
One last thing.
How do I get the first item in the combo box to show up?
I got the text in the dropdown to show, but nothing in the main.
Yours tested fine from your fla. so did the text??
Karl
On Nov 20,
Empty data, but not label.
not sure why it doesn't populate in my fla.
it works fine when I publish the fla you sent (test1) and that has
the same code.
Karl
On Nov 20, 2009, at 6:55 AM, Glen Pike wrote:
...but also, I think you created your data provider Colors object
with an empty /
Make sure you are using createClassObject rather than attaching the
FComboBox movie?
Karl DeSaulniers wrote:
Empty data, but not label.
not sure why it doesn't populate in my fla.
it works fine when I publish the fla you sent (test1) and that has the
same code.
Karl
On Nov 20, 2009, at
yes, that I stole from your code. :)
that was part of it. my component was not working with
mx.control.ComboBox.
It is a UI component and not a compiled clip. When I copied your
comboBox to my fla and used
the createClassObject(mx.control.ComboBox it worked except the first
item does not
Are you targeting FP6 - if I set my Publish Settings to that, it does
not select the first item...
Karl DeSaulniers wrote:
yes, that I stole from your code. :)
that was part of it. my component was not working with
mx.control.ComboBox.
It is a UI component and not a compiled clip. When I
no flash 8 and I got it to work with .setFocus(); and setting the
styles.
:)
going to go see if it will work online. I finally figured out how to
get the ID of the parent MC (thumbHolder)
LYK
Karl
On Nov 20, 2009, at 8:07 AM, Glen Pike wrote:
Are you targeting FP6 - if I set my Publish
Well finally got it. Thank you for your help Glen, you put me in the
right direction.
Here's what got it to work finally...
var selectNum:Number;
var num:Number;
var pict:String;
var changeObj:Object = new Object();
Actually this is better.
It checks to see if there are multiple pictures before trying to load
one even if the combobox has more than one selection.
Thanks Barry, thanks Glen.
I'm done. Good night...
var selectNum:Number;
var num:Number;
var pict:String;
Nice one - hometime for me too :)
Karl DeSaulniers wrote:
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
LOL its 11:45 am here.
been up all night..
:P
Karl
On Nov 20, 2009, at 11:37 AM, Glen Pike wrote:
Nice one - hometime for me too :)
Karl DeSaulniers wrote:
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
...@chattyfig.figleaf.com
[mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Karl
DeSaulniers
Sent: Thursday, 19 November 2009 2:28 p.m.
To: Flash Coders List
Subject: Re: [Flashcoders] ComboBox troubles
Oh and this is an AS2 project too.
Karl
Sent from losPhone
On Nov 18, 2009, at 7:22 PM
Hi,
Are you doing something like the following - you need to use the
Delegate.create function to attach scope to your event handlers. I
can't remember if you can pass in the event object or not - try it?
HTH
Glen
import mx.utils.Delegate;
class MyMovieClip extends MovieClip {
private var
Hello List,
Have a little snag on my hands. I am trying to get the value of a
selected comboBox to change the picture of another MC.
My code:
var comboListen = new Object();
comboListen.change = function(evt_obj:Object) {
trace(evt_obj.selectedIndex);
Oh and this is an AS2 project too.
Karl
Sent from losPhone
On Nov 18, 2009, at 7:22 PM, Karl DeSaulniers k...@designdrumm.com
wrote:
Hello List,
Have a little snag on my hands. I am trying to get the value of a
selected comboBox to change the picture of another MC.
My code:
var
);
}
}
colorBox.addEventListener(change, comboListen);
Barry.
-Original Message-
From: flashcoders-boun...@chattyfig.figleaf.com
[mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Karl
DeSaulniers
Sent: Thursday, 19 November 2009 2:28 p.m.
To: Flash Coders List
Subject: Re: [Flashcoders] ComboBox
[mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Karl
DeSaulniers
Sent: Thursday, 19 November 2009 2:28 p.m.
To: Flash Coders List
Subject: Re: [Flashcoders] ComboBox troubles
Oh and this is an AS2 project too.
Karl
Sent from losPhone
On Nov 18, 2009, at 7:22 PM, Karl DeSaulniers k
...@chattyfig.figleaf.com] On Behalf Of Karl
DeSaulniers
Sent: Thursday, 19 November 2009 2:28 p.m.
To: Flash Coders List
Subject: Re: [Flashcoders] ComboBox troubles
Oh and this is an AS2 project too.
Karl
Sent from losPhone
On Nov 18, 2009, at 7:22 PM, Karl DeSaulniers k...@designdrumm.com
wrote:
Hello List
36 matches
Mail list logo