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
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
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?
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
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
// 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
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
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
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!
I have tried both with no luck...
.setStyle(borderStyle,solid);
.borderStyle=solid;
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
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
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
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
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
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
Something like ...
for each (var member in membData)
mEdit.membAccounts.push(member.usraccount);
not sure what to type member though?
- Stephen
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
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
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
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
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
/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
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
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
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);
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
, 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
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?
Can anybody give me a simple example of how I would set up a PopUp to load as a
module?
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@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
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?
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
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
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
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
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
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
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
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
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
This time it is in the dynamic code...
pageContent is a VBox on a TitleWindow.
var
box:Box=new Box();
box.percentWidth=100;
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
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
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
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
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
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?
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
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?
Disregard, padding - didn't have to look far.
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
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,
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
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
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
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
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
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
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
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.
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
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
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
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
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 =
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
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}/
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
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?
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
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)
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
74 matches
Mail list logo