[flexcoders] What is the command-line equivalent to Flex Builder's "Build Project.." Command?
In my program, I have been receiving an error when I use a command-line compile command for mxmlc. The error is related to an embedded font name not being correctly identified by flex in the system fonts list. However, on a whim, I decided to copy the code to Flex Builder and compile it there. To my surprise, it worked, and it found the proper font using the same system name I had given (PMingLiU). I suspected my problem may be a locale one, and that my system cannot correctly identify the font name because of locale considerations. I've tried setting the locale of the compile code to en_US, to no avail. So I would like to ask if anyone here knows the exact command string that Flex tells Mxmlc whenever it compiles a project. My answer might lie there.
[flexcoders] DataGrid - how to show the editor for a particular cell?
Hi, Say I have a datagrid with editable cells. That is, the user can click the cell to make the itemEditor appear and input data. This datagrid also has a feature that if I click on an empty row, I add a new record to the dataProvider and the user can input a new record. I've implemented that click-to-create-a-new-record part; now I want to do something like, when I click to create a new record, I would immediately set focus to the editor of a particular column. I'm not sure how to do this - is it possible to programatically show the editor for a specific column in a specific row? Without this change, currently the user has to click twice - once to create the new record, then second time to edit the field. Is it possible? Or any other approach you guys can suggest? Thanks! Roy
[flexcoders] Re: Embedded fonts not working in Flex 3?
Found the problem. Seems I need to set advanced anti-aliasing to false in the flex-config.xml. Also this problem doesn't seem to be encountered using the Adobe Flex SDK download. I guess advanced anti-aliasing isn't supported in the Open Source SDK? --- In flexcoders@yahoogroups.com, "Stephen Roy J. Tang" <[EMAIL PROTECTED]> wrote: > > Hi all, > > I downloaded the 3.0.0.477 build from opensource.adobe.com and did a > few simple test cases. The ff mxml failed to compile: > == > > > http://www.adobe.com/2006/mxml";> > > @font-face { > src: local("Arial"); > fontFamily: myFontFamily; > advancedAntiAliasing: true; > } > > VBox { > fontFamily: myFontFamily; > } > > > > > > > /> > > > > == > > The code is copy-and-paste almost exactly from an example in the > livedocs...I just changed the font from Myriad Pro to Arial. > > Compiling the above gives a null pointer exception: > > == > C:\flex3\bin>mxmlc test.mxml > Loading configuration file C:\flex3\frameworks\flex-config.xml > Error: null > > java.lang.NullPointerException > at flash.swf.TagEncoder.defineFontAlignZones(TagEncoder.java:1254) > at > flash.swf.tags.DefineFontAlignZones.visit(DefineFontAlignZones.java:2 > 9) > at flash.swf.MovieEncoder.visitAfter(MovieEncoder.java:259) > at flash.swf.MovieEncoder.define(MovieEncoder.java:240) > at flash.swf.MovieEncoder.export(MovieEncoder.java:116) > at flex2.compiler.API.encode(API.java:4068) > at flex2.tools.Compiler.mxmlc(Compiler.java:270) > at flex2.tools.Compiler.main(Compiler.java:53) > > == > > Any idea? Or is there anything I need to set in the compiler to embed > fonts? > > Thanks! > > Roy >
[flexcoders] Embedded fonts not working in Flex 3?
Hi all, I downloaded the 3.0.0.477 build from opensource.adobe.com and did a few simple test cases. The ff mxml failed to compile: == http://www.adobe.com/2006/mxml";> @font-face { src: local("Arial"); fontFamily: myFontFamily; advancedAntiAliasing: true; } VBox { fontFamily: myFontFamily; } == The code is copy-and-paste almost exactly from an example in the livedocs...I just changed the font from Myriad Pro to Arial. Compiling the above gives a null pointer exception: == C:\flex3\bin>mxmlc test.mxml Loading configuration file C:\flex3\frameworks\flex-config.xml Error: null java.lang.NullPointerException at flash.swf.TagEncoder.defineFontAlignZones(TagEncoder.java:1254) at flash.swf.tags.DefineFontAlignZones.visit(DefineFontAlignZones.java:2 9) at flash.swf.MovieEncoder.visitAfter(MovieEncoder.java:259) at flash.swf.MovieEncoder.define(MovieEncoder.java:240) at flash.swf.MovieEncoder.export(MovieEncoder.java:116) at flex2.compiler.API.encode(API.java:4068) at flex2.tools.Compiler.mxmlc(Compiler.java:270) at flex2.tools.Compiler.main(Compiler.java:53) == Any idea? Or is there anything I need to set in the compiler to embed fonts? Thanks! Roy
[flexcoders] Slowdown in Effect Sequence
Hi, I have an mxml with a sequence of 13 effects with each one having a duration of 500ms. Naturally, I was expecting the entire thing would take around 6.5 seconds; I have another effect running parallel to this sequence that assumes that timing. However, they turn out to be out of sync, I found that the sequence was taking too long to execute, usually the last 2-3 effects will not have enough time to execute. In this case, I'm only using effects in the sequence. I guess the Flash Player is slowing done because I'm running too many effects or something? Is it possible to work around this? Thanks! Roy
[flexcoders] Re: mxmlc slowdown when embedding mp3s
Was finally able to confirm that it's not specific to Chinese Windows XP. Anyone have any idea what are the factors that may cause the slowdown? Memory/CPU usage seem comparable to other machines that don't have the problem. --- In flexcoders@yahoogroups.com, "Stephen Roy J. Tang" <[EMAIL PROTECTED]> wrote: > > Hi, > > I'm not sure where to being looking - one of our dev machines takes an > unspeakably long time to embed mp3 files (a mxml with embedded 2.7MB > file takes more than 30 minutes and still not yet done) > > It only happens on one machine. The only thing we know so far is that > this machine is Chinese windows XP. I'm unsure if it's a problem with > the compiler on Chinese XP only (as we only have 1 such machine here). > It seems to work fine on our test machines with Chinese Windows 2000 > and Chinese Vista. > > Are there any other known issues with the speed of mp3 embedding? > > Thanks! > > Roy >
[flexcoders] mxmlc slowdown when embedding mp3s
Hi, I'm not sure where to being looking - one of our dev machines takes an unspeakably long time to embed mp3 files (a mxml with embedded 2.7MB file takes more than 30 minutes and still not yet done) It only happens on one machine. The only thing we know so far is that this machine is Chinese windows XP. I'm unsure if it's a problem with the compiler on Chinese XP only (as we only have 1 such machine here). It seems to work fine on our test machines with Chinese Windows 2000 and Chinese Vista. Are there any other known issues with the speed of mp3 embedding? Thanks! Roy
[flexcoders] Re: Loading a link/url in a new window
The SWF is something that needs to work both on a local machine and when deployed on a webserver unfortunately. I take your response to mean it's not likely to find a solution? --- In flexcoders@yahoogroups.com, "Alex Harui" <[EMAIL PROTECTED]> wrote: > > If you're running local-with-filesystem, maybe you should use AIR > instead? > > > > > > From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On > Behalf Of Stephen Roy J. Tang > Sent: Friday, January 11, 2008 1:49 AM > To: flexcoders@yahoogroups.com > Subject: [flexcoders] Loading a link/url in a new window > > > > Hi, > > I'm doing something like this: > > navigateToURL(new URLRequest("loader.html?URLTO=[encoded url]", > '_blank'); > > Where loader.html is a static html page that will load the passed url > parameter using javascript (by parsing window.location). > > We're doing this as a workaround, because our local-with-filesystem > swf isn't allowed to launch an http url directly, and > ExternalInterface keeps giving us security sandbox issues. > > The above code works fine in Firefox, but in IE, the parameter "URLTO" > is not shown in the URL address bar and could not be accessed through > javascript. Can I work around this? > > Or, is there a better to do what I'm trying to do? > > Thanks, > > Roy >
[flexcoders] Loading a link/url in a new window
Hi, I'm doing something like this: navigateToURL(new URLRequest("loader.html?URLTO=[encoded url]", '_blank'); Where loader.html is a static html page that will load the passed url parameter using javascript (by parsing window.location). We're doing this as a workaround, because our local-with-filesystem swf isn't allowed to launch an http url directly, and ExternalInterface keeps giving us security sandbox issues. The above code works fine in Firefox, but in IE, the parameter "URLTO" is not shown in the URL address bar and could not be accessed through javascript. Can I work around this? Or, is there a better to do what I'm trying to do? Thanks, Roy
[flexcoders] compc usage
Hi all, Can someone point me to a good example of compc command line usage? I saw a few but the examples always require a manifest file that list out the files included in the SWC. Is it possible to do it without a manifest file, i.e. I just point to the folder where the classes are? In the middle of development, I expect to be adding classes to the SWC regularly so I don't want to keep updating a manifest file every time. Thanks, Roy
[flexcoders] Re: Problem with LI Tags in HTML Text
Hmm...I encountered something similar a while back but couldn't solve it. Have you solved this yet? --- In flexcoders@yahoogroups.com, "Christian Cheng" <[EMAIL PROTECTED]> wrote: > > Hi guys, > > Consider the ff. code: > > > http://www.adobe.com/2006/mxml"; layout="absolute"> > > > > > > htmlText="Another list item. " id="t"/> > > > > > Click on either list item displayed before clicking on the button. > Notice that the Text instance you clicked retains the bullet point > after its htmlText property has been changed. > > Searched for "li", "htmltext", "click", and/or "list item" in Yahoo! > Tech and in the Adobe Bug System but couldn't find any helpful posts > or reports. Anyone encountered (and hopefully solved this problem) > before? > > Attached are the MXML and SWF files for your convenience. > > Thanks, > Chry >
[flexcoders] Re: DataGrid tab order (again)
Ok, no rush. Just wanted to quickly check if there was something I was missing instead. Note that in the sample I gave, I'm not cheating on the tab order in any way. :) --- In flexcoders@yahoogroups.com, "Alex Harui" <[EMAIL PROTECTED]> wrote: > > If you're cheating on how tabbing works, you'll have this problem in IE. > In IE, if you aren't in the tab order from the FocusManager's > perspective you could end up having focus leave to the browser. There > might be a bug related to that as well where we don't handle all cases. > I won't have time to investigate this week. > > > > ____ > > From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On > Behalf Of Stephen Roy J. Tang > Sent: Wednesday, December 05, 2007 5:00 AM > To: flexcoders@yahoogroups.com > Subject: [flexcoders] DataGrid tab order (again) > > > > Hi! > > Thanks to Alex's help I got the datagrid tab order functionality I > needed mostly working (including avoiding the datagrid remembering the > last edited cell). > > Just one minor issue now, which I *might* be able to just ignore, but > I'm curious about it because it works correctly on Firefox, but not on > IE. Specifically, when I reverse-tab (shift+tab) out of my DataGrid, > the focus seems to be going to the wrong control. But it only happens > in IE. > > Check my sample here: > http://roytang.net/sandbox/DataGridTabOrder.swf > <http://roytang.net/sandbox/DataGridTabOrder.swf> > Source: http://roytang.net/sandbox/DataGridTabOrder.mxml > <http://roytang.net/sandbox/DataGridTabOrder.mxml> > > Is it a bug in the SDK? or is there something I can do to work around > it? > > Thanks! > > Roy >
[flexcoders] DataGrid tab order (again)
Hi! Thanks to Alex's help I got the datagrid tab order functionality I needed mostly working (including avoiding the datagrid remembering the last edited cell). Just one minor issue now, which I *might* be able to just ignore, but I'm curious about it because it works correctly on Firefox, but not on IE. Specifically, when I reverse-tab (shift+tab) out of my DataGrid, the focus seems to be going to the wrong control. But it only happens in IE. Check my sample here: http://roytang.net/sandbox/DataGridTabOrder.swf Source: http://roytang.net/sandbox/DataGridTabOrder.mxml Is it a bug in the SDK? or is there something I can do to work around it? Thanks! Roy
[flexcoders] ItemEditors and ItemRenderers (was Re: Datagrid tab order?)
What I have is the Flex 2.0.1 patch for Flash CS3 Professional compatibility, are they compatible? i.e. I just install the hotfix 2/3 on top of it? --- In flexcoders@yahoogroups.com, "Alex Harui" <[EMAIL PROTECTED]> wrote: > > That sounds like you are not using 2.0.1 Hotfix 2 or later. I cannot > reproduce your problem with that release. > > > > From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On > Behalf Of Stephen Roy J. Tang > Sent: Wednesday, November 28, 2007 12:39 AM > To: flexcoders@yahoogroups.com > Subject: [flexcoders] ItemEditors and ItemRenderers (was Re: Datagrid > tab order?) > > > > Can you check my sample here: > http://roytang.net/sandbox/DataGridSample.swf > <http://roytang.net/sandbox/DataGridSample.swf> > > Source at http://roytang.net/sandbox/DataGridSample.mxml > <http://roytang.net/sandbox/DataGridSample.mxml> > > When I tab starting from the textinput and all the way to the last row > of the datagrid (row 14), it's still ok. But after tabbing out from > row 14 the tab order becomes "trapped" in the onscreen checkboxes (and > doesn't even follow them in the top-to-bottom left-to-right order) > > --- In flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com> > , "Alex Harui" wrote: > > > > tabEnabled is ignored for renderers/editors. The only thing that > > matters is editable=true on the DG and the DGColumn. > > > > You should have itemRenderer=CheckBox and rendererIsEditor=true. You > > don't need to set itemEditor=CheckBox. > > > > ____________ > > > > From: flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com> > [mailto:flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com> > ] On > > Behalf Of Stephen Roy J. Tang > > Sent: Tuesday, November 27, 2007 7:54 PM > > To: flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com> > > Subject: [flexcoders] ItemEditors and ItemRenderers (was Re: Datagrid > > tab order?) > > > > > > > > thanks. I appreciate the replies esp. since I can't provide my app's > > sample code here so I guess it's difficult for others to figure out. > > > > I guess the problem is I tried to avoid using itemEditors entirely and > > used itemRenderers instead, so now the tab order is all messed up and > > doesn't scroll. > > > > I'm going to try using itemEditors again. However, the main problem > > there is that I want to render the column as a checkbox and have it > > editable as a checkbox also. So I'll do the ff: > > 1. set itemRenderer=checkbox and itemEditor=checkbox. > > 2. set tabEnabled=false for the checkbox itemRenderer; this is so that > > the itemRenderers don't screw up the tab order > > Under the above setup, the tab order seems correct. > > > > The only issue with the above that I'm not sure how to support is that > > visually the column is a checkbox, but requires the user to click > > twice on the checkbox to toggle the value (once to enable edit mode, > > second time to actually edit). Is there any way to avoid this? Most of > > the examples of using checkbox as an itemEditor seem to use static > > text as the renderer. > > > > --- In flexcoders@yahoogroups.com > <mailto:flexcoders%40yahoogroups.com> > <mailto:flexcoders%40yahoogroups.com> > > , "Alex Harui" wrote: > > > > > > the default editing code handles offscreen rows. > > > > > > you can probably override focusinhandler and set editeditemposition > > > > > > the dg remembers the last position of the editor and restores > editing > > > there > > > > > > > > > > > > From: flexcoders@yahoogroups.com > <mailto:flexcoders%40yahoogroups.com> > <mailto:flexcoders%40yahoogroups.com> > > [mailto:flexcoders@yahoogroups.com > <mailto:flexcoders%40yahoogroups.com> > <mailto:flexcoders%40yahoogroups.com> > > ] On > > > Behalf Of Stephen Roy J. Tang > > > Sent: Tuesday, November 27, 2007 1:19 AM > > > To: flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com> > <mailto:flexcoders%40yahoogroups.com> > > > Subject: [flexcoders] Re: Datagrid tab order? > > > > > > > > > > > > We had trouble before with having both an item renderer and an item > > > editor for a column (which we need to have that c
[flexcoders] ItemEditors and ItemRenderers (was Re: Datagrid tab order?)
Follow-up? Anyone have any idea for this? I'm considering just setting tabEnabled=false for everything in the grid =/ --- In flexcoders@yahoogroups.com, "Stephen Roy J. Tang" <[EMAIL PROTECTED]> wrote: > > Can you check my sample here: > http://roytang.net/sandbox/DataGridSample.swf > > Source at http://roytang.net/sandbox/DataGridSample.mxml > > When I tab starting from the textinput and all the way to the last row > of the datagrid (row 14), it's still ok. But after tabbing out from > row 14 the tab order becomes "trapped" in the onscreen checkboxes (and > doesn't even follow them in the top-to-bottom left-to-right order) > > --- In flexcoders@yahoogroups.com, "Alex Harui" wrote: > > > > tabEnabled is ignored for renderers/editors. The only thing that > > matters is editable=true on the DG and the DGColumn. > > > > You should have itemRenderer=CheckBox and rendererIsEditor=true. You > > don't need to set itemEditor=CheckBox. > > > > > > > > From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On > > Behalf Of Stephen Roy J. Tang > > Sent: Tuesday, November 27, 2007 7:54 PM > > To: flexcoders@yahoogroups.com > > Subject: [flexcoders] ItemEditors and ItemRenderers (was Re: Datagrid > > tab order?) > > > > > > > > thanks. I appreciate the replies esp. since I can't provide my app's > > sample code here so I guess it's difficult for others to figure out. > > > > I guess the problem is I tried to avoid using itemEditors entirely and > > used itemRenderers instead, so now the tab order is all messed up and > > doesn't scroll. > > > > I'm going to try using itemEditors again. However, the main problem > > there is that I want to render the column as a checkbox and have it > > editable as a checkbox also. So I'll do the ff: > > 1. set itemRenderer=checkbox and itemEditor=checkbox. > > 2. set tabEnabled=false for the checkbox itemRenderer; this is so that > > the itemRenderers don't screw up the tab order > > Under the above setup, the tab order seems correct. > > > > The only issue with the above that I'm not sure how to support is that > > visually the column is a checkbox, but requires the user to click > > twice on the checkbox to toggle the value (once to enable edit mode, > > second time to actually edit). Is there any way to avoid this? Most of > > the examples of using checkbox as an itemEditor seem to use static > > text as the renderer. > > > > --- In flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com> > > , "Alex Harui" wrote: > > > > > > the default editing code handles offscreen rows. > > > > > > you can probably override focusinhandler and set editeditemposition > > > > > > the dg remembers the last position of the editor and restores editing > > > there > > > > > > > > > > > > From: flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com> > > [mailto:flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com> > > ] On > > > Behalf Of Stephen Roy J. Tang > > > Sent: Tuesday, November 27, 2007 1:19 AM > > > To: flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com> > > > Subject: [flexcoders] Re: Datagrid tab order? > > > > > > > > > > > > We had trouble before with having both an item renderer and an item > > > editor for a column (which we need to have that checkbox column), so > > > instead what I tried was simply having only itemrenderers for the > > > controls (and updating the data on change of the itemrenderer > > > controls) This seems to fix the default tab order, but there are still > > > some issues with the tab order, namely: > > > > > > 1. Tabbing through the grid only traverses visible rows - how can a > > > user navigate to scrolled-out rows using the keyboard? > > > 2. Sorting the grid doesn't seem to sort the taborder - the rows are > > > still traversed in the original order. (Strangely, reassigning a > > > headerRenderer after the sorting sets the correct tab order - I found > > > this by accident) > > > 3. Tabbing into the grid from an outside control -> looks like it > > > "remembers" where the grid was last traversed and starts over from > > > there. Is it possible to change it to always enter the gr
[flexcoders] ItemEditors and ItemRenderers (was Re: Datagrid tab order?)
Can you check my sample here: http://roytang.net/sandbox/DataGridSample.swf Source at http://roytang.net/sandbox/DataGridSample.mxml When I tab starting from the textinput and all the way to the last row of the datagrid (row 14), it's still ok. But after tabbing out from row 14 the tab order becomes "trapped" in the onscreen checkboxes (and doesn't even follow them in the top-to-bottom left-to-right order) --- In flexcoders@yahoogroups.com, "Alex Harui" <[EMAIL PROTECTED]> wrote: > > tabEnabled is ignored for renderers/editors. The only thing that > matters is editable=true on the DG and the DGColumn. > > You should have itemRenderer=CheckBox and rendererIsEditor=true. You > don't need to set itemEditor=CheckBox. > > > > From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On > Behalf Of Stephen Roy J. Tang > Sent: Tuesday, November 27, 2007 7:54 PM > To: flexcoders@yahoogroups.com > Subject: [flexcoders] ItemEditors and ItemRenderers (was Re: Datagrid > tab order?) > > > > thanks. I appreciate the replies esp. since I can't provide my app's > sample code here so I guess it's difficult for others to figure out. > > I guess the problem is I tried to avoid using itemEditors entirely and > used itemRenderers instead, so now the tab order is all messed up and > doesn't scroll. > > I'm going to try using itemEditors again. However, the main problem > there is that I want to render the column as a checkbox and have it > editable as a checkbox also. So I'll do the ff: > 1. set itemRenderer=checkbox and itemEditor=checkbox. > 2. set tabEnabled=false for the checkbox itemRenderer; this is so that > the itemRenderers don't screw up the tab order > Under the above setup, the tab order seems correct. > > The only issue with the above that I'm not sure how to support is that > visually the column is a checkbox, but requires the user to click > twice on the checkbox to toggle the value (once to enable edit mode, > second time to actually edit). Is there any way to avoid this? Most of > the examples of using checkbox as an itemEditor seem to use static > text as the renderer. > > --- In flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com> > , "Alex Harui" wrote: > > > > the default editing code handles offscreen rows. > > > > you can probably override focusinhandler and set editeditemposition > > > > the dg remembers the last position of the editor and restores editing > > there > > > > > > > > From: flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com> > [mailto:flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com> > ] On > > Behalf Of Stephen Roy J. Tang > > Sent: Tuesday, November 27, 2007 1:19 AM > > To: flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com> > > Subject: [flexcoders] Re: Datagrid tab order? > > > > > > > > We had trouble before with having both an item renderer and an item > > editor for a column (which we need to have that checkbox column), so > > instead what I tried was simply having only itemrenderers for the > > controls (and updating the data on change of the itemrenderer > > controls) This seems to fix the default tab order, but there are still > > some issues with the tab order, namely: > > > > 1. Tabbing through the grid only traverses visible rows - how can a > > user navigate to scrolled-out rows using the keyboard? > > 2. Sorting the grid doesn't seem to sort the taborder - the rows are > > still traversed in the original order. (Strangely, reassigning a > > headerRenderer after the sorting sets the correct tab order - I found > > this by accident) > > 3. Tabbing into the grid from an outside control -> looks like it > > "remembers" where the grid was last traversed and starts over from > > there. Is it possible to change it to always enter the grid from the > > first row? > > 4. I'm not sure of the behavior exactly, as I couldn't replicate it > > all the time, but tabbing into the grid after it has been > > mouse-scrolled seems to cause it to enter at different rows. > > > > --- In flexcoders@yahoogroups.com > <mailto:flexcoders%40yahoogroups.com> > <mailto:flexcoders%40yahoogroups.com> > > , "Alex Harui" wrote: > > > > > > Sounds like editable!=true, so the DG's tab handling code isn't > > running. > > > > > > > > > > > > __
[flexcoders] ItemEditors and ItemRenderers (was Re: Datagrid tab order?)
thanks. I appreciate the replies esp. since I can't provide my app's sample code here so I guess it's difficult for others to figure out. I guess the problem is I tried to avoid using itemEditors entirely and used itemRenderers instead, so now the tab order is all messed up and doesn't scroll. I'm going to try using itemEditors again. However, the main problem there is that I want to render the column as a checkbox and have it editable as a checkbox also. So I'll do the ff: 1. set itemRenderer=checkbox and itemEditor=checkbox. 2. set tabEnabled=false for the checkbox itemRenderer; this is so that the itemRenderers don't screw up the tab order Under the above setup, the tab order seems correct. The only issue with the above that I'm not sure how to support is that visually the column is a checkbox, but requires the user to click twice on the checkbox to toggle the value (once to enable edit mode, second time to actually edit). Is there any way to avoid this? Most of the examples of using checkbox as an itemEditor seem to use static text as the renderer. --- In flexcoders@yahoogroups.com, "Alex Harui" <[EMAIL PROTECTED]> wrote: > > the default editing code handles offscreen rows. > > you can probably override focusinhandler and set editeditemposition > > the dg remembers the last position of the editor and restores editing > there > > ____ > > From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On > Behalf Of Stephen Roy J. Tang > Sent: Tuesday, November 27, 2007 1:19 AM > To: flexcoders@yahoogroups.com > Subject: [flexcoders] Re: Datagrid tab order? > > > > We had trouble before with having both an item renderer and an item > editor for a column (which we need to have that checkbox column), so > instead what I tried was simply having only itemrenderers for the > controls (and updating the data on change of the itemrenderer > controls) This seems to fix the default tab order, but there are still > some issues with the tab order, namely: > > 1. Tabbing through the grid only traverses visible rows - how can a > user navigate to scrolled-out rows using the keyboard? > 2. Sorting the grid doesn't seem to sort the taborder - the rows are > still traversed in the original order. (Strangely, reassigning a > headerRenderer after the sorting sets the correct tab order - I found > this by accident) > 3. Tabbing into the grid from an outside control -> looks like it > "remembers" where the grid was last traversed and starts over from > there. Is it possible to change it to always enter the grid from the > first row? > 4. I'm not sure of the behavior exactly, as I couldn't replicate it > all the time, but tabbing into the grid after it has been > mouse-scrolled seems to cause it to enter at different rows. > > --- In flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com> > , "Alex Harui" wrote: > > > > Sounds like editable!=true, so the DG's tab handling code isn't > running. > > > > > > > > > > > > From: flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com> > [mailto:flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com> > ] On > > Behalf Of Stephen Roy J. Tang > > Sent: Friday, November 16, 2007 9:15 PM > > To: flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com> > > Subject: [flexcoders] Datagrid tab order? > > > > > > > > Hi, > > > > I'm a bit confused about the tab order in a datagrid. The problem is I > > have a datagrid with 3 columns: > > column 1 - renderer is a checkbox control. I use onchange of the > > checkbox to update the underlying data > > column 2 - normal text column, editor is a editbox > > column 3 - checkbox, similar to column 1 > > > > Using tab to traverse the datagrid has weird behavior, i.e. first it > > seems to traverse all the column 2 editboxes (top rows first then > > bottom rows); then it traverses the checkboxes in each row (starting > > from top row again); after it has traversed everything, the tab order > > seems random now - it jumps around from editbox to checkbox or > whatever. > > > > Is it because of the way the actual renderer/editor instances are > > created? Is there something I should be specifying to guarantee a > > nice, left-to-right top-to-bottom tab order? > > > > Thanks, > > > > Roy > > >
[flexcoders] Re: Datagrid tab order?
We had trouble before with having both an item renderer and an item editor for a column (which we need to have that checkbox column), so instead what I tried was simply having only itemrenderers for the controls (and updating the data on change of the itemrenderer controls) This seems to fix the default tab order, but there are still some issues with the tab order, namely: 1. Tabbing through the grid only traverses visible rows - how can a user navigate to scrolled-out rows using the keyboard? 2. Sorting the grid doesn't seem to sort the taborder - the rows are still traversed in the original order. (Strangely, reassigning a headerRenderer after the sorting sets the correct tab order - I found this by accident) 3. Tabbing into the grid from an outside control -> looks like it "remembers" where the grid was last traversed and starts over from there. Is it possible to change it to always enter the grid from the first row? 4. I'm not sure of the behavior exactly, as I couldn't replicate it all the time, but tabbing into the grid after it has been mouse-scrolled seems to cause it to enter at different rows. --- In flexcoders@yahoogroups.com, "Alex Harui" <[EMAIL PROTECTED]> wrote: > > Sounds like editable!=true, so the DG's tab handling code isn't running. > > > > > > From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On > Behalf Of Stephen Roy J. Tang > Sent: Friday, November 16, 2007 9:15 PM > To: flexcoders@yahoogroups.com > Subject: [flexcoders] Datagrid tab order? > > > > Hi, > > I'm a bit confused about the tab order in a datagrid. The problem is I > have a datagrid with 3 columns: > column 1 - renderer is a checkbox control. I use onchange of the > checkbox to update the underlying data > column 2 - normal text column, editor is a editbox > column 3 - checkbox, similar to column 1 > > Using tab to traverse the datagrid has weird behavior, i.e. first it > seems to traverse all the column 2 editboxes (top rows first then > bottom rows); then it traverses the checkboxes in each row (starting > from top row again); after it has traversed everything, the tab order > seems random now - it jumps around from editbox to checkbox or whatever. > > Is it because of the way the actual renderer/editor instances are > created? Is there something I should be specifying to guarantee a > nice, left-to-right top-to-bottom tab order? > > Thanks, > > Roy >
[flexcoders] How to load image with non-ascii chars in path?
Hi, I tried using an where [path] contains non-ASCII characters. In some cases it works, (when using Chinese chars), in others it doesn't (when using Japanese chars). I'm not sure if there's a bug in Flex, or there's something missing in my env settings or such. Any suggestions would be greatly appreciated. Thanks, Roy
[flexcoders] Datagrid tab order?
Hi, I'm a bit confused about the tab order in a datagrid. The problem is I have a datagrid with 3 columns: column 1 - renderer is a checkbox control. I use onchange of the checkbox to update the underlying data column 2 - normal text column, editor is a editbox column 3 - checkbox, similar to column 1 Using tab to traverse the datagrid has weird behavior, i.e. first it seems to traverse all the column 2 editboxes (top rows first then bottom rows); then it traverses the checkboxes in each row (starting from top row again); after it has traversed everything, the tab order seems random now - it jumps around from editbox to checkbox or whatever. Is it because of the way the actual renderer/editor instances are created? Is there something I should be specifying to guarantee a nice, left-to-right top-to-bottom tab order? Thanks, Roy
[flexcoders] Re: Can I have SWFLoader automatically scale the content swf?
Thanks Alex. :) --- In flexcoders@yahoogroups.com, "Alex Harui" <[EMAIL PROTECTED]> wrote: > > Flex hates to scale things. Resizing the SWFLoader resizes the test2 > application. You'll need logic in test2 that scales the content based > on application width/height > > > > > > From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On > Behalf Of Stephen Roy J. Tang > Sent: Friday, November 16, 2007 1:30 AM > To: flexcoders@yahoogroups.com > Subject: [flexcoders] Can I have SWFLoader automatically scale the > content swf? > > > > Hi, > > I'm trying to do this thing where I have a VDividedBox, the top half > contains an SWFLoader that will load another Flex SWF. I want to > resize the SWFLoader automatically when the containing canvas is > resized by dragging the divider, and also for the content inside the > SWFLoader to scale automatically. Can this be done? > > What I tried is something like: > > test.mxml > = > > > http://www.adobe.com/2006/mxml > <http://www.adobe.com/2006/mxml> " > layout="absolute"> > > > height="{myCanvas.height-20}" scaleContent="true" /> > > > > > > > > test2.mxml > == > > > http://www.adobe.com/2006/mxml > <http://www.adobe.com/2006/mxml> " > layout="absolute"> > > > > > Any advice would be greatly appreciated. > > Thanks, > > Roy >
[flexcoders] Can I have SWFLoader automatically scale the content swf?
Hi, I'm trying to do this thing where I have a VDividedBox, the top half contains an SWFLoader that will load another Flex SWF. I want to resize the SWFLoader automatically when the containing canvas is resized by dragging the divider, and also for the content inside the SWFLoader to scale automatically. Can this be done? What I tried is something like: test.mxml = http://www.adobe.com/2006/mxml"; layout="absolute"> test2.mxml == http://www.adobe.com/2006/mxml"; layout="absolute"> Any advice would be greatly appreciated. Thanks, Roy
[flexcoders] Weird characters in textInput
Hi, Anyone encountered something like this? In a SWF with textinput, viewed using IE, hit Ctrl+K while focused on the control. A strange character is added to the text box (the byte value is 0x0B). Some other key combinations work as well. Ctrl+G=0x07. Doesn't seem to happen in Firefox. Also, doesn't seem to happen in all machines - 1 out of 5 test machines I tried it on couldn't replicate. I'm not sure if this is a flex issue or an IE issue. Any idea? Thanks, Roy
[flexcoders] Is it possible to set a different framerate for a MovieClip?
i.e. I have a MovieClip in my MXML, can I set it to use a framerate different from the one used in ? If it matters, I plan to do this for a MovieClip objected exported from Flash CS3 using the Component Kit. Thanks, Roy
[flexcoders] Flash Component runs slower?
Hi, Another thing I found while using the component exported from flash cs3 using the component kit - the animation seems to run a bit slower compared to if I generate an SWF directly from the FLA. I exported my component at 20fps, then tested in an mx:Application with frameRate=20, and it's slightly slower. Measuring the time by using the nextFrame event, it comes out to be around 17-18 fps. Increasing the frameRate value of the Application doesn't seem to have any effect. Is it a valid expectation that the component would animate a bit slower with an SWF built using Flex compared to built using Flash? Thanks, Roy
[flexcoders] Re: Problem importing component from Flash CS3
--- In flexcoders@yahoogroups.com, "Alex Harui" <[EMAIL PROTECTED]> wrote: > > That's a bug. It won't throw an exception in 3.0 version of the > integration kit, but requires that you use 3.0. > > > > Please file a bug for this issue. If I were to file a bug, it would be at bugs.adobe.com/jira? There doesn't seem to be a Component Kit category in the Project dropdown. Also, does filing a bug mean it's possible for it to become fixed in a future patch of Flex 2? Or only in Flex 3? > > > > A workaround for 2.x would be to wrap the UIMovieClip in a UIComponent > and run the effect on the UIComponent wrapper. Will there be any issue if I just continue using the workaround I've done? (i.e. assigning a doNothing function to those undefined functions) Thanks a lot. > > > > ________ > > From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On > Behalf Of Stephen Roy J. Tang > Sent: Tuesday, October 30, 2007 1:39 AM > To: flexcoders@yahoogroups.com > Subject: [flexcoders] Re: Problem importing component from Flash CS3 > > > > Also, the fla given to me was using ActionScript to scale the object > as it animated, when I import to Flex that actionscript doesn't > execute, I need to add my own scaling code in flex to do it. Is there > another way, or the actionscript is really not exported in the SWC? > > --- In flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com> > , "Stephen Roy J. Tang" > wrote: > > > > Hi, > > > > I created a component using the Flex Component Kit for Flash CS3. (The > > examples I followed are > > > http://lordbron.wordpress.com/2007/05/01/flex-component-kit-step-by-step > / > <http://lordbron.wordpress.com/2007/05/01/flex-component-kit-step-by-ste > p/> > > and > > > http://jessewarden.com/2006/12/integrating-a-flash-interface-into-flex-2 > .html > <http://jessewarden.com/2006/12/integrating-a-flash-interface-into-flex- > 2.html> ) > > > > So, I'm able to import the component successfully into my Flex app. At > > some point, I need to perform an effect on the component. > > > > However, when I do this I get an error "effectStarted is not a > > function". The debugger shows me the ff code in EffectInstance.as: > > > > if (target is IUIComponent) > > { > > Object(target).effectStarted(this); > > // Hide the focus ring if the target already has one drawn > > Object(target).drawFocus(false); > > } > > > > So, apparently, the exported component satisfies IUIComponent > > interface but does not have the effectStarted method? Am I missing > > something? > > > > To workaround this, I assigned dummy functions to those that threw the > > error, ie: > > > > private function init() :void > > { > > p.effectStarted = doNothing; > > p.drawFocus = doNothing; > > p.effectFinished = doNothing; > > } > > private function doNothing(aParam:Object):void > > { > > > > } > > > > (p is my component) Is there something else I should be doing? > > > > Thanks, > > > > Roy > > >
[flexcoders] Re: Problem importing component from Flash CS3
Also, the fla given to me was using ActionScript to scale the object as it animated, when I import to Flex that actionscript doesn't execute, I need to add my own scaling code in flex to do it. Is there another way, or the actionscript is really not exported in the SWC? --- In flexcoders@yahoogroups.com, "Stephen Roy J. Tang" <[EMAIL PROTECTED]> wrote: > > Hi, > > I created a component using the Flex Component Kit for Flash CS3. (The > examples I followed are > http://lordbron.wordpress.com/2007/05/01/flex-component-kit-step-by-step/ > and > http://jessewarden.com/2006/12/integrating-a-flash-interface-into-flex-2.html) > > So, I'm able to import the component successfully into my Flex app. At > some point, I need to perform an effect on the component. > > However, when I do this I get an error "effectStarted is not a > function". The debugger shows me the ff code in EffectInstance.as: > > if (target is IUIComponent) > { > Object(target).effectStarted(this); > // Hide the focus ring if the target already has one > drawn > Object(target).drawFocus(false); > } > > So, apparently, the exported component satisfies IUIComponent > interface but does not have the effectStarted method? Am I missing > something? > > To workaround this, I assigned dummy functions to those that threw the > error, ie: > > private function init() :void > { > p.effectStarted = doNothing; > p.drawFocus = doNothing; > p.effectFinished = doNothing; > } > private function doNothing(aParam:Object):void > { > > } > > (p is my component) Is there something else I should be doing? > > Thanks, > > Roy >
[flexcoders] Problem importing component from Flash CS3
Hi, I created a component using the Flex Component Kit for Flash CS3. (The examples I followed are http://lordbron.wordpress.com/2007/05/01/flex-component-kit-step-by-step/ and http://jessewarden.com/2006/12/integrating-a-flash-interface-into-flex-2.html) So, I'm able to import the component successfully into my Flex app. At some point, I need to perform an effect on the component. However, when I do this I get an error "effectStarted is not a function". The debugger shows me the ff code in EffectInstance.as: if (target is IUIComponent) { Object(target).effectStarted(this); // Hide the focus ring if the target already has one drawn Object(target).drawFocus(false); } So, apparently, the exported component satisfies IUIComponent interface but does not have the effectStarted method? Am I missing something? To workaround this, I assigned dummy functions to those that threw the error, ie: private function init() :void { p.effectStarted = doNothing; p.drawFocus = doNothing; p.effectFinished = doNothing; } private function doNothing(aParam:Object):void { } (p is my component) Is there something else I should be doing? Thanks, Roy
[flexcoders] Re: Responding to end of transitions?
Sorry, please ignore. I found I can just listen to the effectEnd event of the transition.effect. --- In flexcoders@yahoogroups.com, "Stephen Roy J. Tang" <[EMAIL PROTECTED]> wrote: > > Hi, > > Is there an event I can listen to so I can respond to the end of a > transition? According to the doc, the currentStateChange event is > fired before the transition starts playing... > > Thanks, > > Roy >
[flexcoders] Responding to end of transitions?
Hi, Is there an event I can listen to so I can respond to the end of a transition? According to the doc, the currentStateChange event is fired before the transition starts playing... Thanks, Roy
[flexcoders] Re: security sandbox violations
Wait, sorry, I'm a bit confused. Let me sum it up: What I want is: - my swf should be able to load files with image/swfloader using relative paths - my swf should not raise sandbox violations either when running locally or via HTTP - I will possibly have a multi-swf topology >From testing, it seems that all I need to do is to compile with "-use-network=false"? (Well, I didn't test the multi-swf part) Without this option, I get a sandbox violation when running on a local machine in an untrusted folder What's the case where I need to put "?:" in the URL or update the trust files? I'm not sure --- In flexcoders@yahoogroups.com, "Alex Harui" <[EMAIL PROTECTED]> wrote: > > I suppose you could say that's a bug in Flex. You are either in a "remote" sandbox or one of the "local" sandboxes. You're only in "remote" when the swf is served via HTTP. > > > > If you're in local, it isn't a matter of what constitutes network i/o as much as what is in allowed by the sandbox. In local-no-network, subfolders are ok, but any absolute path is not, even if it maps to a subfolder. The Image/SWFLoader code, however, doesn't check sandboxes and always generates absolute paths from relative paths. That's because in a multi-swf environment, the player always loads urls relative to the first swf loaded and not the swf requesting the load so we convert all relative paths to absolute (relative to the swf requesting the load) and that's not allowed in your configuration. > > > > Your SWF will work in both places regardless of whether use-network is true or false. When in "local-with-networking" you could get to the network if you wanted to, and other content loaded by you can get to the network as well. > > > > I guess almost everyone uses local-with-networking (it is the default in Flex) so nobody's bumped into this before. You can file a bug if you want, but I don't think we'd fix it as it would just cause issues for those using multiple swfs. > > > > So, if you don't have a multi-swf topology, you might be able to fake us out by adding a "?:" to the url. Not sure that'll work though. It'll probably just be easier to update the trust files. There are tech notes on the web as to how to configure them. > > > > > > From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Stephen Roy J. Tang > Sent: Tuesday, October 16, 2007 11:16 PM > To: flexcoders@yahoogroups.com > Subject: [flexcoders] Re: security sandbox violations > > > > Also, my original understanding of "-use-network=false" is that the > SWF would be trusted to access local resources, but not network > resources. What counts as "network resources" in this case? I > initially assumed that I would encounter an error if I uploaded the > SWF and the image to a web server, but it seems that's not the case. > > Ideally, I want my SWF to work both when running on a local machine, > and also when deployed on a webserver. > > --- In flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com> , "Stephen Roy J. Tang" > wrote: > > > > In that case, say I have an SWF compiled using FlexBuilder and I move > > the copy to another folder (or another machine), would it raise the > > security violation? > > > > --- In flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com> , Mac Martine wrote: > > > > > > > > > When you create a Flex workspace, that workspace path is then added > > to the > > > list of directories ³trusted² by the Player (in flexbuilder.cfg). > > Therefore, > > > on your machine any files that are in that directory (or a > > subdirectory of > > > that folder) are trusted. When your friend is trying to run it, the > > Player > > > is trying to access an un-trusted location. > > > -mac > > > > > > > > > On 10/16/07 8:24 PM, "Stephen Roy J. Tang" wrote: > > > > > > > > > > > > > > > > > > > > > > > Hi, > > > > > > > > How exactly does the Flash Player determine when it will throw a > > > > security sandbox error? I encountered a problem with a case like > this: > > > > I had an Image object loading a file via relative path, i.e. > > > > source="assets/filename.png" />. The swf works fine on my machine. > > > > > > > > A coworker checks out the source and compiles it on her own machine, > > > > and she gets a sandbox violation error. The difference is that she's > > > > using command line mxmlc to compile, I'm using Flex Builder. Neither > > > > of us are using the use-network compiler param. Of course, I ask her > > > > to just set the param and she can then run the swf without > error. But > > > > I'm curious as to why it would behave differently in her case and > > mine. > > > > > > > > Thanks, > > > > > > > > Roy > > > > > > > > > > > > > > > > > >
[flexcoders] Re: security sandbox violations
Also, my original understanding of "-use-network=false" is that the SWF would be trusted to access local resources, but not network resources. What counts as "network resources" in this case? I initially assumed that I would encounter an error if I uploaded the SWF and the image to a web server, but it seems that's not the case. Ideally, I want my SWF to work both when running on a local machine, and also when deployed on a webserver. --- In flexcoders@yahoogroups.com, "Stephen Roy J. Tang" <[EMAIL PROTECTED]> wrote: > > In that case, say I have an SWF compiled using FlexBuilder and I move > the copy to another folder (or another machine), would it raise the > security violation? > > --- In flexcoders@yahoogroups.com, Mac Martine wrote: > > > > > > When you create a Flex workspace, that workspace path is then added > to the > > list of directories ³trusted² by the Player (in flexbuilder.cfg). > Therefore, > > on your machine any files that are in that directory (or a > subdirectory of > > that folder) are trusted. When your friend is trying to run it, the > Player > > is trying to access an un-trusted location. > > -mac > > > > > > On 10/16/07 8:24 PM, "Stephen Roy J. Tang" wrote: > > > > > > > > > > > > > > > > > Hi, > > > > > > How exactly does the Flash Player determine when it will throw a > > > security sandbox error? I encountered a problem with a case like this: > > > I had an Image object loading a file via relative path, i.e. > > source="assets/filename.png" />. The swf works fine on my machine. > > > > > > A coworker checks out the source and compiles it on her own machine, > > > and she gets a sandbox violation error. The difference is that she's > > > using command line mxmlc to compile, I'm using Flex Builder. Neither > > > of us are using the use-network compiler param. Of course, I ask her > > > to just set the param and she can then run the swf without error. But > > > I'm curious as to why it would behave differently in her case and > mine. > > > > > > Thanks, > > > > > > Roy > > > > > > > > > > > >
[flexcoders] Re: security sandbox violations
In that case, say I have an SWF compiled using FlexBuilder and I move the copy to another folder (or another machine), would it raise the security violation? --- In flexcoders@yahoogroups.com, Mac Martine <[EMAIL PROTECTED]> wrote: > > > When you create a Flex workspace, that workspace path is then added to the > list of directories ³trusted² by the Player (in flexbuilder.cfg). Therefore, > on your machine any files that are in that directory (or a subdirectory of > that folder) are trusted. When your friend is trying to run it, the Player > is trying to access an un-trusted location. > -mac > > > On 10/16/07 8:24 PM, "Stephen Roy J. Tang" <[EMAIL PROTECTED]> wrote: > > > > > > > > > > > Hi, > > > > How exactly does the Flash Player determine when it will throw a > > security sandbox error? I encountered a problem with a case like this: > > I had an Image object loading a file via relative path, i.e. > source="assets/filename.png" />. The swf works fine on my machine. > > > > A coworker checks out the source and compiles it on her own machine, > > and she gets a sandbox violation error. The difference is that she's > > using command line mxmlc to compile, I'm using Flex Builder. Neither > > of us are using the use-network compiler param. Of course, I ask her > > to just set the param and she can then run the swf without error. But > > I'm curious as to why it would behave differently in her case and mine. > > > > Thanks, > > > > Roy > > > > > > >
[flexcoders] security sandbox violations
Hi, How exactly does the Flash Player determine when it will throw a security sandbox error? I encountered a problem with a case like this: I had an Image object loading a file via relative path, i.e. . The swf works fine on my machine. A coworker checks out the source and compiles it on her own machine, and she gets a sandbox violation error. The difference is that she's using command line mxmlc to compile, I'm using Flex Builder. Neither of us are using the use-network compiler param. Of course, I ask her to just set the param and she can then run the swf without error. But I'm curious as to why it would behave differently in her case and mine. Thanks, Roy
[flexcoders] Re: Extending Canvas?
Thank you very much, I'll check it out. :) --- In flexcoders@yahoogroups.com, "Alex Harui" <[EMAIL PROTECTED]> wrote: > > Panel and other containers have a notion of content children vs > rawChildren. Borders, titlebars, etc are rawChildren. It is a bit > harder to do from MXML because we don't let you spec out your > rawChildren in MXML, the default property is the content children. > > So, if you want rawChildren, I'd recommend AS subclassing. That way the > numChildren and getChildAt calls make more sense to the consumer and > aren't offset by stuff you stuck in there that they didn't know about. > If you really gotta go the way of MXML, I think there is a way to use > [DefaultProperty] to assign a property to an MXML container so all > children are stuffed in there. I think there's an example on > quietlyscheming.com. > > ________ > > From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On > Behalf Of Stephen Roy J. Tang > Sent: Wednesday, October 03, 2007 2:38 AM > To: flexcoders@yahoogroups.com > Subject: [flexcoders] Extending Canvas? > > > > Hi, > > I'm trying to create an MXML component extending from canvas, with > some predefined components (buttons and some graphical elements) and > behaviors, but I also want any MXMLs using the component to be able to > specify additional contents for the components. (Since it's a canvas, > I assume it's the calling screen's responsibility to position it's > children correctly.) > > Of course, first thing I tried is just to do it directly, and I get an > error "Multiple sets of visual children have been specified...etc". > > Is what I'm thinking of possible? Any advice? I took a look at the > source of another container class (Panel), which I assumed would do > something similar, but it seems the code there is a bit more > complicated that I would like. I'm hoping there's a simple way to > specify that I want to accept visual children from both the component > declaration and the component instance. > > Thanks, > > Roy >
[flexcoders] Extending Canvas?
Hi, I'm trying to create an MXML component extending from canvas, with some predefined components (buttons and some graphical elements) and behaviors, but I also want any MXMLs using the component to be able to specify additional contents for the components. (Since it's a canvas, I assume it's the calling screen's responsibility to position it's children correctly.) Of course, first thing I tried is just to do it directly, and I get an error "Multiple sets of visual children have been specified...etc". Is what I'm thinking of possible? Any advice? I took a look at the source of another container class (Panel), which I assumed would do something similar, but it seems the code there is a bit more complicated that I would like. I'm hoping there's a simple way to specify that I want to accept visual children from both the component declaration and the component instance. Thanks, Roy
[flexcoders] Styling richtexteditor subcontrols?
Hi, I looked at the RTE source, but I guess I'm not expert enough to figure it out: how come if I specify a Button style, that style is inherited by the bold/italic/underline controls, but when I specify a ComboBox style, it's not inherited by the font family combobox? I'm using an external CSS file, if that matters. Thanks, Roy
[flexcoders] Re: Using a different style for focused controls
Thanks. :) --- In flexcoders@yahoogroups.com, "Alex Harui" <[EMAIL PROTECTED]> wrote: > > can't think of a way to do it in CSS, but you can listen to the > systemManager for focusIn and see the focusIn on all children because it > bubbles. That way you only have to attach one listener. > > > > From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On > Behalf Of Stephen Roy J. Tang > Sent: Wednesday, September 26, 2007 8:03 PM > To: flexcoders@yahoogroups.com > Subject: [flexcoders] Using a different style for focused controls > > > > Hi, > > I know I can control the focus rectangle by using a border skin - but > I want to be able to change stuff like background color and font > weight when a control gains focus. Is there a way I can do that > without having to use focus/lose focus event triggers? This would be > applied across several Flex screens - Ideally I just plug-in something > into my css files and it works from there. > > Thanks :) > > Roy >
[flexcoders] How to skin the grid headers?
Hi, There doesn't seem to be a skin property for DataGrid headers? Or am I missing something? Thanks, Roy
[flexcoders] Using a different style for focused controls
Hi, I know I can control the focus rectangle by using a border skin - but I want to be able to change stuff like background color and font weight when a control gains focus. Is there a way I can do that without having to use focus/lose focus event triggers? This would be applied across several Flex screens - Ideally I just plug-in something into my css files and it works from there. Thanks :) Roy
[flexcoders] Skinning Flex scrollbar
Hi, I'm trying out skinning a flex scrollbar. I set the thumbUpSkin, thumbDownSkin, thumbOverSkin to my own custom images. I also set the thumbIcon to show a 3-bar image in the middle of the scrollbar, without having that 3-bar image stretch when the thumb changes size. Everything is fine, except that in instances that the thumb is at minimum size, the thumbIcon overlaps the border of the image I'm using for the thumb...it looks a bit weird (sorry I don't have a screencap handy) So, my question is: Is there a way to specify the minimum size of the scrollbar thumb (so I can just make sure the thumb is always larger than my thumbIcon)? If not, is there any other solution to my problem? Thanks a lot :) Roy
[flexcoders] Custom components as headerRender?
Hi there, I've been trying to make a custom header renderer for an accordion...basically, what I want is to have the accordion label + an additional button on the accordion header Initially I tried something like: [...accordion contents...] But the above structure gave me an error like "Error #1034: Type Coercion failed: cannot convert [EMAIL PROTECTED] to Button" What restrictions are there as to what I can declare inside the mx:headerRenderer tag? If I use simple components like checkboxes it seems fine, i.e. the following is ok: [...accordion contents...] Thanks a lot :)
[flexcoders] Re: Creating the SWF to resize automatically with the browser window?
I'll try it out. Thanks :D --- In flexcoders@yahoogroups.com, "Tracy Spratt" <[EMAIL PROTECTED]> wrote: > > And in the tag. > Tracy > > -Original Message- > From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On > Behalf Of Tom Chiverton > Sent: Thursday, August 30, 2007 10:29 AM > To: flexcoders@yahoogroups.com > Subject: Re: [flexcoders] Creating the SWF to resize automatically with > the browser window? > > On Thursday 30 Aug 2007, [EMAIL PROTECTED] wrote: > > Or is that something that should be done on the HTML side? > > Just make sure the width and height are set to 100% in the HTML wrapper > (or > JavaScript embeder). > > -- > Tom Chiverton > Helping to economically incubate prospective appliances > on: http://thefalken.livejournal.com > > > > This email is sent for and on behalf of Halliwells LLP. > > Halliwells LLP is a limited liability partnership registered in England > and Wales under registered number OC307980 whose registered office > address is at St James's Court Brown Street Manchester M2 2JF. A list > of members is available for inspection at the registered office. Any > reference to a partner in relation to Halliwells LLP means a member of > Halliwells LLP. Regulated by the Law Society. > > CONFIDENTIALITY > > This email is intended only for the use of the addressee named above and > may be confidential or legally privileged. If you are not the addressee > you must not read it and must not use any information contained in nor > copy it nor inform any person other than Halliwells LLP or the addressee > of its existence or contents. If you have received this email in error > please delete it and notify Halliwells LLP IT Department on 0870 365 > 8008. > > For more information about Halliwells LLP visit www.halliwells.com. > > > > -- > Flexcoders Mailing List > FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt > Search Archives: > http://www.mail-archive.com/flexcoders%40yahoogroups.com > Yahoo! Groups Links >
[flexcoders] Creating the SWF to resize automatically with the browser window?
Hi, Do I need to have any setting in the mxml to make sure SWF will "scale" to the appropriate size when the user resizes the containing browser window? i.e. I want the SWF to scale such that the full content is always shown. Or is that something that should be done on the HTML side? Thanks, Roy