Re: [flexcoders] Re: NEED more than 15 menu item in Context Menu ????

2009-05-25 Thread Steve Mathews
We grab the right click in our .NET app and display that. I belive we
capture the event from the control so the native Flash menu isn't shown.
This works really well.

On Mon, May 25, 2009 at 12:35 PM, Dharmendra Chauhan  wrote:

> Hi Samuel,
>
> Thanks for the reply.
>
> Its running inside  Flash Player ActiveX control.so no java script heck can
> be applied..I completely stuck at this point..Need some ideas around it.
>
> Any other UI components can be used to get similar functionality.
>
> Regards,
> Dharmendra
>
>
>
>
> --- In flexcoders@yahoogroups.com, Sam Lai  wrote:
> >
> > Is the Flex app loaded in the IE ActiveX control, or the Flash Player
> > ActiveX control?
> >
> > If it is IE, any of the tricks to hide the context menu in the normal
> > IE browser should work.
> >
> > Never tried doing this myself though.
> >
>  > On 5/23/09, Dharmendra Chauhan  wrote:
> > > Thanks Lot for the Reply.
> > > My FLex Application is not running inside browser , It is running
> inside DOt
> > > Net container as a Active X control. the idea you suggested required
> default
> > > context menu to be hidden ..is it possible to hide it ? If yes then I
> Can
> > > open some custom window on right click and design. I am not sure how
> > > concrete this idea is..
> > >
> > >
> > > --- In flexcoders@yahoogroups.com, "Yves Riel"  wrote:
> > >>
> > >> What about intercepting the right-click at the browser level and
> > >> displaying your own contextual menu? However, you might have some
> > >> browser incompatibility to look at.
> > >>
> > >>
> http://blog.another-d-mention.ro/programming/right-click-and-custom-cont
> > >> ext-menu-in-flash-flex/
> > >>
> > >> 
> > >>
> > >> From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com]
> On
> > >> Behalf Of Dharmendra Chauhan
> > >> Sent: Friday, May 22, 2009 3:03 PM
> > >> To: flexcoders@yahoogroups.com
> > >> Subject: [flexcoders] NEED more than 15 menu item in Context Menu 
> > >>
> > >>
> > >>
> > >>
> > >>
> > >> Hi,
> > >> I really need to have more than 15 menu item displayed on Context
> Menu.
> > >> I desperately need some workaround or ideas to achieve this
> > >>
> > >> My client has invested thousands of dollar in Flex Project, he
> > >> definitely need more than 15 menu item.If this project failed , client
> > >> will NEVER think to invest in flex.
> > >>
> > >>
> > >> Had I been aware of this limitation before I would have thought some
> > >> solution by now.This comes as a surprise to me at the last moment
> ,just
> > >> fews days before Prod Date.
> > >>
> > >> Pls gents help me get rid of this ...PLEASE provide some ideas.
> > >>
> > >> Thanks in advance.
> > >>
> > >> Thanks,
> > >> Dharmendra
> > >>
> > >
> > >
> > >
> > >
> > > 
> > >
> > > --
> > > Flexcoders Mailing List
> > > FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> > > Alternative FAQ location:
> > >
> https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847
> > > Search Archives:
> > > http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups
> Links
> > >
> > >
> > >
> > >
> >
> > --
> > Sent from my mobile device
> >
>
>
>
>
> 
>
> --
> Flexcoders Mailing List
> FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> Alternative FAQ location:
> https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847
> Search Archives:
> http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups
> Links
>
>
>
>


[flexcoders] Re: example of using ffmpeg with coldfusion in flex application

2009-05-25 Thread stinasius
i have been reading most of the tutorials online and all have the source to the 
video to be uploaded and encoded hardcoded. i would like to allow the user to 
browse the his/her system to get the video to upload. anyhow this is my code so 
far but i get errors. please guidance is what am seeking. my code

"videoUploader.mxml" 


http://www.adobe.com/2006/mxml"; layout="absolute" 
creationComplete="init()">













  



"uploadVideo_act.cfm(server script)"











"error i get when i run the app"

Error #2044: Unhandled IOErrorEvent:. text=Error #2038: File I/O Error.
at videoUploader/init()
at videoUploader/___Application1_creationComplete()
at flash.events::EventDispatcher/dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at mx.core::UIComponent/dispatchEvent()
at mx.core::UIComponent/set initialized()
at mx.managers::LayoutManager/doPhasedInstantiation()
at Function/http://adobe.com/AS3/2006/builtin::apply()
at mx.core::UIComponent/callLaterDispatcher2()
at mx.core::UIComponent/callLaterDispatcher()

please help. thanks



[flexcoders] httpservice error #2032

2009-05-25 Thread flexaustin
I cannot seem to get my SWF to talk to my rails app. i am getting the following 
error code:

Fault: increment node clicked stat fault[FaultEvent fault=[RPC Fault 
faultString="HTTP request error" faultCode="Server.Error.Request" 
faultDetail="Error: [IOErrorEvent type="ioError" bubbles=false cancelable=false 
eventPhase=2 text="Error #2032: Stream Error. URL: 
http://localhost:3000/ditto/myfunction";]. URL: 
http://localhost:3000/ditto/myfunction";] 
messageId="87ECB54A-4BDB-CF5B-41F0-7B2DEF12A2F7" type="fault" bubbles=false 
cancelable=true eventPhase=2]


Here is my crossdomain.xml file (not sure I need one as my swf is in the app 
running on localhost:3000).


http://www.macromedia.com/xml/dtds/cross-domain-policy.dtd";>




Here is my httservice:
_httpservice = new HTTPService();
_httpservice.url = "/ditto/myfunction";
_httpservice.method = "POST"; 
_httpservice.useProxy = false;
_httpservice.addEventListener( ResultEvent.RESULT, 
itemClickedStatsResult );
_httpservice.addEventListener( FaultEvent.FAULT, 
itemClickedStatsFault );



Always comes back as a FAULT?

Anyone have any advice?

TIA







[flexcoders] restfulx and user sessions

2009-05-25 Thread rocketeer_capt.proton
Hi all you combo rails and flex coders!  Does anyone know how to customize this 
line:

Pomodo.models.currentUser = result;


I have an app named Homefogboundpictures.mxml.  

I know I could just copy the app that it came from:

http://github.com/dima/pomodo_on_rails/tree/master

But then I would not learn anything.



[flexcoders] Flex + Java + Hibernate

2009-05-25 Thread madhavaram123
Hi All,

I am facing a peculiar problem while saving the data. Below is the detailed 
explanation what I am doing. I always get the problem as "a different object 
with the same identifier value was already associated with the session"

But the above error does not come when I try to save the same object from java.

Below is the Parent Class in java
[code]
import java.util.ArrayList;
import java.util.HashSet;
import java.util.List;
import java.util.Set;

/**
 * Employee entity. @author MyEclipse Persistence Tools
 */

public class Employee implements java.io.Serializable {

private Integer employeeId;
private String name;
private List communicationTypes = new ArrayList();

// getters and setters follows
[/code]

Below is the Parent class in Flex
[code]
package manageCustomList.employee
{
import mx.collections.ArrayCollection;

[Bindable]
[RemoteClass(alias="com.config.Employee")]
public class Employee
{
public function Employee()
{
}

public var employeeId:int;

public var name:String;

public var communicationTypes:Array;
}
}
[/code]

Below is the Child Class in java
[code]
public class CommunicationType extends Employee implements java.io.Serializable 
{
private Integer comTypeId;
private Integer typeId;
private String typeName;
// getters and setters follows
}
[/code]

Below is the child Class in Flex
[code]
package manageCustomList.employee
{
import mx.controls.List;

[Bindable]
[RemoteClass(alias="com.config.CommunicationType")]
public class CommunicationType extends Employee
{
public function CommunicationType()
{
}

public var comTypeId:int;

public var typeId:int;

public var typeName:String;

}
}
[/code]

Below is the method to save the object in the database
[code]
public static Employee create(Employee employee) throws DAOException
{
Session session = HibernateSessionFactory.getSession();
try
{
session.beginTransaction();
session.save(employee);
session.getTransaction().commit();
session.flush();
session.evict(employee);
}
 catch (HibernateException exp) {
 exp.printStackTrace();
} finally {
session.close();
}
return employee;
}
[/code]

Below is my mxml
[code]
private function save():void {
employee = new Employee();

employee.listId = Number(listId.text);
employee.name = empName.text;

var childList:Array = new Array();

for(var i:int=0;i


















[/code]

CommunicationType.hbm.xml
[code]














[/code]

Let me know if you any refernce of other things.

Any help would be really helpful

Thanks in advance



[flexcoders] Re: CRUD generator...

2009-05-25 Thread anatolet
ANT scripts are generated as well when you create project in eclipse - they are 
actually used by plugin - so you can move them to the build machine with 
no/minimal changes
As far as "Framework" - it is identical in approach/implementation to 
DataServices - you can use generated code either within LCDS or with Farata's 
"light" framework. 
Regards,
Anatole Tartakovsky

--- In flexcoders@yahoogroups.com, Marvin Froeder  wrote:
>
> Well, I found this linkhttp://flexblog.faratasystems.com/?p=322
> 
> Still evaluating, but I do prefer something less attached to eclipse, that I
> could integration into my continuous integration server.
> 
> 
> VELO
> 
> On Mon, May 25, 2009 at 10:01 PM, Tim Rowe  wrote:
> 
> >
> >
> >  I've spent the last few minutes following links and reading details on
> > their project page, and I still can't figure out what that project is
> > supposed to do - It says it's "an open source framework" - great, but
> > a framework for what?
> > If it handles entity persistance (or other features), would it not be an
> > idea that the project summary actually states so somewhere in it's
> > description? (I'm looking for a replacement for FlexORM as it has a few too
> > many problems).
> >
> >  *Tim Rowe*
> > *Software Engineer*
> > *carsales.com Ltd*
> >
> > Level 1, 109 Burwood Road
> > Locked Bag 
> > Hawthorn VIC 3211
> >
> > t: 03 9093 8600 (Reception)
> > t: 03 9093 8757 (Direct)
> > f: 03 9093 8697
> >
> >  --
> > *From:* flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] *On
> > Behalf Of *anatolet
> > *Sent:* Tuesday, 26 May 2009 10:53 AM
> > *To:* flexcoders@yahoogroups.com
> > *Subject:* [flexcoders] Re: CRUD generator...
> >
> >  Please look for clear yoolkit
> > http://sourceforge.net/projects/cleartoolkit/
> > Regards
> > Anatole Tartakovsky
> >
> > --- In flexcoders@yahoogroups.com , Marvin
> > Froeder  wrote:
> > >
> > > Hi,
> > > Does someone know any CRUD generator tool? I would like to generate CRUDs
> > > based on my VOs.
> > >
> > >
> > > VELO
> > >
> >
> >  
> >
>




[flexcoders] Re: CRUD generator...

2009-05-25 Thread anatolet
Please look for clear yoolkit
http://sourceforge.net/projects/cleartoolkit/
Regards
Anatole Tartakovsky


--- In flexcoders@yahoogroups.com, Marvin Froeder  wrote:
>
> Hi,
> Does someone know any CRUD generator tool?  I would like to generate CRUDs
> based on my VOs.
> 
> 
> VELO
>




Re: [flexcoders] Re: CRUD generator...

2009-05-25 Thread Marvin Froeder
Well, I found this linkhttp://flexblog.faratasystems.com/?p=322

Still evaluating, but I do prefer something less attached to eclipse, that I
could integration into my continuous integration server.


VELO

On Mon, May 25, 2009 at 10:01 PM, Tim Rowe  wrote:

>
>
>  I've spent the last few minutes following links and reading details on
> their project page, and I still can't figure out what that project is
> supposed to do - It says it's "an open source framework" - great, but
> a framework for what?
> If it handles entity persistance (or other features), would it not be an
> idea that the project summary actually states so somewhere in it's
> description? (I'm looking for a replacement for FlexORM as it has a few too
> many problems).
>
>  *Tim Rowe*
> *Software Engineer*
> *carsales.com Ltd*
>
> Level 1, 109 Burwood Road
> Locked Bag 
> Hawthorn VIC 3211
>
> t: 03 9093 8600 (Reception)
> t: 03 9093 8757 (Direct)
> f: 03 9093 8697
>
>  --
> *From:* flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] *On
> Behalf Of *anatolet
> *Sent:* Tuesday, 26 May 2009 10:53 AM
> *To:* flexcoders@yahoogroups.com
> *Subject:* [flexcoders] Re: CRUD generator...
>
>  Please look for clear yoolkit
> http://sourceforge.net/projects/cleartoolkit/
> Regards
> Anatole Tartakovsky
>
> --- In flexcoders@yahoogroups.com , Marvin
> Froeder  wrote:
> >
> > Hi,
> > Does someone know any CRUD generator tool? I would like to generate CRUDs
> > based on my VOs.
> >
> >
> > VELO
> >
>
>  
>


Re: [flexcoders] as3 interface syntax ?

2009-05-25 Thread foodyi
Yves Riel 写道:
> An interface is basically a contract between two classes. In the example
> below, the class containing the mentioned line doesn't care which class
> is passed to it from the _textFlow.interactionManager property, it just
> makes sure that it implements the interface (i.e. the contract). So,
> _textFlow.interactionManager probably returns an untyped Object and the
> command IEditManager() casts it so the compiler doesn't throw an error
> when the method applyParagraphFormat() is called.
>  
> In other word, if the IEditManager() command was to be removed, the
> compiler would have choked out since _textFlow.interactionManager
> returns an Object and that applyParagraphFormat() is not a method
> belonging to a standard Object.
>  
> Interface allows for polymorphism and is a very powerful tool in any OOP
> programmer tool belt. You definitely need to read up on it and
> understand it. You can find good tutorials on-line or just read the
> Programming AS3 section in the help.
>
> 
>
> From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
> Behalf Of foodyi
> Sent: Monday, May 25, 2009 2:12 AM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] as3 interface syntax ?
>
>
>
>
>
> hi,all
> i read adobe textlayout framwork's sample code , i don't understand the
> code below:
>
> IEditManager(_textFlow.interactionManager).applyParagraphFormat(pf);
>
> thanks for your reply.
>
> foodyi
>
>
>
>
>   
thanks for your detailed answer,i focus on the syntax of the interface 
and neglected type conversion.


RE: [flexcoders] Re: CRUD generator...

2009-05-25 Thread Tim Rowe
I've spent the last few minutes following links and reading details on their 
project page, and I still can't figure out what that project is supposed to do 
- It says it's "an open source framework" - great, but a framework for what?
If it handles entity persistance (or other features), would it not be an idea 
that the project summary actually states so somewhere in it's description? (I'm 
looking for a replacement for FlexORM as it has a few too many problems).

Tim Rowe
Software Engineer
carsales.com Ltd

Level 1, 109 Burwood Road
Locked Bag 
Hawthorn VIC 3211

t: 03 9093 8600 (Reception)
t: 03 9093 8757 (Direct)
f: 03 9093 8697


From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of anatolet
Sent: Tuesday, 26 May 2009 10:53 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: CRUD generator...




Please look for clear yoolkit
http://sourceforge.net/projects/cleartoolkit/
Regards
Anatole Tartakovsky

--- In flexcoders@yahoogroups.com, Marvin 
Froeder  wrote:
>
> Hi,
> Does someone know any CRUD generator tool? I would like to generate CRUDs
> based on my VOs.
>
>
> VELO
>





[flexcoders] Re: CRUD generator...

2009-05-25 Thread anatolet
Please look for clear yoolkit
http://sourceforge.net/projects/cleartoolkit/
Regards
Anatole Tartakovsky


--- In flexcoders@yahoogroups.com, Marvin Froeder  wrote:
>
> Hi,
> Does someone know any CRUD generator tool?  I would like to generate CRUDs
> based on my VOs.
> 
> 
> VELO
>




[flexcoders] Re: CRUD generator...

2009-05-25 Thread anatolet
Please look for clear yoolkit
http://sourceforge.net/projects/cleartoolkit/
Regards
Anatole Tartakovsky


--- In flexcoders@yahoogroups.com, Marvin Froeder  wrote:
>
> Hi,
> Does someone know any CRUD generator tool?  I would like to generate CRUDs
> based on my VOs.
> 
> 
> VELO
>




Re: [flexcoders] Flex DataGrid Filter via Popup Window

2009-05-25 Thread Angelo Anolin
Hi Tracy,

Care to show some example codes on how to pass the datagrid reference?
Thanks.

Kind regards,
Angelo




From: Tracy Spratt 
To: flexcoders@yahoogroups.com
Sent: Monday, 25 May, 2009 22:49:54
Subject: RE: [flexcoders] Flex DataGrid Filter via Popup Window





Of course, there are many ways to do this, but one simple approach would be to 
pass a reference to the dataGrid into the pop-up.  That would give you access 
to the DG.columns array to populate your columns ComboBox.
 
Tracy Spratt,
Lariat Services, development services available



From:flexcod...@yahoogro ups.com [mailto: flexcod...@yahoogro ups.com ] On 
Behalf Of Angelo Anolin
Sent: Monday, May 25, 2009 10:07 AM
To: flexcod...@yahoogro ups.com
Subject: Re: [flexcoders] Flex DataGrid Filter via Popup Window
 




Some updates on this.

Instead of the codes inside a function, what I did was create a custom MXML 
Component (selecting File | New | MXML Component) and selecting TileWindow on 
the Based As dropdown list.

In the button, I created a function that calls the MXML component via the 
following codes:

private function launchFilterDialog( ) :void
{
  var winFilter:FilterDia log = PopUpManager. createPopUp( this, FilterDialog, 
true) as FilterDialog;
  PopUpManager. centerPopUp( winFilter) ;
}

Next step is to be able to pass the column names as defined in the datagrid and 
bind those column names into the combo box which I placed in the MXML component.

So I am left with the following things to do:

1. Get the column names of the datagrid which is in the calling flex 
application.
2. Pass those column names into the MXML component and bind them into the combo 
box.
3. When a selection is made on the filter dialog window and valid filter is 
specified, clicking on the OK button would filter the datagrid of the calling 
flex application.
4. A clear button would clear the filter(s) specified on the datagrid.

Inputs would be highly appreciated in doing Item no. 1

Thanks.
 



From:Angelo Anolin 
To: flexcod...@yahoogro ups.com
Sent: Monday, 25 May, 2009 15:48:25
Subject: [flexcoders] Flex DataGrid Filter via Popup Window

Hello FlexCoders,

I am trying to implement a datagrid filtering mechanism to datagrids in my 
application.

In this process, I want to show a popup window where it would act like a 
response window.  The popup window will contain three controls, namely, two 
comboboxes, and a textinput control.  One of the combo box would contain the 
columns currently displayed in the datagrid.  The other combo box would contain 
common comparison operators (i.e. =, !=, >, <, like, etc.). Of course, there 
would also be two buttons - OK and Cancel to perform the filter operations.

I found a popup panel example here..
http://blog. flexexamples. com/2007/ 08/06/creating- custom-pop- up-windows- 
with-the- popupmanager- class/

But in this example, he is defining the content of the popup panel.

Since we know that the controls in the popup panel is fixed, would it be 
possible to just create another control which contains the controls we have 
defined?  Then, the combobox panel would be populated with the columns in the 
datagrid where it was called. When the column selection from the combo box is 
made, the operator also selected and the text input is filled up with the value 
to filter, clicking on OK button would filter the datagrid.

Another reason that I wanted that the filter mechanism reusable because I have 
a lot of mxml with datagrid that requires the same filter functionality. It 
would not be too good if I would place all the codes in each mxml, right?

I am not sure if this approach would be good.  If in case you have other 
approach on how to filter the datagrid, kindly let me know.

Thanks.
 



  

[flexcoders] CRUD generator...

2009-05-25 Thread Marvin Froeder
Hi,
Does someone know any CRUD generator tool?  I would like to generate CRUDs
based on my VOs.


VELO


[flexcoders] dnd list items

2009-05-25 Thread thomas parquier
Hi,

I'm using a list and custom items can be dnd'd. But the proxy has a white
background with a grey border (which the itemrenderer doesnt have), and the
whole proxy is a bit transparent. How to get a completely transparent
background and no border ?

thomas
---
http://www.web-attitude.fr/
msn : thomas.parqu...@web-attitude.fr
softphone : sip:webattit...@ekiga.net 
téléphone portable : +33601 822 056


[flexcoders] Re: VO Issues

2009-05-25 Thread Jeremy Rottman
Bah, I figured it out. 

I had put a ; after the metadata. 



[flexcoders] Re: VO Issues

2009-05-25 Thread Jeremy Rottman
I took your suggestion and use Charles to determine what was being sent.

This is the request that I send.

Parameters  Array   
[0] Object  
person_titleString  
person_type String  
pref_displayString  
is_active   Boolean false
company_person_id   String  
person_id   String  
company_id  String  ABCDEFG
last_name   String  
lang_pref   String  
first_name  String  
mid_nameString

The structure is correct, but the type casting is wrong.

It should look like this.
Parameters  Array   
[0] Object  com.rottmanj.model.vo.CompanyPersonVO
person_titleString  
person_type String  
pref_displayString  
is_active   Boolean false
company_person_id   String  
person_id   String  
company_id  String  ABCDEFG
last_name   String  
lang_pref   String  
first_name  String  
mid_nameString

I am just not sure as to why it is not properly type casting the object 
correctly.

Here is my current AS/VO code.
/*
@brief: Display all company people
*/
private function aGetCompanyPerson():void
{
var personVO:CompanyPersonVO = new 
CompanyPersonVO()
personVO.company_id = "ABCDEFG";

roCompany.sGetPerson_Company(personVO); 

}

/*
@brief: ResultEvent for get keys
*/
private function 
rGetCompanyPerson(event:ResultEvent):void
{
acPerson = new ArrayCollection(event.result as 
Array);
}


VO:
package com.rottmanj.model.vo
{
import mx.collections.ArrayCollection;

[RemoteClass(alias="com.rottmanj.model.vo.CompanyPersonVO")];


[Bindable]
public class CompanyPersonVO
{
public var company_person_id:String 
= "";
public var person_id:String 
= "";
public var company_id:String
= "";
public var person_type:String   
= "";
public var person_title:String  
= "";
public var first_name:String
= "";
public var mid_name:String  
= "";
public var last_name:String 
= "";
public var pref_display:String  
= "";
public var lang_pref:String 
= "";
public var is_active:Boolean
= false;





public function CompanyPersonVO()
{
}

}
}



Re: [flexcoders] Label is npt displayed for LinButton as Itemrenderer

2009-05-25 Thread Rajan Jain
Hi Jeff

You are right. I worked for me after your pointer.

Thanks
ilikeflex





From: Jeffry Houser 
To: flexcoders@yahoogroups.com
Sent: Monday, May 25, 2009 8:30:22 AM
Subject: Re: [flexcoders] Label is npt displayed for LinButton as Itemrenderer






It doesn't work like that. You're going to need to create your own 
class that extends the link button, and responds to the dataChange event 
to set the LinkButton's text as the label from your data Object. 

Code like this, basically, exists in the default itemRenderer. 

ilikeflex wrote:
> Hi
>
> I am using mx.controls. LinkButton as itemrenderer in datagrid. But the label 
> is not displayed of the LinkButton. I am using the below sample code. I know 
> it is very simple. I am missing something...
> Please help.
>
> Thanks
> ilikeflex
>
>
> 
> http://www.adobe. com/2006/ mxml" layout="vertical" 
> verticalAlign= "top" creationComplete= "init()"
> horizontalAlign= "center" backgroundGradientC olors="[0x00 ,0x323232] " 
> paddingTop=" 0" viewSourceURL= "srcview/ index.html" >
>
> 
> 
> 
> 
> 
>  "mx.controls. LinkButton" />
>
> 
> 
> 
>
>
>
>  - - --
>
> --
> Flexcoders Mailing List
> FAQ: http://groups. yahoo.com/ group/flexcoders /files/flexcoder sFAQ.txt
> Alternative FAQ location: https://share. acrobat.com/ adc/document. do?docid= 
> 942dbdc8- e469-446f- b4cf-1e62079f684 7
> Search Archives: http://www.mail- archive.com/ flexcoders% 40yahoogroups. 
> comYahoo! Groups Links
>
>
>
>
> 

-- 
Jeffry Houser, Technical Entrepreneur
Adobe Community Expert: http://tinyurl. com/684b5h
http://www.twitter. com/reboog711 | Phone: 203-379-0773
--
Easy to use Interface Components for Flex Developers
http://www.flextras.com?c=104
--
http://www.theflexshow.com
http://www.jeffryhouser.com
--
Part of the DotComIt Brain Trust





  

[flexcoders] form validation component

2009-05-25 Thread markflex2007
Hi

I have many Flex forms need to validate.

Do you think if it is possible I can build a common validation component to 
handle validate for all of the forms.

Thanks


Mark



[flexcoders] Re: NEED more than 15 menu item in Context Menu ????

2009-05-25 Thread Dharmendra Chauhan
Hi Samuel,

Thanks for the reply.

Its running inside  Flash Player ActiveX control.so no java script heck can be 
applied..I completely stuck at this point..Need some ideas around it.

Any other UI components can be used to get similar functionality. 

Regards,
Dharmendra




--- In flexcoders@yahoogroups.com, Sam Lai  wrote:
>
> Is the Flex app loaded in the IE ActiveX control, or the Flash Player
> ActiveX control?
> 
> If it is IE, any of the tricks to hide the context menu in the normal
> IE browser should work.
> 
> Never tried doing this myself though.
> 
> On 5/23/09, Dharmendra Chauhan  wrote:
> > Thanks Lot for the Reply.
> > My FLex Application is not running inside browser , It is running inside DOt
> > Net container as a Active X control. the idea you suggested required default
> > context menu to be hidden ..is it possible to hide it ? If yes then I Can
> > open some custom window on right click and design. I am not sure how
> > concrete this idea is..
> >
> >
> > --- In flexcoders@yahoogroups.com, "Yves Riel"  wrote:
> >>
> >> What about intercepting the right-click at the browser level and
> >> displaying your own contextual menu? However, you might have some
> >> browser incompatibility to look at.
> >>
> >> http://blog.another-d-mention.ro/programming/right-click-and-custom-cont
> >> ext-menu-in-flash-flex/
> >>
> >> 
> >>
> >> From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
> >> Behalf Of Dharmendra Chauhan
> >> Sent: Friday, May 22, 2009 3:03 PM
> >> To: flexcoders@yahoogroups.com
> >> Subject: [flexcoders] NEED more than 15 menu item in Context Menu 
> >>
> >>
> >>
> >>
> >>
> >> Hi,
> >> I really need to have more than 15 menu item displayed on Context Menu.
> >> I desperately need some workaround or ideas to achieve this
> >>
> >> My client has invested thousands of dollar in Flex Project, he
> >> definitely need more than 15 menu item.If this project failed , client
> >> will NEVER think to invest in flex.
> >>
> >>
> >> Had I been aware of this limitation before I would have thought some
> >> solution by now.This comes as a surprise to me at the last moment ,just
> >> fews days before Prod Date.
> >>
> >> Pls gents help me get rid of this ...PLEASE provide some ideas.
> >>
> >> Thanks in advance.
> >>
> >> Thanks,
> >> Dharmendra
> >>
> >
> >
> >
> >
> > 
> >
> > --
> > Flexcoders Mailing List
> > FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> > Alternative FAQ location:
> > https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847
> > Search Archives:
> > http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links
> >
> >
> >
> >
> 
> -- 
> Sent from my mobile device
>




[flexcoders] capture right click through Javascript, withouth wmode

2009-05-25 Thread Hiraash
Flash player has a bug in using anything other than wmode="window" in 
Firefox/Chrome when using any other language than English. This bug is reported 
and not fixed yet 
http://bugs.adobe.com/jira/browse/FP-501 

The issue can be seen better here - 
http://www.5etdemi.com/blog/archives/2005/06/firefox-wmodetransparent-is-completely-screwy-and-breaks-textfields/
 

Now to my problem - im trying to use Uza's right click solution ( 
http://www.uza.lt/blog/2007/08/solved-right-click-in-as3 ) in my application, 
but am stuck with problem of wmode. The event capturing doesnt seem to work 
with wmode="window" and i need multiple languages to work on my app as well. 

Is there any solution to this that anyone has identified? Or is there any way 
that the right click can be captured without setting wmode. 

Any help will be greatly appreciated. Thanks!! 



Re: [flexcoders] LCDS async error

2009-05-25 Thread Jeffrey Vroom
I see two possible things that could cause this error:
1) you have a fault handler whose function definition takes a
MessageFaultEvent parameter.  You need to change that to the common base
class which is (I think) a FaultEvent so it can accept both a
MessageFaultEvent and a DataServiceFaultEvent.
2) there is a bug in LCDS where it is doing 1).

If you check your code and you don't have any event handlers which take a
MessageFaultEvent, it is probably 2).   I don't have access to the source
anymore or I'd check into 2) for you...

Jeff

On Mon, May 25, 2009 at 5:17 AM, Johannes Nel wrote:

>
>
> Hi All
>
> I have a LCDS app which must stay open for ages, deal with dodgy internet
> connections and all such fun things.
> Thus far we have managed to get the NetConnection to re-establish itself
> nicely when the line drops, but here is a wonderful error (which does not
> actually break the app) that i get after having the app open for a few
> hours,  only on OS X.
>
> So, the fact that it does not touch our code anywhere means that I have no
> way of trapping this. I would really like some advice on how i can suppress
> or even catch it.
>
>
>
> TypeError: Error #1034: Type Coercion failed: cannot convert
> mx.data.events::dataservicefaultev...@2cb864c1 to
> mx.messaging.events.MessageFaultEvent.
> at mx.data::ConcreteDataService/sendRefreshFault()
> at mx.rpc::AsyncResponder/fault()
> at mx.rpc::AsyncToken/
> http://www.adobe.com/2006/flex/mx/internal::applyFault()
> at mx.rpc.events::FaultEvent/
> http://www.adobe.com/2006/flex/mx/internal::callTokenResponders()
> at mx.data::ConcreteDataService/
> http://www.adobe.com/2006/flex/mx/internal::dispatchFaultEvent()
> at DataListRequestResponder/fault()
> at mx.rpc::AsyncRequest/fault()
> at NetConnectionMessageResponder/channelDisconnectHandler()
> at flash.events::EventDispatcher/dispatchEventFunction()
> at flash.events::EventDispatcher/dispatchEvent()
> at mx.messaging::Channel/disconnectSuccess()
> at mx.messaging.channels::NetConnectionChannel/internalDisconnect()
> at mx.messaging.channels::RTMPChannel/internalDisconnect()
> at mx.messaging.channels::RTMPChannel/statusHandler()
>
> regards
> Johan
> --
> j:pn
> \\no comment
>  
>


Re: [flexcoders] Profanity fliter

2009-05-25 Thread Kevin F. Benz
On the Flex side I have implemented objects that catch a change event on an
input control but it¹s impossible to stay ahead of users means of subverting
profanity filters in a client implemented solution. These days we do it one
of three ways.. If possible, we implement an editorial review process if the
amount of content is manageable. Second, when we have to do inline
filtering, we keep a dictionary and then pattern match on the server side,
if that proves ineffective (based on how stringent it needs to be) we do the
³Do you find this content objectionable² and pass those to an editorial
process.

K

On 5/25/09 9:54 AM, "kanu kukreja"  wrote:

>  
>   
> 
>   
> 
> Hello,
> Is there's anyexample or API for applying profanity filter in an application.
> 
> Thanks,
> Kanu Kukreja
>   
> 
> 
>> 
> 
> Kevin F. Benz
> kb...@kbenz.com425-785-7100
> http://www.kbenz.com
> 
> "We can't solve problems by using the same kind of thinking we used when we
> created them" - Albert Einstein
> 



[flexcoders] Profanity fliter

2009-05-25 Thread kanu kukreja
Hello,
Is there's anyexample or API for applying profanity filter in an application.

Thanks,
Kanu Kukreja


[flexcoders] Re: LCDS async error

2009-05-25 Thread Johannes Nel
this is a show stopper here for us. I realise why the code is not availible,
but an unhandleble error coming from the lcds swc's is a pain. anyone...?

On Mon, May 25, 2009 at 3:36 PM, Johannes Nel wrote:

> My bad, we get it on windows as well.
>
>
> On Mon, May 25, 2009 at 2:17 PM, Johannes Nel wrote:
>
>> Hi All
>>
>> I have a LCDS app which must stay open for ages, deal with dodgy internet
>> connections and all such fun things.
>> Thus far we have managed to get the NetConnection to re-establish itself
>> nicely when the line drops, but here is a wonderful error (which does not
>> actually break the app) that i get after having the app open for a few
>> hours,  only on OS X.
>>
>> So, the fact that it does not touch our code anywhere means that I have no
>> way of trapping this. I would really like some advice on how i can suppress
>> or even catch it.
>>
>>
>>
>> TypeError: Error #1034: Type Coercion failed: cannot convert
>> mx.data.events::dataservicefaultev...@2cb864c1 to
>> mx.messaging.events.MessageFaultEvent.
>> at mx.data::ConcreteDataService/sendRefreshFault()
>> at mx.rpc::AsyncResponder/fault()
>> at mx.rpc::AsyncToken/
>> http://www.adobe.com/2006/flex/mx/internal::applyFault()
>> at mx.rpc.events::FaultEvent/
>> http://www.adobe.com/2006/flex/mx/internal::callTokenResponders()
>> at mx.data::ConcreteDataService/
>> http://www.adobe.com/2006/flex/mx/internal::dispatchFaultEvent()
>> at DataListRequestResponder/fault()
>> at mx.rpc::AsyncRequest/fault()
>> at NetConnectionMessageResponder/channelDisconnectHandler()
>> at flash.events::EventDispatcher/dispatchEventFunction()
>> at flash.events::EventDispatcher/dispatchEvent()
>> at mx.messaging::Channel/disconnectSuccess()
>> at mx.messaging.channels::NetConnectionChannel/internalDisconnect()
>> at mx.messaging.channels::RTMPChannel/internalDisconnect()
>> at mx.messaging.channels::RTMPChannel/statusHandler()
>>
>> regards
>> Johan
>> --
>> j:pn
>> \\no comment
>>
>
>
>
> --
> j:pn
> \\no comment
>



-- 
j:pn
\\no comment


RE: [flexcoders] Flex DataGrid Filter via Popup Window

2009-05-25 Thread Tracy Spratt
Of course, there are many ways to do this, but one simple approach would be
to pass a reference to the dataGrid into the pop-up.  That would give you
access to the DG.columns array to populate your columns ComboBox.

 

Tracy Spratt,

Lariat Services, development services available

  _  

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of Angelo Anolin
Sent: Monday, May 25, 2009 10:07 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Flex DataGrid Filter via Popup Window

 






Some updates on this.

Instead of the codes inside a function, what I did was create a custom MXML
Component (selecting File | New | MXML Component) and selecting TileWindow
on the Based As dropdown list.

In the button, I created a function that calls the MXML component via the
following codes:

private function launchFilterDialog() :void
{
  var winFilter:FilterDialog = PopUpManager.createPopUp(this, FilterDialog,
true) as FilterDialog;
  PopUpManager.centerPopUp(winFilter);
}

Next step is to be able to pass the column names as defined in the datagrid
and bind those column names into the combo box which I placed in the MXML
component.

So I am left with the following things to do:

1. Get the column names of the datagrid which is in the calling flex
application.
2. Pass those column names into the MXML component and bind them into the
combo box.
3. When a selection is made on the filter dialog window and valid filter is
specified, clicking on the OK button would filter the datagrid of the
calling flex application.
4. A clear button would clear the filter(s) specified on the datagrid.

Inputs would be highly appreciated in doing Item no. 1

Thanks.

 

  _  

From: Angelo Anolin 
To: flexcoders@yahoogroups.com
Sent: Monday, 25 May, 2009 15:48:25
Subject: [flexcoders] Flex DataGrid Filter via Popup Window


Hello FlexCoders,

I am trying to implement a datagrid filtering mechanism to datagrids in my
application.

In this process, I want to show a popup window where it would act like a
response window.  The popup window will contain three controls, namely, two
comboboxes, and a textinput control.  One of the combo box would contain the
columns currently displayed in the datagrid.  The other combo box would
contain common comparison operators (i.e. =, !=, >, <, like, etc.). Of
course, there would also be two buttons - OK and Cancel to perform the
filter operations.

I found a popup panel example here..
http://blog. flexexamples. com/2007/ 08/06/creating- custom-pop-
  up-windows- with-the- popupmanager- class/

But in this example, he is defining the content of the popup panel.

Since we know that the controls in the popup panel is fixed, would it be
possible to just create another control which contains the controls we have
defined?  Then, the combobox panel would be populated with the columns in
the datagrid where it was called. When the column selection from the combo
box is made, the operator also selected and the text input is filled up with
the value to filter, clicking on OK button would filter the datagrid.

Another reason that I wanted that the filter mechanism reusable because I
have a lot of mxml with datagrid that requires the same filter
functionality. It would not be too good if I would place all the codes in
each mxml, right?

I am not sure if this approach would be good.  If in case you have other
approach on how to filter the datagrid, kindly let me know.

Thanks.

 





Re: [flexcoders] Flex DataGrid Filter via Popup Window

2009-05-25 Thread Angelo Anolin
Some updates on this.

Instead of the codes inside a function, what I did was create a custom MXML 
Component (selecting File | New | MXML Component) and selecting TileWindow on 
the Based As dropdown list.

In the button, I created a function that calls the MXML component via the 
following codes:

private function launchFilterDialog() :void
{
  var winFilter:FilterDialog = PopUpManager.createPopUp(this, FilterDialog, 
true) as FilterDialog;
  PopUpManager.centerPopUp(winFilter);
}

Next step is to be able to pass the column names as defined in the datagrid and 
bind those column names into the combo box which I placed in the MXML component.

So I am left with the following things to do:

1. Get the column names of the datagrid which is in the calling flex 
application.
2. Pass those column names into the MXML component and bind them into the combo 
box.
3. When a selection is made on the filter dialog window and valid filter is 
specified, clicking on the OK button would filter the datagrid of the calling 
flex application.
4. A clear button would clear the filter(s) specified on the datagrid.

Inputs would be highly appreciated in doing Item no. 1

Thanks.




From: Angelo Anolin 
To: flexcoders@yahoogroups.com
Sent: Monday, 25 May, 2009 15:48:25
Subject: [flexcoders] Flex DataGrid Filter via Popup Window






Hello FlexCoders,

I am trying to implement a datagrid filtering mechanism to datagrids in my 
application.

In this process, I want to show a popup window where it would act like a 
response window.  The popup window will contain three controls, namely, two 
comboboxes, and a textinput control.  One of the combo box would contain the 
columns currently displayed in the datagrid.  The other combo box would contain 
common comparison operators (i.e. =, !=, >, <, like, etc.). Of course, there 
would also be two buttons - OK and Cancel to perform the filter operations.

I found a popup panel example here..
http://blog. flexexamples. com/2007/ 08/06/creating- custom-pop- up-windows- 
with-the- popupmanager- class/

But in this example, he is defining the content of the popup panel.

Since we know that the controls in the popup panel is fixed, would it be 
possible to just create another control which contains the controls we have 
defined?  Then, the combobox panel would be populated with the columns in the 
datagrid where it was called. When the column selection from the combo box is 
made, the operator also selected and the text input is filled up with the value 
to filter, clicking on OK button would filter the datagrid.

Another reason that I wanted that the filter mechanism reusable because I have 
a lot of mxml with datagrid that requires the same filter functionality. It 
would not be too good if I would place all the codes in each mxml, right?

I am not sure if this approach would be good.  If in case you have other 
approach on how to filter the datagrid, kindly let me know.

Thanks.


   


  

RE: [flexcoders] Working with files

2009-05-25 Thread Tracy Spratt
That looks correct, and result  is the correct event and you should be able
to rely on "data" being complete.

 

trace(data); to check the content.

 

Tracy Spratt,

Lariat Services, development services available

  _  

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of Cordova Aaron
Sent: Saturday, May 23, 2009 1:14 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Working with files

 







I am trying to download a response from my server and then write that
response out to a local file. But the local file is never complete. The
amount of data I'm grabbing from the server can vary between a few K up to a
couple megs. I am using a HTTPService call to request my data and then
writing the file in my result function. I think that the data is not 100%
transfered when the HTTPService is emitting the result event. The local file
usualy varies from 26K lines of text to 56K lines and it is never 100%. In
my result handler the code looks similar to this:

private function resultFunction(e:ResultEvent):void
{
var data:String = e.result.toString();
var localFile:File =
File.applicationStorageDirectory.resolvePath("response.xml");
var fileStream:FileStream = new FileStream;

fileStream.addEventListener(Event.COMPLETE, localFileWritten);
fileStream.openAsync(localFile, FileMode.WRITE);
fileStream.writeUTFBytes(data);

fileStream.close();
}

Should I be listening for a different event to know when e.result is done
populating?





RE: [flexcoders] Newbie Question - databinding an arrayCollection to a List Control

2009-05-25 Thread Tracy Spratt
When you set a property of a dataProvider item directly, like:

absentee.selectedItem.status = "absent";

the events to update the UI are not dispatched.

 

You can either use the collection API, like setItemAt(), or call
itemUpdated().

absentee.selectedItem.status = "absent";

absentee..dataProvider.updateItem(absentee.selectedItem);

 

 

 

Tracy Spratt,

Lariat Services, development services available

  _  

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of hoytlee2000
Sent: Sunday, May 24, 2009 4:28 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Newbie Question - databinding an arrayCollection to a
List Control

 






Hello,

I've been reading a lot of information on databinding and I'm still a little
confused on how to execute it and when is it necessary.

I have a simple list control of names that I create by adding to an array
collection that I use as the List's dataprovider. when I add a name to the
array the list updates automatically as I would suspect

I also have associated with the names is a status attribute (absent or
present) that I use to determine which icon to display next to the name
using IconFunction property of the List control. I have a contextual menu
bound to the list control that allows the user to right click on a name to
change the status and thus the icon.

This is where I have the problem and can't figure out what to do. The
contextual menu works in that the status will change in the arraycollection
(i check and see that it does) however I can't get the iconFunction to
reevaluate the new value to display the proper icon.

I've read in many postings or similar examples on line that I have to create
an event listener and an event for the collection change event. This is
where I am a little fuzzy in the execution - assuming this is teh correct
solution. I've also peripherally read about setter and getter functions but
I don't even know where to begin with this aspect.

I would appreciate any help with this. here is what I have in terms of code:

for my List Control:



for my arrayCollection:

[Bindable]
public var absentItems:ArrayCollection = new ArrayCollection();

I add to the arrayCollection:

private function addAbsentee():void {
var tmp:Object = new Object();
tmp = ({name:ac.selectedItem.name, status:"absent"});
absentItems.addItem(tmp);
}

my iconFunction is just a switch statement that changes icons based on the
text value of status (either absent or present)

private function myIconFunction(item:Object):Class {
var value:String = item.status.toString();
switch(value) {
case "absent":
return Aicon;
break;
case "vacation":
return Vicon;
break;
case "late":
return Licon;
break; 
}
return null;
}

the contextual menu functions just changes the status for example:

private function makeAbsent(evt:ContextMenuEvent):void {
absentee.selectedItem.status = "absent";
}

1. I don't understand why the list updates when I update the arraycollection
with new items but not when I change a specific property of an array.

2. If I add and event do I add it to the arraycollection and the listener to
the List control, or is it vice-versa. Also what is the function/method that
I add to make the list control update the draw on the icon.

3. Is there a better way to do this, ie., use an xml format instead of a an
arraycollection? Is there an article with examples that is really clear
about explaining all this. I am confused as to some things I've read that
says xmlcollections and arraycollections are not good choices for
databinding.

Thanks!

be well,
hoyt





[flexcoders] Re: example of using ffmpeg with coldfusion in flex application

2009-05-25 Thread stinasius
any help guys?



[flexcoders] Re: LCDS async error

2009-05-25 Thread Johannes Nel
My bad, we get it on windows as well.

On Mon, May 25, 2009 at 2:17 PM, Johannes Nel wrote:

> Hi All
>
> I have a LCDS app which must stay open for ages, deal with dodgy internet
> connections and all such fun things.
> Thus far we have managed to get the NetConnection to re-establish itself
> nicely when the line drops, but here is a wonderful error (which does not
> actually break the app) that i get after having the app open for a few
> hours,  only on OS X.
>
> So, the fact that it does not touch our code anywhere means that I have no
> way of trapping this. I would really like some advice on how i can suppress
> or even catch it.
>
>
>
> TypeError: Error #1034: Type Coercion failed: cannot convert
> mx.data.events::dataservicefaultev...@2cb864c1 to
> mx.messaging.events.MessageFaultEvent.
> at mx.data::ConcreteDataService/sendRefreshFault()
> at mx.rpc::AsyncResponder/fault()
> at mx.rpc::AsyncToken/
> http://www.adobe.com/2006/flex/mx/internal::applyFault()
> at mx.rpc.events::FaultEvent/
> http://www.adobe.com/2006/flex/mx/internal::callTokenResponders()
> at mx.data::ConcreteDataService/
> http://www.adobe.com/2006/flex/mx/internal::dispatchFaultEvent()
> at DataListRequestResponder/fault()
> at mx.rpc::AsyncRequest/fault()
> at NetConnectionMessageResponder/channelDisconnectHandler()
> at flash.events::EventDispatcher/dispatchEventFunction()
> at flash.events::EventDispatcher/dispatchEvent()
> at mx.messaging::Channel/disconnectSuccess()
> at mx.messaging.channels::NetConnectionChannel/internalDisconnect()
> at mx.messaging.channels::RTMPChannel/internalDisconnect()
> at mx.messaging.channels::RTMPChannel/statusHandler()
>
> regards
> Johan
> --
> j:pn
> \\no comment
>



-- 
j:pn
\\no comment


Re: [flexcoders] Label is npt displayed for LinButton as Itemrenderer

2009-05-25 Thread Jeffry Houser

 It doesn't work like that.  You're going to need to create your own 
class that extends the link button, and responds to the dataChange event 
to set the LinkButton's text as the label from your data Object. 

 Code like this, basically, exists in the default itemRenderer. 

ilikeflex wrote:
> Hi
>
> I am using mx.controls.LinkButton as itemrenderer in datagrid. But the label 
> is not displayed of the LinkButton. I am using the below sample code. I know 
> it is very simple. I am missing something...
> Please help.
>
> Thanks
> ilikeflex
>
>
> 
> http://www.adobe.com/2006/mxml"; layout="vertical" 
> verticalAlign="top" creationComplete="init()"
> horizontalAlign="center" backgroundGradientColors="[0x00,0x323232]" 
> paddingTop="0" viewSourceURL="srcview/index.html">
>
> 
>   
> 
> 
>   
>itemRenderer="mx.controls.LinkButton"/>
>
>   
> 
> 
>
>
>
> 
>
> --
> Flexcoders Mailing List
> FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> Alternative FAQ location: 
> https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847
> Search Archives: 
> http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links
>
>
>
>
>   

-- 
Jeffry Houser, Technical Entrepreneur
Adobe Community Expert: http://tinyurl.com/684b5h
http://www.twitter.com/reboog711  | Phone: 203-379-0773
--
Easy to use Interface Components for Flex Developers
http://www.flextras.com?c=104
--
http://www.theflexshow.com
http://www.jeffryhouser.com
--
Part of the DotComIt Brain Trust




[flexcoders] LCDS async error

2009-05-25 Thread Johannes Nel
Hi All

I have a LCDS app which must stay open for ages, deal with dodgy internet
connections and all such fun things.
Thus far we have managed to get the NetConnection to re-establish itself
nicely when the line drops, but here is a wonderful error (which does not
actually break the app) that i get after having the app open for a few
hours,  only on OS X.

So, the fact that it does not touch our code anywhere means that I have no
way of trapping this. I would really like some advice on how i can suppress
or even catch it.



TypeError: Error #1034: Type Coercion failed: cannot convert
mx.data.events::dataservicefaultev...@2cb864c1 to
mx.messaging.events.MessageFaultEvent.
at mx.data::ConcreteDataService/sendRefreshFault()
at mx.rpc::AsyncResponder/fault()
at mx.rpc::AsyncToken/
http://www.adobe.com/2006/flex/mx/internal::applyFault()
at mx.rpc.events::FaultEvent/
http://www.adobe.com/2006/flex/mx/internal::callTokenResponders()
at mx.data::ConcreteDataService/
http://www.adobe.com/2006/flex/mx/internal::dispatchFaultEvent()
at DataListRequestResponder/fault()
at mx.rpc::AsyncRequest/fault()
at NetConnectionMessageResponder/channelDisconnectHandler()
at flash.events::EventDispatcher/dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at mx.messaging::Channel/disconnectSuccess()
at mx.messaging.channels::NetConnectionChannel/internalDisconnect()
at mx.messaging.channels::RTMPChannel/internalDisconnect()
at mx.messaging.channels::RTMPChannel/statusHandler()

regards
Johan
-- 
j:pn
\\no comment


RE: [flexcoders] list itemrenderer

2009-05-25 Thread Yves Riel
You'll have to be a little bit more specific. What are you trying to achieve? 
You can listen to any drag event in any controls and do custom actions.



From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of thomas parquier
Sent: Sunday, May 24, 2009 4:57 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] list itemrenderer





Hi,

Is there a possibility to do some code differently in a drag proxy instance of 
itemRenderer ?

thomas
---
http://www.web-attitude.fr/  
msn : thomas.parqu...@web-attitude.fr  
softphone : sip:webattit...@ekiga.net  
téléphone portable : +33601 822 056





RE: [flexcoders] BindingUtils question.

2009-05-25 Thread Yves Riel
You can actually bind to a variable by also using the
BindingUtils.bindProperty() method. You just need to you the "this"
keyword. So:
 
BindingUtils.bindProperty(dogNameText, "text", this, "myString");
 
Don't forget to enclose your variable in double quotes since that last
parameter must be a string. The only catch is that the myString variable
needs to be a public property otherwise you'll get runtime errors. If
you really want to keep myString protected or private, then you have to
use the BindingUtils.bindSetter() method as it was earlier suggested by
Rajan.




From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of Rajan Jain
Sent: Friday, May 22, 2009 5:34 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] BindingUtils question.






Try using
 
BindingUtils.bindSetter and create function.



From: markflex2007 
To: flexcoders@yahoogroups.com
Sent: Friday, May 22, 2009 5:07:21 PM
Subject: [flexcoders] BindingUtils question.



I read a demo
BindingUtils. bindProperty( dogNameText, "text", myDog, "name")

dogNameText is textInput and myDog is a object

how to I bind dogNameText' s Texr property to one variable like
"myString"

BindingUtils. bindProperty( dogNameText, "text", myString) give me
error.

Please give me a idea how to do this.Thanks

Mark







Re: [flexcoders] Resetting IViewCursor

2009-05-25 Thread Laurence MacNeill
At 06:29 AM 5/25/2009, you wrote:


>I'm using an IViewCursor to find stuff in an ArrayCollection.

Never mind -- I figured it out.

I have to sort on the field I'm searching for first.  I was under the 
impression that FindAny() would work, no matter how the 
ArrayCollection was sorted -- as long as it was sorted on any field 
first.  But apparently you must sort the ArrayCollection on the field 
you're searching for, every time you use FindAny().

So there's no need to respond to my query.  Thanks,

Laurence MacNeill
Mableton, Georgia, USA



RE: [flexcoders] as3 interface syntax ?

2009-05-25 Thread Yves Riel
An interface is basically a contract between two classes. In the example
below, the class containing the mentioned line doesn't care which class
is passed to it from the _textFlow.interactionManager property, it just
makes sure that it implements the interface (i.e. the contract). So,
_textFlow.interactionManager probably returns an untyped Object and the
command IEditManager() casts it so the compiler doesn't throw an error
when the method applyParagraphFormat() is called.
 
In other word, if the IEditManager() command was to be removed, the
compiler would have choked out since _textFlow.interactionManager
returns an Object and that applyParagraphFormat() is not a method
belonging to a standard Object.
 
Interface allows for polymorphism and is a very powerful tool in any OOP
programmer tool belt. You definitely need to read up on it and
understand it. You can find good tutorials on-line or just read the
Programming AS3 section in the help.



From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of foodyi
Sent: Monday, May 25, 2009 2:12 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] as3 interface syntax ?





hi,all
i read adobe textlayout framwork's sample code , i don't understand the
code below:

IEditManager(_textFlow.interactionManager).applyParagraphFormat(pf);

thanks for your reply.

foodyi





Re: [flexcoders] Drawing shapes dynamically

2009-05-25 Thread Shubhra Tiwari
I am able to put object handle along the shape but rezing object handle is not 
resizing the shape...

Please help..

--- On Mon, 5/25/09, shubhra  wrote:

From: shubhra 
Subject: [flexcoders] Drawing shapes dynamically
To: flexcoders@yahoogroups.com
Date: Monday, May 25, 2009, 1:19 PM
















  
  Hi,



I want to draw editable vector shapes as done in www.picnik.com



As if on clicking circle it appears with object handlers around and this shape 
is resizable.



please help...



Thanks,

subu




 

  




 

















  

[flexcoders] Resetting IViewCursor

2009-05-25 Thread Laurence MacNeill
I'm using an IViewCursor to find stuff in an ArrayCollection.  The 
first time I use the FindAny() method, it works fine.  The second 
time I use it, it doesn't seem to find anything.  Do I have to reset 
the cursor before I can use it again?  Move it back to the beginning 
of the ArrayCollection so it will be able to find everything?  I 
would think that FindAny() would find any instance of the search 
object, no matter where it is in the collection, but maybe I'm wrong.

So, do I need to reset the cursor to use FindAny twice?  And, if so, 
how do I do that?

Thanks,

Laurence MacNeill
Mableton, Georgia, USA



RE: [flexcoders] Zoom on an Image

2009-05-25 Thread Kenneth Sutherland
I've done a basic example of zooming. Check out
http://kennethsutherland.com/2009/05/01/zooming-example/

It's not a component but you can look at the source code and then make
your own component to fit your own needs.

HTH Kenneth.

 

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of christophe_jacquelin
Sent: 25 May 2009 08:37
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Zoom on an Image

 






Hello, 

I want to make a zoom function on an image. I am searching a component
of an image with scrolling. What can I use ? 

Thank you,
Christophe,



Disclaimer 
---
This electronic message contains information which may be privileged and 
confidential. The information is intended to be for the use of the 
individual(s) or entity named above. If you are not the intended recipient, be 
aware that any disclosure, copying, distribution or use of the contents of this 
information is prohibited. If you have received this electronic message in 
error, please notify us by telephone on 0131 476 6000 and delete the material 
from your computer. 
Registered in Scotland number: SC 172507. 
Registered office address: Quay House 142 Commercial Street Edinburgh EH6 6LB. 

This email message has been scanned for viruses by Mimecast.
---

[flexcoders] Drawing shapes dynamically

2009-05-25 Thread shubhra
Hi,

I want to draw editable vector shapes as done in www.picnik.com

As if on clicking circle it appears with object handlers around and this shape 
is resizable.

please help...

Thanks,
subu




[flexcoders] Flex DataGrid Filter via Popup Window

2009-05-25 Thread Angelo Anolin

Hello FlexCoders,

I am trying to implement a datagrid filtering mechanism to datagrids in my 
application.

In this process, I want to show a popup window where it would act like a 
response window.  The popup window will contain three controls, namely, two 
comboboxes, and a textinput control.  One of the combo box would contain the 
columns currently displayed in the datagrid.  The other combo box would contain 
common comparison operators (i.e. =, !=, >, <, like, etc.). Of course, there 
would also be two buttons - OK and Cancel to perform the filter operations.

I found a popup panel example here..
http://blog.flexexamples.com/2007/08/06/creating-custom-pop-up-windows-with-the-popupmanager-class/

But in this example, he is defining the content of the popup panel.

Since we know that the controls in the popup panel is fixed, would it be 
possible to just create another control which contains the controls we have 
defined?  Then, the combobox panel would be populated with the columns in the 
datagrid where it was called. When the column selection from the combo box is 
made, the operator also selected and the text input is filled up with the value 
to filter, clicking on OK button would filter the datagrid.

Another reason that I wanted that the filter mechanism reusable because I have 
a lot of mxml with datagrid that requires the same filter functionality. It 
would not be too good if I would place all the codes in each mxml, right?

I am not sure if this approach would be good.  If in case you have other 
approach on how to filter the datagrid, kindly let me know.

Thanks.


  


[flexcoders] Detect which font is needed to embed

2009-05-25 Thread Jonathan Lee

Hello all:
I get text XML from server to display in a textfield.
The issue is I like to use embeded font to make sure the font displayed same 
across the system.
But I do not want to load all kinds of font in the begining.
So, is there any way in the textfield to detect whether there's a font missing 
when display the text, so, it can trigger my code to load the font from server?

I know I can parse the XML to get the font name, but is there any way that 
textfield can tell me which font missing when I apply the XML content to it?


Thanks


  


[flexcoders] Label is npt displayed for LinButton as Itemrenderer

2009-05-25 Thread ilikeflex
Hi

I am using mx.controls.LinkButton as itemrenderer in datagrid. But the label is 
not displayed of the LinkButton. I am using the below sample code. I know it is 
very simple. I am missing something...
Please help.

Thanks
ilikeflex



http://www.adobe.com/2006/mxml"; layout="vertical" 
verticalAlign="top" creationComplete="init()"
horizontalAlign="center" backgroundGradientColors="[0x00,0x323232]" 
paddingTop="0" viewSourceURL="srcview/index.html">














[flexcoders] Zoom on an Image

2009-05-25 Thread christophe_jacquelin
Hello, 

I want to make a zoom function on an image. I am searching a component of an 
image with scrolling. What can I use ? 

Thank you,
Christophe,



Re: [flexcoders] Default font in Flex Builder

2009-05-25 Thread foodyi
christophe_jacquelin 写道:
> Hello,
>
> What is the default font used in the interface by Flex Builder 3 ?
>
> Thank you,
> Christophe,
>
>
>
>   
may be system device font, same swf file has different behave in mac os 
and windows.