[flexcoders] Re: Printing Chart

2007-11-22 Thread monkeeeh
Please someone tell me how to print chart! I know that you know.



[flexcoders] Re: Managing States and Cairngorm

2007-11-22 Thread stephen50232
Hi Seb,

Thanks for the reply, I like you idea, it makes sense. If I create an
event which is fired during start up a I can in theory reuse the same
event in the menu I'm creating. All it will be doing is passing the
name of the state to change to.

One thing I will do is when the event is fired during start up I won't
pass a value for the state name, then in my Command I can check for
this value and as it doesn't exist I can call the default state
(Login). Do you think this is a good idea?

Stephen





--- In flexcoders@yahoogroups.com, Sebastian Zarzycki [EMAIL PROTECTED]
wrote:

 I'm fighting with this as well. The idea you've presented fits well
 Cairngorm, the problem is ... this is not really a best a idea. You
need to
 create an Event, then put the desired state string into the event
(where to
 get this string from?), dispatch event, register in front
controller, create
 a command and in command get the data from event and change the
model value
 accordingly. This does not seem like bad, if you just manage single
state.
 Now imagine that you use components and they have their own states.
What's
 more, you would probably want to react on higher level on a state
 broadcaster down below. You need to create as many events/commands
as the
 amount of your components, and what's more : you're inevitably
coupling them
 with cairngorm.
 
 My blueprint would be to have each component managing its own state
in his
 as code. State is bound to component the same way you've described (by
 currentState). Each component has method changeState and probably
exports
 static strings with state names. When the state is changed from
within the
 component, the basic flash event is broadcasted, and you react to it
on the
 level (container) that holds this component as child.
 
 Probably a bit way off your question, anyway :P Generally, for your
needs,
 the solution you presented feels valid to me.
 
 Seb
 
 -Original Message-
 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
 Behalf Of stephen50232
 Sent: Wednesday, November 21, 2007 6:01 PM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Managing States and Cairngorm
 
 Hi,
 
 I'm building a new app using Cairgorm and one of the problems I'm
 having is managing states. 
 My application is set up with a base state which is blank and then two
 other states, one which contains my login screen (called Login) and
 one which contains the main menu (called MainApp). Then all my other
 states are based on the state called MainApp so that they all contain
 the main menu. 
 
 Now when my application starts it should go to the Login state, then
 after logging in the system will load the Welcome state, which is
 based on the MainApp state. So to change between states in my
 Application tag I have set currentState like this:
 
 currentState={model.workflowState}
 
 When my application first starts it should load the Login state as
 default, I set the model.workflowState variable as:
 
 public var workflowState:String = Login;
 
 Will I be able to update the model.workflowState? The way I am
 thinking of doing this is by having an event on all the menu buttons
 which changes model.workflowState to the value of the state, for
 example if the user clicks on the Welcome button, model.workflowState
 is set as Welcome.
 
 Now is this a good way to manage states in a Cairngorm application,
 I'm trying to achieve 2 things, one only have one main menu which is
 used in all states, and two use binding to select the current state.
 
 Is there another way I could do this?
 
 Thanks
 
 Stephen
 
 
 
 --
 Flexcoders Mailing List
 FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
 Search Archives:
http://www.mail-archive.com/flexcoders%40yahoogroups.com 
 Yahoo! Groups Links





Re: [flexcoders] Re: Flex Hierarchy

2007-11-22 Thread Muzak
Use the argument passed to the event handler, that's what it's for.
currentTarget should give you what you need.

   private function init():void {
var c1:Canvas = new Canvas();
addChild(c1);

var c2:Canvas = new Canvas();
c1.addChild(c2);

var c3:Canvas = new Canvas();
c2.addChild(c3);

var c4:Canvas = new Canvas();
c3.addChild(c4);

var ipt:TextInput = new TextInput();
ipt.name = test_input;
ipt.id = test_input;
ipt.addEventListener(Event.ADDED_TO_STAGE,traceInput);
c4.addChild(ipt);
   }
   
   private function traceInput(evt:Event):void {
trace(evt.currentTarget); 
   }


- Original Message - 
From: Rafael Faria [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Thursday, November 22, 2007 6:04 AM
Subject: [flexcoders] Re: Flex Hierarchy


I don't think i'm making myself clear.

The whole point is to get the sbtButton not the parent.

if you create sbtButton dinamically inside a vboxformbutton
(that will be dynamically as well)

this.sbtButton wouldnt work.

Let me try again



--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

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

* Your email settings:
Individual Email | Traditional

* To change settings online go to:
http://groups.yahoo.com/group/flexcoders/join
(Yahoo! ID required)

* To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

* 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] getDefinitionByName and gotoAndPlay

2007-11-22 Thread Matthias Dittgen
That's close to the truth, I think.

As a colleague of mine pointed out, objects on frame1 were already
initialized before the constructor is executed while objects on another
frame need some time (usually 1 frame) to become initialized as well.

So my solution will be to avoid gotoAndStops as much I can and work with
single frame symbols.

Matthias

2007/11/21, Alex Harui [EMAIL PROTECTED]:

I'm pretty sure that gotoandplay just advances the playhead and doesn't
 execute the script on that frame until your script finishes so the widgets
 it creates won't be ready right after the call.


  --

 *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On
 Behalf Of *Matthias Dittgen
 *Sent:* Wednesday, November 21, 2007 8:13 AM
 *To:* flexcoders@yahoogroups.com
 *Subject:* [flexcoders] getDefinitionByName and gotoAndPlay



 Hello,

 I am loading a SWF into my application, which I created in FlashCS3.
 I have exported MovieClips with timeline animation and textfield, etc.
 for AS in my library.

 After loading of the SWF is complete I get the Class like this:
 var MyClass:Class = getDefinitionByName(MyClass) as Class;

 Then I create a MovieClip instance an add it to stage, like this:
 var mc:MovieClip = new MyClass() as MovieClip;
 addChild(mc);

 this works great, but when I want to gotoAndPlay() to another frame an
 change the content of a Textfield there, then the Textfield is null
 and it takes some time (Timer or Enterframe script) to wait for the
 Textfield being not null.

 Can someone imagine why?
 Matthias

  



[flexcoders] alternate style of list

2007-11-22 Thread learner
Hi all,
How can set the alternate styles to list items ?

ex: something like :

.style1{

}


.style2{

}

mx:list id=mylist/

mylist.alternateStyle = [];


RE: [flexcoders] Re: Managing States and Cairngorm

2007-11-22 Thread Sebastian Zarzycki
Not really, unless you can give yourself a good explanation, why you don't
want to pass the value. The default logic for this behavior is a bit too
complicated (if, then). I assume your app is small, but as it grows, you
might be confused what's going on, since there is no clear explanation in
code, that you are switching to Login state. If your Login state is the
default one (starting), remember that you can always refer to it as .
Create a final string APP_DEFAULT_LOGIN_STATE =  and use this constant
even on start - this way you will know what is going on, and there is no
need to create additional check in command's logic.

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of stephen50232
Sent: Thursday, November 22, 2007 10:26 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Managing States and Cairngorm

Hi Seb,

Thanks for the reply, I like you idea, it makes sense. If I create an
event which is fired during start up a I can in theory reuse the same
event in the menu I'm creating. All it will be doing is passing the
name of the state to change to.

One thing I will do is when the event is fired during start up I won't
pass a value for the state name, then in my Command I can check for
this value and as it doesn't exist I can call the default state
(Login). Do you think this is a good idea?

Stephen




[flexcoders] Number Formatter

2007-11-22 Thread jitendra jain
Hi guys

  I have to show percentage field in my datagrid. I used numberFormatter.
But it gives me output i,e .99 instead of 0.99
please help

Thanks,
JJain

   
-
Be a better pen pal. Text or chat with friends inside Yahoo! Mail. See how.

[flexcoders] Another Change Event?

2007-11-22 Thread triggersoftware
I'm writing a Quiz application where the user is automatically
advanced to the next question upon answering the current question.

I'm currently hooking into the CHANGE event on the RadioButtonGroup
object, but this event appears to be fired *before* the component gets
a chance to draw the dot in the relevant RadioButton.  The effect of
this is that the user isn't sure whether or not the Quiz has recorded
her last answer.  

Currently, to achieve the effect I want I'm having to use a timer to
delay the moving on to the next question (see below).  Is there a
better way?


?xml version=1.0 encoding=utf-8?
mx:Application xmlns:mx=http://www.adobe.com/2006/mxml;
layout=vertical

mx:Label text=Reset/
mx:RadioButtonGroup id=grp1 change=reset()/
mx:RadioButton id=button1 group={grp1} label=Click Me! /
mx:RadioButton id=button2 group={grp1} label=Click Me! /
mx:HRule width=100%/

mx:Script
![CDATA[
private function reset():void {
button1.selected = false;
button2.selected = false;
}   
]]
/mx:Script

mx:Label text=Delayed Reset/
mx:RadioButtonGroup id=grp2 change=delayedReset()/
mx:RadioButton id=button3 group={grp2} label=Click Me! /
mx:RadioButton id=button4 group={grp2} label=Click Me! /

mx:Script
![CDATA[
private function delayedReset():void {
var t:Timer = new Timer(1000, 1);
t.addEventListener(TimerEvent.TIMER, 
timerExpired);
t.start();  

}   

private function timerExpired(event:TimerEvent):void {
button3.selected = false;
button4.selected = false;   
}
]]
/mx:Script

/mx:Application




[flexcoders] invalid syntax?

2007-11-22 Thread candysmate
I've just started a new project and have already got a Application
tag has invalid syntax when switching to design mode in Flex 2.01.
The project compiles and runs without error.  Can anyone see the
'blooper' please?  I can't (yet)!

?xml version=1.0 encoding=utf-8?

mx:Application
 xmlns:mx=http://www.adobe.com/2006/mxml;
 layout=absolute
 width=800
 height=600
 

mx:ApplicationControlBar
 x=10
 y=10
 width=780
 height=88
 
 mx:Image source=@Embed(source='/images/spannericon.png')/
/mx:ApplicationControlBar
/mx:Application



Re: [flexcoders] Multi Validation

2007-11-22 Thread Dmitry Kochetov

The best way is to implement custom validation class. Try to extend 
EmailValidator and add your rules, its for email validation question.

Rafael Faria wrote:
 
 
 There is any way to validate one field with 2 or more types of validation?
 
 like
 
 i want a field that needs to be with max length of 30 char and all
 needs to be a number
 
 or i need to validate an email that needs to be maxlenght of 30 (just
 to give an example)
 
 how i would do that... because i have a function that validate each field
 
 something like that..
 it works just fine... but the thing is that one validation REPLACE the
 latest one...
 
 any thoughts?



-- 
Feсi quod potui, faciant meliora potentes
-
http://www.reijii.solartxit.com


[flexcoders] flex commercial componentes

2007-11-22 Thread yourName
Can Any Tell me is their any flex comercial components kit to purcahse..
Plz Send me link and compnay name who is selling componenst..

RE: [flexcoders] How to change application background color dynamically

2007-11-22 Thread Kenneth Sutherland
You want to create a separate css style sheet for each type of user.
Then have a look at the following
http://livedocs.adobe.com/flex/201/html/wwhelp/wwhimpl/common/html/wwhel
p.htm?context=LiveDocs_Book_Partsfile=styles_069_26.html

 

This will let you change the styling of the app at runtime.  So if you
know that the user that just logged in is the manager and your CSS file
for the manager is called 'manager' then you'd do the following - 

StyleManager.loadStyleDeclarations( manager.swf, true );

 

 

Take note that you need to compile the css into a swf. Just right click
the css file in flexbuilder and tick the option 'compile css to swf'

 

Kenneth.

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of girish_ok
Sent: 22 November 2007 07:51
To: flexcoders@yahoogroups.com
Subject: [flexcoders] How to change application background color
dynamically

 

Hi All,

In my project I am loading mxml components based on User Roles and 
Rights. For each mxml component i have used different colors and 
displaying the component in centered screen.

like
If the user= Manager [background color = blue ] I am loading manager 
related component,
If the user= Seller [backgound color = green ] I am loading Seller 
related component and etc.,

My main.mxml application is background is different [default color]
When i load component it should reflect the color [change the 
background color] in main.mxml application. how can i achieve this

 



RE: [flexcoders] Resources included in SWC library

2007-11-22 Thread Gregor Kiddie
I've read about maybe needing to use -include-file but does that mean
we need
to manually create the compile line to include every resource and
there resource bundle file itself?

 

It's not quite as bad as that (though to be honest, compc needs to be
made a lot more user friendly, not everyone uses Flex builder!)

 

You can get away with compiling everything in a directory, so you just
need to be careful what you include, here's an example of what we use.

 

The mappers creates the list of files, which then gets fed into the
compc task.

 

Hope this helps.

 

*Prays someone doesn't see a bug in it!*

 

target name=rsl-common-ui

copy
todir=${build.temp.dir}/foo/bar/common/ui

fileset
dir=${project.actionscript.src.dir}/foo/bar/common/ui/

/copy



copy todir=${build.temp.dir}/assets

fileset
dir=${project.actionscript.src.dir}/foo/bar/assets/

/copy



fileset id=sources dir=${build.temp.dir}

include name=**/*.mxml/

include name=**/*.as/

/fileset



pathconvert property=classes pathsep= 
refid=sources

compositemapper

chainedmapper

globmapper
from=${build.temp.dir}/* to=* handledirsep=true /

mapper
type=package from=*.as to=*/

/chainedmapper

chainedmapper

globmapper
from=${build.temp.dir}/* to=* handledirsep=true /

mapper
type=package from=*.mxml to=*/

/chainedmapper

/compositemapper

/pathconvert



echo message=classes is set to = ${classes}/



compc output=../../../lib/common-ui.swc
include-classes=${classes} directory=false 

source-path
path-element=${build.temp.dir} /

/compc



delete dir=${build.temp.dir} /



/target

 

Gregor Kiddie
Senior Developer
INPS

Tel:   01382 564343

Registered address: The Bread Factory, 1a Broughton Street, London SW8
3QJ

Registered Number: 1788577

Registered in the UK

Visit our Internet Web site at www.inps.co.uk
blocked::http://www.inps.co.uk/ 

The information in this internet email is confidential and is intended
solely for the addressee. Access, copying or re-use of information in it
by anyone else is not authorised. Any views or opinions presented are
solely those of the author and do not necessarily represent those of
INPS or any of its affiliates. If you are not the intended recipient
please contact [EMAIL PROTECTED]



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of nhflexer
Sent: 14 November 2007 18:06
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Resources included in SWC library

 

We are trying to create a SWC library that includes a resource bundle
and related resources. This library is then used by other parts of our
UI as base components. We created a FlexBuilder library project and
when we build there everything is fine. When we try to build using
compc in Ant it seems that the resource bundle and related resources
(images) are not included. How do we get those resources included when
using compc (either as an exec or using the ant tasks)? I've read
about maybe needing to use -include-file but does that mean we need
to manually create the compile line to include every resource and
there resource bundle file itself? Say it isn't so!

 



[flexcoders] Re: Managing States and Cairngorm

2007-11-22 Thread stephen50232
Hi Seb,

Thanks, I've now created a static const in my ModelLocator class which
, is called APP_DEFAULT_STATE, which I'm using to load in the
Application.currentState. So now I can switch between states fine, thanks.

One question though is Cairngorm good with managing states or is it
better suited to using the viewstack to manage how an application looks?

--- In flexcoders@yahoogroups.com, Sebastian Zarzycki [EMAIL PROTECTED]
wrote:

 Not really, unless you can give yourself a good explanation, why you
don't
 want to pass the value. The default logic for this behavior is a bit too
 complicated (if, then). I assume your app is small, but as it grows, you
 might be confused what's going on, since there is no clear
explanation in
 code, that you are switching to Login state. If your Login state is the
 default one (starting), remember that you can always refer to it as .
 Create a final string APP_DEFAULT_LOGIN_STATE =  and use this constant
 even on start - this way you will know what is going on, and there is no
 need to create additional check in command's logic.
 
 -Original Message-
 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
 Behalf Of stephen50232
 Sent: Thursday, November 22, 2007 10:26 AM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Re: Managing States and Cairngorm
 
 Hi Seb,
 
 Thanks for the reply, I like you idea, it makes sense. If I create an
 event which is fired during start up a I can in theory reuse the same
 event in the menu I'm creating. All it will be doing is passing the
 name of the state to change to.
 
 One thing I will do is when the event is fired during start up I won't
 pass a value for the state name, then in my Command I can check for
 this value and as it doesn't exist I can call the default state
 (Login). Do you think this is a good idea?
 
 Stephen





[flexcoders] Re: irregular x-axis intervals on a line chart

2007-11-22 Thread simonjpalmer
dumb question, but how do I post screenshots to flexcoders?

--- In flexcoders@yahoogroups.com, Sunil Bannur [EMAIL PROTECTED] wrote:

 Can you post a screenshot, it would be easier to understand.
 
  
 
 
 
 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
 Behalf Of simonjpalmer
 Sent: Thursday, November 22, 2007 7:27 AM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] irregular x-axis intervals on a line chart
 
  
 
 I have a situation where I am plotting time on the x-axis of a line
 chart and a continuous numeric quantity on the y-axis. The events
 which form the data series do not happen at regular intervals, so the
 gap between them on the x-axis is irregular. I have several series of
 data that exhibit this, each captured on its own irregular schedule. 
 
 If I put this on a line chart and make the x-axis interval regular it
 skews the slope of the line between points and misrepresents the data.
 Worse I end up lining up events which did not happen simultaneously
 and I cannot label the x-axis at all.
 
 If I was doing this in Excel I would create a 2-D scatter plot with
 lines joining the dots. Anyone seen a good example of how to do this
 kind of chart in Flex?





[flexcoders] Re: How to change application background color dynamically

2007-11-22 Thread simonjpalmer
You can also use states on the app...

mx:states
mx:State name=Manager
mx:SetStyle name=backgroundGradientColors value=[#ff0080, #b1c0c7]/
/mx:State
mx:State name=Seller
mx:SetStyle name=backgroundGradientColors value=[#80, #b1c0c7]/
/mx:State
/mx:states

then set the app state once you know what type of user you are dealing
with...

app.currentState = Manager;

--- In flexcoders@yahoogroups.com, Kenneth Sutherland
[EMAIL PROTECTED] wrote:

 You want to create a separate css style sheet for each type of user.
 Then have a look at the following
 http://livedocs.adobe.com/flex/201/html/wwhelp/wwhimpl/common/html/wwhel
 p.htm?context=LiveDocs_Book_Partsfile=styles_069_26.html
 
  
 
 This will let you change the styling of the app at runtime.  So if you
 know that the user that just logged in is the manager and your CSS file
 for the manager is called 'manager' then you'd do the following - 
 
 StyleManager.loadStyleDeclarations( manager.swf, true );
 
  
 
  
 
 Take note that you need to compile the css into a swf. Just right click
 the css file in flexbuilder and tick the option 'compile css to swf'
 
  
 
 Kenneth.
 
  
 
 
 
 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
 Behalf Of girish_ok
 Sent: 22 November 2007 07:51
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] How to change application background color
 dynamically
 
  
 
 Hi All,
 
 In my project I am loading mxml components based on User Roles and 
 Rights. For each mxml component i have used different colors and 
 displaying the component in centered screen.
 
 like
 If the user= Manager [background color = blue ] I am loading manager 
 related component,
 If the user= Seller [backgound color = green ] I am loading Seller 
 related component and etc.,
 
 My main.mxml application is background is different [default color]
 When i load component it should reflect the color [change the 
 background color] in main.mxml application. how can i achieve this





[flexcoders] Custom HTTP service causes Type Coercion failed error on dispatchEvent

2007-11-22 Thread dave_defusion
I have a custom HTTP service, in this service I have done overridden
the dispatchEvent method to enable us to check for and handle any
debug data contained in the HTTP response (as we're using CakePHP on
the backend).

What I'm doing is the following:

override public function dispatchEvent(event:Event):Boolean
{   
var theEvent:Event = event;

if( event.type == ResultEvent.RESULT ) {
theEvent = this.handleCakeResponse( event as ResultEvent ); 
}

return super.dispatchEvent( theEvent );
}

This all works fine, except from when there is a FaultEvent being
dispatched, I get the following error:

TypeError: Error #1034: Type Coercion failed: cannot convert
mx.rpc.events::[EMAIL PROTECTED] to mx.rpc.events.ResultEvent.
at
flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at
com.test.rpc.http::CakeHTTPService/dispatchEvent()[F:\Work\app\com\test\rpc\http\CakeHTTPService.as:63]
at
mx.rpc::AbstractInvoker/http://www.adobe.com/2006/flex/mx/internal::dispatchRpcEvent()[E:\dev\flex_201_borneo\sdk\frameworks\mx\rpc\AbstractInvoker.as:146]
at
mx.rpc::AbstractInvoker/http://www.adobe.com/2006/flex/mx/internal::faultHandler()[E:\dev\flex_201_borneo\sdk\frameworks\mx\rpc\AbstractInvoker.as:195]
at
mx.rpc::Responder/fault()[E:\dev\flex_201_borneo\sdk\frameworks\mx\rpc\Responder.as:56]
at
mx.rpc::AsyncRequest/fault()[E:\dev\flex_201_borneo\sdk\frameworks\mx\rpc\AsyncRequest.as:110]
at
DirectHTTPChannel.as$131::DirectHTTPMessageResponder/securityErrorHandler()[E:\dev\flex_201_borneo\sdk\frameworks\mx\messaging\channels\DirectHTTPChannel.as:368]
at
flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at flash.net::URLLoader/flash.net:URLLoader::redirectEvent()

Note the line 63 in the stack trace refers to the return
super.dispatchEvent( theEvent ); line.

I'm really stuck with this, and now I can't debug an issue that is
occurring as it is trying to dispatch a fault event, which it won't.
Also as the HTTPService isn't released as part of the source code I'm
working blind here so any help would be greatly appreciated.

-D



[flexcoders] Re: Flex+finger sensor+webcam+socket!!

2007-11-22 Thread Bit
Sorry!!
no finger sensor selected anything!
any sugestion?

this is url have any finger sensor?

thx

Bit

--- In flexcoders@yahoogroups.com, thomas_viktil [EMAIL PROTECTED] wrote:

 Hello!
 
 Uhm... I'm not quite sure of what you mean by 'project not finger
 defined', but if you ever need any kind of touch sensors that can talk
 to Flex, you should check out Phidgets.
 http://www.phidgets.com/
 
 regards
 Thomas Viktil
 Onkel Estrup AS
 
 
 --- In flexcoders@yahoogroups.com, Bit sandro_marques@ wrote:
 
  hi Thomas!!
  
  the project not finger defined!!
  the socket message send terminal control access;
  webcam capture picture people;
  
  Control of access to the refectory
  
  I would like to exchange ideas if possible
  
  thx
  
  bit
  
  
  --- In flexcoders@yahoogroups.com, thomas_viktil tviktil@ wrote:
  
   Hello Bit
   
   Flex would work just fine. I have worked on several projects using
   various sensors in combination with Flex.
   
   Can you tell me more about your project? What kind of sensor
(type and
   brand) are you using? What's it all about?
   
   Regards
   Thomas Viktil
   Onkel Estrup AS
   
   
   --- In flexcoders@yahoogroups.com, Bit sandro_marques@ wrote:
   
Hi people,

What you surgerem for this combination?

Flex or not flex?

thx

Bit
   
  
 





Re: [flexcoders] Re: Managing States and Cairngorm

2007-11-22 Thread rattkin
Hi Seb,

Thanks, I've now created a static const in my ModelLocator class which
, is called APP_DEFAULT_STATE, which I'm using to load in the
Application.currentState. So now I can switch between states fine, thanks.

One question though is Cairngorm good with managing states or is it
better suited to using the viewstack to manage how an application looks?

This is hard question. Cairngorm per se don't really force you into any 
particular solution, though creators advocate binding to data model as often as 
you can. This may be perceived as either good and bad. For me it's a bad smell 
since it changes your application into great confusing state machine. 

I'm not sure I'm right but I think they've used ViewStack, since it view can 
bind directly to model data. It seems like either they forget about the 
currentState property and the ability to bind, or have a good reason no to do 
that. 

The choice is up to you.



--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

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

* Your email settings:
Individual Email | Traditional

* To change settings online go to:
http://groups.yahoo.com/group/flexcoders/join
(Yahoo! ID required)

* To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

* 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] Standard list sufficient or custom from ground up?

2007-11-22 Thread DreamCode
Hi!

I need to have some pretty unusual behavior in a list and being fairly
with flex I'm not quite sure of the standard components abilities, so
far I haven't found what I'm looking for.

Here are the requirements:

A number of different item renderers, only one pr list though.
All cells/item have same size.
Never show partial items neither  horizontal/vertical
Ability to say one of the following: NOSCROLL, HSCROLL, VSCROLL or
specific limit on the amount of items in the list.
NOSCROLL also gives the option of the last item being replaced by
[CLICK FOR MORE] item
No scrollbars should be visible, if scroll is available it will be
handled by buttons elsewhere
The list is not of fixed size and should always be filled with items
meaning the tiles/cells needs to fill the available screen real
estate, except if the number of items is below the amount the list has
room for.
BIG lists potentially 1s of items, and although I assume
the item renderer recycling is not completely in the woods I assume
that one could do an even better job if it was specific for a
component this specialized.

Your thoughts are greatly appreciated,,,


-Allan


[flexcoders] Which component for photos?

2007-11-22 Thread premieritalia
Hello i want create an application similar to
http://www.flashloaded.com/flashcomponents/photoflow/
to manage photo.
 
Which component I must use?
thanks 



[flexcoders] Flex CSS

2007-11-22 Thread premieritalia
I've created this css file
 
___
/* CSS file */

#padre { 

background-color: red;

width: 300px;

}

#figlio {

background-color: green;

width: 100%;

}


 
 for my flex application, but the flex builder gives a syntax error.
 
Can you give me an example of css file for flex application please?
 
Thanks 



Re: [flexcoders] flex rich edit control with image support

2007-11-22 Thread DreamCode
I started doing one a while back, but got too busy with other stuff
and I never got back to it, I might consider it if there's enough
demand from the community

You can see a screenshot of how it looks in the skin i made at
http://www.bimlab.net/allan/flexskin.jpg

--a

On Nov 20, 2007 5:39 PM, ohhmaagawd [EMAIL PROTECTED] wrote:




 I was disappointed when I tried out the rich edit control in FB3.  There
 appears to be no image support.

 A google search turned up nothing has anyone improved upon the standard
 Rich Text Control?

 I love the Yahoo Rich Edit
 control(http://developer.yahoo.com/yui/examples/editor/index.html ), it far
 surpasses the flex one... tab works like a rich edit tab should (it
 indents), nice keyboard shortcuts, excellent image support (with resize).
 I'm hoping something equivalent exists in flex-land.

 thanks for any thoughts
 phil
 


Re: [flexcoders] Accessing Components By Dynamically generated IDs

2007-11-22 Thread DreamCode
I think you should be able to constuct the id something like this:

var currentItem:Object = this['hbox' + number]

I assume you know the number of boxes you create.

--Allan

On Nov 21, 2007 11:49 PM, gaurav1146 [EMAIL PROTECTED] wrote:




 Hi,
 I have a component where a user can add text boxes and Combo boxes
 depending on his requirement. For each addition I assign the ids to
 the elements in ascending order. Now I want to read the values from
 each of these textboxes and combo boxes in a for loop. How can I do
 that. I have a structure something like:

 mx:VBox
 mx:HBox id=hbox1
 mx:Textbox id=textbox1/
 mx:ComboBox dataProvider={dp} id=comboBox1
 mx:HBox

 mx:HBox id=hbox2
 mx:Textbox id=textbox2/
 mx:ComboBox dataProvider={dp} id=comboBox2
 mx:HBox
 !--Next HBox would be added here with id=hbox3 and so on --
 mx:Button click=addHbox()
 /mx:VBox

 Had the number of HBoxes been fixed I could access them by
 {hboxId.textboxid.text} but I can't do the same for dynamically
 generated ids. I tried using getChildByName but that was not working
 for me. Is there any function where I can get a component by supplying
 its id(like Javascript's getElementById)?

 TIA,
 Gaurav

 


[flexcoders] Re: Printing Chart

2007-11-22 Thread Mark
Looks like you may be sending it too soon.  Here's my code for a 
barChart that should work for a pie as well.  Try reacranging the 
code a bit and see what happens.  Let us know how it goes.

Mark


public function printSnapshotArea():void {
var printDJob:FlexPrintJob = new FlexPrintJob();
printDJob.printAsBitmap = false;
//
if (printDJob.start()) {
var printSnapViewArea:PrintViewSnapshotByArea = new 
PrintViewSnapshotByArea();
addChild(printSnapViewArea);
printSnapViewArea.width=printDJob.pageWidth;
//
printSnapViewArea.printChart.dataProvider = 
snapHolder.snapViewArea.dataProvider;
//
printDJob.addObject(printSnapViewArea);
removeChild(printSnapViewArea);
}
printDJob.send();
}






--- In flexcoders@yahoogroups.com, monkeeeh [EMAIL PROTECTED] wrote:

 Hi everyone!
 I have problem again.
 Im trying to print piechart. 
 I have custom component (yhteenvetoPrintView) where i have pie 
chart.
 If i add dataprovider from other piechart i dont see piechart. But 
if
 i create static data to yhteenvetoPrintView i can see pie. 
 
 Is printing too fast that piechart dont have time to get data or
 something like that.
 
 Please help!
 
 This is what how I try to print:
 
 var printJob:FlexPrintJob = new FlexPrintJob();
 
 if(printJob.start()) {
 
 
  var yhteenveto:yhteenvetoPrintView = new yhteenvetoPrintView
();
 
  addChild(yhteenveto);
  yhteenveto.saatavuusPie.dataProvider =  
   toimVarmuusPie.dataProvider;
 
  printJob.addObject(yhteenveto);
 
  printJob.send();
 
  removeChild(yhteenveto);
 
 }else{
  return;
 }





Re: [flexcoders] Number Formatter

2007-11-22 Thread Paul Andrews

  - Original Message - 
  From: jitendra jain 
  To: flexcoders@yahoogroups.com 
  Sent: Thursday, November 22, 2007 10:22 AM
  Subject: [flexcoders] Number Formatter


  Hi guys

I have to show percentage field in my datagrid. I used numberFormatter.
  But it gives me output i,e .99 instead of 0.99
  please help

  Thanks,
  JJain


From an old post of mine..

Paul


In case anyone wonders this is my quick and 'easy' workaround (here in 
DataGridColumn labelFunction, using a currency formatter 'valueFormat')..

The currency formatter has the currency symbol deliberately suppressed.

// DataGrid Column labelFunction (using a currency formatter called 
'valueFormat').

private function formatXXX(item:Object, XXX:DataGridColumn):String{
 return (Math.abs(Number(item.XXX))= 
1.0)?valueFormat.format(item.XXX):Number(item.XXX).toFixed(2);
}

   mx:CurrencyFormatter
id=valueFormat
currencySymbol=
decimalSeparatorTo=.
precision=2
thousandsSeparatorTo=,/

Paul

- Original Message - 
From: Paul Andrews [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Friday, October 26, 2007 2:56 AM
Subject: [flexcoders] numeric formatters - a small gripe


 OK, I can always get around this stuff by writing my own formatter or
 extending an existing one, but I naively expect the number and currency
 formatters (say precision 2), to format 0.23 as 0.23 rather than 
 .23.
 Similarly I expect -0.23 to be formatted as -0.23 and not return 
 -.23.

 I know there's ways round this, but I find this formatting default odd. 
 Even
 if it were popular in some quarters (is it?), I'd at least expect the
 classes supplied by Adobe to allow the choice of having the formatter
 generate that leading 0 or not.

 Is it just me that finds this odd? Am I right to expect that zero in front
 of the decimal point?

 Paul


Re: [flexcoders] Re: Managing States and Cairngorm

2007-11-22 Thread Douglas Knudsen
my opinions:
1) Use Flex states for components.  Use viewstacks to manage the
application.  Easy to bind the selectedIndex on your viewstack to a bindable
var in your model.
2) Which framework to use for this is a discussion for a different thread,
it really doesn't pertain to the topic.

DK
On Nov 22, 2007 8:31 AM, [EMAIL PROTECTED] wrote:

 Hi Seb,
 
 Thanks, I've now created a static const in my ModelLocator class which
 , is called APP_DEFAULT_STATE, which I'm using to load in the
 Application.currentState. So now I can switch between states fine,
 thanks.
 
 One question though is Cairngorm good with managing states or is it
 better suited to using the viewstack to manage how an application looks?

 This is hard question. Cairngorm per se don't really force you into any
 particular solution, though creators advocate binding to data model as often
 as you can. This may be perceived as either good and bad. For me it's a bad
 smell since it changes your application into great confusing state machine.

 I'm not sure I'm right but I think they've used ViewStack, since it view
 can bind directly to model data. It seems like either they forget about the
 currentState property and the ability to bind, or have a good reason no to
 do that.

 The choice is up to you.



 --
 Flexcoders Mailing List
 FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
 Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
 Yahoo! Groups Links






-- 
Douglas Knudsen
http://www.cubicleman.com
this is my signature, like it?


Re: [flexcoders] Re: icon path in ActionScript

2007-11-22 Thread Douglas Knudsen
ha, figures this Florida Gator would be ignorant of that Volunteer state.
:D  Johnny Cash is far better in my book anyhoo.

DK

On Nov 22, 2007 12:10 AM, Ben Stucki [EMAIL PROTECTED] wrote:

Hey Douglas,

 Actually, Elvis is in Memphis.
 It's just me and Johnny Cash here in Nashville. :-)

 Ben Stucki
 http://blog.benstucki.net/

  --
 *From*: Douglas Knudsen [EMAIL PROTECTED]
 *Sent*: Wednesday, November 21, 2007 8:36 PM
 *To*: flexcoders@yahoogroups.com
 *Subject*: Re: [flexcoders] Re: icon path in ActionScript

  this approach might work for you
 http://blog.benstucki.net/?p=42
 Elvis ain't the only thing in Nashville, eh?

 DK

 On Nov 21, 2007 11:27 PM, Anzer  [EMAIL PROTECTED] wrote:

  Thanks for the reply.
 
 
 
  But it will not work for me since the icon path is coming from database
  and I can't give a static path.
 
 
 
  I have tried the following code, but that too will give a compile error
 
 
 
   var iconPath:String = assets/ + item.IconFile.toString();
 
 
 
   [Embed(source=iconPath)]
 
   var iconCls:Class;
 
 
 
  Please help
 
  Anz
 



 --
 Douglas Knudsen
 http://www.cubicleman.com
 this is my signature, like it?


  




-- 
Douglas Knudsen
http://www.cubicleman.com
this is my signature, like it?


Re: [flexcoders] Accessing Components By Dynamically generated IDs

2007-11-22 Thread Douglas Knudsen
Or maybe just use a collection to store a reference to each.  Then just loop
over the collection. ???

DK

On Nov 22, 2007 3:35 AM, DreamCode [EMAIL PROTECTED] wrote:

   I think you should be able to constuct the id something like this:

 var currentItem:Object = this['hbox' + number]

 I assume you know the number of boxes you create.

 --Allan


 On Nov 21, 2007 11:49 PM, gaurav1146 [EMAIL 
 PROTECTED]gaurav1146%40gmail.com
 wrote:
 
 
 
 
  Hi,
  I have a component where a user can add text boxes and Combo boxes
  depending on his requirement. For each addition I assign the ids to
  the elements in ascending order. Now I want to read the values from
  each of these textboxes and combo boxes in a for loop. How can I do
  that. I have a structure something like:
 
  mx:VBox
  mx:HBox id=hbox1
  mx:Textbox id=textbox1/
  mx:ComboBox dataProvider={dp} id=comboBox1
  mx:HBox
 
  mx:HBox id=hbox2
  mx:Textbox id=textbox2/
  mx:ComboBox dataProvider={dp} id=comboBox2
  mx:HBox
  !--Next HBox would be added here with id=hbox3 and so on --
  mx:Button click=addHbox()
  /mx:VBox
 
  Had the number of HBoxes been fixed I could access them by
  {hboxId.textboxid.text} but I can't do the same for dynamically
  generated ids. I tried using getChildByName but that was not working
  for me. Is there any function where I can get a component by supplying
  its id(like Javascript's getElementById)?
 
  TIA,
  Gaurav
 
 
  




-- 
Douglas Knudsen
http://www.cubicleman.com
this is my signature, like it?


Re: [flexcoders] Authentication with pin codes and weird behaviour with SecurityException

2007-11-22 Thread Tom Chiverton
On Thursday 22 Nov 2007, Mika Kiljunen wrote:
 LoginCommand all the way up to flex client. It seems that Flex somehow
 swallows all custom exceptions from java LoginCommand and throws it's own

I think that's by design.

 ...And when it comes to normal program flow, I do concider failed
 authentication as a place for an exception. It is true that this could be

It's not failed, it's 'need more info'.

 handled by calling another secure remote method after the login is done to
 check if user needs pin code and handle it from there. But it's a design

We designed a multi-stage login site that work as I described :-)

-- 
Tom Chiverton
Helping to economically e-enable distributed ROI
on: http://thefalken.livejournal.com



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 
Solicitors Regulation Authority.

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 2500.

For more information about Halliwells LLP visit www.halliwells.com.


--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

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

* Your email settings:
Individual Email | Traditional

* To change settings online go to:
http://groups.yahoo.com/group/flexcoders/join
(Yahoo! ID required)

* To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

* 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: irregular x-axis intervals on a line chart

2007-11-22 Thread Tom Chiverton
On Thursday 22 Nov 2007, simonjpalmer wrote:
 dumb question, but how do I post screenshots to flexcoders?

Adobe Share :-)

-- 
Tom Chiverton
Helping to continually brand granular eyeballs
on: http://thefalken.livejournal.com



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 
Solicitors Regulation Authority.

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 2500.

For more information about Halliwells LLP visit www.halliwells.com.


--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

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

* Your email settings:
Individual Email | Traditional

* To change settings online go to:
http://groups.yahoo.com/group/flexcoders/join
(Yahoo! ID required)

* To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

* 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] Tree : disable select as you type

2007-11-22 Thread benoit.kogut
Hello,
Is there a way to disable the select as you type feature of the Tree
component ?

I'm trying to add keyboard shortcuts (Cut / Copy / Paste) on a tree,
using the keyDown event. As soon as I hit the 'c' key (for instance)
the first node whose label begins with a 'c' gets selected : the
selection jumps from one node to another, which is weird.



Re: [flexcoders] Which component for photos?

2007-11-22 Thread Tom Chiverton
On Thursday 22 Nov 2007, premieritalia wrote:
 Hello i want create an application similar to
 http://www.flashloaded.com/flashcomponents/photoflow/
 to manage photo.

You asked yesterday too.

-- 
Tom Chiverton
Helping to centrally revolutionize total e-markets
on: http://thefalken.livejournal.com



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 
Solicitors Regulation Authority.

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 2500.

For more information about Halliwells LLP visit www.halliwells.com.


--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

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

* Your email settings:
Individual Email | Traditional

* To change settings online go to:
http://groups.yahoo.com/group/flexcoders/join
(Yahoo! ID required)

* To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

* 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] HttpService not called the first time

2007-11-22 Thread gers32
Hi,

Components A and B are inside Panels of a ViewStack; they're accessed
via a TabBar.

I define an HttpService within component A.
I call A.HttpService from an action in component B.

When I perform the action in component B, A.HttpService will only get
called if I have PREVIOUSLY visited A... And to top it all off,
A.creationComplete() doesn't get fired either when I visit it, unless
I have PREVIOUSLY performed the action in B !

My problem seems to stem from the order in which these components get
initialized, but this behavior doesn't make sense to me.

Thanks for your help,

Chris. 



RE: [flexcoders] Flex CSS

2007-11-22 Thread Kenneth Sutherland
I've attached a file from scalenine's site (http://www.scalenine.com/)
where you can find out quite a bit about styles, css etc.

Looking at the code snippet (without running it) I'd probably say the
error was with the line width: 100%;

I'd have used width: 100%;

 

Also I believe that background-color works but I use backgroundColor.
E.g. backgroundColor: #869CA7; And you don't need to use 300px, 300
would do just fine (but both work).

 

Kenneth,

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of premieritalia
Sent: 22 November 2007 08:12
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Flex  CSS

 

I've created this css file

___
/* CSS file */

#padre { 

background-color: red;

width: 300px;

}

#figlio {

background-color: green;

width: 100%;

}



for my flex application, but the flex builder gives a syntax error.

Can you give me an example of css file for flex application please?

Thanks 

 

/*
///
//
//  Jukebox theme by Juan Sanchez. Based on instructions from Adobe
//  and inspired by iTunes 7.
//
//  Image  background image from Apple Mac OS X 10.4.
//
///
*/

/*
//--
//  Global
//--
*/

global
{
	backgroundAlpha: 1.0; /* this runs the opacity of nearly every square piece of the components */
	backgroundSize: auto;

	borderColor: #92A0AD;	
	
	fillAlphas: 0.3, 0.3, 0.85, 0.75; /* last pair are for OVER state */
	fillColors: #6C8AA4, #BFD5E8, #5AA0C3, #A8D0E2;
	
	highlightAlphas: 0.08, 0.14; /* use this to control the 'light' cast on the components */

	/* themeColor	*/
	themeColor: #7AA4B9;	
	rollOverColor: #AADEFF;
	selectionColor: #7FCDFE;
	
}

/*
//--
//  AccordionHeader
//--
*/
AccordionHeader
{

	disabledSkin: Embed(source=jukeboxGfx.swf, symbol=AccordionHeader_disabledSkin);
	downSkin: Embed(source=jukeboxGfx.swf, symbol=AccordionHeader_downSkin);
	overSkin: Embed(source=jukeboxGfx.swf, symbol=AccordionHeader_overSkin);
	selectedDisabledSkin: Embed(source=jukeboxGfx.swf, symbol=AccordionHeader_disabledSkin);
	selectedDownSkin: Embed(source=jukeboxGfx.swf, symbol=AccordionHeader_downSkin);
	selectedOverSkin: Embed(source=jukeboxGfx.swf, symbol=AccordionHeader_overSkin);
	selectedUpSkin: Embed(source=jukeboxGfx.swf, symbol=AccordionHeader_selectedSkin);
	upSkin: Embed(source=jukeboxGfx.swf, symbol=AccordionHeader_upSkin);

}

/*
//--
//  Application
//--
*/
Application
{
	backgroundColors: #00,#3f3f3f;
	backgroundImage: Embed(source=itunes7Bg.jpg);
	backgroundSize: 100%;
}

/*
//--
//  Button
//--
*/
Button
{
	disabledSkin: Embed(source=jukeboxGfx.swf, symbol=Button_disabledSkin);
	downSkin: Embed(source=jukeboxGfx.swf, symbol=Button_downSkin);
	overSkin: Embed(source=jukeboxGfx.swf, symbol=Button_overSkin);
	upSkin: Embed(source=jukeboxGfx.swf, symbol=Button_upSkin);
	selectedDisabledSkin: Embed(source=jukeboxGfx.swf, symbol=Button_disabledSkin);
	selectedDownSkin: Embed(source=jukeboxGfx.swf, symbol=Button_upSkin);
	selectedOverSkin: Embed(source=jukeboxGfx.swf, symbol=Button_overSkin);
	selectedUpSkin: Embed(source=jukeboxGfx.swf, symbol=Button_downSkin);
	color: #00;
	textRollOverColor: #00;
	textSelectedColor:#00;
}

/* 
//-- 
//  ButtonBar 
//-- 
*/ 

ButtonBar 
{ 
buttonStyleName: buttonBarButton; 
firstButtonStyleName: firstButtonBarButton; 
lastButtonStyleName: lastButtonBarButton;
}

ToggleButtonBar 
{ 
buttonStyleName: buttonBarButton; 
firstButtonStyleName: firstButtonBarButton; 
lastButtonStyleName: lastButtonBarButton;
}

/* 
//-- 
//  ButtonBarButtons 
//-- 
*/ 

.firstButtonBarButton 
{ 
disabledSkin: Embed(source=jukeboxGfx.swf, symbol=ButtonBar_firstDisabledSkin); 
downSkin: Embed(source=jukeboxGfx.swf, symbol=ButtonBar_firstDownSkin); 
overSkin: Embed(source=jukeboxGfx.swf, symbol=ButtonBar_firstOverSkin); 
selectedDisabledSkin: Embed(source=jukeboxGfx.swf, symbol=ButtonBar_firstSelectedDisabledSkin); 
selectedDownSkin: Embed(source=jukeboxGfx.swf, symbol=ButtonBar_firstSelectedUpSkin); 
selectedOverSkin: Embed(source=jukeboxGfx.swf, symbol=ButtonBar_firstSelectedUpSkin);
selectedUpSkin: Embed(source=jukeboxGfx.swf, symbol=ButtonBar_firstSelectedUpSkin);
upSkin: Embed(source=jukeboxGfx.swf, symbol=ButtonBar_firstUpSkin);
color: #00;
		textRollOverColor: #00;
		textSelectedColor:#00;
}

[flexcoders] Databinding and modellocator

2007-11-22 Thread nxzone
Why databinding is not working? User class in bindable. When I set the
new user, with setUser the fullname in Myapp in not changed.

In User.AS
  public static function setUser(u:User):void{
loggedUser=u;
}
public static function getInstance():User{
if(loggedUser==null){
loggedUser= new User(0,Pas, 
}
return loggedUser;
}
In Myapp.mxml
mx:Button id=btConnectionlabel={User.getInstance().fullname}
 click=openLoginWindow() /




Re: [flexcoders] Real world usage of Flex

2007-11-22 Thread Dave Carabetta
Hi Yoni,

We have a showcase set up to demonstrate some of the solutions we've
delivered to our clients, and there's plenty more on the way.

http://www.cynergysystems.tv/

Hope this helps.

Regards,
Dave.
Cynergy

On Nov 20, 2007 9:28 AM, real_yoni [EMAIL PROTECTED] wrote:






 Hi All,

  I'm looking for real world usage of Flex (other than maps.yahoo.com
  and harley-davidson)? can publish links?

  Thanks,

  p.s.
  I'm not entirely sure that this is the right group to ask this
  question so please refer me to the right one if you can.

  Yoni

  


[flexcoders] radioButton label colour via AS3?

2007-11-22 Thread candysmate
I can set the colour of a radioButton's label with color = #ff
in mxml, but when I try to use the idname.color = #ff; in AS3
Flex 2.01 throws an undefined property error.

How can I change the radioButton label text colour via AS3 please?



RE: [flexcoders] Re: Managing States and Cairngorm

2007-11-22 Thread Sebastian Zarzycki
Can you explain why use viewstacks for application and flex states for
components? How is that different? You can bind currentState of any
component (and application) to bindable var in model. 

 

Seb

 

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Douglas Knudsen
Sent: Thursday, November 22, 2007 4:32 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Re: Managing States and Cairngorm

 

my opinions:
1) Use Flex states for components.  Use viewstacks to manage the
application.  Easy to bind the selectedIndex on your viewstack to a bindable
var in your model. 
2) Which framework to use for this is a discussion for a different thread,
it really doesn't pertain to the topic. 






[flexcoders] Re: On mx.collections and the missing data structures... Set, Map, Queue, etc

2007-11-22 Thread Aldo Bucchi
Are there any plans to improve on this for the next release?

On Nov 20, 2007 2:14 AM, Aldo Bucchi [EMAIL PROTECTED] wrote:
 Hi all,

 I am ripping my hair off trying to figure out whether to create a
 parallel collections framework or somehow extend the current one.
 While sticking to the IList and ICollectionView interfaces provide
 immediate interoperability with the rest of the framework, they
 introduce ambiguity, performance penalties and semantic distortion
 when using it for more complex stuff. ( using a List where a Set is
 needed, no events on dictionary objects, no sequential access
 interface, etc ).

 While trying to implement something like the C++ STL in flash would
 definitely be overkill, I think that the core subset of Java
 collections framework would be definitely nice and feasible.

 It is not hard to retrofit IList to extend ICollection ( or IMultiSet
 ), and to extend the CollectionEvent to support plain membership
 change notifications when applicable.
 I would forget about identity definition ( comparators ) for now and
 stick to simple equality ( == ) in favor of performance and
 simplicity.

 Comments, anyone?

 Thanks,
 Aldo

 --
  Aldo Bucchi 
 +1 858 539 6986
 +56 9 8429 8300
 +56 9 7623 8653
 skype:aldo.bucchi




-- 
 Aldo Bucchi 
+1 858 539 6986
+56 9 8429 8300
+56 9 7623 8653
skype:aldo.bucchi


[flexcoders] ComboBox inside a DataGrid

2007-11-22 Thread arashafrooze
Hi everyone,
I have a datagrid and I'd like to add a comboBox under one of the
columns. Now apparently I have to specify a dataField for my
DataGridColumn, but I want the data for this column to come from my
combo box. How do i do that?
Im pasting a piece of the code here to make more sense:

mx:columns
 mx:DataGridColumn headerText=First Name dataField=first_name
editable=false /

 mx:DataGridColumn headerText=Last Name dataField=last_name
editable=false /

 mx:DataGridColumn headerText=User Name dataField=login
editable=false /

 mx:DataGridColumn headerText=Branch dataField=branch
editable=false /

 mx:DataGridColumn headerText=Role dataField=role

   mx:itemEditor
 mx:Component
   comp:ExtendedComboBox
dataProvider={UserList.modelLocator.roles} dataField=id
labelField=name id=RoleSelector /
 /mx:Component
   /mx:itemEditor

  /mx:DataGridColumn
/mx:columns

I got the extendedComboBox from ben forta's blog at :
http://www.forta.com/blog/index.cfm/2006/11/22/Flex-ComboBox-With-selectedValue-Support

thank you guys,

-A



[flexcoders] Dynamically Setting width of a TextInput control

2007-11-22 Thread simonjpalmer
I am using a TextInput control as an item renderer and I want to set
the width of the control to reflect the size of the text within it. 
The text comes from a property of the data associated with the item
renderer.  I am overriding the set data method in order to set the
text and some stle properties, but I can't figure out how to set the
width of the control.

Any ideas?



[flexcoders] Making a component 'hop' between containers

2007-11-22 Thread Paul Andrews
OK, I'm being lazy and asking for the best approach to this before I give it a 
go.

I have a custom component based on a canvas. Inside the component is a panel. 
Inside the panel is a controlBar.

In the main application I have the custom component (CompA). 

I want to add another custom component  (CompB) inside the controlBar of the 
custom component (CompA).

It seems to me I have three choices:

1) Copy the custom component (CompA) and make a variation of it (CompC) with 
the controlBar populated with CompB (this is probably the path of least 
resistance),
2) Use actionscript to add CompB to the controlBar of CompA dynamically - very 
doable
3) Add the CompB in mxml between the tags for CompA. By default this would give 
me CompB inside CompA, but it won't be in the controlBar. I could then add some 
actionscript to the CompB (or perhaps even CompA) to move CompB into the 
controlBar of CompA.

If the custom component were derived from a panel, rather than a canvas, there 
wouldn't be a problem.

So, what's the best approach to make CompB hop from the canvas of CompA into 
the controlBar inside the panel of CompA?

I might just go with 1), but it's interesting to consider 3)

What a pity we can't extend custom components in mxml..

Paul

[flexcoders] Extending RichTextEditor

2007-11-22 Thread Giles Roadnight
Hi All

I know that Rich Text editor has bene brought up a load of times but
there still doesn't seem to be any decent solution.

I want a basic HTML editor that will allow me to style and lay out
fairly simple text as content for webpages. I want to be able to add
images, re-size them and to be able to add heading tags.

I think I can fake the heading tags by extending the Existing Rich
Text editor and simply appling a large font and a font weight of bold
to text in the internal html text. the get htmlText would re-convert
this to a h1 tag.

For the images I would ideally like to be able to select an image in
teh text field then edit the alt, width, height ect. To do this I need
to be able to get at the images within the field. Does anyone know how
I can do this? I've looked at the children of the textArea and so on
but no sign of any images.

It seems ridiculous that Adobe provide such a poor implentation of
this very useful tool. It's also odd that no one has provided a good
alternative yet.

Thanks

Giles.



[flexcoders] Re: HttpService not called the first time

2007-11-22 Thread per.olesen
Hi,

Maybe you should try setting creationPolicy=all on your TabBar. By
default, it first creates the child components when someone tabs into
it. If you set it to all, all child controls will be created
up-front (which can be expensive, if you have many that are complex).

See:
http://livedocs.adobe.com/flex/201/langref/mx/core/Container.html#creationPolicy


--- In flexcoders@yahoogroups.com, gers32 [EMAIL PROTECTED] wrote:

 Hi,
 
 Components A and B are inside Panels of a ViewStack; they're accessed
 via a TabBar.
 
 I define an HttpService within component A.
 I call A.HttpService from an action in component B.
 
 When I perform the action in component B, A.HttpService will only get
 called if I have PREVIOUSLY visited A... And to top it all off,
 A.creationComplete() doesn't get fired either when I visit it, unless
 I have PREVIOUSLY performed the action in B !
 
 My problem seems to stem from the order in which these components get
 initialized, but this behavior doesn't make sense to me.
 
 Thanks for your help,
 
 Chris.





Re: [flexcoders] Extending RichTextEditor

2007-11-22 Thread Adnan Doric
Well at least Adobe provide something :)

They can't make very complex RTE because it is too complicated and 
people usually want customized components to suit their needs.

Feel free to extend it or make your own from scratch and don't forget to 
share it :)

Adnan


Giles Roadnight wrote:

 Hi All

 I know that Rich Text editor has bene brought up a load of times but
 there still doesn't seem to be any decent solution.

 I want a basic HTML editor that will allow me to style and lay out
 fairly simple text as content for webpages. I want to be able to add
 images, re-size them and to be able to add heading tags.

 I think I can fake the heading tags by extending the Existing Rich
 Text editor and simply appling a large font and a font weight of bold
 to text in the internal html text. the get htmlText would re-convert
 this to a h1 tag.

 For the images I would ideally like to be able to select an image in
 teh text field then edit the alt, width, height ect. To do this I need
 to be able to get at the images within the field. Does anyone know how
 I can do this? I've looked at the children of the textArea and so on
 but no sign of any images.

 It seems ridiculous that Adobe provide such a poor implentation of
 this very useful tool. It's also odd that no one has provided a good
 alternative yet.

 Thanks

 Giles.

  



[flexcoders] Bug in rich text editor invalidate the html text

2007-11-22 Thread danielvlopes
This problem is not really bug, but semantic problem i html text
generated by this comp.

The font size html tag generated by rte use 10 and in flex its ok but
in html text go huge, why adobe don't change to style:font-size or
use size in pixel?
 
This problem invalidate this comp to use in integrations between html
e flex, why the propertie is called htmltext if can't be used in html
documents?

The fix for this problem is showed here:
http://axel.cfwebtools.com/index.cfm/2007/1/19/mxRichTextEditor-issues-Font-Too-Large



Re: [flexcoders] Flex 3 + LiveCycle: Is debugging Java possible?

2007-11-22 Thread Carlos Rovira
We are using eclipse wtp with tomcat and we can debug Flex, java or both at
once

2007/11/21, jamiebadman [EMAIL PROTECTED]:

   Hi,

 Our project is a Flex 3 + LiveCycle 2.5 application and is all built
 under a single project - ie the Flex and Java are contained within a
 single project and can be built entirely from there.

 Nice... except for when we want to debug the Java code (which so far
 has not been necessary since it's been very simple). We can't figure
 out how to do this. There are articles by Farata and others on how
 this can be done but these seem to require the Java in a separate
 project in Eclipse.

 Has anyone managed to accomplish what we're trying to do - and if so,
 would you mind sharing the steps required?

 We're currently using JBoss but if we need to switch to Tomcat,
 Weblogic or JRun for the purposes of debugging this is not a problem.

 Thanks,

 Jamie.

  




-- 
::| Carlos Rovira
::| http://www.carlosrovira.com
::| http://www.madeinflex.com


Re: [flexcoders] Re: Managing States and Cairngorm

2007-11-22 Thread Johannes Nel
puremvc works in flex (its an agnostic framework really) but rising to
cairngorm's defence, the faults with cairngorm are well documented, puremvc
is not as used. puremvc is still a (relatively) new addition, it has its
faults, like those 3 singletns's i care not for an agnostic framework, i
want a framework i like for each enviroment. all this said, puremvc does
test better, has cleaner code, but is not an ideal.

On Nov 21, 2007 4:57 PM, Sebastian Zarzycki  [EMAIL PROTECTED] wrote:

   Can you elaborate a bit more on this? This is in no way starting some
 kind
 of flame. If you claim that such problems are solved easily, can you
 please
 tell us more about it? Since you've apparently used both, some kind of
 comparison would be EXTREMELY appreciated from my side. How does PureMVC
 solves modularity, does it introduce strong coupling, does it use flex
 features (binding, etc), what are drawbacks, how about changing states,
 reusability?

 I know there is a lot of documentation on the site, but I still value the
 experienced user's opinion most.


 -Original Message---
 From: flexcoders@yahoogroups.com flexcoders%40yahoogroups.com [mailto:
 flexcoders@yahoogroups.com flexcoders%40yahoogroups.com] On
 Behalf Of tomeuchre
 Sent: Wednesday, November 21, 2007 10:15 PM
 To: flexcoders@yahoogroups.com flexcoders%40yahoogroups.com
 Subject: [flexcoders] Re: Managing States and Cairngorm

 --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com,
 Sebastian Zarzycki [EMAIL PROTECTED]
 wrote:
 
  I'm fighting with this as well.

 I switched from Cairngorm to PureMVC and never looked back. It is so
 much easier, logical and re-usable, and little things like this never
 pop up anymore.
 I'll never go back...


 --
 Flexcoders Mailing List
 FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
 Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
 Yahoo! Groups Links

  




-- 
j:pn
\\no comment


[flexcoders] has anyone written an arrowhead edge renderer for the springggraph?

2007-11-22 Thread simonjpalmer
I want some of my edges to be directional.

Anyone have a UI component which draws an arrow that they would't mind
sharing?



Re: [flexcoders] Re: Managing States and Cairngorm

2007-11-22 Thread Ralf Bokelberg
I prefer String over int, because it is selfdocumenting, so i'd go for
states rather than viewstack.selectedIndex
Cheers
Ralf.


On Nov 22, 2007 1:08 PM, stephen50232 [EMAIL PROTECTED] wrote:






 Hi Seb,

  Thanks, I've now created a static const in my ModelLocator class which
  , is called APP_DEFAULT_STATE, which I'm using to load in the
  Application.currentState. So now I can switch between states fine, thanks.

  One question though is Cairngorm good with managing states or is it
  better suited to using the viewstack to manage how an application looks?


  --- In flexcoders@yahoogroups.com, Sebastian Zarzycki [EMAIL PROTECTED]
  wrote:
  

   Not really, unless you can give yourself a good explanation, why you
  don't
   want to pass the value. The default logic for this behavior is a bit too
   complicated (if, then). I assume your app is small, but as it grows, you
   might be confused what's going on, since there is no clear
  explanation in
   code, that you are switching to Login state. If your Login state is the
   default one (starting), remember that you can always refer to it as .
   Create a final string APP_DEFAULT_LOGIN_STATE =  and use this constant
   even on start - this way you will know what is going on, and there is no
   need to create additional check in command's logic.
  
   -Original Message-
   From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
   Behalf Of stephen50232
   Sent: Thursday, November 22, 2007 10:26 AM
   To: flexcoders@yahoogroups.com
   Subject: [flexcoders] Re: Managing States and Cairngorm
  
   Hi Seb,
  
   Thanks for the reply, I like you idea, it makes sense. If I create an
   event which is fired during start up a I can in theory reuse the same
   event in the menu I'm creating. All it will be doing is passing the
   name of the state to change to.
  
   One thing I will do is when the event is fired during start up I won't
   pass a value for the state name, then in my Command I can check for
   this value and as it doesn't exist I can call the default state
   (Login). Do you think this is a good idea?
  
   Stephen
  



  



-- 
Ralf Bokelberg [EMAIL PROTECTED]
Flex  Flash Consultant based in Cologne/Germany
Phone +49 (0) 221 530 15 35


[flexcoders] Re: Flex Hierarchy

2007-11-22 Thread Rafael Faria
Well...
i don't think anyone understood what i need so i decided to write a
function to solve my problem. It's not the best way but i might help
someone in the future.

With this function you can use $('children_name') and it will return
the object. It will work like getElementById('') of javascript.

I couldn't find anything that would help me... =/


function $(object:String,container:DisplayObjectContainer = null) {
if (container == null) container = this;

for (var i:uint=0; i  container.numChildren; i++) 
{
var child:DisplayObject = container.getChildAt(i);

if (child.name== object) {
return child; 
}

if (container.getChildAt(i) is DisplayObjectContainer) 
{
   var obj = $(object,DisplayObjectContainer(child));
   if (obj is DisplayObject) {
 return obj;
   }
}
}
}







--- In flexcoders@yahoogroups.com, Muzak [EMAIL PROTECTED] wrote:

 Use the argument passed to the event handler, that's what it's for.
 currentTarget should give you what you need.
 
private function init():void {
 var c1:Canvas = new Canvas();
 addChild(c1);
 
 var c2:Canvas = new Canvas();
 c1.addChild(c2);
 
 var c3:Canvas = new Canvas();
 c2.addChild(c3);
 
 var c4:Canvas = new Canvas();
 c3.addChild(c4);
 
 var ipt:TextInput = new TextInput();
 ipt.name = test_input;
 ipt.id = test_input;
 ipt.addEventListener(Event.ADDED_TO_STAGE,traceInput);
 c4.addChild(ipt);
}

private function traceInput(evt:Event):void {
 trace(evt.currentTarget); 
}
 
 
 - Original Message - 
 From: Rafael Faria [EMAIL PROTECTED]
 To: flexcoders@yahoogroups.com
 Sent: Thursday, November 22, 2007 6:04 AM
 Subject: [flexcoders] Re: Flex Hierarchy
 
 
 I don't think i'm making myself clear.
 
 The whole point is to get the sbtButton not the parent.
 
 if you create sbtButton dinamically inside a vboxformbutton
 (that will be dynamically as well)
 
 this.sbtButton wouldnt work.
 
 Let me try again





[flexcoders] Re: Accessing Components By Dynamically generated IDs

2007-11-22 Thread Rafael Faria
I got the same problem... and solve with this function


function $(object:String,container:DisplayObjectContainer = null) {
if (container == null) container = this;

for (var i:uint=0; i  container.numChildren; i++) 
{
var child:DisplayObject = container.getChildAt(i);

if (child.name== object) {
return child; 
}

if (container.getChildAt(i) is DisplayObjectContainer) 
{
   var obj = $(object,DisplayObjectContainer(child));
   if (obj is DisplayObject) {
 return obj;
   }
}
}
}




try $('element name')




--- In flexcoders@yahoogroups.com, DreamCode [EMAIL PROTECTED] wrote:

 I think you should be able to constuct the id something like this:
 
 var currentItem:Object = this['hbox' + number]
 
 I assume you know the number of boxes you create.
 
 --Allan
 
 On Nov 21, 2007 11:49 PM, gaurav1146 [EMAIL PROTECTED] wrote:
 
 
 
 
  Hi,
  I have a component where a user can add text boxes and Combo boxes
  depending on his requirement. For each addition I assign the ids to
  the elements in ascending order. Now I want to read the values from
  each of these textboxes and combo boxes in a for loop. How can I do
  that. I have a structure something like:
 
  mx:VBox
  mx:HBox id=hbox1
  mx:Textbox id=textbox1/
  mx:ComboBox dataProvider={dp} id=comboBox1
  mx:HBox
 
  mx:HBox id=hbox2
  mx:Textbox id=textbox2/
  mx:ComboBox dataProvider={dp} id=comboBox2
  mx:HBox
  !--Next HBox would be added here with id=hbox3 and so on --
  mx:Button click=addHbox()
  /mx:VBox
 
  Had the number of HBoxes been fixed I could access them by
  {hboxId.textboxid.text} but I can't do the same for dynamically
  generated ids. I tried using getChildByName but that was not working
  for me. Is there any function where I can get a component by supplying
  its id(like Javascript's getElementById)?
 
  TIA,
  Gaurav
 
 





[flexcoders] FormItem problem

2007-11-22 Thread Rafael Faria
Hello,

has anyone succesfully implemented a FormItemLabel that can have text
on multiple lines instead of single line label?



[flexcoders] FYI: Flex video site for Aussie regional TV station

2007-11-22 Thread Mailing Lists
Hi all,

http://canberra.iprime.com.au was released a few weeks ago and I thought I'd
mention it and see what you think.

Any comments greatly appreciated.

Mike.





Re: SPAM-LOW: [flexcoders] flex commercial componentes

2007-11-22 Thread Jeffry Houser

   Are you asking us to do market research for you?

yourName wrote:
 
 
 Can Any Tell me is their any flex comercial components kit to purcahse..
 Plz Send me link and compnay name who is selling componenst..


-- 
Jeffry Houser, Technical Entrepreneur, Software Developer, Author, 
Recording Engineer
AIM: Reboog711  | Phone: 1-203-379-0773
--
My Company: http://www.dot-com-it.com
My Podcast: http://www.theflexshow.com
My Blog: http://www.jeffryhouser.com



Re: [flexcoders] Making a component 'hop' between containers

2007-11-22 Thread Paul Andrews
- Original Message - 
  From: Paul Andrews 
  To: flexcoders@yahoogroups.com 
  Sent: Thursday, November 22, 2007 9:33 PM
  Subject: [flexcoders] Making a component 'hop' between containers


  OK, I'm being lazy and asking for the best approach to this before I give it 
a go.

  I have a custom component based on a canvas. Inside the component is a panel. 
Inside the panel is a controlBar.

  In the main application I have the custom component (CompA). 

  I want to add another custom component  (CompB) inside the controlBar of the 
custom component (CompA).

  It seems to me I have three choices:

  1) Copy the custom component (CompA) and make a variation of it (CompC) with 
the controlBar populated with CompB (this is probably the path of least 
resistance),
  2) Use actionscript to add CompB to the controlBar of CompA dynamically - 
very doable
Well, the more I think about it, option 3 (my original question) is pretty 
pointless, since option 2 is so easy.

  3) Add the CompB in mxml between the tags for CompA. By default this would 
give me CompB inside CompA, but it won't be in the controlBar. I could then add 
some actionscript to the CompB (or perhaps even CompA) to move CompB into the 
controlBar of CompA.
So, the hopping of components between containers, is shelved.

Paul

Re: [flexcoders] Flex 3 + LiveCycle: Is debugging Java possible?

2007-11-22 Thread Johannes Nel
ditto

On Nov 22, 2007 5:25 PM, Carlos Rovira [EMAIL PROTECTED] wrote:

   We are using eclipse wtp with tomcat and we can debug Flex, java or both
 at once

 2007/11/21, jamiebadman [EMAIL PROTECTED]:
 
Hi,
 
  Our project is a Flex 3 + LiveCycle 2.5 application and is all built
  under a single project - ie the Flex and Java are contained within a
  single project and can be built entirely from there.
 
  Nice... except for when we want to debug the Java code (which so far
  has not been necessary since it's been very simple). We can't figure
  out how to do this. There are articles by Farata and others on how
  this can be done but these seem to require the Java in a separate
  project in Eclipse.
 
  Has anyone managed to accomplish what we're trying to do - and if so,
  would you mind sharing the steps required?
 
  We're currently using JBoss but if we need to switch to Tomcat,
  Weblogic or JRun for the purposes of debugging this is not a problem.
 
  Thanks,
 
  Jamie.
 
 


 --
 ::| Carlos Rovira
 ::| http://www.carlosrovira.com
 ::| http://www.madeinflex.com
 




-- 
j:pn
\\no comment


[flexcoders] Re:Which component for photos?

2007-11-22 Thread Anzer
Check out this

 

http://dougmccune.com/blog/2007/11/19/flex-coverflow-performance-improvement
-flex-carousel-component-and-vertical-coverflow/ 



RE: [flexcoders] FYI: Flex video site for Aussie regional TV station

2007-11-22 Thread Mailing Lists
Thanks Bjorn,

 

I think what you are seeing is what we got with the beta player it works
fine on 9.0.47.

 

Mike.

 

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Bjorn Schultheiss
Sent: Friday, 23 November 2007 2:46 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] FYI: Flex video site for Aussie regional TV
station

 

Congratulations!

 

Great to see some tight work coming out of Australia.

 

The HTML iframe content looks a bit dodgy on firefox mac.

But i'm not sure there's much you can do about it.

 

 

nice one!

 

 

regards,

 

Bjorn

 

On 23/11/2007, at 2:34 PM, Mailing Lists wrote:





 

It is a hybrid of our designs (www.webqem.com) and the clients thoughts ;-)

 

Through circumstances beyond our control it took about 2 months longer than
needed but about 4 months all up.

 

Mike.

 

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Sheriff
Sent: Friday, 23 November 2007 2:17 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] FYI: Flex video site for Aussie regional TV
station

 

did you design it? how long did it take?

- Original Message 
From: Mailing Lists [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Thursday, November 22, 2007 8:01:27 PM
Subject: [flexcoders] FYI: Flex video site for Aussie regional TV station

Hi all,

http://canberra. http://canberra.iprime.com.au  iprime.com. au was
released a few weeks ago and I thought I'd
mention it and see what you think.

Any comments greatly appreciated.

Mike.

 

 

  _  

Get easy, one-click access to your favorites. Make Yahoo!
http://us.rd.yahoo.com/evt=51443/*http:/www.yahoo.com/r/hs  your homepage.

 

 

 



[flexcoders] +Re%3A%20How%20to%20change%20application%20background%20color%20dynamically

2007-11-22 Thread Girish
Hi Kenneth  Simonjpalmer,

Thanks for your valuable reply, I did it in simple way, below is the code which 
i have written

private function LoadComponent(licensetype:String):void
{
 var screen:UIComponent;
switch (licensetype)
{
case Manager: // Load Manager Component
screen = new Manager();
addChild(screen);
this.setStyle('backgroundColor','#9E9A41');
break;
case Seller: // Load SellerComponent
screen = new Seller();
addChild(screen);
this.setStyle('backgroundColor','#408080');
break;
default:
  // show default screen with information
break; 
}
}

Thanks once again
Girish


  Get the freedom to save as many mails as you wish. To know how, go to 
http://help.yahoo.com/l/in/yahoo/mail/yahoomail/tools/tools-08.html

Re: [flexcoders] FYI: Flex video site for Aussie regional TV station

2007-11-22 Thread Bjorn Schultheiss

Congratulations!

Great to see some tight work coming out of Australia.

The HTML iframe content looks a bit dodgy on firefox mac.
But i'm not sure there's much you can do about it.


nice one!


regards,

Bjorn

On 23/11/2007, at 2:34 PM, Mailing Lists wrote:



It is a hybrid of our designs (www.webqem.com) and the clients  
thoughts ;-)




Through circumstances beyond our control it took about 2 months  
longer than needed but about 4 months all up.




Mike.



From: flexcoders@yahoogroups.com  
[mailto:[EMAIL PROTECTED] On Behalf Of Sheriff

Sent: Friday, 23 November 2007 2:17 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] FYI: Flex video site for Aussie regional  
TV station




did you design it? how long did it take?

- Original Message 
From: Mailing Lists [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Thursday, November 22, 2007 8:01:27 PM
Subject: [flexcoders] FYI: Flex video site for Aussie regional TV  
station


Hi all,

http://canberra. iprime.com. au was released a few weeks ago and I  
thought I'd

mention it and see what you think.

Any comments greatly appreciated.

Mike.





Get easy, one-click access to your favorites. Make Yahoo! your  
homepage.









RE: [flexcoders] FYI: Flex video site for Aussie regional TV station

2007-11-22 Thread Mailing Lists
It is a hybrid of our designs (www.webqem.com) and the clients thoughts ;-) 

 

Through circumstances beyond our control it took about 2 months longer than
needed but about 4 months all up.

 

Mike.

 

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Sheriff
Sent: Friday, 23 November 2007 2:17 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] FYI: Flex video site for Aussie regional TV
station

 

did you design it? how long did it take?

- Original Message 
From: Mailing Lists [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Thursday, November 22, 2007 8:01:27 PM
Subject: [flexcoders] FYI: Flex video site for Aussie regional TV station

Hi all,

http://canberra. http://canberra.iprime.com.au  iprime.com. au was
released a few weeks ago and I thought I'd
mention it and see what you think.

Any comments greatly appreciated.

Mike.

 

 

  _  

Get easy, one-click access to your favorites. Make Yahoo!
http://us.rd.yahoo.com/evt=51443/*http:/www.yahoo.com/r/hs  your homepage.


 



[flexcoders] Need help componentizing SliderControl!!!

2007-11-22 Thread Jaganathan.K
Hi All,

I need to create a slider control which should be controlled 
externally. I have the folowing code where i hardcoded all the 
values like the panel widths, slide range and combo box values. 
Please play around with the component and let me know how to 
componentize the same.

I need the following to be controlled externally:

The number of griditems used depends upon the external value given.
The panel's width needs to be determined by the combo box selection.
The combo box values will be controlled externally.

Please help me out in componentizing the below component. Any help 
would be greatly appreciated.

Below is the code for the SliderControl Component.

-
SliderControl.mxml
-


?xml version=1.0 encoding=utf-8?
mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; 
layout=absolute height=134 width=374
mx:Panel x=10 y=10 width=354 height=112 
layout=absolute borderStyle=none
mx:Grid x=10 y=30 width=303
mx:GridRow width=100% height=100% 
paddingBottom=0 paddingLeft=0 paddingRight=0 paddingTop=0
mx:GridItem id=GridItem1 
width=100% height=100% borderStyle=inset 
borderColor=#808080 
/mx:GridItem
mx:GridItem id=GridItem2 
width=100% height=100% borderStyle=inset borderColor=#808080
/mx:GridItem
mx:GridItem id=GridItem3 
width=100% height=100% borderStyle=inset borderColor=#808080
/mx:GridItem
mx:GridItem id=GridItem4 
width=100% height=100% borderStyle=inset borderColor=#808080
/mx:GridItem
mx:GridItem id=GridItem5 
width=100% height=100% borderStyle=inset borderColor=#808080
/mx:GridItem
mx:GridItem id=GridItem6 
width=100% height=100% borderStyle=inset borderColor=#808080
/mx:GridItem
/mx:GridRow
/mx:Grid
mx:Label x=10 y=35 text=0 height=18/
mx:Label x=50 y=35 text=50 height=18/
mx:Label x=97 y=35 text=100 height=18/
mx:Label x=148.5 y=35 text=150 height=18/
mx:Label x=201.5 y=35 text=200 height=18/
mx:Label x=253.5 y=35 text=250 height=18/
mx:Label x=300.5 y=35 text=300 height=18/
mx:ComboBox x=243 y=0 width=70 
dataProvider={DropDownValues} close=selectedItem=ComboBox
(event.target).selectedItem;setPanel();/mx:ComboBox
mx:Label x=163 y=2 text=Slider Width/
mx:Panel id=pnlSlider mouseDown=MovePanel
(event) width=48 height=10 layout=absolute 
backgroundColor=#8080ff x=10 y=27 borderStyle=none 
alpha=0.5
/mx:Panel
mx:Label x=10 y=2 text=Slider position 
width=85/
mx:Label x=103 y=2 id=lblSliderPos text=0/
/mx:Panel
mx:Script
![CDATA[
import mx.controls.Alert;

[Bindable]
public var DropDownValues: Array = [ {label:50, 
data:1}, {label:100, data:2}, {label:150, data:3} ];

[Bindable]
public var selectedItem:Object;  
public var xDiff:Number;   
public var iPnlLen:Number=1;   

private function setPanel():void
{
iPnlLen = selectedItem.data;
pnlSlider.width = 48 * selectedItem.data + (3*
(selectedItem.data-1));
}

private function stopDragging(event:MouseEvent):void
{

this.systemManager.removeEventListener
(MouseEvent.MOUSE_MOVE, movePanelObj);

this.systemManager.removeEventListener(MouseEvent.MOUSE_UP, 
stopDragging);

if(pnlSlider.x  GridItem2.x)
{
pnlSlider.x = 10;
lblSliderPos.text = 0;
}
else if(pnlSlider.x = GridItem2.x 
 pnlSlider.x  GridItem3.x)
{
pnlSlider.x = GridItem2.x + 
6;
lblSliderPos.text = 50;
}
else if(pnlSlider.x = GridItem3.x 
 pnlSlider.x  GridItem4.x)
{
pnlSlider.x = GridItem3.x + 
8;
lblSliderPos.text = 100;
}
else 

Re: [flexcoders] FYI: Flex video site for Aussie regional TV station

2007-11-22 Thread Sheriff
did you design it? how long did it take?

- Original Message 
From: Mailing Lists [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Thursday, November 22, 2007 8:01:27 PM
Subject: [flexcoders] FYI: Flex video site for Aussie regional TV station










  



Hi all,



http://canberra. iprime.com. au was released a few weeks ago and I thought I'd

mention it and see what you think.



Any comments greatly appreciated.



Mike.






  







!--

#ygrp-mkp{
border:1px solid #d8d8d8;font-family:Arial;margin:14px 0px;padding:0px 14px;}
#ygrp-mkp hr{
border:1px solid #d8d8d8;}
#ygrp-mkp #hd{
color:#628c2a;font-size:85%;font-weight:bold;line-height:122%;margin:10px 0px;}
#ygrp-mkp #ads{
margin-bottom:10px;}
#ygrp-mkp .ad{
padding:0 0;}
#ygrp-mkp .ad a{
color:#ff;text-decoration:none;}
--



!--

#ygrp-sponsor #ygrp-lc{
font-family:Arial;}
#ygrp-sponsor #ygrp-lc #hd{
margin:10px 0px;font-weight:bold;font-size:78%;line-height:122%;}
#ygrp-sponsor #ygrp-lc .ad{
margin-bottom:10px;padding:0 0;}
--



!--

#ygrp-mlmsg {font-size:13px;font-family:arial, helvetica, clean, sans-serif;}
#ygrp-mlmsg table {font-size:inherit;font:100%;}
#ygrp-mlmsg select, input, textarea {font:99% arial, helvetica, clean, 
sans-serif;}
#ygrp-mlmsg pre, code {font:115% monospace;}
#ygrp-mlmsg * {line-height:1.22em;}
#ygrp-text{
font-family:Georgia;
}
#ygrp-text p{
margin:0 0 1em 0;}
#ygrp-tpmsgs{
font-family:Arial;
clear:both;}
#ygrp-vitnav{
padding-top:10px;font-family:Verdana;font-size:77%;margin:0;}
#ygrp-vitnav a{
padding:0 1px;}
#ygrp-actbar{
clear:both;margin:25px 0;white-space:nowrap;color:#666;text-align:right;}
#ygrp-actbar .left{
float:left;white-space:nowrap;}
.bld{font-weight:bold;}
#ygrp-grft{
font-family:Verdana;font-size:77%;padding:15px 0;}
#ygrp-ft{
font-family:verdana;font-size:77%;border-top:1px solid #666;
padding:5px 0;
}
#ygrp-mlmsg #logo{
padding-bottom:10px;}

#ygrp-vital{
background-color:#e0ecee;margin-bottom:20px;padding:2px 0 8px 8px;}
#ygrp-vital #vithd{
font-size:77%;font-family:Verdana;font-weight:bold;color:#333;text-transform:uppercase;}
#ygrp-vital ul{
padding:0;margin:2px 0;}
#ygrp-vital ul li{
list-style-type:none;clear:both;border:1px solid #e0ecee;
}
#ygrp-vital ul li .ct{
font-weight:bold;color:#ff7900;float:right;width:2em;text-align:right;padding-right:.5em;}
#ygrp-vital ul li .cat{
font-weight:bold;}
#ygrp-vital a{
text-decoration:none;}

#ygrp-vital a:hover{
text-decoration:underline;}

#ygrp-sponsor #hd{
color:#999;font-size:77%;}
#ygrp-sponsor #ov{
padding:6px 13px;background-color:#e0ecee;margin-bottom:20px;}
#ygrp-sponsor #ov ul{
padding:0 0 0 8px;margin:0;}
#ygrp-sponsor #ov li{
list-style-type:square;padding:6px 0;font-size:77%;}
#ygrp-sponsor #ov li a{
text-decoration:none;font-size:130%;}
#ygrp-sponsor #nc{
background-color:#eee;margin-bottom:20px;padding:0 8px;}
#ygrp-sponsor .ad{
padding:8px 0;}
#ygrp-sponsor .ad #hd1{
font-family:Arial;font-weight:bold;color:#628c2a;font-size:100%;line-height:122%;}
#ygrp-sponsor .ad a{
text-decoration:none;}
#ygrp-sponsor .ad a:hover{
text-decoration:underline;}
#ygrp-sponsor .ad p{
margin:0;}
o{font-size:0;}
.MsoNormal{
margin:0 0 0 0;}
#ygrp-text tt{
font-size:120%;}
blockquote{margin:0 0 0 4px;}
.replbq{margin:4;}
--








  

Never miss a thing.  Make Yahoo your home page. 
http://www.yahoo.com/r/hs

[flexcoders] Re: radioButton label colour via AS3?

2007-11-22 Thread ben.clinkinbeard
Color is actually a style so its idname.setStyle(color, 0xFF);

HTH,
Ben


--- In flexcoders@yahoogroups.com, candysmate [EMAIL PROTECTED] wrote:

 I can set the colour of a radioButton's label with color = #ff
 in mxml, but when I try to use the idname.color = #ff; in AS3
 Flex 2.01 throws an undefined property error.
 
 How can I change the radioButton label text colour via AS3 please?





[flexcoders] Re: HttpService not called the first time

2007-11-22 Thread gers32
Thank you so much Per, I set creationPolicy=all on the ViewStack and
it immediately solved my problem.

Cheers,

Chris.

--- In flexcoders@yahoogroups.com, per.olesen [EMAIL PROTECTED] wrote:

 Hi,
 
 Maybe you should try setting creationPolicy=all on your TabBar. By
 default, it first creates the child components when someone tabs into
 it. If you set it to all, all child controls will be created
 up-front (which can be expensive, if you have many that are complex).
 
 See:

http://livedocs.adobe.com/flex/201/langref/mx/core/Container.html#creationPolicy
 
 
 --- In flexcoders@yahoogroups.com, gers32 cbu@ wrote:
 
  Hi,
  
  Components A and B are inside Panels of a ViewStack; they're accessed
  via a TabBar.
  
  I define an HttpService within component A.
  I call A.HttpService from an action in component B.
  
  When I perform the action in component B, A.HttpService will only get
  called if I have PREVIOUSLY visited A... And to top it all off,
  A.creationComplete() doesn't get fired either when I visit it, unless
  I have PREVIOUSLY performed the action in B !
  
  My problem seems to stem from the order in which these components get
  initialized, but this behavior doesn't make sense to me.
  
  Thanks for your help,
  
  Chris.