[flexcoders] NumericStepper and tabIndex

2005-06-03 Thread Richard Butler
Hi All,

Searched and can't find, so here goes :-)

Is there a bug in Flex that doesn't include the NumericStepper in
tabbing? When no tabIndexes are specified on any component, you can tab
to it with no problem. However, when you have for example four
TextInputs at tabIndex 1-4, and a NumericStepper at tabIndex 5, if you
tab past the last TextInput it goes back to tabIndex 1. For example:

mx:Application xmlns:mx=http://www.macromedia.com/2003/mxml;
mx:Form
mx:FormItem label=Tab Index 1
mx:TextInput id=tione tabIndex=1/
/mx:FormItem
mx:FormItem label=Tab Index 2
mx:TextInput id=titwo tabIndex=2/
/mx:FormItem
mx:FormItem label=Tab Index 3
mx:TextInput id=tithree tabIndex=3/
/mx:FormItem
mx:FormItem label=Tab Index 4
mx:TextInput id=tifour tabIndex=4/
/mx:FormItem
mx:FormItem label=Tab Index 5
mx:NumericStepper id=ns tabIndex=5/
/mx:FormItem
/mx:Form
/mx:Application

Any ideas or workarounds?

Cheers,
Rich



 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 





RE: [flexcoders] DateField/DateChooser CellRenderer?

2005-05-26 Thread Richard Butler
Cheers for that guys... Will try both methods and hope for some luck :-)

Rich

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Manish Jethani
Sent: 26 May 2005 18:31
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] DateField/DateChooser CellRenderer?


On 5/26/05, Richard Butler [EMAIL PROTECTED] wrote:

 The reason behind this need is that for a hotel reservation interface 
 I need to block out dates on a calendar for different reasons, and 
 provide a different state accordingly. For example, a date may be 
 completely sold out (signified by a red cross over that date, for 
 example), but another date may not be on sale for the selected special

 offer (signified by a gray cross), etc.
 
 Anyone got any advice on how to approach this?

You can get the x and y positions of the date labels using the following
trick:

?xml version=1.0?
mx:Application xmlns:mx=http://www.macromedia.com/2003/mxml;
  xmlns=*
  mx:DateChooser id=dateChooser /
  mx:Button label=Click Me click=buttonClicked() /
  mx:TextArea id=textArea width=100% height=100% /
  mx:Script
function buttonClicked():Void
{
  for (var p:String in dateChooser.dateGrid)
  {
if (p.slice(0, 8) == dayBlock)
{
  var label:TextField = TextField(dateChooser.dateGrid[p]);
  textArea.text += p +  is at  + label._x + , + label._y +
\n;
}
  }
}
  /mx:Script
/mx:Application

Next, you want to add your red cross symbols to the DateChooser and
position them where you want.


 
Yahoo! Groups Links



 




 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 




RE: [flexcoders] Register a ChangeEvent listener on a static property

2005-05-25 Thread Richard Butler
Laurent,

Your class User must extend UIObject to inherit the method
addEventListener(), unless you create the method yourself...

Cheers
Rich

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Laurent Cornelis
Sent: 25 May 2005 13:21
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Register a ChangeEvent listener on a static
property


Hello,

I have a question: is there a way to register a changeEvent listener on 
a static property ?

For example :

class ModelLocator
{
  [ChangeEvent(userChanged)]
  public static var user : User;
}


class AnotherClass
{

   public function AnotherClass() {
 ModelLocator.user.addEventListener(userChanged, this);
   }

   ...

}

But here, I have this error : There is no method with the name 
'addEventListener'.

Regards,

Laurent Cornelis


 
Yahoo! Groups Links



 





 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 




RE: [flexcoders] Possible to setStyle on the entire application?

2005-05-24 Thread Richard Butler
Jeff,

mx.core.Application.application.setStyle(themeColor, 0xCC) should
give you some joy...

Unfortunately at runtime you can only change one style at a time, so if
you're parsing a stylesheet it can be quite strenuous on the client
machine's processing load, especially if you're changing a style that
affects numerous components...

Cheers,
Rich

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Jeff Steiner
Sent: 24 May 2005 07:10
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Possible to setStyle on the entire
application?


ha

Sorry - I am looking to change them after the app has loaded.

dynamically.

Jeff
- Original Message - 
From: Abdul Qabiz [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Monday, May 23, 2005 10:47 PM
Subject: RE: [flexcoders] Possible to setStyle on the entire
application?


 Jeff,
 
 You can change the themeColor of entier app like this:
 
 mx:Application themeColor=0xFF ..
 
 ..
 
 /mx:Application
 
 
 -abdul
 
  
 
 -Original Message-
 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] 
 On Behalf Of Jeff Steiner
 Sent: Tuesday, May 24, 2005 11:00 AM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Possible to setStyle on the entire application?
 
 Without using a setStyle for every single element in an app, is it 
 possible to change the theme-color of an application on the fly?
 
 Thanks,
 Jeff
 http://www.flexauthority.com
 
 
 
  
 Yahoo! Groups Links
 
 
 
  
 
 
 
 
  
 Yahoo! Groups Links
 
 
 
  
 
 


 
Yahoo! Groups Links



 





 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 




RE: [flexcoders] Making a page with a video clip

2005-05-24 Thread Richard Butler
Title: Message





You need Flash MX 2004 Pro and the Flash 
Video Exporter, which you can grab from macromedia.com, which you can then use 
to export movies to FLVsfrom programs such asAfter Effects. Sorenson 
Squeeze is also an exceptional tool for streaming media.

Cheers
Rich

  
  -Original Message-From: 
  flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of 
  [EMAIL PROTECTED]Sent: 24 May 2005 17:17To: 
  flexcoders@yahoogroups.comSubject: [flexcoders] Making a page with 
  a video clip
  One of the sample pages has a clip on it and its written like this
  ?xml version="1.0" encoding="utf-8"?
  
  mx:Application xmlns:mx="http://www.macromedia.com/2003/mxml"
  
   mx:MediaPlayback width="300" height="300" 
  contentPath="../assets/clip.flv" controllerPolicy="on"/
  
  /mx:ApplicationWhat I want to know is does the file 
  that it plays have to be a flv file and if so is there a way to say convert a 
  WMV file to a flv file or to do the same thing with an rm file? If not how do 
  I make a video that is going to be a flv file I mean do I use a camera what do 
  I use? I am asking because video has always impressed me and I want to know 
  how to do it for anything I do in the future involving flex?







Yahoo! Groups Links

To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/
To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.










[flexcoders] Loading CSS dynamically at runtime?

2005-05-23 Thread Richard Butler
Hi all,

Has anyone tried loading in a CSS stylesheet dynamically at runtime, or
know how it could be done? The only way I can think of is using the good
old Flash way using TextField.StyleSheet's parseCSS() and then doing a
few loops, but is there a more up-to-date method within Flex?

I understand the mx:Style tag will only let you import at compile
time, is that correct?

Cheers guys.
Rich

-
Richard Butler.
Senior Creative Architect.

Monochrome.
Upper Floor
164a Portsmouth Road
Cobham
Surrey KT11 1HS.

Free: 08000 199 742
Tel: +44 (0) 1932 862 874 
Fax: +44 (0) 1932 866 065 

www.monochrome.co.uk



 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 




RE: [flexcoders] Re: Loading CSS dynamically at runtime?

2005-05-23 Thread Richard Butler
Benjamin,

Create a class (cssl) with a TextField.StyleSheet (tss) attached and
utilise its load() or parseCSS() method. Then loop through the CSS style
objects created within tss using _css or _style properties (ugly but
there doesn't seem to be a function to get these out). For each of these
style selector objects, create a CSSStyleDeclaration() at
_global.styles[styleName] level and use setStyle() to set each property.

I haven't tested it in-depth yet but it seems to work for most CSS
styles I've tried.

Cheers,
Rich


-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Benjamin Dobler
Sent: 23 May 2005 16:13
To: flexcoders@yahoogroups.com
Subject: AW: [flexcoders] Re: Loading CSS dynamically at runtime?




 I spent an hour or two writing a class that seems to do the trick 
 using a combination of TextField.StyleSheet and CSSStyleDeclaration - 
 it can be done... :-)
 

I would be extremely interested in your approach!





 
Yahoo! Groups Links



 




 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 




[flexcoders] Flex as a Windows Service?

2005-05-20 Thread Richard Butler
Hi all,

This may be a dumb question, so forgive me, but is it possible to run
Flex as a Windows Service? The DOS window thing seems a nasty way of
running it, or maybe that's just us...

Cheers,
Rich


--

Richard Butler.
Monochrome.
Upper Floor 164a Portsmouth Road Cobham Surrey KT11 1HS.

Free: 08000 199 742
Tel: +44 (0) 1932 862 874 
Fax: +44 (0) 1932 866 065 

www.monochrome.co.uk



 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/