Re: [flexcoders] Re: How can I make the mx;Panel draggable?

2007-02-12 Thread Janis Radins

Smthn like this should do:

import mx.managers.PopUpManager;
PopUpManager.addPopUp(refferenceToYourPanelInstance, this, false);

Jānis

2007/2/11, malik_robinson [EMAIL PROTECTED]:


  Hi,

Somehow I have double posted, sorry about that, I am trying to make panel
draggable via the title bar only.  I meant to add that to my initial post.

-westside

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

 Hi,

 I want to be able to drag this panel around sort of like a floating
 window. It should be able to be dragged and I guess dropped, not really
 like dragging a value from datagridA to datagridB but Just like in
 windows how you can drag a dialog box around I want to do the same in my
 app.

 How can I do this??

 -Malik

 



Re: [flexcoders] New Flex User

2007-02-12 Thread Igor Costa

Mike

That's good, many developers at by area you can find them here. Or in the
Flex components lists.

A partner of mine http://www.socialdragon.com/ could help you out with this
project, Raj is his name [EMAIL PROTECTED]

Best.



On 2/11/07, mikew6350 [EMAIL PROTECTED] wrote:


  I currently working on a large project in Flex. I am just learning
about flex and I am in over my head. I am now looking for a advanced
flex developer to consult on the project.

If anyone knows of anyone in the bay area (san jose ca) or any body
who works well remotely please feel free to email me. If there is a
better place to post these kinds of messages that would be good too.

I am excited about the potential that flex has and want to make this
project a success.

Any help is at all is appreciated,

micah.wilson.ca.gmail.com

 





--

Igor Costa
www.igorcosta.org
www.igorcosta.com
skype: igorpcosta


[flexcoders] Data binding error

2007-02-12 Thread juliencastelain
Hi everyone,

I'm working on a flex + php application. In the mxml file, i have a 
DataGrid that gets populated by a php script. Everything works fine 
when i'm using a DataGrid without using a custom item renderer. As 
soon as i use a custom item renderer(to display an image instead of 
displaying the image name in the DG), the image displays well, but i 
get the following error :

warning: unable to bind to property 'avatar' on class 'Object' (class 
is not an IEventDispatcher)


Since the image gets displayed, and this warning is only visible in 
my flashlog.txt file, i'm not really worried about it, but can 
anyone tell me how to fix, it would be cool.

Thanks






 



[flexcoders] Re: Cross domain confusion

2007-02-12 Thread beecee1977
I don't really have a solution, but a suggestion as to why it might be 
working locally. If you created the project in Flex Builder it will add 
the source location to a trust file:

Documents and Settings\$UserName$\Application Data\Macromedia\Flash 
Player\#Security\FlashPlayerTrust\flexbuilder.cfg

(for my setup anyway)

This will override any sandbox issues when you run locally and possibly 
hide whatever security issue you're encountering when you deploy. 




Re: [flexcoders] Flex Coding Guidelines

2007-02-12 Thread Fabio Terracini

Hi Ralf! I think the handler is more a you can do this way instead of
you must do this way. I'll change and explain this better in the
1.3release. :-) This advice is probably more useful inside components
since, as
Michael pointed out, if we use the same event in different components things
got screwed up (and less understandable).

[]s
Fabio


On 2/10/07, Ralf Bokelberg [EMAIL PROTECTED] wrote:


Hi Fabio

I think it is a good document, beside the whitespace paragraphs.
Distribution of whitespace is always worth a discussion :)

There is only one thing, that makes me wonder.
If methods should start with a verb, why don't you prefer
handleMouseClick() over mouseClickHandler() ?

Cheers,
Ralf.


On 2/10/07, Fabio Terracini [EMAIL PROTECTED]  wrote:

   Folks,

 As my commitment to community I'm releasing, with DClick support, our
 Adobe Flex Coding Guidelines, a document about Flex (MXML and
 ActionScript) coding conventions that we use on a regular basis.

 The objective is clear: provide a common and consistent language to
 help code comprehension between developers. The practices established
 in this document are based on Java conventions, Flex 2 SDK and DClick
 team experience (including myself).

 By releasing this document, the idea is to help the community improve
 their Flex code by using coding conventions as well and hear feedback
 from community to continuously improve this document, that by now is a
 community asset.

 I'll be happy to have volunteers to form a committee or something to
 evolve this project further.

 This way, comments on this document (including the best practices) are
 very welcome! Involve yourself in this flexcoders thread, at the
 flexdev (listaflexdev.org - portuguese list on Flex) or at DClick
 weblog (http://blog.dclick.com.br/2007/02/10/adobe-flex-coding-guidelines/
 )

 English version:
 
http://blog.dclick.com.br/wp-content/uploads/adobe-flex-coding-guidelines-v12-english.pdf


 Portuguese version:
 
http://blog.dclick.com.br/wp-content/uploads/adobe-flex-coding-guidelines-v12-portugues.pdf


 Thanks,
 Fabio Terracini




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



Re: [flexcoders] Re: Flex Coding Guidelines

2007-02-12 Thread Fabio Terracini

I'm looking for a plug-in like this too (Java has one). You can use any XML
formatter to format your MXML files, but I haven't find anything to format
AS 3 classes. Maybe in FB 3?

--
Fabio


On 2/12/07, Adam Royle [EMAIL PROTECTED] wrote:


 I don't understand why there isn't a feature in Eclipse that formats the
code exactly how *YOU* want it. When you open up someone else's code it
should just auto-format to how you prefer. You can make changes to the code,
and when another coder opens it up, it formats it according to their
preferences. It could even save it back into the generic format so it
doesn't screw around with version control.

Maybe this exists already?? I prefer hugging curly braces, FWIW.

Adam


- Original Message -
*From:* Matt Chotin [EMAIL PROTECTED]
*To:* flexcoders@yahoogroups.com
*Sent:* Monday, February 12, 2007 2:49 PM
*Subject:* RE: [flexcoders] Re: Flex Coding Guidelines

  I'm not sure there's a single engineering organization that doesn't get
into fights about curly brace placement.  To each their own J  I
personally like separate lines.

 --

*From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On
Behalf Of *lepusmars
*Sent:* Sunday, February 11, 2007 6:37 PM
*To:* flexcoders@yahoogroups.com
*Subject:* [flexcoders] Re: Flex Coding Guidelines

  I've seen more Java developers do it they way proposed with the curly
braces on the next line. It's always bothered me... I'm an old dog I
guess (actually I'm only 30), and a bit Obsessive Compulsive.

--- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Michael
Schmalle
[EMAIL PROTECTED] wrote:

  I think it makes code less readable and

 Oh lets all agree to disagree on this one.

 Which side do you butter your bread? On the top or bottom, what???
On the
 sides!!! ?

 I can't stand curly braces on the method line, doesn't allow a space
from
 the method signature to fully read and seems cramped to me.

 But that is my point, you will never get people to agree on spaces,
braces
 and whatever else developers have a habit doing.

 ... Just because Java / C++ does it, doesn't mean its right. Things
always
 evolve.

 just kidding, maybe.

 Peace, Mike


 



Re: [flexcoders] Re: Flex Coding Guidelines

2007-02-12 Thread Fabio Terracini

Be sure of that! ;-) There's always a fight on this.

We used to place curly braces in the method/block line but since we're often
extending Adobe components (that use curly braces in its own line) we
thought we should stick that way.

There's no right or wrong on this. There's conventions, there's standards.

[]s
Fabio Terracini


On 2/12/07, Matt Chotin [EMAIL PROTECTED] wrote:


 I'm not sure there's a single engineering organization that doesn't get
into fights about curly brace placement.  To each their own J  I
personally like separate lines.


 --

*From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On
Behalf Of *lepusmars
*Sent:* Sunday, February 11, 2007 6:37 PM
*To:* flexcoders@yahoogroups.com
*Subject:* [flexcoders] Re: Flex Coding Guidelines



I've seen more Java developers do it they way proposed with the curly
braces on the next line. It's always bothered me... I'm an old dog I
guess (actually I'm only 30), and a bit Obsessive Compulsive.

--- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Michael
Schmalle
[EMAIL PROTECTED] wrote:

  I think it makes code less readable and

 Oh lets all agree to disagree on this one.

 Which side do you butter your bread? On the top or bottom, what???
On the
 sides!!! ?

 I can't stand curly braces on the method line, doesn't allow a space
from
 the method signature to fully read and seems cramped to me.

 But that is my point, you will never get people to agree on spaces,
braces
 and whatever else developers have a habit doing.

 ... Just because Java / C++ does it, doesn't mean its right. Things
always
 evolve.

 just kidding, maybe.

 Peace, Mike






[flexcoders] CheckBox background color

2007-02-12 Thread Pablo

Hi All.

How I can change CheckBox background color and Label background color?


Re: [flexcoders] Scroll Position

2007-02-12 Thread Amol Pandhare
Hi,

You may use the following properties which all the containers in Flex have to 
do the set the scroll position. Check out the conainer properties which you 
would see in the Flex Help.

Some of them are below :
horizontalLineScrollSize : Number 
Number of pixels to move when the left- or right-arrow button in the horizontal 
scroll bar is pressed.
horizontalPageScrollSize : Number 
Number of pixels to move when the track in the horizontal scroll bar is pressed.
horizontalScrollPosition : Number 
The current position of the horizontal scroll bar.

The same goes well replacing horizontal with vertical for the vertical 
scroll control.

You can set the scroll value for the verticalScrollPosition property of the 
Canvas to get the desired output.
like... canvasInstance.verticalScrollPosition = 30, where '30' could be your 
calculated value.

Regards, 

Amol.



- Original Message 
From: jmfillman [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Sunday, February 11, 2007 1:15:49 AM
Subject: [flexcoders] Scroll Position

I have canvas whose content scrolls verticaly about 3 pages. However, 
I don't want this to always start at the top, but is dependant on the 
user. The question is, how do I set the vertical scroll position to 
something other than the top, while still allowing the user to scroll 
up or down as needed?





 

Get your own web address.  
Have a HUGE year through Yahoo! Small Business.
http://smallbusiness.yahoo.com/domains/?p=BESTDEAL

RE: [flexcoders] Re: New to the group

2007-02-12 Thread Ben Stucki
Hi Pedro,

 

Sorry about that. This should be the correct solution.

 

idHTTPService.lastResult.record.(subject.(@id==c001).length())

 

Again, the important distinction between XPath and E4X is that E4X is
essentially an object representation of the XML. Here are a few E4X rules
that I've learned along the way, I'll probably try to expand on this more
and make a post on it sometime.

 

-  All E4X statements will return an XMLList object. E4X with no
results will return a blank XMLList object.

-  XMLList objects with only one child node can be treated as XML
objects (which is why you would get results when records had only one child,
but I don't think E4X statements should ever depend on this functionality).

-  Any filter (items in parenthesis) will be evaluated as a Boolean
value inside the context of each child from the E4X to which it's applied.
False results are filtered out. You can put anything in a filter really; it
doesn't have to be more E4X.

-  Blank XMLList objects are still evaluated as true (non-null) in a
filter (which is why I used the length() method, this way blank XMLList
objects will return a length of 0 which evaluates as false).

 

I think making a transition from XPath to E4X is probably harder than just
learning E4X with no background, simply because developers have an
expectation of syntax and functionality similar to XPath. There is some
quirky behavior in comparison, but hopefully it's not that hard once you
realize you're just working with XMLList objects.

 

Ben Stucki

-
We're Hiring! Seeking a passionate developer to join our team building Flex
based products. Position is in the Washington D.C.  
metro area. If interested contact [EMAIL PROTECTED]
mailto:[EMAIL PROTECTED] l.com

  _  

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Pedro Pastor
Sent: Saturday, February 10, 2007 4:19 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: New to the group

 

Hi Ben,

Thank you very much for your response. Here you are my comments: 

1) The = / == error is just a typing error in my e-mail. This
symbol was properly set in my code.

2) I've tried your suggestion but it doesn't work. That query provides
ALL the record elements in the XML tree. Using the very same code
but removing the internal () for the (@id == c001) filter, it
provides me with the matching record elements BUT only those having
ONLY ONE subject children (and having @id = c001).

3) The point is I need to check (filter) at children level (subject)
in order to get the appropriate parent node-set (record). That's
very easy in XPath, but I'm getting quite confusing with E4X. 

I've been developing XML application form years, and I've been dealing
with XML+XSLT+ . some other dynamic HTML technologies and I find
Flex+ActionScript is a big step forward in the client web application
realm, but the way ActionScript deals with XML is a bit deceiving.

Best regards,

Pedro

--- In [EMAIL PROTECTED] mailto:flexcoders%40yahoogroups.com ups.com,
Ben Stucki [EMAIL PROTECTED] wrote:

 
 Hey Pedro,
 
 Welcome to FlexCoders!
 
 I came into E4X with a background in XPath as well and think the
 biggest hurdle in learning E4X was understanding the methodology behind
 it. XPath is intended as a query language for XML. In contrast I think
 of E4X more like an object representation of XML. This means it can
 treat results a little differently based on the form of the XML , such
 as when you get results with only one subject node but not with
 multiple subject nodes. I've found that while I work with XPath from
 the top down, I get the best results from E4X when I check it from the
 inside out. Here's how the original query works out.
 
 idHTTPService.lastResult.record
 
 .(
 
 [EMAIL PROTECTED]c001)
 
 The inner most part is @id=c001. The main problem with this is that
 it uses the assignment (=) operator and not evaluation (==). This means
 that istead of looking for an id attribute value of c001, it's
 actually creating or overrideing the id attribute. So we'll change that
 to ==.
 
 idHTTPService.lastResult.record
 
 .(
 
 [EMAIL PROTECTED]c001)
 
 The next part to evaluate is [EMAIL PROTECTED]c001. The problem here is
 that while @id==c001 is meant as a filter, it's not in parenthesis.
 So we'll change that to subject.(@id==c001) .
 
 The rest works already, so here's the end result.
 
 idHTTPService.lastResult.record
 
 .(
 
 subject.(@id==c001))
 
 It takes a little getting used to, but I've found that E4X can
normally handle what I need it to do.
 
 Ben Stucki

 



Re: [flexcoders] more news on our upcoming marketing efforts

2007-02-12 Thread Shannon Hicks

Don't forget about the flexcomponents group, along with riaforge

Shan

Dimitrios Gianninas wrote:


Actually I gave some of the dev team here are Optimal a Flex 2 
training so they could use it in their own projects. And I was showing 
them some of the components people built that I was already using. So 
they asked where do we find these? Is there an apache commons type web 
site to go to? I think this is something that needs to be work on, 
cause people are building some useful components, but they post them 
on their blogs and such, so if you don't read blogs everyday and write 
them down, you are going to loose track of them. So maybe something 
can be done in that regard.


Dimitrios Gianninas
Optimal Payments Inc.

-Original Message-
From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com 
on behalf of Matt Chotin

Sent: Fri 2/9/2007 12:04 PM
To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
Subject: [flexcoders] more news on our upcoming marketing efforts

http://weblogs.macromedia.com/flexteam/archives/2007/02/flex_campaign_f. 
http://weblogs.macromedia.com/flexteam/archives/2007/02/flex_campaign_f.

cfm

Hopefully we're going to see an influx of people trying Flex, any
suggestions the community wants to put together for helping folks get up
and running are always appreciated.

Matt

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


 




[flexcoders] Nesting remotable objects?

2007-02-12 Thread Brockman, Gerald

Hi,

 

I am putting together a survey system in Flex2 (my 1st major Flex
project). I am basically taking an accordion (called accSurvey) and
embedding an accordion in each pocket. Then finally I will put a
datagrid in each pocket of the subaccordions. The pockets were all
implemented by writing them as a component.mxml and instantiating them
on the fly at runtime (createChild). The creations are working fine if
no data is involved but, I use data to define the survey structure. So I
use flash remoting into a cfc to get data from SqlServer 2K5 for
defining the survey structure. What I am running into is this I get the
initial data in the main initApp() from

 

mx:RemoteObject 

id=ro 

destination=ColdFusion 

source=mpdb.InterPlanSurvey.cfc.survey

showBusyCursor=true   

mx:method 

name=getSectionGroups 

 
result=populateSectionGroups(event)/

mx:method 

name=getSections 

 
result=populateSectionGroups(event)/

/mx:RemoteObject

 

So far so good.

 

I then create the pockets for the top level accordion:

 

public function initApp():void{

ro.getSectionGroups();

}



public function
populateSectionGroups(event:ResultEvent):void{

for( var i:int = 0; i  event.result.length; i++
){

 
addSectionGroupToAcc(event.result[i]);

 
trace(event.result[i].SectionGroupText);


}

} 

 

public function
addSectionGroupToAcc(sectiongroupObj:Object):void{

var newSectionGroup:SectionGroup = new
SectionGroup();

newSectionGroup.strSurveyID =
sectiongroupObj.SID;

newSectionGroup.strSectionGroupID =
sectiongroupObj.SGID;

newSectionGroup.strSectionGroupText =
sectiongroupObj.SectionGroupText;

newSectionGroup.label =
sectiongroupObj.SectionGroupText;

accSurvey.addChild(newSectionGroup);


}

 

 

It works perfect, so if it worked before I thought, it should work again
in the component

 

mx:Canvas 

xmlns:mx=http://www.adobe.com/2006/mxml; 

xmlns:component=component.*

width=90% 

height=90% 



creationComplete=initSections()





mx:Script

![CDATA[

import mx.rpc.events.ResultEvent;

 

public function initSections():void{

   ro.getSections();

}



[Bindable] public var
strSurveyID:String = '';

[Bindable] public var
strSectionGroupID:String = '';

[Bindable] public var
strSectionGroupText:String = '';





public function
populateSections(event:ResultEvent):void{

for( var i:int = 0; i 
event.result.length; i++ ){

 
addSectionToAcc(event.result[i]);

 
trace(event.result[i].SectionText);


}

} 

public function
addSectionToAcc(sectionObj:Object):void{

var newSection:Section =
new Section();

//newSection.strSurveyID
= sectionObj.SID;

 
//newSection.strSectionGroupID = sectionObj.SGID;

 
//newSection.strSectionID = sectionObj.SECID;

newSection.label =
sectionObj.SectionText;

 
accSections.addChild(newSection);

}   

 

mx:RemoteObject 

id=ro 

destination=ColdFusion


 
source=mpdb.InterPlanSurvey.cfc.survey

showBusyCursor=true


mx:method 

 
name=getSections 

 
result=populateSections(event)/

/mx:RemoteObject



]]

/mx:Script



mx:Accordion id=accSections 

[flexcoders] Java developer is glad to participate in open source Flex project.

2007-02-12 Thread alex_s9v
Hi all!
My name is Alexander.

I have a passion for Flex and I'd like to participate in open source
flex project.

I have 2 years experience with server-side java (Struts, JSF and
Hibernate) and a little experience with Eclipse RCP.

I am searching for open source flex project where I can avail and can
improve my Flex skills.


 



[flexcoders] Trouble Converting java List to ArrayCollection

2007-02-12 Thread ytseshred
I'm using RemoteObjects to connect to my backend.  In one of my calls
I'm trying to return a List of VO's I create after hitting my database.

On the Flex side, my result event is firing properly, but when I try
to convert the result to an ArrayCollection, instead of getting a
proper ArrayCollection I get single element that displays the
following when I output it in an alert: obj is: '[object TestVO],
[object TestVO], ... [object TestVO]'.

If I return a single TestVO object directly instead of a List, I can
properly cast the result to my ActionScript TestVO object and view the
data properly.  It's just returning the List that's giving me problems.

Can anyone offer any suggestions please?

My Flex result code is:

public function result(evt:Object):void {
  if(evt.type  evt.type == ResultEvent.RESULT) {
var re:ResultEvent = evt as ResultEvent;
var col:ArrayCollection = new
ArrayCollection(ArrayUtil.toArray(re.result));
if(col) {
  Alert.show(obj is: ' + col.getItemAt(0) + ');
}
else Alert.show(Didn't cast properly!);
  }
}

My Java DAO code that returns the list is:

public List getList() throws DAOException {
  List list = new ArrayList();
  Connection c = null;

  try {
c = ConnectionHelper.getConnection();
Statement s = c.createStatement();
ResultSet rs = s.executeQuery(SELECT * FROM test);
while(rs.next()) {
  TestVO vo = new TestVO();
  vo.id = rs.getInt(id);
  vo.data = rs.getString(data);
  list.add(vo);
}
  } catch(Exception e) {
e.printStackTrace();
throw new DAOException(e);
  } finally {
ConnectionHelper.close(c);
  }
  return list;
}



RE: [flexcoders] Re: more news on our upcoming marketing efforts

2007-02-12 Thread Matt Chotin
We're working on the performance of those sites.  And the Exchange is going to 
get a minor upgrade in a few months.  But yes, we've certainly hoped that the 
Exchange can act as the repository for components, even if the actual code is 
hosted elsewhere.  It seems silly for us to invent yet another place.

 

Matt

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of 
ben.clinkinbeard
Sent: Friday, February 09, 2007 8:35 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: more news on our upcoming marketing efforts

 

I think that's what this is supposed to be
http://www.adobe.com/cfusion/exchange/index.cfm?view=sn610. 
http://www.adobe.com/cfusion/exchange/index.cfm?view=sn610.  There is
also the Flex Cookbook
(http://www.adobe.com/cfusion/communityengine/index.cfm?event=homepageproductId=2
 
http://www.adobe.com/cfusion/communityengine/index.cfm?event=homepageproductId=2
 ),
but like the Adobe forums neither one seems to be used very much. I'm
not exactly sure why Adobe's site (and MM's before it) never seem to
attract much community activity, but I suspect that the (ongoing, even
since recent upgrades) poor performance has at least something to do
with it.

Ben

--- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , 
Dimitrios Gianninas
[EMAIL PROTECTED] wrote:

 Actually I gave some of the dev team here are Optimal a Flex 2
training so they could use it in their own projects. And I was showing
them some of the components people built that I was already using. So
they asked where do we find these? Is there an apache commons type web
site to go to? I think this is something that needs to be work on,
cause people are building some useful components, but they post them
on their blogs and such, so if you don't read blogs everyday and write
them down, you are going to loose track of them. So maybe something
can be done in that regard.
 
 Dimitrios Gianninas
 Optimal Payments Inc.
 
 
 
 -Original Message-
 From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com  on 
 behalf of Matt Chotin
 Sent: Fri 2/9/2007 12:04 PM
 To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com 
 Subject: [flexcoders] more news on our upcoming marketing efforts
 
 http://weblogs.macromedia.com/flexteam/archives/2007/02/flex_campaign_f. 
 http://weblogs.macromedia.com/flexteam/archives/2007/02/flex_campaign_f. 
 cfm
 
 Hopefully we're going to see an influx of people trying Flex, any
 suggestions the community wants to put together for helping folks get up
 and running are always appreciated.
 
 Matt
 
 -- 
 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] Java developer is glad to participate in open source Flex project.

2007-02-12 Thread Igor Costa

Hi Alexander

you could start looking at Code Google
and

www.riaforge.com
www.osflash.org


Best.

On 2/12/07, alex_s9v [EMAIL PROTECTED] wrote:


  Hi all!
My name is Alexander.

I have a passion for Flex and I'd like to participate in open source
flex project.

I have 2 years experience with server-side java (Struts, JSF and
Hibernate) and a little experience with Eclipse RCP.

I am searching for open source flex project where I can avail and can
improve my Flex skills.

 





--

Igor Costa
www.igorcosta.org
www.igorcosta.com
skype: igorpcosta


[flexcoders] Any Idea to build such an application

2007-02-12 Thread sanjaypmg
Hi All,

I want to know how can I build an application like:

http://plasma.nationalgeographic.com/mapmachine/index.html#theme=Street
c=0|0sf=190728987.993139

All Ideas are welcome here, Please go ahead..

Thanks,
Sanjay sharma



[flexcoders] OSS, framework for functional testing. Error including automation_agent.swc

2007-02-12 Thread pmotzfeldt
Hi, I am new to this group. Hope I am not posting wrong.

I am on my last year at The Norwegian University of Science and
Technology (NTNU) and in my last assignment I will try to develop a
open source framework for functional testing of Flex application. 

I see from other messages that there are others out there doing the
same :-)

I have just started, and I am having trouble with including the
library automation_agent.swc.

I get the error message:
Unable to resolve the class for the ResourceBundle: automation_agent

I have installed the Automation Package with the FDS2 serial and
entered the following lines in the flex-config.xml:
(the files are infact in the libs folder)

include-libraries
  library/libs/automation.swc/library
  library/libs/automation_agent.swc/library
  library/libs/qtp.swc/library
/include-libraries

Does anybody know what I am doing wrong? Is it something wrong with
the license...

Thank you for any answer!



[flexcoders] DG.dataProvider.length returns 0 at creationComplete time

2007-02-12 Thread Paul Barbieux
Hello;

I would like that the number of lines in my dataGrid is equal to the
number of data from my dataProvider.

I have found a part of solution by searching in this forum, and the code
is simple:

DG.rowCount = DG.dataProvider.length;

So, I have written this code like this:

mx:DataGrid id=DG dataProvider={myDataProvider}
creationComplete=DG.rowCount=DG.dataProvider.length

But it doesn't work: DG.dataProvider.length return 0.

I have tried with the callLater:

private function resizeDG():void {
var dataLength:String = DG.dataProvider.length;
DG.rowCount = DG.dataProvider.length;
}
mx:DataGrid id=DG dataProvider={myDataProvider}
creationComplete=callLater(resizeDG);

The problem remains...

I have placed the resizeDG function in the creationComplete of the main
component... and the problem remains...

But, if I create a button that calls the resizeDG, yes!, my dataGrid
grows to the correct number of lines !

Thus, my problem is: how to invoke my function when the dataGrid is
displayed ?
Why the creationComplete doesn't work ?...

Thank's

Paul



[flexcoders] Re: Custom TreeItemRenderer??

2007-02-12 Thread tinkiknit
Thanks again. I'll let you know how it goes...

christine
--- In flexcoders@yahoogroups.com, Tracy Spratt [EMAIL PROTECTED] 
wrote:

 Here is an example that is pretty easy to understand.  You can 
ignore
 the line drawing stuff for your purposes.
 
 http://www.cflex.net/showfiledetails.cfm?
ChannelID=1Object=FileobjectI
 D=575
 
  
 
 I suggest you rename this to what you want yours to be called and 
then
 get it working with your tree.  Then, begin modifying it to 
display what
 you want.
 
 Tracy
 
  
 
 
 
 From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On
 Behalf Of tinkiknit
 Sent: Friday, February 09, 2007 1:25 PM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Custom TreeItemRenderer??
 
  
 
 Hi again Flexperts...
 
 I'm still working on my tree of query terms...I'm perplexed about 
 customizing the TreeItemRenderer so that my nodes (these are 
 actually my custom component which is used to create query terms) 
 show up instead of the default file icon and label.
 
 Example in plain text:
 
 AND
 |
 +
 
 OR
 |
 +
 
 NOT
 |
 +
 the + represents my custom component as it's a linkButton that 
when 
 clicked brings up a fancy query builder to add a term for that 
 operation...so far I have in XML representing my tree:
 
 mx:XML id=Terms
 root
 Operation label=AND
 children label=  
 /Operation
 Operation label=OR
 children label=  
 /Operation
 Operation label=NOT
 children label=  
 /Operation
 /root
 /mx:XML
 
 I want my children to show up as the custom component that is 
fully 
 functional and think that TreeItemRenderer is the place I need to 
put 
 code to do this. Any examples out there for using a custom 
component 
 for nodes?
 
 Thanks in advance!
 
 Christine





RE: [flexcoders] DG.dataProvider.length returns 0 at creationComplete time

2007-02-12 Thread Steve Cox
At your time of creationComplete the dataprovider probably isn't
populated. Thus you want the rowcount to change when the dataprovider
length changes.
 
Try binding the rowCount property of the dataprovider to the
dataprovider like:
 
mx:DataGrid id=DG dataProvider={myDataProvider}
rowCount={myDataProvider.length} /
 
 
 
-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Paul Barbieux
Sent: 12 February 2007 14:30
To: flexcoders@yahoogroups.com
Subject: [flexcoders] DG.dataProvider.length returns 0 at
creationComplete time
 
Hello;

I would like that the number of lines in my dataGrid is equal to the
number of data from my dataProvider.

I have found a part of solution by searching in this forum, and the code
is simple:

DG.rowCount = DG.dataProvider.length;

So, I have written this code like this:

mx:DataGrid id=DG dataProvider={myDataProvider}
creationComplete=DG.rowCount=DG.dataProvider.length

But it doesn't work: DG.dataProvider.length return 0.

I have tried with the callLater:

private function resizeDG():void {
   var dataLength:String = DG.dataProvider.length;
   DG.rowCount = DG.dataProvider.length;
}
mx:DataGrid id=DG dataProvider={myDataProvider}
creationComplete=callLater(resizeDG);

The problem remains...

I have placed the resizeDG function in the creationComplete of the main
component... and the problem remains...

But, if I create a button that calls the resizeDG, yes!, my dataGrid
grows to the correct number of lines !

Thus, my problem is: how to invoke my function when the dataGrid is
displayed ?
Why the creationComplete doesn't work ?...

Thank's

Paul
 


[flexcoders] Bitmap or BitmapData used for backgroundImage

2007-02-12 Thread polestar11
Hi there

I want to know if its possible to use Bitmap or BitmapData for the
backgroundImage style property of a Flex Container component.

My reason for this is that I store all my styling assets in a swf file
 have a method that extracts them as MovieClips  transforms them
into Bitmaps.

An alternative would be to call the graphics.beginBitmapFill method on
that component  redraw it accordingly when the component resize,
which seems like too long a way round.

Any ideas?

Tracy







[flexcoders] FlexAntTasks and tokens

2007-02-12 Thread Stembert Olivier \(BIL\)
Hi,

I'd like to use tokens with FlexAntTasks. I don't see how I can pass the
token to the mxmlc tag.

To know what is a token, one can red in the doc:
You can pass custom token values to the compiler using the following
syntax: +token_name=value In the configuration file, you reference that
value using the following syntax: ${token_name} You can use the @Context
token in your configuration files to represent the context root of the
application. You can also use the ${flexlib} token to represent the
frameworks directory. This is useful if you set up your own
configuration and are not using the default library-path settings. The
default value of the ${flexlib} token is application_home\frameworks.

Rgds,

Olivier

-
An electronic message is not binding on its sender.
Any message referring to a binding engagement must be confirmed in writing and 
duly signed.
-



[flexcoders] Using data in an Array Collection

2007-02-12 Thread jryano001
Hi, 
 
I'm very new to Flex and hope someone advise me on this or tell me if 
it's even possible! 
 
My Flex application is pulling data using a php page.  The data is 
then parsed into XML and is placed inside an ArrayCollection called 
custData.  My DataGrid is then using custData as it's dataProvider.  
This is all working and my Datarid displays my two colmuns (cust  
status). 
 
What I need to be able to do though is to check the values in my 
status column and if any of these change to '2' then trigger an event 
(at the moment this could just be to display some text). 
 
I know (unless someone tells me otherwise) that I need an If 
statement to check the values of status in my ArrayCollection but I 
need to know how you access just the values of status and if one has 
changed to '2' then to display the text.   
 
I'd really appreciate if someone could point me in the right 
direction.  Thanks in advance.  If it makes anything clearer then my 
code is below. 
 
--
 
 
?xml version=1.0 encoding=utf-8? 
mx:Application xmlns:mx=http://www.adobe.com/2006/mxml;  
 initialize=custRequest.send() 
  
 mx:Script 
   ![CDATA[ 
 import mx.collections.ArrayCollection; 
 import mx.rpc.events.ResultEvent; 
  
 [Bindable] 
 private var custData:ArrayCollection; 
  
 private function resultHandler
(event:ResultEvent):void { 
   custData = event.result.cstatus.customer; 
 } 
   ]] 
 /mx:Script 
  
 mx:HTTPService id=custRequest  
   url=http://localhost/FlexTest/retrieve.php; 
   result=resultHandler(event)/ 
  
 mx:DataGrid dataProvider={custData} 
   mx:columns 
  mx:DataGridColumn headerText=Customer 
dataField=cust/ 
  mx:DataGridColumn headerText=Status 
dataField=status/ 
  /mx:columns 
   /mx:DataGrid 
  
/mx:Application 



Re: [flexcoders] DG.dataProvider.length returns 0 at creationComplete time

2007-02-12 Thread Clint Tredway

have you tried using the initialize event?

On 2/12/07, Paul Barbieux [EMAIL PROTECTED] wrote:


  Hello;

I would like that the number of lines in my dataGrid is equal to the
number of data from my dataProvider.

I have found a part of solution by searching in this forum, and the code
is simple:

*DG.rowCount = DG.dataProvider.length;*

So, I have written this code like this:

mx:DataGrid id=DG dataProvider={myDataProvider} creationComplete=*
DG.rowCount=DG.dataProvider.length*

But it doesn't work: *DG.dataProvider.length* return 0.

I have tried with the callLater:

private function *resizeDG*():void {
   var dataLength:String = DG.dataProvider.length;
   *DG.rowCount = DG.dataProvider.length*;
}
mx:DataGrid id=DG dataProvider={myDataProvider}
creationComplete=callLater(*resizeDG*);

The problem remains...

I have placed the *resizeDG* function in the creationComplete of the main
component... and the problem remains...

*But*, if I create a button that calls the *resizeDG*, yes!, my dataGrid
grows to the correct number of lines !

Thus, my problem is: how to invoke my function when the dataGrid is
displayed ?
Why the creationComplete doesn't work ?...

Thank's

Paul
 





--
http://indeegrumpee.spaces.live.com/


Re: [flexcoders] Using data in an Array Collection

2007-02-12 Thread Clint Tredway

use a labelFunction to check the value and then do something:

private function checkData(item:Object,column:Object):String{
   var retString:String;
   if(item['column'] == 2){
   retString=Return String;
} else {
retString = Alt Return string;
}
}

then set this as the labelFunction on that DataGridColumn and that should
get you going.

On 2/12/07, jryano001 [EMAIL PROTECTED] wrote:


  Hi,

I'm very new to Flex and hope someone advise me on this or tell me if
it's even possible!

My Flex application is pulling data using a php page. The data is
then parsed into XML and is placed inside an ArrayCollection called
custData. My DataGrid is then using custData as it's dataProvider.
This is all working and my Datarid displays my two colmuns (cust 
status).

What I need to be able to do though is to check the values in my
status column and if any of these change to '2' then trigger an event
(at the moment this could just be to display some text).

I know (unless someone tells me otherwise) that I need an If
statement to check the values of status in my ArrayCollection but I
need to know how you access just the values of status and if one has
changed to '2' then to display the text.

I'd really appreciate if someone could point me in the right
direction. Thanks in advance. If it makes anything clearer then my
code is below.

--


?xml version=1.0 encoding=utf-8?
mx:Application xmlns:mx=http://www.adobe.com/2006/mxml;
initialize=custRequest.send()

mx:Script
![CDATA[
import mx.collections.ArrayCollection;
import mx.rpc.events.ResultEvent;

[Bindable]
private var custData:ArrayCollection;

private function resultHandler
(event:ResultEvent):void {
custData = event.result.cstatus.customer;
}
]]
/mx:Script

mx:HTTPService id=custRequest
url=http://localhost/FlexTest/retrieve.php;
result=resultHandler(event)/

mx:DataGrid dataProvider={custData}
mx:columns
mx:DataGridColumn headerText=Customer
dataField=cust/
mx:DataGridColumn headerText=Status
dataField=status/
/mx:columns
/mx:DataGrid

/mx:Application

 





--
http://indeegrumpee.spaces.live.com/


[flexcoders] Re: DG.dataProvider.length returns 0 at creationComplete time

2007-02-12 Thread Paul Barbieux
Thank you Steve: it works !
In fact the solution was very simple !...

Paul

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

 At your time of creationComplete the dataprovider probably isn't
 populated. Thus you want the rowcount to change when the dataprovider
 length changes.
  
 Try binding the rowCount property of the dataprovider to the
 dataprovider like:
  
 mx:DataGrid id=DG dataProvider={myDataProvider}
 rowCount={myDataProvider.length} /
  
  
  
 -Original Message-
 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
 Behalf Of Paul Barbieux
 Sent: 12 February 2007 14:30
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] DG.dataProvider.length returns 0 at
 creationComplete time
  
 Hello;
 
 I would like that the number of lines in my dataGrid is equal to the
 number of data from my dataProvider.
 
 I have found a part of solution by searching in this forum, and the code
 is simple:
 
 DG.rowCount = DG.dataProvider.length;
 
 So, I have written this code like this:
 
 mx:DataGrid id=DG dataProvider={myDataProvider}
 creationComplete=DG.rowCount=DG.dataProvider.length
 
 But it doesn't work: DG.dataProvider.length return 0.
 
 I have tried with the callLater:
 
 private function resizeDG():void {
var dataLength:String = DG.dataProvider.length;
DG.rowCount = DG.dataProvider.length;
 }
 mx:DataGrid id=DG dataProvider={myDataProvider}
 creationComplete=callLater(resizeDG);
 
 The problem remains...
 
 I have placed the resizeDG function in the creationComplete of the main
 component... and the problem remains...
 
 But, if I create a button that calls the resizeDG, yes!, my dataGrid
 grows to the correct number of lines !
 
 Thus, my problem is: how to invoke my function when the dataGrid is
 displayed ?
 Why the creationComplete doesn't work ?...
 
 Thank's
 
 Paul





[flexcoders] VideoDisplay won't load first frame

2007-02-12 Thread klumikaze
I have a VideoDisplay component, and I've declared it's 'source' properly, I 
also do a 
myVidDisplay.load() when the component hits creationComplete. I have autoPlay 
disabled, 
you need to hit a play button to initiate the myVidDisplay.play() call...

Unfortunately, the first frame of the video refuses to load and I am left with 
a blank screen.

Any ideas?

Thanks,

Brian Dunphy



[flexcoders] Re: Cross domain confusion

2007-02-12 Thread John buono

thanks, that explains a lot.

Question is how do I solve the problem of deployment, what can I do  
to the application on the users side so that I can do this same thing?


I am sure it has to do with the crossdomain.xml stuff but Have no  
idea what to do





I don't really have a solution, but a suggestion as to why it might be
working locally. If you created the project in Flex Builder it will  
add

the source location to a trust file:

Documents and Settings\$UserName$\Application Data\Macromedia\Flash
Player\#Security\FlashPlayerTrust\flexbuilder.cfg

(for my setup anyway)

This will override any sandbox issues when you run locally and  
possibly

hide whatever security issue you're encountering when you deploy.



[flexcoders] Red5 now supports AMF3

2007-02-12 Thread Chris Allen

Hey everyone,

I'm sure that some of you may have seen this, but since it should make an
impact on Flex coders, I thought that I should pass this on.

We just released a new version of Red5 yesterday, and now Red5 (
http://osflash.org/red5) is supporting AMF3, either via remoting (HTTP) or
over RTMP for push style messaging. Of course it still can also do video and
audio streaming to and from the Flash player and a whole lot more. I can't
wait to see what kinds of Flex applications people build using this new
technology!

Please try it out and let us know what you think.

A huge thanks to the entire Red5 team for their hard work!

-Chris


[flexcoders] Re: FDS DataService.commit() doesn't trigger responder result()...?

2007-02-12 Thread parkerwhirlow
Jeff, 

Sorry about the lack of response, I've been out of the office all last
week.

I haven't heard of this mx:TraceTarget/ is that a global flag you
put at the mx:Application level? I'll give it a shot, and get back to you.

thanks,
PW

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

 It does really look like the ack is going back to the client.  Have you
 tried looking at the client side logs (in flashlog.txt, debug player
 only, enabled with mx:TraceTarget/?  Maybe something funky is going on
 there?
 
  
 
 Jeff
 
  
 
 
 
 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
 Behalf Of parkerwhirlow
 Sent: Monday, February 05, 2007 11:15 AM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] FDS DataService.commit() doesn't trigger responder
 result()...?
 
  
 
 Hi again,
 
 I've got a simple save case working as far as I can tell (from
 debugging the server java side, everything is OK after leaving the
 HibernateAssembler.java updateItem() method.
 
 But the result never gets back to the client... I have a responder
 registered to the call like so:
 
 call = service.commit();
 call.action = save;
 call.addResponder(responder);
 
 And my responder has both fault and result methods. I know the
 responder is registered because I was getting faults for a long time,
 and those were firing the fault handler. But now that I think I have
 the save going successfully, I'm not getting anything back.
 
 I've turned on FDS logging for messages, see the trace below. Seems
 like the ACK message is being sent... 
 
 Any ideas?
 
 thanks,
 PW
 
 02/05 11:01:36 user [Flex] 11:01:36.794 [DEBUG]
 [Message.Data.transacted] After invoke service: data-service
 reply: Flex Message (flex.messaging.messages.AcknowledgeMessage)
 clientId = null
 correlationId = null
 destination = null
 messageId = 7793A2C0-FA0D-5A78-3641-BB1BA4B4ADB5
 timestamp = 1170702096794
 timeToLive = 0
 body =
 [
 
 ]
 
 02/05 11:01:36 user [Flex] 11:01:36.794 [DEBUG] [Endpoint.RTMP]
 Serializing AMF/RTMP response
 Version: 3
 (Command method=_result (0) trxId=20)
 (Typed Object #0 'flex.messaging.messages.AcknowledgeMessage')
 destination = null
 headers = (Object #1)
 correlationId = 322C326C-9C96-8513-7EC3-934715E5D887
 messageId = 7793A2C0-FA0D-5A78-3641-BB1BA4B4ADB5
 timestamp = 1.170702096794E12
 clientId = 77909013-D108-A13B-EC7E-EDBFA5C3A894
 timeToLive = 0.0
 body = (Array #2)





[flexcoders] HTTPService updating database too frequently??

2007-02-12 Thread Cashorali, Tanya M.
I have datagrids whose dataproviders are the lastResult of httpservice calls.
The HTTPService calls are calling PHP scripts that update, remove, and create
rows.

 

I have a function that lets me double click an item in a datagrid and pop up a
window which then lets me edit the info.

 

The only problem is, the data doesn't always update right away even though I am
explicitly calling a refresh method after every change.  It sometimes works
right away, then other times it lags and the change doesn't show up until I edit
something else.

 

Should I be doing this in a different manner?  

 

Thanks,

Tanya





THE INFORMATION TRANSMITTED IN THIS ELECTRONIC COMMUNICATION IS INTENDED ONLY 
FOR THE PERSON OR ENTITY TO WHOM IT IS ADDRESSED AND MAY CONTAIN CONFIDENTIAL 
AND/OR PRIVILEGED MATERIAL.  ANY REVIEW, RETRANSMISSION, DISSEMINATION OR OTHER 
USE OF OR TAKING OF ANY ACTION IN RELIANCE UPON, THIS INFORMATION BY PERSONS OR 
ENTITIES OTHER THAN THE INTENDED RECIPIENT IS PROHIBITED.  IF YOU RECEIVED THIS 
INFORMATION IN ERROR, PLEASE CONTACT THE SENDER AND THE PRIVACY OFFICER, AND 
PROPERLY DISPOSE OF THIS INFORMATION.




Re: [flexcoders] Printing a TextArea

2007-02-12 Thread Tom Chiverton
On Thursday 08 Feb 2007, Rich Tretola wrote:
 Has anyone done any work with printing the htmlText from a TextArea
 component that has a scrollbar?

Have you tried settig height/width on the component(s) you are printing to 
100% and just letting the printer sort it out ?

-- 
Tom Chiverton
Helping to continually network eigth-generation partnerships



This email is sent for and on behalf of Halliwells LLP.

Halliwells LLP is a limited liability partnership registered in England and 
Wales under registered number OC307980 whose registered office address is at St 
James's Court Brown Street Manchester M2 2JF.  A list of members is available 
for inspection at the registered office. Any reference to a partner in relation 
to Halliwells LLP means a member of Halliwells LLP. Regulated by the Law 
Society.

CONFIDENTIALITY

This email is intended only for the use of the addressee named above and may be 
confidential or legally privileged.  If you are not the addressee you must not 
read it and must not use any information contained in nor copy it nor inform 
any person other than Halliwells LLP or the addressee of its existence or 
contents.  If you have received this email in error please delete it and notify 
Halliwells LLP IT Department on 0870 365 8008.

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



--
Flexcoders 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] VideoDisplay won't load first frame

2007-02-12 Thread Muzak
Try calling myVidDisplay.load() in the 'ready' event handler instead of the 
'creationComplete' event handler.

regards,
Muzak

- Original Message - 
From: klumikaze [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Monday, February 12, 2007 4:17 PM
Subject: [flexcoders] VideoDisplay won't load first frame


I have a VideoDisplay component, and I've declared it's 'source' properly, I 
also do a
myVidDisplay.load() when the component hits creationComplete. I have autoPlay 
disabled,
you need to hit a play button to initiate the myVidDisplay.play() call...

Unfortunately, the first frame of the video refuses to load and I am left with 
a blank screen.

Any ideas?

Thanks,

Brian Dunphy





[flexcoders] How to get the current build options FB uses?

2007-02-12 Thread Derek Vadneau
I thought the point of dump-config was to dump the configuration used
for a particular project. Apparently this isn't the case. dump-config
dumps out a generic config file.

What's the point of this?

Would it not be so much more useful to have FB be able to dump out a
file that can simply be used by the commandline compiler? I know it
would be for me.

I build and test using Flex Builder but my projects are then
integrated into a build system. The build system is not based on
Eclipse. What would be ideal is to have FB be able to dump out a
config file that I can simply pass along with my source for the build
process.

As it stands now I need to write my own (or modify the dump) config
file any time I make certain changes to my project.

Doesn't Flex Builder already have this information when it performs a
build? Could it not dump THAT out instead?

Maybe this is already possible - can anyone confirm/deny?

-- 

Derek Vadneau


Re: [flexcoders] Change distance between items on a HorizontalList

2007-02-12 Thread Tom Chiverton
On Thursday 08 Feb 2007, João wrote:
 is there a way to change the distance between items on a HorizontalList?

I expect there is a style to do it, yes, have you looked at the reference and 
tried a few ?

-- 
Tom Chiverton
Helping to augmentatively harvest best-of-breed bandwidth



This email is sent for and on behalf of Halliwells LLP.

Halliwells LLP is a limited liability partnership registered in England and 
Wales under registered number OC307980 whose registered office address is at St 
James's Court Brown Street Manchester M2 2JF.  A list of members is available 
for inspection at the registered office. Any reference to a partner in relation 
to Halliwells LLP means a member of Halliwells LLP. Regulated by the Law 
Society.

CONFIDENTIALITY

This email is intended only for the use of the addressee named above and may be 
confidential or legally privileged.  If you are not the addressee you must not 
read it and must not use any information contained in nor copy it nor inform 
any person other than Halliwells LLP or the addressee of its existence or 
contents.  If you have received this email in error please delete it and notify 
Halliwells LLP IT Department on 0870 365 8008.

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



--
Flexcoders 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: Cross domain confusion

2007-02-12 Thread Tom Chiverton
On Saturday 10 Feb 2007, Pedro Pastor wrote:
 cause for this error, but I supposed that by default an SWF file have
 granted access to a local data file.

You suppose wrong.
You'll need to set use-network to false in your compiler options.
Or use a trust file.

-- 
Tom Chiverton
Helping to simultaneously foster distributed m-commerce



This email is sent for and on behalf of Halliwells LLP.

Halliwells LLP is a limited liability partnership registered in England and 
Wales under registered number OC307980 whose registered office address is at St 
James's Court Brown Street Manchester M2 2JF.  A list of members is available 
for inspection at the registered office. Any reference to a partner in relation 
to Halliwells LLP means a member of Halliwells LLP. Regulated by the Law 
Society.

CONFIDENTIALITY

This email is intended only for the use of the addressee named above and may be 
confidential or legally privileged.  If you are not the addressee you must not 
read it and must not use any information contained in nor copy it nor inform 
any person other than Halliwells LLP or the addressee of its existence or 
contents.  If you have received this email in error please delete it and notify 
Halliwells LLP IT Department on 0870 365 8008.

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



--
Flexcoders 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: Flex Coding Guidelines

2007-02-12 Thread Tom Chiverton
On Monday 12 Feb 2007, Fabio Terracini wrote:
 formatter to format your MXML files, but I haven't find anything to format
 AS 3 classes. Maybe in FB 3?

The ActionScript 2 plugin from SourceForge works well enough.

-- 
Tom Chiverton
Helping to synergistically unleash world-class paradigms



This email is sent for and on behalf of Halliwells LLP.

Halliwells LLP is a limited liability partnership registered in England and 
Wales under registered number OC307980 whose registered office address is at St 
James's Court Brown Street Manchester M2 2JF.  A list of members is available 
for inspection at the registered office. Any reference to a partner in relation 
to Halliwells LLP means a member of Halliwells LLP. Regulated by the Law 
Society.

CONFIDENTIALITY

This email is intended only for the use of the addressee named above and may be 
confidential or legally privileged.  If you are not the addressee you must not 
read it and must not use any information contained in nor copy it nor inform 
any person other than Halliwells LLP or the addressee of its existence or 
contents.  If you have received this email in error please delete it and notify 
Halliwells LLP IT Department on 0870 365 8008.

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



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

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

* Your email settings:
Individual Email | Traditional

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

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

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

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


[flexcoders] Re: parent-child hierarchy of data using Flex, FDS and Hibernate

2007-02-12 Thread parkerwhirlow

 All-in-all a very worthwhile exercise and my dev environment is now
 more under my control.

Good to hear. was just replying to your previous post in this thread,
and now I see you got it figured out. Excellent.

 
 I still can't figure out how to turn on debug logging in Hibernate,

See this other post where I figured out how to turn on the Hibernate
logging. If you don't know about log4j, I suggest doing a few searches
on it, and reading up about the log4j.properties file. It's a very
powerful tool, and Hibernate has a TON of good logging, but its easy
to get lost in it all if you just turn everything on to debug...

http://tech.groups.yahoo.com/group/flexcoders/message/59623

Hibernate has a sample log4j.properties in the Hibernate/etc directory



 The exception is thrown way down in the bowels of the Hibernate
 session.save() method which is being called by
 HibernateAssembler.createItem.  From Jeff's last post he seemed to be
 suggesting that updateItem was in some way at fault.  I'm not quite
 seeing how that relates to my problem, although I am clearly no expert.
 

I'm not exactly sure how the problem would occur from createItem(),
but take a look at my post here I mention what was causing it for me
(was a lazy=false setting on the collection association of the object
being updated)

http://tech.groups.yahoo.com/group/flexcoders/message/63471

The issue with the NOT NULL column was that once I had everything
working the behavior it was doing was to null out all the FK values
for the association, thereby dis-associating the children from the
parent, then updating all the entries in the collection to point back
to the parent. Once I made the association nullable, the update
started working. (at least as far as FDS was concerned.


 
 Jeff, if you have a new version of the Assembler code and want a
 guinea-pig, send it my way.
 

Likewise!

cheers,
PW




[flexcoders] Re: parent-child hierarchy of data using Flex, FDS and Hibernate

2007-02-12 Thread parkerwhirlow
--- In flexcoders@yahoogroups.com, Jeff Vroom [EMAIL PROTECTED] wrote:
 It is now trying
 to do conflict detection on its own by comparing the previous version
 with a version of the hibernate object it loads into that session.  That
 won't be transactionally correct unless you are using a strict isolation
 level and Hibernate has its own versioning stuff which we should be
 using instead.   

Just an FYI, I have turned off all UPDATE conflict detection in FDS
(update-conflict-modeNONE/update-conflict-mode) in an attempt to
get the simple case working. I am fine with using Hibernate's
versioning for conflict detection. 

PW



[flexcoders] URLRequest Timeout

2007-02-12 Thread richmcgillicuddy
Is there a way to set the timeout value of a URLRequest or URLLoader?
We have a call that times out due to a slower server response. Any
ideas on how to make the call wait a second or two?


Rich



[flexcoders] Re: VideoDisplay won't load first frame

2007-02-12 Thread klumikaze
Thanks Muzak,

Unfortunately that didn't do the trick either...

Any other ideas?

Brian

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

 Try calling myVidDisplay.load() in the 'ready' event handler instead of the 
'creationComplete' event handler.
 
 regards,
 Muzak
 
 - Original Message - 
 From: klumikaze [EMAIL PROTECTED]
 To: flexcoders@yahoogroups.com
 Sent: Monday, February 12, 2007 4:17 PM
 Subject: [flexcoders] VideoDisplay won't load first frame
 
 
 I have a VideoDisplay component, and I've declared it's 'source' properly, I 
 also do a
 myVidDisplay.load() when the component hits creationComplete. I have autoPlay 
disabled,
 you need to hit a play button to initiate the myVidDisplay.play() call...
 
 Unfortunately, the first frame of the video refuses to load and I am left 
 with a blank 
screen.
 
 Any ideas?
 
 Thanks,
 
 Brian Dunphy





[flexcoders] Errors after 2.0.1

2007-02-12 Thread Derek Vadneau
I had built some Flex Applications prior to 2.0.1 that are now
displaying errors.

I have a pretty simple MXML file that contains a Script tag with the
source pointing to an AS file in the same directory as the MXML file.
The AS contains two simple functions:
private function AppInit():void
{
trace('init');
}

private function go():void
{
output_ta.text = 'hello\n';
}

When I upgraded to 2.0.1 I saw errors pointing to the two functions in
the AS file, both saying:
1013: The private attribute may be used only on class property definitions.

When I look at Properties for the project under the Flex Applications
section it lists test.mxml (default) and test.as.

When I remove test.as and click OK the errors go away.

If I then choose Run  Debug or Run  Run everything is fine.

If I choose Alt+Shift+D,F (listed as Debug Flex Application), the
errors reappear and test.as is back in the project properties.

What gives?

Btw, I've been using this key sequence because it was listed in the
Keys section of the Preferences as Debug Flex Application. What is the
difference between this and choosing Run  Debug?

-- 

Derek Vadneau


[flexcoders] Re: Using data in an Array Collection

2007-02-12 Thread jryano001
Thanks for the response.  This is more than likely me being daft but 
I've used the code you provided and set the labelFunction of 
checkData on the status DataGridColumn and I get an error in Flex 
stating:

1170: Function does not return a value.

Is the checkData function checking both my customer and status 
columns for '2' or do I have to (as I expect) enter in the column 
name I want to check in the code you provided?

I appreciate your help and patience!

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

 use a labelFunction to check the value and then do something:
 
 private function checkData(item:Object,column:Object):String{
 var retString:String;
 if(item['column'] == 2){
 retString=Return String;
  } else {
  retString = Alt Return string;
  }
 }
 
 then set this as the labelFunction on that DataGridColumn and that 
should
 get you going.
 
 On 2/12/07, jryano001 [EMAIL PROTECTED] wrote:
 
Hi,
 
  I'm very new to Flex and hope someone advise me on this or tell 
me if
  it's even possible!
 
  My Flex application is pulling data using a php page. The data is
  then parsed into XML and is placed inside an ArrayCollection 
called
  custData. My DataGrid is then using custData as it's dataProvider.
  This is all working and my Datarid displays my two colmuns (cust 
  status).
 
  What I need to be able to do though is to check the values in my
  status column and if any of these change to '2' then trigger an 
event
  (at the moment this could just be to display some text).
 
  I know (unless someone tells me otherwise) that I need an If
  statement to check the values of status in my ArrayCollection but 
I
  need to know how you access just the values of status and if one 
has
  changed to '2' then to display the text.
 
  I'd really appreciate if someone could point me in the right
  direction. Thanks in advance. If it makes anything clearer then my
  code is below.
 
  --
  
 
  ?xml version=1.0 encoding=utf-8?
  mx:Application xmlns:mx=http://www.adobe.com/2006/mxml;
  initialize=custRequest.send()
 
  mx:Script
  ![CDATA[
  import mx.collections.ArrayCollection;
  import mx.rpc.events.ResultEvent;
 
  [Bindable]
  private var custData:ArrayCollection;
 
  private function resultHandler
  (event:ResultEvent):void {
  custData = event.result.cstatus.customer;
  }
  ]]
  /mx:Script
 
  mx:HTTPService id=custRequest
  url=http://localhost/FlexTest/retrieve.php;
  result=resultHandler(event)/
 
  mx:DataGrid dataProvider={custData}
  mx:columns
  mx:DataGridColumn headerText=Customer
  dataField=cust/
  mx:DataGridColumn headerText=Status
  dataField=status/
  /mx:columns
  /mx:DataGrid
 
  /mx:Application
 
   
 
 
 
 
 -- 
 http://indeegrumpee.spaces.live.com/





[flexcoders] Flex Develope (Macromedia Flex/Oracle backend) position

2007-02-12 Thread vojha_imsi
One of our clients is looking for a consultant for this position.
Please email resumes or call (734) 996-0500 ext 211 for further 
information.  

Flex Developer (Macromedia FLex/Oracle backend)

Duration: 6 months
Location: Michigan

Proficient in Web Site Design, solid understanding of Web 
infrastructure.
Strong Web Development experience utilizing Macromedia Flex 
technology.
Strong, current Oracle/PL/SQL (Oracle 9i) development experience.
Cold Fusion and/or Java experience in creating web applications with 
connectivity to Oracle databases would be considered highly 
desirable.
Solid experience with Oracle Object Design and implementation 
(Oracle Packages, Procedures, Triggers).
Working knowledge of source code management tool and job scheduler.
Well organized with proven success in managing assignments 
(supporting end-users) to timely completion.
Strong business analysis skills with proven experience in proposing 
and developing solutions.
Strong systems analysis experience.
Experience with any of the following would be considered beneficial: 
SQL-Server, AppWorx, SQL and/or .Net.
Experience working in a client focused environment.
Previous automotive industry and/or business experience.
Familiarity with ISO is desirable.


Responsibilities:

Design and implement cost effective, high quality web applications 
to meet/exceed customer expectations.
Interface with customer to obtain a full understanding of the 
project requirements in order to recommend the appropriate 
technology to accomplish requirements.
Provide project timeline estimates.
Monitor deliverable deadlines against scheduled completion dates.
Participate in all phases of Software Development Lifecycle.
Support both client and department standards.
Perform unit testing of all applications developed and enhancements 
to systems.
Work with Quality Assurance team to ensure quality of work produced.
Process movement of jobs to production for both Internet and 
client/server applications and implementation of production 
scheduler.
Ensure backup and recovery procedures are in place.
Take ownership of assigned accounts.
Monitor application efficiencies to identify means of enhancing 
performance.
Ability to be self-directed, able to focus on personal assignments 
while remaining part of a larger team with proven ability to multi-
task.





[flexcoders] Coldfusion Version for FDS Data Push feature

2007-02-12 Thread Jim Pickering
Can someone verify for me if I can push data with FDS Express and
Coldfusion MX 7.0.2 Standard edition or do I need CFMX 7.0.2
Enterprise edition to make that happen?

Thanks,

Jim



[flexcoders] Re: Using data in an Array Collection

2007-02-12 Thread ytseshred
You need to return retString; at the end of the function.

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

 Thanks for the response.  This is more than likely me being daft but 
 I've used the code you provided and set the labelFunction of 
 checkData on the status DataGridColumn and I get an error in Flex 
 stating:
 
 1170: Function does not return a value.
 
 Is the checkData function checking both my customer and status 
 columns for '2' or do I have to (as I expect) enter in the column 
 name I want to check in the code you provided?
 
 I appreciate your help and patience!
 
 --- In flexcoders@yahoogroups.com, Clint Tredway grumpee@ 
 wrote:
 
  use a labelFunction to check the value and then do something:
  
  private function checkData(item:Object,column:Object):String{
  var retString:String;
  if(item['column'] == 2){
  retString=Return String;
   } else {
   retString = Alt Return string;
   }
  }
  
  then set this as the labelFunction on that DataGridColumn and that 
 should
  get you going.
  
  On 2/12/07, jryano001 jryan@ wrote:
  
 Hi,
  
   I'm very new to Flex and hope someone advise me on this or tell 
 me if
   it's even possible!
  
   My Flex application is pulling data using a php page. The data is
   then parsed into XML and is placed inside an ArrayCollection 
 called
   custData. My DataGrid is then using custData as it's dataProvider.
   This is all working and my Datarid displays my two colmuns (cust 
   status).
  
   What I need to be able to do though is to check the values in my
   status column and if any of these change to '2' then trigger an 
 event
   (at the moment this could just be to display some text).
  
   I know (unless someone tells me otherwise) that I need an If
   statement to check the values of status in my ArrayCollection but 
 I
   need to know how you access just the values of status and if one 
 has
   changed to '2' then to display the text.
  
   I'd really appreciate if someone could point me in the right
   direction. Thanks in advance. If it makes anything clearer then my
   code is below.
  
   --
   
  
   ?xml version=1.0 encoding=utf-8?
   mx:Application xmlns:mx=http://www.adobe.com/2006/mxml;
   initialize=custRequest.send()
  
   mx:Script
   ![CDATA[
   import mx.collections.ArrayCollection;
   import mx.rpc.events.ResultEvent;
  
   [Bindable]
   private var custData:ArrayCollection;
  
   private function resultHandler
   (event:ResultEvent):void {
   custData = event.result.cstatus.customer;
   }
   ]]
   /mx:Script
  
   mx:HTTPService id=custRequest
   url=http://localhost/FlexTest/retrieve.php;
   result=resultHandler(event)/
  
   mx:DataGrid dataProvider={custData}
   mx:columns
   mx:DataGridColumn headerText=Customer
   dataField=cust/
   mx:DataGridColumn headerText=Status
   dataField=status/
   /mx:columns
   /mx:DataGrid
  
   /mx:Application
  

  
  
  
  
  -- 
  http://indeegrumpee.spaces.live.com/
 





[flexcoders] Override Loader/URLLoader?

2007-02-12 Thread Derek Vadneau
Is there a way to override Loader and/or URLLoader?

I have a unique situation here where I need to get developers'
existing projects working with some custom pathing.

In AS1/AS2 you could use prototype to overwrite methods of things like
MovieClip, XML, etc. In AS3 this doesn't seem to be possible with the
built-in objects, like Loader, URLLoader, etc.

I tried using -as3=false -es=true and overwriting
Loader.prototype.load but to no avail - the Loader.load is always
used, contrary to what the docs seem to indicate.

Creating a different class for the devs to use isn't really an option,
since I need to make sure all paths are affected, whether they are
using their own code or components, etc.

Is this possible?

-- 

Derek Vadneau


Re: [flexcoders] Re: Using data in an Array Collection

2007-02-12 Thread Clint Tredway

oops, at the bottom of the function put return retString;


On 2/12/07, jryano001 [EMAIL PROTECTED] wrote:


  Thanks for the response. This is more than likely me being daft but
I've used the code you provided and set the labelFunction of
checkData on the status DataGridColumn and I get an error in Flex
stating:

1170: Function does not return a value.

Is the checkData function checking both my customer and status
columns for '2' or do I have to (as I expect) enter in the column
name I want to check in the code you provided?

I appreciate your help and patience!

--- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Clint
Tredway [EMAIL PROTECTED]
wrote:

 use a labelFunction to check the value and then do something:

 private function checkData(item:Object,column:Object):String{
 var retString:String;
 if(item['column'] == 2){
 retString=Return String;
 } else {
 retString = Alt Return string;
 }
 }

 then set this as the labelFunction on that DataGridColumn and that
should
 get you going.

 On 2/12/07, jryano001 [EMAIL PROTECTED] wrote:
 
  Hi,
 
  I'm very new to Flex and hope someone advise me on this or tell
me if
  it's even possible!
 
  My Flex application is pulling data using a php page. The data is
  then parsed into XML and is placed inside an ArrayCollection
called
  custData. My DataGrid is then using custData as it's dataProvider.
  This is all working and my Datarid displays my two colmuns (cust 
  status).
 
  What I need to be able to do though is to check the values in my
  status column and if any of these change to '2' then trigger an
event
  (at the moment this could just be to display some text).
 
  I know (unless someone tells me otherwise) that I need an If
  statement to check the values of status in my ArrayCollection but
I
  need to know how you access just the values of status and if one
has
  changed to '2' then to display the text.
 
  I'd really appreciate if someone could point me in the right
  direction. Thanks in advance. If it makes anything clearer then my
  code is below.
 
  --
  
 
  ?xml version=1.0 encoding=utf-8?
  mx:Application xmlns:mx=http://www.adobe.com/2006/mxml;
  initialize=custRequest.send()
 
  mx:Script
  ![CDATA[
  import mx.collections.ArrayCollection;
  import mx.rpc.events.ResultEvent;
 
  [Bindable]
  private var custData:ArrayCollection;
 
  private function resultHandler
  (event:ResultEvent):void {
  custData = event.result.cstatus.customer;
  }
  ]]
  /mx:Script
 
  mx:HTTPService id=custRequest
  url=http://localhost/FlexTest/retrieve.php;
  result=resultHandler(event)/
 
  mx:DataGrid dataProvider={custData}
  mx:columns
  mx:DataGridColumn headerText=Customer
  dataField=cust/
  mx:DataGridColumn headerText=Status
  dataField=status/
  /mx:columns
  /mx:DataGrid
 
  /mx:Application
 
 
 



 --
 http://indeegrumpee.spaces.live.com/


 





--
http://indeegrumpee.spaces.live.com/


[flexcoders] Re: Any tips on how to do enable only vertical Sprite Drag and Drop ?

2007-02-12 Thread helihobby
Perfect ...
THANKS S MUCH...

This is what I used ...

_startingLocation = new Point(  );
_startingLocation.x = _boxHandleTop.x;
_startingLocation.y = _boxHandleTop.y;
_boxHandleTop.startDrag(true,new Rectangle(0,0,0,-400));


Thank you for all the help,

Sean - HeliHobby.com

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

 This example is Canvas, but...
 
 dragRule is vertical bar beneath the 'dragger' handle.
 
mx:VRule id=dragRule
 x=182 y=64 height=315/
 
 mx:Canvas id=dragger
 width=10 height=20
 x={ dragRule.x-dragger.width/2 } y=62
 mouseDown={
   dragger.startDrag( false,
new Rectangle( dragRule.x-dragger.width/2, 
dragRule.y,
 dragRule.width, dragRule.height-dragger.height ) );
 }
 mouseUp=dragger.stopDrag()
 
 
 - Scott
 
 On 2/10/07, helihobby [EMAIL PROTECTED] wrote:
 
Hello,
 
  Can anyone post a top on how to to enable only vertical Sprite 
Drag and
  Drop ?
 
  In other words, when the user drags a sprite, he can only drag it
  vertically accross the stage and not in any other 
direction ... !!!
 
  Thanks for the help,
 
  Sean.
 
   
 
 
 
 
 -- 
 
 : : ) Scott





Re: [flexcoders] Cross domain confusion

2007-02-12 Thread André Rodrigues Pena

John..

Your flex application cannot access no URL unless it has the same domain as
your application was loaded. To go through this, the domain should configure
a crossdomain file allowing you to access it, but, as you said, you have no
control over this.

I'm not a Flex expertise, so there could be a better solution. But there's a
solution that would entirely solve your RSS problem. Program a simple PHP
file that actually takes the feed entries you need. Than you use a
HTTPService to call this file at your service.

That is, your PHP file would act as a proxy. The RSS information would pass
by this file before reaching your Flex application.

On 2/10/07, John buono [EMAIL PROTECTED] wrote:


  I have written an application using Flex 2 builder, and on my local
machine it works fine.  The application goes out and reads various RSS feeds
on demand, displays them and allows you to pick one you want to read.

but when I deploy the .swf file I get this message

RPC Fault faultString=Security error accessing url faultCode=
Channel.Security.Error faultDetail=Destination: DefaultHTTP]
at mx.rpc::AbstractInvoker/
http://www.adobe.com/2006/flex/mx/internal::faultHandler(http://www.adobe.com/2006/flex/mx/internal::faultHandler%28
)
at mx.rpc::Responder/fault()
at mx.rpc::AsyncRequest/fault()
at ::DirectHTTPMessageResponder/securityErrorHandler()
at
flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchEventFunction
()
at flash.events::EventDispatcher/dispatchEvent()
at flash.net::URLLoader/flash.net:URLLoader::redirectEvent()


I believe the problem is a cross domain security issue, but when I read
the documentation on the cross domain xml file, it says it has to be
deployed on the server where the data resides, which I have NO control
over.  How do I do something as simple as read an rss sml file, something
that is supposed to be allowed.

Why does it work on my local machine but not when deployed that is not
making any sense to me.

Until I can demonstrate that we can in fact deploy .swf files using flash
my company is refusing to allows it use, so this is rather critical..

thank

john


 





--
André Rodrigues Pena

LOCUS
www.locus.com.br

Blog
www.techbreak.org


[flexcoders] Re: Trouble Converting java List to ArrayCollection

2007-02-12 Thread Doug Lowder

I believe anything implementing java.util.Collection, such as List, is
already being converted to an ArrayCollection on the Flex side.

http://livedocs.macromedia.com/flex/2/docs/1104.html#270405
http://livedocs.macromedia.com/flex/2/docs/1104.html#270405

In your result handler, try:

var col:ArrayCollection = re.result as ArrayCollection;


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

 I'm using RemoteObjects to connect to my backend. In one of my calls
 I'm trying to return a List of VO's I create after hitting my
database.

 On the Flex side, my result event is firing properly, but when I try
 to convert the result to an ArrayCollection, instead of getting a
 proper ArrayCollection I get single element that displays the
 following when I output it in an alert: obj is: '[object TestVO],
 [object TestVO], ... [object TestVO]'.

 If I return a single TestVO object directly instead of a List, I can
 properly cast the result to my ActionScript TestVO object and view the
 data properly. It's just returning the List that's giving me problems.

 Can anyone offer any suggestions please?

 My Flex result code is:

 public function result(evt:Object):void {
 if(evt.type  evt.type == ResultEvent.RESULT) {
 var re:ResultEvent = evt as ResultEvent;
 var col:ArrayCollection = new
 ArrayCollection(ArrayUtil.toArray(re.result));
 if(col) {
 Alert.show(obj is: ' + col.getItemAt(0) + ');
 }
 else Alert.show(Didn't cast properly!);
 }
 }

 My Java DAO code that returns the list is:

 public List getList() throws DAOException {
 List list = new ArrayList();
 Connection c = null;

 try {
 c = ConnectionHelper.getConnection();
 Statement s = c.createStatement();
 ResultSet rs = s.executeQuery(SELECT * FROM test);
 while(rs.next()) {
 TestVO vo = new TestVO();
 vo.id = rs.getInt(id);
 vo.data = rs.getString(data);
 list.add(vo);
 }
 } catch(Exception e) {
 e.printStackTrace();
 throw new DAOException(e);
 } finally {
 ConnectionHelper.close(c);
 }
 return list;
 }





Re: [flexcoders] Change distance between items on a HorizontalList

2007-02-12 Thread André Rodrigues Pena
just use PaddingLeft and PaddingRight properties.. or use Style Sheets

On 2/12/07, Tom Chiverton [EMAIL PROTECTED] wrote:
 On Thursday 08 Feb 2007, João wrote:
  is there a way to change the distance between items on a HorizontalList?

 I expect there is a style to do it, yes, have you looked at the reference and
 tried a few ?

 --
 Tom Chiverton
 Helping to augmentatively harvest best-of-breed bandwidth

 

 This email is sent for and on behalf of Halliwells LLP.

 Halliwells LLP is a limited liability partnership registered in England and 
 Wales under registered number OC307980 whose registered office address is at 
 St James's Court Brown Street Manchester M2 2JF.  A list of members is 
 available for inspection at the registered office. Any reference to a partner 
 in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by 
 the Law Society.

 CONFIDENTIALITY

 This email is intended only for the use of the addressee named above and may 
 be confidential or legally privileged.  If you are not the addressee you must 
 not read it and must not use any information contained in nor copy it nor 
 inform any person other than Halliwells LLP or the addressee of its existence 
 or contents.  If you have received this email in error please delete it and 
 notify Halliwells LLP IT Department on 0870 365 8008.

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



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






-- 
André Rodrigues Pena

LOCUS
www.locus.com.br

Blog
www.techbreak.org


Re: [flexcoders] Coldfusion Version for FDS Data Push feature

2007-02-12 Thread Shannon Hicks

Event Gateways are a part of Enterprise only.

Shan

Jim Pickering wrote:


Can someone verify for me if I can push data with FDS Express and
Coldfusion MX 7.0.2 Standard edition or do I need CFMX 7.0.2
Enterprise edition to make that happen?

Thanks,

Jim

 




[flexcoders] Animated Drag Tile

2007-02-12 Thread napearson99
Anyone know how to make an animated drag tile component?  I saw Ely's
posting at http://demo.quietlyscheming.com/DragTile/DragDrop.html and
I love it.  It won't let me download the code though so I can't figure
out how it's done.

-Nate



[flexcoders] Urgent: How to delay the datagrid onchange event

2007-02-12 Thread newtoflexworld
Hi all,

I am working on Flex 1.5. I have to display large volume of data in a 
datagrid. Scrolling becomes very slow as the amount of data increases.

Is there any way in which I can delay the onchange event of the 
datagrid ?


Please help!!!

Thanks



RE: [flexcoders] Animated Drag Tile

2007-02-12 Thread Ely Greenfield
 
 
Hi Nate.  The source should be downloadable. Please try again.
 
 
My site has gone through some changes over the past few months which
have resulting in some broken view source links. If people have been
looking to download source and are getting errors, please post here or
email me directly and I'll get them patched up. Sorry about the hassle.
 
Ely.
 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of napearson99
Sent: Monday, February 12, 2007 10:46 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Animated Drag Tile



Anyone know how to make an animated drag tile component? I saw Ely's
posting at http://demo.quietlyscheming.com/DragTile/DragDrop.html
http://demo.quietlyscheming.com/DragTile/DragDrop.html  and
I love it. It won't let me download the code though so I can't figure
out how it's done.

-Nate



 


RE: [flexcoders] HTTPService updating database too frequently??

2007-02-12 Thread Jeff Vroom
Probably the issue is that some objects you are modifying are not
sending PropertyChangeEvents.  There is no native support in the player
for detecting a change to a property of an object - either strongly
typed or anonymous.  This is unfortunately because the data binding
functionality flex uses requires that to work.

 

For strongly typed classes, there is the [Bindable] keyword you can add
at the class or property level.  It does a little code gen at compile
time and generates a set method which fires the property change event.  

 

For anonymous objects, you can make the object bindable only by wrapping
your anonymous object instances in an mx.utils.ObjectProxy.  As long as
all of your set calls use the proxy, the changes will be notified.  If
you have a hierarchical object, when you call the get method on the
ObjectProxy, it wraps the returned object in another ObjectProxy so we
can track changes made to properties of the property.  

 

The Http service has the ability to automatically wrap returned
instances in proxies - the makeObjectsBindable attribute.  I'd make sure
you are setting that to true... also hopefully you can figure out in the
debugger why some changes are not sending those events.  

 

Another helpful tidbit is that the ArrayCollection class listens for
PropertyChangeEvents and turns them into CollectionEvents which are what
the List controls are really listening for.  

 

Jeff

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Cashorali, Tanya M.
Sent: Monday, February 12, 2007 8:02 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] HTTPService updating database too frequently??

 

I have datagrids whose dataproviders are the lastResult of httpservice
calls.  The HTTPService calls are calling PHP scripts that update,
remove, and create rows.

 

I have a function that lets me double click an item in a datagrid and
pop up a window which then lets me edit the info.

 

The only problem is, the data doesn't always update right away even
though I am explicitly calling a refresh method after every change.  It
sometimes works right away, then other times it lags and the change
doesn't show up until I edit something else.

 

Should I be doing this in a different manner?  

 

Thanks,

Tanya

THE INFORMATION TRANSMITTED IN THIS ELECTRONIC COMMUNICATION IS INTENDED
ONLY FOR THE PERSON OR ENTITY TO WHOM IT IS ADDRESSED AND MAY CONTAIN
CONFIDENTIAL AND/OR PRIVILEGED MATERIAL. ANY REVIEW, RETRANSMISSION,
DISSEMINATION OR OTHER USE OF OR TAKING OF ANY ACTION IN RELIANCE UPON,
THIS INFORMATION BY PERSONS OR ENTITIES OTHER THAN THE INTENDED
RECIPIENT IS PROHIBITED. IF YOU RECEIVED THIS INFORMATION IN ERROR,
PLEASE CONTACT THE SENDER AND THE PRIVACY OFFICER, AND PROPERLY DISPOSE
OF THIS INFORMATION. 

 



Re: [flexcoders] Trouble Converting java List to ArrayCollection

2007-02-12 Thread André Rodrigues Pena

And the cast method shown by doug is the recommended

On 2/12/07, André Rodrigues Pena [EMAIL PROTECTED] wrote:


Man.. Just remove the throws of your getList() method. Never use throws at
a service method. (specially in this example where the throws is USELESS
because you are already treating the exception with the try clause) The
throws clause passes the exception treatment to a higher scope, this scope
may not import de DAOException needed to process it properly. Simply never
do this.

On 2/12/07, ytseshred [EMAIL PROTECTED] wrote:

   I'm using RemoteObjects to connect to my backend. In one of my calls
 I'm trying to return a List of VO's I create after hitting my database.

 On the Flex side, my result event is firing properly, but when I try
 to convert the result to an ArrayCollection, instead of getting a
 proper ArrayCollection I get single element that displays the
 following when I output it in an alert: obj is: '[object TestVO],
 [object TestVO], ... [object TestVO]'.

 If I return a single TestVO object directly instead of a List, I can
 properly cast the result to my ActionScript TestVO object and view the
 data properly. It's just returning the List that's giving me problems.

 Can anyone offer any suggestions please?

 My Flex result code is:

 public function result(evt:Object):void {
 if(evt.type  evt.type == ResultEvent.RESULT) {
 var re:ResultEvent = evt as ResultEvent;
 var col:ArrayCollection = new
 ArrayCollection(ArrayUtil.toArray(re.result));
 if(col) {
 Alert.show(obj is: ' + col.getItemAt(0) + ');
 }
 else Alert.show(Didn't cast properly!);
 }
 }

 My Java DAO code that returns the list is:

 public List getList() throws DAOException {
 List list = new ArrayList();
 Connection c = null;

 try {
 c = ConnectionHelper.getConnection();
 Statement s = c.createStatement();
 ResultSet rs = s.executeQuery(SELECT * FROM test);
 while(rs.next()) {
 TestVO vo = new TestVO();
 vo.id = rs.getInt(id);
 vo.data = rs.getString(data);
 list.add(vo);
 }
 } catch(Exception e) {
 e.printStackTrace();
 throw new DAOException(e);
 } finally {
 ConnectionHelper.close(c);
 }
 return list;
 }

  





--
André Rodrigues Pena

LOCUS
www.locus.com.br

Blog
www.techbreak.org





--
André Rodrigues Pena

LOCUS
www.locus.com.br

Blog
www.techbreak.org


RE: [flexcoders] Re: FDS DataService.commit() doesn't trigger responder result()...?

2007-02-12 Thread Jeff Vroom
The TraceTarget is a class for our client side logging facility.  It is
similar to the server side logging in functionality... you can enable
log levels: debug, warning, error and can also set up specific patterns
to listen for.  Rather than being configured though, it is just set up
with AS calls.  The mx:TraceTarget/ tag is a global way to turn on all
debug messages.  You can see the code for this class in
mx/logging/targets/TraceTarget to get more fine-grained control over the
logging.  You might for example set the includeLevel=true and
includeCategory=true so you can see who is logging each message and
also figure out if it is debug, error etc.

 

Personally I tend to use the server side logging primarily but sometimes
the error is happening on the client and so it becomes very useful to
see what is going on there.

 

Jeff

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of parkerwhirlow
Sent: Monday, February 12, 2007 8:03 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: FDS DataService.commit() doesn't trigger
responder result()...?

 

Jeff, 

Sorry about the lack of response, I've been out of the office all last
week.

I haven't heard of this mx:TraceTarget/ is that a global flag you
put at the mx:Application level? I'll give it a shot, and get back to
you.

thanks,
PW

--- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
, Jeff Vroom [EMAIL PROTECTED] wrote:

 It does really look like the ack is going back to the client. Have you
 tried looking at the client side logs (in flashlog.txt, debug player
 only, enabled with mx:TraceTarget/? Maybe something funky is going
on
 there?
 
 
 
 Jeff
 
 
 
 
 
 From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
[mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
] On
 Behalf Of parkerwhirlow
 Sent: Monday, February 05, 2007 11:15 AM
 To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com 
 Subject: [flexcoders] FDS DataService.commit() doesn't trigger
responder
 result()...?
 
 
 
 Hi again,
 
 I've got a simple save case working as far as I can tell (from
 debugging the server java side, everything is OK after leaving the
 HibernateAssembler.java updateItem() method.
 
 But the result never gets back to the client... I have a responder
 registered to the call like so:
 
 call = service.commit();
 call.action = save;
 call.addResponder(responder);
 
 And my responder has both fault and result methods. I know the
 responder is registered because I was getting faults for a long time,
 and those were firing the fault handler. But now that I think I have
 the save going successfully, I'm not getting anything back.
 
 I've turned on FDS logging for messages, see the trace below. Seems
 like the ACK message is being sent... 
 
 Any ideas?
 
 thanks,
 PW
 
 02/05 11:01:36 user [Flex] 11:01:36.794 [DEBUG]
 [Message.Data.transacted] After invoke service: data-service
 reply: Flex Message (flex.messaging.messages.AcknowledgeMessage)
 clientId = null
 correlationId = null
 destination = null
 messageId = 7793A2C0-FA0D-5A78-3641-BB1BA4B4ADB5
 timestamp = 1170702096794
 timeToLive = 0
 body =
 [
 
 ]
 
 02/05 11:01:36 user [Flex] 11:01:36.794 [DEBUG] [Endpoint.RTMP]
 Serializing AMF/RTMP response
 Version: 3
 (Command method=_result (0) trxId=20)
 (Typed Object #0 'flex.messaging.messages.AcknowledgeMessage')
 destination = null
 headers = (Object #1)
 correlationId = 322C326C-9C96-8513-7EC3-934715E5D887
 messageId = 7793A2C0-FA0D-5A78-3641-BB1BA4B4ADB5
 timestamp = 1.170702096794E12
 clientId = 77909013-D108-A13B-EC7E-EDBFA5C3A894
 timeToLive = 0.0
 body = (Array #2)


 



Re: [flexcoders] Trouble Converting java List to ArrayCollection

2007-02-12 Thread André Rodrigues Pena

Man.. Just remove the throws of your getList() method. Never use throws at a
service method. (specially in this example where the throws is USELESS
because you are already treating the exception with the try clause) The
throws clause passes the exception treatment to a higher scope, this scope
may not import de DAOException needed to process it properly. Simply never
do this.

On 2/12/07, ytseshred [EMAIL PROTECTED] wrote:


  I'm using RemoteObjects to connect to my backend. In one of my calls
I'm trying to return a List of VO's I create after hitting my database.

On the Flex side, my result event is firing properly, but when I try
to convert the result to an ArrayCollection, instead of getting a
proper ArrayCollection I get single element that displays the
following when I output it in an alert: obj is: '[object TestVO],
[object TestVO], ... [object TestVO]'.

If I return a single TestVO object directly instead of a List, I can
properly cast the result to my ActionScript TestVO object and view the
data properly. It's just returning the List that's giving me problems.

Can anyone offer any suggestions please?

My Flex result code is:

public function result(evt:Object):void {
if(evt.type  evt.type == ResultEvent.RESULT) {
var re:ResultEvent = evt as ResultEvent;
var col:ArrayCollection = new
ArrayCollection(ArrayUtil.toArray(re.result));
if(col) {
Alert.show(obj is: ' + col.getItemAt(0) + ');
}
else Alert.show(Didn't cast properly!);
}
}

My Java DAO code that returns the list is:

public List getList() throws DAOException {
List list = new ArrayList();
Connection c = null;

try {
c = ConnectionHelper.getConnection();
Statement s = c.createStatement();
ResultSet rs = s.executeQuery(SELECT * FROM test);
while(rs.next()) {
TestVO vo = new TestVO();
vo.id = rs.getInt(id);
vo.data = rs.getString(data);
list.add(vo);
}
} catch(Exception e) {
e.printStackTrace();
throw new DAOException(e);
} finally {
ConnectionHelper.close(c);
}
return list;
}

 





--
André Rodrigues Pena

LOCUS
www.locus.com.br

Blog
www.techbreak.org


[flexcoders] Re: Self Signed Cert. For Secure SecureRTMPChannel

2007-02-12 Thread vitopn
Tried that, still getting
NetConnection.Connect.CertificateUntrustedSigner.

I also tried putting the cert in firefox but that didn't work either.
 Where exactly is Flex looking for the cert chain?

Has anyone used a self signed cert for SecureRTMP?  If so, a quick
step by step post would really really be appreciated.

Thank you,
-Vito

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

 See if you have a keystore named cacerts under your Java
 installation folder, and if so add the key to that keystore as well.
 
 --- In flexcoders@yahoogroups.com, vitopn vitopn@ wrote:
 
  Hi Doug,
  
I'm fairly certain that the self-signed cert is in the keystore. 
  (Doesn't keytool -genkey .. store the newly generated cert in the
  keystore?)  I am doing a list and the flex2cert is in there.
  
  C:\Documents and Settings\vitopnkeytool -list -keystore
  C:\Tomcat\webapps\Presidio\WEB-INF\flex\.keystore
  Enter keystore password:  changeit
  
  Keystore type: jks
  Keystore provider: SUN
  
  Your keystore contains 2 entries
  
  tomcat, Feb 8, 2007, keyEntry,
  Certificate fingerprint (MD5):
  FB:13:46:DE:C5:F9:BA:F7:D0:57:95:58:D5:AA:80:4F
  flex2cert, Feb 8, 2007, keyEntry,
  Certificate fingerprint (MD5):
  B5:8D:4C:DD:01:9B:09:01:3E:88:B9:90:4D:8F:70:6C
  
  Any other thoughts?
  
  Thank you,
  -Vito
  
  --- In flexcoders@yahoogroups.com, Doug Lowder douglowder@ wrote:
  
   
   Looks like you didn't add the self-signed certificate to the
 keystore. 
   Check out the keytool -import command.
   
  
 

http://java.sun.com/j2se/1.5.0/docs/tooldocs/windows/keytool.html#Comman\
   ds
  
 

http://java.sun.com/j2se/1.5.0/docs/tooldocs/windows/keytool.html#Comma\
   nds 
  
 

http://java.sun.com/j2se/1.4.2/docs/tooldocs/solaris/keytool.html#Comma\
   nds
   
   
   --- In flexcoders@yahoogroups.com, vitopn vitopn@ wrote:
   
What steps do I need to take to get a self signed certificate to
 work
with SecureRTMPChannel?
   
I generate the keystore file with something like this:
keytool -genkey -alias flex2cert -dname CN=localhost,
OU=Presidio,
O=Presidio, L=San Francisco, S=California, C=CA -validity 3650
   
and configure the channel like this:
channel-definition id=secureRTMP
class=mx.messaging.channels.SecureRTMPChannel
endpoint uri=rtmps://localhost:2099
class=flex.messaging.endpoints.SecureRTMPEndpoint /
properties
idle-timeout-minutes20/idle-timeout-minutes
   
  
 

keystore-fileC:/Tomcat/webapps/Presidio/WEB-INF/flex/.keystore/keysto\
   re-file
keystore-passwordchangeit/keystore-password
/properties
/channel-definition
   
   
The server starts and I see this in the console:
[Flex][INFO] Endpoint secureRTMP created with security: None
at URI: rtmps://localhost:2099
[Flex][WARN] The current license does not support clustering;
clustering for all destinations is disabled.
[Flex][INFO] RTMPS-Server listening on port:2099
[Flex][DEBUG] Created worker thread: RTMPS-Worker-0
[Flex][DEBUG] Created worker thread: RTMPS-Worker-1
[Flex][DEBUG] Created worker thread: RTMPS-Worker-2
[Flex][DEBUG] Created worker thread: RTMPS-Worker-3
   
   
When I try to connect I get this:
   
'secureRTMP' channel got status. (Object)#0
code = NetConnection.Connect.CertificateUntrustedSigner
level = status
   
   
Thank you,
-Vito
   
  
 





Re: [flexcoders] Urgent: How to delay the datagrid onchange event

2007-02-12 Thread Shannon Hicks
I think the problem you're experiencing is actually with Flash Player 8 
/ AS2. The engine was just too slow for large amounts of data in a 
datagrid. The common workaround was to paginate the data in the grid.


Hopefully you'll be able to implement the workaround as you are 
envisioning it. Let us know if you do, as I'm sure some of us would be 
interested.


Shan

newtoflexworld wrote:


Hi all,

I am working on Flex 1.5. I have to display large volume of data in a
datagrid. Scrolling becomes very slow as the amount of data increases.

Is there any way in which I can delay the onchange event of the
datagrid ?

Please help!!!

Thanks

 




[flexcoders] Re: Animated Drag Tile

2007-02-12 Thread napearson99
When I right click to view source I get the error:

Routing Error

Recognition failed for /DragTile/DragDropViewSource/index.html

I'm going to try to adjust your drag tile so that the images get out
of the way in a vertical sense instead of horizontal like your demo
shows.  I'm also going to put just one item per line.  This will
create a sort of drag and drop list.  Do you think this will be hard
to do?

On a personal note I love love love your site.  I work at a fortune
500 company and upper management is really excited about the flex apps
with charting that I am making.  I've only been using Flex/AS for 20
days now and I have more than one functional app pulling data from SQL
Servers.  Management wants to use Flex as an enhanced GUI for SAP. 
Your blog greatly helped me make these cool apps.  Keep those posts
coming!

SO THANKS! :) 

oh yah, they think im a genius now and I'll probably get a raise ;).

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

  
  
 Hi Nate.  The source should be downloadable. Please try again.
  
  
 My site has gone through some changes over the past few months which
 have resulting in some broken view source links. If people have been
 looking to download source and are getting errors, please post here or
 email me directly and I'll get them patched up. Sorry about the hassle.
  
 Ely.
  
 
 
 
 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
 Behalf Of napearson99
 Sent: Monday, February 12, 2007 10:46 AM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Animated Drag Tile
 
 
 
 Anyone know how to make an animated drag tile component? I saw Ely's
 posting at http://demo.quietlyscheming.com/DragTile/DragDrop.html
 http://demo.quietlyscheming.com/DragTile/DragDrop.html  and
 I love it. It won't let me download the code though so I can't figure
 out how it's done.
 
 -Nate





[flexcoders] Re: Trouble Converting java List to ArrayCollection

2007-02-12 Thread ytseshred
Thanks, the casting directly to ArrayCollection using as did work.  I
was doing this initially, and then made some other changes to get rid
of another error and forgot to change back.

Andre, this isn't production code and I got it off of Cristophe's
TestDriver server
(http://coenraets.org/blog/2007/01/flex-data-management-services-tutorial/)
but thanks for pointing this out.

--- In flexcoders@yahoogroups.com, André Rodrigues Pena
[EMAIL PROTECTED] wrote:

 Man.. Just remove the throws of your getList() method. Never use
throws at a
 service method. (specially in this example where the throws is USELESS
 because you are already treating the exception with the try clause) The
 throws clause passes the exception treatment to a higher scope, this
scope
 may not import de DAOException needed to process it properly. Simply
never
 do this.
 
 On 2/12/07, ytseshred [EMAIL PROTECTED] wrote:
 
I'm using RemoteObjects to connect to my backend. In one of my calls
  I'm trying to return a List of VO's I create after hitting my
database.
 
  On the Flex side, my result event is firing properly, but when I try
  to convert the result to an ArrayCollection, instead of getting a
  proper ArrayCollection I get single element that displays the
  following when I output it in an alert: obj is: '[object TestVO],
  [object TestVO], ... [object TestVO]'.
 
  If I return a single TestVO object directly instead of a List, I can
  properly cast the result to my ActionScript TestVO object and view the
  data properly. It's just returning the List that's giving me problems.
 
  Can anyone offer any suggestions please?
 
  My Flex result code is:
 
  public function result(evt:Object):void {
  if(evt.type  evt.type == ResultEvent.RESULT) {
  var re:ResultEvent = evt as ResultEvent;
  var col:ArrayCollection = new
  ArrayCollection(ArrayUtil.toArray(re.result));
  if(col) {
  Alert.show(obj is: ' + col.getItemAt(0) + ');
  }
  else Alert.show(Didn't cast properly!);
  }
  }
 
  My Java DAO code that returns the list is:
 
  public List getList() throws DAOException {
  List list = new ArrayList();
  Connection c = null;
 
  try {
  c = ConnectionHelper.getConnection();
  Statement s = c.createStatement();
  ResultSet rs = s.executeQuery(SELECT * FROM test);
  while(rs.next()) {
  TestVO vo = new TestVO();
  vo.id = rs.getInt(id);
  vo.data = rs.getString(data);
  list.add(vo);
  }
  } catch(Exception e) {
  e.printStackTrace();
  throw new DAOException(e);
  } finally {
  ConnectionHelper.close(c);
  }
  return list;
  }
 
   
 
 
 
 
 -- 
 André Rodrigues Pena
 
 LOCUS
 www.locus.com.br
 
 Blog
 www.techbreak.org





[flexcoders] Problem with changing viewstack programatically

2007-02-12 Thread boy_trike
I have a button in a component in a viewstack that switches view to another 
component in 
the viewstack with the code parentApplication.myViewStack.selectedIndex = 0.  
While this 
works ok, I have 2 problems.

1).  The new viewstack does not grey out the option in the linkbar so there is 
no indication 
that I am on a different page
2).  Clicking on option #0 in the linkbar menu raises the following error:

RangeError: Error #2006: The supplied index is out of bounds.
at flash.display::DisplayObjectContainer/getChildAt()
at mx.core::Container/getChildAt()
at mx.controls::LinkBar/mx.controls:LinkBar::hiliteSelectedNavItem()
at mx.controls::LinkBar/mx.controls:LinkBar::clickHandler()


Bruce



[flexcoders] Re: Trouble Converting java List to ArrayCollection

2007-02-12 Thread lepusmars
I have to disagree about not throwing the Exception.  If you actually
handle the exception in the method then you shouldn't throw it, but
the exception is not being handled. The user needs to know that
something went wrong. And the bit about the Higher scope not importing
the DAOException, that's just plain wrong.  The higher scope will see
it as an Exception if it doesn't handle the specific Exception. Not
throwing the exception will simply return an empty list.

The real question is what is the Exception that is being thrown in the
try block?  That will tell us what the issue is and lead us to the
conclusion as to how to fix it.  Is there a Stack Trace available that
I can look at?

Also...
  vo.id = rs.getInt(id);
  vo.data = rs.getString(data);
... this is bad from. You shouldn't be accessing data members
directly, they should be encapsulated, and you should access them
using accesser methods.

Paul


--- In flexcoders@yahoogroups.com, André Rodrigues Pena
[EMAIL PROTECTED] wrote:

 Man.. Just remove the throws of your getList() method. Never use
throws at a
 service method. (specially in this example where the throws is USELESS
 because you are already treating the exception with the try clause) The
 throws clause passes the exception treatment to a higher scope, this
scope
 may not import de DAOException needed to process it properly. Simply
never
 do this.
 
 On 2/12/07, ytseshred [EMAIL PROTECTED] wrote:
 
I'm using RemoteObjects to connect to my backend. In one of my calls
  I'm trying to return a List of VO's I create after hitting my
database.
 
  On the Flex side, my result event is firing properly, but when I try
  to convert the result to an ArrayCollection, instead of getting a
  proper ArrayCollection I get single element that displays the
  following when I output it in an alert: obj is: '[object TestVO],
  [object TestVO], ... [object TestVO]'.
 
  If I return a single TestVO object directly instead of a List, I can
  properly cast the result to my ActionScript TestVO object and view the
  data properly. It's just returning the List that's giving me problems.
 
  Can anyone offer any suggestions please?
 
  My Flex result code is:
 
  public function result(evt:Object):void {
  if(evt.type  evt.type == ResultEvent.RESULT) {
  var re:ResultEvent = evt as ResultEvent;
  var col:ArrayCollection = new
  ArrayCollection(ArrayUtil.toArray(re.result));
  if(col) {
  Alert.show(obj is: ' + col.getItemAt(0) + ');
  }
  else Alert.show(Didn't cast properly!);
  }
  }
 
  My Java DAO code that returns the list is:
 
  public List getList() throws DAOException {
  List list = new ArrayList();
  Connection c = null;
 
  try {
  c = ConnectionHelper.getConnection();
  Statement s = c.createStatement();
  ResultSet rs = s.executeQuery(SELECT * FROM test);
  while(rs.next()) {
  TestVO vo = new TestVO();
  vo.id = rs.getInt(id);
  vo.data = rs.getString(data);
  list.add(vo);
  }
  } catch(Exception e) {
  e.printStackTrace();
  throw new DAOException(e);
  } finally {
  ConnectionHelper.close(c);
  }
  return list;
  }
 
   
 
 
 
 
 -- 
 André Rodrigues Pena
 
 LOCUS
 www.locus.com.br
 
 Blog
 www.techbreak.org





[flexcoders] Re: Trouble Converting java List to ArrayCollection

2007-02-12 Thread ytseshred
That was a typo on my Part.  They are being set using methods:

TestVO vo = new TestVO();
vo.setID(rs.getInt(id));
vo.setData(rs.getString(data));

The problem has been solved by casting the result to ArrayCollection
using the as keyword.

I'm not sure what was causing my first problem, but I originally had
my VO's defined with constructors, so I could create the VO like:

TestVO vo = new TestVO(rs.getInt(id), rs.getString(data));

But Flex gave a runtime error when it was constructing the array
collection saying something like TestVO init expected 2 arguments and
got 0.

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

 I have to disagree about not throwing the Exception.  If you actually
 handle the exception in the method then you shouldn't throw it, but
 the exception is not being handled. The user needs to know that
 something went wrong. And the bit about the Higher scope not importing
 the DAOException, that's just plain wrong.  The higher scope will see
 it as an Exception if it doesn't handle the specific Exception. Not
 throwing the exception will simply return an empty list.
 
 The real question is what is the Exception that is being thrown in the
 try block?  That will tell us what the issue is and lead us to the
 conclusion as to how to fix it.  Is there a Stack Trace available that
 I can look at?
 
 Also...
   vo.id = rs.getInt(id);
   vo.data = rs.getString(data);
 ... this is bad from. You shouldn't be accessing data members
 directly, they should be encapsulated, and you should access them
 using accesser methods.
 
 Paul
 
 
 --- In flexcoders@yahoogroups.com, André Rodrigues Pena
 andre.ufrj@ wrote:
 
  Man.. Just remove the throws of your getList() method. Never use
 throws at a
  service method. (specially in this example where the throws is USELESS
  because you are already treating the exception with the try
clause) The
  throws clause passes the exception treatment to a higher scope, this
 scope
  may not import de DAOException needed to process it properly. Simply
 never
  do this.
  
  On 2/12/07, ytseshred ytseshred@ wrote:
  
 I'm using RemoteObjects to connect to my backend. In one of my
calls
   I'm trying to return a List of VO's I create after hitting my
 database.
  
   On the Flex side, my result event is firing properly, but when I try
   to convert the result to an ArrayCollection, instead of getting a
   proper ArrayCollection I get single element that displays the
   following when I output it in an alert: obj is: '[object TestVO],
   [object TestVO], ... [object TestVO]'.
  
   If I return a single TestVO object directly instead of a List, I can
   properly cast the result to my ActionScript TestVO object and
view the
   data properly. It's just returning the List that's giving me
problems.
  
   Can anyone offer any suggestions please?
  
   My Flex result code is:
  
   public function result(evt:Object):void {
   if(evt.type  evt.type == ResultEvent.RESULT) {
   var re:ResultEvent = evt as ResultEvent;
   var col:ArrayCollection = new
   ArrayCollection(ArrayUtil.toArray(re.result));
   if(col) {
   Alert.show(obj is: ' + col.getItemAt(0) + ');
   }
   else Alert.show(Didn't cast properly!);
   }
   }
  
   My Java DAO code that returns the list is:
  
   public List getList() throws DAOException {
   List list = new ArrayList();
   Connection c = null;
  
   try {
   c = ConnectionHelper.getConnection();
   Statement s = c.createStatement();
   ResultSet rs = s.executeQuery(SELECT * FROM test);
   while(rs.next()) {
   TestVO vo = new TestVO();
   vo.id = rs.getInt(id);
   vo.data = rs.getString(data);
   list.add(vo);
   }
   } catch(Exception e) {
   e.printStackTrace();
   throw new DAOException(e);
   } finally {
   ConnectionHelper.close(c);
   }
   return list;
   }
  

  
  
  
  
  -- 
  André Rodrigues Pena
  
  LOCUS
  www.locus.com.br
  
  Blog
  www.techbreak.org
 





Re: [flexcoders] Problem with changing viewstack programatically

2007-02-12 Thread Clint Tredway

can you post your code so we can help

On 2/12/07, boy_trike [EMAIL PROTECTED] wrote:


  I have a button in a component in a viewstack that switches view to
another component in
the viewstack with the code parentApplication.myViewStack.selectedIndex =
0. While this
works ok, I have 2 problems.

1). The new viewstack does not grey out the option in the linkbar so there
is no indication
that I am on a different page
2). Clicking on option #0 in the linkbar menu raises the following error:

RangeError: Error #2006: The supplied index is out of bounds.
at flash.display::DisplayObjectContainer/getChildAt()
at mx.core::Container/getChildAt()
at mx.controls::LinkBar/mx.controls:LinkBar::hiliteSelectedNavItem()
at mx.controls::LinkBar/mx.controls:LinkBar::clickHandler()

Bruce

 





--
http://indeegrumpee.spaces.live.com/


[flexcoders] Re: Trouble Converting java List to ArrayCollection

2007-02-12 Thread lepusmars
Another way is:

if(re.result is ArrayCollection) {
var col:ArrayCollection = ArrayCollection(re.result);
}

The as operation is more brief but accomplishes the same thing.  as
will leave your object as null, where as doing the is check you can
catch potential errors and not create any unnecessary objects. I don't
think either way is more right or wrong. 


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

 That was a typo on my Part.  They are being set using methods:
 
 TestVO vo = new TestVO();
 vo.setID(rs.getInt(id));
 vo.setData(rs.getString(data));
 
 The problem has been solved by casting the result to ArrayCollection
 using the as keyword.
 
 I'm not sure what was causing my first problem, but I originally had
 my VO's defined with constructors, so I could create the VO like:
 
 TestVO vo = new TestVO(rs.getInt(id), rs.getString(data));
 
 But Flex gave a runtime error when it was constructing the array
 collection saying something like TestVO init expected 2 arguments and
 got 0.
 



[flexcoders] Re: Trouble Converting java List to ArrayCollection

2007-02-12 Thread Doug Lowder
Flex wants a public constructor with no arguments available, so the 
solution is to just add your second constructor with whatever 
arguments you want while keeping the default constructor.  That 
would make both of the folowing valid:

 TestVO vo = new TestVO();
 TestVO vo = new TestVO(rs.getInt(id), rs.getString(data));

It may arguably be bad form to access data members directly, but 
strict adherence to good Java form in value objects just leads to 
problems on the Flex side.  If, for example, you went the full route 
and declared your data members private to force the use of accessor 
methods, your Flex object would contain no properties since Flex 
would have no visibility to the private members.  I usually just let 
it slide, and create a Java good form wrapper object if I must for 
accessing on the server side.

Doug

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

 That was a typo on my Part.  They are being set using methods:
 
 TestVO vo = new TestVO();
 vo.setID(rs.getInt(id));
 vo.setData(rs.getString(data));
 
 The problem has been solved by casting the result to 
ArrayCollection
 using the as keyword.
 
 I'm not sure what was causing my first problem, but I originally 
had
 my VO's defined with constructors, so I could create the VO like:
 
 TestVO vo = new TestVO(rs.getInt(id), rs.getString(data));
 
 But Flex gave a runtime error when it was constructing the array
 collection saying something like TestVO init expected 2 arguments 
and
 got 0.
 
 --- In flexcoders@yahoogroups.com, lepusmars paul@ wrote:
 
  I have to disagree about not throwing the Exception.  If you 
actually
  handle the exception in the method then you shouldn't throw it, 
but
  the exception is not being handled. The user needs to know that
  something went wrong. And the bit about the Higher scope not 
importing
  the DAOException, that's just plain wrong.  The higher scope 
will see
  it as an Exception if it doesn't handle the specific Exception. 
Not
  throwing the exception will simply return an empty list.
  
  The real question is what is the Exception that is being thrown 
in the
  try block?  That will tell us what the issue is and lead us to 
the
  conclusion as to how to fix it.  Is there a Stack Trace 
available that
  I can look at?
  
  Also...
vo.id = rs.getInt(id);
vo.data = rs.getString(data);
  ... this is bad from. You shouldn't be accessing data members
  directly, they should be encapsulated, and you should access them
  using accesser methods.
  
  Paul
  
  
  --- In flexcoders@yahoogroups.com, André Rodrigues Pena
  andre.ufrj@ wrote:
  
   Man.. Just remove the throws of your getList() method. Never 
use
  throws at a
   service method. (specially in this example where the throws is 
USELESS
   because you are already treating the exception with the try
 clause) The
   throws clause passes the exception treatment to a higher 
scope, this
  scope
   may not import de DAOException needed to process it properly. 
Simply
  never
   do this.
   
   On 2/12/07, ytseshred ytseshred@ wrote:
   
  I'm using RemoteObjects to connect to my backend. In one 
of my
 calls
I'm trying to return a List of VO's I create after hitting my
  database.
   
On the Flex side, my result event is firing properly, but 
when I try
to convert the result to an ArrayCollection, instead of 
getting a
proper ArrayCollection I get single element that displays the
following when I output it in an alert: obj is: '[object 
TestVO],
[object TestVO], ... [object TestVO]'.
   
If I return a single TestVO object directly instead of a 
List, I can
properly cast the result to my ActionScript TestVO object and
 view the
data properly. It's just returning the List that's giving me
 problems.
   
Can anyone offer any suggestions please?
   
My Flex result code is:
   
public function result(evt:Object):void {
if(evt.type  evt.type == ResultEvent.RESULT) {
var re:ResultEvent = evt as ResultEvent;
var col:ArrayCollection = new
ArrayCollection(ArrayUtil.toArray(re.result));
if(col) {
Alert.show(obj is: ' + col.getItemAt(0) + ');
}
else Alert.show(Didn't cast properly!);
}
}
   
My Java DAO code that returns the list is:
   
public List getList() throws DAOException {
List list = new ArrayList();
Connection c = null;
   
try {
c = ConnectionHelper.getConnection();
Statement s = c.createStatement();
ResultSet rs = s.executeQuery(SELECT * FROM test);
while(rs.next()) {
TestVO vo = new TestVO();
vo.id = rs.getInt(id);
vo.data = rs.getString(data);
list.add(vo);
}
} catch(Exception e) {
e.printStackTrace();
throw new DAOException(e);
} finally {
ConnectionHelper.close(c);
}
return list;
}
   
 
   
   
   
   
   -- 
   André Rodrigues Pena
   
   LOCUS
   www.locus.com.br
   
   Blog
   www.techbreak.org
  
 





Re: [flexcoders] Java developer is glad to participate in open source Flex project.

2007-02-12 Thread dorkie dork from dorktown

Hi Alex,

It sounds like OpenAMF might be a good place to start as well. I would
personally like to see more support (documentation, installation docs) on
this project. Let me know what you decide (contact offlist).

On 2/12/07, Igor Costa [EMAIL PROTECTED] wrote:


Hi Alexander

you could start looking at Code Google
and

www.riaforge.com
www.osflash.org


Best.

On 2/12/07, alex_s9v [EMAIL PROTECTED] wrote:

   Hi all!
 My name is Alexander.

 I have a passion for Flex and I'd like to participate in open source
 flex project.

 I have 2 years experience with server-side java (Struts, JSF and
 Hibernate) and a little experience with Eclipse RCP.

 I am searching for open source flex project where I can avail and can
 improve my Flex skills.




--

Igor Costa
www.igorcosta.org
www.igorcosta.com
skype: igorpcosta 



[flexcoders] SWFLoader, doesn't show the loaded swf !!!

2007-02-12 Thread nicolasparziale
i'm still fighting with this, i have a swfloader inside a Class ie:

public class Nicolas extends Box
{

  public var swfloader:SWFLoader = new SWFLoader();

public function Nicolas()
{
   this.swfloader.load([relative path to the swf]);

   this.addChild(this.swfloader);
}
}

and then i place this class into a Canvas component.

the swfloader completes the load of the swf but doesn't show it or
enables it, i mean that the content is blocked or something.

please help  me !!! i tried everything, LoaderContext
ApplicactionDomain SecurityDomain

almost forget, the main application is a zinc compiled exe made
entirely in Flex 2 and runs local, the swf i'm trying to load is also
local and Flex 2, with as2 swfs i don't have any problem. only with
action script 3 ones.

if i load the swf from a swfloader placed in the main mxml app it
works fine, the trouble starts when i do this inside of the class.


Nicolás Parziale



[flexcoders] referencing form data in class based model?

2007-02-12 Thread ronnlixx
Hi,
How do you reference form data or controls in a imported custom class?
for example, how would I port this mxml based model to a class based
model?

mx:Model id=clientModel
client
id{clientList.selectedItem.id}/id
name{client_name.text}/name
address{client_address.text}/address
initials{client_initials.text}/initials
city{client_city.text}/city
state{client_state.text}/state
zip{client_zip.text}/zip
phone{client_phone.text}/phone
fax{client_fax.text}/fax
url{client_url.text}/url
/client
/mx:Model

thanks for any input



[flexcoders] Error 2025 with images?

2007-02-12 Thread John Wilker

I'm working on a quicky little RSS Reader and having some trouble.

I've got a DG on one side, which then populates a textArea on the other
side.

Here's the feed (mine) http://www.red-omega.com/blog/rss.cfm?mode=full

When I hit the entry Blogito Ergo Sum when I click to entry in the DG I
get the below.

It seems to happen when entries have images linked from other sites.

[SWF] Users:johnwilker:Documents:Flex Builder 2:360FlexRSS:bin:
main-debug.swf - 972,300 bytes after decompression
getting the feed: http://www.red-omega.com/blog/rss.cfm?mode=full
You Selected index: 7
You Selected index: 8
ArgumentError: Error #2025: The supplied DisplayObject must be a child of
the caller.
   at flash.text::TextField/set htmlText()
   at 
mx.core::UITextField/sethtmlText()[C:\dev\flex_201_gmc\sdk\frameworks\mx\core\UITextField.as:319]
   at mx.controls::TextArea/mx.controls:TextArea::commitProperties
()[C:\dev\flex_201_gmc\sdk\frameworks\mx\controls\TextArea.as:1841]
   at mx.core::UIComponent/validateProperties
()[C:\dev\flex_201_gmc\sdk\frameworks\mx\core\UIComponent.as:5300]
   at
mx.managers::LayoutManager/mx.managers:LayoutManager::validateProperties
()[C:\dev\flex_201_gmc\sdk\frameworks\mx\managers\LayoutManager.as:517]
   at
mx.managers::LayoutManager/mx.managers:LayoutManager::doPhasedInstantiation
()[C:\dev\flex_201_gmc\sdk\frameworks\mx\managers\LayoutManager.as:667]
   at Function/http://adobe.com/AS3/2006/builtin::apply()
   at mx.core::UIComponent/mx.core:UIComponent::callLaterDispatcher2
()[C:\dev\flex_201_gmc\sdk\frameworks\mx\core\UIComponent.as:7909]
   at mx.core::UIComponent/mx.core:UIComponent::callLaterDispatcher
()[C:\dev\flex_201_gmc\sdk\frameworks\mx\core\UIComponent.as:7852]
   at flash.utils::Timer/flash.utils:Timer::_timerDispatch()
   at flash.utils::Timer/flash.utils:Timer::tick()

Any thoughts?


--
John Wilker
Vice President Software Development/Writer
Red Omega Solutions, Inc.
www.johnwilker.com / www.red-omega.com

Everything changes, nothing remains without change. ~Buddha c.483 bc


[flexcoders] Re: Animated Drag Tile

2007-02-12 Thread napearson99
I was able to dl the source with IE 6.  Firefox 2.0 throws that error.

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

 When I right click to view source I get the error:
 
 Routing Error
 
 Recognition failed for /DragTile/DragDropViewSource/index.html
 
 I'm going to try to adjust your drag tile so that the images get out
 of the way in a vertical sense instead of horizontal like your demo
 shows.  I'm also going to put just one item per line.  This will
 create a sort of drag and drop list.  Do you think this will be hard
 to do?
 
 On a personal note I love love love your site.  I work at a fortune
 500 company and upper management is really excited about the flex apps
 with charting that I am making.  I've only been using Flex/AS for 20
 days now and I have more than one functional app pulling data from SQL
 Servers.  Management wants to use Flex as an enhanced GUI for SAP. 
 Your blog greatly helped me make these cool apps.  Keep those posts
 coming!
 
 SO THANKS! :) 
 
 oh yah, they think im a genius now and I'll probably get a raise ;).
 
 --- In flexcoders@yahoogroups.com, Ely Greenfield egreenfi@ wrote:
 
   
   
  Hi Nate.  The source should be downloadable. Please try again.
   
   
  My site has gone through some changes over the past few months which
  have resulting in some broken view source links. If people have been
  looking to download source and are getting errors, please post here or
  email me directly and I'll get them patched up. Sorry about the
hassle.
   
  Ely.
   
  
  
  
  From: flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] On
  Behalf Of napearson99
  Sent: Monday, February 12, 2007 10:46 AM
  To: flexcoders@yahoogroups.com
  Subject: [flexcoders] Animated Drag Tile
  
  
  
  Anyone know how to make an animated drag tile component? I saw Ely's
  posting at http://demo.quietlyscheming.com/DragTile/DragDrop.html
  http://demo.quietlyscheming.com/DragTile/DragDrop.html  and
  I love it. It won't let me download the code though so I can't figure
  out how it's done.
  
  -Nate
 





RE: [flexcoders] referencing form data in class based model?

2007-02-12 Thread Battershall, Jeff
By creating a value object.

package com.mycompany.vo
{
public class ClientVO
{
public function ClientVO()
{
//constructor stuff;
}
public var id:Number;
public var name:String;
...
}
}

import com.mycompany.ClientVO

vo:ClientVO = new ClientVO();

vo.id = clientModel.id;
vo.name = clientModel.name;
...

Then you can pass around your form data as needed.

HTH

Jeff

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of ronnlixx
Sent: Monday, February 12, 2007 4:19 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] referencing form data in class based model?


Hi,
How do you reference form data or controls in a imported custom class?
for example, how would I port this mxml based model to a class based
model?

mx:Model id=clientModel
client
id{clientList.selectedItem.id}/id
name{client_name.text}/name address{client_address.text}/address
initials{client_initials.text}/initials
city{client_city.text}/city state{client_state.text}/state
zip{client_zip.text}/zip
phone{client_phone.text}/phone
fax{client_fax.text}/fax
url{client_url.text}/url
/client
/mx:Model

thanks for any input



--
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: Animated Drag Tile

2007-02-12 Thread napearson99
I cant find the BitmapTile file for the Drag Tile custom itemrenderer.
 Am i making a mistake?

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

 I was able to dl the source with IE 6.  Firefox 2.0 throws that error.
 
 --- In flexcoders@yahoogroups.com, napearson99 napearson99@ wrote:
 
  When I right click to view source I get the error:
  
  Routing Error
  
  Recognition failed for /DragTile/DragDropViewSource/index.html
  
  I'm going to try to adjust your drag tile so that the images get out
  of the way in a vertical sense instead of horizontal like your demo
  shows.  I'm also going to put just one item per line.  This will
  create a sort of drag and drop list.  Do you think this will be hard
  to do?
  
  On a personal note I love love love your site.  I work at a fortune
  500 company and upper management is really excited about the flex apps
  with charting that I am making.  I've only been using Flex/AS for 20
  days now and I have more than one functional app pulling data from SQL
  Servers.  Management wants to use Flex as an enhanced GUI for SAP. 
  Your blog greatly helped me make these cool apps.  Keep those posts
  coming!
  
  SO THANKS! :) 
  
  oh yah, they think im a genius now and I'll probably get a raise ;).
  
  --- In flexcoders@yahoogroups.com, Ely Greenfield egreenfi@ wrote:
  


   Hi Nate.  The source should be downloadable. Please try again.


   My site has gone through some changes over the past few months which
   have resulting in some broken view source links. If people have been
   looking to download source and are getting errors, please post
here or
   email me directly and I'll get them patched up. Sorry about the
 hassle.

   Ely.

   
   
   
   From: flexcoders@yahoogroups.com
 [mailto:[EMAIL PROTECTED] On
   Behalf Of napearson99
   Sent: Monday, February 12, 2007 10:46 AM
   To: flexcoders@yahoogroups.com
   Subject: [flexcoders] Animated Drag Tile
   
   
   
   Anyone know how to make an animated drag tile component? I saw Ely's
   posting at http://demo.quietlyscheming.com/DragTile/DragDrop.html
   http://demo.quietlyscheming.com/DragTile/DragDrop.html  and
   I love it. It won't let me download the code though so I can't
figure
   out how it's done.
   
   -Nate
  
 





[flexcoders] SizeableTitleWindow 1024: Overriding

2007-02-12 Thread app.developer
I have an error that has begun to pop up in Flex 2.0.1

When I create an small application with the ColdFusion/Felx Application 
Wizard I now get an error 1024:Overriding a function that is not marked 
for override., referencing SizeableTitleWindow.as disabling the compile 
process.   Has anyone else run into this?

Thanks



[flexcoders] Re: Trouble Converting java List to ArrayCollection

2007-02-12 Thread lepusmars
I think you misinterpreted, the TestVO is a java class.  Coding it
correctly should not affect the Flex versions of the class.  When the
bean is transfered to Flex it will contain publicly accessable
properties representing the private members that have public getters,
ie if you have getData there will be a property data on the transfered
object.  That is how Java Beans work.  If this convention is not
followed then if you start working with Enterprise level projects you
run into problems.

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

 Flex wants a public constructor with no arguments available, so the 
 solution is to just add your second constructor with whatever 
 arguments you want while keeping the default constructor.  That 
 would make both of the folowing valid:
 
  TestVO vo = new TestVO();
  TestVO vo = new TestVO(rs.getInt(id), rs.getString(data));
 
 It may arguably be bad form to access data members directly, but 
 strict adherence to good Java form in value objects just leads to 
 problems on the Flex side.  If, for example, you went the full route 
 and declared your data members private to force the use of accessor 
 methods, your Flex object would contain no properties since Flex 
 would have no visibility to the private members.  I usually just let 
 it slide, and create a Java good form wrapper object if I must for 
 accessing on the server side.
 
 Doug
 
 --- In flexcoders@yahoogroups.com, ytseshred ytseshred@ wrote:
 
  That was a typo on my Part.  They are being set using methods:
  
  TestVO vo = new TestVO();
  vo.setID(rs.getInt(id));
  vo.setData(rs.getString(data));
  
  The problem has been solved by casting the result to 
 ArrayCollection
  using the as keyword.
  
  I'm not sure what was causing my first problem, but I originally 
 had
  my VO's defined with constructors, so I could create the VO like:
  
  TestVO vo = new TestVO(rs.getInt(id), rs.getString(data));
  
  But Flex gave a runtime error when it was constructing the array
  collection saying something like TestVO init expected 2 arguments 
 and
  got 0.
  



[flexcoders] coords on dragged object

2007-02-12 Thread Douglas Knudsen

ok, I have a List populated from a AC of objects.  I have drag+drop setup to
drag one of the items from the list and drop it onto a VBox contained view.
I need to get the x-coord relative to the object being dropped.  Anyone have
a idea?  in 1.5 I used a undocumented piece DragManager[_dragProxy] to get
it, of course that bit me in the backside now, eh?  I used this to get the
mouse coord relative to the dragged object, combined with the mouse coord
relative to the stage I can get the x-coord of the object dropped.  Diggning
through the docs so far, I can't seem to find this.

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


[flexcoders] Re: How to clear a TileList of its items?

2007-02-12 Thread Jason Hanson
I am having the same problem.  I can clear out the TileList by setting
the dataProvider to new ArrayCollection(), but it still retains some
information about the old dataset.  I think it is remembering the
total number of items.

This is what I am doing.
1) bind the TileList dataProvider to an ArrayCollection
2) run a filter on the bound ArrayCollection to limt the results to 3
3) apply a different ItemRenderer to the TileList

Every time I run those steps I get this error:
[ERROR]
TypeError: Error #2007: Parameter child must be non-null.
at flash.display::DisplayObjectContainer/removeChild()
at
mx.core::UIComponent/http://www.adobe.com/2006/flex/mx/internal::$removeChild()
at mx.core::UIComponent/removeChild()
at
mx.controls.listClasses::ListBase/mx.controls.listClasses:ListBase::updateDisplayList()
at
mx.controls.listClasses::TileBase/mx.controls.listClasses:TileBase::updateDisplayList()
at mx.core::UIComponent/validateDisplayList()
at mx.managers::LayoutManager/::validateDisplayList()
at mx.managers::LayoutManager/::doPhasedInstantiation()
at Function/http://adobe.com/AS3/2006/builtin::apply()
at mx.core::UIComponent/::callLaterDispatcher2()
at mx.core::UIComponent/::callLaterDispatcher()
[/ERROR]

I am thinking that the issues is that removeChild() is being called on
items that no longer exist in the TileList.  For some reason when
changing ItemRenderers from one to anouther a process runs removeChild
()on all the existing items in the TileList and it thinks there are
more items then there actually are.

Anyone find a fix to this issue?

thanks

--jason


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

 Please look into my example more closely.
 When you click the button I first clear the list and then fill it
again with
 new items from an arraycollection ; )
 
 collection = new ArrayCollection(); // clears the list
 collection = new

ArrayCollection({first:john},{first:john},{first:john},{first:john},{first:john});
 // this line fills the list again, after it was cleared





Re: [flexcoders] Re: Animated Drag Tile

2007-02-12 Thread Troy Gilbert

You'll need Ely's library for those. If you look in the navigation at the
bottom of his blog, there are some links to all of the components on
individual pages. One of the links is to a zip of all of his source code
from the blog. That's the easiest one to grab.

Troy.


On 2/12/07, napearson99 [EMAIL PROTECTED] wrote:


  I cant find the BitmapTile file for the Drag Tile custom itemrenderer.
Am i making a mistake?


--- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com,
napearson99 [EMAIL PROTECTED] wrote:

 I was able to dl the source with IE 6. Firefox 2.0 throws that error.

 --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com,
napearson99 napearson99@ wrote:
 
  When I right click to view source I get the error:
 
  Routing Error
 
  Recognition failed for /DragTile/DragDropViewSource/index.html
 
  I'm going to try to adjust your drag tile so that the images get out
  of the way in a vertical sense instead of horizontal like your demo
  shows. I'm also going to put just one item per line. This will
  create a sort of drag and drop list. Do you think this will be hard
  to do?
 
  On a personal note I love love love your site. I work at a fortune
  500 company and upper management is really excited about the flex apps
  with charting that I am making. I've only been using Flex/AS for 20
  days now and I have more than one functional app pulling data from SQL
  Servers. Management wants to use Flex as an enhanced GUI for SAP.
  Your blog greatly helped me make these cool apps. Keep those posts
  coming!
 
  SO THANKS! :)
 
  oh yah, they think im a genius now and I'll probably get a raise ;).
 
  --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Ely
Greenfield egreenfi@ wrote:
  
  
  
   Hi Nate. The source should be downloadable. Please try again.
  
  
   My site has gone through some changes over the past few months which
   have resulting in some broken view source links. If people have been
   looking to download source and are getting errors, please post
here or
   email me directly and I'll get them patched up. Sorry about the
 hassle.
  
   Ely.
  
  
   
  
   From: flexcoders@yahoogroups.com flexcoders%40yahoogroups.com
 [mailto:flexcoders@yahoogroups.com flexcoders%40yahoogroups.com] On
   Behalf Of napearson99
   Sent: Monday, February 12, 2007 10:46 AM
   To: flexcoders@yahoogroups.com flexcoders%40yahoogroups.com
   Subject: [flexcoders] Animated Drag Tile
  
  
  
   Anyone know how to make an animated drag tile component? I saw Ely's
   posting at http://demo.quietlyscheming.com/DragTile/DragDrop.html
   http://demo.quietlyscheming.com/DragTile/DragDrop.html and
   I love it. It won't let me download the code though so I can't
figure
   out how it's done.
  
   -Nate
  
 


 



Re: [flexcoders] Re: VideoDisplay won't load first frame

2007-02-12 Thread Muzak
Here's what I did for a video app.

Instead of setting the source of the videodisplay, I bound it to a variable and 
then use a function (setVideoSource) to set the 
variable (flvPath) and call the load method on the videodisplay.

Since this is a desktop app, I had 3 ways to open/load an flv (drag and drop 
file on app, browse for file dialog, command line 
parameter), so the setVideoSource method was called from 3 different actions.


 mx:Script
  ![CDATA[

[Bindable]
private var flvPath:String = ;

private function setVideoSource(flv:String):void {
this.flvPath = flv;
this.video_vd.load();
}

  ]]
 /mx:Script

mx:VideoDisplay id=video_vd
   width=320 height=240
   autoPlay=false source={flvPath}
   /


regards,
Muzak


- Original Message - 
From: klumikaze [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Monday, February 12, 2007 6:20 PM
Subject: [flexcoders] Re: VideoDisplay won't load first frame


Thanks Muzak,

Unfortunately that didn't do the trick either...

Any other ideas?

Brian




[flexcoders] Re: Cross domain confusion

2007-02-12 Thread John buono
That is a great suggestion, but I am using FlexBuilder 2, and can not  
find that option anyplace, anyone have any ideas?



On Saturday 10 Feb 2007, Pedro Pastor wrote:
 cause for this error, but I supposed that by default an SWF file  
have

 granted access to a local data file.

You suppose wrong.
You'll need to set use-network to false in your compiler options.
Or use a trust file.

--
Tom Chiverton
Helping to simultaneously foster distributed m-commerce



[flexcoders] Re: FlexAntTasks and tokens

2007-02-12 Thread Chris Luebcke
Hi Olivier,

There are two ways I know of to define properties, and one consistent
syntax for using them.

To define properties in your build.xml file itself, you use the
property tag. Example:

property name=flash.dir   value=${top}/bin/

A common pattern is to define properties which may vary between
developer machines or between dev/qa/production builds in a seperate
.properties file, and then reference that file into your build.xml.
For example, I have a file called local.properties, which contains
(among other things) this line:

top=C:\/dev/app

(Yeah, now that I look at it I'm not sure exactly how I arrived at
that particular combination of back and forward slashes, but it works
so I'm disinclined to monkey with it.)

I include this file in my build.xml file with the following line:

property file=../local.properties/

And after doing so, I can reference the top property with the curly
brace syntax, a la ${top}. You'll note that I've done just that in the
first example, where ${flash.dir} gets the value ${top}/bin, which
resolves to C:\/dev/app.

You use the same ${property name} format to use tokens in your
mxmlc tag.

Last thing I'll note is that I've had better luck defining Windows
paths, especially those containing spaces, in an external properties
file--doing so directly in a property tag seems to cause problems.
That could just be ignorance on my part of how to properly escape
paths within the build.xml file, though.

Hope that's what you were looking for,
Chris


--- In flexcoders@yahoogroups.com, Stembert Olivier \(BIL\)
[EMAIL PROTECTED] wrote:

 Hi,
 
 I'd like to use tokens with FlexAntTasks. I don't see how I can pass the
 token to the mxmlc tag.
 
 To know what is a token, one can red in the doc:
 You can pass custom token values to the compiler using the following
 syntax: +token_name=value In the configuration file, you reference that
 value using the following syntax: ${token_name} You can use the @Context
 token in your configuration files to represent the context root of the
 application. You can also use the ${flexlib} token to represent the
 frameworks directory. This is useful if you set up your own
 configuration and are not using the default library-path settings. The
 default value of the ${flexlib} token is application_home\frameworks.
 
 Rgds,
 
 Olivier
 
 -
 An electronic message is not binding on its sender.
 Any message referring to a binding engagement must be confirmed in
writing and duly signed.
 -





[flexcoders] should i convert pngs to jpegs before embedding them in a flash movie?

2007-02-12 Thread jpc14_99
When I make a website I design it with PNGs and when it's all good and 
done I convert to jpegs to shrink the file sizes.

I'm doing the same with my flash/flex movies, but based on the file 
sizes it looks like when the .swf is compiled the PNGs are already 
being compressed.

Is this the case?  Or should I convert them all to jpegs to shrink the 
swf file size and increase performance?



RE: [flexcoders] Re: Animated Drag Tile

2007-02-12 Thread Ely Greenfield
 
 
Hi Nate.  Now you get to be my guineapig :)  I think the zip file should
now container all the files you need. Please clear your cache, download
it again, and see if that works.
 
Ely.
 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of napearson99
Sent: Monday, February 12, 2007 1:42 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Animated Drag Tile



I cant find the BitmapTile file for the Drag Tile custom itemrenderer.
Am i making a mistake?

--- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
, napearson99 [EMAIL PROTECTED] wrote:

 I was able to dl the source with IE 6. Firefox 2.0 throws that error.
 
 --- In flexcoders@yahoogroups.com
mailto:flexcoders%40yahoogroups.com , napearson99 napearson99@
wrote:
 
  When I right click to view source I get the error:
  
  Routing Error
  
  Recognition failed for /DragTile/DragDropViewSource/index.html
  
  I'm going to try to adjust your drag tile so that the images get out
  of the way in a vertical sense instead of horizontal like your demo
  shows. I'm also going to put just one item per line. This will
  create a sort of drag and drop list. Do you think this will be hard
  to do?
  
  On a personal note I love love love your site. I work at a fortune
  500 company and upper management is really excited about the flex
apps
  with charting that I am making. I've only been using Flex/AS for 20
  days now and I have more than one functional app pulling data from
SQL
  Servers. Management wants to use Flex as an enhanced GUI for SAP. 
  Your blog greatly helped me make these cool apps. Keep those posts
  coming!
  
  SO THANKS! :) 
  
  oh yah, they think im a genius now and I'll probably get a raise ;).
  
  --- In flexcoders@yahoogroups.com
mailto:flexcoders%40yahoogroups.com , Ely Greenfield egreenfi@
wrote:
  
   
   
   Hi Nate. The source should be downloadable. Please try again.
   
   
   My site has gone through some changes over the past few months
which
   have resulting in some broken view source links. If people have
been
   looking to download source and are getting errors, please post
here or
   email me directly and I'll get them patched up. Sorry about the
 hassle.
   
   Ely.
   
   
   
   
   From: flexcoders@yahoogroups.com
mailto:flexcoders%40yahoogroups.com 
 [mailto:flexcoders@yahoogroups.com
mailto:flexcoders%40yahoogroups.com ] On
   Behalf Of napearson99
   Sent: Monday, February 12, 2007 10:46 AM
   To: flexcoders@yahoogroups.com
mailto:flexcoders%40yahoogroups.com 
   Subject: [flexcoders] Animated Drag Tile
   
   
   
   Anyone know how to make an animated drag tile component? I saw
Ely's
   posting at http://demo.quietlyscheming.com/DragTile/DragDrop.html
http://demo.quietlyscheming.com/DragTile/DragDrop.html 
   http://demo.quietlyscheming.com/DragTile/DragDrop.html
http://demo.quietlyscheming.com/DragTile/DragDrop.html  and
   I love it. It won't let me download the code though so I can't
figure
   out how it's done.
   
   -Nate
  
 




 


[flexcoders] Re: Trouble Converting java List to ArrayCollection

2007-02-12 Thread Doug Lowder
Nope, I didn't misinterpret.  I know TestVO is a Java class 
(probably with a Flex counterpart class), and the way the Java class 
is coded can definitely have an effect when it is accessed from 
Flex.  It isn't a case of correctness, but a case of what Flex 
expects from Java classes.  You can test this all out yourself by 
implementing multiple constructors and/or declaring the properties 
as private in your Java class.

Best,
Doug

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

 I think you misinterpreted, the TestVO is a java class.  Coding it
 correctly should not affect the Flex versions of the class.  When 
the
 bean is transfered to Flex it will contain publicly accessable
 properties representing the private members that have public 
getters,
 ie if you have getData there will be a property data on the 
transfered
 object.  That is how Java Beans work.  If this convention is not
 followed then if you start working with Enterprise level projects 
you
 run into problems.
 
 --- In flexcoders@yahoogroups.com, Doug Lowder douglowder@ 
wrote:
 
  Flex wants a public constructor with no arguments available, so 
the 
  solution is to just add your second constructor with whatever 
  arguments you want while keeping the default constructor.  That 
  would make both of the folowing valid:
  
   TestVO vo = new TestVO();
   TestVO vo = new TestVO(rs.getInt(id), rs.getString(data));
  
  It may arguably be bad form to access data members directly, but 
  strict adherence to good Java form in value objects just leads 
to 
  problems on the Flex side.  If, for example, you went the full 
route 
  and declared your data members private to force the use of 
accessor 
  methods, your Flex object would contain no properties since Flex 
  would have no visibility to the private members.  I usually just 
let 
  it slide, and create a Java good form wrapper object if I must 
for 
  accessing on the server side.
  
  Doug
  
  --- In flexcoders@yahoogroups.com, ytseshred ytseshred@ 
wrote:
  
   That was a typo on my Part.  They are being set using methods:
   
   TestVO vo = new TestVO();
   vo.setID(rs.getInt(id));
   vo.setData(rs.getString(data));
   
   The problem has been solved by casting the result to 
  ArrayCollection
   using the as keyword.
   
   I'm not sure what was causing my first problem, but I 
originally 
  had
   my VO's defined with constructors, so I could create the VO 
like:
   
   TestVO vo = new TestVO(rs.getInt(id), rs.getString(data));
   
   But Flex gave a runtime error when it was constructing the 
array
   collection saying something like TestVO init expected 2 
arguments 
  and
   got 0.
  





RE: [flexcoders] How to get the current build options FB uses?

2007-02-12 Thread Gordon Smith
-dump-config dumps the configuration used for a particular compilation.
The format is that of a config file, not a command line, but it is not a
generic config file.
 
 Apparently this isn't the case.
 
What's leading you to think it's not working?
 
- Gordon



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Derek Vadneau
Sent: Monday, February 12, 2007 7:30 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] How to get the current build options FB uses?



I thought the point of dump-config was to dump the configuration used
for a particular project. Apparently this isn't the case. dump-config
dumps out a generic config file.

What's the point of this?

Would it not be so much more useful to have FB be able to dump out a
file that can simply be used by the commandline compiler? I know it
would be for me.

I build and test using Flex Builder but my projects are then
integrated into a build system. The build system is not based on
Eclipse. What would be ideal is to have FB be able to dump out a
config file that I can simply pass along with my source for the build
process.

As it stands now I need to write my own (or modify the dump) config
file any time I make certain changes to my project.

Doesn't Flex Builder already have this information when it performs a
build? Could it not dump THAT out instead?

Maybe this is already possible - can anyone confirm/deny?

-- 

Derek Vadneau


 


RE: [flexcoders] Can someone tell me what I am doing wrong.

2007-02-12 Thread Gordon Smith
If the directory containing the valueObjects directory on your source
path?
 
Does it work if you use the unqualified classname ShoppingCartItem?
 
click=outerDocument.removeItem(ShoppingCartItem)/
 
Although it should be OK to write valueObjects.ShoppingCartItem, it
shouldn't be necessary.
 
- Gordon



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of oim415
Sent: Saturday, February 10, 2007 5:51 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Can someone tell me what I am doing wrong.



Hello,

I am new to Flex and am currently in the process of going through the
Adobe Flex 2 Training from the Source book.  Well everything was going
along fine until lesson 11.  I have been fighting with a compiler error
1120: Access of undefined property valueObjects.  I have the correct
import statements and have double-checked my code multiple times with
that provided by the authors.  I get the same error when I use the
author's code.  Could there be a configuration problem in my enviroment.
up to this point, erverything compiles and runs as expected.  The error
occurs on the click event of the button.  Please review the code below.
I can provide further details once the questions start.  thanks in
advance.

?xml version=1.0 encoding=utf-8?
mx:VBox xmlns:mx=http://www.adobe.com/2006/mxml;
mx:Metadata
  ! ;  [Event(name=productRemoved,type=events.ProductEvent)]
/mx:Metadata

mx:Script
![CDATA[
import events.ProductEvent;
import valueObjects.ShoppingCart;
import valueObjects.ShoppingCartItem;
import valueObjects.Product;
import mx.controls.dataGridClasses.DataGridColumn;

[Bindable]
public var cart:ShoppingCart;
n! bsp;   
nb! sp;  ;  private function
renderPriceLabel(item:ShoppingCartItem,dataField:DataGridColumn):String{
return $+String(item.subtotal);
}

public function removeItem(cartItem:ShoppingCartItem):void{
var prod:Product = cartItem.product;
var e:ProductEvent = new
ProductEvent(prod,productRemoved);
this.dispatchEvent(e);
}

 nbs! p;  ]]
/mx:Script

mx:DataGrid
id=cartView
dataProvider={cart.aItems} width=100% height=100%
editable=true draggableColumns=false
variableRowHeight=true
mx:columns
mx:DataGridColumn dataField=product headerText=Product
itemRenderer=renderer.ecomm.ProductName
editable=false/
mx:DataGridColumn dataField=quantity 
n! bsp;   itemEditor=mx.controls.NumericStep! per 
editorDataField=value editable=true
headerText=Quantity /
mx:DataGridColumn dataField=subtotal headerText=Amount
labelFunction=renderPriceLabel editable=false /
mx:DataGridColumn editable=false
mx:itemRenderer
mx:Component
mx:VBox
mx:Button 
nbs! p;   label=Remove 
 
click=outerDocument.removeItem(valueObjects.ShoppingCartItem(data))/ 
/mx:VBox
/mx:Component
/mx:itemRenderer
/mx:DataGridColumn
/mx:columns
/mx:DataGrid

/mx:VBox 

 


RE: [flexcoders] Using setSyle on dynamic created button not working

2007-02-12 Thread Gordon Smith
It would be
 
newButton.setStyle(bottom, 10);
 
because the 'bottom' style has type Number.
 
- Gordon



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of darylgmyers
Sent: Friday, February 09, 2007 1:46 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Using setSyle on dynamic created button not
working



I'm creating a number of objects dynamically in actionscript. then I'm 
using setStyle to set certain styles before addChild actually adds the 
object to the container. The setStyle is not working. Below is a 
small piece of the code.

varnewButton:Button = new Button;
newButton.label=Update; 
newButton.setStyle(bottom,10); 
newButton.addEventListener(MouseEvent.CLICK,clickUpdate);
newHBox.addChild(newButton);



 


RE: [flexcoders] Datefield inconsistencies? Or is it just me!

2007-02-12 Thread Gordon Smith
Perhaps you're having a time zone problem where it's the 9th on the
client and the 8th on the server.
 
A Date instance has a time as well as a date. I'd recommend breaking the
Date into month/day/year on the client and sending only that information
to the server.
 
- Gordon



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of baserath_2001
Sent: Friday, February 09, 2007 1:18 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Datefield inconsistencies? Or is it just me!



This little error is driving me crazy:

I am trying to populate a datagrid with values from a table based on 
the day selected in the datefield. I can use the datefield to choose 
and pass the value to my webservice but the result returned does not 
reflect the date selected. For example I can select 2/9/2007 and the 
service sends 2/8/2007 if it sends any data at all.

Is my error in flex or in my webservice. I know this is not a 
coldfusion forum but I use a cffunction as my service. I feel it may 
be flex related since occasionally I can get the same error in 
VB.net. 

When the component is created I set the default date of the datefield 
using the following code in the DateField Creation Complete event:

creationComplete=dtcLogDate.selectedDate = new Date(); 

The initialized the data loads properly based on the above setting 
but when I start changing the date is where the problem exists.

I pass the variable as the input parameter in the service using:

mx:request
dateVar{dtcLogDate.selectedDate}/dateVar
/mx:request

My webservice is below as you can see I receive the dateVar as a 
cfarugment I then break it down into dayparts in order to filter my 
data since the data, which being filtered is stored in mm/dd/ 
hh:mm:ss AM format in the db.

cffunction 
name=getLogHistory 
displayname=getLogHistory 
hint=I get the log history for display 
access=remote 
output=false 
returntype=query

cfargument name=dateVar required=false /

cfset scheduleMonth = #DateFormat(arguments.dateVar, mm)#
cfset scheduleDay = #DateFormat(arguments.dateVar, dd)#
cfset scheduleYear = #DateFormat(arguments.dateVar, )#


cfquery name=gryLogHistory datasource=test
SELECT
E.first_name,
E.last_name,
E.address,
E.city,
E.state,
E.zip,
E.email,
E.phone as empPhone,
STUFF(CONVERT(char(19), L.logrecord , 100),1,12,'') AS 
LogInTime,
L.eid,
S.store_code,
S.address as StoreAddress,
S.city as StoreCity,
S.state as StoreState,
S.phone as StorePhone
FROM dbo.loghistory AS L
INNER JOIN dbo.employees AS E
ON L.eid = E.eid
INNER JOIN dbo.stores AS S
ON S.sid = E.sid
WHERE DATEPART(, L.logrecord) = #scheduleYear# AND 
DATEPART(mm, L.logrecord) = #scheduleMonth# AND
DATEPART(dd, L.logrecord) = #scheduleDay# 
order by logrecord desc
/cfquery
cfreturn gryLogHistory /
/cffunction

Thanks in advance!
Shawn



 


[flexcoders] Re: Animated Drag Tile

2007-02-12 Thread napearson99
Nice, use me all you like.  I enjoy it and I think I'll learn a lot.

Now I get: Error #2044: Unhandled IOErrorEvent:. text=Error #2035:
URL Not Found.

the page comes up but there aren't any tiles.

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

  
  
 Hi Nate.  Now you get to be my guineapig :)  I think the zip file should
 now container all the files you need. Please clear your cache, download
 it again, and see if that works.
  
 Ely.
  
 
 
 
 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
 Behalf Of napearson99
 Sent: Monday, February 12, 2007 1:42 PM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Re: Animated Drag Tile
 
 
 
 I cant find the BitmapTile file for the Drag Tile custom itemrenderer.
 Am i making a mistake?
 
 --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
 , napearson99 napearson99@ wrote:
 
  I was able to dl the source with IE 6. Firefox 2.0 throws that error.
  
  --- In flexcoders@yahoogroups.com
 mailto:flexcoders%40yahoogroups.com , napearson99 napearson99@
 wrote:
  
   When I right click to view source I get the error:
   
   Routing Error
   
   Recognition failed for /DragTile/DragDropViewSource/index.html
   
   I'm going to try to adjust your drag tile so that the images get out
   of the way in a vertical sense instead of horizontal like your demo
   shows. I'm also going to put just one item per line. This will
   create a sort of drag and drop list. Do you think this will be hard
   to do?
   
   On a personal note I love love love your site. I work at a fortune
   500 company and upper management is really excited about the flex
 apps
   with charting that I am making. I've only been using Flex/AS for 20
   days now and I have more than one functional app pulling data from
 SQL
   Servers. Management wants to use Flex as an enhanced GUI for SAP. 
   Your blog greatly helped me make these cool apps. Keep those posts
   coming!
   
   SO THANKS! :) 
   
   oh yah, they think im a genius now and I'll probably get a raise ;).
   
   --- In flexcoders@yahoogroups.com
 mailto:flexcoders%40yahoogroups.com , Ely Greenfield egreenfi@
 wrote:
   


Hi Nate. The source should be downloadable. Please try again.


My site has gone through some changes over the past few months
 which
have resulting in some broken view source links. If people have
 been
looking to download source and are getting errors, please post
 here or
email me directly and I'll get them patched up. Sorry about the
  hassle.

Ely.




From: flexcoders@yahoogroups.com
 mailto:flexcoders%40yahoogroups.com 
  [mailto:flexcoders@yahoogroups.com
 mailto:flexcoders%40yahoogroups.com ] On
Behalf Of napearson99
Sent: Monday, February 12, 2007 10:46 AM
To: flexcoders@yahoogroups.com
 mailto:flexcoders%40yahoogroups.com 
Subject: [flexcoders] Animated Drag Tile



Anyone know how to make an animated drag tile component? I saw
 Ely's
posting at http://demo.quietlyscheming.com/DragTile/DragDrop.html
 http://demo.quietlyscheming.com/DragTile/DragDrop.html 
http://demo.quietlyscheming.com/DragTile/DragDrop.html
 http://demo.quietlyscheming.com/DragTile/DragDrop.html  and
I love it. It won't let me download the code though so I can't
 figure
out how it's done.

-Nate
   
  
 





[flexcoders] Re: Animated Drag Tile

2007-02-12 Thread napearson99
I think you just forgot the images in the img folder.  I put some in
named img1.jpg, img2.jpg ect and they came up, although these pictures
are at 1900x1680 so i might want to rescale them first to make sure it
works.

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

 Nice, use me all you like.  I enjoy it and I think I'll learn a lot.
 
 Now I get: Error #2044: Unhandled IOErrorEvent:. text=Error #2035:
 URL Not Found.
 
 the page comes up but there aren't any tiles.
 
 --- In flexcoders@yahoogroups.com, Ely Greenfield egreenfi@ wrote:
 
   
   
  Hi Nate.  Now you get to be my guineapig :)  I think the zip file
should
  now container all the files you need. Please clear your cache,
download
  it again, and see if that works.
   
  Ely.
   
  
  
  
  From: flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] On
  Behalf Of napearson99
  Sent: Monday, February 12, 2007 1:42 PM
  To: flexcoders@yahoogroups.com
  Subject: [flexcoders] Re: Animated Drag Tile
  
  
  
  I cant find the BitmapTile file for the Drag Tile custom itemrenderer.
  Am i making a mistake?
  
  --- In flexcoders@yahoogroups.com
mailto:flexcoders%40yahoogroups.com
  , napearson99 napearson99@ wrote:
  
   I was able to dl the source with IE 6. Firefox 2.0 throws that
error.
   
   --- In flexcoders@yahoogroups.com
  mailto:flexcoders%40yahoogroups.com , napearson99 napearson99@
  wrote:
   
When I right click to view source I get the error:

Routing Error

Recognition failed for /DragTile/DragDropViewSource/index.html

I'm going to try to adjust your drag tile so that the images
get out
of the way in a vertical sense instead of horizontal like your
demo
shows. I'm also going to put just one item per line. This will
create a sort of drag and drop list. Do you think this will be
hard
to do?

On a personal note I love love love your site. I work at a fortune
500 company and upper management is really excited about the flex
  apps
with charting that I am making. I've only been using Flex/AS
for 20
days now and I have more than one functional app pulling data from
  SQL
Servers. Management wants to use Flex as an enhanced GUI for SAP. 
Your blog greatly helped me make these cool apps. Keep those posts
coming!

SO THANKS! :) 

oh yah, they think im a genius now and I'll probably get a
raise ;).

--- In flexcoders@yahoogroups.com
  mailto:flexcoders%40yahoogroups.com , Ely Greenfield egreenfi@
  wrote:

 
 
 Hi Nate. The source should be downloadable. Please try again.
 
 
 My site has gone through some changes over the past few months
  which
 have resulting in some broken view source links. If people have
  been
 looking to download source and are getting errors, please post
  here or
 email me directly and I'll get them patched up. Sorry about the
   hassle.
 
 Ely.
 
 
 
 
 From: flexcoders@yahoogroups.com
  mailto:flexcoders%40yahoogroups.com 
   [mailto:flexcoders@yahoogroups.com
  mailto:flexcoders%40yahoogroups.com ] On
 Behalf Of napearson99
 Sent: Monday, February 12, 2007 10:46 AM
 To: flexcoders@yahoogroups.com
  mailto:flexcoders%40yahoogroups.com 
 Subject: [flexcoders] Animated Drag Tile
 
 
 
 Anyone know how to make an animated drag tile component? I saw
  Ely's
 posting at
http://demo.quietlyscheming.com/DragTile/DragDrop.html
  http://demo.quietlyscheming.com/DragTile/DragDrop.html 
 http://demo.quietlyscheming.com/DragTile/DragDrop.html
  http://demo.quietlyscheming.com/DragTile/DragDrop.html  and
 I love it. It won't let me download the code though so I can't
  figure
 out how it's done.
 
 -Nate

   
  
 





[flexcoders] Re: Animated Drag Tile

2007-02-12 Thread napearson99
woohoo it works.  Now I'm going to try to edit ur program to do the
vertical shuffling.  gl to me.


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

 I think you just forgot the images in the img folder.  I put some in
 named img1.jpg, img2.jpg ect and they came up, although these pictures
 are at 1900x1680 so i might want to rescale them first to make sure it
 works.
 
 --- In flexcoders@yahoogroups.com, napearson99 napearson99@ wrote:
 
  Nice, use me all you like.  I enjoy it and I think I'll learn a lot.
  
  Now I get: Error #2044: Unhandled IOErrorEvent:. text=Error #2035:
  URL Not Found.
  
  the page comes up but there aren't any tiles.
  
  --- In flexcoders@yahoogroups.com, Ely Greenfield egreenfi@ wrote:
  


   Hi Nate.  Now you get to be my guineapig :)  I think the zip file
 should
   now container all the files you need. Please clear your cache,
 download
   it again, and see if that works.

   Ely.

   
   
   
   From: flexcoders@yahoogroups.com
 [mailto:[EMAIL PROTECTED] On
   Behalf Of napearson99
   Sent: Monday, February 12, 2007 1:42 PM
   To: flexcoders@yahoogroups.com
   Subject: [flexcoders] Re: Animated Drag Tile
   
   
   
   I cant find the BitmapTile file for the Drag Tile custom
itemrenderer.
   Am i making a mistake?
   
   --- In flexcoders@yahoogroups.com
 mailto:flexcoders%40yahoogroups.com
   , napearson99 napearson99@ wrote:
   
I was able to dl the source with IE 6. Firefox 2.0 throws that
 error.

--- In flexcoders@yahoogroups.com
   mailto:flexcoders%40yahoogroups.com , napearson99 napearson99@
   wrote:

 When I right click to view source I get the error:
 
 Routing Error
 
 Recognition failed for /DragTile/DragDropViewSource/index.html
 
 I'm going to try to adjust your drag tile so that the images
 get out
 of the way in a vertical sense instead of horizontal like your
 demo
 shows. I'm also going to put just one item per line. This will
 create a sort of drag and drop list. Do you think this will be
 hard
 to do?
 
 On a personal note I love love love your site. I work at a
fortune
 500 company and upper management is really excited about the
flex
   apps
 with charting that I am making. I've only been using Flex/AS
 for 20
 days now and I have more than one functional app pulling
data from
   SQL
 Servers. Management wants to use Flex as an enhanced GUI for
SAP. 
 Your blog greatly helped me make these cool apps. Keep those
posts
 coming!
 
 SO THANKS! :) 
 
 oh yah, they think im a genius now and I'll probably get a
 raise ;).
 
 --- In flexcoders@yahoogroups.com
   mailto:flexcoders%40yahoogroups.com , Ely Greenfield egreenfi@
   wrote:
 
  
  
  Hi Nate. The source should be downloadable. Please try again.
  
  
  My site has gone through some changes over the past few months
   which
  have resulting in some broken view source links. If people
have
   been
  looking to download source and are getting errors, please post
   here or
  email me directly and I'll get them patched up. Sorry
about the
hassle.
  
  Ely.
  
  
  
  
  From: flexcoders@yahoogroups.com
   mailto:flexcoders%40yahoogroups.com 
[mailto:flexcoders@yahoogroups.com
   mailto:flexcoders%40yahoogroups.com ] On
  Behalf Of napearson99
  Sent: Monday, February 12, 2007 10:46 AM
  To: flexcoders@yahoogroups.com
   mailto:flexcoders%40yahoogroups.com 
  Subject: [flexcoders] Animated Drag Tile
  
  
  
  Anyone know how to make an animated drag tile component? I saw
   Ely's
  posting at
 http://demo.quietlyscheming.com/DragTile/DragDrop.html
   http://demo.quietlyscheming.com/DragTile/DragDrop.html 
  http://demo.quietlyscheming.com/DragTile/DragDrop.html
   http://demo.quietlyscheming.com/DragTile/DragDrop.html  and
  I love it. It won't let me download the code though so I can't
   figure
  out how it's done.
  
  -Nate
 

   
  
 





[flexcoders] Re: Animated Drag Tile

2007-02-12 Thread napearson99
Ely, the tiles disappear when you rearrange inside the same data
provider. It happens your demos and in the code I downloaded.

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

 woohoo it works.  Now I'm going to try to edit ur program to do the
 vertical shuffling.  gl to me.
 
 
 --- In flexcoders@yahoogroups.com, napearson99 napearson99@ wrote:
 
  I think you just forgot the images in the img folder.  I put some in
  named img1.jpg, img2.jpg ect and they came up, although these pictures
  are at 1900x1680 so i might want to rescale them first to make sure it
  works.
  
  --- In flexcoders@yahoogroups.com, napearson99 napearson99@ wrote:
  
   Nice, use me all you like.  I enjoy it and I think I'll learn a lot.
   
   Now I get: Error #2044: Unhandled IOErrorEvent:. text=Error #2035:
   URL Not Found.
   
   the page comes up but there aren't any tiles.
   
   --- In flexcoders@yahoogroups.com, Ely Greenfield egreenfi@
wrote:
   
 
 
Hi Nate.  Now you get to be my guineapig :)  I think the zip file
  should
now container all the files you need. Please clear your cache,
  download
it again, and see if that works.
 
Ely.
 



From: flexcoders@yahoogroups.com
  [mailto:[EMAIL PROTECTED] On
Behalf Of napearson99
Sent: Monday, February 12, 2007 1:42 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Animated Drag Tile



I cant find the BitmapTile file for the Drag Tile custom
 itemrenderer.
Am i making a mistake?

--- In flexcoders@yahoogroups.com
  mailto:flexcoders%40yahoogroups.com
, napearson99 napearson99@ wrote:

 I was able to dl the source with IE 6. Firefox 2.0 throws that
  error.
 
 --- In flexcoders@yahoogroups.com
mailto:flexcoders%40yahoogroups.com , napearson99
napearson99@
wrote:
 
  When I right click to view source I get the error:
  
  Routing Error
  
  Recognition failed for
/DragTile/DragDropViewSource/index.html
  
  I'm going to try to adjust your drag tile so that the images
  get out
  of the way in a vertical sense instead of horizontal like your
  demo
  shows. I'm also going to put just one item per line. This will
  create a sort of drag and drop list. Do you think this will be
  hard
  to do?
  
  On a personal note I love love love your site. I work at a
 fortune
  500 company and upper management is really excited about the
 flex
apps
  with charting that I am making. I've only been using Flex/AS
  for 20
  days now and I have more than one functional app pulling
 data from
SQL
  Servers. Management wants to use Flex as an enhanced GUI for
 SAP. 
  Your blog greatly helped me make these cool apps. Keep those
 posts
  coming!
  
  SO THANKS! :) 
  
  oh yah, they think im a genius now and I'll probably get a
  raise ;).
  
  --- In flexcoders@yahoogroups.com
mailto:flexcoders%40yahoogroups.com , Ely Greenfield
egreenfi@
wrote:
  
   
   
   Hi Nate. The source should be downloadable. Please try
again.
   
   
   My site has gone through some changes over the past few
months
which
   have resulting in some broken view source links. If people
 have
been
   looking to download source and are getting errors,
please post
here or
   email me directly and I'll get them patched up. Sorry
 about the
 hassle.
   
   Ely.
   
   
   
   
   From: flexcoders@yahoogroups.com
mailto:flexcoders%40yahoogroups.com 
 [mailto:flexcoders@yahoogroups.com
mailto:flexcoders%40yahoogroups.com ] On
   Behalf Of napearson99
   Sent: Monday, February 12, 2007 10:46 AM
   To: flexcoders@yahoogroups.com
mailto:flexcoders%40yahoogroups.com 
   Subject: [flexcoders] Animated Drag Tile
   
   
   
   Anyone know how to make an animated drag tile component?
I saw
Ely's
   posting at
  http://demo.quietlyscheming.com/DragTile/DragDrop.html
http://demo.quietlyscheming.com/DragTile/DragDrop.html 
   http://demo.quietlyscheming.com/DragTile/DragDrop.html
http://demo.quietlyscheming.com/DragTile/DragDrop.html  and
   I love it. It won't let me download the code though so I
can't
figure
   out how it's done.
   
   -Nate
  
 

   
  
 





[flexcoders] Source formatting

2007-02-12 Thread Nick Collins
Ok, maybe I'm just lazy, or maybe I'm the only one that doesn't like
to do some things manually, but I love the source formatting tools in
Dreamweaver and Flash, and I have to wonder, why do we not have
something similar in FlexBuilder?

Yes I know I can select a block of text, right click and click shift
right, or shift left, but I'd like a menu item or shortcut that will
go through and align my code according to my preferences, like in
Flash and Dreamweaver. Anybody know of anything out there that will do
this for me?


[flexcoders] Printing High Resolution Graphics is Flex.

2007-02-12 Thread zgaff
Is there a issue printing high resolution graphics with flex. I have a 
app that prints out information about users and a couple of high 
resoution graphic. The graphics do not scale correctly. The image is 
1200 dpi so on a 600 dpi printer i would think it would print an image 
2 inch wide and 2 inch high. Is seem to be printing out at the display 
resolution od 72dpi is there an issue with flash.

Thanks

Gene 



RE: [flexcoders] OSS, framework for functional testing. Error including automation_agent.swc

2007-02-12 Thread Matt Chotin
There should be an automation_agent_rb.swc somewhere that needs to go in
your locale folder I think.

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of pmotzfeldt
Sent: Monday, February 12, 2007 6:16 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] OSS, framework for functional testing. Error
including automation_agent.swc

 

Hi, I am new to this group. Hope I am not posting wrong.

I am on my last year at The Norwegian University of Science and
Technology (NTNU) and in my last assignment I will try to develop a
open source framework for functional testing of Flex application. 

I see from other messages that there are others out there doing the
same :-)

I have just started, and I am having trouble with including the
library automation_agent.swc.

I get the error message:
Unable to resolve the class for the ResourceBundle: automation_agent

I have installed the Automation Package with the FDS2 serial and
entered the following lines in the flex-config.xml:
(the files are infact in the libs folder)

include-libraries
library/libs/automation.swc/library
library/libs/automation_agent.swc/library
library/libs/qtp.swc/library
/include-libraries

Does anybody know what I am doing wrong? Is it something wrong with
the license...

Thank you for any answer!

 



  1   2   >