[flexcoders] Pagable Array Collection help

2007-05-14 Thread kasey.mccurdy
http://www.boyzoid.com/flexdemos/pagableAC/main.html

Scott wrote a great extension to the arrayCollection that allows you
to page through an array collection easily.  However, the addItem()
function that normally works with arrayCollections isnt workin.

since the pageableArrayCollection (see source of the above link)
extends the arrayCollection, shouldnt that method just...work?

just trying to help this out...

thanks for any help



[flexcoders] accordion selected / normal text style

2007-05-02 Thread kasey.mccurdy
ive dugg through the live docs...scoured the web..and to no avail...

does anyone out there know how to change the text style for a selected
accordion panel vs. a non selected one?

i cant seem to find anything ANYWHERE

thanks ya'll.



[flexcoders] Re: When to use Flex???

2007-03-08 Thread kasey.mccurdy
Hey there Allan -- i'll try to throw my 3 cents in, and by all means,
if anyone else has something to add - do so.

basicaly, flex is an application framework...stress the word
"APPLICATION". our strategy on flex has been that if we can consider
it an APPLICATION, we will use flex.  If youre going to do a website
for a danish death metal band, for example...you would probably use
flash, as it's gonna be pretty artistic and not really an
application...just a fancy website.  however, if said danish death
metal band needed a way for their management to update their site and
 add new shows, news, and other 'management' type stuff...flex would
be a great tool to use to construct a content management system, in
conjunction with PHP, java, ruby, whatever

Soreally simplythats how we use flex apps where i work.  thats
not to say you cant make flex look greatbut its mainly for
APPLICATIONS :)

hows that fer redundancy? 

--- In flexcoders@yahoogroups.com, "Jagos, Allan" <[EMAIL PROTECTED]> wrote:
>
> What sites make the most sense to use Flex?
> Internets, Intranets, Extranets?
> Marketing sites about Flex aren't even usually written in Flex so it
> made me wonder what type of site makes sense.
>  
> Thanks.
>  
> 
>   Allan M. Jagos 
>Web Developer   
> 
>Robinson & Cole LLP
>280 Trumbull Street
>Hartford, CT  06103-3597
>Direct (860) 275-8335 | Fax (860) 275-8299  
>[EMAIL PROTECTED] | www.rc.com   
>Contact Card   
> 
> 
>  Boston  New London  Hartford  Stamford  White Plains  New York
> Sarasota 
> 
> __
> This transmittal may be a confidential attorney-client communication
or may otherwise be privileged or confidential. If it is not clear
that you are the intended recipient, you are hereby notified that you
have received this transmittal in error; any review, dissemination,
distribution or copying of this transmittal is strictly prohibited. If
you suspect that you have received this communication in error, please
notify us immediately by telephone at 1-860-275-8200, or e-mail at
[EMAIL PROTECTED] and immediately delete this message and all its attachments.
> __
> This email has been scanned by the MessageLabs Email Security System.
>




[flexcoders] i love flex.

2007-01-18 Thread kasey.mccurdy
i just wanted to say that.  i really think adobe (well, the macromedia
team) has done an amazing job in creating an amazing framework...

and no, im not a macromedia employee.

that is all ... i hope all my fellow flex-coders have an awesome day...



[flexcoders] Re: making an entire hbox item linkable?

2007-01-15 Thread kasey.mccurdy
thanks man -- this worked like a charm -- damn, i hate being a n00b.


--- In flexcoders@yahoogroups.com, "  " <[EMAIL PROTECTED]> wrote:
>
> One solution I can think of is :
> set the "buttonmode" of HBox to "true" and on click open the url.
> 
> buttonMode="true" click="navigateToURL(new URLRequest('www.yahoo.com
> '),'_blank')"
> 
> 
> 
> On 1/12/07, kasey.mccurdy <[EMAIL PROTECTED]> wrote:
> >
> >   im creating a component in actionscript with an HBox inside it,
and i
> > was wondering if anyone has any advice as to the best way to make the
> > entire Hbox (and all its children) linkable...(i want it to go to the
> > url specified when the user clicks the entire item)
> >
> > any help is much appreciated
> >
> >  
> >
>




[flexcoders] Re: making an entire hbox item linkable?

2007-01-13 Thread kasey.mccurdy
yeah, ive seen that -- its not quite what i need...i need to make 
the entire thing clickableit seems the history manager is just 
for enabling the browsers back and forward buttons to work...again, 
i just need to make the entire Hbox clickable

am i missing something?


--- In flexcoders@yahoogroups.com, Tom Chiverton <[EMAIL PROTECTED]> 
wrote:
>
> On Thursday 11 January 2007 22:29, kasey.mccurdy wrote:
> > any help is much appreciated
> 
> Have you seen the HistoryManager ?
> 
> -- 
> Tom Chiverton
> Helping to centrally synthesize unique e-tailers
> 
> 
> 
> This email is sent for and on behalf of Halliwells LLP.
> 
> Halliwells LLP is a limited liability partnership registered in 
England and Wales under registered number OC307980 whose registered 
office address is at St James's Court Brown Street Manchester M2 
2JF.  A list of members is available for inspection at the 
registered office. Any reference to a partner in relation to 
Halliwells LLP means a member of Halliwells LLP. Regulated by the 
Law Society.
> 
> CONFIDENTIALITY
> 
> This email is intended only for the use of the addressee named 
above and may be confidential or legally privileged.  If you are not 
the addressee you must not read it and must not use any information 
contained in nor copy it nor inform any person other than Halliwells 
LLP or the addressee of its existence or contents.  If you have 
received this email in error please delete it and notify Halliwells 
LLP IT Department on 0870 365 8008.
> 
> For more information about Halliwells LLP visit www.halliwells.com.
>




[flexcoders] making an entire hbox item linkable?

2007-01-11 Thread kasey.mccurdy
im creating a component in actionscript with an HBox inside it, and i
was wondering if anyone has any advice as to the best way to make the
entire Hbox (and all its children) linkable...(i want it to go to the
url specified when the user clicks the entire item)

any help is much appreciated



[flexcoders] Re: masking with a sprite

2007-01-11 Thread kasey.mccurdy
I actually JUST found this - hope this helps someone:
http://livedocs.macromedia.com/flex/2/docs/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Parts&file=1855.html

kasey

--- In flexcoders@yahoogroups.com, "Giles Roadnight" <[EMAIL PROTECTED]> wrote:
>
> After doing some digging about I found some discussion on this
mailing list
> saying that you couldn't load a Sprite into a Panel or something
along those
> lines. I changed it to a canvas instead and it's now working fine.
> 
>  
> 
> It seems that the example on livedocs should be updated.
> 
>  
> 
> Giles Roadnight
> 
>   _  
> 
> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
> Behalf Of Giles Roadnight
> Sent: 22 December 2006 00:42
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] masking with a sprite
> 
>  
> 
> Hi
> 
>  
> 
> I am loading swfs from a backend server that are produced by our own
> renderer. If I simply load these swfs into an image the background
colour
> form the swf floods the whoel stag enad makes it impossible to see
anything
> other than the last one to load.
> 
>  
> 
> I need to mask the swfs so we just see what we are supposed to.
> 
>  
> 
> I found an example in the help for the DisplayObject class. It
seemed to do
> everything that I wanted - it used a Sprite, drew a rectangle on it,
added
> it as a child then set it as a mask.
> 
>  
> 
> However when I try this when the addchild function is called saying
that it
> cannot convert the Sprite to a Display object:
> 
>  
> 
> Type Coercion failed: cannot convert flash.display::[EMAIL PROTECTED] to
> mx.core.IUIComponent.
> 
>  
> 
> What am doing wrong? I hope someone can help.
> 
>  
> 
> The example I was looking at is:
> 
>  
> 
> import flash.text.TextField;
> import flash.display.Sprite;
> import flash.events.MouseEvent;
>  
> var tf:TextField = new TextField();
> tf.text = "Lorem ipsum dolor sit amet, consectetur adipisicing elit, " 
> + "sed do eiusmod tempor incididunt ut labore et dolore
magna
> aliqua. "
> tf.selectable = false;
> tf.wordWrap = true;
> tf.width = 150;
> addChild(tf);
>  
> var square:Sprite = new Sprite();
> square.graphics.beginFill(0xFF);
> square.graphics.drawRect(0, 0, 40, 40);
> addChild(square);
>  
> tf.mask = square;
>  
> tf.addEventListener(MouseEvent.MOUSE_DOWN, drag);
> tf.addEventListener(MouseEvent.MOUSE_UP, noDrag);
>  
> function drag(event:MouseEvent):void {
> square.startDrag();
> }
> function noDrag(event:MouseEvent):void {
> square.stopDrag();
> 
> }
> 
>  
> 
> Giles Roadnight
>




[flexcoders] Re: masking with a sprite

2007-01-11 Thread kasey.mccurdy
im running into the same issue myself...can you not load a sprite
ANYWHERE inside a panel, or just in the individual component itself?

i have a component that i can make into whatever i need, but this
component rests within an VBox, which extends panel...

have you found any other fixes?

thanks!
kasey


--- In flexcoders@yahoogroups.com, "Giles Roadnight" <[EMAIL PROTECTED]> wrote:
>
> After doing some digging about I found some discussion on this
mailing list
> saying that you couldn't load a Sprite into a Panel or something
along those
> lines. I changed it to a canvas instead and it's now working fine.
> 
>  
> 
> It seems that the example on livedocs should be updated.
> 
>  
> 
> Giles Roadnight
> 
>   _  
> 
> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
> Behalf Of Giles Roadnight
> Sent: 22 December 2006 00:42
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] masking with a sprite
> 
>  
> 
> Hi
> 
>  
> 
> I am loading swfs from a backend server that are produced by our own
> renderer. If I simply load these swfs into an image the background
colour
> form the swf floods the whoel stag enad makes it impossible to see
anything
> other than the last one to load.
> 
>  
> 
> I need to mask the swfs so we just see what we are supposed to.
> 
>  
> 
> I found an example in the help for the DisplayObject class. It
seemed to do
> everything that I wanted - it used a Sprite, drew a rectangle on it,
added
> it as a child then set it as a mask.
> 
>  
> 
> However when I try this when the addchild function is called saying
that it
> cannot convert the Sprite to a Display object:
> 
>  
> 
> Type Coercion failed: cannot convert flash.display::[EMAIL PROTECTED] to
> mx.core.IUIComponent.
> 
>  
> 
> What am doing wrong? I hope someone can help.
> 
>  
> 
> The example I was looking at is:
> 
>  
> 
> import flash.text.TextField;
> import flash.display.Sprite;
> import flash.events.MouseEvent;
>  
> var tf:TextField = new TextField();
> tf.text = "Lorem ipsum dolor sit amet, consectetur adipisicing elit, " 
> + "sed do eiusmod tempor incididunt ut labore et dolore
magna
> aliqua. "
> tf.selectable = false;
> tf.wordWrap = true;
> tf.width = 150;
> addChild(tf);
>  
> var square:Sprite = new Sprite();
> square.graphics.beginFill(0xFF);
> square.graphics.drawRect(0, 0, 40, 40);
> addChild(square);
>  
> tf.mask = square;
>  
> tf.addEventListener(MouseEvent.MOUSE_DOWN, drag);
> tf.addEventListener(MouseEvent.MOUSE_UP, noDrag);
>  
> function drag(event:MouseEvent):void {
> square.startDrag();
> }
> function noDrag(event:MouseEvent):void {
> square.stopDrag();
> 
> }
> 
>  
> 
> Giles Roadnight
>




[flexcoders] Re: Wrapping multiple text items

2006-12-22 Thread kasey.mccurdy
yeha, methinks that is what im going to have to use.

thanks
--- In flexcoders@yahoogroups.com, "Tracy Spratt" <[EMAIL PROTECTED]> wrote:
>
> Perhaps a TileList might work for you?
> 
> Tracy
> 
>  
> 
> 
> 
> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
> Behalf Of kasey.mccurdy
> Sent: Friday, December 22, 2006 11:05 AM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Wrapping multiple text items
> 
>  
> 
> Hi there -- i have a very very basic question.
> 
> I'm trying to layout 6 text items inside an HBox -- id like them to
> wrap when they get to the edge of the HBox (like CSS floating)...but
> it seems that the 6 text items just go straight out in a line (they
> dont wrap inside the HBox)...my code is as follows:
> 
>  width="212" height="50" verticalScrollPolicy="off"> 
> 
> 
> 
> 
> 
> 
> 
> 
> they end up looking like this:
> Quick prepare beef chicken low-carb vegetarian more...
> 
> i want something like this:
> Quick prepare beef chicken
> low-carb vegetarian more...
> 
> is there a better (or any) way to accomplish what im trying to do?
>




[flexcoders] Wrapping multiple text items

2006-12-22 Thread kasey.mccurdy
Hi there -- i have a very very basic question.

I'm trying to layout 6 text items inside an HBox -- id like them to
wrap when they get to the edge of the HBox (like CSS floating)...but
it seems that the 6 text items just go straight out in a line (they
dont wrap inside the HBox)...my code is as follows:

 








they end up looking like this:
Quick prepare   beef  chicken  low-carb  vegetarian  more...

i want something like this:
Quick prepare  beef  chicken
low-carb  vegetarian  more...

is there a better (or any) way to accomplish what im trying to do?



[flexcoders] Re: Question on TabNavigator

2006-12-22 Thread kasey.mccurdy
Hey there --

to space between the tabs -- there's a property called "horizontalGap"
just try like "10" for exampleplay around with it.
ill look into your other questions


--- In flexcoders@yahoogroups.com, "malik_robinson"
<[EMAIL PROTECTED]> wrote:
>
> Hi
> 
> Few questions that I think should be easy to answer?
> 
> 1. How can I space the tabs up in a tab navigator?  I'd like to have
> space between each tab. They look too scrunched to me at least by
> default.
> 
> 2. I am trying to build an application that has tabbed interface and I
> am wondering is this the way to go about it.
> 
> 3. Is there a way to center the tabs in the middle?  Currently they are
> left aligned by default
> 
> My code is below:
> 
> http://www.adobe.com/2006/mxml";
> layout="absolute" frameRate="60">
> 
>  height="100%" width="100%" backgroundColor="#ee" >
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
>