[flexcoders] changing displayObject parent dynamically throws error...

2008-11-04 Thread Durres76
Hi, i have a simple test project and the sudo code is below:


 
   
 
 
 


the idea is to move the 'greenPanel' to and from the stage. I can move 
it from the redPanel and into the stage without any problems but when 
the other button is clicked to move it back from the stage to the 
redPanel i get the error below. does anyone have an idea as to what 
might be causing this error.

ERROR: supplied displayobject must be a child of the caller



[flexcoders] Re: flex builder 3 and ganymede

2008-10-27 Thread Durres76
strange, i've done this a few times and it doesn't work for me



[flexcoders] Re: flex builder 3 and ganymede

2008-10-23 Thread Durres76
i tried that but it did not work for me. i'm on vista. what are you 
on?



[flexcoders] flex builder 3 and ganymede

2008-10-21 Thread Durres76
hi,
has anyone been able to get FB3 plugin to work with Ganymede, Eclipse 
3.4? i am on a Vista machine and installed FB3 plugin without a hitch. 
when i start eclipse i don't see any Flex perspectives listed. What's 
even more odd is that when i go to About Eclipse i see a Flex button 
on the list of plugins. i've also tried to add the plugin manually by 
pointing to the local install but with no luck.

thanks,
d



[flexcoders] Re: e4x filtering of xml nodes...

2008-09-26 Thread Durres76
Daniel, that was exactly the problem. some of my MetaData nodes did
not have entryid items and that's why i was getting the errors. your
suggestion takes care of that.

Thanks,
d



[flexcoders] e4x filtering of xml nodes...

2008-09-25 Thread Durres76
hi,
i'm getting a strange error, strange to me at least, when i run the
following expression on the below xml data:
 - expression: myData.Entry..MetaData.(itemid == 1234)
 - var myData = 

  

  1234

  
  

  1234

  
  

  12345

  


This is the runtime error in Flex:
ReferenceError: Error #1065: Variable itemid is not defined

i can't understand how itemid is not defined.

Thanks,
d



[flexcoders] Re: RadioButtonGroup id not settable using repeater index...

2008-09-16 Thread Durres76
the following code throws the compile time error below:

 
 
 


error: Unable to generate initialization code within Repeater, due to
id or data binding on a component that is not a visual child.

I'm not sure how your method would work in this scenario.



[flexcoders] RadioButtonGroup id not settable using repeater index...

2008-09-16 Thread Durres76
hey,
i'm generating radio button groups using a repeater, but am getting
errors when trying to set the id of RadioButtonGroup using the
repeater index. The code is below. How else can you generate multiple
groups dynamically


  
some Radio buttons.
  


Thanks,
d 



[flexcoders] Bi-directional binding

2008-08-18 Thread Durres76
hi, is this possible.
var arr : ArrayCollection;



I know the textfield text will change everytime the ArrayCollection updates, 
but can the ArrayCollection update when a user types in the textfield. 
essentially binding the array propety to the textfield value

thanks.



[flexcoders] ApplicationDomain.currentDomain.getDefinition

2008-07-11 Thread Durres76
Hi,
i'm trying to instantiate an object using:
ApplicationDomain.currentDomain.getDefinition from a string passed in
an xml file. As in AS2 this only works if you predefine a variable of
that same object type. is there a way to get this working without
predefining the variable.

Thanks,
dhimiter



[flexcoders] multidimentional ArrayCollections and collectionEvent....

2008-06-19 Thread Durres76
Hi,
collectionEventKind.Update does not seem to fire when subitems within
a collection change, i.e.. 
myArr = new ArrayCollection();
myOtherArr = new ArrayCollection();
myArr.addItem(myOtherArr);

the update event does not fire if myOtherArr changes. it does if myArr
changes. 



[flexcoders] Re: ClassReference and resourceBundles

2008-05-30 Thread Durres76
the idea is that each locale will have it's own views that are linked to the 
same app. i want to 
switch to the correct view Clases for the selected locale. 
here's my logic: if US use the extededView which is declared in the properties 
file for that 
locale. if FR use the quickView which is declared in the properties file for 
that locale.
am i thinking about this the wrong way?
btw, the views would probably either extend or implement the same parent 
classes.

Thanks,
d



[flexcoders] ClassReference and resourceBundles

2008-05-29 Thread Durres76
Hi,
can you use ClassReference to point to a display object, i.e.
ClassReference("com.SpecialViewCanvas")?
i'm trying to do that but then how do you add that as a child of a
container?

thanks,
d 



[flexcoders] Re: loading resource bundles manually in flex3

2008-05-29 Thread Durres76
Hi Gordon,
thanks for the quick reply. I want to use property files for the app
config because we may share some of those properties with java
classes. in addition it's nice that i don't have to parse them and
that they're bindable.
BTW, can i load a properties file that was not declared in the
Metadata tags during compile time, i.e.
ResourceManager.loadResource("config.properties")

Thanks,
d



[flexcoders] loading resource bundles manually in flex3

2008-05-29 Thread Durres76
Hi,
i'm trying to use the .properties files to configure my app. This is
outside of the general localization discussions and i'm running into a
few problems. i'm building an internal global tool and want to use
property files to define the specific views and attributes for each
section. in my project i have a folder called: properties and in it
there is a folder for en_US.
inside of en_US i have two folders, one for each section: UPD and BBS.
each of those folders have their own config.properties file.
the compile directives look like this: -locale=en_US
-allow-source-path-overlap=true
-source-path=properties/{locale}/UPD,properties/{locale}/BBS

in my application there is a drop down with BBS and UPD options. I
want to switch to the correct bundle when a user changes the dropdown
values. attached is the code for the dropdown and the switching.

can someone tell me how to point to the correct bundles?

Thanks,
d

Attach Code


http://www.adobe.com/2006/mxml";
layout="vertical"
xmlns:view="com.view.*"
xmlns:admin="com.view.adminScreens.*">



 


[ResourceBundle("config")]