RE: [flexcoders] Front Controller

2005-02-01 Thread Tracy Spratt
Hi, Devis.
What about manipulating the visibility and height of the fields?

I've implemented dynamic screens this way. I did not use mx:Form, just
a VBox, set the verticalGap=0, set a fixed height for my fields (30).

If a field is not to display I set visible = false and height = 0.
If the field is to display I ser visible=true and height = 30;

Tracy

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: Monday, January 31, 2005 6:04 AM
To: Flex Coders
Subject: [flexcoders] Front Controller


Hi,
sorry anohter question, i have great problem to implement in Flex 
forms that canghe dynamically.

For example i have simple form
Name
Phone
Zip

if he will connect Mr Mario i wish to display only (Name,Phone) 
fields, and if he will connect Mr Devis i wish display all fields

you can point out me the correct road, please
Devis






 
Yahoo! Groups Links



 









Flex Icons

2005-02-01 Thread Michael van Leest
Hi,
Uhmmm this is pretty strange question, but can I use the Flex icons such 
as the wait state pointer ( clock thingy)?? And if so, where can I find 
these files?? I'm building a cms and want to use these icons so it's all 
the same throughout the application. The only thog I want to do is give 
them a specific colorglow

Anyone??
Thanks in advance!



Re: [flexcoders] Flex Icons

2005-02-01 Thread alf
Hi Michael,
look into the: mx.managers.CursorManager Class.
and: mx.skins.cursor.BusyCursor
Hope this helps,
-Art
Quoting Michael van Leest [EMAIL PROTECTED]:
Hi,
Uhmmm this is pretty strange question, but can I use the Flex icons such
as the wait state pointer ( clock thingy)?? And if so, where can I find
these files?? I'm building a cms and want to use these icons so it's all
the same throughout the application. The only thog I want to do is give
them a specific colorglow
Anyone??
Thanks in advance!

Yahoo! Groups Links






Re: [flexcoders] Flex Icons

2005-02-01 Thread Michael van Leest
Uhmm... Is there maybe a fla file with the Flex halo them?? Because I've 
found the pulseBlue, but I need the standard Flex halo images so I can 
edit them


Michael van Leest wrote:
Hi,
Uhmmm this is pretty strange question, but can I use the Flex icons such 
as the wait state pointer ( clock thingy)?? And if so, where can I find 
these files?? I'm building a cms and want to use these icons so it's all 
the same throughout the application. The only thog I want to do is give 
them a specific colorglow

Anyone??
Thanks in advance!

Yahoo! Groups Links









RE: [flexcoders] Flex Icons

2005-02-01 Thread Tracy Spratt
Maybe this link will help?
http://www.macromedia.com/cfusion/knowledgebase/index.cfm?id=tn_19322

-Original Message-
From: Michael van Leest [mailto:[EMAIL PROTECTED] 
Sent: Monday, January 31, 2005 8:09 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Flex Icons


Uhmm... Is there maybe a fla file with the Flex halo them?? Because I've

found the pulseBlue, but I need the standard Flex halo images so I can 
edit them



Michael van Leest wrote:

Hi,

Uhmmm this is pretty strange question, but can I use the Flex icons
such 
as the wait state pointer ( clock thingy)?? And if so, where can I find

these files?? I'm building a cms and want to use these icons so it's
all 
the same throughout the application. The only thog I want to do is give

them a specific colorglow

Anyone??
Thanks in advance!



 
Yahoo! Groups Links



 





  





 
Yahoo! Groups Links



 









Re: [flexcoders] Flex Icons

2005-02-01 Thread Michael van Leest




Thanks! that's what I'm looking for!
But uhmm do you maybe have the flexforflash.zip? because I already
deinstalled Flex 1.0  :o 

If someone still has the file, could you please send me the file??
Thanks!! 

Michael

Tracy Spratt wrote:

Maybe this link will help?
http://www.macromedia.com/cfusion/knowledgebase/index.cfm?id=tn_19322

-Original Message-
From: Michael van Leest [mailto:[EMAIL PROTECTED]] 
Sent: Monday, January 31, 2005 8:09 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Flex Icons


Uhmm... Is there maybe a fla file with the Flex halo them?? Because I've

found the pulseBlue, but I need the standard Flex halo images so I can 
edit them



Michael van Leest wrote:



Hi,

Uhmmm this is pretty strange question, but can I use the Flex icons


such 


as the wait state pointer ( clock thingy)?? And if so, where can I find





these files?? I'm building a cms and want to use these icons so it's


all 


the same throughout the application. The only thog I want to do is give





them a specific colorglow

Anyone??
Thanks in advance!




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] HTTPService Fault

2005-02-01 Thread Jeff Steiner
Kevin,

I saw that after installing once. What J2EE server are you running Flex on?

I believe that I modified the context_root to point to a different location
and that it fired right up. I will look back through my notes and let you
know tomorrow.

Jeff
http://www.flexauthority.com

- Original Message - 
From: Kevin Conboy [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Monday, January 31, 2005 2:37 PM
Subject: [flexcoders] HTTPService Fault



Hey, all. We just loaded Flex 1.5 on our Solaris 8 server and for every
Flex sample, we get this error:

HTTPService Fault;
java.lang.RuntimeException: Bad service name : FormatSourceService

Any idea what this is about and how we might get around it? Thanks!



Kevin Conboy
Lead UI Engineer / Office Dullard

SpireMedia®
Inspired Technology. Inspired Results.

vox: 303.620.9974 ext 316
fax: 303.629.6385
[EMAIL PROTECTED]
www.spiremedia.com




Yahoo! Groups Links











hi

2005-02-01 Thread flexcoder

hello experts,

I am looking for wondertwin beta, anybody have the setup, I am not 
able to sign up for beta program.


thanx in advance,
fc







is there an easy way of creating a preloder to swf

2005-02-01 Thread shvilamit

i am looking for an easy way to make a preloder to SWF that i am 
loding in
mx:Loader id=TestDisplay autoLoad=true 
contentPath=swf/TestDisplay.swf

or i need to lissen to that object and get the presentege that load
and all of that 
is there any thing that i can use out of the box 
thanks 







RE: Problem with Repeater

2005-02-01 Thread Michael Hnat
Hi,

that's interessting. I've have a standard FLEX 1.5 installation in the
evaluation mode and it doesn't. Is my installation broken? Can I check this
somehow?

Thanks,
Michi



Message: 10 
Date: Mon, 31 Jan 2005 23:43:35 +0530
From: Manish Jethani [EMAIL PROTECTED]
Subject: Re: Problem with Repeater.

Michael Hnat wrote:

 My example with multiple DataGrids (see below) is not displaying the
correct
 headerText. It should be a value from the dp:Array.

Indeed it does. I tried your code on my Flex installation.

Manish





Flex + Flashcom + debug player = browser crash

2005-02-01 Thread Benoit Hediard



Hi 
everyone,

Has anyone tried to 
run the followingFlex+Flashcom app?
http://coenraets.com/viewarticle.jsp?articleId=90

It's a great 
example.

Problem :when 
starting the webcam with the Flash debug player 7.0.35.21(the one coming 
with Flex 1.5), it crashes my browser (Firefox or IE)when I confirm the 
activation of my webcam (LogitechQuickCam).
Uninstalling the 
debug player and installing the current Flash player 7.0.19.0 solves the 
problem (webcamcan beactivated).

Anyone has run 
successfully the app with a webcam and the debug player?


Benoit 
Hediard


Re: [flexcoders] hi

2005-02-01 Thread Sagar Kulkarni
Hello Sandip,
You can ask [EMAIL PROTECTED]
for .net beta version
Sandip wrote:
Hello Experts,
I am new to this technology and interested in Flex development
with .NET, can anybody help me and provide me any beta version that I
can use to develop flex applications using .NET.
thanx 'n regards,
FlexCoder


*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]
mailto:[EMAIL PROTECTED]
* Your use of Yahoo! Groups is subject to the Yahoo! Terms of
Service http://docs.yahoo.com/info/terms/.





RE: [flexcoders] Fundamental bug in FlexBuilder 1.5?

2005-02-01 Thread Robert Stuttaford








Aral,



Its been identified as a bug and
filed with MM, probably numerous times J



When the Cairngorm .9 release happened,
there was a slew of those reports.



For now, Ive used a script block 
simplest possible thing that could work!



Roberts











From: Aral Balkan [mailto:[EMAIL PROTECTED] 
Sent: 01 February 2005 01:29PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Fundamental
bug in FlexBuilder 1.5?





Hi all,

Long-time lurker, first-time poster... I wanted to draw your attention to an
issue that I'm having with Flex Builder: Basically, the Preview/Run/Debug
functionality stops working when you subclass mx.core.Application and/or
mx.containers.Form in your applications.

Of course this is a perfectly legal thing to do and, actually, the ARP
framework will be recommending this as a best practice (among other things,it
makes migrating from Flash to Flex child's play.) It also gets around having to
mix code into your MXML files -- which is a nasty practice akin to how we used
to #include script files in ActionScript 1 in Flash. In any case, this is a
fundamental use case and it appears that Flex Builder doesn't currently support
it. I posted about this on my blog in more detail, with a barebones sample to
demonstrate the bug:

http://www.flashant.org/index.php?p=273more=1c=1

I am still holding out hope that there is a way to override this default
behavior in Flex Builder to tell it that it's ok to preview a subclass of
Application/Form but I haven't been able to find such a way using the
Dreamweaver extensibility APIs. 

Perhaps someone from the Flex team will have a potential solution/workaround
for this.

All the best,
Aral



-- 
Aral Balkan
Managing Director, Ariaware Ltd.

Best Practices Flash  Flex Development course - March, 2005. London UK

Tel: +44 (0) 870 7542240
Fax:+44 (0) 870 7542240
Mob: +44 (0) 779 5551278


Web: http://www.Ariaware.com
Blog: http://www.FlashAnt.org
Macromedia
Certified Instructor
Flash MX 2004 Advanced ActionScript Development
Flash MX 2004 Professional ActionScript Development
Director of
Educational Content - Ultrashock
Author - Friends of ED, Macromedia
DevNet
Director - London MMUG












RE: [flexcoders] Fundamental bug in FlexBuilder 1.5?

2005-02-01 Thread Steven Webster



Aral,

Long-time lurker, 
first-time poster... I wanted to draw your attention to an issue that I'm having 
with Flex Builder: Basically, the Preview/Run/Debug functionality stops working 
when you subclass mx.core.Application and/or mx.containers.Form in your 
applications.
This is a known bug in Flexbuilder that was raisedup on 
this list when people started trying to build
applications using the CairngormApplication tag that we 
advocated in the 0.9 release of Cairngorm. 

Currently there is no workaround other that using the 
mx:Application tag if you want to work
in Flexbuilder. Macromedia are aware of the issue - 
we raised it and it was acknowledged as a bug.

It doesn't however mean that people will have to dump lots 
of code in their MXML files; using the
Application tag, developers are still free to create their 
own ActionScript 2.0 classes, and if you
don't want to import them and instantiate them within 
mx:Script blocks, you can instantiate
them "MXML-fashion" using namespace declarations. 


Best,

Steven




--
Steven WebsterTechnical 
Director
iteration::two

This e-mail and any associated attachments 
transmitted with it may contain confidential information and must not be copied, 
or disclosed, or used by anyone other than the intended recipient(s). If you are 
not the intended recipient(s) please destroy this e-mail, and any copies ofit, 
immediately.Please also note that while software systems havebeen 
used to try to ensure that this e-mail has been swept for viruses, 
iteration::two do not accept responsibility for any damage or loss caused in 
respect of any viruses transmitted by the e-mail. Please ensure your own checks 
are carried out before any attachments are 
opened.


how can I do this in Flex?

2005-02-01 Thread Miguel Díaz Valenzuela

Hi dudes.

Actually i´m learning to use Macromedia Flex and i´m working witha
checkrenderer datagrid, but in this moment i have a trouble.

I need to do a insert info a for(...) sentence, but i can´t find
correct code for do that.

This is code in .NET

Dim i As Integer
For i = 1 To Me.list_mantenciones_disponibles.Items.Count //here i´m
count number of rows of list
If Me.list_mantenciones_disponibles.Items(i - 1).Checked Then //here
i´m asking if row was selected
Try
Dim con_connect As SqlClient.SqlConnection
Dim com_connect As SqlClient.SqlCommand
con_connect = New SqlClient.SqlConnection(SqlClientconexion)
com_connect = New
SqlClient.SqlCommand(agrega_detalle_mantencion_computador,
con_connect) //name of procedure
..
Dim p3 As SqlClient.SqlParameter =
com_connect.Parameters.Add(@tipo_mant_idn, Data.SqlDbType.VarChar, 4)
p3.Value = Me.list_mantenciones_disponibles.Items(i -
1).SubItems(0).Text //this is name of parameter taken from list. I
need to do that but through a flex´s datagrid

Ok, thanks in advance for help me, bye. 







RE: [flexcoders] how can I do this in Flex? -- (warning, best-practice police are in the house)

2005-02-01 Thread Steven Webster
Miguel,

 Actually i´m learning to use Macromedia Flex and i´m 
 working with a checkrenderer datagrid, but in this moment i 
 have a trouble.
 
 I need to do a insert info a for(...) sentence, but i can´t 
 find correct code for do that.
 
 This is code in .NET

With .NET, it's quite common for the page-technology to embed SQL
connection information. This isn't a failing of .NET as such (as 
there are good practices with ADO.NET and the Microsoft Enterprise
Patterns that can be followed) but is a common 2-tier solution that
we see people implementing, especially from an ASP.NET / VB.NET
background.

Flex does not offer explicit support for SQL; it is a presentation
tier solution, that assumes that any business logic will be performed
on the server-side of the wire. So - I would expect you to have
some .NET code (VB.NET, C#, etc) that uses the ADO.NET libraries
to perform any SQL queries that you wish to perform, and that this
code reside on your server. You will then expose that business
tier logic to Flex (currently) through a WebService interface - if
you are using C# for instance, this is a very simple thing to do 
using metadata tags on the class that encapsulates your data
access.

Once you have defined a service on the server, Flex can then
use the WebService tag to invoke that service; rather than build
up a SQL query on the client (which is a *very* bad, though
frustratingly common practice) you would instead pass the
relevant data (such as tipo_mant_id) as an argument in a
WebService call, such as agregaDetalleMantencionComputador(),
and receive the results back from Flex.

Once you have that n-tier architecture in place (Flex is a 
replacement for the presentation tier *only*) then how to
invoke web services on the server, and how to handle the
results that you get back, etc, will all be much clearer to you
from the documentation and (shameless plug) books that are 
out there.

So I'm afraid I'd be tempted to suggest that if you want to
embrace Flex as a presentation-tier solution, abandon all
hopes of 2-tier (database code from your integration tier
intermingled with presentation tier code) architecture, and
avoid a run-in with the best-practice police...

Hope this helps,

Best,

Steven
PS. The only other word I know is 'cerveza'

--
Steven Webster
Technical Director
iteration::two
[EMAIL PROTECTED]
 
Office: +44 (0)131 338 6108
Mobile: +44 (0)7977 216 223
 
This e-mail and any associated attachments transmitted with it may contain
confidential information and must not be copied, or disclosed, or used by
anyone other than the intended recipient(s). If you are not the intended
recipient(s) please destroy this e-mail, and any copies of it, immediately.
 
Please also note that while software systems have been used to try to ensure
that this e-mail has been swept for viruses, iteration::two do not accept
responsibility for any damage or loss caused in respect of any viruses
transmitted by the e-mail. Please ensure your own checks are carried out
before any attachments are opened.






Re: how can I do this in Flex? -- (warning, best-practice police are in the hou

2005-02-01 Thread Miguel D�az Valenzuela

Well, many thanks to you for help me.
I know about webservice and I have already realized an insert to
datebase through Flex with simple textimputs or textareas, but my
trouble is about a checkrenderer. I must count records of a datagrid,
see which of those records they are checked, and extract the value of
a column of the above mentioned record. In .NET everything is very
explicit, but in Flex I do not know that codes to use in the .as code
of my .mxml file.
I know that to count rows of a datagrid i can use rowCount, but for
others two tasks I cannot which option use (rowIndex, i don't know) 

sorry for my poor english, and i hope you understand me.
many thanks in advance

--- In flexcoders@yahoogroups.com, Steven Webster [EMAIL PROTECTED] wrote:
 Miguel,
 
  Actually i´m learning to use Macromedia Flex and i´m 
  working with a checkrenderer datagrid, but in this moment i 
  have a trouble.
  
  I need to do a insert info a for(...) sentence, but i can´t 
  find correct code for do that.
  
  This is code in .NET
 
 With .NET, it's quite common for the page-technology to embed SQL
 connection information. This isn't a failing of .NET as such (as 
 there are good practices with ADO.NET and the Microsoft Enterprise
 Patterns that can be followed) but is a common 2-tier solution that
 we see people implementing, especially from an ASP.NET / VB.NET
 background.
 
 Flex does not offer explicit support for SQL; it is a presentation
 tier solution, that assumes that any business logic will be performed
 on the server-side of the wire. So - I would expect you to have
 some .NET code (VB.NET, C#, etc) that uses the ADO.NET libraries
 to perform any SQL queries that you wish to perform, and that this
 code reside on your server. You will then expose that business
 tier logic to Flex (currently) through a WebService interface - if
 you are using C# for instance, this is a very simple thing to do 
 using metadata tags on the class that encapsulates your data
 access.
 
 Once you have defined a service on the server, Flex can then
 use the WebService tag to invoke that service; rather than build
 up a SQL query on the client (which is a *very* bad, though
 frustratingly common practice) you would instead pass the
 relevant data (such as tipo_mant_id) as an argument in a
 WebService call, such as agregaDetalleMantencionComputador(),
 and receive the results back from Flex.
 
 Once you have that n-tier architecture in place (Flex is a 
 replacement for the presentation tier *only*) then how to
 invoke web services on the server, and how to handle the
 results that you get back, etc, will all be much clearer to you
 from the documentation and (shameless plug) books that are 
 out there.
 
 So I'm afraid I'd be tempted to suggest that if you want to
 embrace Flex as a presentation-tier solution, abandon all
 hopes of 2-tier (database code from your integration tier
 intermingled with presentation tier code) architecture, and
 avoid a run-in with the best-practice police...
 
 Hope this helps,
 
 Best,
 
 Steven
 PS. The only other word I know is 'cerveza'
 
 --
 Steven Webster
 Technical Director
 iteration::two
 [EMAIL PROTECTED]
  
 Office: +44 (0)131 338 6108
 Mobile: +44 (0)7977 216 223
  
 This e-mail and any associated attachments transmitted with it may
contain
 confidential information and must not be copied, or disclosed, or
used by
 anyone other than the intended recipient(s). If you are not the intended
 recipient(s) please destroy this e-mail, and any copies of it,
immediately.
  
 Please also note that while software systems have been used to try
to ensure
 that this e-mail has been swept for viruses, iteration::two do not
accept
 responsibility for any damage or loss caused in respect of any viruses
 transmitted by the e-mail. Please ensure your own checks are carried out
 before any attachments are opened.







RE: [flexcoders] Flex Builder

2005-02-01 Thread Robertson-Ravo, Neil (RX)








I believe it ships only with purchases of
Flex Server.















From: Howard, Dave
[mailto:[EMAIL PROTECTED] 
Sent: 01 February 2005 15:26
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Flex Builder







Does anyone know how to purchase Flex
Builder?










This e-mail is from Reed Exhibitions (Oriel House, 26 The Quadrant, Richmond, Surrey, TW9 1DL, United Kingdom), a division of Reed Business, Registered in England, Number 678540. It contains information which is confidential and may also be privileged. It is for the exclusive use of the intended recipient(s). If you are not the intended recipient(s) please note that any form of distribution, copying or use of this communication or the information in it is strictly prohibited and may be unlawful. If you have received this communication in error please returnit to the sender or call our switchboard on +44 (0) 20 89107910. The opinions expressed within this communication are not necessarily those expressed by Reed Exhibitions. Visit our website at http://www.reedexpo.com


Re: [flexcoders] HTTPService Fault

2005-02-01 Thread Kevin Conboy
Thanks, we're using JRun.



Kevin Conboy
Lead UI Engineer / Office Dullard

SpireMedia®
Inspired Technology. Inspired Results.

vox: 303.620.9974 ext 316
fax: 303.629.6385
[EMAIL PROTECTED]
www.spiremedia.com

On Jan 31, 2005, at 10:04 PM, Jeff Steiner wrote:

Kevin,

 I saw that after installing once.  What J2EE server are you running Flex on?

 I believe that I modified the context_root to point to a different location
 and that it fired right up.  I will look back through my notes and let you
 know tomorrow.

 Jeff
http://www.flexauthority.com

 - Original Message - 
 From: Kevin Conboy [EMAIL PROTECTED]>
 To: flexcoders@yahoogroups.com>
 Sent: Monday, January 31, 2005 2:37 PM
 Subject: [flexcoders] HTTPService Fault



 Hey, all. We just loaded Flex 1.5 on our Solaris 8 server and for every
 Flex sample, we get this error:

 HTTPService Fault;
 java.lang.RuntimeException: Bad service name : FormatSourceService

 Any idea what this is about and how we might get around it? Thanks!


 
 Kevin Conboy
 Lead UI Engineer / Office Dullard

 SpireMedia®
 Inspired Technology. Inspired Results.

 vox: 303.620.9974 ext 316
 fax:  303.629.6385
 [EMAIL PROTECTED]
 www.spiremedia.com
 



 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 the Yahoo! Terms of Service.



RE: [flexcoders] Flex error on WebLogic

2005-02-01 Thread Cathy Murphy



(a) Add -Dtrace.error to the java args for your 
server. This should provide additional information on the 
'macromedia.css.Parser' error. Check the server logs and let us know what 
turns up.

(b) There have been reports of issues with BEA WebLogic 8.1 
and the BEA WebLogic Configuration Wizard usage. The wizard adds several 
libraries to /WEB-INF/lib, including fop.jar. The fop.jar includes a 
manifest which includes batik.jar and xml jars which is causing problems. 
The customer reports the issue is resolved by removing 
fop.jar.

- Cathy



From: Dimitrios Gianninas 
[mailto:[EMAIL PROTECTED] Sent: Tuesday, 
February 01, 2005 11:22 AMTo: 
flexcoders@yahoogroups.comSubject: [flexcoders] Flex error on 
WebLogic

Hi guys,

Some of our developers are playing with Flex on WebLogic for the first 
time. Doing "Hello World" type example works, however trying to bring up the 
Flex explorer we get the attached error.

Using WebLogic 8.1 SP3... anyone experience this? Any 
solution?

Jimmy 
Gianninas - Developer
Optimal Payments Inc.



RE: [flexcoders] Flex + Flashcom + debug player = browser crash

2005-02-01 Thread Matt Chotin








I havent run Christophes
example specifically but my Logitech works on the debug player in the Flashcom
apps Ive written. (both Firefox and IE on SP2).











From: JesterXL
[mailto:[EMAIL PROTECTED] 
Sent: Tuesday, February 01, 2005
7:14 AM
To: [EMAIL PROTECTED]
Subject: Re: [flexcoders] Flex +
Flashcom + debug player = browser crash







Blew up here, too.











WinXP SP2





Flash 7,0,35,29





Firefox 1.0











Would reckon she's the debug player.











- Original Message - 



From: Benoit Hediard 





To: flexcoders@yahoogroups.com






Sent: Tuesday, February
01, 2005 5:49 AM





Subject: [flexcoders] Flex
+ Flashcom + debug player = browser crash













Hi everyone,











Has anyone tried to run the followingFlex+Flashcom
app?





http://coenraets.com/viewarticle.jsp?articleId=90











It's a great example.











Problem : when starting the webcam with the Flash debug
player 7.0.35.21(the one coming with Flex 1.5), it crashes my browser
(Firefox or IE)when I confirm the activation of my webcam
(LogitechQuickCam).





Uninstalling the debug player and installing the
current Flash player 7.0.19.0 solves the problem (webcamcan
beactivated).











Anyone has run successfully the app with a webcam and the
debug player?

















Benoit Hediard











Re: Datagrid hidden columns

2005-02-01 Thread goran187

That works! Thanks.

Goran

--- In flexcoders@yahoogroups.com, Dirk Eismann [EMAIL PROTECTED] 
wrote:
 Yes. you can configure your DataGrid to only show a subset of the 
data that is bound to it. E.g. the following example would only show 
the name and cost fields of the dataProvider:
 
 mx:Script
 var dp:Array = [{cost: 1000, name: Product 1, internalID: 123}, 
{cost: 99, name: Product 2, internalID: 456}];
 /mx:Script
 
 mx:DataGrid dataProvider={dp}
 mx:columns
 mx:Array
 mx:DataGridColumn columnName=name headerText=Product 
name:/
 mx:DataGridColumn columnName=cost headerText=Price:/
 mx:Array
 /mx:columns
 /mx:DataGrid
 
 Dirk.
 
  -Original Message-
  From: goran187 [mailto:[EMAIL PROTECTED]
  Sent: Tuesday, February 01, 2005 5:07 PM
  To: flexcoders@yahoogroups.com
  Subject: [flexcoders] Datagrid hidden columns
  
  
  
  
  Is there a possibility of having hidden columns in a datagrid?
  
  Thanks,
  Goran
  
  
  
  
  
  
  Yahoo! Groups Links
  
  
  
  
  
  
  
 







Re: how can I do this in Flex? -- (warning, best -practice police are in the hou

2005-02-01 Thread Miguel D�az Valenzuela

yeah man, i think that is for me, i will check you suggestion 

many thanks to you Agha

--- In flexcoders@yahoogroups.com, Mehdi, Agha [EMAIL PROTECTED] wrote:
 Miguel,
 
 If I'm right about your question then here's the solution.
 
 The datagrid has 4 columns. One of them has checkboxes in it.
 
 Datagrid = myData
 
 Column1 = select (with checkboxes)
 Column2 = name
 Column3 = age
 Column4 = city
 
 Var selectedData = new Array();
 
 For ( var i = 0; i  myData.length; i++ )
 {
 if ( myData.getItemAt(i).select )
 {
 selectedData.push( myData.getItemAt(i) );
 }
 }
 
 selectedData array will now hold all the items from the datagrid
where the
 checkbox is selected. To get other columnvalues you can simply say:
 
 Name = selectedData[0].name;
 Age = selectedData[0].age;
 
 Please let me know if that's what you wanted.
 
 Thanks
 
 -- Agha
 
 -Original Message-
 From: Miguel D�az Valenzuela [mailto:[EMAIL PROTECTED] 
 Sent: Tuesday, February 01, 2005 7:37 AM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Re: how can I do this in Flex? -- (warning,
 best-practice police are in the hou
 
 
 
 Well, many thanks to you for help me.
 I know about webservice and I have already realized an insert to
datebase
 through Flex with simple textimputs or textareas, but my trouble is
about a
 checkrenderer. I must count records of a datagrid, see which of those
 records they are checked, and extract the value of a column of the above
 mentioned record. In .NET everything is very explicit, but in Flex I
do not
 know that codes to use in the .as code of my .mxml file.
 I know that to count rows of a datagrid i can use rowCount, but for
others
 two tasks I cannot which option use (rowIndex, i don't know) 
 
 sorry for my poor english, and i hope you understand me.
 many thanks in advance
 
 --- In flexcoders@yahoogroups.com, Steven Webster [EMAIL PROTECTED]
wrote:
  Miguel,
  
   Actually i´m learning to use Macromedia Flex and i´m working with 
   a checkrenderer datagrid, but in this moment i have a trouble.
   
   I need to do a insert info a for(...) sentence, but i can´t find 
   correct code for do that.
   
   This is code in .NET
  
  With .NET, it's quite common for the page-technology to embed SQL 
  connection information. This isn't a failing of .NET as such (as 
  there are good practices with ADO.NET and the Microsoft Enterprise 
  Patterns that can be followed) but is a common 2-tier solution
that we 
  see people implementing, especially from an ASP.NET / VB.NET 
  background.
  
  Flex does not offer explicit support for SQL; it is a presentation 
  tier solution, that assumes that any business logic will be performed 
  on the server-side of the wire. So - I would expect you to have some 
  .NET code (VB.NET, C#, etc) that uses the ADO.NET libraries to
perform 
  any SQL queries that you wish to perform, and that this code
reside on 
  your server. You will then expose that business tier logic to Flex 
  (currently) through a WebService interface - if you are using C# for 
  instance, this is a very simple thing to do using metadata tags on
the 
  class that encapsulates your data access.
  
  Once you have defined a service on the server, Flex can then use the 
  WebService tag to invoke that service; rather than build up a SQL 
  query on the client (which is a *very* bad, though frustratingly 
  common practice) you would instead pass the relevant data (such as 
  tipo_mant_id) as an argument in a WebService call, such as 
  agregaDetalleMantencionComputador(),
  and receive the results back from Flex.
  
  Once you have that n-tier architecture in place (Flex is a
replacement 
  for the presentation tier *only*) then how to invoke web services on 
  the server, and how to handle the results that you get back, etc,
will 
  all be much clearer to you from the documentation and (shameless
plug) 
  books that are out there.
  
  So I'm afraid I'd be tempted to suggest that if you want to embrace 
  Flex as a presentation-tier solution, abandon all hopes of 2-tier 
  (database code from your integration tier intermingled with 
  presentation tier code) architecture, and avoid a run-in with the 
  best-practice police...
  
  Hope this helps,
  
  Best,
  
  Steven
  PS. The only other word I know is 'cerveza'
  
  --
  Steven Webster
  Technical Director
  iteration::two
  [EMAIL PROTECTED]
   
  Office: +44 (0)131 338 6108
  Mobile: +44 (0)7977 216 223
   
  This e-mail and any associated attachments transmitted with it may
 contain
  confidential information and must not be copied, or disclosed, or
 used by
  anyone other than the intended recipient(s). If you are not the 
  intended
  recipient(s) please destroy this e-mail, and any copies of it,
 immediately.
   
  Please also note that while software systems have been used to try
 to ensure
  that this e-mail has been swept for viruses, iteration::two do not
 accept
  responsibility for any damage or loss caused in respect of any
viruses 

Re: [flexcoders] Flex + Flashcom + debug player = browser crash

2005-02-01 Thread dave buhler
We had similar problems running LabTec cams on some of the FlashComm
sample apps. The NetConnection Debugger was off for us.


On Tue, 1 Feb 2005 08:45:17 -0800, Matt Chotin [EMAIL PROTECTED] wrote:
 
 
 I haven't run Christophe's example specifically but my Logitech works on the
 debug player in the Flashcom apps I've written. (both Firefox and IE on
 SP2).
 
 
 
 
 
 From: JesterXL [mailto:[EMAIL PROTECTED] 
 Sent: Tuesday, February 01, 2005 7:14 AM
 To: flexcoders@yahoogroups.com
 Subject: Re: [flexcoders] Flex + Flashcom + debug player = browser crash
 
 
 
 
 Blew up here, too.
 
 
 
 
 
 WinXP SP2
 
 
 Flash 7,0,35,29
 
 
 Firefox 1.0
 
 
 
 
 
 Would reckon she's the debug player.
 
 
 
 
 
 - Original Message - 
 
 
 From: Benoit Hediard 
 
 
 To: flexcoders@yahoogroups.com 
 
 
 Sent: Tuesday, February 01, 2005 5:49 AM
 
 
 Subject: [flexcoders] Flex + Flashcom + debug player = browser crash
 
 
 
 
 
 Hi everyone,
 
 
 
 
 
 Has anyone tried to run the following Flex+Flashcom app?
 
 
 http://coenraets.com/viewarticle.jsp?articleId=90
 
 
 
 
 
 It's a great example.
 
 
 
 
 
 Problem : when starting the webcam with the Flash debug player 7.0.35.21
 (the one coming with Flex 1.5), it crashes my browser (Firefox or IE) when I
 confirm the activation of my webcam (Logitech QuickCam).
 
 
 Uninstalling the debug player and installing the current Flash player
 7.0.19.0 solves the problem (webcam can be activated).
 
 
 
 
 
 Anyone has run successfully the app with a webcam and the debug player?
 
 
 
 
 
 
 
 
 Benoit Hediard
 
 
 
 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.




Subclass method signatures *must* match superclass methods?

2005-02-01 Thread foreeldo2001

I have encountered a behavior that *might* be a bug but I wanted to
get some input from folks before submitting it... Perhaps there is a
simple workaround?

One of the major reasons to use Object Oriented Programming is because
we can create abstract, generalized super classes and then create
concrete subclasses that expect and create more specificity.
(Polymorphism)

The way this is implemented in Java (and other strongly-typed
languages) is by using Method Overloading and Method Overriding. A
subclass simply redefines a method with the same name as a superclass
but implements a more specific argument and/or return type.

In ActionScript, we don't get method overloading - Which is fine by me
as it can often lead to a lot of verbose code and probably a
bloated/slower runtime environment since we would then need runtime
type-checking.

When using the Flash IDE, I can write an abstract superclass that
expects or returns a more generic object (Let's say Object for
example). Then I can create a subclass that expects a more specific
implementation of that object. (Let's say ConcreteObject) This would
be known as a simple Method Override...

This fails in Flex because the compiler complains that the subclass
must implement the *same* method signature that is found in the super
class. For a good example, try extending Array and overriding one of
it's built-in methods but accept or return a custom object rather than
Object Object.

That behavior is fine with me - IF - we are ALSO given the ability to
overload methods, but without that capability, this problem renders
the Flex Compiler pretty useless for real, Object-Oriented
architecture because it fundamentally prevents polymorphism.

Hasn't anyone else run into this?

Please forgive me If this has already come up, I would be glad to have
a link to some related conversation if you know of one and I would be
even happier if there is a simple flag or workaround to make this
work.


Thanks,

Luke Bayes
www.asunit.com







Re: [flexcoders] Subclass method signatures *must* match superclass methods?

2005-02-01 Thread JesterXL
My cliche answer is use Composition.

Another way:

import Moo;

class JXLArray extends Array
{
public function push(val):Object
{
return Moo(this.push(val));
}
}

Simply typecast.

Lastly, it doesn't fail; mine compiles; it's just Flex whines, but I still 
can run it.


- Original Message - 
From: foreeldo2001 [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Tuesday, February 01, 2005 4:03 PM
Subject: [flexcoders] Subclass method signatures *must* match superclass 
methods?




I have encountered a behavior that *might* be a bug but I wanted to
get some input from folks before submitting it... Perhaps there is a
simple workaround?

One of the major reasons to use Object Oriented Programming is because
we can create abstract, generalized super classes and then create
concrete subclasses that expect and create more specificity.
(Polymorphism)

The way this is implemented in Java (and other strongly-typed
languages) is by using Method Overloading and Method Overriding. A
subclass simply redefines a method with the same name as a superclass
but implements a more specific argument and/or return type.

In ActionScript, we don't get method overloading - Which is fine by me
as it can often lead to a lot of verbose code and probably a
bloated/slower runtime environment since we would then need runtime
type-checking.

When using the Flash IDE, I can write an abstract superclass that
expects or returns a more generic object (Let's say Object for
example). Then I can create a subclass that expects a more specific
implementation of that object. (Let's say ConcreteObject) This would
be known as a simple Method Override...

This fails in Flex because the compiler complains that the subclass
must implement the *same* method signature that is found in the super
class. For a good example, try extending Array and overriding one of
it's built-in methods but accept or return a custom object rather than
Object Object.

That behavior is fine with me - IF - we are ALSO given the ability to
overload methods, but without that capability, this problem renders
the Flex Compiler pretty useless for real, Object-Oriented
architecture because it fundamentally prevents polymorphism.

Hasn't anyone else run into this?

Please forgive me If this has already come up, I would be glad to have
a link to some related conversation if you know of one and I would be
even happier if there is a simple flag or workaround to make this
work.


Thanks,

Luke Bayes
www.asunit.com






Yahoo! Groups Links










Re: how can I do this in Flex? -- (warning, best -practice police are in the hou

2005-02-01 Thread Miguel D�az Valenzuela

I have a problem, what kind of variable is myData?

sorry for my ignorance

--- In flexcoders@yahoogroups.com, Miguel D�az Valenzuela
[EMAIL PROTECTED] wrote:
 
 yeah man, i think that is for me, i will check you suggestion 
 
 many thanks to you Agha
 
 --- In flexcoders@yahoogroups.com, Mehdi, Agha [EMAIL PROTECTED] wrote:
  Miguel,
  
  If I'm right about your question then here's the solution.
  
  The datagrid has 4 columns. One of them has checkboxes in it.
  
  Datagrid = myData
  
  Column1 = select (with checkboxes)
  Column2 = name
  Column3 = age
  Column4 = city
  
  Var selectedData = new Array();
  
  For ( var i = 0; i  myData.length; i++ )
  {
  if ( myData.getItemAt(i).select )
  {
  selectedData.push( myData.getItemAt(i) );
  }
  }
  
  selectedData array will now hold all the items from the datagrid
 where the
  checkbox is selected. To get other columnvalues you can simply say:
  
  Name = selectedData[0].name;
  Age = selectedData[0].age;
  
  Please let me know if that's what you wanted.
  
  Thanks
  
  -- Agha
  
  -Original Message-
  From: Miguel D�az Valenzuela [mailto:[EMAIL PROTECTED] 
  Sent: Tuesday, February 01, 2005 7:37 AM
  To: flexcoders@yahoogroups.com
  Subject: [flexcoders] Re: how can I do this in Flex? -- (warning,
  best-practice police are in the hou
  
  
  
  Well, many thanks to you for help me.
  I know about webservice and I have already realized an insert to
 datebase
  through Flex with simple textimputs or textareas, but my trouble is
 about a
  checkrenderer. I must count records of a datagrid, see which of those
  records they are checked, and extract the value of a column of the
above
  mentioned record. In .NET everything is very explicit, but in Flex I
 do not
  know that codes to use in the .as code of my .mxml file.
  I know that to count rows of a datagrid i can use rowCount, but for
 others
  two tasks I cannot which option use (rowIndex, i don't know) 
  
  sorry for my poor english, and i hope you understand me.
  many thanks in advance
  
  --- In flexcoders@yahoogroups.com, Steven Webster [EMAIL PROTECTED]
 wrote:
   Miguel,
   
Actually i´m learning to use Macromedia Flex and i´m working
with 
a checkrenderer datagrid, but in this moment i have a trouble.

I need to do a insert info a for(...) sentence, but i can´t find 
correct code for do that.

This is code in .NET
   
   With .NET, it's quite common for the page-technology to embed SQL 
   connection information. This isn't a failing of .NET as such (as 
   there are good practices with ADO.NET and the Microsoft Enterprise 
   Patterns that can be followed) but is a common 2-tier solution
 that we 
   see people implementing, especially from an ASP.NET / VB.NET 
   background.
   
   Flex does not offer explicit support for SQL; it is a presentation 
   tier solution, that assumes that any business logic will be
performed 
   on the server-side of the wire. So - I would expect you to have
some 
   .NET code (VB.NET, C#, etc) that uses the ADO.NET libraries to
 perform 
   any SQL queries that you wish to perform, and that this code
 reside on 
   your server. You will then expose that business tier logic to Flex 
   (currently) through a WebService interface - if you are using C#
for 
   instance, this is a very simple thing to do using metadata tags on
 the 
   class that encapsulates your data access.
   
   Once you have defined a service on the server, Flex can then use
the 
   WebService tag to invoke that service; rather than build up a SQL 
   query on the client (which is a *very* bad, though frustratingly 
   common practice) you would instead pass the relevant data (such as 
   tipo_mant_id) as an argument in a WebService call, such as 
   agregaDetalleMantencionComputador(),
   and receive the results back from Flex.
   
   Once you have that n-tier architecture in place (Flex is a
 replacement 
   for the presentation tier *only*) then how to invoke web
services on 
   the server, and how to handle the results that you get back, etc,
 will 
   all be much clearer to you from the documentation and (shameless
 plug) 
   books that are out there.
   
   So I'm afraid I'd be tempted to suggest that if you want to embrace 
   Flex as a presentation-tier solution, abandon all hopes of 2-tier 
   (database code from your integration tier intermingled with 
   presentation tier code) architecture, and avoid a run-in with the 
   best-practice police...
   
   Hope this helps,
   
   Best,
   
   Steven
   PS. The only other word I know is 'cerveza'
   
   --
   Steven Webster
   Technical Director
   iteration::two
   [EMAIL PROTECTED]

   Office: +44 (0)131 338 6108
   Mobile: +44 (0)7977 216 223

   This e-mail and any associated attachments transmitted with it may
  contain
   confidential information and must not be copied, or disclosed, or
  used by
   anyone other than the intended recipient(s). If you are not the 
   intended
   

ChangeEvent on component in mxml component

2005-02-01 Thread James Ward
Hi everyone.

I have a mxml component with a ValueObject in it. I am binding to the
valueobject where I use the component. How can I generate an event when
the data changes?

My code is something like this:

MyComponent data={asdf}/

in MyComponent.mxml I have something like:

ValueObject id=data/

ValueObject is a .as file.


So how do I generate an event when {asdf} changes?

Thanks in advance.

-James






RE: [flexcoders] Fundamental bug in FlexBuilder 1.5?

2005-02-01 Thread Vinny Timmermans



Aral 
BalkanManaging Director, Ariaware Ltd.Best Practices Flash 
 Flex Development course - March, 2005. London UKTel: +44 (0) 870 
7542240Fax:+44 (0) 870 7542240Mob: +44 (0) 779 
5551278


Web: http://www.Ariaware.com 
Blog: http://www.FlashAnt.org 
Macromedia Certified InstructorFlash MX 2004 
Advanced ActionScript DevelopmentFlash MX 2004 Professional ActionScript 
Development
Director of Educational Content - Ultrashock 
Author - Friends of 
ED, Macromedia DevNet 
Director - London MMUG 
C'mon Aral, 
don't be so modest. Give us thecomplete list ;-)

Best,

Vinny


From: Aral Balkan [mailto:[EMAIL PROTECTED] 
Sent: dinsdag 1 februari 2005 12:29To: 
flexcoders@yahoogroups.comSubject: [flexcoders] Fundamental bug in 
FlexBuilder 1.5?
Hi all,Long-time lurker, first-time poster... I wanted to 
draw your attention to an issue that I'm having with Flex Builder: Basically, 
the Preview/Run/Debug functionality stops working when you subclass 
mx.core.Application and/or mx.containers.Form in your applications.Of 
course this is a perfectly legal thing to do and, actually, the ARP framework 
will be recommending this as a best practice (among other things, it makes 
migrating from Flash to Flex child's play.) It also gets around having to mix 
code into your MXML files -- which is a nasty practice akin to how we used to 
#include script files in ActionScript 1 in Flash. In any case, this is a 
fundamental use case and it appears that Flex Builder doesn't currently support 
it. I posted about this on my blog in more detail, with a barebones sample to 
demonstrate the bug:http://www.flashant.org/index.php?p=273more=1c=1I 
am still holding out hope that there is a way to override this default behavior 
in Flex Builder to tell it that it's ok to preview a subclass of 
Application/Form but I haven't been able to find such a way using the 
Dreamweaver extensibility APIs. Perhaps someone from the Flex team will 
have a potential solution/workaround for this.All the 
best,Aral
-- Aral 
BalkanManaging Director, Ariaware Ltd.Best Practices 
Flash  Flex Development course - March, 2005. London UKTel: +44 (0) 
870 7542240Fax:+44 (0) 870 7542240Mob: +44 (0) 779 
5551278

Web: http://www.Ariaware.com 
Blog: http://www.FlashAnt.org 

Macromedia Certified InstructorFlash MX 2004 Advanced 
ActionScript DevelopmentFlash MX 2004 Professional ActionScript 
Development
Director of Educational Content - Ultrashock 
Author - Friends of ED, 
Macromedia DevNet 
Director - London MMUG