[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

[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

[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

[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
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

[flexcoders] Re: Adding a button Icon

2010-03-15 Thread criptopus
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

[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!

[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
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

[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

[flexcoders] Re: File Upload Modules

2010-02-24 Thread criptopus
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

[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

[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

[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

[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

[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

[flexcoders] Re: PopUpManager Module Components

2010-02-02 Thread criptopus
/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

[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

[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

[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);

[flexcoders] Re: PopUpManager Module Components

2010-02-02 Thread criptopus
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

[flexcoders] Re: PopUpManager Module Components

2010-02-02 Thread criptopus
, 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

[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

[flexcoders] Re: Image contentWidth

2010-01-27 Thread criptopus
: 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

[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

[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

[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
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

[flexcoders] Re: Quick Question?

2010-01-21 Thread criptopus
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

[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

[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

[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;

[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

[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

[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

[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

[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

[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

[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

[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.

[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

[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

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

[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

[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 =

[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

[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}/

[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

[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

[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)

[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