[flexcoders] Re: Scroll Problem

2010-03-19 Thread criptopus
Basically I need to know how I would construct a VBox that must resize with the 
browser but not resize with regard to its internal contents producing scroll 
bars.

Is this possible - Anyone?

- Stephen



[flexcoders] Scroll Problem

2010-03-18 Thread criptopus
I hope this is a better explination of my problem than the last time...

In the following code how do I make the 1000px blue box to scroll in the 100% x 
100% central area with scroll bars. I have played around with 
verticalScrollPolicy but I must be missing something.

?xml version=1.0 encoding=utf-8?
mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=vertical 
verticalGap=0
mx:HBox width=100% height=50 backgroundColor=#00/
mx:HBox width=100% height=100%  horizontalGap=0
mx:VBox width=50 height=100% backgroundColor=#00/
mx:VBox width=100% height=100% backgroundColor=#008000
mx:Box width=100% height=1000 
backgroundColor=#80/
/mx:VBox
mx:VBox width=50 height=100% backgroundColor=#00/
/mx:HBox
mx:HBox width=100% height=50 backgroundColor=#00/
/mx:Application

- Thanks
- Stephen



[flexcoders] fontSize

2010-03-17 Thread criptopus
Is it possible to indicate a fontSize relative to the current size of the font, 
i.e.

text.setStyle(fontSize,x-large);

dosn't seem to work for me?



[flexcoders] Scroll Bars Headache

2010-03-17 Thread criptopus
I am creating a panel with a number of items in it that require the setting 
width=100% and height=100% but when it come to placing a panel within a 
window with scroll bars it don't like it.

The window also defined as 100% width and height just re-sizes to fit the 
content of the panel rather than remaining the same size and displaying scroll 
bars.

When I fix the height of the window (height=200) scroll bars appear but i want 
the window to fit the available space.

I tried creating a vbox at 100% x 100% and place a window in it at the height 
of the created vbox but the absolute value of height is not created when the 
percentHight is used.

All in all I can't get what I want to work.

- Any ideas anyone?



[flexcoders] Button Information

2010-03-16 Thread criptopus
I have created a number of buttons via ActionScript and displayed them on the 
screen, I would like to open a popUp showing related information. The data 
needed to show the information is a combination of text and numerics. I normaly 
just add the data to the id-tag and when it is clicked pass the id-tag 
information to the popUp but due to the number of diffrent pieces of data 
needed i need this is difficult.

Can anybody suggest a good way of adding information to a button?

- Stephen



[flexcoders] Adding a button Icon

2010-03-15 Thread criptopus
// Add TLink To Issue Box
issButArray.push(new Button());
issButArray[i].icon=@Embed(source='icons/more.gif');
issHbxArray[i].addChild(issButArray[i]);

Error :

Cannot create property icon on mx.controls.Button

how do I set a buttons icon programatically?

- Stephen



[flexcoders] Re: Adding a button Icon

2010-03-15 Thread criptopus
issButArray[i].setStyle(icon,@Embed(source='icons/more.gif'));

Type Coercion failed: cannot convert @Embed(source='icons/more.gif') to Class?

- New error?

--- In flexcoders@yahoogroups.com, Robert VanCuren Jr robert.vancuren...@... 
wrote:

 you need to use the setStyle method because icon is a style not a property.
 
 myButton.setStyle(icon, source);
 
 On Mon, Mar 15, 2010 at 8:20 AM, criptopus sd_br...@... wrote:
 
 
 
  // Add TLink To Issue Box
  issButArray.push(new Button());
  issButArray[i].icon=@Embed(source='icons/more.gif');
  issHbxArray[i].addChild(issButArray[i]);
 
  Error :
 
  Cannot create property icon on mx.controls.Button
 
  how do I set a buttons icon programatically?
 
  - Stephen
 
   
 





[flexcoders] Re: Adding a button Icon

2010-03-15 Thread criptopus
Up and running, thanks again.

--- In flexcoders@yahoogroups.com, valdhor valdhorli...@... wrote:

 Yes, this requires a class. Try creating variables to hold your icons and 
 then declaring them in your class...
 
 [Embed(source=icons/more.gif)] private var moreIcon:Class;
 
 Then use the class in the setStyle method...
 
 (issButArray[i] as Button).setStyle(icon, moreIcon);
 
 
 
 --- In flexcoders@yahoogroups.com, criptopus sd_brown@ wrote:
 
  issButArray[i].setStyle(icon,@Embed(source='icons/more.gif'));
  
  Type Coercion failed: cannot convert @Embed(source='icons/more.gif') to 
  Class?
  
  - New error?
  
  --- In flexcoders@yahoogroups.com, Robert VanCuren Jr robert.vancuren.jr@ 
  wrote:
  
   you need to use the setStyle method because icon is a style not a 
   property.
   
   myButton.setStyle(icon, source);
   
   On Mon, Mar 15, 2010 at 8:20 AM, criptopus sd_brown@ wrote:
   
   
   
// Add TLink To Issue Box
issButArray.push(new Button());
issButArray[i].icon=@Embed(source='icons/more.gif');
issHbxArray[i].addChild(issButArray[i]);
   
Error :
   
Cannot create property icon on mx.controls.Button
   
how do I set a buttons icon programatically?
   
- Stephen
   
 
   
  
 





[flexcoders] Adding a click to a button

2010-03-15 Thread criptopus
Thanks for those that helped with setting the Icon style with a button 
programatically but now I have a problem with the click event.

// Add Link To Issue Box
issButArray.push(new Button());
issButArray[i].setStyle(icon,moreIcon); 
-- Thanks!

issButArray[i].click=moreDetail();; --- How?

issButArray[i].width = 43;
issButArray[i].height = 13;
usrColArray[usrColCnt].addChild(issButArray[i]);





[flexcoders] How do I set the borderStyle in Flex

2010-03-12 Thread criptopus
I have tried both with no luck...

.setStyle(borderStyle,solid);
.borderStyle=solid;



[flexcoders] Re: File Upload Problem - Duplicate File Names

2010-02-26 Thread criptopus
I have already ran php code manually and it allowed me to over write the file, 
the same code is called via a Request() in Flex but this will not work.

- Stephen

--- In flexcoders@yahoogroups.com, valdhor valdhorli...@... wrote:

 Check the server logs. It will probably say something to the effect that 
 there is already a file by that name and it can't replace it.
 
 --- In flexcoders@yahoogroups.com, criptopus sd_brown@ wrote:
 
  I'm having trouble with file upload.
  
  I have three files:
  
  C:/File1/myfile.flv
  C:/File2/myfile.flv
  C:/File3/myotherfile.flv
  
  When I try to upload the first it works fine video plays brilliant. Then I 
  select the second file (same name, different video) and it plays the first 
  file. Just to check it again I upload the 3rd file and it plays the third 
  file, try and load the second file and it plays the first file again.
  
  I even tried sending the time along with the Request to make sure it wasn't 
  a caching issue with the browser, even done a HTML FORM and that works fine.
  
  No idea whats going on here,
  
  Any ideas?
  
  - Stephen
 





[flexcoders] Flowing Containers

2010-02-26 Thread criptopus
What I need is a mx:HBox that allows me to put Tick Boxes in it in a 
horizontal row but when the HBox resizes due to the browser window changing 
sizes it wraps the Tick Boxes onto the next line.

I thought of using Tile, but the text that comes with the tick boxes are many 
diffrent lengths long and the Tile does not take into account the length of the 
tick boxes.

from this

#  XX XXX XXX XX XXX XX #

to this

#  XX XXX XXX#
# XX XXX XX  #

when the window changes size.

- Stephen Brown



[flexcoders] Re: File Upload Modules

2010-02-24 Thread criptopus
Yes modules directory changed thus i had to ../../ as it where.

- Thanks

--- In flexcoders@yahoogroups.com, Flex myflexdownlo...@... wrote:

 Did you try using an absolute URL for server file upload url as opposed to 
 relative paths? I am not sure what url you are loading the module from 
 relative to web root and te same realtive paths as in your original app may 
 not work.
 
 Web Manager
 Flexdownloads.com
 
 --- In flexcoders@yahoogroups.com, criptopus sd_brown@ wrote:
 
  Why would file upload work before its component became a module but after 
  it becomes a module does it fail with the error...
  
  Error #2044: Unhandled IOErrorEvent:. text=Error #2038: File I/O Error.
  
  I am completely lost?
  
  - Stephen
 





[flexcoders] File Upload Problem - Duplicate File Names

2010-02-24 Thread criptopus
I'm having trouble with file upload.

I have three files:

C:/File1/myfile.flv
C:/File2/myfile.flv
C:/File3/myotherfile.flv

When I try to upload the first it works fine video plays brilliant. Then I 
select the second file (same name, different video) and it plays the first 
file. Just to check it again I upload the 3rd file and it plays the third file, 
try and load the second file and it plays the first file again.

I even tried sending the time along with the Request to make sure it wasn't a 
caching issue with the browser, even done a HTML FORM and that works fine.

No idea whats going on here,

Any ideas?

- Stephen



[flexcoders] File Upload Modules

2010-02-23 Thread criptopus
Why would file upload work before its component became a module but after it 
becomes a module does it fail with the error...

Error #2044: Unhandled IOErrorEvent:. text=Error #2038: File I/O Error.

I am completely lost?

- Stephen



[flexcoders] Array Collection

2010-02-20 Thread criptopus
I have an array collection from a HTTPService and I need to pass it over to a 
component that has use for one of the fields in the collection. I don't really 
want to pass the whole array collection over to the component but I need a list 
of user names from it to make sure the component dosn't try and duplicate any. 
I was wondering how I might split just the account name field off and pass the 
data on in an array?

- Stephen



[flexcoders] Re: Array Collection

2010-02-20 Thread criptopus
Something like ...

for each (var member in membData)
  mEdit.membAccounts.push(member.usraccount);

not sure what to type member though?

- Stephen



[flexcoders] Interface Over Public/Dispatch

2010-02-04 Thread criptopus
Why would you choose when making a component to create a interface for the 
component to pass variables to and from it over using say public variables to 
send data to the component and dispatch and listen events to return data back?

I have been using the Lynda.com tutorials and they use public/dispatch and I 
noticed from the MobileTitleWindow you could use a class interface with get and 
set?

- Stephen



[flexcoders] Re: PopUpManager Module Components

2010-02-03 Thread criptopus
One of my modules that I converted to ModuleTitleWindow is complaining about 
mx:states it says it could not resolve mc:states to a component 
implementation. It was working before so what happened and how do I put it 
right?

- Stephen Brown



[flexcoders] Identifying module loaded

2010-02-03 Thread criptopus
When I load a module...

private function loadModule(modName:String):void
{
module=ModuleManager.getModule(comps/InstCntr/ + modName + .swf);
module.addEventListener(ModuleEvent.READY, dispModule);
module.load();
}

How does my listener (dispModule) decide what has been loaded
Is their an AysyncToken or somthing?

- Stephen



[flexcoders] Preloader

2010-02-03 Thread criptopus
I would like to use the Application default preloader (gray box with rounded 
corners with a loading bar) for my modules, does anybody know how to refrence 
it?

- Stephen



[flexcoders] Re: PopUpManager Module Components

2010-02-03 Thread criptopus
Could possibly be, but any evidence to the fact has been swept under the carpet 
as I change it to states for a while and it worked. I have set it back to 
mx:states again and all is okay. *whistles gently*.

However ModuleTitleWindow is currently ModuleTitleWindow and desn't want to 
be called mx:ModuleTitleWindow or anything else for that matter. Not up on 
namespaces so I have left it as is for now. may want to name it something in 
the future though, looks better.

- Stephen



[flexcoders] Re: PopUpManager Module Components

2010-02-02 Thread criptopus
RSL's? Sorry lost me, I have only been programming in Flex for 3 months and 
object orientated programming for 2 years. Could you
or anyone else make what was said a little bit more understandable
for a novice?

--- In flexcoders@yahoogroups.com, Alex Harui aha...@... wrote:

 Sounds like a config/build issue.  If you are using RSLs make sure the main 
 app is using RSLs and the module isn't.  Otherwise, check the link-reports of 
 both SWFs to see who is responsible for TitleWindow
 
 
 On 2/1/10 5:17 PM, criptopus sd_br...@... wrote:
 
 
 
 
 
 
 When I tried the code I got the following error...
 
 I'm getting VerifyError: Error #1014: Class mx.containers::TitleWindow could 
 not be found.
 
 - Stephen
 
 --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , 
 Alex Harui aharui@ wrote:
 
  On my blog
 
 
  On 2/1/10 9:11 AM, criptopus sd_brown@ wrote:
 
 
 
 
 
 
  Can anybody give me a simple example of how I would set up a PopUp to load 
  as a module?
 
 
 
 
 
 
  --
  Alex Harui
  Flex SDK Team
  Adobe System, Inc.
  http://blogs.adobe.com/aharui
 
 
 
 
 
 
 
 --
 Alex Harui
 Flex SDK Team
 Adobe System, Inc.
 http://blogs.adobe.com/aharui





[flexcoders] Re: PopUpManager Module Components

2010-02-02 Thread criptopus
Got the program working, but just don't have the knowledge to implement it in 
my program. It just complains endlessly when I try to change my program.

I have one file index.mxml and a directory comps with popup componets in and 
their are sub directories with more popup components from those popup 
components.

My problems is where to put the ILoginDialog.as  ModuleTitleWindow.as or 
equivelent for my comps enclosed LoginDialog.mxml's or equivelent and how to 
keep them all talking and happy, oh and neat.

Going for a strong cup of coffee and to shake my head a bit.

- Stephen



[flexcoders] Re: PopUpManager Module Components

2010-02-02 Thread criptopus
Only one project, multiple components.

- Stephen

--- In flexcoders@yahoogroups.com, Alex Harui aha...@... wrote:

 You could put them in a SWC that all projects share.
 
 
 On 2/2/10 11:41 AM, criptopus sd_br...@... wrote:
 
 
 
 
 
 
 Got the program working, but just don't have the knowledge to implement it in 
 my program. It just complains endlessly when I try to change my program.
 
 I have one file index.mxml and a directory comps with popup componets in and 
 their are sub directories with more popup components from those popup 
 components.
 
 My problems is where to put the ILoginDialog.as  ModuleTitleWindow.as or 
 equivelent for my comps enclosed LoginDialog.mxml's or equivelent and how to 
 keep them all talking and happy, oh and neat.
 
 Going for a strong cup of coffee and to shake my head a bit.
 
 - Stephen
 
 
 
 
 
 
 --
 Alex Harui
 Flex SDK Team
 Adobe System, Inc.
 http://blogs.adobe.com/aharui





[flexcoders] Re: PopUpManager Module Components

2010-02-02 Thread criptopus
The following works but is rather useless
=

private var test:IUIComponent;
private var module:IModuleInfo;

private function openTest():void
{
module=ModuleManager.getModule(comps/admnCntr/test.swf);
module.addEventListener(ModuleEvent.READY, dispTest);
module.load();
}

private function dispTest(e:Event):void
{
test=module.factory.create() as IUIComponent;
PopUpManager.addPopUp(test, Application.application as DisplayObject, true);
PopUpManager.centerPopUp(test);
}

This seems to load but test fails to open a popup as it is null?


private var test:Itest;
private var module:IModuleInfo;

private function openTest():void
{
module=ModuleManager.getModule(comps/admnCntr/test.swf);
module.addEventListener(ModuleEvent.READY, dispTest);
module.load();
}
private function dispTest(e:Event):void
{
test=module.factory.create() as Itest;
PopUpManager.addPopUp(test, Application.application as DisplayObject, true);
PopUpManager.centerPopUp(test);
}


My directory structure
==

.
|   admnCntr.mxml
|   grpsCntr.mxml
|   instCntr.mxml
|   librCntr.mxml
|   userCntr.mxml
|   
+---admnCntr
|   admnArti.mxml
|   admnAsha.mxml
|   admnCata.mxml
|   admnGlry.mxml
|   admnGrps.mxml
|   admnMedi.mxml
|   admnMemb.mxml
|   admnShar.mxml
|   admnStry.mxml
|   admnUser.mxml
|   test.mxml
|   
+---grpsCntr
|   grpsRequest.mxml
|   
+---instCntr
|   |   cataList.mxml
|   |   instArti.mxml
|   |   instAsst.mxml
|   |   instFold.mxml
|   |   instGrps.mxml
|   |   instMshpGrp.mxml
|   |   instMshpMbr.mxml
|   |   instUsrs.mxml
|   |   
|   +---cataList
|   |   cataEdit.mxml
|   |   
|   +---instArti
|   |   artiEdit.mxml
|   |   
|   +---instAsst
|   |   asstEdit.mxml
|   |   
|   +---instFold
|   |   foldEdit.mxml
|   |   
|   +---instGrps
|   |   grpsEdit.mxml
|   |   
|   \---instUsrs
|   usrsEdit.mxml
|   
+---librCntr
|   |   librArti.mxml
|   |   librFold.mxml
|   |   
|   +---librArti
|   |   |   acesEdit.mxml
|   |   |   artiEdit.mxml
|   |   |   contView.mxml
|   |   |   
|   |   +---contView
|   |   |   contEdit.mxml
|   |   |   contPrev.mxml
|   |   |   mapPlay.mxml
|   |   |   vidiPlay.mxml
|   |   |   
|   |   \---itemRend
|   |   med1Type.mxml
|   |   med2Type.mxml
|   |   
|   \---librFold
|   |   acesEdit.mxml
|   |   foldEdit.mxml
|   |   mediEdit.mxml
|   |   
|   \---itemRend
|   tickBox.mxml
|   tickRqBox.mxml
|   
\---userCntr
userAmend.mxml
userRequest.mxml
userSignIn.mxml
userSignOut.mxml

Most of which are popups so unsure of anywhere I could put this
so that they would all see it?

- Stephen



[flexcoders] Re: PopUpManager Module Components

2010-02-02 Thread criptopus
Yup! that was it, marvellous. Can't believe I missed that off.
You have been very patient, thanks a lot for your help.

Yes, I would be interested in squireling away Itest rather than leaving it in 
the root project folder as I will need to build a
number of them one for each popup nearly.

How do I use project properties source-path to tidy up the file structure?

- Stephen

--- In flexcoders@yahoogroups.com, Alex Harui aha...@... wrote:

 If test is null, then the thing loaded did not implement Itest.
 
 Each module's mxml file must have:
 mx:Module ... Implements=Itest ...
 
 You can store Itest.as anywhere and point to it with the project properties 
 source-path.
 
 
 On 2/2/10 3:03 PM, criptopus sd_br...@... wrote:
 
 
 
 
 
 
 The following works but is rather useless
 =
 
 private var test:IUIComponent;
 private var module:IModuleInfo;
 
 private function openTest():void
 {
 module=ModuleManager.getModule(comps/admnCntr/test.swf);
 module.addEventListener(ModuleEvent.READY, dispTest);
 module.load();
 }
 
 private function dispTest(e:Event):void
 {
 test=module.factory.create() as IUIComponent;
 PopUpManager.addPopUp(test, Application.application as DisplayObject, true);
 PopUpManager.centerPopUp(test);
 }
 
 This seems to load but test fails to open a popup as it is null?
 
 
 private var test:Itest;
 private var module:IModuleInfo;
 
 private function openTest():void
 {
 module=ModuleManager.getModule(comps/admnCntr/test.swf);
 module.addEventListener(ModuleEvent.READY, dispTest);
 module.load();
 }
 private function dispTest(e:Event):void
 {
 test=module.factory.create() as Itest;
 PopUpManager.addPopUp(test, Application.application as DisplayObject, true);
 PopUpManager.centerPopUp(test);
 }
 
 My directory structure
 ==
 
 .
 |   admnCntr.mxml
 |   grpsCntr.mxml
 |   instCntr.mxml
 |   librCntr.mxml
 |   userCntr.mxml
 |
 +---admnCntr
 |   admnArti.mxml
 |   admnAsha.mxml
 |   admnCata.mxml
 |   admnGlry.mxml
 |   admnGrps.mxml
 |   admnMedi.mxml
 |   admnMemb.mxml
 |   admnShar.mxml
 |   admnStry.mxml
 |   admnUser.mxml
 |   test.mxml
 |
 +---grpsCntr
 |   grpsRequest.mxml
 |
 +---instCntr
 |   |   cataList.mxml
 |   |   instArti.mxml
 |   |   instAsst.mxml
 |   |   instFold.mxml
 |   |   instGrps.mxml
 |   |   instMshpGrp.mxml
 |   |   instMshpMbr.mxml
 |   |   instUsrs.mxml
 |   |
 |   +---cataList
 |   |   cataEdit.mxml
 |   |
 |   +---instArti
 |   |   artiEdit.mxml
 |   |
 |   +---instAsst
 |   |   asstEdit.mxml
 |   |
 |   +---instFold
 |   |   foldEdit.mxml
 |   |
 |   +---instGrps
 |   |   grpsEdit.mxml
 |   |
 |   \---instUsrs
 |   usrsEdit.mxml
 |
 +---librCntr
 |   |   librArti.mxml
 |   |   librFold.mxml
 |   |
 |   +---librArti
 |   |   |   acesEdit.mxml
 |   |   |   artiEdit.mxml
 |   |   |   contView.mxml
 |   |   |
 |   |   +---contView
 |   |   |   contEdit.mxml
 |   |   |   contPrev.mxml
 |   |   |   mapPlay.mxml
 |   |   |   vidiPlay.mxml
 |   |   |
 |   |   \---itemRend
 |   |   med1Type.mxml
 |   |   med2Type.mxml
 |   |
 |   \---librFold
 |   |   acesEdit.mxml
 |   |   foldEdit.mxml
 |   |   mediEdit.mxml
 |   |
 |   \---itemRend
 |   tickBox.mxml
 |   tickRqBox.mxml
 |
 \---userCntr
  userAmend.mxml
  userRequest.mxml
  userSignIn.mxml
  userSignOut.mxml
 
 Most of which are popups so unsure of anywhere I could put this
 so that they would all see it?
 
 - Stephen
 
 
 
 
 
 
 --
 Alex Harui
 Flex SDK Team
 Adobe System, Inc.
 http://blogs.adobe.com/aharui





[flexcoders] Re: PopUpManager Module Components

2010-02-02 Thread criptopus
Yup! that sorted it out, and adding classes folder worked as well.
Thanks for your time and effort, you have been really patient,
I will mention you in my acknowledgements when I write my dissertation.

- Stephen

--- In flexcoders@yahoogroups.com, Alex Harui aha...@... wrote:

 If test is null, then the thing loaded did not implement Itest.
 
 Each module's mxml file must have:
 mx:Module ... Implements=Itest ...
 
 You can store Itest.as anywhere and point to it with the project properties 
 source-path.
 
 
 On 2/2/10 3:03 PM, criptopus sd_br...@... wrote:
 
 
 
 
 
 
 The following works but is rather useless
 =
 
 private var test:IUIComponent;
 private var module:IModuleInfo;
 
 private function openTest():void
 {
 module=ModuleManager.getModule(comps/admnCntr/test.swf);
 module.addEventListener(ModuleEvent.READY, dispTest);
 module.load();
 }
 
 private function dispTest(e:Event):void
 {
 test=module.factory.create() as IUIComponent;
 PopUpManager.addPopUp(test, Application.application as DisplayObject, true);
 PopUpManager.centerPopUp(test);
 }
 
 This seems to load but test fails to open a popup as it is null?
 
 
 private var test:Itest;
 private var module:IModuleInfo;
 
 private function openTest():void
 {
 module=ModuleManager.getModule(comps/admnCntr/test.swf);
 module.addEventListener(ModuleEvent.READY, dispTest);
 module.load();
 }
 private function dispTest(e:Event):void
 {
 test=module.factory.create() as Itest;
 PopUpManager.addPopUp(test, Application.application as DisplayObject, true);
 PopUpManager.centerPopUp(test);
 }
 
 My directory structure
 ==
 
 .
 |   admnCntr.mxml
 |   grpsCntr.mxml
 |   instCntr.mxml
 |   librCntr.mxml
 |   userCntr.mxml
 |
 +---admnCntr
 |   admnArti.mxml
 |   admnAsha.mxml
 |   admnCata.mxml
 |   admnGlry.mxml
 |   admnGrps.mxml
 |   admnMedi.mxml
 |   admnMemb.mxml
 |   admnShar.mxml
 |   admnStry.mxml
 |   admnUser.mxml
 |   test.mxml
 |
 +---grpsCntr
 |   grpsRequest.mxml
 |
 +---instCntr
 |   |   cataList.mxml
 |   |   instArti.mxml
 |   |   instAsst.mxml
 |   |   instFold.mxml
 |   |   instGrps.mxml
 |   |   instMshpGrp.mxml
 |   |   instMshpMbr.mxml
 |   |   instUsrs.mxml
 |   |
 |   +---cataList
 |   |   cataEdit.mxml
 |   |
 |   +---instArti
 |   |   artiEdit.mxml
 |   |
 |   +---instAsst
 |   |   asstEdit.mxml
 |   |
 |   +---instFold
 |   |   foldEdit.mxml
 |   |
 |   +---instGrps
 |   |   grpsEdit.mxml
 |   |
 |   \---instUsrs
 |   usrsEdit.mxml
 |
 +---librCntr
 |   |   librArti.mxml
 |   |   librFold.mxml
 |   |
 |   +---librArti
 |   |   |   acesEdit.mxml
 |   |   |   artiEdit.mxml
 |   |   |   contView.mxml
 |   |   |
 |   |   +---contView
 |   |   |   contEdit.mxml
 |   |   |   contPrev.mxml
 |   |   |   mapPlay.mxml
 |   |   |   vidiPlay.mxml
 |   |   |
 |   |   \---itemRend
 |   |   med1Type.mxml
 |   |   med2Type.mxml
 |   |
 |   \---librFold
 |   |   acesEdit.mxml
 |   |   foldEdit.mxml
 |   |   mediEdit.mxml
 |   |
 |   \---itemRend
 |   tickBox.mxml
 |   tickRqBox.mxml
 |
 \---userCntr
  userAmend.mxml
  userRequest.mxml
  userSignIn.mxml
  userSignOut.mxml
 
 Most of which are popups so unsure of anywhere I could put this
 so that they would all see it?
 
 - Stephen
 
 
 
 
 
 
 --
 Alex Harui
 Flex SDK Team
 Adobe System, Inc.
 http://blogs.adobe.com/aharui





[flexcoders] SWF files inside htmlText

2010-02-01 Thread criptopus
Is it possible to pass params to swf files inside htmlText. I was wondering if 
it would take URL params but then I remembered you needed special OBJECT 
EMBED stuff in HTML and thought you couldn't?



[flexcoders] PopUpManager Module Components

2010-02-01 Thread criptopus
Can anybody give me a simple example of how I would set up a PopUp to load as a 
module?



[flexcoders] Re: PopUpManager Module Components

2010-02-01 Thread criptopus
When I tried the code I got the following error...

I'm getting VerifyError: Error #1014: Class mx.containers::TitleWindow could 
not be found.

- Stephen

--- In flexcoders@yahoogroups.com, Alex Harui aha...@... wrote:

 On my blog
 
 
 On 2/1/10 9:11 AM, criptopus sd_br...@... wrote:
 
 
 
 
 
 
 Can anybody give me a simple example of how I would set up a PopUp to load as 
 a module?
 
 
 
 
 
 
 --
 Alex Harui
 Flex SDK Team
 Adobe System, Inc.
 http://blogs.adobe.com/aharui





[flexcoders] Re: Image contentWidth

2010-01-27 Thread criptopus
Tried the CREATION event it didn't work, but I managed to get round the 
problem. I just set a boolean flag when it changes. And when I need to deal 
with the change i check the flag. No what I was looking for but gets around the 
EVENT problem.

- Stephen

--- In flexcoders@yahoogroups.com, Gregor Kiddie gregor.kid...@... wrote:

 Add an event listener in for the complete event. It gets fired once
 the content is loaded, so it'll fire each time, unlike creationComplete.
 
  
 
 http://www.adobe.com/livedocs/flex/3/langref/mx/controls/SWFLoader.html#
 event:complete
 
  
 
 Gk.
 
  
 
 From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
 Behalf Of criptopus
 Sent: 25 January 2010 15:39
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Image contentWidth
 
  
 
   
 
 How do I detect when an Image has changed so that I can read the
 contentWidth of it. An image has already loaded previously so Creation
 Complete has been done with a different image?





[flexcoders] Image contentWidth

2010-01-25 Thread criptopus
How do I detect when an Image has changed so that I can read the contentWidth 
of it. An image has already loaded previously so Creation Complete has been 
done with a different image?



[flexcoders] Re: horizontalAlign Puzzling

2010-01-22 Thread criptopus
Yup that did it!

--- In flexcoders@yahoogroups.com, turbo_vb timh...@... wrote:

 I think because horizontalAlign is a style, not a property.  Try setStyle();
 
 -TH
 
 --- In flexcoders@yahoogroups.com, criptopus sd_brown@ wrote:
 
  var boxArray:Array=new Array();
  var boxIdx:int=boxArray.length;
  boxArray.push(new Box());
  boxArray[boxIdx].percentWidth=100;
  
  Why not...?
  
  boxArray[boxIdx].horizontalAlign=center;
  
  - Stephen
 





[flexcoders] Public Arrays

2010-01-22 Thread criptopus
I have an array of Video Players (yes video players, if people set up more than 
one in the CMS why should I deny them the luxury).

I have just opened a preview window and there they are and they play lovely, 
just when I click the cross to close the TitleWindow they are displayed in I 
would like to stop them all playing.

Fortunately or unfortunately I have references to the custom players in an 
array I was going to make public so that the calling program that opened the 
pop up could close all those that where playing.

The the problem, don't seem to be able to make an array public, it will let me 
define it as public but it does not like me referencing it.

Does anybody have a work around?

- Stephen



[flexcoders] Quick Question?

2010-01-21 Thread criptopus
I have loaded an image into a mx:Image/ component, how do I get the 
dimentions of the source image in the file it comes from.

when I try contentWidth  contentHeight I just get the current displayed width 
and hight, not the image files width and height?

- Stephen



[flexcoders] Re: Quick Question?

2010-01-21 Thread criptopus
Not in mine, I have an image 800x800 and i display it in a much smaller window 
and contentHeight and contentWidth are much smaller!

--- In flexcoders@yahoogroups.com, Tibor Ballai ballai.t...@... wrote:

 Hi Stephen,
 
 You'll find those values in the Image component's contentHeight and 
 contentWidth properties.
 
 Tibor.
 
 www.tiborballai.com
 
 criptopus wrote:
 
  I have loaded an image into a mx:Image/ component, how do I get the 
  dimentions of the source image in the file it comes from.
 
  when I try contentWidth  contentHeight I just get the current 
  displayed width and hight, not the image files width and height?
 
  - Stephen
 
 





[flexcoders] Re: Quick Question?

2010-01-21 Thread criptopus
Strange its working now, no idea what that was, but thanks for the confirmation.

--- In flexcoders@yahoogroups.com, Tibor Ballai ballai.t...@... wrote:

 Hi Stephen,
 
 You'll find those values in the Image component's contentHeight and 
 contentWidth properties.
 
 Tibor.
 
 www.tiborballai.com
 
 criptopus wrote:
 
  I have loaded an image into a mx:Image/ component, how do I get the 
  dimentions of the source image in the file it comes from.
 
  when I try contentWidth  contentHeight I just get the current 
  displayed width and hight, not the image files width and height?
 
  - Stephen
 
 





[flexcoders] horizontalAlign Puzzling

2010-01-21 Thread criptopus
var boxArray:Array=new Array();
var boxIdx:int=boxArray.length;
boxArray.push(new Box());
boxArray[boxIdx].percentWidth=100;

Why not...?

boxArray[boxIdx].horizontalAlign=center;

- Stephen



[flexcoders] Re: How do I get an array of Images

2010-01-19 Thread criptopus
Thank you, thank you. I did know they started at 0 but I must have been working 
to late and let that slip from my mind.

I did read about Vector's and how they where more suited than arrays as long as 
if they where of the same type although I don't seem to be able to use them in 
Flex, I currently have the 3.2 compiler are they not available or does it need 
including as a package?

- Stephen



[flexcoders] Identifying which image caused the event?

2010-01-19 Thread criptopus
If i have an event Listener of the following type on an array element how do I 
determine the element from within the event so as to set one of the elements 
properties.

e.g.

imgArray[imgIdx].addEventListener(Event.COMPLETE, adjustImage);

private function adjustImage(e:Event):void
{

var picWidth:int=(e.currentTarget as Image).width;
imgArray[???].height=picWidth * 2;

}

- Stephen



[flexcoders] Image Size

2010-01-19 Thread criptopus
Is it possible to find out the dimensions of an image without actually loading 
the image?

I am going to use an image inline with a Text() object using the normal img 
src='xyz.png' etc and I have discovered it you state the height you also need 
to state the width and if you state the width you have to state the height, 
which is a pain it doesn't automatically scale one with the other.

- Stephen



[flexcoders] Bounding Box Problem (Again)

2010-01-18 Thread criptopus
This time it is in the dynamic code...
pageContent is a VBox on a TitleWindow.
var 
box:Box=new Box();  
box.percentWidth=100;   
box.setStyle(horizontalAlign,center);
var image:Image = new Image();
image.percentWidth = psize;
image.source = med2file;
box.addChild(image);
pageContent.addChild(box);

How do I stop the bounding box from rocketting off the bottom of the VBox. I've 
even got scroll bars to show for it.

How do I tightly close my bounding box around the scaled image?

- Stephen



[flexcoders] How do I get an array of Images

2010-01-18 Thread criptopus
var imgArray:Array = new Array();

imgArray.push(new Image());

imgArray[imgArray.length].percentWidth=50;

imgArray[imgArray.length].source=/media/Image.png;

imgArray[imgArray.length].addEventListener(Event.COMPLETE, 
AdjustImageDimensions);

etc.

I just dont get it, can someone elusidate me on how its done!





[flexcoders] Image Bounding Box

2010-01-17 Thread criptopus
When I place an image that is 400px x 200px inside a box that is 100px x 100px 
the image shrinks to 100px x 50px to fit inside the box as it should. Now I am 
trying to place a number of these boxes above each other and having the 50px of 
blank space is not good so I tried removing the height property expecting the 
bounding box to snap in to 50px well it didn't it snapped out to 200px the 
height of the original box before scaling.

How on earth do you get the box's bonding box to fit the image. I tried to 
detect the image height but it just said it was 0. Not helpful.

Any clues?

- Stephen Brown.



[flexcoders] Re: Image Bounding Box

2010-01-17 Thread criptopus
mx:Image id=img width=80 source=Image.png
complete=img.height = img.content.height / img.content.width * 80/

Got it working, here is the solution in case anybody else has the problem.

- Stephen



[flexcoders] Single Record Tables

2010-01-10 Thread criptopus
I have a table with a single record in it and I've been trying to read it with 
not too much luck. Tried a couple of ideas one was using try and catch which 
seemed to work but has stopped working for some unknown reason. This is my 
latest attempt to load an ArrayCollection.

Anybody got any suggestions?

if (event.result.response.data != null)
{
if (event.result.response.data.row[0].usrid)
{
// Deal with many rows
memberData=event.result.response.data.row as ArrayCollection;
}
else
{
// Deal with a single row.
var rcd:Object=new Object();
rcd.usrid=event.result.response.data.row.usrid;
rcd.grpid=event.result.response.data.row.grpid;
rcd.membstatus=event.result.response.data.row.membstatus;
memberData=new ArrayCollection();
memberData.addItem(rcd);
}
else
{
// Deal with no rows.
memberData=new ArrayCollection();
}




[flexcoders] HTTPService Internet Explorer

2010-01-09 Thread criptopus

I set up a popup TitleWindow which sets up a HTTPService and do a FindAll, I 
listen for the data coming in and then populate my datagrid. I then make some 
changes and post them off to the service and then close the popup.

When I open the popup again and the data is re-read in Firefox it is read 
correctly as I have changed it but when its run under Internet Explorer it has 
not detected the changes.

Checking the database the data has changed.

Why would I.E. not read the changes made but Firefox does?

- Stephen




[flexcoders] Re: HTTPService Internet Explorer

2010-01-09 Thread criptopus
If feels as if I.E. is caching the first read and when it goes back after the 
changes are made its just re-reading the cache.

Has anybody else found this, and maybe found a solution?



Re: [SPAM] [flexcoders] HTTPService Internet Explorer

2010-01-09 Thread criptopus
Yup managed to sort it out.

Stuck the time into the URL string to make it unique

var dNoCache:Date = new Date();
params.nocache = dNoCache.getTime().toString();

:)

- Stephen



[flexcoders] TextArea control

2010-01-09 Thread criptopus
How do I leave a space/margin between the text and the edge of the TextArea 
control. It looks odd having the text right up against the scroll bar?



[flexcoders] Re: TextArea control

2010-01-09 Thread criptopus
Disregard, padding - didn't have to look far.



[flexcoders] Video Only Plays Once!

2010-01-09 Thread criptopus
I have a video that plays in a popup TitleWindow when I press a button.

If I run the website at localhost it plays and replays fine.
But if I upload it to a webserver it will only play once.
The second time I open the popup its blank and will not play again.
It will not play anywhere else on my site but other videos play
fine but yet again only once.

Just a bit confusing, any ideas?

- Stephen



[flexcoders] Re: Flex 3.5 - And Text Flow

2010-01-08 Thread criptopus
I'm going to pass on TextFlow until I get Flash Builder 4 in Flex Builder 3 the 
Design view is just blank when trying to work with it.

- Stephen

--- In flexcoders@yahoogroups.com, Andriy Panas a.pa...@... wrote:

 Hi Stephen,




[flexcoders] Passing parameters into Component Item Renderers

2010-01-08 Thread criptopus
I have an item renderer for a column of a table and I want to display the 
column of the table in a different way independent of the data that is sent to 
the item renderer.

For example if John is logged in I want the column to use two radio buttons and 
if Pete is logged in I want the column to use tick boxes.

I was toying with setting up a public variable inside the item renderer but 
when and where do I pass the variable in if each row runs separately?

Any ideas?

- Stephen Brown



[flexcoders] Re: Passing parameters into Component Item Renderers

2010-01-08 Thread criptopus
My item renderer is as follows:-

===code
?xml version=1.0 encoding=utf-8?
!-- itemRenderer for foldEdit --
mx:HBox xmlns:mx=http://www.adobe.com/2006/mxml; horizontalAlign=center
mx:Script
![CDATA[
import mx.events.FlexEvent;

public var retValue:String;

override public function set data(value:Object):void
{
if (value != null)
{
super.data=value;

if (value.shastatus == E)
shared.selected=true;
else
shared.selected=false;
}
dispatchEvent(new 
FlexEvent(FlexEvent.DATA_CHANGE));
}

private function change():void
{
if (shared.selected == true)
retValue=E
else
retValue=D;
}
]]
/mx:Script
mx:CheckBox id=shared change=change();/
/mx:HBox
===code

So are you saying I set up a:: Static Public var allowEdit:Boolian; :: in here 
and how do I define it from the Datagrid, do I have to include it and set an 
instance up of it, that doesn't sound right to me. - I'm only a beginner any 
code hints would be great.



[flexcoders] Re: Passing parameters into Component Item Renderers

2010-01-08 Thread criptopus
Excellent I managed it...

comps.librCntr.librFold.itemRend.tickBox.allowEdit = true;

blooming long but it works.

I even bound the static public variable to enable property and it worked.

Thanks very much.

- Stephen



[flexcoders] Re: Passing parameters into Component Item Renderers

2010-01-08 Thread criptopus
With using a static public variable is their any chance that multiple users 
will inter fear with each others

comps.librCntr.librFold.itemRend.tickBox.allowEdit

values?

- Stephen



[flexcoders] Re: Passing parameters into Component Item Renderers

2010-01-08 Thread criptopus
Of cause, thanks for the reassurance.

Just one more thing though, how would I with the routine I currently have 
effect a tick box in the same data grid. So that if I should tick this item 
renderers tick box another item renderers tick box will also be ticked in the 
same row.

@v@ Stephen Brown



[SPAM] [flexcoders] Re: Passing parameters into Component Item Renderers

2010-01-08 Thread criptopus
That sounds a lot easier, maybe there is some listener I can add for changes 
made in the Array Collection, hmm! Will have a look at that tomorrow.

Thanks Stephen



[flexcoders] Flex 3.5 - And Text Flow

2010-01-05 Thread criptopus
In Desktop Publishing packages you can flow text from one text block into 
another text block, does anybody know if this is possible in FLEX.
Currently I have Flex 3.5 SDK and Flash 10 installed.

- Stephen Brown



[flexcoders] RichTextEditor Question

2009-12-23 Thread criptopus
How do I use FocusManager to focus the cursor on the text entry area.

mx:RichTextEditor id=textArea/

focusManager.setFocus(textArea);

This doesn't work as it causes an...

Implicit coercion of a value of type mx.controls:RichTextEditor to an unrelated 
type mx.managers:IFocusManagerComponent.

Du!

- Stephen Brown



[flexcoders] Transitioning a popup?

2009-12-13 Thread criptopus
I have the following code:

mx:states
mx:State name=openRight
mx:SetProperty name=width value=670/
mx:AddChild relativeTo={controlbar1}

etc.

And I am trying to get it to transition to and from this state using...

mx:transitions
mx:Transition id=myTransition fromState=* toState=*
mx:Resize duration=400 target={this}/

I think I have the targeting wrong, any ideas as to what it should be or where 
I am going wrong?

- Stephen



[flexcoders] itemRenderers, DataGrids Scroll Bars Madness!!!

2009-12-13 Thread criptopus
Why does this work as an itemRenderer


?xml version=1.0 encoding=utf-8?
mx:HBox xmlns:mx=http://www.adobe.com/2006/mxml; width=100 height=62

mx:Image source={'media/0' + data.medid + '+' + data.medbody} 
width=100% height=100%/

/mx:HBox


And why does this not work 


?xml version=1.0 encoding=utf-8?
mx:HBox xmlns:mx=http://www.adobe.com/2006/mxml; width=100 height=62 
creationComplete=init();

mx:Script
![CDATA[

[Bindable]
private var myPict:String;

private function init():void
{
myPict='media/0' + data.medid + '+' + data.medbody;
}

]]
/mx:Script

mx:Image source={myPict} width=100% height=100%/

/mx:HBox


 Its driving me loopy, both displays pictures in the dataGrid on start up, 
but the second one goes hay wire and displays the wrong pictures when you 
scroll. Its just madness!!!

- Stephen



Re: [SPAM] [flexcoders] itemRenderers, DataGrids Scroll Bars Madness!!!

2009-12-13 Thread criptopus
Thanks Tracy,

I managed to figure out it was the creationComplete that stopped firing when I 
scrolled the dataGrid as I traced the calls and they where just not firing. 
What you said about override is a little above my head, so if you do see any 
good examples please send me a link as I wouldn't really know what looks good 
unfortunately.

- Stephen



[flexcoders] Composite Primary Key

2009-12-05 Thread criptopus
I have a composite primary key in my table (i.e. primary key consists of two 
attributes). I am trying to update them in Flex. I use Flex Builder and can 
generate the php Services to access normal tables with standard primary keys 
but this is far too much for Flex Builder.

Does anyone have any modifications to the php Service thats provided with Flex 
builder that could enable me to get composite keys working?

- Stephen Brown



[flexcoders] Re: Composite Primary Key

2009-12-05 Thread criptopus
Hope this helps some one.

All sorted now Insert routine worked fine, but the Update errored with 1-1 
for key 'Primary'. Managed to change the php to the following...

// check to see if the record actually exists in the database
// (modified to include composite primary key)

$query_recordset = sprintf(SELECT * FROM `table/view` WHERE firstid = %s AND 
secondid = %s, GetSQLValueString($_REQUEST[firstid], int), 
GetSQLValueString($_REQUEST[secondid], int)

...

// build and execute the update query
//(modified to include composite primary key)

$row_recordset = mysql_fetch_assoc($recordset);
$query_update = sprintf(UPDATE `table/view` SET attribute1 = %s WHERE firstid 
= %s AND secondid = %s, GetSQLValueString($_REQUEST[attribute1], text), 
GetSQLValueString($row_recordset[firstid], int), 
GetSQLValueString($row_recordset[secondid], int)
);

...

// return the updated entry
//(modified to include composite primary key)

$toret = array(
data = array(
array(
firstid = $row_recordset[firstid], 
secondid = $row_recordset[secondid], #
attribute1 = $_REQUEST[attribute2]#

...

Okay, done!




[flexcoders] Flex Builder 3 - Crashes

2009-12-01 Thread criptopus
It has happened now 4 times,

When I exit Flex Builder 3 my system crashes, screen goes black and the system 
restarts. When I re-run Flex Builder it shows nothing in the Flex Navigator.

This wouldn't be a problem as I save (export) my work but the exported work 
dosn't restore properly, while before I was working in the debug area it 
insists on working in the release area. Which is not how I had it set up.

The only way I recover successfully is to create a new project, set up all my 
php services and copy the files back, which takes ages.

Anybody have the same trouble, if so does anybody have any way to speed up the 
restore or stop the crash happening?

- Stephen



[flexcoders] XMLList refrence problem

2009-11-27 Thread criptopus
I have this...

mx:XMLList id=types
type name=Non Member/
type name=Member/
type name=Instructor/
type name=Administrator/
/mx:XMLList

With a datagrid with this in...

mx:itemRenderer
mx:Component
mx:Label text={data.usrstatus}/
/mx:Component
/mx:itemRenderer

What do I put in the {} to get:

Non-Member to show up for data.usrstatus == 0
Member to show up for data.usrstatus == 1
etc.

Its been driving me crazy!

- Stephen




[flexcoders] Can't Listen to component?

2009-11-25 Thread criptopus
I am getting an error on the line that starts with myUserCntr.
which is 1061: Call to a possibly undefined method addListener through a 
reference with static type comps:userCntr.

Can kind person tell me where I am going wrong here as index.mxml needs to 
listen for a dispatch event on one of its components 
the component is MXML'ed into the index.mxml file rather than
created through actionscript?

- Stephen

===
index.mxml The Main Display
===

...
import flash.events.Event;

private function init():void
  {
myUserCntr.addListener(OpenAdmnCntr, openAdmnCntrHandler);
  }

private function openAdmnCntrHandler():void
  {
// Do something.
  }
...

...
comps:userCntr id=myUserCntr/



=
userCntr.mxml (The Component)
=

...
mx:Metadata
  [Event(name=OpenAdmnCntr, type=flash.events.Event)]
/mx:Metadata
...

...
dispatchEvent(new Event('OpenAdmnCntr'));
...




[flexcoders] Combo Box Data Grid

2009-11-25 Thread criptopus
If I have a table with a field that contains the numbers 0,1,2,3 and I want 
them to be displayed in the data grid say as Non-Member, 
Member,Instructor,Administrator and be able to select them with a combo 
box only to have the numeric value posted back to the table.

How do you do it?



[flexcoders] Errors sorting a arrayCollection ready for searching?

2009-11-23 Thread criptopus
Don't understand why im getting these errors, can anybody help?

I have just created an arrayCollection from a HTTPService that reads a table 
from my database. I am trying to check to see if the new user has entered an 
already used account name.

After reading a number of articles I discovered searching the arrayCollection 
was possible but only after sorting the collection, this is what I am having 
trouble with.

Here is my code:

private function userHandler(event:ResultEvent):void
{
  acUsers = event.result.response.data.row;
  acUsers.fields = [new SortField(usraccount, true)];
  acUsers.sort=acUsers;
  acUsers.refresh();
}

I am getting the following error at (acUsers.sort=acUsers;):

implicit coercion of a value of type
mx.collections:ArrayCollection
to an unrelated type
mx.collections:Sort.

and also an error at (acUsers.fields = [new SortField(usraccount, true)];)

Access of possibly undefined property
fields through a refrence with static type mx.collections:ArrayCollection.





[flexcoders] Validation Error !!!!

2009-11-19 Thread criptopus
I have a custom mxml component that is added using a popUpManager in the 
component which is a TitleWindow sits a Form and when I try to add a Validator 
to the form i get this compile error.

Component declarations are not allowed here. (Note: visual children must 
implement mx.core.IUIComponent)

Experimental/src/comps  Register.mxml   line 12 1258681868656   84

Anybody got any clue whats going on?



[flexcoders] Help with Arrays, ArrayCollections Repeaters

2009-11-01 Thread criptopus
I'm trying to get these X's to appear in a circle and not having much lock with 
it. The array seems to work when I trace it but nothing appears on the screen. 
I tried just defining an MXML ArrayCollection and it worked but I want them 
Bindable so I can move them about.

Code so far...

?xml version = 1.0?
mx:Application xmlns:mx = http://www.adobe.com/2006/mxml;
xmlns = *
layout = absolute
creationComplete = makeChange();
mx:Script
![CDATA[

[Bindable]
private var myLabels:Array = new Array();

private function makeChange():void {
var i:int, cx:int, cy:int;
for (i = 0; i  36; i++) {
cx = 200 + 200 * Math.sin(i / 18 * Math.PI);
cy = 200 - 200 * Math.cos(i / 18 * Math.PI);
myLabels.push({ label: X, x: cx, y: cy });
}
}
]]
/mx:Script

mx:ArrayCollection id = myLabelsAC source = {myLabels}/

mx:Repeater id = myLabelsRep dataProvider = {myLabelsAC}
mx:Label id = nameLabel
  x = {myLabelsRep.currentItem.x}
  y = {myLabelsRep.currentItem.y}
  text = {myLabelsRep.currentItem.label}
  fontSize = 20/
/mx:Repeater

/mx:Application

Any help appreciated as I am just a learner.