Re: [flexcoders] We need Flex SDK beta testers for Linux

2006-12-04 Thread Carlos Rovira

Hi Matt,

I send this call to arms to some expert linux people to see if they are
interested or know other linux guys that would be interested as well.

Best,

C.


On 12/5/06, Matt Chotin <[EMAIL PROTECTED]> wrote:


  We need testers who can install the Linux Debug Player and build Flex
apps using the Flex SDK. We're looking for folks who can test their own
apps (including using fdb) as well as visiting other sites that use
Flash.

Please mail me, [EMAIL PROTECTED]  if interested.
 





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


Re: [flexcoders] Function Error

2006-12-04 Thread Lachlan Cotter
Your validateForm() function tries to call a method on a variable  
which is null.  I'm not sure exactly where you have gone wrong as  
your example code is incomplete. Set a break point in the validateForm 
() function and run it in the debugger so you can which line throws  
the error.


Cheers,
Lach


On 05/12/2006, at 11:59 AM, jmfillman wrote:


When I click on the Submit button, I get the following error:

"TypeError: Error #1009: Cannot acces a property or method of a null
object reference.
at main/validateForm()
at main/__btnFormSign_click()"

What am I doing wrong?







[flexcoders] List component and state change events

2006-12-04 Thread Lachlan Cotter
Hi,

I have a List control with custom item renderers. The renders have  
two alternate states and I am using a transition to move between them.

The problem seems to be that when the list is scrolled, state change  
events get fired on the renderers which have just come into view. I  
think I remember reading that the list controls only use enough  
renders to display the items which are actually visible at any point,  
so I am guessing it has something to do with this.

The consequence is that the transition gets fired on those renderers  
even though no actual state change has occurred.

Any ideas?

Cheers,
Lach



[flexcoders] Returning values from objects on another canvas

2006-12-04 Thread michrx7
How does one go about referencing objects on another canvas? For 
example I have a tab navigator with 4 tabs:
Register
Attendees
Membership
Payment Options

Inside the attendees tab I have a canvas: csAttendee with a datagrid: 
dgselectedOptions

When the user submits the "pay" button on the payment options tab I 
call a function to validate their input and try and reference the 
columns array for the datagrid dgselectedOptions.

Using csAttendee.dgselectedOptions gives me an error when I try to 
compile of "Access of possibly undefined property dgselectedOptions 
through a reference with static type mx.containers:Canvas."

If I try Attendees.csAttendee.dgselectedOptions gives me "Access of 
possibly undefined property csAttendee through a reference with 
static type mx.containers:Canvas."

If I try just dgselectedOptions it compiles, but when I click my 
payment button it gives: "Cannot access a property or method of a 
null object reference." Even though I can click on the Attendees tab 
and the datagrid is there and populated.



RE: [flexcoders] Re: Mercury QT Pro - LoaderRunner + Flex

2006-12-04 Thread Lance Linder
Matt, Jun,

Thanks for the information/heads up. There seems to be little too no 
information on this subject so it is good news to hear things are on a forward 
track!

This week I am going to be in a web seminar that Mercury is putting on and I am 
sure I will get lots of info about QT Pro. Depending on the out come of that I 
will get in touch about the beta QT Pro/Flex testing framework.

So far Mercury's products seem the best fit at this time given there is work 
towards both functional GUI testing and possible AMF3 support from one vendor.

Since the services we need to load test are rather simple I am going to look at 
down grading them to AMF0 so that I can use LoadRunner with them today. I 
really do like the Flex Stress Testing frame work as well which I took a look 
at this last Friday and Saturday, however I never did get it to fully work but 
the idea looks promissing :) I think my biggest concern with it (besides 
getting it to work) is how many machines I would need to perform a large scale 
load test (7,000 to 10,000 users with 30-40 small AMF requests each over 3-10 
minutes). I am not totally sure if I even have enough machines available to do 
a test of that size with LoadRunner but I figured it would probably be better 
suited for a larger scale test like this than Flex Stress Testing Framework. 
Can anyone from Adobe comment on the performance of the Flex Stress Testing 
Framework and whether it will scale that high on a dual 3.4ghz 3GB ram box as 
the test server with 20-30 client machines running as many instances of the 
test as physically possible? The system it is testing against is a IIS web farm 
with multiple back end load balanced MS SQL 2005 databases. Since the web farm 
doesn't have FDS installed it isn't an option to use a portion of it as the 
Flex Stress Testing server so I will have to rely on other high end workstation 
for this alone.

Thanks!
Lance




-Original Message-
From: flexcoders@yahoogroups.com on behalf of Matt Chotin
Sent: Mon 12/4/2006 8:37 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Re: Mercury QT Pro - LoaderRunner + Flex
 
We have a beta running for the QTP plugin.  You can mail me to get on it
(I need first/last/email) but it will actually be closing down pretty
soon as the release is in early 2007 and that's coming right around the
corner :-)  

 

Mercury is working to get LoadRunner to support AMF3 but I don't know
the timeframe of when that might be available.  In the meantime we just
posted the load-testing tool that we use internally on Labs:
http://labs.adobe.com/wiki/index.php/Flex_Stress_Testing_Framework

 

Matt

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of coderjun
Sent: Monday, December 04, 2006 4:19 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Mercury QT Pro - LoaderRunner + Flex

 

Lance,

>From what I've heard through the grapevine, you can request the Quick
Test Pro Flex plugin from Adobe.  However I'm not exactly sure who to
contact for it. Maybe someone else in the group has this info or has
received the plugin before?

In regard to LoadRunner and AMF3 support, I have been working with a
client that had this same question.  Basically, the answer from Mercury
tech support was that AMF3 encoding was not supported and the workaround
was for them to  downgrade to the AMF0 encoding...which of course is not
an option if your using AMF3-only supported features:

"AMF3 supports sending int and uint  objects as integers and supports
data types that are available only in ActionScript 3.0, such as
ByteArray, XML, and IExternalizable."*

* Taken from:
http://livedocs.macromedia.com/labs/as3preview/langref/flash/net/ObjectE
ncoding.html

Here's a link if you! decide to go the AMF0 route:
http://livedocs.macromedia.com/flex/2/docs/wwhelp/wwhimpl/common/html/ww
help.htm?context=LiveDocs_Parts&file=1105.html

Also, you can run "AMF" and "object encoding" searches on the Flex 2
livedocs site for more info.

Hope that helps some,
Jun

--- In flexcoders@yahoogroups.com, "Lance Linder" <[EMAIL PROTECTED]> wrote:
>
> Anyone using or had success with trying Quick Test Pro with Flex? This
> was something I wanted to evaluate ever since Macromedia/Adobe
announced
> they were working with Mercury back in October of 2005. Since the beta
> release of Flex I really haven't heard anything more about this other
> than some info that there might be better support between the two once
> Flex 2.1 is released. Can anyone comment on this that has tried to use
> Quick Test Pro with Flex 2.0?
> 
> 
> 
&! gt; Also I really really need a good load testing tool and Loa!
dRunner looks
> like the ticket especially since I am already interested in Quick Test
> Pro. Has anyone used LoadRunner with AMF3 or does LoadRunner even work
> with AMF3? Right now I am not so concerned about RTMP but AMF3 is a
> must. It seems that SilkTest from Borland supports AMF3 but I would

RE: [flexcoders] Best practices for displaying large texts

2006-12-04 Thread Gordon Smith
> I don't know of a way to do justified text in Flex

 

textAlign="justify" works on  and , although it
isn't mentioned in the ASDoc for the textAlign style or in FlexBuilder's
codehints for this style.

 

See the flash.text.TextFormatAlign class in the ASDoc.

 

- Gordon

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Lachlan Cotter
Sent: Friday, December 01, 2006 9:27 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Best practices for displaying large texts

 

Hi Pablo,

 

I'm not sure this is the best answer to your question but as far as I
know the Text component is the right choice for displaying multi-line,
non-editable text. If you want your users to be able to edit the text,
you can use a TextArea instead.

 

I'm don't know of a way to do justified text in Flex. Sorry.

 

Lach

 

On 30/11/2006, at 12:15 AM, Pablo Apanasionek wrote:





Hey,

 

I'm trying to figure out the best (or at least optimal) way to display a
large text (e.g. a news article) with several paragraphs using Flex 2.
Would a Text control be the right one to use? Or is there another
technique that would render better? Is there any way to justify text on
-both- sides?

 

Thanks in advance,

Pablo Gustavo Apanasionek

 

 



[flexcoders] Function Error

2006-12-04 Thread jmfillman
When I click on the Submit button, I get the following error:

"TypeError: Error #1009: Cannot acces a property or method of a null 
object reference.
at main/validateForm()
at main/__btnFormSign_click()"

What am I doing wrong?







[flexcoders] removeNamespace() and the default namespace in XML

2006-12-04 Thread shagenlo
Hello,

I realize this topic was covered a bit in a thread titled "Namespace
hell", however I didn't see a resolution to a lingering question.  Is
there any way to use the removeNamespace() method of the XML class to
remove the default namespace (the namespace without a prefix)?

I would like to do this, because i have an object heirarchy which
represents an unstructured XML document (not a recordset).  In
serializing the object structure, the new XML can get littered with
namespace declares, it would be easier to simply remove the original
default namespace and be done with it.  Name collisions are not a
concern for me, but the fact that removeNamespace() doesn't work with
the default namespace is.  Is there an answer other than RegEx on the
xml string?

Cheers,
Steve



Re: [flexcoders] many-to-many managed association in Hibernate destination

2006-12-04 Thread Douglas McCarroll
Thanks. I'll let you know how it goes.


Jeff Vroom wrote:
>
> Ø Do I need a fourth destination for the FilmActorID class?
>
> Nope, that instance is managed by the FilmActor destination. It does 
> not have its own “id” so it can’t be in a separate destination.
>
> Jeff
>
>  



--
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] many-to-many managed association in Hibernate destination

2006-12-04 Thread Jeff Vroom
*  Do I need a fourth destination for the FilmActorID class?

 

Nope, that instance is managed by the FilmActor destination.   It does
not have its own "id" so it can't be in a separate destination. 

 

Jeff



RE: [flexcoders] Re: Mercury QT Pro - LoaderRunner + Flex

2006-12-04 Thread Matt Chotin
We have a beta running for the QTP plugin.  You can mail me to get on it
(I need first/last/email) but it will actually be closing down pretty
soon as the release is in early 2007 and that's coming right around the
corner :-)  

 

Mercury is working to get LoadRunner to support AMF3 but I don't know
the timeframe of when that might be available.  In the meantime we just
posted the load-testing tool that we use internally on Labs:
http://labs.adobe.com/wiki/index.php/Flex_Stress_Testing_Framework

 

Matt

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of coderjun
Sent: Monday, December 04, 2006 4:19 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Mercury QT Pro - LoaderRunner + Flex

 

Lance,

>From what I've heard through the grapevine, you can request the Quick
Test Pro Flex plugin from Adobe.  However I'm not exactly sure who to
contact for it. Maybe someone else in the group has this info or has
received the plugin before?

In regard to LoadRunner and AMF3 support, I have been working with a
client that had this same question.  Basically, the answer from Mercury
tech support was that AMF3 encoding was not supported and the workaround
was for them to  downgrade to the AMF0 encoding...which of course is not
an option if your using AMF3-only supported features:

"AMF3 supports sending int and uint  objects as integers and supports
data types that are available only in ActionScript 3.0, such as
ByteArray, XML, and IExternalizable."*

* Taken from:
http://livedocs.macromedia.com/labs/as3preview/langref/flash/net/ObjectE
ncoding.html

Here's a link if you! decide to go the AMF0 route:
http://livedocs.macromedia.com/flex/2/docs/wwhelp/wwhimpl/common/html/ww
help.htm?context=LiveDocs_Parts&file=1105.html

Also, you can run "AMF" and "object encoding" searches on the Flex 2
livedocs site for more info.

Hope that helps some,
Jun

--- In flexcoders@yahoogroups.com, "Lance Linder" <[EMAIL PROTECTED]> wrote:
>
> Anyone using or had success with trying Quick Test Pro with Flex? This
> was something I wanted to evaluate ever since Macromedia/Adobe
announced
> they were working with Mercury back in October of 2005. Since the beta
> release of Flex I really haven't heard anything more about this other
> than some info that there might be better support between the two once
> Flex 2.1 is released. Can anyone comment on this that has tried to use
> Quick Test Pro with Flex 2.0?
> 
> 
> 
&! gt; Also I really really need a good load testing tool and Loa!
dRunner looks
> like the ticket especially since I am already interested in Quick Test
> Pro. Has anyone used LoadRunner with AMF3 or does LoadRunner even work
> with AMF3? Right now I am not so concerned about RTMP but AMF3 is a
> must. It seems that SilkTest from Borland supports AMF3 but I would
> rather stick with a vendor that has both functional GUI test tools and
> load test tools that meet my requirements.
> 
> 
> 
> Thanks!
> 
> Lance
>

 



RE: [flexcoders] many-to-many managed association in Hibernate destination

2006-12-04 Thread Jeff Vroom
Hi Douglas,

I misspoke on one of my recommendations:

> One more thing is that because you are using a "complex"
> object type as an identity property, your FilmActor.as
> class will need a function like:
> public function toString():String
> {
> return actorId + ":" + filmId
> }

I meant to say add this to the FilmActorId.as class.  Sorry about that! 

> Two more questions:

> 1. This would be so much easier if I had a working example to work
from. 
> I haven't found any examples that use the 'managed associations' 
> approach - with one-to-many or many-to-many relationships. Jeff, do
you 
> know of any? Does anyone?

Let me see if I can dig something up.  We have a few applications folks
built internally here that use hibernate with managed associations.  It
may take a bit of cleaning up to get it so they can be given out. 

> 2. Victor Rubba has been kind enough to show me some code that he has 
> that implements a many-to-many relationship with a link table. His
link 
> table has a numeric id column, which allows his code to avoid the
whole 
> "complex id" issue. Thus his destination config avoids 'composite-id'.

> Everything is much simpler. :-) (!) But we're wondering if this
approach 
> is "correct", or if it's more correct to have a link table that only 
> contains IDs from the linked tables, i.e. a composite ID.

Both of those approaches work and so are correct in a certain sense.
Probably most DBAs would prefer the link table which only has the ids
from the linked tables since that extra id column is not strictly
necessary.  Note that FDMS supports Java/Actionscript objects which have
more than one id property but I think hibernate requires that all id
columns are stored in the same property in Java.  I am not sure about
that...

Jeff

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Douglas McCarroll
Sent: Monday, December 04, 2006 6:00 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] many-to-many managed association in Hibernate
destination

Hi Jeff,

 > Ok, so I think I see the problem then...

Thanks for the response. I'm having some trouble applying this to my 
particular case and would like to check a bit to make sure that we're on

the same page.


Here's my question:



If I run HibernateTools on a many-to-many table relationship with a link

table - as shown here: 
http://www.brightworks.com/technology/tech_questions/hibernate_lazy_asso
ciations/index.html 
- it creates a Java file like this:



FilmActor.java

package com.brightworks.apps.dvd_store;

import java.util.Date;

public class FilmActor {

private FilmActorId id;
private Film film;
private Actor actor;
private Date lastUpdate;

public FilmActor() {
}

public FilmActor(FilmActorId id, Film film, Actor actor, Date
lastUpdate) {
this.id = id;
this.film = film;
this.actor = actor;
this.lastUpdate = lastUpdate;
}

public FilmActorId getId() {
return this.id;
}

public void setId(FilmActorId id) {
this.id = id;
}

public Film getFilm() {
return this.film;
}

public void setFilm(Film film) {
this.film = film;
}

public Actor getActor() {
return this.actor;
}

public void setActor(Actor actor) {
this.actor = actor;
}

public Date getLastUpdate() {
return this.lastUpdate;
}

public void setLastUpdate(Date lastUpdate) {
this.lastUpdate = lastUpdate;
}

}




The link table uses actor_id and film_id columns to link to the other 
two tables.

But a FilmActor.java instance has:

a) References to the Actor and Film instances that it is linking
b) An instance of FilmActorId.java. This class obviously acts as the 
"ID" for FilmActor.java and contains ActorId and FilmId values. It's 
described in the mapping file like this:













You wrote:

 > One more thing is that because you are using a "complex"
 > object type as an identity property, your FilmActor.as
 > class will need a function like:

When you say "complex object type" I assume that you're referring
to FilmActorId. Am I correct so far?

But I run into a problem here:

 > public function toString():String
 > {
 > return actorId + ":" + filmId
 > }


My FilmActor.as looks like this:


package com.brightworks.apps.dvd_store.vo
{
[Managed]
[RemoteClass(alias="com.brightworks.apps.dvd_store.FilmActor")]

public class FilmActor
{
public function FilmActor() {}

public var filmActorId:FilmActorId;
public var film:Film;
public var actor:Actor;
public var lastUpdate:Date;
}
}


I wrote it to simply reflect FilmActor.java's structure.

It has no actorId or filmId, so I can't do "return actorId + ":" +
filmId"

I could add these properties, but I don't see how/why they'd get int 
values from FilmActor.java. Would FDMS or Hibernate know enough to pull 
them out of the FilmActor.java's "complex ID"?

 > you could potentially implement the Film/Actors relationship
 > without an intermediate FilmActors class - both hibernate
 > and FDMS will support that and since you do not have any
 > additional properties in the mapping table, 

[flexcoders] Re: FDS on the desktop?

2006-12-04 Thread benjidudu
Perfect, it works like a charm.
Thanks for the help,


Benjamin.

P.S.: embedded SWFs can access both local files and remote networks,
seems they are a little special.


--- In flexcoders@yahoogroups.com, "Peter Farland" <[EMAIL PROTECTED]> wrote:
>
> SWFs by default can either choose to access the file system or the
> remote network (e.g. requests made for data via HTTP), but not both.
> Flex compilers produce swfs that elect to use the network by default.
>  
> Apart from that, there's no reason why you can't run a SWF from the
> desktop (the .mxml -> .swf conversion via FDS Webtier compiler is a
> development time convenience).
>  
> Some things to consider though... if you're using Flex Builder or the
> mxml command line compiler you'll probably need to provide the command
> line argument -services to point to the
> /WEB-INF/flex/services-config.xml file so that it can compile in the
> channel definitions for you (assuming you are not creating your own
> ChannelSets programmatically or you are using the DataService API).
> Also, you will need to edit each relevant channel-definition endpoint
> defined in services-config.xml file so that a fully qualified URL is
> defined - i.e. you can't rely on the {server.name}, {server.port} or
> {context.root} tokens for portability. 
>  
> Pete
> 
> 
> 
> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
> Behalf Of benjidudu
> Sent: Monday, December 04, 2006 2:23 AM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] FDS on the desktop?
> 
> 
> 
> Hi,
> 
> I am doing a desktop application with an embedded swf. I'd like using
> FDS but all I read is about mxml or swf files in the server along FDS.
> Is it possible using FDS with swf files not on the FDS server? If yes,
> how do you do that?
> 
> Thanks,
> 
> Benjamin.
>



Re: [flexcoders] many-to-many managed association in Hibernate destination

2006-12-04 Thread Douglas McCarroll
Hi Jeff,

 > Ok, so I think I see the problem then...

Thanks for the response. I'm having some trouble applying this to my 
particular case and would like to check a bit to make sure that we're on 
the same page.


Here's my question:



If I run HibernateTools on a many-to-many table relationship with a link 
table - as shown here: 
http://www.brightworks.com/technology/tech_questions/hibernate_lazy_associations/index.html
 
- it creates a Java file like this:



FilmActor.java

package com.brightworks.apps.dvd_store;

import java.util.Date;

public class FilmActor {

private FilmActorId id;
private Film film;
private Actor actor;
private Date lastUpdate;

public FilmActor() {
}

public FilmActor(FilmActorId id, Film film, Actor actor, Date lastUpdate) {
this.id = id;
this.film = film;
this.actor = actor;
this.lastUpdate = lastUpdate;
}

public FilmActorId getId() {
return this.id;
}

public void setId(FilmActorId id) {
this.id = id;
}

public Film getFilm() {
return this.film;
}

public void setFilm(Film film) {
this.film = film;
}

public Actor getActor() {
return this.actor;
}

public void setActor(Actor actor) {
this.actor = actor;
}

public Date getLastUpdate() {
return this.lastUpdate;
}

public void setLastUpdate(Date lastUpdate) {
this.lastUpdate = lastUpdate;
}

}




The link table uses actor_id and film_id columns to link to the other 
two tables.

But a FilmActor.java instance has:

a) References to the Actor and Film instances that it is linking
b) An instance of FilmActorId.java. This class obviously acts as the 
"ID" for FilmActor.java and contains ActorId and FilmId values. It's 
described in the mapping file like this:













You wrote:

 > One more thing is that because you are using a “complex”
 > object type as an identity property, your FilmActor.as
 > class will need a function like:

When you say "complex object type" I assume that you're referring
to FilmActorId. Am I correct so far?

But I run into a problem here:

 > public function toString():String
 > {
 > return actorId + “:” + filmId
 > }


My FilmActor.as looks like this:


package com.brightworks.apps.dvd_store.vo
{
[Managed]
[RemoteClass(alias="com.brightworks.apps.dvd_store.FilmActor")]

public class FilmActor
{
public function FilmActor() {}

public var filmActorId:FilmActorId;
public var film:Film;
public var actor:Actor;
public var lastUpdate:Date;
}
}


I wrote it to simply reflect FilmActor.java's structure.

It has no actorId or filmId, so I can't do "return actorId + “:” + filmId"

I could add these properties, but I don't see how/why they'd get int 
values from FilmActor.java. Would FDMS or Hibernate know enough to pull 
them out of the FilmActor.java's "complex ID"?

 > you could potentially implement the Film/Actors relationship
 > without an intermediate FilmActors class – both hibernate
 > and FDMS will support that and since you do not have any
 > additional properties in the mapping table, it is pretty
 > common to avoid an extra type.

I also have questions about this but I think I'll hold off for now. Best 
to get the other case working first, I think. Frankly, I don't know 
Hibernate very well. My current learning strategy is to assume that 
HibernateTools is generating reasonably correct code, and to focus on 
learning how to implement the FDMS/H8 connection. Later, I'll be 
learning more about Hibernate.

Two more questions:

1. This would be so much easier if I had a working example to work from. 
I haven't found any examples that use the 'managed associations' 
approach - with one-to-many or many-to-many relationships. Jeff, do you 
know of any? Does anyone?

2. Victor Rubba has been kind enough to show me some code that he has 
that implements a many-to-many relationship with a link table. His link 
table has a numeric id column, which allows his code to avoid the whole 
"complex id" issue. Thus his destination config avoids 'composite-id'. 
Everything is much simpler. :-) (!) But we're wondering if this approach 
is "correct", or if it's more correct to have a link table that only 
contains IDs from the linked tables, i.e. a composite ID.


Thanks,

Douglas


Jeff Vroom wrote:
>
> Hi Douglas,
>
> Ok, so I think I see the problem then – my apologies for not seeing it 
> sooner. The FDMS destination does not have a destination for the 
> “filmActors” type. Also, the property: “Actor.filmActors” has this 
> association tag:
>
> 
> property="filmActors"
>
> destination="film.hibernate"
>
> lazy="true" />
>
> it should instead refer to the new filmActors.hibernate destination 
> you would add. This type would have its identity property with the 
> name “id” and would have lazy one-to-one association properties both 
> for “film” and “actor” which refer to the destinations 
> “film.hibernate” and “actor.hibernate”. One more thing is that because 
> you are using a “complex” object type as an identity property, your 
> FilmActor.as class will need a function like:
>
> public function toString():Stri

Re: [flexcoders] We need Flex SDK beta testers for Linux

2006-12-04 Thread Igor Costa

Math

I'm not sure if you help in any step. but a friend of mine did a good serie
of article on how to use Flex 2 SDK in unbuntu distro.

http://www.igorcosta.com/flex2/flex_2sdk_ubuntu.html

We've done some in 3 parts this is the second I sent you the link. the only
problem to the others at the community it's because wroted in portuguese
version.

So anyway, if you could send some information to his e-mail, it's good, I
will alert him about this.


Regards.



On 12/4/06, Matt Chotin <[EMAIL PROTECTED]> wrote:


  We need testers who can install the Linux Debug Player and build Flex
apps using the Flex SDK. We're looking for folks who can test their own
apps (including using fdb) as well as visiting other sites that use
Flash.

Please mail me, [EMAIL PROTECTED]  if interested.
 





--

Igor Costa
www.igorcosta.com


[flexcoders] We need Flex SDK beta testers for Linux

2006-12-04 Thread Matt Chotin
We need testers who can install the Linux Debug Player and build Flex
apps using the Flex SDK. We're looking for folks who can test their own
apps (including using fdb) as well as visiting other sites that use
Flash.

Please mail me, [EMAIL PROTECTED] if interested.


Re: [flexcoders] FDS Environment Challenge Questions!

2006-12-04 Thread hank williams

On 12/4/06, Jeff Vroom <[EMAIL PROTECTED]> wrote:


   Comments inline:


1) Without using Peter's FDS Plugin, what is the easiest way to deploy
a FDS-enabled project as http://localhost:8080/ or
http://localhost:8080/ProjectName/? Every example I've been able to
find has it coming out of the flex.war as
http://localhost:8080/Flex/ProjectName/

 When you are deploying a web application (.war), you specify the
context-root in app-server specific configuration.  Most of them have a way
to specify a single "default web application", i.e. with a context-root of
"/".   For tomcat, this is in the server.xml file I think.




Yes, this is in the server.xml file. You specify a host element and make the
appBase attribute say "webapps/yourWebappName"

The problem is that you cant here say
webapps/youbWebappName/Yourflexappname. This means that you need to put the
welcome index.html file at the root of the webapp, which flexbuilder will
not automatically do.

Regards
Hank


RE: [flexcoders] Fade from one color to another

2006-12-04 Thread Deepa Subramaniam
Ah - that is because AnimateProperty is just cycling through all the RGB
values between your fromValue color and your endValue color. What you
may want to do is add an event handler for the tweenUpdate event on the
AnimateProperty effect instance and check to see what the value passed
in the TweenEvent object is. That value is what the backgroundColor is
at that moment in the lifetime of the effect. You can then add in your
own logic that sets the backgroundColor depending on where the effect is
in its lifetime (ie: simulate a progression from dark gray to light
gray). I'm not 100% sure how that will work out but I'd be interested in
finding out what doesn't work about it.

 

Incidentally, you should check out Alex Uhlmann's Animation Package
where I think he has an effect that does exactly what you want. That
will probably be easier :-) 

http://www.alex-uhlmann.de/flash/animationpackage/

 

-deepa

 

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of dorkie dork from dorktown
Sent: Monday, December 04, 2006 2:31 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Fade from one color to another

 

i see. that mostly works. except now it cycles through every color
giving a flicker effect like i am on acid. try this to see:


http://www.adobe.com/2006/mxml
 " layout="absolute"
styleName="plain"
creationCompleteEffect="{fadeColor}">



If i change the fromValue and the toValue to a two digit number like so
it is a very smooth transition but it does not fade from white.  It only
fades from blue. Try this: 



I am thinking of just transitioning to a blank black state but that
feels like a hack. 

dorkie best practices dork from dorktown

On 12/4/06, Deepa Subramaniam <[EMAIL PROTECTED]
 > wrote:

Set the the isStyle property to true in your AnimateProperty tag. 

 

-deepa

 



From: flexcoders@yahoogroups.com 
[mailto:flexcoders@yahoogroups.com  ]
On Behalf Of dorkie dork from dorktown
Sent: Monday, December 04, 2006 5:25 AM
To: flexcoders@yahoogroups.com  
Subject: [flexcoders] Fade from one color to another

 

I need to fade my application background color from 0xC47D31 to 0x67DEF9
and I have no idea where to start. I've seen AS2 actionscript around
that I can try to convert but what I'm looking for is a already built
MXML component Effect, similar to mx:Fade or Dissolve. 

I tried this and received errors:
creationCompleteEffect="{fadeColor}">
 

ReferenceError: Error #1069: Property backgroundColor not found on
TestApplication and there is no default value.
at
mx.effects.effectClasses::AnimatePropertyInstance/::getCurrentValue()

dorkie mood changing dork from dorktown 



 

 



Re: [flexcoders] FLV Duration

2006-12-04 Thread The Morans
You could pass everything through FLVTool2 on the server to inject  
metadata...problem solved!


This is something we do with flvs made from ffmpeg.

sean

http://inlet-media.de/flvtool2


On Dec 4, 2006, at 2:45 PM, Stacy Young wrote:

I’m curious to know myself, I will poke around. In the meantime … 
I’d also post this to flashcoders. Since we’re talking Actionscript  
specifically, there’s a much higher percentage of folks on there  
that work with video.




http://chattyfig.figleaf.com/mailman/listinfo/flashcoders



Cheers,

Stace



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

Sent: Monday, December 04, 2006 4:13 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] FLV Duration



Is there an easy way to figure out the duration of an FLV thati s
being played? I have been looking at the NetStream object and the
onMetaData event, but it seems like the FLV does not always have the
metadata set. The FLVs I want to play are created my other people, so
there is no way to force them to add the metadata. is there any way
to easily get around this?








RE: [flexcoders] Adding Labels to the PlotSeries

2006-12-04 Thread Ely Greenfield
 
 
Hi Denis.  No, the default series types don't support labels by default.
You have a couple of choices:
 
1) write a custom item renderer, that adds a label next to each point.
This shouldn't be too difficult, but you won't have any guarantee that
an automatically generated axis range will be large enough to show the
labels.
 
2) write a custom series/ extension to the plot series.  This will solve
the problem of #1, but requires a bigger investment in learning how the
charts work.
 
3) use the prototype code I just posted
(http://www.quietlyscheming.com/blog/2006/12/04/some-thoughts-and-exampl
es-on-making-custom-flex-charts-simpler/) to 'draw' a label next to each
data point. There's a sample at that link that does exactly that, with a
column series. It would be trivial to adapt that to work with a
PlotSeries.  This is the easiest approach, but least performant.
depending on how much data you're trying to show, it might suit your
needs perfectly. Try it out.
 
Ely.
 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Denis
Sent: Monday, December 04, 2006 2:49 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Adding Labels to the PlotSeries



The project I am working on need to be able to show a label next to
each plotseries item on the chart. From what I can see, there is no
interface supported by PlotSeries class to accomodate this. Can
someone help me how to do this? I am not very experienced so examples
are appreciated a lot!!! Thanks in advance



 


RE: [flexcoders] Feature request: dependant bindings meta-data

2006-12-04 Thread Matt Chotin
Feature requests can go to http://www.adobe.com/go/wish.

 

If you know the name of the event generated for [Bindable] you can
simply put multiple bindable statements on the fullName property:

 

[Bindable(event="firstNameChanged")]

[Bindable(event="lastNameChanged")]

Public function get fullName():String {...

 

I don't remember if we document what the event naming pattern will be.

 

Matt



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Lachlan Cotter
Sent: Monday, December 04, 2006 3:42 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Feature request: dependant bindings meta-data

 

Hi Adobe Team,

 

Is this the right forum to talk about Flex Builder features? I have
often found myself in situations where it would be very handy to say
something like this.

 

[Bindable] public var firstName:String;

[Bindable] public var lastName:String;

 

[Bindable(basedOn='firstName,lastName')]

public function get fullName ():String {

return firstName + ' ' + lastName;

}

 

The idea being that when a binding for firstName or lastName changes,
the dependant binding fullName will also get fired. The only way I know
to do this with the current tools is:

 

private var _firstName:String;

private var _lastName:String;

 

[Bindable] public function get firstName():String {

return _firstName;

}

 

public function set firstName(str:String):void {

_firstName = str;

dispatchEvent(new PropertyChangeEvent('fullNameChanged');

}

 

[Bindable] public function get lastName():String {

return _lastName;

}

 

public function set lastName(str:String):void {

_lastName = str;

dispatchEvent(new PropertyChangeEvent('fullNameChanged');

}

 

[Bindable(event='fullNameChanged')]

public function get fullName ():String {

return firstName + ' ' + lastName;

}

 

Which is obviously less expressive. It would be great to have a kind of
'based on' meta-data for bindings as in my example. Or is there a way to
do this already that I don't know about?

 

Many thanks,

Lach

 



[flexcoders] Re: Mercury QT Pro - LoaderRunner + Flex

2006-12-04 Thread coderjun
Lance,

>From what I've heard through the grapevine, you can request the Quick
Test Pro Flex plugin from Adobe.  However I'm not exactly sure who to
contact for it. Maybe someone else in the group has this info or has
received the plugin before?

In regard to LoadRunner and AMF3 support, I have been working with a
client that had this same question.  Basically, the answer from Mercury
tech support was that AMF3 encoding was not supported and the workaround
was for them to  downgrade to the AMF0 encoding...which of course is not
an option if your using AMF3-only supported features:

"AMF3 supports sending int and uint  objects as integers and supports
data types that are available only in ActionScript 3.0, such as
ByteArray, XML, and IExternalizable."*

* Taken from:
http://livedocs.macromedia.com/labs/as3preview/langref/flash/net/ObjectE\
ncoding.html

Here's a link if you decide to go the AMF0 route:
http://livedocs.macromedia.com/flex/2/docs/wwhelp/wwhimpl/common/html/ww\
help.htm?context=LiveDocs_Parts&file=1105.html

Also, you can run "AMF" and "object encoding" searches on the Flex 2
livedocs site for more info.

Hope that helps some,
Jun

--- In flexcoders@yahoogroups.com, "Lance Linder" <[EMAIL PROTECTED]> wrote:
>
> Anyone using or had success with trying Quick Test Pro with Flex? This
> was something I wanted to evaluate ever since Macromedia/Adobe
announced
> they were working with Mercury back in October of 2005. Since the beta
> release of Flex I really haven't heard anything more about this other
> than some info that there might be better support between the two once
> Flex 2.1 is released. Can anyone comment on this that has tried to use
> Quick Test Pro with Flex 2.0?
>
>
>
> Also I really really need a good load testing tool and LoadRunner
looks
> like the ticket especially since I am already interested in Quick Test
> Pro. Has anyone used LoadRunner with AMF3 or does LoadRunner even work
> with AMF3? Right now I am not so concerned about RTMP but AMF3 is a
> must. It seems that SilkTest from Borland supports AMF3 but I would
> rather stick with a vendor that has both functional GUI test tools and
> load test tools that meet my requirements.
>
>
>
> Thanks!
>
> Lance
>



[flexcoders] Re: Viewstack.removeChildAt() and Garbage Collection

2006-12-04 Thread coderjun
Ralph,

Yes, Jun is correct. :)

I completely understand tight deadlines, so no worries...I'll be
looking forward to a blog or longer response if you ever do get time
to breathe.

Thanks for the response!

-Jun

--- In flexcoders@yahoogroups.com, "Ralph Hauwert" <[EMAIL PROTECTED]> wrote:
>
> Hi Jun (?),
> 
> Currently involved in another harsh deadline, so I'll get back too
you soon
> as possible, with a longer explanation, or probably a blog post.
> 
> Ralph.
> 
> 
> 
> On 12/4/06, coderjun <[EMAIL PROTECTED]> wrote:
> >
> >   Hi Ralph,
> >
> > I know this thread is slightly old, but I have been debugging some
> > garbage collection issues in an app I'm working on right now. I
> > noticed you said the following when responding to Bjorn:
> >
> > "You'll have to remove all references to a specfic object to
> > actually have it removed. We've run into some problems with this;
> > this was related to states, though, and this is also something which
> > is by design."
> >
> > Right now I'm noticing some jumps in memory consumption when
> > switching between one view state of a component and another. Do you
> > mind giving a quick tip on what you discovered about garbage
> > collection and states in your debugging?
> >
> > Thanks,
> > Jun
> >
> > --- In flexcoders@yahoogroups.com ,
"Ralph
> > Hauwert" 
> > wrote:
> > >
> > > removeChildAt() will only remove the specified object from the
> > displaylist,
> > > it won't destroy the object. Flex, by design keeps references to
> > objects in
> > > containers. You'll have to remove all references to a specfic
> > object to
> > > actually have it removed. We've run into some problems with this;
> > this was
> > > related to states, though, and this is also something which is by
> > design.
> > >
> > > On 11/23/06, bjorn.schultheiss  wrote:
> > > >
> > > > Hi,
> > > >
> > > > How come after calling removeChildAt(selectedIndex) within a
> > viewstack
> > > > the child object still remains?
> > > >
> > > > I've run basic tests to try get this working but no win.
> > > >
> > > > I have a ViewStack based on this;
> > > > import mx.containers.ViewStack;
> > > > public class ExtVS extends ViewStack
> > > > {
> > > > // my new selectedIndex()
> > > > public function set updateSelectedIndex(index:Number):void
> > > > {
> > > > this.createComponentFromDescriptor(this.childDescriptors
> > [index],false);
> > > > this.validateNow();
> > > > if (index > 0)
> > > > removeChildAt(selectedIndex);
> > > > }
> > > > }
> > > >
> > > > And i've set it's creationPolicy="none".
> > > >
> > > > I have 3 children. When i start the app in the debugger my
> > children
> > > > look like this in the variables panel;
> > > > c1 = "childs.MyPanel"
> > > > c2 = null
> > > > c3 = null
> > > >
> > > > By the time a proceed through each stack my debugger variables
> > say;
> > > > c1 = "childs.MyPanel"
> > > > c2 = "childs.MyBox"
> > > > c3 = "childs.MyCanvas"
> > > >
> > > > shouldn't it be
> > > > c1 = null
> > > > c2 = null
> > > > c3 = "childs.MyCanvas"
> > > >
> > > > Also i am tracking totalMemory usage and i am receiving no
> > benefits
> > > > compared to when i was not using removeChild()
> > > >
> > > > Thanks,
> > > > Bjorn
> > > >
> > > >
> > > >
> > >
> > >
> > >
> > > --
> > > Ralph Hauwert
> > > FlashCoder
> > >
> >
> >  
> >
> 
> 
> 
> -- 
> Ralph Hauwert
> FlashCoder
>




[flexcoders] Feature request: dependant bindings meta-data

2006-12-04 Thread Lachlan Cotter

Hi Adobe Team,

Is this the right forum to talk about Flex Builder features? I have  
often found myself in situations where it would be very handy to say  
something like this.


[Bindable] public var firstName:String;
[Bindable] public var lastName:String;

[Bindable(basedOn='firstName,lastName')]
public function get fullName ():String {
return firstName + ' ' + lastName;
}

The idea being that when a binding for firstName or lastName changes,  
the dependant binding fullName will also get fired. The only way I  
know to do this with the current tools is:


private var _firstName:String;
private var _lastName:String;

[Bindable] public function get firstName():String {
return _firstName;
}

public function set firstName(str:String):void {
_firstName = str;
dispatchEvent(new PropertyChangeEvent('fullNameChanged');
}

[Bindable] public function get lastName():String {
return _lastName;
}

public function set lastName(str:String):void {
_lastName = str;
dispatchEvent(new PropertyChangeEvent('fullNameChanged');
}

[Bindable(event='fullNameChanged')]
public function get fullName ():String {
return firstName + ' ' + lastName;
}

Which is obviously less expressive. It would be great to have a kind  
of 'based on' meta-data for bindings as in my example. Or is there a  
way to do this already that I don't know about?


Many thanks,
Lach

RE: [flexcoders] Fade from one color to another

2006-12-04 Thread Dustin Mercer
Dorkie, I had done something like this before and I used a fade effect
in combination with the Color change.  Try this and let me know if this
is what you want to see...  It has one problem, it fades the children as
well, but I had gotten around that, I just don't remember exactly how.
I'll dig up the code :-)  Let me know if this is what you wanted to
achieve first.  Also, using an animateProperty to change the background
color of the application in this example is overkill.  I would be much
more efficient to set the style with actionscript in the effectEnd event
on the first alpha fade (or something similar)...

 

Note , this == Application.  I used it on the creationCompleteEffect of
the Application.

 











 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of dorkie dork from dorktown
Sent: Monday, December 04, 2006 2:31 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Fade from one color to another

 

i see. that mostly works. except now it cycles through every color
giving a flicker effect like i am on acid. try this to see:


http://www.adobe.com/2006/mxml
 " layout="absolute"
styleName="plain"
creationCompleteEffect="{fadeColor}">



If i change the fromValue and the toValue to a two digit number like so
it is a very smooth transition but it does not fade from white.  It only
fades from blue. Try this: 



I am thinking of just transitioning to a blank black state but that
feels like a hack. 

dorkie best practices dork from dorktown

On 12/4/06, Deepa Subramaniam <[EMAIL PROTECTED]
 > wrote:

Set the the isStyle property to true in your AnimateProperty tag. 

 

-deepa

 



From: flexcoders@yahoogroups.com 
[mailto:flexcoders@yahoogroups.com  ]
On Behalf Of dorkie dork from dorktown
Sent: Monday, December 04, 2006 5:25 AM
To: flexcoders@yahoogroups.com  
Subject: [flexcoders] Fade from one color to another

 

I need to fade my application background color from 0xC47D31 to 0x67DEF9
and I have no idea where to start. I've seen AS2 actionscript around
that I can try to convert but what I'm looking for is a already built
MXML component Effect, similar to mx:Fade or Dissolve. 

I tried this and received errors:
creationCompleteEffect="{fadeColor}">
 

ReferenceError: Error #1069: Property backgroundColor not found on
TestApplication and there is no default value.
at
mx.effects.effectClasses::AnimatePropertyInstance/::getCurrentValue()

dorkie mood changing dork from dorktown 



 

 



[flexcoders] Adding Labels to the PlotSeries

2006-12-04 Thread Denis
The project I am working on need to be able to show a label next to
each plotseries item on the chart. From what I can see, there is no
interface supported by PlotSeries class to accomodate this. Can
someone help me how to do this? I am not very experienced so examples
are appreciated a lot!!! Thanks in advance



[flexcoders] Using Assembler fill approach, an added item comes in as sequence of ADD, UPDATE, REPLACE

2006-12-04 Thread Brian Weisenthal
We are using the java assembler to fill collections. Sometimes an add  
comes in as a CollectionEvent.ADD with items[0] being the fully  
populated new item. This is good. Then some other times, the item  
comes in as a sequence of ADD, UPDATE, and REPLACE events. The ADD is  
basically a null object, the UPDATE sets the uid, then the REPLACE  
replaces with the fully populated object.

I think this is related to having the item pending at the point of  
addition but am not sure why or if this is something that can be  
avoided. Anyone see this behavior before?


[flexcoders] Accessing TextInput via Panel and getChildByName

2006-12-04 Thread pdenys
I am accessing a TextInput object by invoking myPanel.getChildByName
("myTextInput"); Then I try to disable the TextInput and get an 
error. 

Why oh why? The TextInput.enabled property is public, I believe.

Thanks for your help,
Paul

Code follows:

http://www.adobe.com/2006/mxml"; 
layout="absolute">

  










RE: [flexcoders] FDS Environment Challenge Questions!

2006-12-04 Thread Jeff Vroom
Comments inline:


1) Without using Peter's FDS Plugin, what is the easiest way to deploy
a FDS-enabled project as http://localhost:8080/ 
or
http://localhost:8080/ProjectName/?
  Every example I've been able to
find has it coming out of the flex.war as
http://localhost:8080/Flex/ProjectName/
 



When you are deploying a web application (.war), you specify the
context-root in app-server specific configuration.  Most of them have a
way to specify a single "default web application", i.e. with a
context-root of "/".   For tomcat, this is in the server.xml file I
think.   If you build an "enterprise application archive" (.ear), you
specify the context-root in your application.xml file and so can do it
in a standard way.   The only other thing you need to be sure is that
you configure the context-root in your flex builder project properties
to be "/" and that the paths in any HTTP based endpoints are valid for
your context-root setting.

2) When deploying using FDS compile on server option, how can you
configure your server to acknowledge
http://localhost:8080/HelloWorld/Main.mxml
  when
http://localhost:8080/HelloWorld/ 
is accessed? Default .mxml
parameters? I'd figure to use the index.htm with presentation similar
to the template when using a non-FDS enabled version but unclear where
to point the embed items to.



You can specify "Main.mxml" in the welcome-file-list attribute in your
web.xml file - something like:

Main.mxml

I think it goes right after the servlet-mapping tag.  


3) FDS Plugin Specific - How *should* one break down their content
w.r.t the directory structure provided? I was able to create a simple
sample (one event class, one valueobject, two component .mxml views
called from the Main.mxml. The only way I was able to get any to work
was with everything nested within sub-directories of the WebContent
folder. I'd expect I could use the [source_path]user_classes for .swc
but it didn't seem to play nice with pure .as files.

I am not sure I fully understand this question but the source path ought
to work as long as you put your source files in a directory relative to
the package used by that class.  For example, if you put your classes in
a package called "foo", your source path should contain a directory
called "foo" which should contain the classes in the "foo" package. 


4) Same question as #3 but expand your example answer for a
Cairngorm-ified project.



I don't think Cairngorm will affect this.


5) How to turn all this into a deployable .war or .ear file on a
non-development machine? This is more a general java question but
figured I'd press my luck like that old tv show and make it a 5 pack
o' questions.



There is no real trick to making a .war file other than building the
right directory structure with the files in the right locations and then
zip them up (or use java's "jar" utility).  Note though that there are
special steps you'll need to follow if you want to deploy an FDS based
application as an unexploded .war file.  Specifically this means
disabling the web tier compiler as that requires access to the mxml
files as files, not as entries in as a zip file. 

Jeff 

 



RE: [flexcoders] Class-based model as a dataprovider

2006-12-04 Thread John Mazzocchi
Hi,
 
I didn't receive Lachlan's reply earlier (I'm obviously not receiving 
everything from the group :/)
 
So I'll reply to both of you here, ok?
 
Tracy:
 
I realise that the XML class is a dom, but that doesn't allow me to have TYPED 
entities, does it? Also with classes I can include validation code, etc. in the 
getters/setters.
I can't do this with the XML class, can I?
 
---
 
Lachlan:
 
Yes, I am trying to unmarshal the XML into custom classes as you say.
A bit of background wouldn't hurt ...
 
The XML describes a "document" where each line is EITHER some text, OR (up to 
3) graphics, OR a barcode, or a couple of other entities.
It's all XML, nodes and attributes, but not very regular.
 
A line/node could look like:
 
Name: 
 
OR
 

vicdpi.jpg
sunset.jpg

 
OR
 

 
So that each line needs a different customItemRenderer. Since the document is 
discretely line-based in structure, I thought a 1-column datagrid suited it 
well.
I tried dynamically rendering elements (in form structures) thru AS, but that 
proved to be pretty messy ... I could go back to it, but I'd rather not.
 
Yeah, I figured ICollectionView but I'm not actually sure how to assign it ... 
I've discovered Aral Balkan's notes on "Designing Data Models", that might 
clear it up for me.
 
Cheers
John
 
 

-Original Message-
From: Tracy Spratt [mailto:[EMAIL PROTECTED]
Sent: Tuesday, 5 December 2006 8:12 AM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Class-based model as a dataprovider






John, can you use the XML class? It already IS a dom.  



Tracy




  _  


From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Lachlan 
Cotter
Sent: Sunday, December 03, 2006 11:08 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Class-based model as a dataprovider



Hi John,



Sorry if I missed the point but I'm not entirely clear on what you're trying to 
do here. Do you want to unmarshal your XML into an object graph of custom 
classes? I don't understand how the multiple renderers comes into it. What is 
the XML describing? Is it a result set or something less regular?



With regard to point 2, I think anything can be a dataProvider if it implements 
one of the accepted interfaces. IList, ICollectionView etc.



Cheers,

Lach





On 04/12/2006, at 11:57 AM, John Mazzocchi wrote:





Hi, I need a hand here ...

I have an app which reads an XML file, shoves everything into an 
XMLListCollection and then renders the collection to a one-column datagrid. 
Each row of the datagrid uses a (state-based) customItemRenderer [don't get me 
started on the problems I've had with ViewStack-based approach].

Anyway, it seems to work fairly well ... but I've now been asked to take a 
slightly different approach. The XML needs to be shoved into an Object Model (a 
custom DOM), so that the same data can have multiple renderers/converters 
created in the future (not just "renderToScreen")... renderToPDF, renderToCSV, 
etc. Now there are notes in the PDF docs on creating a Class-based model ... I 
figure I'm gonna create an array of Objects, each one typed as they need to be, 
you know Bool, Text, Graphics, customSetOfAttribs, whatever ... custom addItem 
and removeItem functions which use templates for each Object type.

1. Any comments on my methodology?

2. How do I assign an ActionScript class as a dataprovider (for a datagrid)?

Thanks.

Cheers
John







 



This email and any files transmitted with it may be confidential and are 
intended solely for the use of the individual or entity to whom they are 
addressed. This email may contain personal information of individuals, and be 
subject to Commonwealth and/or State privacy laws in Australia. This email is 
also subject to copyright. If you are not the intended recipient, you must not 
read, print, store, copy, forward or use this email for any reason, in 
accordance with privacy and copyright laws. If you have received this email in 
error, please notify the sender by return email, and delete this email from 
your inbox. 


[flexcoders] Re: Cartesian Charts colum styling different from other chart types

2006-12-04 Thread Tim Hoff
True story. :)

--- In flexcoders@yahoogroups.com, "Ely Greenfield" <[EMAIL PROTECTED]> 
wrote:
>
> That approach will assign  a drop shadow filter to each item 
renderer.
> Sometimes that's the effect you want, and sometimes you want a drop
> shadow assigned to _all_ the renderers at once. In that case, you 
can
> assign a dropShadow to the 'filters' property of the columnSeries.
>  
> Ely.
>  
> 
> 
> 
> From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On
> Behalf Of Tim Hoff
> Sent: Monday, December 04, 2006 2:54 PM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Re: Cartesian Charts colum styling different 
from
> other chart types
> 
> 
> 
> Hi Oscar,
> 
> For Cartesian Charts, you have to specify the itemRenderer for
> dropShadow:
> 
> import mx.charts.renderers.ShadowBoxItemRenderer;
> 
>  itemRenderer="mx.charts.renderers.ShadowBoxItemRenderer"/>
> 
> -TH
> __
> 
> Tim Hoff
> Cynergy Systems, Inc.
> http://www.cynergysystems.com 
 
> Office: 866-CYNERGY 
> 
> --- In flexcoders@yahoogroups.com, "Oscar"  wrote:
> >
> > 
> > I am using different chart types on my app. Some are column 
charts, 
> > some are bar charts and I have one cartesian -column chart. By 
default
> 
> > all chart types -except the cartesian chart! s I think, display
> columns 
> > with shadow. How can I add that shadow to cartesian charts? 
> > 
> > Thanks,
> >
>




Re: [flexcoders] FLV Duration

2006-12-04 Thread John Kirby
Via onMetaData you should be able to get duration.  Have you tried 
something like this?


private function playStream():void {
  
 
   stream = new NetStream(nc);
  
   stopTimer();
  
  videoHolder = new UIComponent();

  videoHolder.setActualSize(defaultWidth, defaultHeight);
  video = new Video(defaultWidth, defaultHeight);
 
  video.attachNetStream(stream);
 
  stream.play(streamVideoURL);
 
   stream.addEventListener(NetStatusEvent.NET_STATUS, 
streamStatusHandler);

   var client:Object = new Object();
   client.onMetaData = onMetaData;
 
   stream.client = client
  
   }
  
   public function onMetaData(info:Object):void {

   duration = info.duration;
   fRate = info.framerate;
   totalBytes = info.bytesTotal;
   metaWidth = info.width;
   metaHeight = info.height;
}

john_69_11 said the following:


Is there an easy way to figure out the duration of an FLV thati s
being played? I have been looking at the NetStream object and the
onMetaData event, but it seems like the FLV does not always have the
metadata set. The FLVs I want to play are created my other people, so
there is no way to force them to add the metadata. is there any way
to easily get around this?

 


--
/Whether you think that you can, or that you can't, you are usually right./
- Henry Ford


RE: [flexcoders] Re: Cartesian Charts colum styling different from other chart types

2006-12-04 Thread Ely Greenfield
That approach will assign  a drop shadow filter to each item renderer.
Sometimes that's the effect you want, and sometimes you want a drop
shadow assigned to _all_ the renderers at once. In that case, you can
assign a dropShadow to the 'filters' property of the columnSeries.
 
Ely.
 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Tim Hoff
Sent: Monday, December 04, 2006 2:54 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Cartesian Charts colum styling different from
other chart types



Hi Oscar,

For Cartesian Charts, you have to specify the itemRenderer for
dropShadow:

import mx.charts.renderers.ShadowBoxItemRenderer;



-TH
__

Tim Hoff
Cynergy Systems, Inc.
http://www.cynergysystems.com  
Office: 866-CYNERGY 

--- In flexcoders@yahoogroups.com, "Oscar" <[EMAIL PROTECTED]> wrote:
>
> 
> I am using different chart types on my app. Some are column charts, 
> some are bar charts and I have one cartesian -column chart. By default

> all chart types -except the cartesian chart! s I think, display
columns 
> with shadow. How can I add that shadow to cartesian charts? 
> 
> Thanks,
>


 


[flexcoders] Re: Cartesian Charts colum styling different from other chart types

2006-12-04 Thread Tim Hoff

Hi Oscar,

For Cartesian Charts, you have to specify the itemRenderer for
dropShadow:

import mx.charts.renderers.ShadowBoxItemRenderer;



-TH
__

Tim Hoff
Cynergy Systems, Inc.
http://www.cynergysystems.com
Office  : 866-CYNERGY

--- In flexcoders@yahoogroups.com, "Oscar" <[EMAIL PROTECTED]> wrote:
>
>
> I am using different chart types on my app. Some are column charts,
> some are bar charts and I have one cartesian -column chart. By default
> all chart types -except the cartesian charts I think, display columns
> with shadow. How can I add that shadow to cartesian charts?
>
> Thanks,
>




RE: [flexcoders] Some Thoughts and examples on making Custom Flex Charts simpler.

2006-12-04 Thread Ely Greenfield
 
 
Someone pointed out to me that I stupidly had left the post password
protected.  The password has been removed, so if you tried to view it
and weren't able, you should try again now.
 
Ely.
 











Hello exciting world of Flex Developers.  I spend a lot of time on this
list answering questions on the flex charts, and amidst an explosion of
people asking about custom charting work last week, had some thoughts on
how customizing charts might be made easier.   

Since the ideas (and prototype code) was driven by a number of questions
that have been asked on this list over the past few weeks, I thought I'd
post directly to flex coders and invite everyone to check it out.

Interested? Read more about it here: 

http://www.quietlyscheming.com/blog/2006/12/04/some-thoughts-and-example
s-on-making-custom-flex-charts-simpler/
  



Ely. 

 


Re: [flexcoders] Fade from one color to another

2006-12-04 Thread dorkie dork from dorktown

i see. that mostly works. except now it cycles through every color giving a
flicker effect like i am on acid. try this to see:


http://www.adobe.com/2006/mxml"; layout="absolute"
styleName="plain"
   creationCompleteEffect="{fadeColor}">
   


If i change the fromValue and the toValue to a two digit number like so it
is a very smooth transition but it does not fade from white.  It only fades
from blue. Try this:

   

I am thinking of just transitioning to a blank black state but that feels
like a hack.

dorkie best practices dork from dorktown

On 12/4/06, Deepa Subramaniam <[EMAIL PROTECTED]> wrote:


 Set the the isStyle property to true in your AnimateProperty tag.



-deepa


 --

*From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On Behalf Of
*dorkie dork from dorktown
*Sent:* Monday, December 04, 2006 5:25 AM
*To:* flexcoders@yahoogroups.com
*Subject:* [flexcoders] Fade from one color to another



I need to fade my application background color from 0xC47D31 to 0x67DEF9
and I have no idea where to start. I've seen AS2 actionscript around that I
can try to convert but what I'm looking for is a already built MXML
component Effect, similar to mx:Fade or Dissolve.

I tried this and received errors:
creationCompleteEffect="{fadeColor}">


ReferenceError: Error #1069: Property backgroundColor not found on
TestApplication and there is no default value.
at mx.effects.effectClasses::AnimatePropertyInstance/::getCurrentValue
()

dorkie mood changing dork from dorktown
  



[flexcoders] TitleWindow Component...help!

2006-12-04 Thread qnotemedia
OK - so I'm using the generic TileWindow example found on the 
Component Explorer.  It basically shows you how to build something 
where:
1) User clicks a button, Window pops up.
2) User types into a text box in the window, clicks Submit.
3) Text typed in appears in the main app.

http://examples.adobe.com/flex2/inproduct/sdk/explorer/explorer.html

But, I'm having a little difficulty understanding the assignment of 
the returned data.  i.e.:

login.loginName=returnedName;

...where login is the instance of the TitleWindow, loginName is a 
public Text variable inside the component, and returnedName is a text 
box in the main app.

My confusion comes up when I try to edit this so that:
1) App has a combobox.  Dataprovider for the combobox is an 
ArrayCollection of data: "data" and "label."  User clicks a button, 
TitleWindow pops up.
2) User types into a text box in the window, clicks Submit.
3) The text is a passed as a label, along with a generated ID 
(generated in the component) and is added to the combobox's 
dataprovider.

The problem appears to be that there is no handler of the Submit 
button click on the main application.  Obviously, I would add to a 
datasource and return an ID from that, but I can't even get this to 
work manually (i.e. for testing purposes, setting a static data and 
label).

Just trying to keep this as simple as possible.  Seems to me that if 
I can pass a string of text, I should also be able to pass an Object 
that is added to a dataProvider in the main app?  Right?

Help!
 - Chris



Re: [flexcoders] FDS Environment Challenge Questions!

2006-12-04 Thread hank williams
On 12/4/06, Jamie O <[EMAIL PROTECTED]> wrote:
> Hello,
>
> After a laborious day of uninstalling, re-installing, washing,
> rinsing, repeating, I finally have my eclipse environment setup with
> WTP, Java 1.5 and the FDS Plugin Project Peter Martin created. The
> directory structure seems to make more sense to me, but have raised a
> couple of questions in my brain - some of which are general Flex /
> FDS, others are specific to WTP / Tomcat implementation:
>
> 1) Without using Peter's FDS Plugin, what is the easiest way to deploy
> a FDS-enabled project as http://localhost:8080/ or
> http://localhost:8080/ProjectName/? Every example I've been able to
> find has it coming out of the flex.war as
> http://localhost:8080/Flex/ProjectName/
>

This is, in my opnion, an incredible error in design that I would hope
that they fix. When building on your development environment, as
opposed to on the server, there is no way to get it to automatically
put the index.html and your swf at the root of your webapp. It will
always be at webappname/flexappname a.k.a  localhost:8080/flexappname.
What I actually do when I am deploying to my server is to copy all the
files from webappname/flexappname to the webappname directory. Its
ugly but several others on the list have said that they have
encountered the same problem and there is no good solution. I *have*
heard that it is possible to do this if you compile on the server, but
since I was never interested in this I have no idea if this is true.

>
> 2) When deploying using FDS compile on server option, how can you
> configure your server to acknowledge
> http://localhost:8080/HelloWorld/Main.mxml when
> http://localhost:8080/HelloWorld/ is accessed? Default .mxml
> parameters? I'd figure to use the index.htm with presentation similar
> to the template when using a non-FDS enabled version but unclear where
> to point the embed items to.
>
>
> 3) FDS Plugin Specific - How *should* one break down their content
> w.r.t the directory structure provided? I was able to create a simple
> sample (one event class, one valueobject, two component .mxml views
> called from the Main.mxml. The only way I was able to get any to work
> was with everything nested within sub-directories of the WebContent
> folder. I'd expect I could use the [source_path]user_classes for .swc
> but it didn't seem to play nice with pure .as files.
>

I have been able to use the source path thing but at this point all of
my code is in my project so I cant tell you if there are any tricks to
getting it to work because I cant remember. But at least I can tell
you that it does work.

> 4) Same question as #3 but expand your example answer for a
> Cairngorm-ified project.
>
I dont quite understand this question because the cairngorm directory
structure is pretty clear. Are you asking how you store your cairngorm
files outside what you called your webContent folder? If that is the
question, I would not suggest it. One thing I do though, to modularize
my work is that my project is made up of a collection of smaller
cairngorm based projects that link to one another. The only issue is
that the services.mxml cant be shared. But this allows me to look at
small nuggets of my app rather than a huge common structure. It also
allows me to create swc's that can be shared with other projects. For
example I have created a login system that I can drop into other apps
fairly easily.

> 5) How to turn all this into a deployable .war or .ear file on a
> non-development machine? This is more a general java question but
> figured I'd press my luck like that old tv show and make it a 5 pack
> o' questions.
>

I dont use WTP because it just seemed to complicated. I didnt want to
spend the more than a day I guessed it would take to figure out how to
work throught the horrendous documentation. As a result I use the
sysdeo tomcat plugin which works like a charm. I right click on my
project and say "build war" and it does it. I would imagine WTP has
something like this but it was just so ugly I couldnt bear it. But in
any case a WAR is nothing more than a compressed (zip?) of the webapp
directory structure with your app in it. So it shouldnt be too hard to
get that from eclipse to deployment. But if you are committed to WTP I
am sure (hope?) there is some option for this.


Regards,
Hank


[flexcoders] Flex UI Developer position - Boston, MA

2006-12-04 Thread zking9763
Flex UI Developer – Technical Development Team

Did you attended MAX in Las Vegas this year? Want to next year? 
We're in need of a Flex expert who has embraced RIAs and is taking 
application development to the next level. We need an experienced 
and thoughtful UI/ ActionScript  developer to join our software 
development team who can bring Flex best practices and cutting edge 
front-end interfaces to our software products and concepts. 

You'll be part of an experienced team who are pioneering new 
technology in the commercial side of the pharmaceutical industry. We 
operate like a start-up (except we're profitable) which means there 
is a lot of opportunity for talented individuals.
   
If you're interested in making a difference in a fast growing 
company, we'd love to hear from you.

*Major Responsibilities 
You will assume a lead role within the technical team, developing 
and integrating high quality UI features and components for our 
software solutions and products. While we're looking for someone on 
the development side, design experience is helpful but not 
mandatory (we work with professional designers and information 
architects).

• You will be responsible for the development and implementation of 
Flex front-ends
• Participate in rapid prototyping of new software product concepts
• Assist both Sr. Software Engineers and Business Managers by 
providing UI options during design and development phases
• Propose innovative approaches both to the overall UI design, and 
to the development of individual components
• Participate in overall product design and development 

*Highlights 
• Casual work environment, trendy offices, excellent 
salary/benefits/bonus
• You'll work on exciting new products using cutting edge technology
• Great opportunity to build practice area and grow/build UI/Flex 
team

*Requirements
• B.S. Computer Science of equivalent experience
• Experience developing and launching technology products or 
solutions
• Knowledge of software architecture and patterns (components, 
reuse, skinning, OOP)
• Significant development experience on a variety of RIA projects 
using both MXML and Actionscript 
• Proven history of developing large scale, high performance, 
distributed web-based applicationsv


*Preferred 
• Experience with Flex reporting UI components
• Experience with Flex custom component design
• Experience with SQL and Relational Databases is a plus. 
• Experience with SOA Architecture is a plus (SOAP, Web Services, 
WSDL). 
• User interface development 


Resumes should be mailed as a Microsoft Word:
[EMAIL PROTECTED]




[flexcoders] Re: flv playback

2006-12-04 Thread wayne_badu_johnson
Hi John

You can dynamically add cuepoints if you don't have access to  
modify the FLV.

Try this:

http://www.adobe.com/2006/mxml"; 
layout="absolute">




 












Cheers
Wayne




--- In flexcoders@yahoogroups.com, "Stacy Young" <[EMAIL PROTECTED]> wrote:
>
> Hi John,
> 
>  
> 
> Sorry I see you got the same answer I gave ya at the conference. 
Had another idea but no clue if it'd work ...loading the flv into a 
movieclip. (movieclip has methods for jumping frames) Somehow I 
don't think the movieclip frames correlate to the flv itself but 
maybe it'll spark an idea from someone else more familiar video.
> 
>  
> 
> Cheers,
> 
> Stace
> 
>  
> 
> import flash.display.MovieClip;
> 
> import flash.net.*;
> 
> import flash.media.Video;
> 
>  
> 
> public class VideoTest extends MovieClip
> 
> {
> 
> private var videoUrl:String 
= "http://example.com/test.flv";;
> 
> 
> 
> public function VideoTest()
> 
> {
> 
> var connection:NetConnection = new 
NetConnection();
> 
> connection.connect(null);
> 
> 
> 
> var stream:NetStream = new NetStream
(connection);
> 
> 
> 
> var myVideo:Video = new Video(360, 240);
> 
> myVideo.attachNetStream(stream);
> 
> stream.play(videoUrl);
> 
> 
> 
> addChild(myVideo);
> 
> }
> 
> }
> 
>  
> 
> 
> 
> From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On Behalf Of john_69_11
> Sent: Monday, December 04, 2006 9:26 AM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Re: flv playback
> 
>  
> 
> One of the problems is that I cannot modify the existing flv that I
> want to play. You mentioned key frames in this post, I was looking 
at
> the video and netstream objects and I can use those to play an flv,
> but they do not seem to have methods to navigate to a specific 
frame
> either. Looking at it again today I noticed the seek method which
> says it goes to key frames, are these just the normal frames in a
> movie or do you have set those when the video is encoded? Any other
> ideas would be welcome
> 
> -John
> 
> --- In flexcoders@yahoogroups.com  , Sönke Rohde  wrote:
> >
> > Hi John,
> > 
> > You could use CuePoints for this purpose. Encode your video with
> navigation
> > cuepoints (which sit on keyframes) and you can read out the
> CuePoints after
> > the FLV is loaded.
> > 
> > Cheers,
> > Sönke 
> > 
> > > -Original Message-
> > > From: flexcoders@yahoogroups.com   
> > > [mailto:flexcoders@yahoogroups.com  ] On Behalf Of john_69_11
> > > Sent: Sunday, December 03, 2006 10:39 PM
> > > To: flexcoders@yahoogroups.com  
> > > Subject: [flexcoders] flv playback
> > > 
> > > I want to be able to play an flv file and provide controls to 
jump to 
> > > a specific frame in the flv. Currently i am using the 
VideoDisplay, 
> > > but everything it does is based on times (playhead time). I 
noticed 
> > > that actionscript 2 had controls such as flvplayback and 
objects like 
> > > the videoplayer that provided operations such as these, are 
there 
> > > equivalents in actionscript 3? if not does anyone know of 
> > > another way 
> > > to do something like this? Thanks for the help,
> > > 
> > > John
> > > 
> > > 
> > > 
> > > --
> > > 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
> > > 
> > > 
> > > 
> > >
> >
>




[flexcoders] Cartesian Charts colum styling different from other chart types

2006-12-04 Thread Oscar

  I am using different chart types on my app. Some are column charts, 
some are bar charts  and I have one cartesian -column chart. By default 
all chart types -except the cartesian charts I think, display columns 
with shadow. How can I add that shadow to cartesian charts? 

  Thanks,





[flexcoders] FDS Environment Challenge Questions!

2006-12-04 Thread Jamie O
Hello,

After a laborious day of uninstalling, re-installing, washing,
rinsing, repeating, I finally have my eclipse environment setup with
WTP, Java 1.5 and the FDS Plugin Project Peter Martin created. The
directory structure seems to make more sense to me, but have raised a
couple of questions in my brain - some of which are general Flex /
FDS, others are specific to WTP / Tomcat implementation:

1) Without using Peter's FDS Plugin, what is the easiest way to deploy
a FDS-enabled project as http://localhost:8080/ or
http://localhost:8080/ProjectName/? Every example I've been able to
find has it coming out of the flex.war as
http://localhost:8080/Flex/ProjectName/


2) When deploying using FDS compile on server option, how can you
configure your server to acknowledge
http://localhost:8080/HelloWorld/Main.mxml when
http://localhost:8080/HelloWorld/ is accessed? Default .mxml
parameters? I'd figure to use the index.htm with presentation similar
to the template when using a non-FDS enabled version but unclear where
to point the embed items to.


3) FDS Plugin Specific - How *should* one break down their content
w.r.t the directory structure provided? I was able to create a simple
sample (one event class, one valueobject, two component .mxml views
called from the Main.mxml. The only way I was able to get any to work
was with everything nested within sub-directories of the WebContent
folder. I'd expect I could use the [source_path]user_classes for .swc
but it didn't seem to play nice with pure .as files.

4) Same question as #3 but expand your example answer for a
Cairngorm-ified project.

5) How to turn all this into a deployable .war or .ear file on a
non-development machine? This is more a general java question but
figured I'd press my luck like that old tv show and make it a 5 pack
o' questions.

Thx,
Jamie



[flexcoders] Some Thoughts and examples on making Custom Flex Charts simpler.

2006-12-04 Thread Ely Greenfield



Hello exciting world of Flex Developers.  I spend a lot of time on this
list answering questions on the flex charts, and amidst an explosion of
people asking about custom charting work last week, had some thoughts on
how customizing charts might be made easier.   

Since the ideas (and prototype code) was driven by a number of questions
that have been asked on this list over the past few weeks, I thought I'd
post directly to flex coders and invite everyone to check it out.

Interested? Read more about it here:

http://www.quietlyscheming.com/blog/2006/12/04/some-thoughts-and-example
s-on-making-custom-flex-charts-simpler/



Ely.



[flexcoders] Re: MiniDebug Application

2006-12-04 Thread Mike Morearty
MiniDebug is an old internal Flex 1.5 tool, and is no longer
maintained.  The MiniDebugTarget class in Flex 2.0 shouldn't be there.

  - Mike Morearty


--- In flexcoders@yahoogroups.com, "Clint Modien" <[EMAIL PROTECTED]> wrote:
>
> MiniDebug is a logging target that comes with the framework and I was
> wondering what it was.  I can't find info about it anywhere?
> 
> Some one asked the same question a few weeks ago in the Adobe forums.
> 
>
https://www.adobe.com/cfusion/webforums/forum/messageview.cfm?forumid=60&catid=585&threadid=1213746&highlight_key=y&keyword1=minidebug
> 
> Is this an internal Adobe app?
> 
> Thanks...
> 
> Clint Modien
> Esria Inc.
>




RE: [flexcoders] FLV Duration

2006-12-04 Thread Stacy Young
I'm curious to know myself, I will poke around. In the meantime ...I'd
also post this to flashcoders. Since we're talking Actionscript
specifically, there's a much higher percentage of folks on there that
work with video.

 

http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

 

Cheers,

Stace

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of john_69_11
Sent: Monday, December 04, 2006 4:13 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] FLV Duration

 

Is there an easy way to figure out the duration of an FLV thati s
being played? I have been looking at the NetStream object and the
onMetaData event, but it seems like the FLV does not always have the
metadata set. The FLVs I want to play are created my other people, so
there is no way to force them to add the metadata. is there any way
to easily get around this?

 

Messages in this topic
 (1) Reply (via web post)
 | Start a new topic
 

Messages
  

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





[flexcoders] Re: How to make ViewStack Item Invisible

2006-12-04 Thread boy_trike
Following is a sample of my code:
















The problem is that I want the CUSTOMER SEARCH (last canvas) to be invisible to 
certain 
people.  I have tried visible = "false" and includeinlayout = "false" but 
neither works


--- In flexcoders@yahoogroups.com, "Dimitrios Gianninas" <[EMAIL PROTECTED]> 
wrote:
>
> Well a Viewstack by default only shows only one view at a time, so... perhaps 
> you can 
post a sample of your code?
>  
> But simply, use the "visible" property:
>  
> myBox.visible = false;
>  
> Dimitrios Gianninas
> RIA Developer
> Optimal Payments Inc.
>  
> 
> 
> 
> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of 
boy_trike
> Sent: Monday, December 04, 2006 1:29 PM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] How to make ViewStack Item Invisible
> 
> 
> 
> I have a viewstack with multiple canvas's below. Depending on a users 
> credentials, I 
want 
> some of the options to NOT be visible. I can set enabled to false and they 
> are greyed out 
but 
> I am not smart enough to figure out how to make them disappear (Out of sight, 
> out of 
mind)
> 
> thanks
> Bruce
> 
> 
> 
>  
> 
> -- 
> WARNING
> ---
> This electronic message and its attachments may contain confidential, 
> proprietary or 
legally privileged information, which is solely for the use of the intended 
recipient.  No 
privilege or other rights are waived by any unintended transmission or 
unauthorized 
retransmission of this message.  If you are not the intended recipient of this 
message, or if 
you have received it in error, you should immediately stop reading this message 
and 
delete it and all attachments from your system.  The reading, distribution, 
copying or 
other use of this message or its attachments by unintended recipients is 
unauthorized and 
may be unlawful.  If you have received this e-mail in error, please notify the 
sender.
> 
> AVIS IMPORTANT
> --
> Ce message électronique et ses pièces jointes peuvent contenir des 
> renseignements 
confidentiels, exclusifs ou légalement privilégiés destinés au seul usage du 
destinataire 
visé.  L'expéditeur original ne renonce à aucun privilège ou à aucun autre 
droit si le 
présent message a été transmis involontairement ou s'il est retransmis sans son 
autorisation.  Si vous n'êtes pas le destinataire visé du présent message ou si 
vous l'avez 
reçu par erreur, veuillez cesser immédiatement de le lire et le supprimer, 
ainsi que toutes 
ses pièces jointes, de votre système.  La lecture, la distribution, la copie ou 
tout autre 
usage du présent message ou de ses pièces jointes par des personnes autres que 
le 
destinataire visé ne sont pas autorisés et pourraient être illégaux.  Si vous 
avez reçu ce 
courrier électronique par erreur, veuillez en aviser l'expéditeur.
>




Re: [flexcoders] Re: Viewstack.removeChildAt() and Garbage Collection

2006-12-04 Thread Ralph Hauwert

Hi Jun (?),

Currently involved in another harsh deadline, so I'll get back too you soon
as possible, with a longer explanation, or probably a blog post.

Ralph.



On 12/4/06, coderjun <[EMAIL PROTECTED]> wrote:


  Hi Ralph,

I know this thread is slightly old, but I have been debugging some
garbage collection issues in an app I'm working on right now. I
noticed you said the following when responding to Bjorn:

"You'll have to remove all references to a specfic object to
actually have it removed. We've run into some problems with this;
this was related to states, though, and this is also something which
is by design."

Right now I'm noticing some jumps in memory consumption when
switching between one view state of a component and another. Do you
mind giving a quick tip on what you discovered about garbage
collection and states in your debugging?

Thanks,
Jun

--- In flexcoders@yahoogroups.com , "Ralph
Hauwert" <[EMAIL PROTECTED]>
wrote:
>
> removeChildAt() will only remove the specified object from the
displaylist,
> it won't destroy the object. Flex, by design keeps references to
objects in
> containers. You'll have to remove all references to a specfic
object to
> actually have it removed. We've run into some problems with this;
this was
> related to states, though, and this is also something which is by
design.
>
> On 11/23/06, bjorn.schultheiss <[EMAIL PROTECTED]> wrote:
> >
> > Hi,
> >
> > How come after calling removeChildAt(selectedIndex) within a
viewstack
> > the child object still remains?
> >
> > I've run basic tests to try get this working but no win.
> >
> > I have a ViewStack based on this;
> > import mx.containers.ViewStack;
> > public class ExtVS extends ViewStack
> > {
> > // my new selectedIndex()
> > public function set updateSelectedIndex(index:Number):void
> > {
> > this.createComponentFromDescriptor(this.childDescriptors
[index],false);
> > this.validateNow();
> > if (index > 0)
> > removeChildAt(selectedIndex);
> > }
> > }
> >
> > And i've set it's creationPolicy="none".
> >
> > I have 3 children. When i start the app in the debugger my
children
> > look like this in the variables panel;
> > c1 = "childs.MyPanel"
> > c2 = null
> > c3 = null
> >
> > By the time a proceed through each stack my debugger variables
say;
> > c1 = "childs.MyPanel"
> > c2 = "childs.MyBox"
> > c3 = "childs.MyCanvas"
> >
> > shouldn't it be
> > c1 = null
> > c2 = null
> > c3 = "childs.MyCanvas"
> >
> > Also i am tracking totalMemory usage and i am receiving no
benefits
> > compared to when i was not using removeChild()
> >
> > Thanks,
> > Bjorn
> >
> >
> >
>
>
>
> --
> Ralph Hauwert
> FlashCoder
>

 





--
Ralph Hauwert
FlashCoder


[flexcoders] FLV Duration

2006-12-04 Thread john_69_11
Is there an easy way to figure out the duration of an FLV thati s
being played?  I have been looking at the NetStream object and the
onMetaData event, but it seems like the FLV does not always have the
metadata set.  The FLVs I want to play are created my other people, so
there is no way to force them to add the metadata.  is there any way
to easily get around this?



RE: [flexcoders] Class-based model as a dataprovider

2006-12-04 Thread Tracy Spratt
John, can you use the XML class? It already IS a dom.  

 

Tracy

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Lachlan Cotter
Sent: Sunday, December 03, 2006 11:08 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Class-based model as a dataprovider

 

Hi John,

 

Sorry if I missed the point but I'm not entirely clear on what you're
trying to do here. Do you want to unmarshal your XML into an object
graph of custom classes? I don't understand how the multiple renderers
comes into it. What is the XML describing? Is it a result set or
something less regular?

 

With regard to point 2, I think anything can be a dataProvider if it
implements one of the accepted interfaces. IList, ICollectionView etc.

 

Cheers,

Lach

 

 

On 04/12/2006, at 11:57 AM, John Mazzocchi wrote:





Hi, I need a hand here ...

I have an app which reads an XML file, shoves everything into an
XMLListCollection and then renders the collection to a one-column
datagrid. Each row of the datagrid uses a (state-based)
customItemRenderer [don't get me started on the problems I've had with
ViewStack-based approach].

Anyway, it seems to work fairly well ... but I've now been asked to take
a slightly different approach. The XML needs to be shoved into an Object
Model (a custom DOM), so that the same data can have multiple
renderers/converters created in the future (not just
"renderToScreen")... renderToPDF, renderToCSV, etc. Now there are notes
in the PDF docs on creating a Class-based model ... I figure I'm gonna
create an array of Objects, each one typed as they need to be, you know
Bool, Text, Graphics, customSetOfAttribs, whatever ... custom addItem
and removeItem functions which use templates for each Object type.

1. Any comments on my methodology?

2. How do I assign an ActionScript class as a dataprovider (for a
datagrid)?

Thanks.

Cheers
John

 

 



[flexcoders] need accomplished developer

2006-12-04 Thread bghoward3
hi

i am looking for some help wrapping up a project and stuck on a few 
items, i need an accomplished programmer to help finsh. i can pay  for 
your services, you can email me directly at 
[EMAIL PROTECTED]
thanks



[flexcoders] Re: FDS on the desktop?

2006-12-04 Thread drome.dario
Lach,
There are a lot of entries in the web talking about embeding swf into 
desktop applications, this one is the last I have seen

http://www.richapps.de/articles/externalinterface_part1/

Most of them work in Win but, if you try to do it in Mac, things are 
harder.

Regards
--- In flexcoders@yahoogroups.com, Lachlan Cotter 
<[EMAIL PROTECTED]> wrote:
>
> Hi Benjamin,
> 
> Would you mind explaining how you go about using an embedded SWF in 
a  
> desktop application. Is there an API for doing that kind of thing?
> 
> Cheers,
> Lach
> 
> On 04/12/2006, at 6:23 PM, benjidudu wrote:
> 
> > Hi,
> >
> > I am doing a desktop application with an embedded swf. I'd like 
using
> > FDS but all I read is about mxml or swf files in the server along 
FDS.
> > Is it possible using FDS with swf files not on the FDS server? If 
yes,
> > how do you do that?
> >
> > Thanks,
> >
> > Benjamin.
>




Re: [flexcoders] Class-based model as a dataprovider

2006-12-04 Thread Lachlan Cotter

Hi John,

Sorry if I missed the point but I'm not entirely clear on what you're  
trying to do here. Do you want to unmarshal your XML into an object  
graph of custom classes? I don't understand how the multiple  
renderers comes into it. What is the XML describing? Is it a result  
set or something less regular?


With regard to point 2, I think anything can be a dataProvider if it  
implements one of the accepted interfaces. IList, ICollectionView etc.


Cheers,
Lach


On 04/12/2006, at 11:57 AM, John Mazzocchi wrote:


Hi, I need a hand here ...

I have an app which reads an XML file, shoves everything into an  
XMLListCollection and then renders the collection to a one-column  
datagrid. Each row of the datagrid uses a (state-based)  
customItemRenderer [don't get me started on the problems I've had  
with ViewStack-based approach].


Anyway, it seems to work fairly well ... but I've now been asked to  
take a slightly different approach. The XML needs to be shoved into  
an Object Model (a custom DOM), so that the same data can have  
multiple renderers/converters created in the future (not just  
"renderToScreen")... renderToPDF, renderToCSV, etc. Now there are  
notes in the PDF docs on creating a Class-based model ... I figure  
I'm gonna create an array of Objects, each one typed as they need  
to be, you know Bool, Text, Graphics, customSetOfAttribs,  
whatever ... custom addItem and removeItem functions which use  
templates for each Object type.


1. Any comments on my methodology?

2. How do I assign an ActionScript class as a dataprovider (for a  
datagrid)?


Thanks.

Cheers
John




RE: [flexcoders] Re: Styling in Flex is officially ridiculous

2006-12-04 Thread Lance Linder
Maybe I am wrong but I thought that you can no longer to something like
this:

 

flash.text.TextField.prototype.styleSheet = myStyleSheet;

 

In my tests this doesn't create a compiler error but it doesn't work
either. If I am wrong someone please shed some light on this because I
haven't been able to make it work as it did in AS1/AS2.

 

Thanks!

Lance

 

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Rogerio Gonzalez
Sent: Monday, December 04, 2006 6:55 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Re: Styling in Flex is officially ridiculous

 

I guess what really made this easier for us in the past was the
ability to use the 'prototype' chain to override properties and
functions at a global level for all TextField instances. I know
overriding the prototype chain is a thing of the past and for good
reasons but it sure would be nice if ALL textFields in every component
could get a StyleSheet instance from the StyleManager.








I can be wrong, but "prototype" is still "functional", am I wrong?


Rogerio 

 



[flexcoders] cornerRadius and datagrid

2006-12-04 Thread jnewport
Wondering if anyone else has this issue or if its a bug or if flex
isn't capable?

I am trying to set the the attribute cornerRadius="8" for a dataGrid,
but it appear the a top layer follows the attribute, but a bottom
layer still has pointed corners. So you end up with these pointed
corners sticking out of rounded corners.

Am I missing something?

Thanks in advance, Jason



[flexcoders] Re: DataGrid horizontalScrollPosition and scrollbar out of sync

2006-12-04 Thread coderjun
Igor,

Thanks for the reply.  I tried responding back on Friday and I was 
having severe issues connecting with yahoo groups.

I appreciate your insight, that is currently what I am doing to 
resolve the issue in the app I am working on.  I was just severly 
bummed when I found out that setting the horizontalScrollPosition 
manually would jack up the state of the scrollbar.

I guess the other workaround would be to fire a manual scroll event 
to get the player to redraw the DataGrid...resulting in the sync of 
the left-most column (horizontalScrollPosition=2) in the view and 
the scrollbar.

Anyone on the Flexcoders group know of a fix that doesn't require a 
hack workaround? :)

Anyway, thanks again Igor!

-Jun

--- In flexcoders@yahoogroups.com, "Igor Costa" <[EMAIL PROTECTED]> 
wrote:
>
> Just uses 0 instead of 2.
> 
> regards.
> 
> On 11/30/06, coderjun <[EMAIL PROTECTED]> wrote:
> >
> >   Hello,
> >
> > I was wondering if anyone has run into this scenario and has an 
elegant
> > solution.
> >
> > Symptom:
> >
> > When a DataGrid comes into view that has the column set to an 
index other
> > than 0, the scrollbar is out of whack.  The only way to get it 
to sync up
> > again is via user interation. (For instance, interacting with the
> > scrollbar.)
> >
> > Intended Functionality:
> >
> > I would think that if I set the horizontalScrollPosition to 
something
> > other than 0, the scrollbar would reflect that when the DataGrid 
comes into
> > view without any user interation necessary.
> >
> > Request from the group:
> >
> > Does anyone know of a way to sync up the scrollbar position with 
the
> > horizontalScrollPosition?
> >
> > Code is below...
> >
> > Thanks,
> >
> > Jun
> >
> > 
> > http://www.adobe.com/2006/mxml";
> >  layout="absolute">
> >
> >   >   width="200"
> >   horizontalScrollPolicy="auto"
> >   horizontalScrollPosition="2">
> >   
> >
> >
> >
> >
> >   
> >  
> >
> > 
> >
> >
> >
> >
> >
> >  
> >
> 
> 
> 
> -- 
> 
> Igor Costa
> www.igorcosta.com
>




[flexcoders] Cairngorm’s Anaemic Domain Model

2006-12-04 Thread Lachlan Cotter
Apologies if this shows up twice, I posted it earlier but apparently  
it was lost.

Something that troubles me about the Cairngorm architecture is the  
apparent lack of any proper domain model. Although it is argued that  
the domain model actually exists on the server and that the Flex  
client is essentially a view, I have always found it necessary to  
construct some kind of object graph of the domain on the client as well.

I have two concerns regarding this.

First, I have never seen examples or discussion of Cairngorm that  
deals with this issue. In most cases the 'model' isn't much more than  
a collection of dumb value objects without complex relationships.

Second, and more importantly, pretty much all the logic of Cairngorm  
apps seems to reside in the Command and Delegate classes with not  
much to speak about in the actual model. It seems to be the Commands  
that end up manipulating the application data directly, and I'm a  
little uncomfortable with this.

I think Cairngorm’s a good method for managing code and iterative  
development, but I'm not sure about how well it does encapsulation  
and MVC.

Anyone care to discuss?

Cheers,
Lach



--
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: flv playback

2006-12-04 Thread Stacy Young
Hi John,

 

Sorry I see you got the same answer I gave ya at the conference. Had another 
idea but no clue if it'd work ...loading the flv into a movieclip. (movieclip 
has methods for jumping frames) Somehow I don't think the movieclip frames 
correlate to the flv itself but maybe it'll spark an idea from someone else 
more familiar video.

 

Cheers,

Stace

 

import flash.display.MovieClip;

import flash.net.*;

import flash.media.Video;

 

public class VideoTest extends MovieClip

{

private var videoUrl:String = "http://example.com/test.flv";;



public function VideoTest()

{

var connection:NetConnection = new NetConnection();

connection.connect(null);



var stream:NetStream = new NetStream(connection);



var myVideo:Video = new Video(360, 240);

myVideo.attachNetStream(stream);

stream.play(videoUrl);



addChild(myVideo);

}

}

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of 
john_69_11
Sent: Monday, December 04, 2006 9:26 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: flv playback

 

One of the problems is that I cannot modify the existing flv that I
want to play. You mentioned key frames in this post, I was looking at
the video and netstream objects and I can use those to play an flv,
but they do not seem to have methods to navigate to a specific frame
either. Looking at it again today I noticed the seek method which
says it goes to key frames, are these just the normal frames in a
movie or do you have set those when the video is encoded? Any other
ideas would be welcome

-John

--- In flexcoders@yahoogroups.com  , Sönke 
Rohde <[EMAIL PROTECTED]> wrote:
>
> Hi John,
> 
> You could use CuePoints for this purpose. Encode your video with
navigation
> cuepoints (which sit on keyframes) and you can read out the
CuePoints after
> the FLV is loaded.
> 
> Cheers,
> Sönke 
> 
> > -Original Message-
> > From: flexcoders@yahoogroups.com   
> > [mailto:flexcoders@yahoogroups.com  ] 
> > On Behalf Of john_69_11
> > Sent: Sunday, December 03, 2006 10:39 PM
> > To: flexcoders@yahoogroups.com  
> > Subject: [flexcoders] flv playback
> > 
> > I want to be able to play an flv file and provide controls to jump to 
> > a specific frame in the flv. Currently i am using the VideoDisplay, 
> > but everything it does is based on times (playhead time). I noticed 
> > that actionscript 2 had controls such as flvplayback and objects like 
> > the videoplayer that provided operations such as these, are there 
> > equivalents in actionscript 3? if not does anyone know of 
> > another way 
> > to do something like this? Thanks for the help,
> > 
> > John
> > 
> > 
> > 
> > --
> > 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
> > 
> > 
> > 
> >
>

 



[flexcoders] Re: uploading an object

2006-12-04 Thread drome.dario
Once you have the serialized data, it is easy to write a multipart 
chunk for that data... Is it what you are looking for?


--- In flexcoders@yahoogroups.com, Daryn Nakhuda <[EMAIL PROTECTED]> wrote:
>
> The same author wrote a jpg encoder.
> 
> I was just hoping to leverage the existing middleware that accepts 
a 
> multipart form upload to accept this binary data in the same manner.
> 
> Thanks for your advice!
> 
> 
> 
> 
> Mike Weiland wrote:
> >
> > Daryn,
> >
> > I see what you really want to do is more akin to this:
> >
> > http://www.kaourantin.net/2005/10/png-encoder-in-as3.html 
> > 
> >
> > I've used this for something similar, I believe someone has 
written a 
> > JPG encoder, but all you need to do is grab the bitmap data of 
the web 
> > cam and upload the binary to the middleware that actually 
converts the 
> > binary to an actual file.
> >
> > Sorry, I thought you were trying to save a Flash object like an 
array 
> > of arrays or something.
> >
> > Good luck,
> >
> > Mike Weiland
> >
> >
> >
> > On 12/1/06 12:01 PM, "Daryn Nakhuda" <[EMAIL PROTECTED]> wrote:
> >
> >
> >
> >
> >
> > Thanks Mike!
> >
> > I was trying to avoid using remoting, since I'm not using it 
anywhere
> > else in my application (yet).
> >
> > Basically, I have a file upload to upload your picture, and I
> > wanted to
> > have a webcam snapshot option, that posted to the same 
existing
> > backend
> > piece. Doesn't sound like that is currently easy/possible.
> >
> > I'll look at the FMS solution though, as I am already using 
that
> > elsewhere.
> >
> > Daryn
> >
> > Mike Weiland wrote:
> > >
> > > Daryn,
> > >
> > > It's possible, but probably not the way you are going about 
doing
> > it.
> > > I've taken 2 different paths to achieve this in the past, 
the first
> > > was on www.CertificateCreator.com when a user saves a 
certificate
> > the
> > > object that describes the certificate is sent to ColdFusion 
and I
> > > convert the object to WDDX and store that in the database. 
Then
> > when a
> > > certificate is opened it is retrieved from the database 
converted
> > from
> > > WDDX back to a ColdFusion object that Remoting converts 
back to a
> > > Flash object. I've done this similar thing with .NET and PHP
> > remoting,
> > > the trick is to find what format your middleware can store 
in your
> > > database.
> > >
> > > The second approach I've used was to use Flash Media Server 
to
> > store a
> > > remote shared object of the object. My app would make the 
remote
> > > connection get the object and start up. This approach 
worked great
> > > because there weren't a lot of objects that needed to be 
saved and
> > > retrieve and the application doesn't have many concurrent 
hits that
> > > would limit our license, plus after the retrieveal of the 
object the
> > > remote connection is closed.
> > >
> > > I believe FDS has the same remote object capabilites as FMS 
has
> > so you
> > > might already have that end.
> > >
> > > Good luck,
> > >
> > > Mike Weiland
> > >
> > > Original Message ---
> > > I have data in my flex app that I want to send to my server 
as if it
> > > were a upload from a filereference (aka, as a multipart 
form).
> > >
> > > Is there a easy way to do that?
> > >
> > > Basically, I already have a backend servlet that accepts 
file uploads
> > > from my flex app, and from an html browse form, and i'd 
like to use
> > > that same backend with arbitrary serialized objects in my 
swf.
> > >
> > > Thanks,
> > >
> > > Daryn
> > >
> > >
> >
> >
> >
> >
> >
>




[flexcoders] Mercury QT Pro - LoaderRunner + Flex

2006-12-04 Thread Lance Linder
Anyone using or had success with trying Quick Test Pro with Flex? This
was something I wanted to evaluate ever since Macromedia/Adobe announced
they were working with Mercury back in October of 2005. Since the beta
release of Flex I really haven't heard anything more about this other
than some info that there might be better support between the two once
Flex 2.1 is released. Can anyone comment on this that has tried to use
Quick Test Pro with Flex 2.0?

 

Also I really really need a good load testing tool and LoadRunner looks
like the ticket especially since I am already interested in Quick Test
Pro. Has anyone used LoadRunner with AMF3 or does LoadRunner even work
with AMF3? Right now I am not so concerned about RTMP but AMF3 is a
must. It seems that SilkTest from Borland supports AMF3 but I would
rather stick with a vendor that has both functional GUI test tools and
load test tools that meet my requirements.

 

Thanks!

Lance



[flexcoders] Re: How to make ViewStack Item Invisible

2006-12-04 Thread potentialunfounded
would setting includeInLayout to false work?

--- In flexcoders@yahoogroups.com, "boy_trike" <[EMAIL PROTECTED]> wrote:
>
> I have a viewstack with multiple canvas's below.  Depending on a
users credentials, I want 
> some of the options to NOT be visible.  I can set enabled to false
and they are greyed out but 
> I am not smart enough to figure out how to make them disappear (Out
of sight, out of mind)
> 
> thanks
> Bruce
>




[flexcoders] Re: Embed or Load PDF File

2006-12-04 Thread mvbaffa
I will check the articles and try to convert the PDF's to FlashPaper.

Thanks to all of you

--- In flexcoders@yahoogroups.com, "Darron J. Schall" <[EMAIL PROTECTED]> 
wrote:
>
> If you would decide to take this approach, consider the recent 
articles 
> I've published on my weblog about FlashPaper and Flex 2 integration:
> 
> How to load FlashPaper Documents in Flex 2 - 
> http://www.darronschall.com/weblog/archives/000249.cfm
> Batch Convert PDF files to FlashPaper 2 - 
> http://www.darronschall.com/weblog/archives/000250.cfm
> 
> By converting the PDF to FlashPaper, you can load the FlashPaper 
> equivalent of the PDF report inside of a container in Flex 2.  It's 
not 
> exactly a trivial process, but it works well enough for my use 
cases so far.
> 
> -d
> 
> John Dowdell wrote:
> >
> > Options for similar effects:
> >
> > o Convert PDF to FlashPaper, which can be displayed in Adobe Flash
> > Player, although I'm not sure offhand of invocation via Flex's 
MXML.
> >
>




RE: [flexcoders] Fade from one color to another

2006-12-04 Thread Deepa Subramaniam
Set the the isStyle property to true in your AnimateProperty tag. 

 

-deepa

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of dorkie dork from dorktown
Sent: Monday, December 04, 2006 5:25 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Fade from one color to another

 

I need to fade my application background color from 0xC47D31 to 0x67DEF9
and I have no idea where to start. I've seen AS2 actionscript around
that I can try to convert but what I'm looking for is a already built
MXML component Effect, similar to mx:Fade or Dissolve. 

I tried this and received errors:
creationCompleteEffect="{fadeColor}">
 

ReferenceError: Error #1069: Property backgroundColor not found on
TestApplication and there is no default value.
at
mx.effects.effectClasses::AnimatePropertyInstance/::getCurrentValue()

dorkie mood changing dork from dorktown 
 



[flexcoders] Re: Sand Box Security Error

2006-12-04 Thread drome.dario
Kumar,
This is a security violation of a basic Flex rule: "you can not 
access to url coming from other domains than those where the swf 
comes from"
That is, your swf comes from "localhost" and you are trying to access 
to "rss.news.yahoo.com"... this is not allowed by default.

You would have to put your swf or a cross-domain file 
under "rss.news.yahoo.com". Most of the time you can not perform none 
of above things and, in that case, you will need a "proxy" on your 
own backend server that access directly to "rss.news.yahoo.com".

I think that FDS 2.0 has such kind of http proxy.

Hope this helps
Regards


--- In flexcoders@yahoogroups.com, "KP" <[EMAIL PROTECTED]> wrote:
>
> Hi All,
> 
>  
> 
> I get following error when I try to access news rss from the dotnet
> application in which I have embed the flex SWF file.
> 
>  
> 
> *** Security Sandbox Violation ***
> 
> Connection to http://rss.news.yahoo.com/rss/topstories halted - not
> permitted from http://localhost:1008/mxml/signlet_04432006051233.swf
> 
>  
> 
>  
> 
> Can some one suggest a quick solution on this.
> 
>  
> 
> Thanks,
> 
> Kumar
>




[flexcoders] Re: Viewstack.removeChildAt() and Garbage Collection

2006-12-04 Thread coderjun
Hi Ralph,

I know this thread is slightly old, but I have been debugging some 
garbage collection issues in an app I'm working on right now.  I 
noticed you said the following when responding to Bjorn:

"You'll have to remove all references to a specfic object to 
actually have it removed. We've run into some problems with this; 
this was related to states, though, and this is also something which 
is by design."

Right now I'm noticing some jumps in memory consumption when 
switching between one view state of a component and another.  Do you 
mind giving a quick tip on what you discovered about garbage 
collection and states in your debugging?

Thanks,
Jun

--- In flexcoders@yahoogroups.com, "Ralph Hauwert" <[EMAIL PROTECTED]> 
wrote:
>
> removeChildAt() will only remove the specified object from the 
displaylist,
> it won't destroy the object. Flex, by design keeps references to 
objects in
> containers. You'll have to remove all references to a specfic 
object to
> actually have it removed. We've run into some problems with this; 
this was
> related to states, though, and this is also something which is by 
design.
> 
> On 11/23/06, bjorn.schultheiss <[EMAIL PROTECTED]> wrote:
> >
> >   Hi,
> >
> > How come after calling removeChildAt(selectedIndex) within a 
viewstack
> > the child object still remains?
> >
> > I've run basic tests to try get this working but no win.
> >
> > I have a ViewStack based on this;
> > import mx.containers.ViewStack;
> > public class ExtVS extends ViewStack
> > {
> > // my new selectedIndex()
> > public function set updateSelectedIndex(index:Number):void
> > {
> > this.createComponentFromDescriptor(this.childDescriptors
[index],false);
> > this.validateNow();
> > if (index > 0)
> > removeChildAt(selectedIndex);
> > }
> > }
> >
> > And i've set it's creationPolicy="none".
> >
> > I have 3 children. When i start the app in the debugger my 
children
> > look like this in the variables panel;
> > c1 = "childs.MyPanel"
> > c2 = null
> > c3 = null
> >
> > By the time a proceed through each stack my debugger variables 
say;
> > c1 = "childs.MyPanel"
> > c2 = "childs.MyBox"
> > c3 = "childs.MyCanvas"
> >
> > shouldn't it be
> > c1 = null
> > c2 = null
> > c3 = "childs.MyCanvas"
> >
> > Also i am tracking totalMemory usage and i am receiving no 
benefits
> > compared to when i was not using removeChild()
> >
> > Thanks,
> > Bjorn
> >
> >  
> >
> 
> 
> 
> -- 
> Ralph Hauwert
> FlashCoder
>




RE: [flexcoders] XMLList/XMLListCollection: sort on attributes

2006-12-04 Thread Deepa Subramaniam
Assuming the XMLListCollection created from the myData XML object looks
like this:

public var col:XMLListCollection = new
XMLListCollection(myData.children());

Then you would sort on the category name like so:

private function applyMySort():void
{
var s:Sort = new Sort();
s.fields = [new SortField("@name")];
col.sort = s;
col.refresh();
}

As for your second question, we don't support e4x expressions in the
sort field. To get that behavior you'll have to write your own
compareFunction that compares on the values you desire. You'll find that
the mx.utils.ObjectUtil class has all the comparators you'd need to do
this. 

Cheers,
deepa

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Oliver Lietz
Sent: Monday, December 04, 2006 6:55 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] XMLList/XMLListCollection: sort on attributes

Hello List,

is there a way to sort a XMLList/XMLListCollection on their items
attributes?
What has to be done to sort the sample myData from "Using the 
XMLListCollection class" [1] on the category name?
Or is it possible to sort when making an E4X query?

tia,
O.

[1] 
http://livedocs.macromedia.com/flex/2/docs/wwhelp/wwhimpl/common/html/ww
help.htm?context=LiveDocs_Parts&file=0513.html#403970








--
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] How to make ViewStack Item Invisible

2006-12-04 Thread Dimitrios Gianninas
Well a Viewstack by default only shows only one view at a time, so... perhaps 
you can post a sample of your code?
 
But simply, use the "visible" property:
 
myBox.visible = false;
 
Dimitrios Gianninas
RIA Developer
Optimal Payments Inc.
 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of 
boy_trike
Sent: Monday, December 04, 2006 1:29 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] How to make ViewStack Item Invisible



I have a viewstack with multiple canvas's below. Depending on a users 
credentials, I want 
some of the options to NOT be visible. I can set enabled to false and they are 
greyed out but 
I am not smart enough to figure out how to make them disappear (Out of sight, 
out of mind)

thanks
Bruce



 

-- 
WARNING
---
This electronic message and its attachments may contain confidential, 
proprietary or legally privileged information, which is solely for the use of 
the intended recipient.  No privilege or other rights are waived by any 
unintended transmission or unauthorized retransmission of this message.  If you 
are not the intended recipient of this message, or if you have received it in 
error, you should immediately stop reading this message and delete it and all 
attachments from your system.  The reading, distribution, copying or other use 
of this message or its attachments by unintended recipients is unauthorized and 
may be unlawful.  If you have received this e-mail in error, please notify the 
sender.

AVIS IMPORTANT
--
Ce message électronique et ses pièces jointes peuvent contenir des 
renseignements confidentiels, exclusifs ou légalement privilégiés destinés au 
seul usage du destinataire visé.  L'expéditeur original ne renonce à aucun 
privilège ou à aucun autre droit si le présent message a été transmis 
involontairement ou s'il est retransmis sans son autorisation.  Si vous n'êtes 
pas le destinataire visé du présent message ou si vous l'avez reçu par erreur, 
veuillez cesser immédiatement de le lire et le supprimer, ainsi que toutes ses 
pièces jointes, de votre système.  La lecture, la distribution, la copie ou 
tout autre usage du présent message ou de ses pièces jointes par des personnes 
autres que le destinataire visé ne sont pas autorisés et pourraient être 
illégaux.  Si vous avez reçu ce courrier électronique par erreur, veuillez en 
aviser l'expéditeur.



Re: [flexcoders] How to make ViewStack Item Invisible

2006-12-04 Thread Juan Sanchez

would setting includeInLayout to false work?

On Dec 4, 2006, at 10:28 AM, boy_trike wrote:

I have a viewstack with multiple canvas's below. Depending on a  
users credentials, I want
some of the options to NOT be visible. I can set enabled to false  
and they are greyed out but
I am not smart enough to figure out how to make them disappear (Out  
of sight, out of mind)


thanks
Bruce







[flexcoders] How to make ViewStack Item Invisible

2006-12-04 Thread boy_trike
I have a viewstack with multiple canvas's below.  Depending on a users 
credentials, I want 
some of the options to NOT be visible.  I can set enabled to false and they are 
greyed out but 
I am not smart enough to figure out how to make them disappear (Out of sight, 
out of mind)

thanks
Bruce



[flexcoders] Focus in text fields

2006-12-04 Thread dchilcoat
I have a data grid for which I want to be able to focus on the entire 
text in a field in the grid so the field can be changed by simply 
typing over what is already there.  Currently, when I focus into the 
field, the cursor goes to the end of the text instead of hi-liting all 
the text in the field.  For example, when I use the mouse to select a 
field with text 'ABC' in it, the cursor ends up after the 'C'.  The 
cell has a cell-renderer which is probably complicating the issue.  Is 
there code I can put in the cell-renderer that will result in the 
action I want?  I noticed that cells that do not have cell-renderers 
seem to work correctly.



RE: [flexcoders] Flex 2 Charting align Axis

2006-12-04 Thread Ely Greenfield
 
 
 
The AxisRenderer class has a 'placement' property.  If you explicitly supply 
your own AxisRenderer, you can set the placement appropriately:
 
 

   
   
...
 
Ely.

 
 


From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Sönke 
Rohde
Sent: Saturday, December 02, 2006 6:24 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Flex 2 Charting align Axis



Hi,

How do I align my Axis e.g. I'd like to have to horizontal axis on the top
instead on the bottom and the vertical axis on the right instead of left.

Thanks and Cheers,
Sönke



 


[flexcoders] Re: flv playback

2006-12-04 Thread john_69_11
One of the problems is that I cannot modify the existing flv that I
want to play.  You mentioned key frames in this post, I was looking at
the video and netstream objects and I can use those to play an flv,
but they do not seem to have methods to navigate to a specific frame
either.  Looking at it again today I noticed the seek method which
says it goes to key frames, are these just the normal frames in a
movie or do you have set those when the video is encoded?  Any other
ideas would be welcome

-John


--- In flexcoders@yahoogroups.com, Sönke Rohde <[EMAIL PROTECTED]> wrote:
>
> Hi John,
> 
> You could use CuePoints for this purpose. Encode your video with
navigation
> cuepoints (which sit on keyframes) and you can read out the
CuePoints after
> the FLV is loaded.
> 
> Cheers,
> Sönke 
> 
> > -Original Message-
> > From: flexcoders@yahoogroups.com 
> > [mailto:[EMAIL PROTECTED] On Behalf Of john_69_11
> > Sent: Sunday, December 03, 2006 10:39 PM
> > To: flexcoders@yahoogroups.com
> > Subject: [flexcoders] flv playback
> > 
> > I want to be able to play an flv file and provide controls to jump to 
> > a specific frame in the flv.  Currently i am using the VideoDisplay, 
> > but everything it does is based on times (playhead time).  I noticed 
> > that actionscript 2 had controls such as flvplayback and objects like 
> > the videoplayer that provided operations such as these, are there 
> > equivalents in actionscript 3?  if not does anyone know of 
> > another way 
> > to do something like this?  Thanks for the help,
> > 
> > John
> > 
> > 
> > 
> > --
> > 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] HTTP request error

2006-12-04 Thread Tracy Spratt
Call the HTTPRequest url directly from a browser, that might give you some more 
information.

Tracy

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Flávio 
Santos
Sent: Monday, December 04, 2006 9:49 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] HTTP request error

 

Gentlemen, would like aid to solve this error, Tanks



[RPC Fault faultString="HTTP request error" faultCode="Server.Error.Request" 
faultDetail="Error: [IOErrorEvent type="ioError" bubbles=false cancelable=false 
eventPhase=2 text="Error #2032: Stream Error. URL: returncfxml.cfm"]. URL: 
returncfxml.cfm"]
at 
mx.rpc::AbstractInvoker/http://www.adobe.com/2006/flex/mx/internal::faultHandler()
at mx.rpc::Responder/fault()
at mx.rpc::AsyncRequest/fault()
at ::DirectHTTPMessageResponder/errorHandler()
at 
flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at flash.net::URLLoader/flash.net:URLLoader::redirectEvent ()

 



RE: [flexcoders] Digest Number 2793

2006-12-04 Thread Tracy Spratt
You can create that logic in handler functions called by the drag and
drop events.  See the docs.

Tracy

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Venkata Krishnan Natarajan
Sent: Sunday, December 03, 2006 1:59 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Digest Number 2793

 

Hello everyone,
 
I'm relatively new to flex and I have a few questions on the drag and
drop functionality in flex. I have a drop enabled data grid and I would
like to validate the data being dropped. How do I:
 
1. Identify the last dropped data in the data grid?
2. Access the data being dropped before it is dropped so I can turn of
the drop enable property of the data grid if the data is not the
expected data type? 
 
Please help.
 
Thanks
Venkat 
 



Use Messenger to talk to your IM friends, even those on Yahoo! Talk now!
  

 



RE: [flexcoders] combobox add item

2006-12-04 Thread Tracy Spratt
Depending on the complexity of the ComboBox dataProvider, you could
simply update it when the add function is done.  But if there are a lot
of fields, or if there is some server-side logic involved with the
creation of the dataprovider content, then just call the service again.

 

Tracy

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of bghoward3
Sent: Monday, December 04, 2006 10:11 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] combobox add item

 

group

i have a sitiuation where the user is presented with a combobox that 
is popluated via a webservice call to db. this works fine. the user is 
also presented with a link next to the combobox that presents a 
titlewindow and allows them to add names to the db that the combobox 
pulls from. after adding the name i of course want the combobox to 
repopulate with the new name. should i do this simply by calling the 
webservice again or is this a case for some sort of listenr. if it is 
for a listner can somone provide a bit of directioon as to how this 
work?

thank you

 



RE: [flexcoders] help in database access

2006-12-04 Thread Tracy Spratt
Break this up into smaller pieces:

1.  Verify the data is getting retrieved into the java object
2.  Verify the result is getting to flex.  Use a handler function
instead of directly assigning the result
3.  Debug the result object to determine the correct expression
required to access it.

 

Tracy

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of deepa_pathuri
Sent: Monday, December 04, 2006 7:49 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] help in database access

 

hai,
I am new to flex environment and i am struck up with a prob.
I am trying to access my database to retrieve two of the values in it 
depending on the primary key( that user inputs).
i want to build a column chart using both of those values,,


here is my mxml file


http://www.macromedia.com/2003/mxml
 ">





 






















 




my java file to retrive the values

import java.sql.*; 
import java.util.ArrayList;

public class report {



Connect q=new Connect();
public report(){
}




public ArrayList getValid(int num){
ArrayList list1 = new ArrayList();
try{
Connection Conn=q.establish_Connection();

Statement s = Conn.createStatement();
ResultSet rs=s.executeQuery("select 
examid,score from report where userid="+num);
while (rs.next()) {

list1.add(new getreportlistVO
( rs.getInt(1),rs.getInt(2)));

}
s.close();
Conn.close(); 


}
catch(Exception e)
{
System.out.println("TechRP Error : "+e);
}
return list1;

}
public static void main(String Args[])
{
report q=new report();

}
}

my VO file to pick up the values to DB

import java.util.Random;
import java.io.*;
import java.sql.*;
public class getreportlistVO implements java.io.Serializable
{
int examid,score;


public void setexamid(int eid) {
this.examid = eid;

}

public int getscore() {
return score;
}

public void setscore(int score) {
this.score = score;
}


public getreportlistVO(int examid, int score)
{
this.examid=examid;
this.score=score; 
}

public void printval()
{
System.out.println(examid);
System.out.println(score);
} 
}

Please help me friends

Deepa Pathuri

 



Re: [flexcoders] Re: Styling in Flex is officially ridiculous

2006-12-04 Thread Derek Vadneau

You can't extend things like TextField or Object like you could in AS1/AS2,
which was Lance's point. I think that's a different discussion.

I can see Ben's point about Buttons and borders.

When I start a MXML project and drop a button on the stage I can change the
border colour of a button, along with other properties. Why is it so odd
that I would assume that I should be able to disable the border? If the
border isn't actually a border, then why provide a styling options as if
there was a border? That's the flaw.

If you are creating a component that has the look of a border, allows the
user to change the colour of the border, why wouldn't you allow the user to
disable the border? Change the width of the border? Why would the component
support some (relevant) styles and not others?



I can be wrong, but "prototype" is still "functional", am I wrong?



Rogerio

 





--

Derek Vadneau


RE: [flexcoders] FDS on the desktop?

2006-12-04 Thread Peter Farland
SWFs by default can either choose to access the file system or the
remote network (e.g. requests made for data via HTTP), but not both.
Flex compilers produce swfs that elect to use the network by default.
 
Apart from that, there's no reason why you can't run a SWF from the
desktop (the .mxml -> .swf conversion via FDS Webtier compiler is a
development time convenience).
 
Some things to consider though... if you're using Flex Builder or the
mxml command line compiler you'll probably need to provide the command
line argument -services to point to the
/WEB-INF/flex/services-config.xml file so that it can compile in the
channel definitions for you (assuming you are not creating your own
ChannelSets programmatically or you are using the DataService API).
Also, you will need to edit each relevant channel-definition endpoint
defined in services-config.xml file so that a fully qualified URL is
defined - i.e. you can't rely on the {server.name}, {server.port} or
{context.root} tokens for portability. 
 
Pete



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of benjidudu
Sent: Monday, December 04, 2006 2:23 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] FDS on the desktop?



Hi,

I am doing a desktop application with an embedded swf. I'd like using
FDS but all I read is about mxml or swf files in the server along FDS.
Is it possible using FDS with swf files not on the FDS server? If yes,
how do you do that?

Thanks,

Benjamin.



 


RE: [flexcoders] selected combobox item to datagrid issue

2006-12-04 Thread Tracy Spratt
Array "push" does not emit the events necessary to update the display.  
Instead, wrap the array in an ArrayCollection and use the dataProvider API, 
like addItem().

Tracy

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Husain 
Kitabi
Sent: Monday, December 04, 2006 4:49 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] selected combobox item to datagrid issue

 

chargeDataProvider is empty array until a combo item is selected. So 
essentially, it has same data structure.

Please advise.



Yiðit Boyar <[EMAIL PROTECTED]> wrote:

i think dataproviders should have the same data-structures.
chargeArray
chargeDataProvider
do these two have the same type of elements inside? (maybe having the 
"name" and "price" properties is enough )

- Original Message 
From: Husain Kitabi <[EMAIL PROTECTED]>
To: flexcoders@yahoogroups.com
Sent: Sunday, December 3, 2006 4:04:52 PM
Subject: [flexcoders] selected combobox item to datagrid issue

Hi

I am having to select an object in combo, on change event of combo, 
selected item should be displayed in datagrid.. I have the following code

 

   private function addChargeToTable( ):void{
if(chargeCombo. selectedIndex !=0)
 chargeDataProvider. push(chargeCombo .selectedItem) ;
   }

 

   

 

 

 
  
   


   
  
 

 

For some reason, combo.selectedItem isnt displaying in datagrid. Please 
help

 

Thanks

Husain 





Check out the all-new Yahoo! Mail beta 
 
 - Fire up a more powerful email and get things done faster. 

 

 





Need a quick answer? Get one in minutes from people who know. Ask your 
question on Yahoo! Answers 

 . 

 

  



Everyone is raving about the all-new Yahoo! Mail beta. 
 

 



[flexcoders] XMLList/XMLListCollection: sort on attributes

2006-12-04 Thread Oliver Lietz
Hello List,

is there a way to sort a XMLList/XMLListCollection on their items attributes?
What has to be done to sort the sample myData from "Using the 
XMLListCollection class" [1] on the category name?
Or is it possible to sort when making an E4X query?

tia,
O.

[1] 
http://livedocs.macromedia.com/flex/2/docs/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Parts&file=0513.html#403970








Re: [flexcoders] determine current function

2006-12-04 Thread Derek Vadneau

How do you get the name from arguments.callee?

I've tried using the example from the docs where you assign the value to a
property on the function and then use arguments.callee.prop to get the
value, but Flex Builder gives me an error saying "Access of possibly
undefined property prop through a reference with static type Function."

Global.as defines Function as dynamic yet FB produces an error.

If you try this example:
http://livedocs.macromedia.com/flex/2/docs/1835.html
you'll get compiler errors.

Is there a way to add properties to a function or has this been removed in
AS3?


On 11/27/06, Daniel Freiman <[EMAIL PROTECTED]> wrote:


  take a look at arguments.callee in the top level package.  that might be
what you're looking for.

- Dan





--

Derek Vadneau


[flexcoders] HTTP request error

2006-12-04 Thread Flávio Santos

Gentlemen, would like aid to solve this error, Tanks



[RPC Fault faultString="HTTP request error" faultCode="Server.Error.Request"
faultDetail="Error: [IOErrorEvent type="ioError" bubbles=false
cancelable=false eventPhase=2 text="Error #2032: Stream Error. URL:
returncfxml.cfm"]. URL: returncfxml.cfm"]
   at
mx.rpc::AbstractInvoker/http://www.adobe.com/2006/flex/mx/internal::faultHandler
()
   at mx.rpc::Responder/fault()
   at mx.rpc::AsyncRequest/fault()
   at ::DirectHTTPMessageResponder/errorHandler()
   at
flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchEventFunction
()
   at flash.events::EventDispatcher/dispatchEvent()
   at flash.net::URLLoader/flash.net:URLLoader::redirectEvent()


Re: [flexcoders] FDS on the desktop?

2006-12-04 Thread Lachlan Cotter

Hi Benjamin,

Would you mind explaining how you go about using an embedded SWF in a  
desktop application. Is there an API for doing that kind of thing?


Cheers,
Lach

On 04/12/2006, at 6:23 PM, benjidudu wrote:


Hi,

I am doing a desktop application with an embedded swf. I'd like using
FDS but all I read is about mxml or swf files in the server along FDS.
Is it possible using FDS with swf files not on the FDS server? If yes,
how do you do that?

Thanks,

Benjamin.




[flexcoders] combobox add item

2006-12-04 Thread bghoward3
group

i have a sitiuation where the user is presented with a combobox that 
is popluated via a webservice call to db. this works fine. the user is 
also presented with a link next to the combobox that presents a 
titlewindow and allows them to add names to the db that the combobox 
pulls from. after adding the name i of course want the combobox to 
repopulate with the new name. should i do this simply by calling the 
webservice again or is this a case for some sort of listenr. if it is 
for a listner can somone provide a bit of directioon as to how this 
work?

thank you



Re: [flexcoders] Best practices for displaying large texts

2006-12-04 Thread Daniel Freiman

Justify Full will work in flash if the text is static.  However you normally
do this through the flash IDE, so while it must be possible in Flex, but I
don't know how.  Otherwise, Text or TextArea should be fine.

- Dan

On 12/2/06, Lachlan Cotter <[EMAIL PROTECTED]> wrote:


  Hi Pablo,

I'm not sure this is the best answer to your question but as far as I know
the Text component is the right choice for displaying multi-line,
non-editable text. If you want your users to be able to edit the text, you
can use a TextArea instead.

I'm don't know of a way to do justified text in Flex. Sorry.

Lach

On 30/11/2006, at 12:15 AM, Pablo Apanasionek wrote:

Hey,

I'm trying to figure out the best (or at least optimal) way to display a
large text (e.g. a news article) with several paragraphs using Flex 2.
Would a Text control be the right one to use? Or is there another technique
that would render better? Is there any way to justify text on *-both-*sides?

Thanks in advance,
Pablo Gustavo Apanasionek


 



Re: [flexcoders] explorer local file

2006-12-04 Thread Daniel Freiman

Nope.  File ref is it.  This is for security reasons.  Your only other
option is write/use an applet or activeX that can access the file system and
use javascript to communicate between the flash and the applet.  (I've never
tried this, but it should work.)

- Dan

On 12/1/06, Willy Ci <[EMAIL PROTECTED]> wrote:


  hi,

is there a way to browse/explorer local file file system within flex 2.0?

I need write a file/folder upload program,
I want user to able explorer, then drag and drop local files/folds to
create a upload list,
so far only thing I found is using fileRef.browse, which is not a user
friendly interface.

thanks for your help.

Willy
 



[flexcoders] Chart dragging help

2006-12-04 Thread Dana Gutride

Any ideas on how to drag the contents of a chart.  I think the example
here:  http://www.quietlyscheming.com/blog/charts/interactive-bubble-chartis
in the right direction. My needs are slightly different, though, and
I'm
unsure of how to proceed.  The data covers 24 hours, I've added a linkbar up
top and I'd like to show 3, 6, 12 or 24 hours at once but allow the user to
pan left or right through the rest of the data for that day.  Any ideas on
how to set the min/max for the data displayed?  Also how should I change the
chart so the user can't drag beyond 12:00 p.m. or 1:00 A.M (effectively
showing only one day's worth of data)?

Dana


RE: [flexcoders] Simple Question - Array to ArrayCollection - Best Practice/CFusion

2006-12-04 Thread Peter Farland
It depends on what Java type ColdFusion returns to FDS for
serialization. By default, FDS returns java.util.Collection
implementations as mx.collections.ArrayCollection, and native Java
Arrays (i.e Object[]) as ActionScript Arrays. So, if your seeing that
event.result can be successfully coerced into an ArrayCollection, this
would imply that ColdFusion is returing a java.util.Collection
implementation to FDS. Other comments on this thread are correct, you
can't cast/coerce a complex type to another complex type unless it
really is an instance of that complex type (i.e. you can't coerce and
Array to an ArrayCollection... ArrayCollection "has an Array", not "is
an Array").
 


[flexcoders] drag n drop manager

2006-12-04 Thread raju_bb
Hi people,
I am using flex 2..i m creating an application using Drag n Drop
Manager.I have a main Application which has a small library kind of
module similar to Flash Library.This library will contain all the
images in it..Now what i want is to drag images from that library and
place it on the stage or my canvas of my application.This part is
working well but once i drop it on the main application(canvas) the
object from the library gets moved/disappear.After i have dropped the
target application is there any way to remove the drag operation on
that dropped object.
 How to go for this..Can anyone help me out with this..

Regards,
Rajesh Bhadra



[flexcoders] help in database access

2006-12-04 Thread deepa_pathuri
hai,
I am new to flex environment and i am struck up with a prob.
I am trying to access my database to retrieve two of the values in it 
depending on the primary key( that user inputs).
i want to build a column chart using both of those values,,
 

here is my mxml file


http://www.macromedia.com/2003/mxml";>









  
  

 















  







my java file to retrive the values

import java.sql.*; 
import java.util.ArrayList;

public class report {



Connect q=new Connect();
public report(){
}


 

public ArrayList getValid(int num){
ArrayList list1 = new ArrayList();
try{
Connection Conn=q.establish_Connection();

Statement s = Conn.createStatement();
ResultSet rs=s.executeQuery("select 
examid,score from report where userid="+num);
while (rs.next()) {

list1.add(new getreportlistVO
( rs.getInt(1),rs.getInt(2)));

}
s.close();
Conn.close();   



}
catch(Exception e)
{
System.out.println("TechRP Error : "+e);
}
return list1;

}
public static void main(String Args[])
{
report q=new report();

}
}

my VO file to pick up the values to DB

import java.util.Random;
import java.io.*;
import java.sql.*;
public class getreportlistVO implements java.io.Serializable
{
int examid,score;


  public void setexamid(int eid) {
this.examid = eid;
   
}

public int getscore() {
return score;
}

public void setscore(int score) {
this.score = score;
}
 

public  getreportlistVO(int examid, int score)
 {
this.examid=examid;
this.score=score;
}

public void printval()
{
System.out.println(examid);
System.out.println(score);
}   
}


Please help me friends

Deepa Pathuri




[flexcoders] Fade from one color to another

2006-12-04 Thread dorkie dork from dorktown

I need to fade my application background color from 0xC47D31 to 0x67DEF9 and
I have no idea where to start. I've seen AS2 actionscript around that I can
try to convert but what I'm looking for is a already built MXML component
Effect, similar to mx:Fade or Dissolve.

I tried this and received errors:
   creationCompleteEffect="{fadeColor}">
   

ReferenceError: Error #1069: Property backgroundColor not found on
TestApplication and there is no default value.
   at mx.effects.effectClasses::AnimatePropertyInstance/::getCurrentValue()

dorkie mood changing dork from dorktown


Re: [flexcoders] Re: Styling in Flex is officially ridiculous

2006-12-04 Thread Rogerio Gonzalez


I guess what really made this easier for us in the past was the ability to
use the 'prototype' chain to override properties and functions at a global
level for all TextField instances. I know overriding the prototype chain is
a thing of the past and for good reasons but it sure would be nice if ALL
textFields in every component could get a StyleSheet instance from the
StyleManager.









I can be wrong, but "prototype" is still "functional", am I wrong?


Rogerio


Re: [flexcoders] Re: strange CheckBox behavior (as an item renderer in pop up)

2006-12-04 Thread Roman Protsiuk

Hi.

It should if I set dataProvider once and then just work with it using for
example addItem(...), removeItemAt(...), refresh(), etc.
But what if I set brand new dataProvider to List every time it is popped up.
However, even if i'd set dataProvider once and then just modified instances
of data in it like

for (var index : Number = 0; index < _popUp.dataProvider.length; index++) {
   _popUp.dataProvider[index] = false;
}

or in another way described effect remains the same.

At the moment the only obvious workaround is to
PopUpManager.createPopUpevery time instead of using existing one
through
PopUpManager.addPopUp.
But the solution and the reasons for this behavior still unclear.

R.

On 12/4/06, bhaq1972 <[EMAIL PROTECTED]> wrote:


  Hi Roman

shouldn't your dataprovider assignment be within the if test.

if (_popUp == null) {
_popUp = CheckList(PopUpManager.createPopUp(clickMe, CheckList));
_popUp.addEventListener(FlexMouseEvent.MOUSE_DOWN_OUTSIDE,
onMouseDownOutside);
PopUpManager.centerPopUp(_popUp);
var dataProvider : ArrayCollection = new ArrayCollection([
false, false, false, false,
false, false]);

_popUp.dataProvider = dataProvider;
}
else
{
PopUpManager.addPopUp(_popUp, clickMe);
}

regrds
bod

--- In flexcoders@yahoogroups.com , "Roman
Protsiuk"

<[EMAIL PROTECTED]> wrote:
>
> Hi, all.
>
> I've got some item renderers based on CheckBox. These item
renderers
> apper in a List wich is a pop up. Funny thing is when i select some
> check box, hide pop up, show it again and then reset that check
box to
> a selected = false; it looks like something between
checked/unchecked.
> Grayed like it's been disabled or something. It's selected property
> equals false. It behaves like it's unchecked but looks very
strange.
>
> Does anyone know what is going on with all this stuff?
>
> Here is some example for you to check:
>
> Item renderer CheckBoxItemRenderer.as:
>
> package src.itemRenderers {
>
> import mx.controls.CheckBox;
>
> public class CheckBoxItemRenderer extends CheckBox {
>
> public override function set data(value : Object) :
void {
> label = "select me"
> selected = value;
> super.data = value;
> }
>
> }
> }
>
> Pop Up based on List CheckList.mxml:
>
> 
> http://www.adobe.com/2006/mxml";
> itemRenderer="src.itemRenderers.CheckBoxItemRenderer"
> width="100"
> height="150">
>
> 
>
> And the application itself testing.mxml:
>
> 
> http://www.adobe.com/2006/mxml";
> layout="absolute">
>
>  label="click me"
> horizontalCenter="0"
> verticalCenter="0"
> click="onButtonClick()" />
>
> 
> 
> 
> 
>
> If anyone has some information regarding this situation please
share. :)
>
> Thanks in advance,
> R.
>

 



[flexcoders] FileReference.download() crashes the browser

2006-12-04 Thread Benoit Hediard
Hi,
 
We have many users reporting browser crashes when trying to download files
from our Flex2 app.
But we have never been able to reproduce the problem.
 
Apparently, they have the latest Flash Player 9 and the problem occurs on IE
(6 or 7) or Firefox (1.5 o 2.0), on Windows XP SP2.
So I suppose this is linked to some additional software installed on their
machine, may be Norton Internet Security 2005 (I have NIS2006 and cannot
reproduce the pb...).
We are currently trying to get more info on their config.
 
Anyone has encounter a similar issue?
 
Benoit Hediard
#affinitiz.com


[flexcoders] Sand Box Security Error

2006-12-04 Thread KP
Hi All,

 

I get following error when I try to access news rss from the dotnet
application in which I have embed the flex SWF file.

 

*** Security Sandbox Violation ***

Connection to http://rss.news.yahoo.com/rss/topstories halted - not
permitted from http://localhost:1008/mxml/signlet_04432006051233.swf

 

 

Can some one suggest a quick solution on this.

 

Thanks,

Kumar



[flexcoders] Re: strange CheckBox behavior (as an item renderer in pop up)

2006-12-04 Thread bhaq1972
Hi Roman

shouldn't your dataprovider assignment be within the if test.

if (_popUp == null) {
 _popUp = CheckList(PopUpManager.createPopUp(clickMe, CheckList));
 _popUp.addEventListener(FlexMouseEvent.MOUSE_DOWN_OUTSIDE,
onMouseDownOutside);
 PopUpManager.centerPopUp(_popUp);
var dataProvider : ArrayCollection = new ArrayCollection([
false, false, false, false, 
false, false]);

_popUp.dataProvider = dataProvider;
} 
else 
{
  PopUpManager.addPopUp(_popUp, clickMe);
}

regrds
bod

--- In flexcoders@yahoogroups.com, "Roman Protsiuk" 
<[EMAIL PROTECTED]> wrote:
>
> Hi, all.
> 
> I've got some item renderers based on CheckBox. These item 
renderers
> apper in a List wich is a pop up. Funny thing is when i select some
> check box, hide pop up, show it again and then reset that check 
box to
> a selected = false; it looks like something between 
checked/unchecked.
> Grayed like it's been disabled or something. It's selected property
> equals false. It behaves like it's unchecked but looks very 
strange.
> 
> Does anyone know what is going on with all this stuff?
> 
> Here is some example for you to check:
> 
> Item renderer CheckBoxItemRenderer.as:
> 
> package src.itemRenderers {
>   
>   import mx.controls.CheckBox;
>   
>   public class CheckBoxItemRenderer extends CheckBox {
>   
>   public override function set data(value : Object) : 
void {
>   label = "select me"
>   selected = value;
>   super.data = value;
>   }
>   
>   }
> }
> 
> Pop Up based on List CheckList.mxml:
> 
> 
> http://www.adobe.com/2006/mxml";
>   itemRenderer="src.itemRenderers.CheckBoxItemRenderer"
>   width="100"
>   height="150">
>   
> 
> 
> And the application itself testing.mxml:
> 
> 
> http://www.adobe.com/2006/mxml";
>   layout="absolute">
> 
>  label="click me"
>   horizontalCenter="0"
>   verticalCenter="0"
>   click="onButtonClick()" />
>   
>   
>   
>   
> 
> 
> If anyone has some information regarding this situation please 
share. :)
> 
> Thanks in advance,
> R.
>




RE: [flexcoders] flv playback

2006-12-04 Thread Sönke Rohde
Hi John,

You could use CuePoints for this purpose. Encode your video with navigation
cuepoints (which sit on keyframes) and you can read out the CuePoints after
the FLV is loaded.

Cheers,
Sönke 

> -Original Message-
> From: flexcoders@yahoogroups.com 
> [mailto:[EMAIL PROTECTED] On Behalf Of john_69_11
> Sent: Sunday, December 03, 2006 10:39 PM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] flv playback
> 
> I want to be able to play an flv file and provide controls to jump to 
> a specific frame in the flv.  Currently i am using the VideoDisplay, 
> but everything it does is based on times (playhead time).  I noticed 
> that actionscript 2 had controls such as flvplayback and objects like 
> the videoplayer that provided operations such as these, are there 
> equivalents in actionscript 3?  if not does anyone know of 
> another way 
> to do something like this?  Thanks for the help,
> 
> John
> 
> 
> 
> --
> 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] Simple Question - Array to ArrayCollection - Best Practice/CFusion

2006-12-04 Thread Emile Swain
HI

I've just checked my cf tests and I've found that I've consistently cast
the data in the result method called when I've received the result from
cf.

 

public function getMasterQuery_Result(event:ResultEvent):void

{

projectList.dataProvider = event.result as ArrayCollection

}

 

Where projectList is my datagrid. Of course this could quite easily be
model.workplace.employees where employees is typed as an ArrayCollection

 

 

All of my tests have been based on examples off the adobe site, so I can
only really assume this is the way to do it.

-- 

Emile Swain

Senior Creative Developer

Direct: 020 7087 2754



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of lostinrecursion
Sent: 03 December 2006 16:59
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Simple Question - Array to ArrayCollection - Best
Practice/CFusion

 

Hi all,

This is a best practice question really.

I use Cairngorm for the larger apps I build. I also use Coldfusion and
the nifty class mapping that it can perform between DTOs (or VOs,
whatever you call them)

Here's the conundrum. A lot of my top level classes have
ArrayCollections of other supporting classes.

For example: Workplace class has a collection called Employees, which
very possibly could have its own set of collections called Vehicles,
all custom VO classes.

So, when i get them back from Coldfusion and they come in as an Array,
I know that in order to use them as a dataProvider, you need to cast
them as ArrayCollection.

So far, so good.

But if I just do this: {model.workplace.employees as ArrayCollection}
in the dataProvider property, sometimes I receive coercion errors if
the returning array is one element.

Bottom Line: In a Cairngorm app, where is the best place to do my
casting or conversion of arrays??

 



[flexcoders] How to make overSkin and downSkin styles of LinkButton transparent?

2006-12-04 Thread Sergey Kovalyov
Hi All!

How to make overSkin and downSkin styles of LinkButton transparent? I
can set them to true, but it results in strange mouse pointer blinking
when rolling over the edge of the component. You could try this code
to see this side effect:



Any suggestions?

Sergey.


Re: [flexcoders] selected combobox item to datagrid issue

2006-12-04 Thread Husain Kitabi
chargeDataProvider is empty array until a combo item is selected. So 
essentially, it has same data structure.
  Please advise.
  

Yiðit Boyar <[EMAIL PROTECTED]> wrote:
  i think dataproviders should have the same data-structures.
chargeArray
chargeDataProvider
do these two have the same type of elements inside? (maybe having the "name" 
and "price" properties is enough )

  - Original Message 
From: Husain Kitabi <[EMAIL PROTECTED]>
To: flexcoders@yahoogroups.com
Sent: Sunday, December 3, 2006 4:04:52 PM
Subject: [flexcoders] selected combobox item to datagrid issue


  Hi
  I am having to select an object in combo, on change event of combo, selected 
item should be displayed in datagrid.. I have the following code
   
 private function addChargeToTable( ):void{
if(chargeCombo. selectedIndex !=0)
 chargeDataProvider. push(chargeCombo .selectedItem) ;
   }

   
 
   
   
   
  
   


   
  
 

   
  For some reason, combo.selectedItem isnt displaying in datagrid. Please help
   
  Thanks
  Husain 
  
  
-
  Check out the all-new Yahoo! Mail beta - Fire up a more powerful email and 
get things done faster.  






  
-
  Need a quick answer? Get one in minutes from people who know. Ask your 
question on Yahoo! Answers.  

 

 
-
Everyone is raving about the all-new Yahoo! Mail beta.

RE: [flexcoders] Re: Drag/Drop - Datagrid. Target is off?

2006-12-04 Thread Steve Cox
There's a bug in Flex where the application uses an
ApplicationControlBar (possibly other controls, I'm not sure) which
causes the hitarea to be inaccurate.

Several people have also come across this (myself included) however no
work-around has been offered. I'm strongly hoping this will be in the
bug fixes at the start of 07.
 
-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of lostinrecursion
Sent: 03 December 2006 12:53
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Drag/Drop - Datagrid. Target is off?
 
I just now had a chance to try that out. That doesn't solve the 
problem unfortunately. It does accept my drops, just only below about 
the 2nd row. As if the hit area is skewed down about 50 pixels on the 
Y axis.

Driving me bananas for a month now! And the client too. (LOL)

-

--- In [EMAIL PROTECTED] 
ups.com, "Igor Costa" <[EMAIL PROTECTED]> wrote:
>
> Kenny in the target just enable the DropEnable=true
> 
> On 11/30/06, lostinrecursion <[EMAIL PROTECTED]> wrote:
> >
> > Hi all,
> >
> > I have a little app I built with some drag/drop functionality 
that I
> > coded in. I am not using the default and writing my own handlers.
> > Everything is working, meaning all the data gets added, etc.
> >
> > But, this is just more of annoyance really, I cannot get the 
DataGrid
> > to accept the drop at the top row. Meaning the user has to go 
below the
> > first or second row before the drop indicators pop and they can.
> >
> > Further investigation leads me to see that even the dragEnter 
event is
> > not firing.
> >
> > I am using the default dragProxyImage. In fact, the only thing I 
really
> > changed was the dragDrop handler to accept a few additional 
values.
> >
> > Any ideas?
> >
> > Thanks
> > -Kenny
> >
> > 
> >
> 
> 
> 
> -- 
> 
> Igor Costa
> www.igorcosta.com
>
 


  1   2   >