RE: [flexcoders] Modules at 360Flex conference

2007-03-07 Thread Alex Harui
What issues caused you to go back to monolithic? We'd want to take on some or all for 3.0. The things that I noticed people were running into were the shared manager issue, some confusion about RSLs vs Modules, and issues due to the way ApplicationDomains work which I addressed in the slides.

RE: [flexcoders] Modules at 360Flex conference

2007-03-07 Thread Alex Harui
Sorry, sent the last response before seeing this. I would think smaller swf sizes would be a good thing. Did you run into the too many small pieces, too many fetches over the net issue? Maybe you could take advantage of the -frame option to pack several modules into a larger download.

RE: [flexcoders] simple stageHeight question

2007-03-07 Thread Alex Harui
If you're doing that in a Flex app during its startup phase, there is no stage until after applicationComplete is dispatched. It is an evil trick we do to optimize startup time where the application and all of its children are not on the stage until the children are measured and layed out.

RE: [flexcoders] Modules at 360Flex conference

2007-03-08 Thread Alex Harui
You can bind, I'm just not sure if the module will unload if you want to kick it out of memory later. Someone will have to try it and see. -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Tom Chiverton Sent: Thursday, March 08, 2007 2:16 AM To:

RE: [flexcoders] Modules at 360Flex conference

2007-03-08 Thread Alex Harui
Actually Roger, our friend Paul made possible a fourth solution, which seems pretty good, which is to use Runtime CSS, as suggested by the previous email. Runtime CSS generates the appropriate Font.registerFont calls for you and you get to use CSS syntax, which is cool. It is basically

RE: [flexcoders] Loading Remote SWF Assets in FireFox

2007-03-08 Thread Alex Harui
Do you get an exception? What kind of SWF (player 9, as code, or just graphics, etc)? -Alex From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Bjorn Schultheiss Sent: Thursday, March 08, 2007 4:40 PM To: flexcoders@yahoogroups.com

RE: [flexcoders] Loading Remote SWF Assets in FireFox

2007-03-08 Thread Alex Harui
etc) with a swf wrapper, but we are also loading swf assets via SWFLoader with graphics and code ( think banner ads ). Both are showing the same behaviour, that is working in IE and not Firefox. thanks, Bjorn On 09/03/2007, at 12:25 PM, Alex Harui wrote: Do you get

RE: [flexcoders] Loading Remote SWF Assets in FireFox

2007-03-08 Thread Alex Harui
at loading any of the assets. Is it perhaps a security issue that is only enforced in firefox? thanks. On 09/03/2007, at 12:52 PM, Alex Harui wrote: OK, so dies in the a** means nothing shows up? I would debug into SWFLoader.loadContent to make sure we fix up the path correctly

RE: [flexcoders] checkbox in datagrid with vertical slider bar

2007-03-08 Thread Alex Harui
That's a common misunderstanding. The checkbox is driven by properties of the items in the dataprovider. If you check a box and do not update the dataprovider, then when the checkbox is forced to re-render after scrolling it will not be checked. The key is to use rendererIsEditor and other

RE: [flexcoders] SWFLoader: WHEN can I access SystemManager.application[myContent]?

2007-03-08 Thread Alex Harui
You should get an applicationComplete when the app's ready. It is available earlier than that, but I don't think there's a good event for it. You could check on enterFrame events. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Tracy

RE: [flexcoders] Using an embedded image at runtime, Please help.

2007-03-09 Thread Alex Harui
@Embed is a compiler directive so you can't put it in quotes. You have to declare a variable [Embed('../assets/mixipix.swf'); Var mixipix:Class And load that From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Giles Roadnight

RE: [flexcoders] DataGridColumn visibility problem. It appears again when dataProvider is replaced

2007-03-09 Thread Alex Harui
There's been a bug filed, and an update is expected to be available soon (hopefully a week or two). -Alex -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Tom Chiverton Sent: Friday, March 09, 2007 6:37 AM To: flexcoders@yahoogroups.com Subject:

RE: [flexcoders] Loading Remote SWF Assets in FireFox

2007-03-09 Thread Alex Harui
in the security policy that prevents the request from even being made? Bjorn On 09/03/2007, at 1:18 PM, Alex Harui wrote: Dunno. What's the URL to the SWF? Are you loading absolute or relative path? We fix up relative paths in loadContent

RE: [flexcoders] Using an embedded image at runtime, Please help.

2007-03-09 Thread Alex Harui
:[EMAIL PROTECTED] On Behalf Of Alex Harui Sent: 09 March 2007 16:43 To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Using an embedded image at runtime, Please help. @Embed is a compiler directive so you can't put it in quotes. You have to declare a variable [Embed('../assets

RE: [flexcoders] gotoAndStop from flex

2007-03-09 Thread Alex Harui
If you used SWFLoader, the .content is the root of the SWF. If the SWF was built for Player 9 using CS3, then you can talk to it, otherwise you can't. Player 8 and older swfs are essentially walled-off. Others have built wrapper SWFs for Player 8 that will listen for local connections to/from

RE: [flexcoders] Converting string to base64Binary

2007-03-09 Thread Alex Harui
Google: Base64 Actionscript From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Brian Holmes Sent: Friday, March 09, 2007 2:15 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Converting string to base64Binary Does anybody have

RE: [flexcoders] Changing currentState based on a url

2007-03-10 Thread Alex Harui
Eventually, you'll probably want a more full-featured URL handling mechanism. A third-party has a pretty good one here: http://joeberkovitz.com/blog/urlkit -Alex From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of flexjeremy Sent:

RE: [flexcoders] Re: newbie dataGrid question .

2007-03-10 Thread Alex Harui
I can't think of anything better, but I'll guess that by the time you hit production you'll want to define the columns yourself so the headers for price aren't in lower case, and you guarantee a particular order for the columns.. You'll need to think about how you'll figure that out. Maybe the

RE: [flexcoders] mx:Script error ?

2007-03-10 Thread Alex Harui
Try a new project, or build one of the samples. You may need to re-install. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Groups Mail Sent: Friday, March 09, 2007 5:51 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders]

RE: [flexcoders] Re: Data binding: How to detect data change has happened?

2007-03-12 Thread Alex Harui
object (just use your new object in place of your old object). Regards, Bruce --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , Alex Harui [EMAIL PROTECTED] wrote: In the mx.controls.DataGrid, the dataProvider property is not a var, it is a get/set function pair. When

RE: [flexcoders] Re: Combobox will not display (only) one item

2007-03-14 Thread Alex Harui
This is a common question. Given some XML, and asked to convert to an object, how do we know if a single item should be an array? We don't, so single items become straight objects instead of arrays and thus don't work well in array collections, which are collections of objects. That's why if

RE: [flexcoders] Remote AVM1 swfs not able to execute code?

2007-03-14 Thread Alex Harui
Don't have time to look at the code, but AVM1 swfs are always sandboxed, so you can't access them from Flex2. Other folks have created proxy swfs in Flash 8 that listen to the Flex2 swf via local connection and call the original swf's code. From:

RE: [flexcoders] Re: Runtime Error Painting Screen for Embedded App

2007-03-14 Thread Alex Harui
Please see my blog post about shared code for modules at http://blogs.adobe.com/aharui The same applies for SWFLoaders. -Alex From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of tyriker Sent: Tuesday, March 13, 2007 11:54 AM To:

RE: [flexcoders] Need help with validation in a DataGrid

2007-03-14 Thread Alex Harui
Kinda hard to tell from what you've sent. If you see whole XML nodes it implies that dataField is not set correctly. It has to be @attributeName for XML attributes. What does the XML look like? From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED]

RE: [flexcoders] DataGrid! mx:Validator in a mx:DataGrid, and Annoying Enter key behavior?

2007-03-14 Thread Alex Harui
You will probably have to get the Enter key event by listening for it in capture phase and calling stopImmediatePropagation. You might be able to do it by watching for ITEM_EDIT_BEGINNING and intercept where it wants to move the editor. From:

RE: [flexcoders] ALT-GR + key not working in Firefox

2007-03-14 Thread Alex Harui
There are known issues with some key combinations. The player is still code-page input oriented and can't handle certain Unicode situations. I'm not familiar with the keyboards to know if that's your situation or not. -Alex -Original Message- From: flexcoders@yahoogroups.com

RE: [flexcoders] Can't I style an anchor in a RichTextEditor??

2007-03-14 Thread Alex Harui
HTML/CSS support in Flash/Flex has always been limited. We're just not a browser. You can style anchor tags, but not in editable controls. If you don't need editability, use Text instead of RichTextEditor and set htmlText and a styleSheet (not styleName). Try to follow the example in

RE: [flexcoders] Re: Getting selectedItems to properly *select*...

2007-03-14 Thread Alex Harui
Arrays in Flex and Flash are not watched for changes. After you mutate the array you have to set it again. var tmp:Array = myGrid.selectedItems tmp += item; myGrid.selectedItems = tmp; If you see something that takes an ArrayCollection then it is watched for changes. IOW, the grid did

RE: [flexcoders] Re: Can't I style an anchor in a RichTextEditor??

2007-03-14 Thread Alex Harui
. As it stands now, I'll pretty much have to roll out my application with the URL text box removed from the RichTextEditor. Since it's completely unusable sans any type of visual feedback in the text. --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , Alex Harui [EMAIL PROTECTED

RE: [flexcoders] BindableComboBox

2007-03-14 Thread Alex Harui
I haven't looked at it. Is BindableComboBox.selectedItemValue marked with [Bindable] metadata? From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of lucian_13_ Sent: Wednesday, March 14, 2007 3:55 PM To: flexcoders@yahoogroups.com Subject:

RE: [flexcoders] ALT-GR + key not working in Firefox

2007-03-14 Thread Alex Harui
Unfortunately, Portuguese is not an officially supported language for Flash. It should work mostly, but there are apparently some known code-page related issues. You can file a bug at www.adobe.com/go/wish, but you probably won't get immediate action. What other diagnostics have you

RE: [flexcoders] Combobox erases typed text when tabing away or closing the dropdown list

2007-03-14 Thread Alex Harui
: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Alex Harui Sent: Wednesday, March 14, 2007 4:41 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Combobox erases typed text when tabing away or closing the dropdown list Sounds like a bug. Please file a bug

RE: [flexcoders] Re: Getting selectedItems to properly *select*...

2007-03-14 Thread Alex Harui
: [flexcoders] Re: Getting selectedItems to properly *select*... --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , Alex Harui [EMAIL PROTECTED] wrote: Arrays in Flex and Flash are not watched for changes. After you mutate the array you have to set it again. var tmp:Array

RE: [flexcoders] Remote AVM1 swfs not able to execute code?

2007-03-14 Thread Alex Harui
() { displayText.text = 'bar' } init() if proxy is running on domainA displayText displays 'bar', if on domainB displays 'foo'. go figure. Bjorn On 15/03/2007, at 10:39 AM, Alex Harui wrote: Did you make the right allowDomain call? Read up on LocalConnection security

RE: [flexcoders] Combobox erases typed text when tabing away or closing the dropdown list

2007-03-15 Thread Alex Harui
to it... Can the DataGridListItemRenderer do html? I am using the TEXT control because it has a HTML property... Thanks much From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Alex Harui Sent: Wednesday, March 14, 2007 5:51 PM To: flexcoders

RE: [flexcoders] Can not load Module using ModuleManager ...

2007-03-15 Thread Alex Harui
If you're loading from a different domain you need crossdomain.xml and I think you may need to specify the securitydomain as well. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of helihobby Sent: Wednesday, March 14, 2007 6:51 PM To:

RE: [flexcoders] Re: Getting selectedItems to properly *select*...

2007-03-15 Thread Alex Harui
To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Getting selectedItems to properly *select*... --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , Alex Harui [EMAIL PROTECTED] wrote: Are you saying that myAC[0] was modified so that the sub AC was removed? I'd go find out what

RE: [flexcoders] Re: BindableComboBox

2007-03-15 Thread Alex Harui
--- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , Alex Harui [EMAIL PROTECTED] wrote: I haven't looked at it. Is BindableComboBox.selectedItemValue marked with [Bindable] metadata?

RE: [flexcoders] Re: Preventing PopupManager to make popups over the MenuBar?

2007-03-15 Thread Alex Harui
Popup the menubar with PopUpManagerChildList.POPUP -Alex From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Danko Kozar Sent: Thursday, March 15, 2007 4:06 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Preventing

RE: [flexcoders] Skinning for Grid Header

2007-03-15 Thread Alex Harui
One way is to use a custom header renderer. Check out examples and doc on custom itemRenderers. A headerRenderer is basically a custom itemRenderer. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of sanjaypmg Sent: Thursday, March 15,

RE: [flexcoders] TextArea.text confusion

2007-03-15 Thread Alex Harui
Sounds like he wants the light grey add comments in the TA and then have it clear on focus in. For sure, textChanged will be false by the time you get back from super.commitProperties so I think I'd check the text before calling super.commitProperties and change it to the default if needed.

RE: [flexcoders] Runtime Memory Problems

2007-03-16 Thread Alex Harui
GC is opportunistic. This means it does not run all of the time. It tends to be triggered by allocating memory instead of freeing it, so watching an idle app will almost never result in GC. A good test is to cycle between two images 1000's of times and see if memory usage is unbounded.

RE: [flexcoders] Re: Runtime Memory Problems

2007-03-16 Thread Alex Harui
original email. The images we are dealing with are 256Meg to 600Meg and the application will get up over 2.5Gig and then free up memory. I have 2Gig of physical ram in my machine. Mike --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , Alex Harui [EMAIL PROTECTED] wrote: GC

RE: [flexcoders] Re: Datagrid Button Renderer Performance

2007-03-16 Thread Alex Harui
updateDL gets called incase you want to change the font color based on the selection highlight. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of durnelln Sent: Friday, March 16, 2007 5:40 AM To: flexcoders@yahoogroups.com Subject:

RE: [flexcoders] using itemRenderer with List, how can I set the icon?

2007-03-16 Thread Alex Harui
Should be there if you extended ListItemRenderer. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Greg Morphis Sent: Friday, March 16, 2007 11:17 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] using itemRenderer with List, how

RE: [flexcoders] Best way to graphical assets into Flex

2007-03-16 Thread Alex Harui
Code in Player 8 (and earlier) SWFs cannot be easily accessed from Flex. The only way to communicate is via LocalConnection. If you can port to the CS3 release of Flash Authoring. Then create a SWC and you have a class that you can use in Flex. From:

RE: [flexcoders] Passing different dataFields to the same itemRenderer component

2007-03-16 Thread Alex Harui
You need to implement IDropInListItemRenderer (and the listData property). The listData will give you the column that owns you. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of missgiggygirl Sent: Friday, March 16, 2007 8:37 AM To:

RE: [flexcoders] Can we scroll two or more datagrid at the same time?

2007-03-16 Thread Alex Harui
You can listen for scroll events and set the other DG's horizontalScrollPosition as needed. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of tang81285 Sent: Friday, March 16, 2007 1:18 AM To: flexcoders@yahoogroups.com Subject:

RE: [flexcoders] Using Flex Components in an Actionscript Project

2007-03-18 Thread Alex Harui
Canvas is most like scrollpane. It is possible to use components in AS-only, but you'll need to subclass Application and SystemManager to do it. -Alex From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of dasubermutt Sent: Sunday,

RE: [flexcoders] Re: Passing different dataFields to the same itemRenderer component

2007-03-18 Thread Alex Harui
?xml version=1.0 encoding=utf-8? mx:VBox xmlns:mx=http://www.adobe.com/2006/mxml; horizontalAlign=center verticalAlign=middle width=16 height=16 implements=mx.controls.listClasses.IDropInListItemRenderer mx:Script ![CDATA[ import

RE: [flexcoders] mask/clip dragged proxy image

2007-03-18 Thread Alex Harui
We generally don't have ways to constrain the mouse position. Instead, the can't drop here cursor shows up except over the droptarget. -Alex From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Paul Hastings Sent: Sunday, March 18, 2007

RE: [flexcoders] Re: DataGrid multiple selection without CNTL key

2007-03-18 Thread Alex Harui
I suppose you could subclass DG and override selectItem(). -Alex From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Paul DeCoursey Sent: Sunday, March 18, 2007 6:58 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: DataGrid

RE: [flexcoders] Some optimalization questions

2007-03-18 Thread Alex Harui
When a single property changes, the list is marked dirty and all visible items will be redrawn on the next frame. Seems like we should be smarter about this, but we do it this way because we don't want to assume a property only affects one item. It could affect some other item via labelFunction

RE: [flexcoders] question about drag drop support in list-based component

2007-03-18 Thread Alex Harui
The droptarget lists will receive DRAG_ENTER, DRAG_OVER, and DRAG_EXIT events. The DragEvent passed in contains a dragInitiator property which points to the source of the drag. You should implement handlers for these events, and if the source is not the right one, call

RE: [flexcoders] ComboBox URLs

2007-03-18 Thread Alex Harui
Assuming you know the mapping of combobox items to URLs, you can populate the array as follows: mx:Array mx:Object label=choice 1 url=http://a.b.com/url1; / mx:Object label=choice 2 url=http://a.b.com/url2; / mx:Object label=choice 3

RE: [flexcoders] Re: ComboBox URLs

2007-03-18 Thread Alex Harui
, Alex Harui [EMAIL PROTECTED] wrote: Assuming you know the mapping of combobox items to URLs, you can populate the array as follows: mx:Array mx:Object label=choice 1 url=http://a.b.com/url1 http://a.b.com/url1 / mx:Object label=choice 2 url=http://a.b.com/url2 http://a.b.com/url2

RE: [flexcoders] Re: Custom VScrollBar class assigned to a container !

2007-03-19 Thread Alex Harui
That's a toughie. We haven't made that easy to do. I know others have tried it. Not sure if they finished or gave up. I think you have to set horizontalScrollPolicy=on and set up the scrollbars in createChildren. From: flexcoders@yahoogroups.com

RE: [flexcoders] xml document not well-formed?

2007-03-19 Thread Alex Harui
Are you getting a compile error? If so, I start deleting parts of the XML until it stops complaining and then examine what made the difference. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Greg Morphis Sent: Friday, March 16, 2007

RE: [flexcoders] CursorManager, PopupManager - internal state across module load?

2007-03-19 Thread Alex Harui
This is the shared code issue explained in my presentation at 360Flex. You can find out more on my blog at blogs.adobe.com/aharui From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of david_mccraw123 Sent: Friday, March 16, 2007 9:35 AM To:

RE: [flexcoders] Fascinating problem hiding columns in a DataGrid

2007-03-19 Thread Alex Harui
Lots of hidden column, column resize issues were fixed in an update due out soon. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Peter Demling Sent: Friday, March 16, 2007 8:24 AM To: flexcoders@yahoogroups.com Subject: [flexcoders]

RE: [flexcoders] programmatically adding a new column to the datagrid

2007-03-19 Thread Alex Harui
newColumn.headerRenderer = new ClassFactory(myHeaderRenderer); MXMLC generates this code for you when you say headerRenderer=myHeaderRenderer in MXML. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Mark McCray Sent: Monday, March

RE: [flexcoders] Checkbox in Datagrid to Select Items

2007-03-19 Thread Alex Harui
FWIW, by writing even more code, you can avoid the looping. You'd have to have a known central registry that customized checkboxes notify when clicked. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Tracy Spratt Sent: Monday, March

RE: [flexcoders] Datagrid column width bug? flex 2.0.1

2007-03-19 Thread Alex Harui
There are a number of column width bugs fixed in an updater due out soon. -Alex From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of munene_uk Sent: Monday, March 19, 2007 8:53 AM To: flexcoders@yahoogroups.com Subject: [flexcoders]

RE: [flexcoders] Re: using itemRenderer with List, how can I set the icon?

2007-03-19 Thread Alex Harui
Greg, I replied the same day, and Ben replied today. Are you extending ListItemRenderer? -Alex From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Greg Morphis Sent: Monday, March 19, 2007 1:42 PM To: flexcoders@yahoogroups.com

RE: [flexcoders] Cast Object (Assoc Array) to Array Collection...

2007-03-19 Thread Alex Harui
Doubt it. How would it know what order? How do you know the order? You could make a custom assocarraycollection. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Kevin Sent: Monday, March 19, 2007 12:44 PM To:

RE: [flexcoders] DataGridColumn not handling property.property references in Webservice Result

2007-03-19 Thread Alex Harui
That dg columns don't support dot-path expressions. Most places in Flex don't as it requires an eval and slows things down. You can use labelFunction to dig deeper. -Alex From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of

RE: [flexcoders] how can I know what browser my app is in?

2007-03-19 Thread Alex Harui
This is being used in some cases: /* Autodetect browser type; sets browser var to 'IE', 'Safari', 'Firefox' or empty string. */ function getBrowser() { var name = navigator.appName; var agent = navigator.userAgent.toLowerCase(); if (name.indexOf('Microsoft') != -1) {

RE: [flexcoders] Re: Help - Flex application no longer works!

2007-03-20 Thread Alex Harui
Add a DateFormatter to the main app. If that solves the problem then you have a linker dependency issue. If you are using modules, rsls or otherwise using -extern options you might be excluding the locale data somehow. -link-report is helpful in these situations. -Alex

RE: [flexcoders] Dimension limit on Sprite or Displayobject?

2007-03-20 Thread Alex Harui
You have to stay within 2880 pixels. http://www.adobe.com/cfusion/knowledgebase/index.cfm?id=tn_14437 It is one of the reasons why the list classes virtualize the rows. -Alex From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of

RE: [flexcoders] Re: Event Dispatching through more than one component

2007-03-20 Thread Alex Harui
Each popup is parented by the systemManager so it won't bubble from one popup to the next. However, each popup can listen to the systemManager for the event to bubble to it, or listen in capture phase so you don't have to use bubbling. From:

RE: [flexcoders] Using Flex to extract a phrase from a text file

2007-03-20 Thread Alex Harui
How about: var pos:int = randomText.indexOf('.swf'); var url:String = randomText.substring(0, pos + 4); pos = url.lastIndexOf(''); url = url.substring(pos + 1); From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of João Sent:

RE: [flexcoders] Cant unload module .swf if it contains a ViewStack?? please help

2007-03-20 Thread Alex Harui
Sorry, this is a known issue. You can try turning off historyManagementEnabled. -Alex From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Russell Munro Sent: Tuesday, March 20, 2007 9:48 PM To: flexcoders@yahoogroups.com Subject:

RE: [flexcoders] Can validation prevent text input entry?

2007-03-20 Thread Alex Harui
No, validation is not blocking. It is just that the itemEditor is going away. What most folks do is check validation on ITEM_EDIT_END and prevent the change to the dataprovider by calling preventDefault(). You can also catch ITEM_EDIT_BEGINNING and return the editor to the bad cell if the user

RE: [flexcoders] PopUp Returning NULL

2007-03-21 Thread Alex Harui
Are these things in modules? If so, you might have the shared code problem. What's the full text of the error? From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Kevin Sent: Wednesday, March 21, 2007 10:06 AM To:

RE: [flexcoders] Module issue

2007-03-21 Thread Alex Harui
Check your lib-path to make sure the framework.swc is the right one. If you end up with a 2.0 instead of 2.0.1 it won't know about moduleloader. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of fabio_sebastiano Sent: Wednesday, March

RE: [flexcoders] Re: Can validation prevent text input entry?

2007-03-21 Thread Alex Harui
do I trigger validation, and then check the result, to finally call event.preventDefault() if the shit hits the fan? Thanks for your help. The docs in this dept are incredibly lacking.. Alex - Original Message - From: Alex Harui To: flexcoders@yahoogroups.com

RE: [flexcoders] Re: Help - Flex application no longer works!

2007-03-21 Thread Alex Harui
mailto:flexcoders%40yahoogroups.com , Alex Harui [EMAIL PROTECTED] wrote: Add a DateFormatter to the main app. If that solves the problem then you have a linker dependency issue. If you are using modules, rsls or otherwise using -extern options you might be excluding the locale data somehow. -link

RE: [flexcoders] Re: Event Dispatching through more than one component

2007-03-21 Thread Alex Harui
to achieve!). Thanks, - Chris --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , Alex Harui [EMAIL PROTECTED] wrote: Each popup is parented by the systemManager so it won't bubble from one popup to the next. However, each popup can listen to the systemManager for the event

RE: [flexcoders] Re: Cant unload module .swf if it contains a ViewStack?? please help

2007-03-21 Thread Alex Harui
Subject: [flexcoders] Re: Cant unload module .swf if it contains a ViewStack?? please help damn, but Thanks Alex. historyManagementEnabled=false had no effect. Does anyone else have any work arrounds? --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , Alex Harui [EMAIL

RE: [flexcoders] Key Events not raised from Modules

2007-03-21 Thread Alex Harui
I just tried it. The FocusManager's keyDownHandler did get called even though focus was in the module. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Shaun Sent: Wednesday, March 21, 2007 8:32 AM To: flexcoders@yahoogroups.com

RE: [flexcoders] Re: Security error accessing url

2007-03-21 Thread Alex Harui
When you launch a FB SWF from the file system, it has been set up to run in local-with-networking security mode. This most closely resembles the environment you will run in on the web. The folders in your projects directories are trusted, otherwise you'd get security errors accessing jpgs in

RE: [flexcoders] Null pointer exception on MouseUp event

2007-03-21 Thread Alex Harui
You can subclass DG, override mouseUpHandler and just return if you know you've just shrunk the DG. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Sean Sell Sent: Wednesday, March 21, 2007 12:33 PM To: flexcoders@yahoogroups.com

RE: [flexcoders] Complete event from mx:Image

2007-03-21 Thread Alex Harui
mx:Image is the component that loads the image as a child and not the image itself. complete is fired when all the bytes of the image are downloaded. You see complete, then the Image wrapper does and adjusts its size. An updateComplete will be dispatched when it is sized. Different

RE: [flexcoders] Re: Cant unload module .swf if it contains a ViewStack?? please help

2007-03-21 Thread Alex Harui
a ViewStack?? please help On the viewStack. Tried setting in AS3 just before unload and still no effect. --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , Alex Harui [EMAIL PROTECTED] wrote: Did you set it on the app or the Viewstack? You might have to set it just before you

RE: [flexcoders] Re: Can validation prevent text input entry?

2007-03-21 Thread Alex Harui
that needs to handle the various types of editors that the grid will contain. - Original Message - From: Alex Harui mailto:[EMAIL PROTECTED] To: flexcoders@yahoogroups.com mailto:flexcoders@yahoogroups.com Sent: Wednesday, March 21

RE: [flexcoders] Re: Cant unload module .swf if it contains a ViewStack?? please help

2007-03-21 Thread Alex Harui
Reminder: This is fixed in the updater due out soon, so short-term means 30-days or so. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Alex Harui Sent: Wednesday, March 21, 2007 10:52 PM To: flexcoders@yahoogroups.com Subject: RE

RE: [flexcoders] Re: Load Tree Icon at Runtime

2007-03-22 Thread Alex Harui
External image files come in as an instance of Bitmap and are therefore not convertible to a Class. I would recommend a custom TreeItemRenderer that expects its icon to be externally loaded. You can steal most of the code from the FlexStore examples for the TileList renderer. -Alex

RE: [flexcoders] Finding index of thumbnail in itemRenderer (and passing it along to popUpManager

2007-03-22 Thread Alex Harui
If you implement IDropInListItemRenderer, the listData property has an owner property that points to the TileList. You can also just assume that parent.parent is the TileList. However, in theory, all the data you need is in the data property so you shouldn't need index.

RE: [flexcoders] Icons disappear from Menu at Compile Time

2007-03-22 Thread Alex Harui
It's not a bug. It has to do with variable scoping. I'll assume you have data like { label: foo, icon : myTopIcon } The icon property is a string, not a class. The menu renderer wants a class. You could set up your data like: { label: foo, icon: myTopIcon } Then icon is a

RE: [flexcoders] htmlText Bug in Label and UITextField

2007-03-22 Thread Alex Harui
I think by default those components do not have .selectable=true so links are inactive off left-click. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of maury.sword Sent: Thursday, March 22, 2007 9:12 AM To: flexcoders@yahoogroups.com

RE: [flexcoders] null pointer exception when creating DragProxy and assigning value?

2007-03-22 Thread Alex Harui
Are you getting an exception? Post it. It helps me see what the problem is. Note that the design is that you can subclass List and override the get dragImage function and return a different DragProxy there. -Alex From: flexcoders@yahoogroups.com

RE: [flexcoders] question about embedded fonts in customized component

2007-03-22 Thread Alex Harui
Either. Embedded fonts are SWF-global. Copy an example of embedding fonts (look for font-face in the examples). A good way to test if you've got it right is to set .rotation on an object and see if the fonts rotate or disappear. If they disappear then you didn't get your embedding right. Note

RE: [flexcoders] Re: Help - Flex application no longer works!

2007-03-22 Thread Alex Harui
no longer works! Should I file a bug report for this? Nick. --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , Alex Harui [EMAIL PROTECTED] wrote: I think there are issues with resources in loaded apps. The apps can end up looking at the main app for their resources instead

RE: [flexcoders] Re: Module issue

2007-03-22 Thread Alex Harui
a lot of time!!! Thanks, Fabio --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , Alex Harui [EMAIL PROTECTED] wrote: Check your lib-path to make sure the framework.swc is the right one. If you end up with a 2.0 instead of 2.0.1 it won't know about moduleloader

RE: [flexcoders] Inline DateField ItemRenderer causes Entire Datagrid contents to disappear

2007-03-22 Thread Alex Harui
Haven't heard that one before. Try two columns, DateField and something else. Maybe it is interaction between a pair of things. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Chad Sherwood Sent: Thursday, March 22, 2007 10:31 AM To:

RE: [flexcoders] Re: RTE when using itemRenderers in DataGrid.

2007-03-22 Thread Alex Harui
Please recompile with -verbose-stacktraces and post the contents of the exception dialog. invalidateList requests validateDisplayList call in the next frame update. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of tonmmp Sent:

RE: [flexcoders] Re: Icons disappear from Menu at Compile Time

2007-03-22 Thread Alex Harui
--- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , Alex Harui [EMAIL PROTECTED] wrote: It's not a bug. It has to do with variable scoping. I'll assume you have data like { label: foo, icon : myTopIcon } Well, I actually populate the menu by calling a function when a button

RE: [flexcoders] Re: Inline DateField ItemRenderer causes Entire Datagrid contents to disappear

2007-03-22 Thread Alex Harui
The DateField expects a data[dataField] to be of type Date not String. You'll probably have to convert String to Date. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Chad Sherwood Sent: Thursday, March 22, 2007 11:05 AM To:

RE: [flexcoders] Re: Event Dispatching through more than one component

2007-03-23 Thread Alex Harui
are removed? I've been noticing that in other code I've looked at online. Thanks Alex! Makes a whole lot more sense now! - Chris --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , Alex Harui [EMAIL PROTECTED] wrote: The top of the display list is the stage. The stage always has

RE: [flexcoders] Preloading a tilelist of images?

2007-03-23 Thread Alex Harui
There's no option for TileList to pre-fetch. If you know the thumbnails and they won't change, you can always embed them and use a different itemRenderer that assumes the images are embedded. Then they are guaranteed to be there when the app starts up, but that can slow download and startup

  1   2   3   4   5   6   7   8   9   10   >