Re: [flexcoders] I need to set a label...???

2009-04-15 Thread Paresh M More
Davidu change the loop

var labelNames:Array =
[{label:"Button0"},{label:"Button1"},{label:"Button2"}];

var radio00:RadioButton = new RadioButton();
radio00.label =  get_labelstring(0);

public function get_labelstring(i:int):String
{
if ( i < labelNames.length)
return  labelNames[i].valueOf().label;
}

-- 
Regards,
Paresh M. More
Senior Software Engineer

Nashik/Pune, Maharashtra, India.
Email - pareshm...@gmail.com

On Wed, Apr 15, 2009 at 5:56 PM, sailorsea21  wrote:

>
>
> Hi everyone, I need to set a label...
>
> The actual label is in a ArrayCollection.
> I can access is like this:
> parentApplication.MyLabelArray.getItemAt(0).label001
> or
> parentApplication.MyLabelArray.getItemAt(0).label002
> or
> parentApplication.MyLabelArray.getItemAt(0).label003
> and so on...
>
> Is it possible to access the labels dynamically like this:
>
> var labelNames:Array = new Array("label001", "label002", "label003");
>
> for each(var getName:String in labelNames)
> {
> var radio00:RadioButton = new RadioButton();
> radio00.label = this[parentApplication.MyLabelArray.getItemAt(0).getName;
> }
>
> I can't get this to work... Is there a better way to approach this?
>
> Thanks everyone!
>
> -David
>
>  
>


Re: [flexcoders] How can I create an event that calls a function?

2009-04-14 Thread Paresh M More
if ( myArrayCollection)
callLater(checkArrayCollection);


This might also help u out, callLater is a inbuilt function.

-- 
Regards,
Paresh M. More
Senior Software Engineer

Nashik/Pune, Maharashtra, India.
Email - pareshm...@gmail.com

On Tue, Apr 14, 2009 at 7:25 PM, Gregor Kiddie  wrote:

>
>
>  The array collection dispatches a CollectionEvent when the Array
> Collection is filled in…
>
> http://livedocs.adobe.com/flex/3/langref/mx/events/CollectionEvent.html
>
> Just listen for that event when you create the ArrayCollection and have the
> function you wish to call as the handler.
>
>
>
> Gk.
>
> *Gregor Kiddie*
> Senior Developer
> *INPS*
>
> Tel:   01382 564343
>
> Registered address: The Bread Factory, 1a Broughton Street, London SW8 3QJ
>
> Registered Number: 1788577
>
> Registered in the UK
>
> Visit our Internet Web site at www.inps.co.uk
>
> The information in this internet email is confidential and is intended
> solely for the addressee. Access, copying or re-use of information in it by
> anyone else is not authorised. Any views or opinions presented are solely
> those of the author and do not necessarily represent those of INPS or any of
> its affiliates. If you are not the intended recipient please contact
> is.helpd...@inps.co.uk
>   --
>
> *From:* flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] *On
> Behalf Of *sailorsea21
> *Sent:* 14 April 2009 14:51
> *To:* flexcoders@yahoogroups.com
> *Subject:* [flexcoders] How can I create an event that calls a function?
>
>
>
>
>
>
>  Hi everyone,
> How can I create an event that calls a function once an ArrayCollection is
> filled?
>
> This is what I'm using at the moment but I would like to avoid setTimeout:
>
> public function checkArrayCollection():void
> {
> if(myArrayCollection)
> {
>
> }
> else
> {
> setTimeout(checkArrayCollection, 200);
> }
> }
>
>  
>


Re: [flexcoders] Example for External Interface to call Javascript in html

2009-04-08 Thread Paresh M More
if (ExternalInterface.available)
   {
IPAddress.text = ExternalInterface.call(wrapperFunction);
 }

And added the function in HTML as

function getIPfromURL()
  {
var url = ""+window.location;
 var urlparts = url.split('//');
var host = urlparts[1].split('/');
 return host[0];
  }

in index.templete.html, hope this would help u out



On Thu, Apr 9, 2009 at 10:35 AM, senthilkumarirtt <
senthilkumari...@yahoo.co.in> wrote:

>
>
> i want to call Javascript in html via external interface in flex.
> give some real example to explore it.
>
>  
>



-- 
Regards,
Paresh M. More
Senior Software Engineer

Mobile: +919881400641
Nashik/Pune, Maharashtra, India.
Email - pareshm...@gmail.com


Re: [flexcoders] Flex Modules and external sources

2009-04-06 Thread Paresh M More
Lorenzo,


Use this it would work



-- 
Regards,
Paresh M. More
Senior Software Engineer

Nashik/Pune, Maharashtra, India.
Email - pareshm...@gmail.com

On Mon, Apr 6, 2009 at 7:07 PM, thelordsince1984 wrote:

>   Hi,
>
> a little question for you..
>
> i've a module that could load some images from an external directory.
>
> The structure i use is:
>
> projectname
> ---some sources classes
> ---imagedir
> firstimage.jpg
> secondimage.jpg
> ---modules
> mymodule
>
> So i create an mx:image tag into the module and i set the source property
> equal to the image file path (for example firstimage.jpg)..
> this solution doesn't work..why?
>
> any solutions?
> thanks in advance
>
> regards
> Lorenzo
>
>  
>


Re: [flexcoders] Re: .properties actionscript parser

2009-04-02 Thread Paresh M More
just let me know exact reuirment of urs i would send u peice of code

On Thu, Apr 2, 2009 at 7:58 PM, guy.tomer  wrote:

>   That would be great! thanks
>
>
> --- In flexcoders@yahoogroups.com , Paresh M
> More  wrote:
> >
> > Guy,
> > I have a piece of code, which reads, XML and can be used as resource
> bundle
> > @ runtime, if u need then i can mail u
> >
> > Two tpyes,
> > - Static
> > - Run time ( note - other than .properties file, a simple xml file )
> >
> > --
> > Regards,
> > Paresh M. More
> > Senior Software Engineer
> >
> > Nashik/Pune, Maharashtra, India.
> > Email - pareshm...@...
> >
> > On Thu, Apr 2, 2009 at 2:39 PM, guy.tomer  wrote:
> >
> > > Hello,
> > >
> > > We're managing the configuration on the server (java) and those
> > > configurations are generated in runtime as .properties format (text or
> xml).
> > >
> > > The flex client loads the configuration in runtime.
> > >
> > > Does anyone know of a utility class in as3 to parse .properties format?
> > >
> > > Alternatively (less preferred) does anyone know of an easy way to
> generate
> > > the swf file from the .properties on the server so it could be loaded
> as a
> > > ResourceBundle?
> > >
> > > Thanks,
> > > Guy
> > >
> > >
> > >
> >
>
>  
>



-- 
Regards,
Paresh M. More
Senior Software Engineer

Nashik/Pune, Maharashtra, India.
Email - pareshm...@gmail.com


Re: [flexcoders] .properties actionscript parser

2009-04-02 Thread Paresh M More
Guy,
I have a piece of code, which reads, XML and can be used as resource bundle
@ runtime, if u need then i can  mail u

Two tpyes,
- Static
- Run time ( note - other than .properties file, a simple xml file )

-- 
Regards,
Paresh M. More
Senior Software Engineer

Nashik/Pune, Maharashtra, India.
Email - pareshm...@gmail.com

On Thu, Apr 2, 2009 at 2:39 PM, guy.tomer  wrote:

>   Hello,
>
> We're managing the configuration on the server (java) and those
> configurations are generated in runtime as .properties format (text or xml).
>
> The flex client loads the configuration in runtime.
>
> Does anyone know of a utility class in as3 to parse .properties format?
>
> Alternatively (less preferred) does anyone know of an easy way to generate
> the swf file from the .properties on the server so it could be loaded as a
> ResourceBundle?
>
> Thanks,
> Guy
>
>  
>


Re: [flexcoders] Issue with Display of textbox setfocus

2009-04-01 Thread Paresh M More
where can we figure it out ?

On Wed, Apr 1, 2009 at 4:31 PM, Peter Hall  wrote:

>   Yes, that looks like the problem.
>
> Peter
>
>
> On Wed, Apr 1, 2009 at 11:42 AM, Paresh M More wrote:
>
>>   Sry i have replaced by ExtFormItem and here is the code for that
>>
>> package FlexComponent{
>>
>> import flash.display.DisplayObject;
>>  import mx.containers.FormItem;
>> import mx.controls.Label;
>>
>> public class ExtFormItem extends FormItem {
>>
>> public var align_left:Boolean = false;
>>
>> override protected function updateDisplayList(w : Number, h :
>> Number) : void {
>> super.updateDisplayList(w, h);
>> if(align_left) {
>> var index_label:int = -1;
>> var current_label:Label = null;
>> if (label.length > 0) {
>> for(var i:Number = 0; i < rawChildren.numChildren;
>> i++) {
>> if(rawChildren.getChildAt(i) is Label) {
>> index_label = i;
>> current_label =
>> Label(rawChildren.getChildAt(i));
>> current_label.x = 0;
>> break;
>> }
>> }
>> }
>> if (required && current_label) {
>> for(var k:Number = rawChildren.numChildren-1; k >= 0;
>> k--) {
>> if(k != index_label && rawChildren.getChildAt(k)
>> is DisplayObject) {
>> var indicator : DisplayObject =
>> rawChildren.getChildAt(k);
>> indicator.x = current_label.width +
>> ((getStyle("indicatorGap")-indicator.width) / 2);
>> break;
>> }
>> }
>> }
>> }
>> }
>> }
>> }
>>
>>
>> On Wed, Apr 1, 2009 at 4:11 PM, Paresh M More wrote:
>>
>>> yeah, U have replaced by ExtFormItem and here is the code for that
>>> package FlexComponent{
>>>
>>> import flash.display.DisplayObject;
>>> import mx.containers.FormItem;
>>> import mx.controls.Label;
>>>
>>> public class ExtFormItem extends FormItem {
>>>
>>> public var align_left:Boolean = false;
>>>
>>> override protected function updateDisplayList(w : Number, h :
>>> Number) : void {
>>> super.updateDisplayList(w, h);
>>> if(align_left) {
>>> var index_label:int = -1;
>>> var current_label:Label = null;
>>> if (label.length > 0) {
>>> for(var i:Number = 0; i < rawChildren.numChildren;
>>> i++) {
>>> if(rawChildren.getChildAt(i) is Label) {
>>> index_label = i;
>>> current_label =
>>> Label(rawChildren.getChildAt(i));
>>> current_label.x = 0;
>>> break;
>>> }
>>> }
>>> }
>>> if (required && current_label) {
>>> for(var k:Number = rawChildren.numChildren-1; k >= 0;
>>> k--) {
>>> if(k != index_label && rawChildren.getChildAt(k)
>>> is DisplayObject) {
>>> var indicator : DisplayObject =
>>> rawChildren.getChildAt(k);
>>> indicator.x = current_label.width +
>>> ((getStyle("indicatorGap")-indicator.width) / 2);
>>> break;
>>> }
>>> }
>>> }
>>> }
>>> }
>>> }
>>> }
>>>
>>> On Wed, Apr 1, 2009 at 4:07 PM, Peter Hall  wrote:
>>>
>>>>   Did you try replacing ExtFormItem with mx:FormItem? I think your
>>>> problem may lie there. If so, you should ask the person who wrote that 
>>>> code.
>>>>
>>>> Peter
>>>>
>>>>
>>>> On Wed, Apr 1, 2009 at 8:04 AM, Paresh M More wrote:
>>>>
>>>>>   Friends,
>>&

Re: [flexcoders] Issue with Display of textbox setfocus

2009-04-01 Thread Paresh M More
Sry i have replaced by ExtFormItem and here is the code for that
package FlexComponent{

import flash.display.DisplayObject;
import mx.containers.FormItem;
import mx.controls.Label;

public class ExtFormItem extends FormItem {

public var align_left:Boolean = false;

override protected function updateDisplayList(w : Number, h :
Number) : void {
super.updateDisplayList(w, h);
if(align_left) {
var index_label:int = -1;
var current_label:Label = null;
if (label.length > 0) {
for(var i:Number = 0; i < rawChildren.numChildren; i++)
{
if(rawChildren.getChildAt(i) is Label) {
index_label = i;
current_label =
Label(rawChildren.getChildAt(i));
current_label.x = 0;
break;
}
}
}
if (required && current_label) {
for(var k:Number = rawChildren.numChildren-1; k >= 0;
k--) {
if(k != index_label && rawChildren.getChildAt(k) is
DisplayObject) {
var indicator : DisplayObject =
rawChildren.getChildAt(k);
indicator.x = current_label.width +
((getStyle("indicatorGap")-indicator.width) / 2);
break;
}
}
}
}
}
}
}


On Wed, Apr 1, 2009 at 4:11 PM, Paresh M More  wrote:

> yeah, U have replaced by ExtFormItem and here is the code for that
> package FlexComponent{
>
> import flash.display.DisplayObject;
> import mx.containers.FormItem;
> import mx.controls.Label;
>
> public class ExtFormItem extends FormItem {
>
> public var align_left:Boolean = false;
>
> override protected function updateDisplayList(w : Number, h :
> Number) : void {
> super.updateDisplayList(w, h);
> if(align_left) {
> var index_label:int = -1;
> var current_label:Label = null;
> if (label.length > 0) {
> for(var i:Number = 0; i < rawChildren.numChildren; i++)
> {
> if(rawChildren.getChildAt(i) is Label) {
> index_label = i;
> current_label =
> Label(rawChildren.getChildAt(i));
> current_label.x = 0;
> break;
> }
> }
> }
> if (required && current_label) {
> for(var k:Number = rawChildren.numChildren-1; k >= 0;
> k--) {
> if(k != index_label && rawChildren.getChildAt(k) is
> DisplayObject) {
> var indicator : DisplayObject =
> rawChildren.getChildAt(k);
> indicator.x = current_label.width +
> ((getStyle("indicatorGap")-indicator.width) / 2);
> break;
> }
> }
> }
> }
> }
> }
> }
>
> On Wed, Apr 1, 2009 at 4:07 PM, Peter Hall  wrote:
>
>>   Did you try replacing ExtFormItem with mx:FormItem? I think your
>> problem may lie there. If so, you should ask the person who wrote that code.
>>
>> Peter
>>
>>
>> On Wed, Apr 1, 2009 at 8:04 AM, Paresh M More wrote:
>>
>>>   Friends,
>>>
>>> I have a Panel, called, "Create Array" and few text box,
>>> when i try to set focus on Name text box it shows me some thing, like,
>>> which is in sreen shot,
>>>
>>> Any solution for it ?
>>>
>>> Code is
>>>
>>> >>  layout="vertical" >
>>>  
>>> >> required="true">
>>>  >> styleName="padTextInput" width="150" />
>>>  
>>> 
>>> 
>>>
>>> And is use this command, ti_arrayName.setFocus(); // which i called on a
>>> button click
>>>
>>>
>>> Code is very simple, but some times, i see, proper display but some times
>>> i see, as per screen shot.
>>>
>>> Y the hell, adobe flash player showing such behavious, I am using, Flash
>>> 10 player.
>>>
>>>
>>> Any solution i would really appricate.
>>>
>>>
>>> --
>>> Regards,
>>> Paresh M. More
>>> Software Engineer
>&

Re: [flexcoders] Issue with Display of textbox setfocus

2009-04-01 Thread Paresh M More
yeah, U have replaced by ExtFormItem and here is the code for that
package FlexComponent{

import flash.display.DisplayObject;
import mx.containers.FormItem;
import mx.controls.Label;

public class ExtFormItem extends FormItem {

public var align_left:Boolean = false;

override protected function updateDisplayList(w : Number, h :
Number) : void {
super.updateDisplayList(w, h);
if(align_left) {
var index_label:int = -1;
var current_label:Label = null;
if (label.length > 0) {
for(var i:Number = 0; i < rawChildren.numChildren; i++)
{
if(rawChildren.getChildAt(i) is Label) {
index_label = i;
current_label =
Label(rawChildren.getChildAt(i));
current_label.x = 0;
break;
}
}
}
if (required && current_label) {
for(var k:Number = rawChildren.numChildren-1; k >= 0;
k--) {
if(k != index_label && rawChildren.getChildAt(k) is
DisplayObject) {
var indicator : DisplayObject =
rawChildren.getChildAt(k);
indicator.x = current_label.width +
((getStyle("indicatorGap")-indicator.width) / 2);
break;
}
}
}
}
}
}
}

On Wed, Apr 1, 2009 at 4:07 PM, Peter Hall  wrote:

>   Did you try replacing ExtFormItem with mx:FormItem? I think your problem
> may lie there. If so, you should ask the person who wrote that code.
>
> Peter
>
>
> On Wed, Apr 1, 2009 at 8:04 AM, Paresh M More wrote:
>
>>   Friends,
>>
>> I have a Panel, called, "Create Array" and few text box,
>> when i try to set focus on Name text box it shows me some thing, like,
>> which is in sreen shot,
>>
>> Any solution for it ?
>>
>> Code is
>>
>> >  layout="vertical" >
>>  
>> > required="true">
>>  > styleName="padTextInput" width="150" />
>>  
>> 
>> 
>>
>> And is use this command, ti_arrayName.setFocus(); // which i called on a
>> button click
>>
>>
>> Code is very simple, but some times, i see, proper display but some times
>> i see, as per screen shot.
>>
>> Y the hell, adobe flash player showing such behavious, I am using, Flash
>> 10 player.
>>
>>
>> Any solution i would really appricate.
>>
>>
>> --
>> Regards,
>> Paresh M. More
>> Software Engineer
>>
>> Nashik/Pune, Maharashtra, India.
>> Email - pareshm...@gmail.com
>>Messages in this topic
>> <http://groups.yahoo.com/group/flexcoders/message/140095;_ylc=X3oDMTM5cDBxY2k3BF9TAzk3MzU5NzE0BGdycElkAzEyMjg2MTY3BGdycHNwSWQDMTcwNTAwNzIwNwRtc2dJZAMxNDAwOTUEc2VjA2Z0cgRzbGsDdnRwYwRzdGltZQMxMjM4NTY5NTE1BHRwY0lkAzE0MDA5NQ-->(
>> 1)  Reply (via web post)
>> <http://groups.yahoo.com/group/flexcoders/post;_ylc=X3oDMTJzZThiZ2o4BF9TAzk3MzU5NzE0BGdycElkAzEyMjg2MTY3BGdycHNwSWQDMTcwNTAwNzIwNwRtc2dJZAMxNDAwOTUEc2VjA2Z0cgRzbGsDcnBseQRzdGltZQMxMjM4NTY5NTE1?act=reply&messageNum=140095>|
>>  Start
>> a new topic
>> <http://groups.yahoo.com/group/flexcoders/post;_ylc=X3oDMTJmNWdrY3VpBF9TAzk3MzU5NzE0BGdycElkAzEyMjg2MTY3BGdycHNwSWQDMTcwNTAwNzIwNwRzZWMDZnRyBHNsawNudHBjBHN0aW1lAzEyMzg1Njk1MTU->
>>  
>> Messages<http://groups.yahoo.com/group/flexcoders/messages;_ylc=X3oDMTJmOGo3ajlxBF9TAzk3MzU5NzE0BGdycElkAzEyMjg2MTY3BGdycHNwSWQDMTcwNTAwNzIwNwRzZWMDZnRyBHNsawNtc2dzBHN0aW1lAzEyMzg1Njk1MTQ->
>>  --
>> 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.com
>>  [image: Yahoo! 
>> Groups]<http://groups.yahoo.com/;_ylc=X3oDMTJlY2lvMm9oBF9TAzk3NDc2NTkwBGdycElkAzEyMjg2MTY3BGdycHNwSWQDMTcwNTAwNzIwNwRzZWMDZnRyBHNsawNnZnAEc3RpbWUDMTIzODU2OTUxNQ-->
>> Change settings via the 
>> Web<http://groups.yahoo.com/group/flexcoders/join;_ylc=X3oDMTJnMWhqZmRoBF9TAzk3NDc2NTkwBGdycElkAzEyMjg2MTY3BGdycHNwSWQDMTcwNTAwNzIwNwRzZWMDZnRyBHNsawNzdG5ncwRzdGltZQMxMjM4NTY5NTE1>(Yahoo!
>>  ID required)
>> Change settings via email: Switch delivery to Daily 
>> Digest| 
>> Switch
>> format to 
>> Traditional
>>  Visit Your Group
>> <http://groups.yahoo.com/group/flexcoders;_ylc=X3oDMTJlaTdqNTdmBF9TAzk3NDc2NTkwBGdycElkAzEyMjg2MTY3BGdycHNwSWQDMTcwNTAwNzIwNwRzZWMDZnRyBHNsawNocGYEc3RpbWUDMTIzODU2OTUxNQ-->|
>>  Yahoo!
>> Groups Terms of Use <http://docs.yahoo.com/info/terms/> | Unsubscribe
>> 
>>
>>
>  
>



-- 
Regards,
Paresh M. More
Senior Software Engineer

Mobile: +919881400641
Nashik/Pune, Maharashtra, India.
Email - pareshm...@gmail.com


[flexcoders] Issue with Display of textbox setfocus

2009-04-01 Thread Paresh M More
Friends,

I have a Panel, called, "Create Array" and few text box,
when i try to set focus on Name text box it shows me some thing, like, which
is in sreen shot,

Any solution for it ?

Code is


 

 
 



And is use this command, ti_arrayName.setFocus(); // which i called on a
button click


Code is very simple, but some times, i see, proper display but some times i
see, as per screen shot.

Y the hell, adobe flash player showing such behavious, I am using, Flash 10
player.


Any solution i would really appricate.


--
Regards,
Paresh M. More
Software Engineer

Nashik/Pune, Maharashtra, India.
Email - pareshm...@gmail.com
<>

Re: [flexcoders] Database Viewer

2009-03-24 Thread Paresh M More
Try out TOAD s/w

Regards,
Paresh M. More
Software Engineer

Nashik/Pune, Maharashtra, India.
Email - pareshm...@gmail.com


On Wed, Mar 25, 2009 at 10:59 AM, akn_carnage  wrote:

>   Hi everyone,
>
> Can someone please suggest any database viewer application either
> commercial or open-source made in Flex?
>
> I need to able to see the relationships, columns etc of the tables and the
> data as well.
>
> Thanks,
> Anil
>
>  
>


Re: [flexcoders] Barchart

2009-03-24 Thread Paresh M More
This is what u want

http://livedocs.adobe.com/flex/3/html/help.html?content=charts_displayingdata_08.html

Regards,
Paresh M. More
Software Engineer

Nashik/Pune, Maharashtra, India.
Email - pareshm...@gmail.com


On Tue, Mar 24, 2009 at 2:30 PM, ak  wrote:

>   Hi All,
>
> I have a barchart extended from barchart.The dataprovider of the barchart
> conatins three values, importance,satisfaction and satisfactiongap.
> In the barchart there are two series extended from bar series. In one of
> the series xfield is importance and in the other satisfaction.
> How can i access the the third satisfactiongap in the barchart itemrender
> extended from the box item renderer?
>
> Regards
> aK
>
> --
> Add more friends to your messenger and enjoy! Invite them 
> now.<http://in.rd.yahoo.com/tagline_messenger_6/*http://messenger.yahoo.com/invite/>
>
>  
>


Re: [flexcoders] which one is better to use?

2009-03-24 Thread Paresh M More
Vikram,

XML  Approach is simple, In flex there is a good parser, and less over heads
are required, then arraycollection,

Regards,
Paresh M. More
Software Engineer

Nashik/Pune, Maharashtra, India.
Email - pareshm...@gmail.com


On Tue, Mar 24, 2009 at 11:23 AM, Vikram Singh wrote:

>   hello friends...
> i am passing data request to php using RemoteObject from flex.
> and php send back processed data to Flex.
> which one is better in performance for flex application operation??
> 1. ArrayCollection
> OR
> 2. XML
> which one is easy and fast accesable??
> all the data are storing in ArrayCollection and used it to displaying in
> flex components.
> I feel that Array object is little bit slow.
> Please suggest me the right option.
>
> Thanks.
>
> --
> Add more friends to your messenger and enjoy! Invite them 
> now.<http://in.rd.yahoo.com/tagline_messenger_6/*http://messenger.yahoo.com/invite/>
>
>  
>


Re: [flexcoders] Profiling Flex applications for Flash player 10

2009-03-24 Thread Paresh M More
In flex properties, Flex compiler, set Flash player 10.0.0
i would work

Regards,
Paresh M. More
Software Engineer

Nashik/Pune, Maharashtra, India.
Email - pareshm...@gmail.com


On Tue, Mar 24, 2009 at 5:19 PM, Dennis van Nooij wrote:

>   is anyone able to profile a Flex application that is targetted for Flash
> player 10 ? Our Air application run, debugs and profiles fine but the web
> version throws an RTE on startup:
>
> ReferenceError: Error #1065: Variable ContextMenuClipboardItems is not
> defined.
>
> to locate the problem I created a sample project which runs fine at first
> but when adding a library project it falls back to the same error as above ?
>
> I'm using SDK version 3.3
>
> thanks,
> Dennis
>
>  
>


Re: {Disarmed} [flexcoders] How to make "show" event work?

2009-03-24 Thread Paresh M More
Mark,

If the compoent is in memory then there is no way to call this function when
ever it is loaded( expect 1st time)

Now how to resolve this issue, it can be achived by action script

when ever u want this in memory u can use this function

public function onload():void
{
 // Thing u want to do,
  Alert.show('test')
}

in main application u need to attached the child to parent and then call
this onload function

like
MainForm.addChild(can);
can.onload();


http://www.adobe.com/2006/mxml"; width="912"
height="444" show="Alert.show('test')" >
Let me know if this is still a issue for u


Regards,
Paresh M. More
Software Engineer

Nashik/Pune, Maharashtra, India.
Email - pareshm...@gmail.com


On Tue, Mar 24, 2009 at 2:28 AM, Scott  wrote:

>If I’m not mistaken, the component is created and kept in memory once
> you call it.
>
>
>
> I don’t think you can call the “show” the way you are trying to call it in
> the constructor.
>
>
>
> Instead you would have to do a creationComplete=”Alert.show(‘test’)”
>
>
>
> The re-calling the function would be dependent on what you are trying to
> do.  I believe you would have to create a function in your initializer
> function based on a timer.  Or at least that’s what I can think of off the
> top of my head…
>
>
>
>
>
>
>  --
>
> *From:* flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] *On
> Behalf Of *markflex2007
> *Sent:* Monday, March 23, 2009 3:12 PM
> *To:* flexcoders@yahoogroups.com
> *Subject:* {Disarmed} [flexcoders] How to make "show" event work?
>
>
>
> Hi,
>
> I have a mxml component and I want it run a function when it is loaded
> (not only first time),I did the following test for the component and I do
> not know why the show event never work.
>
> Please help me.
>
> Thanks
>
> Mark
>
> component code:
>
> http://www.adobe.com/2006/mxml"; width="912"
> height="444" show="Alert.show('test')" >
>
> ...
>
> 
>
> --
> This message has been scanned for viruses and
> dangerous content by *MailScanner* <http://www.mailscanner.info/>, and is
> believed to be clean.
>
>  
>


Re: [flexcoders] Cursors and datagrids

2009-03-20 Thread Paresh M More
Jason ,
The right way is

var cursor1:IViewCursor = dataGrid.dataProvider.createCursor();
while(!cursor1.afterLast)
{
 cursor1.moveNext();
}

On Thu, Mar 19, 2009 at 9:09 PM, Jason Nichols  wrote:

>   I'm not sure if I'm missing something regarding cursors and datagrids...
>
> I'm trying to implement a 'find within datagrid functionality' generically.
> I had things working doing it the hard way of just looping through the
> arraycollection and doing a compare for each cell within the datagrid. Then
> I decided to implement the same thing using cursors, and the fun began. In
> some cases I'm able to find the object, in others I crash out.
>
> I've defined a cursor = dataGrid.dataProvider.createCursor();
> looping through with the cursors works, and I'm able to get the correct
> item for cursor.current. I fail with Error #1009
> at internal::findItem() ... ListCollectionView.as:954when I do:
> dataGrid.selectedItem = cursor.current;
>
> Am I missing something? I didn't think I needed to sort anything if I
> wasn't using any of the find methods on the cursor, but it seems like behind
> the scenes flex is doing find and failing. At this point I may just go back
> to looping through arraycollection, but to me, it seems far less elegant
> than the cursor solution.
>
> Thanks,
>
> j
>
>  
>


Re: [flexcoders] checkbox and text input

2009-03-20 Thread Paresh M More
private function ValidateIP():Boolean
{
// Validate IP Address
var pattern:RegExp =
/\b(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\b/;
 if ( pattern.exec(String(ti_ipAddress.text)) == null )
  {
Alert.show("Please Enter a Valid IP Address");
return false;
  }
else
return true;
}

This function would tell whether the IP is valid or invalid,

Now on the Combobox, u can write a function on Change event and looks it
would run


-- 
Regards,
Paresh M. More
Software Engineer

Nashik/Pune, Maharashtra, India.
Email - pareshm...@gmail.com
On Fri, Mar 20, 2009 at 7:01 AM, Dieyana Abu Bakar wrote:

>   oh...can it been done?i have post this questions everywhere and none of
> them is answered.i'm stuck with both of this.but i think the checkbox part i
> can try to do it.but for the input part(when user input a text,it will
> search for that particular text) ,i don't know.could you show me?
>
>  --
> *From:* Tracy Spratt 
> *To:* flexcoders@yahoogroups.com
> *Sent:* Tuesday, March 17, 2009 9:21:28 PM
> *Subject:* RE: [flexcoders] checkbox and text input
>
>   That task has several parts.  Which have you done successfully and which
> do you need help with?
>
>
>
> Tracy Spratt,
>
> Lariat Services, development services available
>  --
>
> *From:* flexcod...@yahoogro ups.com [mailto: flexcod...@yahoogro ups.com ]
> *On Behalf Of *diana_usim
> *Sent:* Tuesday, March 17, 2009 4:34 AM
> *To:* flexcod...@yahoogro ups.com
> *Subject:* [flexcoders] checkbox and text input
>
>
>
> hye
>
> i've got a problem to build my checkbox.i have a checkbox with label "IP
> address" and a text input beside it.
>
> i want to be able to input any IP address and when i click the checkbox
> button it will filter the datagrid according to IP address input
> earlier.it like a combination of 'search' and checkbox.but i don't know
> how to do this.
>
> can you show me how to work on this one??i'm ready to learn form the
> expert!!
>
>
>  
>


Re: [flexcoders] problem with XML in flex

2009-03-20 Thread Paresh M More
Vikram, U can use string and concat it in the form of XML, and then send to
FLEX using Httpservice,
FLEX, have a xml parser so u need not have to worry

-- 
Regards,
Paresh M. More
Software Engineer

Nashik/Pune, Maharashtra, India.
Email - pareshm...@gmail.com

On Fri, Mar 20, 2009 at 11:18 AM, Vikram Singh wrote:

>   I need to generate XML with data fetch from database. I am using PHP.
> then send this generated XML to Flex application and display in flex
> component like (tree, list or Grid).
>
> but i am not getting how to generate XML and passed to Flex?
> any easy protocol for communicating between Flex and PHP??
> any idea do you have... please  help me.
>
> --
> Bring your gang together. Do your thing. Find your favourite Yahoo! 
> Group.<http://in.rd.yahoo.com/tagline_groups_9/*http://in.promos.yahoo.com/groups/>
>
>  
>


Re: [flexcoders] httpservice formatted as Object 0 = "0" but 1 = 1

2009-03-20 Thread Paresh M More
Thanks Tracy for the wonderfull description,

Greg,
Use this piece of code

cmdHttpService.addEventListener(ResultEvent.RESULT, CmdHandler);
cmdHttpService.resultFormat = "e4x";
cmdHttpService.useProxy = false;
cmdHttpService.contentType = "text/xml" ;
cmdHttpService.addEventListener(FaultEvent.FAULT, CmdFaultHandler);

// This is the Command Fault Handler
public function CmdFaultHandler(event:FaultEvent):void
{
trace("FaultHandler");
trace("Cmd is Invalid ");
var faultstring:String = event.fault.faultString;
Alert.show("FaultHandler", faultstring);

}


public function CmdHandler(event:ResultEvent):void
{
trace("Command ResultHandler");

var resultXML:XML = new XML(event.result) as XML;

// u can use resultXML as a pure XML
}

-- 
Regards,
Paresh M. More
Software Engineer

Nashik/Pune, Maharashtra, India.
Email - pareshm...@gmail.com

On Fri, Mar 20, 2009 at 9:50 AM, Gregory Kelley  wrote:

>Thansk for the insightful reply. I'm new to flex and am working on an
> application that was created long before I started on it. I have been
> refering to existing code to progress my knowledge and have also been
> reviewing best practices online. The existing code doesn't use strongly
> typed objects but that is what I'm used to so my development has been using
> that methodology, actually the boolean assignment is occurning while mapping
> to a VO. I will use e4x from now on.
>
> Thanks again for taking the time to enlighten me.
> Greg
>
>  --
>  *From:* flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] *On
> Behalf Of *Tracy Spratt
> *Sent:* Thursday, March 19, 2009 9:20 PM
> *To:* flexcoders@yahoogroups.com
> *Subject:* RE: [flexcoders] httpservice formatted as Object 0 = "0" but 1
> = 1
>
>   This is probably happening because you have left the resultFormat at the
> default “object”.  The object decoder attempts to be smart and changes the
> xml strings into what it thinks the data types should be.  It often guesses
> wrong.
>
> Set the resultFormat=”e4x” and you will get your data reliably.  It will
> always be strings, but it will be the strings that were sent.
>
> There are other reasons not to use resultFormat=”object” as well.  Best
> practice (with HTTPService) is to get the XML in pure e4x form, then convert
> it yourself into an ArrayCollection of strongly typed value objects.
>
>  Tracy Spratt,
>
> Lariat Services, development services available
>  --
>
> *From:* flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] *On
> Behalf Of *Gregory Kelley
> *Sent:* Thursday, March 19, 2009 7:19 PM
> *To:* flexcoders@yahoogroups.com
> *Subject:* RE: [flexcoders] httpservice formatted as Object 0 = "0" but 1
> = 1
>
>   That is the problem with the object being inconsistent. Since any string
> representation is not 0 it becomes true.
>
> So in order to get around the bug I have to do boolean(int(value)); That
> way if value comes back as a stirng it is properly cast to an int then to a
> boolean. If it comes back as an int then the int(value) is irrelevant and it
> is still cast to a boolean correctly.
>
> Greg
>
>  --
>
> *From:* flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] *On
> Behalf Of *Maciek Sakrejda
> *Sent:* Thursday, March 19, 2009 3:18 PM
> *To:* flexcoders@yahoogroups.com; flexcoders@yahoogroups.com
> *Subject:* RE: [flexcoders] httpservice formatted as Object 0 = "0" but 1
> = 1
>
> Could this have something to do with the fact that 0 coerced to a Boolean
> is false and '0' is true, whereas both 1 and '1' are true?
>
>
> -Original Message-
> From: flexcoders@yahoogroups.com on behalf of Gregory Kelley
> Sent: Thu 3/19/2009 9:32 AM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] httpservice formatted as Object 0 = "0" but 1 = 1
>
> I have the following line in the xml returned from the call.
>
> 
> Partner
> 
> 
>
> When I reference event.result.rsp.is_comm_paid the result is "0"
>
> Now if I pull a record where the value is 1 then the xml looks like
> 
> Partner
> 
> 
>
> When I reference event.result.rsp.is_comm_paid the result is 1
>
> Anyone see this before?
>
> If I need to create a sample I can but it would be late next week, For
> now I cast it as int then let it get coerced into a boolean.
>
> Thanks,
> Greg
>
>   
>


Re: [flexcoders] Sound class Security Sandbox violation ONLY on Internet Explorer - ID3 related

2009-03-19 Thread Paresh M More
when ever flex get loaded, the flash player itself send crosspolicy.xml
request, ur server should provide this file to the FLEX



-- 
Regards,
Paresh M. More
Software Engineer

Nashik/Pune, Maharashtra, India.
Email - pareshm...@gmail.com

On Thu, Mar 19, 2009 at 6:19 PM, fotis.chatzinikos <
fotis.chatzini...@gmail.com> wrote:

>   Hi,
>
> I am trying to make a simple mp3 player.
>
> At first i got errors when i was trying to get the ID3 info via the Sound
> class ID3 handler. I fixed it by removing the ID3 handler and audio plays OK
> in Firefox. The problem is that in Internet Explorer 7
> I get the following exception:
>
> SecurityError: Error #2122: Security sandbox violation: Sound.id3:
> http://localhost:8084/Main.swf/[[DYNAMIC]]/2 cannot access
> http://someplace.com/Ganglians%20-%20Hair.mp3. A policy file is required,
> but the checkPolicyFile flag was not set when this media was loaded.
>
> Inspecting the Sound object in the debugger shows the following info (in
> the ID3 filed of the sound class):
>
> id3 = 
>
> Why is flash in IE trying to load ID3 info without me explicitly setting
> the ID3 handler?
>
> Any way to bypass this?
>
> Thanks in advance,
> Fotis
>
>  
>