Re: [flexcoders] Strange error

2009-05-27 Thread Ian Thomas
That's a perfectly reasonable error. Both things compile to a class
called CustomSkin - and you can't have two classes in the same project
called CustomSkin.

Sounds like your sample project wasn't set up to compile - are you
sure whoever provided the project isn't just giving you two separate
examples of the same thing, one version in MXML, one version in AS? I
suspect you aren't supposed to be trying to compile the two together.

HTH,

Ian

On Wed, May 27, 2009 at 8:35 PM, markgoldin_2000
 wrote:
>
>
> I am getting the following error:
> Severity and Description Path Resource Location Creation Time Id
> D:\projects\sfcs\UFDCommonLib\src\CustomSkin.as and
> D:\projects\sfcs\UFDCommonLib\src\CustomSkin.mxml can't co-exist in the same
> directory. UFDCommonLib
>
> Why is that? I am using a sample project I got from the web and these files
> are in the same directory.
>
> Thanks for help.
>
> 


[flexcoders] Strange error

2009-05-27 Thread markgoldin_2000
I am getting the following error:
Severity and DescriptionPathResourceLocation
Creation Time   Id
D:\projects\sfcs\UFDCommonLib\src\CustomSkin.as and 
D:\projects\sfcs\UFDCommonLib\src\CustomSkin.mxml can't co-exist in the same 
directory. UFDCommonLib

Why is that? I am using a sample project I got from the web and these files are 
in the same directory.

Thanks for help.



[flexcoders] Strange error about declaration of style conflicting with unrelated class

2009-01-09 Thread Pan Troglodytes
I'm receiving a very peculiar error.  I've boiled it down to a simple
reproducible test.  Given the following two files:

GenericTest.mxml:

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

  



TestStyle.as:
package
{
  import mx.core.UIComponent;

  [Style(name="color", type="uint", format="Color", inherit="no")]
  public class TestStyle extends UIComponent
  {
  }
}

I get the following error trying to compile, ever after cleaning the
project:
Severity and DescriptionPathResourceLocationCreation Time
Id
Declaration of style 'color' conflicts with previous declaration in
C:\Program Files\Adobe\Flex Builder
3\sdks\3.2.0\frameworks\libs\framework.swc(mx/core/Container).
GenericTestUnknown123152185967429620

First, I'm pretty sure the claim that it's Container causing the problem is
wrong, as TestStyle is a subclass of UIComponent, not a subclass of
Container.  In the help for UIComponent, there is no color style or property
listed.  Plus if you make it inherit from other things like Object,
DisplayObject, Sprite, etc., the error changes to different files, including
saying the file conflicts with itself (Declaration of style 'color'
conflicts with previous declaration in C:\dev\GenericTest\src\TestStyle.as);

If I change it to inherit="yes", it does not have a problem with it.  My
best guess is that there's something hidden and undocumented.  Doing a
search on all the SDK code found no declaration for it.  If I take out my
Style declaration and call getStyle("color") on a newly created TestStyle
object, I get 0x0B333C.  So it's getting set somewhere.

Anyone want to offer their two cents?  I'm considering filing a bug report
but I don't know exactly if this should be considered a bug (well,
definitely a bug in the compiler error text) or poor documentation or what.

-- 
Jason


Re: [flexcoders] Strange Error When using GroupingCollection as dataProvider for TabBar

2008-09-21 Thread Michael Schmalle
Oh yeah.
GroupingCollection is a HierarchicalData -> EventDispatcher, so navbar will
not let you use it, needs a real array.

Mike

On Sun, Sep 21, 2008 at 6:50 PM, Michael Schmalle
<[EMAIL PROTECTED]>wrote:

> Hi Amy,
> That's actually just a canned Exception. It's in the resource manager
> bundle as a UIComponent since that is what is under ViewStack. The error
> says the dataProvider must be of type;
>
> - String
> - ViewStack
> - Array
> - IList
>
> That is not really a user friendly message for sure, doesn't even make
> sense from where it is called.
>
> # NavBar
>
> errWrongType=ERROR: The dataProvider of '{0}' must be String, ViewStack,
> Array, or IList.
> errWrongContainer=ERROR: The dataProvider of '{0}' must not contain objects
> of type flash.display.DisplayObject.
>
>
> Mike
>
> On Sun, Sep 21, 2008 at 3:44 PM, Amy <[EMAIL PROTECTED]> wrote:
>
>>   I'm trying to expand on the concept here
>> http://blog.tsclausing.com/post/20 and get a more sophisticated
>> representation of the data. When I try to set my GroupingCollection
>> as the DataProvider for a TabBar, I get this error:
>>
>> Error: ERROR: The dataProvider of 'monthSelector' must not contain
>> objects of type flash.display.DisplayObject.
>> at mx.controls::NavBar/set dataProvider()[E:\dev\3.1.0
>> \frameworks\projects\framework\src\mx\controls\NavBar.as:378]
>> at GroupingFunction/init()[C:\Documents and Settings\Amy\My
>> Documents\Helpful\GroupingFunction\src\GroupingFunction.mxml:68]
>> at
>>
>
>
> --
> Teoti Graphix, LLC
> http://www.teotigraphix.com
>
> Teoti Graphix Blog
> http://www.blog.teotigraphix.com
>
> You can find more by solving the problem then by 'asking the question'.
>



-- 
Teoti Graphix, LLC
http://www.teotigraphix.com

Teoti Graphix Blog
http://www.blog.teotigraphix.com

You can find more by solving the problem then by 'asking the question'.


Re: [flexcoders] Strange Error When using GroupingCollection as dataProvider for TabBar

2008-09-21 Thread Michael Schmalle
Hi Amy,
That's actually just a canned Exception. It's in the resource manager bundle
as a UIComponent since that is what is under ViewStack. The error says the
dataProvider must be of type;

- String
- ViewStack
- Array
- IList

That is not really a user friendly message for sure, doesn't even make sense
from where it is called.

# NavBar

errWrongType=ERROR: The dataProvider of '{0}' must be String, ViewStack,
Array, or IList.
errWrongContainer=ERROR: The dataProvider of '{0}' must not contain objects
of type flash.display.DisplayObject.


Mike

On Sun, Sep 21, 2008 at 3:44 PM, Amy <[EMAIL PROTECTED]> wrote:

>   I'm trying to expand on the concept here
> http://blog.tsclausing.com/post/20 and get a more sophisticated
> representation of the data. When I try to set my GroupingCollection
> as the DataProvider for a TabBar, I get this error:
>
> Error: ERROR: The dataProvider of 'monthSelector' must not contain
> objects of type flash.display.DisplayObject.
> at mx.controls::NavBar/set dataProvider()[E:\dev\3.1.0
> \frameworks\projects\framework\src\mx\controls\NavBar.as:378]
> at GroupingFunction/init()[C:\Documents and Settings\Amy\My
> Documents\Helpful\GroupingFunction\src\GroupingFunction.mxml:68]
> at
>


-- 
Teoti Graphix, LLC
http://www.teotigraphix.com

Teoti Graphix Blog
http://www.blog.teotigraphix.com

You can find more by solving the problem then by 'asking the question'.


[flexcoders] Strange Error When using GroupingCollection as dataProvider for TabBar

2008-09-21 Thread Amy
I'm trying to expand on the concept here 
http://blog.tsclausing.com/post/20 and get a more sophisticated 
representation of the data.  When I try to set my GroupingCollection 
as the DataProvider for a TabBar, I get this error:

Error: ERROR: The dataProvider of 'monthSelector' must not contain 
objects of type flash.display.DisplayObject.
at mx.controls::NavBar/set dataProvider()[E:\dev\3.1.0
\frameworks\projects\framework\src\mx\controls\NavBar.as:378]
at GroupingFunction/init()[C:\Documents and Settings\Amy\My 
Documents\Helpful\GroupingFunction\src\GroupingFunction.mxml:68]
at 
GroupingFunction/___GroupingFunction_Application1_creationComplete()
[C:\Documents and Settings\Amy\My 
Documents\Helpful\GroupingFunction\src\GroupingFunction.mxml:2]
at flash.events::EventDispatcher/dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at mx.core::UIComponent/dispatchEvent()[E:\dev\3.1.0
\frameworks\projects\framework\src\mx\core\UIComponent.as:9156]
at mx.core::UIComponent/set initialized()[E:\dev\3.1.0
\frameworks\projects\framework\src\mx\core\UIComponent.as:1167]
at mx.managers::LayoutManager/doPhasedInstantiation()
[E:\dev\3.1.0
\frameworks\projects\framework\src\mx\managers\LayoutManager.as:701]
at Function/http://adobe.com/AS3/2006/builtin::apply()
at mx.core::UIComponent/callLaterDispatcher2()[E:\dev\3.1.0
\frameworks\projects\framework\src\mx\core\UIComponent.as:8565]
at mx.core::UIComponent/callLaterDispatcher()[E:\dev\3.1.0
\frameworks\projects\framework\src\mx\core\UIComponent.as:8508]

I can understand that maybe a GroupingCollection wasn't meant to be 
used as a dataProvider for a TabBar, but why does Flex think it has 
UIComponents in it?

Thanks;

Amy



Re: [flexcoders] Strange error trace

2008-02-13 Thread YOGESH JADHAV
Hi Alex,
Thanx for replying. Ya, I am using an alert which does not
have any button. I am using *Alert.mx_internal::alertForm.removeChild(
Alert.mx_internal::alertForm.mx_internal::buttons[0]))* for that.
But I dont think it is causing the error. The error is thrown long after
time after that alert is removed. Most Important thing is  it appears ONLY
IN  FIREFOX, IE is running smoothly w/o any issue. ( strange enough, as
generally IE crashes on first error thrown , debug-player is almost useless
).

On Feb 14, 2008 3:06 AM, Alex Harui <[EMAIL PROTECTED]> wrote:

>Because you're in the framework code.  That's just the internal drive
> we used to build it, but it should map to the source you have.  Somehow,
> this alert doesn't have any buttons.  Is that possible?
>
>
>  --
>
> *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On
> Behalf Of *YOGESH JADHAV
> *Sent:* Wednesday, February 13, 2008 12:59 AM
> *To:* flexcoders@yahoogroups.com
> *Subject:* [flexcoders] Strange error trace
>
>
>
> Hi all,
>   I am having trouble with some null object reference
> somewhere in my flex app, beacuse of which it is bombarding errors. But in
> trace it is showing some E:\dev\flex_201_borneo path which does not exist. (
> E: is my DVD rom ). Then why it is showing this path ?
> here is one of them
>
> TypeError: Error #2007: Parameter source must be non-null.
> at flash.accessibility::Accessibility$/sendEvent()
> at mx.accessibility::AlertAccImpl/eventHandler
> ()[E:\dev\flex_201_borneo\sdk\frameworks\mx\accessibility\AlertAccImpl.as:243]
> at flash.events::EventDispatcher/dispatchEventFunction()
> at flash.events::EventDispatcher/dispatchEvent()
> at mx.core::UIComponent/dispatchEvent
> ()[E:\dev\flex_201_borneo\sdk\frameworks\mx\core\UIComponent.as:8389]
> at 
> mx.core::UIComponent/setinitialized()[E:\dev\flex_201_borneo\sdk\frameworks\mx\core\UIComponent.as:1096]
> at mx.managers::LayoutManager/doPhasedInstantiation
> ()[E:\dev\flex_201_borneo\sdk\frameworks\mx\managers\LayoutManager.as:696]
> at Function/http://adobe.com/AS3/2006/builtin::apply()
> at mx.core::UIComponent/callLaterDispatcher2
> ()[E:\dev\flex_201_borneo\sdk\frameworks\mx\core\UIComponent.as:7975]
> at mx.core::UIComponent/callLaterDispatcher
> ()[E:\dev\flex_201_borneo\sdk\frameworks\mx\core\UIComponent.as:7918]
>
>
> --
>
>
> Regards,
> Yogesh
>   
>



-- 


Regards,
Yogesh


RE: [flexcoders] Strange error trace

2008-02-13 Thread Alex Harui
Because you're in the framework code.  That's just the internal drive we
used to build it, but it should map to the source you have.  Somehow,
this alert doesn't have any buttons.  Is that possible?

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of YOGESH JADHAV
Sent: Wednesday, February 13, 2008 12:59 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Strange error trace

 

Hi all,
  I am having trouble with some null object reference
somewhere in my flex app, beacuse of which it is bombarding errors. But
in trace it is showing some E:\dev\flex_201_borneo path which does not
exist. ( E: is my DVD rom ). Then why it is showing this path ?
here is one of them 

TypeError: Error #2007: Parameter source must be non-null.
at flash.accessibility::Accessibility$/sendEvent()
at
mx.accessibility::AlertAccImpl/eventHandler()[E:\dev\flex_201_borneo\sdk
\frameworks\mx\accessibility\AlertAccImpl.as:243]
at flash.events::EventDispatcher/dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at
mx.core::UIComponent/dispatchEvent()[E:\dev\flex_201_borneo\sdk\framewor
ks\mx\core\UIComponent.as:8389]
at mx.core::UIComponent/set
initialized()[E:\dev\flex_201_borneo\sdk\frameworks\mx\core\UIComponent.
as:1096]
at
mx.managers::LayoutManager/doPhasedInstantiation()[E:\dev\flex_201_borne
o\sdk\frameworks\mx\managers\LayoutManager.as:696]
at Function/http://adobe.com/AS3/2006/builtin::apply()
at
mx.core::UIComponent/callLaterDispatcher2()[E:\dev\flex_201_borneo\sdk\f
rameworks\mx\core\UIComponent.as:7975]
at
mx.core::UIComponent/callLaterDispatcher()[E:\dev\flex_201_borneo\sdk\fr
ameworks\mx\core\UIComponent.as:7918]


-- 


Regards,
Yogesh 

 



[flexcoders] Strange error trace

2008-02-13 Thread YOGESH JADHAV
Hi all,
  I am having trouble with some null object reference somewhere
in my flex app, beacuse of which it is bombarding errors. But in trace it is
showing some E:\dev\flex_201_borneo path which does not exist. ( E: is my
DVD rom ). Then why it is showing this path ?
here is one of them

TypeError: Error #2007: Parameter source must be non-null.
at flash.accessibility::Accessibility$/sendEvent()
at mx.accessibility::AlertAccImpl/eventHandler
()[E:\dev\flex_201_borneo\sdk\frameworks\mx\accessibility\AlertAccImpl.as:243]
at flash.events::EventDispatcher/dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at mx.core::UIComponent/dispatchEvent
()[E:\dev\flex_201_borneo\sdk\frameworks\mx\core\UIComponent.as:8389]
at 
mx.core::UIComponent/setinitialized()[E:\dev\flex_201_borneo\sdk\frameworks\mx\core\UIComponent.as:1096]
at mx.managers::LayoutManager/doPhasedInstantiation
()[E:\dev\flex_201_borneo\sdk\frameworks\mx\managers\LayoutManager.as:696]
at Function/http://adobe.com/AS3/2006/builtin::apply()
at mx.core::UIComponent/callLaterDispatcher2
()[E:\dev\flex_201_borneo\sdk\frameworks\mx\core\UIComponent.as:7975]
at mx.core::UIComponent/callLaterDispatcher
()[E:\dev\flex_201_borneo\sdk\frameworks\mx\core\UIComponent.as:7918]


-- 


Regards,
Yogesh


[flexcoders] Strange Error with Embed Statement

2007-05-17 Thread Jurgen Beck
I've been working on this big project for the last 5 weeks and all of a 
sudden today started getting errors on all my Embed statements in my 
style sheet.

The following lines are an example of what Flex Builder now thinks are 
invalid statements:

.trashButton
{
up-skin:Embed(source="/assets/ApplicationResources.swf#TrashCanClosed");
over-skin:Embed(source="/assets/ApplicationResources.swf#TrashCan");

disabled-skin:Embed(source="/assets/ApplicationResources.swf#TrashCanClosed");

down-skin:Embed(source="/assets/ApplicationResources.swf#TrashCan");
   
}

The resources are compiled into the application just fine, as they show 
up in the application. However, the IDE sees these lines as errors and 
will report them with:

Invalid Embed directive in stylesheet - can't resolve source 
'Embed(source = "/assets/ApplicationResources.swf#TrashCan")

I created a new test application with the same statement in it and 
everything works as it should.

Cleaning the project won't resolve the issue.

Anyone run into this?

Thanks,

Jurgen


Re: [flexcoders] Strange Error on compiling Flex-2 project

2006-02-25 Thread Jignesh Dodiya



makeObjectsBindable property is use with remoteObject or HTTPService or WebService.but there is no any remoteObject in my code
 
 
I  m simply using following code as AMFPHP-remoting

var gatewayURL:String = "http://localhost/jignesh/superStore/gateway.php";   var gateway_conn:* = new NetConnectionSub;   gateway_conn.objectEncoding = 
ObjectEncoding.AMF0;   gateway_conn.connect(gatewayURL);    var my_responder:Responder = new Responder(_onResult, _onFault);   gateway_conn.call("superStore_php.retriveRecord", my_responder); 

 
how can i place a remoteObject property--makeObjectsBindable  here within this code..I have no Idea..
 
Any other option there
 
regards,
 
Jignesh
 
 
On 2/24/06, Matt Chotin <[EMAIL PROTECTED]> wrote:


On your remote object try setting makeObjectsBindable=false.  Maybe it's one of our known bugs?  Otherwise this doesn't make sense without seeing it in action.

 




From: 
flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] 
On Behalf Of Jignesh DodiyaSent: Thursday, February 23, 2006 2:57 AM 
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Strange Error on compiling Flex-2 project


 

Matt,

 

Yes, the value my_cb.selectedIndex is a integer value 
and is not -1 , its sure...coz this value gives me the auto increament ID value from the mysql database table...and accordingly i store this value to other database, and i get the perfect result. 


 

Infact the there is no effect of this runtime error dialog box, either i cleak Dismiss All or do click Continue
, my program working perfect ok, just i want is to eliminate the runtime error dialog box, and for that i am not getting the sollution 

 

thanks, 

jignesh 

 

On 2/23/06, Matt Chotin <
[EMAIL PROTECTED]> wrote: 

Are you sure that my_cb.selectedIndex is returning a value that is not -1?  
 




From: 
flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] 
On Behalf Of Jignesh DodiyaSent: Wednesday, February 22, 2006 1:38 PMTo: 
flexcoders@yahoogroups.comSubject: Re: [flexcoders] Strange Error on compiling Flex-2 project

 

Thanx, for clarifying my fundas regarding runtime Error..

 

Matt,

 

I m trying to retrive the data from the mySQL database in Flex through AMFPHP...some part of code is as below...

 

function onResult(event:Object):void{

var array_id:Array = [];    var array_cat_name:Array = [];  var a:Array = event.serverInfo.initialData;      var len:int = 
a.length;   for(var i:int=0; i   {    var o:Object = {};      var item:Array = a[i];      
o.id = item[0];      o.cat_name = item[1];array_id.push( o.id);array_cat_name.push( 
o.cat_name);    }  var ac_id:ArrayCollection = new ArrayCollection(array_id); 
   bb = ac_id[my_cb.selectedIndex]; 

}

 

i got that the codes in Bold is creating the runtime error .but i m using the variable bb 
to somewhere else in codes just out of this function

 

Is there other alternatiove to eliminate runtime error? i can't got the fault ?

 

regards,

 

jignesh

 

On 2/22/06, Matt Chotin <
 [EMAIL PROTECTED]> wrote:


What is your onResult function trying to do?  This is considered a
 runtime error by the way, not compilation.  This error looks like you have an ArrayCollection or XMLListCollection and tried to read a
 property off of it like myCollection[someBadValue].Matt 

-Original Message-From: 
flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] OnBehalf Of Jignesh M. Dodiya 
Sent: Tuesday, February 21, 2006 3:32 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Strange Error on compiling Flex-2 project
Hi,when I am compiling the codes in mxml,i found the Error as below..ActionScript Error has occured::Error: Unknown property -1  at mx.collections::ListCollectionView/
 http://www.macromedia.com/2005/actionscript/flash/proxy::getProperty()  at states/states::onResult() 
Strange thing is that when I click on button like CONTINUE...the swf file works fine and when click on button DISMISS ALL..instead of stopping the functionality of swfit still works fine as 
normal..Confused.Is anybody has idea of how to eliminate that error,regards,Jignesh--Flexcoders Mailing ListFAQ: 
http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives:
http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links


--
 Flexcoders Mailing ListFAQ: 
http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txtSearch Archives: 
http://www.mail-archive.com/flexcoders%40yahoogroups.com 

SPONSORED LINKS
 





Web site design development 


Computer software development 


Software design and development 



Macromedia flex 


Software development best practice 

 
 




YAHOO! GROUPS LINKS
 

RE: [flexcoders] Strange Error on compiling Flex-2 project

2006-02-23 Thread Matt Chotin










On your remote object try setting
makeObjectsBindable=false.  Maybe it’s one of our known bugs?  Otherwise this
doesn’t make sense without seeing it in action.

 









From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Jignesh Dodiya
Sent: Thursday, February 23, 2006
2:57 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Strange
Error on compiling Flex-2 project



 



Matt,





 





Yes, the value my_cb.selectedIndex
is a integer value and is not -1
, its sure...coz this value gives me the auto increament ID value from
the mysql database table...and accordingly i store this value to other
database, and i get the perfect result. 





 





Infact the there is no
effect of this runtime error dialog box, either i cleak Dismiss All or do
click Continue, my program working perfect ok,
just i want is to eliminate the runtime error dialog box, and for that i
am not getting the sollution 





 





thanks, 





jignesh 







 





On 2/23/06, Matt Chotin <[EMAIL PROTECTED]> wrote:




Are you sure that my_cb.selectedIndex is returning a value
that is not -1?  

 









From: flexcoders@yahoogroups.com
[mailto:flexcoders@yahoogroups.com]
On Behalf Of Jignesh Dodiya
Sent: Wednesday, February 22, 2006
1:38 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Strange
Error on compiling Flex-2 project





 



Thanx,
for clarifying my fundas regarding runtime Error..





 





Matt,





 





I m
trying to retrive the data from the mySQL database in Flex through
AMFPHP...some part of code is as below...





 





function
onResult(event:Object):void{





var
array_id:Array = []; 
   var array_cat_name:Array = [];
  
    var a:Array
= event.serverInfo.initialData;  
    var len:int
= a.length;
   for(var i:int=0; i
   {
 
  var o:Object = {};  
   
var item:Array = a[i];  
   
o.id = item[0];  
   
o.cat_name = item[1];  
  
array_id.push( o.id);
array_cat_name.push( o.cat_name);
    }
   
   var
ac_id:ArrayCollection = new ArrayCollection(array_id); 
   bb =
ac_id[my_cb.selectedIndex]; 





}





 





i got
that the codes in Bold is creating the runtime error .but i m using the
variable bb to
somewhere else in codes just out of this function





 





Is there
other alternatiove to eliminate runtime error? i can't got the fault ?





 





regards,





 





jignesh





 






On 2/22/06, Matt
 Chotin < [EMAIL PROTECTED]> wrote:





What is
your onResult function trying to do?  This is considered a

runtime error by the way, not compilation. 
This error looks like you 
have an ArrayCollection or XMLListCollection and
tried to read a 
property off of it like
myCollection[someBadValue].

Matt 





-Original Message-
From: flexcoders@yahoogroups.com
[mailto:flexcoders@yahoogroups.com]
On
Behalf Of Jignesh M. Dodiya 
Sent: Tuesday, February 21, 2006 3:32 PM 
To: flexcoders@yahoogroups.com

Subject: [flexcoders] Strange Error on compiling Flex-2 project

Hi,
when I am compiling the codes in mxml,
i found the Error as below..

ActionScript Error has occured::

Error: Unknown property -1
  at 
mx.collections::ListCollectionView/ http://www.macromedia.com/2005/actio
nscript/flash/proxy::getProperty()
  at states/states::onResult() 


Strange thing is that when I click on button like CONTINUE...the 
swf file works fine and when click on button DISMISS ALL..instead 
of stopping the functionality of swfit still works fine as 
normal..Confused.

Is anybody has idea of how to eliminate that error,

regards,

Jignesh







--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt

Search Archives:
http://www.mail-archive.com/flexcoders%40yahoogroups.com 



Yahoo! Groups Links










--

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






SPONSORED LINKS 




 
  
  Web site design development 
  
  
  Computer software development 
  
  
  Software design and development 
  
 
 
  
  Macromedia flex 
  
  
  Software development best practice 
  
  
   
  
 


 











YAHOO! GROUPS
LINKS 

 


  Visit your group
 "flexcoders
 " on the web.
   
  To unsubscribe
 from this group, send an email to:
   [EMAIL PROTECTED]
   
  Your use of
 Yahoo! Groups is subject to the Yahoo! Terms of Service. 


 


















-- 
jignesh dodiya 


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







SPONSORED
LINKS 




 
  
  Web site design development 
  
  
  Computer software development 

Re: [flexcoders] Strange Error on compiling Flex-2 project

2006-02-23 Thread Jignesh Dodiya



Matt,
 
Yes, the value my_cb.selectedIndex is a integer value and is not -1 , its sure...coz this value gives me the auto increament ID value from the mysql database table...and accordingly i store this value to other database, and i get the perfect result.

 
Infact the there is no effect of this runtime error dialog box, either i cleak Dismiss All or do click Continue, my program working perfect ok, just i want is to eliminate the runtime error dialog box, and for that i am not getting the sollution

 
thanks, 
jignesh 
 
On 2/23/06, Matt Chotin <[EMAIL PROTECTED]> wrote:


Are you sure that my_cb.selectedIndex is returning a value that is not -1?  
 




From: 
flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] 
On Behalf Of Jignesh DodiyaSent: Wednesday, February 22, 2006 1:38 PMTo: 
flexcoders@yahoogroups.comSubject: Re: [flexcoders] Strange Error on compiling Flex-2 project

 

Thanx, for clarifying my fundas regarding runtime Error..

 

Matt,

 

I m trying to retrive the data from the mySQL database in Flex through AMFPHP...some part of code is as below...

 

function onResult(event:Object):void{

var array_id:Array = [];    var array_cat_name:Array = [];  var a:Array = event.serverInfo.initialData;      var len:int = 
a.length;   for(var i:int=0; i   {    var o:Object = {};      var item:Array = a[i];      
o.id = item[0];      o.cat_name = item[1];array_id.push( o.id);array_cat_name.push(
o.cat_name);    }  var ac_id:ArrayCollection = new ArrayCollection(array_id); 
   bb = ac_id[my_cb.selectedIndex]; 

}

 

i got that the codes in Bold is creating the runtime error .but i m using the variable bb 
to somewhere else in codes just out of this function

 

Is there other alternatiove to eliminate runtime error? i can't got the fault ?

 

regards,

 

jignesh

 

On 2/22/06, Matt Chotin <
[EMAIL PROTECTED]> wrote:


What is your onResult function trying to do?  This is considered a
runtime error by the way, not compilation.  This error looks like you have an ArrayCollection or XMLListCollection and tried to read a
property off of it like myCollection[someBadValue].Matt 

-Original Message-From: 
flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] OnBehalf Of Jignesh M. Dodiya
Sent: Tuesday, February 21, 2006 3:32 PM To: flexcoders@yahoogroups.com
Subject: [flexcoders] Strange Error on compiling Flex-2 projectHi,when I am compiling the codes in mxml,i found the Error as below..
ActionScript Error has occured::Error: Unknown property -1  at mx.collections::ListCollectionView/ 
http://www.macromedia.com/2005/actionscript/flash/proxy::getProperty()  at states/states::onResult() Strange thing is that when I click on button like CONTINUE...the 
swf file works fine and when click on button DISMISS ALL..instead of stopping the functionality of swfit still works fine as normal..Confused.
Is anybody has idea of how to eliminate that error,regards,Jignesh--Flexcoders Mailing ListFAQ: 
http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives:http://www.mail-archive.com/flexcoders%40yahoogroups.com
 
Yahoo! Groups Links


--
Flexcoders Mailing ListFAQ: 
http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txtSearch Archives: 
http://www.mail-archive.com/flexcoders%40yahoogroups.com 

SPONSORED LINKS
 





Web site design development 


Computer software development 


Software design and development 



Macromedia flex 


Software development best practice 

 
 



YAHOO! GROUPS LINKS
 
 

 Visit your group "flexcoders
" on the web.  
 To unsubscribe from this group, send an email to: 
 [EMAIL PROTECTED]  
 Your use of Yahoo! Groups is subject to the 
Yahoo! Terms of Service. 
 



-- jignesh dodiya --Flexcoders Mailing ListFAQ: 
http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txtSearch Archives: 
http://www.mail-archive.com/flexcoders%40yahoogroups.com 
SPONSORED LINKS 




Web site design development 

Computer software development 

Software design and development 


Macromedia flex 

Software development best practice 


YAHOO! GROUPS LINKS 

 Visit your group "flexcoders" on the web.  
 To unsubscribe from this group, send an email to: 
[EMAIL PROTECTED]  
 Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. 




-- jignesh dodiya 






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








  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
  

RE: [flexcoders] Strange Error on compiling Flex-2 project

2006-02-22 Thread Matt Chotin










Are you sure that my_cb.selectedIndex is
returning a value that is not -1?  

 









From: flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] On Behalf
Of Jignesh Dodiya
Sent: Wednesday, February 22, 2006
1:38 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Strange
Error on compiling Flex-2 project



 



Thanx, for clarifying my fundas regarding runtime Error..





 





Matt,





 





I m trying to retrive the data from the mySQL database in Flex through
AMFPHP...some part of code is as below...





 





function onResult(event:Object):void{





var array_id:Array = []; 
   var array_cat_name:Array = [];
  
    var a:Array
= event.serverInfo.initialData;  
    var len:int
= a.length;
   for(var i:int=0; i
   {
 
  var o:Object = {};  
   
var item:Array = a[i];  
   
o.id = item[0];  
   
o.cat_name = item[1];  
  
array_id.push( o.id);
array_cat_name.push(o.cat_name);
    }
   
   var
ac_id:ArrayCollection = new ArrayCollection(array_id); 
   bb =
ac_id[my_cb.selectedIndex]; 





}





 





i got that the codes in Bold is creating the runtime error .but
i m using the variable bb to
somewhere else in codes just out of this function





 





Is there other alternatiove to eliminate runtime error? i can't got the
fault ?





 





regards,





 





jignesh





 






On 2/22/06, Matt
Chotin <[EMAIL PROTECTED]>
wrote:





What is your onResult function trying to do?  This is considered a
runtime error by the way, not compilation. 
This error looks like you 
have an ArrayCollection or XMLListCollection and
tried to read a
property off of it like
myCollection[someBadValue].

Matt 





-Original Message-
From: flexcoders@yahoogroups.com
[mailto:flexcoders@yahoogroups.com]
On
Behalf Of Jignesh M. Dodiya
Sent: Tuesday, February 21, 2006 3:32 PM 
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Strange Error on compiling Flex-2 project

Hi,
when I am compiling the codes in mxml,
i found the Error as below..

ActionScript Error has occured::

Error: Unknown property -1
  at 
mx.collections::ListCollectionView/ http://www.macromedia.com/2005/actio
nscript/flash/proxy::getProperty()
  at states/states::onResult() 


Strange thing is that when I click on button like
CONTINUE...the 
swf file works fine and when click on button DISMISS
ALL..instead 
of stopping the functionality of swfit still works fine as 
normal..Confused.

Is anybody has idea of how to eliminate that error,

regards,

Jignesh







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







Yahoo! Groups Links











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






SPONSORED
LINKS 




 
  
  Web site design development 
  
  
  Computer software development 
  
  
  Software design and development 
  
 
 
  
  Macromedia flex 
  
  
  Software development best practice 
  
  
   
  
 


 







YAHOO!
GROUPS LINKS


 


  Visit your group
 "flexcoders"
 on the web.
  
  To unsubscribe
 from this group, send an email to:
   [EMAIL PROTECTED]
  
  Your use of
 Yahoo! Groups is subject to the Yahoo! Terms of Service.


 














-- 
jignesh dodiya 







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








  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



   Visit your group "flexcoders" on the web. 
   To unsubscribe from this group, send an email to: [EMAIL PROTECTED] 
   Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  











Re: [flexcoders] Strange Error on compiling Flex-2 project

2006-02-22 Thread Jignesh Dodiya



Thanx, for clarifying my fundas regarding runtime Error..
 
Matt,
 
I m trying to retrive the data from the mySQL database in Flex through AMFPHP...some part of code is as below...
 
function onResult(event:Object):void{
var array_id:Array = [];    var array_cat_name:Array = [];  var a:Array = event.serverInfo.initialData;      var len:int = a.length;   for(var i:int=0; i   {
    var o:Object = {};      var item:Array = a[i];      o.id = item[0];      o.cat_name = item[1];array_id.push(
o.id);array_cat_name.push(o.cat_name);    }  var ac_id:ArrayCollection = new ArrayCollection(array_id);bb = ac_id[my_cb.selectedIndex];

}
 
i got that the codes in Bold is creating the runtime error .but i m using the variable bb to somewhere else in codes just out of this function
 
Is there other alternatiove to eliminate runtime error? i can't got the fault ?
 
regards,
 
jignesh
 
On 2/22/06, Matt Chotin <[EMAIL PROTECTED]> wrote:
What is your onResult function trying to do?  This is considered aruntime error by the way, not compilation.  This error looks like you
have an ArrayCollection or XMLListCollection and tried to read aproperty off of it like myCollection[someBadValue].Matt 
-Original Message-From: flexcoders@yahoogroups.com
 [mailto:flexcoders@yahoogroups.com] OnBehalf Of Jignesh M. DodiyaSent: Tuesday, February 21, 2006 3:32 PM
To: flexcoders@yahoogroups.comSubject: [flexcoders] Strange Error on compiling Flex-2 project
Hi,when I am compiling the codes in mxml,i found the Error as below..ActionScript Error has occured::Error: Unknown property -1  at mx.collections::ListCollectionView/
http://www.macromedia.com/2005/actionscript/flash/proxy::getProperty()  at states/states::onResult()
Strange thing is that when I click on button like CONTINUE...the swf file works fine and when click on button DISMISS ALL..instead of stopping the functionality of swfit still works fine as 
normal..Confused.Is anybody has idea of how to eliminate that error,regards,Jignesh--Flexcoders Mailing ListFAQ: 
http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txtSearch Archives:
http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links
--Flexcoders Mailing ListFAQ: 
http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txtSearch Archives: 
http://www.mail-archive.com/flexcoders%40yahoogroups.com 
SPONSORED LINKS 




Web site design development 

Computer software development 

Software design and development 


Macromedia flex 

Software development best practice 


YAHOO! GROUPS LINKS 

 Visit your group "flexcoders" on the web.  
 To unsubscribe from this group, send an email to: 
[EMAIL PROTECTED]  
 Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. 



-- jignesh dodiya 






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








  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



   Visit your group "flexcoders" on the web. 
   To unsubscribe from this group, send an email to: [EMAIL PROTECTED] 
   Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  









RE: [flexcoders] Strange Error on compiling Flex-2 project

2006-02-21 Thread Matt Chotin
What is your onResult function trying to do?  This is considered a
runtime error by the way, not compilation.  This error looks like you
have an ArrayCollection or XMLListCollection and tried to read a
property off of it like myCollection[someBadValue].

Matt

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Jignesh M. Dodiya
Sent: Tuesday, February 21, 2006 3:32 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Strange Error on compiling Flex-2 project

Hi,
when I am compiling the codes in mxml,
i found the Error as below..

ActionScript Error has occured::

Error: Unknown property -1
at 
mx.collections::ListCollectionView/http://www.macromedia.com/2005/actio
nscript/flash/proxy::getProperty()
at states/states::onResult()


Strange thing is that when I click on button like CONTINUE...the 
swf file works fine and when click on button DISMISS ALL..instead 
of stopping the functionality of swfit still works fine as 
normal..Confused.

Is anybody has idea of how to eliminate that error,

regards,

Jignesh







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



 




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

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

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

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




[flexcoders] Strange Error on compiling Flex-2 project

2006-02-21 Thread Jignesh M. Dodiya
Hi,
when I am compiling the codes in mxml,
i found the Error as below..

ActionScript Error has occured::

Error: Unknown property -1
at 
mx.collections::ListCollectionView/http://www.macromedia.com/2005/actio
nscript/flash/proxy::getProperty()
at states/states::onResult()


Strange thing is that when I click on button like CONTINUE...the 
swf file works fine and when click on button DISMISS ALL..instead 
of stopping the functionality of swfit still works fine as 
normal..Confused.

Is anybody has idea of how to eliminate that error,

regards,

Jignesh







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

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

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

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