[flexcoders] Re: Is there a way to detect whether a TextLine is partially cut-off (vertically) in TLF?

2011-10-26 Thread Baz
.textHeight <= height) { break; } } Baz On Wed, Oct 26, 2011 at 7:56 PM, Baz wrote: > Say you had a container that was 15px tall, and each TextLine was 10px high > - the last TextLine would be vertically clipped by 5px, but since it is > partially visible, TLF would mark it as visibl

Re: [flexcoders] Manual TextFlow + Embedded Font not supported?

2011-10-26 Thread Baz
Version 10.3.183.10 - u? :) So what exactly worked for you, the initial app I pasted or the one I provided a link for later? Thanks, Baz

Re: [flexcoders] Manual TextFlow + Embedded Font not supported?

2011-10-26 Thread Baz
Hey Alex, I'm using TLF 1.1 Build 604 that I think comes bundled with 4.1 - you? Baz On Wed, Oct 26, 2011 at 9:42 PM, Alex Harui wrote: > ** > > > For me, the font looks right although the console reports Times New Roman. > Which version of TLF are you using? > &g

[flexcoders] Is there a way to detect whether a TextLine is partially cut-off (vertically) in TLF?

2011-10-26 Thread Baz
Say you had a container that was 15px tall, and each TextLine was 10px high - the last TextLine would be vertically clipped by 5px, but since it is partially visible, TLF would mark it as visible. Anyone know if there is a smart way to detect when a TextLine is vertically clipped? Thanks, Baz

Re: [flexcoders] Manual TextFlow + Embedded Font not supported?

2011-10-26 Thread Baz
We're on 4.1. Cheers, Baz On Wed, Oct 26, 2011 at 2:56 PM, Alex Harui wrote: > ** > > > Which version do want it to work in? > > > > On 10/26/11 1:44 PM, "Baz" wrote: > > > > > > > Actually what Alex mentioned is correct too -

Re: [flexcoders] Manual TextFlow + Embedded Font not supported?

2011-10-26 Thread Baz
Actually what Alex mentioned is correct too - I need to change the linkage to "merged into codes well as upgrade to 4.5.1. Baz On Wed, Oct 26, 2011 at 1:40 PM, Baz wrote: > My examples work in Flex 4.5.1, and monkey patching is not straightforward > based on my Googling. Looks

Re: [flexcoders] Manual TextFlow + Embedded Font not supported?

2011-10-26 Thread Baz
My examples work in Flex 4.5.1, and monkey patching is not straightforward based on my Googling. Looks like no way out without upgrading. Baz On Tue, Oct 25, 2011 at 12:37 PM, Baz wrote: > Hey Alex, > > I tried changing "Framework Linkage" to "Merged into Cod

Re: [flexcoders] Manual TextFlow + Embedded Font not supported?

2011-10-25 Thread Baz
5, 2011 at 10:02 AM, Alex Harui wrote: > ** > > > See the embedded font post on my blog. The control needs to have the > right SWF context. Does it work if you turn off RSLs? > > > > On 10/25/11 3:01 AM, "Baz" wrote: > > > > > >

[flexcoders] Manual TextFlow + Embedded Font not supported?

2011-10-25 Thread Baz
creationComplete="application1_initializeHandler(event)" minWidth="955" minHeight="600"> I know the font works because if I specify *any* embedded font directly in the RichEditableText, the specified embedded fonts shows up. Thanks, Baz

Re: [flexcoders] line returns in a tooltip field

2010-06-26 Thread Baz
In flex 4 this works:

Re: [flexcoders] recursion help?

2010-06-23 Thread Baz
Awesome! Gregor it works perfectly, not even a slight adjustment needed, thanks! So much prettier now :) Oleg, thank you too for your input! Cheers, Baz

[flexcoders] recursion help?

2010-06-23 Thread Baz
I'm having a heck of a time converting this search of nested arrays from fixed depth to variable depth using recursion. Any recursion gurus willing to help? public function filterFolderFromPath(fullPath:String):void { for each (var currentFolder:Folder in folders) { if(currentFolder.path == ful

[flexcoders] How to make a s:Label with variable content wrap, without specifying width=100%?

2010-06-22 Thread Baz
I have a s:Label in an ItemRender whose content is variable in length from item to item. This label also has a ToolTip defined that gets displayed when a user hovers over the text. I would like for this label to wrap and adjust to the browser size, but I don't want to specify width=100% because the

[flexcoders] What happened to Flex 4 SDK nightly builds?

2010-06-22 Thread Baz
I just went to check out the Flex 4 SDK nightlies ( http://opensource.adobe.com/wiki/display/flexsdk/Download+Flex+4) and noticed that there haven't been any builds since May 12th - anyone know what that's about?

[flexcoders] Transitions don't work with stateGroups?

2010-05-31 Thread Baz
I have defined the following stateGroup and transition, but the transition doesn't fire when the "toState" is to a stateGroup. It does work if its directly to the state name. Is this normal?

Re: [flexcoders] Highlight keywords in a block of text using TextLine

2010-05-31 Thread Baz
Oh Andriy I just realized what you suggested is the same thing, just on a RichText through editManager.applyFormat - very nice. Baz

Re: [flexcoders] Highlight keywords in a block of text using TextLine

2010-05-31 Thread Baz
Thanks a lot for your input guys. Nice example Andriy, but the viewsource link is dead. I think I found the simplest way of doing this: setFormatOfRange() It basically changes the format (background/foreground) of a range of characters in a RichEditableText component. So all I have to do is (from

Re: [flexcoders] Highlight keywords in a block of text using TextLine

2010-05-31 Thread Baz
Is it possible to use mxml tags like RichEditableText or TextArea whose content is already populated as the source for this process? What would we get from them, TextLine's? TextBlock's? This is a lot more challenging than I thought it would be :)

Re: [flexcoders] Highlight keywords in a block of text using TextLine

2010-05-30 Thread Baz
OLEG! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! AWESOME! ! ! ! ! It works! I've been trying for 2 days :)

[flexcoders] Highlight keywords in a block of text using TextLine

2010-05-30 Thread Baz
s KEYWORDS. I would like to highlight these KEYWORDS by changing their font color and adding a light yellow background graphic.", normalFormat)); textLine = textBlock.createTextLine(); textLine.y = 100; embeddedFontHolder.addChild(textLine); } Anyone have any ideas? Cheers, Baz

Re: [flexcoders] How to get X, Y position/coordinates of a specific character/letter in a text field

2010-05-29 Thread Baz
gh. Do I use "atoms"? How do I get at a RichEditableText's TextLines, it sems only available in TextArea? Should I use "TextFlowComposer"? What would the general anatomy of a "HighlightComponenet" look like? Thanks! On Fri, May 28, 2010 at 11:04 AM, Baz wr

Re: [flexcoders] useHandCursor and selectable="true"?

2010-05-28 Thread Baz
does exactly that! Baz

[flexcoders] useHandCursor and selectable="true"?

2010-05-28 Thread Baz
I would like to use the hand cursor while still allowing my RichEditbleText to be selectable. The combination of selectable="true" and useHandCursor="true" does not change the cursor to a hand. Any ideas?

Re: [flexcoders] How to get X, Y position/coordinates of a specific character/letter in a text field

2010-05-28 Thread Baz
Alex I'm going to look into that, thanks for the tip. Similarly, if I wanted to change the font color of a single word, would I use TextLine (or something similar) or would I then have to manually break apart the tags to be able to give them different styles?

Re: [flexcoders] How to get X, Y position/coordinates of a specific character/letter in a text field

2010-05-27 Thread Baz
Now that some time's gone by, what is the best way in Flex 4 to get the coordinates of a specific character? I would like to highlight keywords in a RichEditableText component - very much like this example: http://flexdevtips.blogspot.com/2010/05/highlight-scrollbar-track.html (view source enabled)

Re: [flexcoders] Is it possible to define a component's skin within the component itself using something like fx:component?

2010-05-27 Thread Baz
Thank you.

[flexcoders] Is it possible to define a component's skin within the component itself using something like fx:component?

2010-05-27 Thread Baz
Is it possible to define a component's skin within the component itself along the lines of: http://ns.adobe.com/mxml/2009";> ...

Re: [flexcoders] Re: Is it possible to integrate the CTRL+F browser search with flex text?

2010-05-26 Thread Baz
ferent > code. For example, if the object is a datagrid I grab the dataprovider and > search that. If it's a text field, it is way easier. It can get tricky in > some situations (like the data is filtered etc). Then, of course, you need a > way to highlight the found text. > >

Re: [flexcoders] Having trouble justifying Flex to the higher-ups... It only seems to be appropriate for media based sites...

2010-05-25 Thread Baz
Thanks Oleg. You confirmed my suspicions. You are right that Flex/Flash performs very well for exactly the type of site you referenced (pixlr.com). I can affirm though, that it does not perform great with text heavy activities - especially if we are talking about RichEditableText with the and , et

[flexcoders] Having trouble justifying Flex to the higher-ups... It only seems to be appropriate for media based sites...

2010-05-25 Thread Baz
ing non audio/visual related. Besides the advantage of it being cross-browser/cross-platform, is there any compelling reason to consider Flex for this app rather than HTML/AJAX? Cheers, Baz

Re: [flexcoders] Re: Is it possible to integrate the CTRL+F browser search with flex text?

2010-05-25 Thread Baz
nda like the browsers search box (Enough so > that the users didn't complain). > > > --- In flexcoders@yahoogroups.com , Baz > wrote: > > > > I love it. So openSearchWindow() is your own custom "find" functionality > > coded in flex and manually searc

Re: [flexcoders] Re: Is it possible to integrate the CTRL+F browser search with flex text?

2010-05-24 Thread Baz
I love it. So openSearchWindow() is your own custom "find" functionality coded in flex and manually searches contents on the page, right? You haven't found a way to integrate directly with a browser's search box? Baz On Mon, May 24, 2010 at 10:48 AM, valdhor wrote: > openSearchWindow();

Re: [flexcoders] Re: Is it possible to integrate the CTRL+F browser search with flex text?

2010-05-24 Thread Baz
Interesting! How do you open a new tab? Detect the browser the execute the appropriate Javascript? For the CTRL+F popup - that's your own flex popup with search functionality right?

Re: [flexcoders] Is it possible to make multiple labels selectable as one text block like in regular html

2010-05-21 Thread Baz
It would be very beneficial if Flex/we could interact with all text in a particular view as a single, separate logical unit on its own *layer*.

[flexcoders] Is it possible to integrate the CTRL+F browser search with flex text?

2010-05-21 Thread Baz
All browsers have some text search functionality triggered by CTRL+F. Is it possible to use that to search text in a Flex application?

Re: [flexcoders] Is it possible to make multiple labels selectable as one text block like in regular html

2010-05-21 Thread Baz
mework, but if you write enough code I think > it should be possible. > > > > On 5/21/10 10:37 AM, "Baz" wrote: > > > > > > > If you have an item renderer with multiple labels like: > > > > > > > > Is it pos

Re: [flexcoders] how to adjust mouse wheel scrolling for custom itemrender?

2010-05-21 Thread Baz
nt before the scroller sees it by using a > capture phase or high priority event handler. > > > > On 5/18/10 11:23 AM, "Baz" wrote: > > > > > > > I have a skinnabledatacontainer with custom itemrender surrounded by a > scroller and I want to adjust how

[flexcoders] Is it possible to make multiple labels selectable as one text block like in regular html

2010-05-21 Thread Baz
If you have an item renderer with multiple labels like: Is it possible to make the text selectable across renderers and labels as one logical block exactly like in html?

[flexcoders] Is it possible to remove the 3d effects on controls like dropdownlist and scroller without extending them?

2010-05-21 Thread Baz
is it possible to remove the 3d effects on controls like dropdownlist and scroller without extending them? I just want them to be flat. Thanks, Baz

[flexcoders] Is it possible to disable automatic re-positioning of viewports when associated with a Scroller?

2010-05-19 Thread Baz
provide scrolling capabilities regardless of where I decide to place the viewport, without having to extend it - something like disableAutoPositioning=true - is this possible? Thanks, Baz

[flexcoders] how to adjust mouse wheel scrolling for custom itemrender?

2010-05-18 Thread Baz
sting scroller, then override the mx_internals "set mouseWheel" function. The file also has to be AS, because overriding mx_internals functions doesn't work in mxml . It's a very heavy solution for a relatively simple activity, am I missing something? Cheers, Baz

[flexcoders] Best way to remove line breaks from Label text?

2010-05-12 Thread Baz
I have an whose text comes from a DB. What's the best way to remove, or not show, any line breaks that may be in that text? I could use another text element if that's easier/cleaner. Thanks.

Re: [flexcoders] Re: Folder-style dragOver highlight on tree

2010-05-12 Thread Baz
Doesn't the node already highlight because you are rolling over it?

Re: [flexcoders] Re: Thoughts on Flash by Steve Jobs

2010-05-04 Thread Baz
The best part is that HTML5 video is going to be based on H.264 - which is not only a proprietary codec, BUT COSTS MONEY! At least flash is free. Here's an excerpt of what happened with gif: The web in 1999 was a lot smaller than it is today, so a lot of people don’t remember what happened back wh

[flexcoders] SSL + Secret Key, enough to secure remote services?

2010-05-04 Thread Baz
is securely stored on the server (not compiled into the swf!) 3. Use the secret key with every remote request to ensure the client is valid Any security holes with that? Cheers, Baz

Re: [flexcoders] Re: Thoughts on Flash by Steve Jobs

2010-05-04 Thread Baz
> > I think open and closed is too broad... and their definitions are moot. > If anything Flash is a daywalker. A half breed. Its a creature of the night > but it can exist during the day. It doesn't have to feed on human blood but > you wouldn't want to be around him when he's hungry. especially

[flexcoders] Out of curiosity, what would Adobe lose if Flash were open sourced?

2010-05-03 Thread Baz
I don't know much about how to answer this, so I'm not trying to take a position or anything: purely out of curiosity, what would Adobe lose if Flash were open sourced? Is it that competitors would more easily be able to make competing IDEs? Cheers, Baz

Re: [flexcoders] Re: how to handle remote requests the never return or get lost?

2010-05-03 Thread Baz
You confirmed my suspicions. I believe that very few developers employ this, but it seems quite important as requests can get lost relatively often. Anyone think it would be beneficial to have a TimeoutEvent built right in along side ResultEvent and FaultEvent to make it easier? Baz On Mon, May

[flexcoders] how to handle remote requests the never return or get lost?

2010-05-03 Thread Baz
s yet. Perhaps, people employ some timeout functionality on their remote listeners? Cheers, Baz

Re: [flexcoders] Re: Thoughts on Flash by Steve Jobs

2010-05-03 Thread Baz
, is that allowed? Are they also going to say I'm not allowed to use notepad to write my code? Cheers, Baz On Mon, May 3, 2010 at 8:15 AM, Gregor Kiddie < gregor.kid...@channeladvisor.com> wrote: > > > If we are swapping rumours though... > > > > I liked the one

Re: [flexcoders] Re: Flebuilder 3 manage project

2010-04-26 Thread Baz
://progit.org/book/ Good luck! Baz On Mon, Apr 26, 2010 at 2:18 PM, aceoohay wrote: > > > Okay, say I want to use some sort of version control. I am not opposed to > it, but I can't spend too much effort implementing this whilst still trying > to get the project done within

Re: [flexcoders] Re: Flebuilder 3 manage project

2010-04-26 Thread Baz
licking on "advanced" the selecting "link" (something like that) and choosing your network share. Also, yahoo can notify you of new messages - there is a "delivery preferences" option, or something like that. Baz On Mon, Apr 26, 2010 at 7:58 AM, aceoohay wrote:

Re: [flexcoders] Re: artchitectural suggestion for making any uicomponent draggable?

2010-04-13 Thread Baz
Very helpful, thanks! Anyone have success/recommends BIFFF (Behaviour Injection Framework For Flex) ?

[flexcoders] artchitectural suggestion for making any uicomponent draggable?

2010-04-12 Thread Baz
Hello, I have an application where any uicomponent is draggable relative to the stage. The code is the same for each one. Does anyone have a suggestion on a clean way of enabling that functionality for any uicomponent while minimizing duplication? Here is a snippet of the main (duplicate) dragging

[flexcoders] Does filterFunction create a new array behind the scenes?

2010-04-12 Thread Baz
Hi, Anyone know what filterFunction on an ArrayCollection does to the source array behind the scenes? Does it create a new subset array with the filtered items? Does it "hide" elements in the same array somehow? Thanks, Baz

Re: [flexcoders] Flex 4 list of text elements!

2010-04-10 Thread Baz
In the layout tag there is verticalScrollPolicy="off" and horizontalScrollPolicy="off" Baz

Re: [flexcoders] Virtualized Item Render - Display Current Row

2010-04-02 Thread Baz
Hey thanks Alex, but I am getting 0 for the value of verticalScrollPosition. I am using a SkinnableDataContainer with defined in it's skin and a custom itemRenderer="views.reports.ReportItemRenderer" - perhaps I am doing something wrong? Thanks again, Baz

[flexcoders] Virtualized Item Render - Display Current Row

2010-04-02 Thread Baz
I have an array collection with 1000 items that I display in a virtualized itemrenderer. What is the best way to display the row number of that item as it is in the big source query? That is, if they are looking at items 100-110 it would show 100, 101, 102, ... and not 1, 2, 3...

Re: [flexcoders] Re: Font Embedding from *.ttc files

2010-03-29 Thread Baz
He is not a genius, just highly gifted, he missed the mensa cut-off by 2 points... /RandomLateNightComment

Re: [flexcoders] Clean way to filter very large ArrayCollection (in pieces) using filterFunction

2010-03-26 Thread Baz
Thanks for the suggestion Roman, could you tell me a little more? How can I refresh only a certain range records? Baz

[flexcoders] Clean way to filter very large ArrayCollection (in pieces) using filterFunction

2010-03-25 Thread Baz
than jst at the end when it is done? Cheers, Baz

Re: [flexcoders] What happened to the examples on flexaxmples.com

2010-03-25 Thread Baz
Haha, thanks Peter! Thanks Adnan! I swear I tried around 5 random samples and there was no flex app in any of them, talk about bad luck. I love this resource, I started a Progressive Auto Quote :)

Re: [flexcoders] What happened to the examples on flexaxmples.com

2010-03-25 Thread Baz
Yeah I did mis-type the urls in the email, but that's the site I'm talking about. Do you see any flex demos on this page for example: http://blog.flexexamples.com/2009/11/11/creating-an-animated-transition-when-scrolling-through-items-in-a-spark-hgroup-container/

[flexcoders] What happened to the examples on flexaxmples.com

2010-03-25 Thread Baz
Is it just me or did flexamples.com remove the actual flex application demos and only leave the code?

Re: [flexcoders] How can I keep myself motivated to program in Flex? Please help. Thanks?

2009-12-10 Thread Baz
Maybe you should see a doctor, it's not normal to black-out every 3 days.

Re: [flexcoders] Re: Honestly guys , at 48 should I expect Flex & AS3 to change my life job wise?

2009-11-29 Thread Baz
from there. At my company we couldn't care less about age, sex or race. We have a lot of foreigners and people of varying ages - it would be nice to have a few more females but they don't apply! Cheers, Baz On Sun, Nov 29, 2009 at 2:24 AM, Kevin Bowers wrote: > > > Hi, &g

Re: [flexcoders] Question about Flex Actionscript 3 code & Flash actionscript 3 code

2009-11-22 Thread Baz
flex components. At the end of the day, to be a good Flex developer, you have to also be a good AS3 developer, so it's in your interest to learn both. Good luck! Baz On Sat, Nov 21, 2009 at 5:27 PM, fred44455 wrote: > > > I am new to Flex however I have both platforms , Flex

[flexcoders] Re: embed font into preloader

2009-10-19 Thread Baz
? Thanks. On Thu, Oct 15, 2009 at 12:18 PM, Baz wrote: > I have a custom font I would like to use for my preloader, but I would like > to implement it without having to use Flash IDE. I know the exact text I > need to write, it is only 6 characters long, but later on in the app I will &

Re: [flexcoders] Re: defining more than one class in a simple .as file (ref)

2009-10-18 Thread Baz
me? On Fri, Oct 16, 2009 at 1:31 PM, Tracy wrote: > > > Please do not "hijack" threads. Unless your post is directly applicable to > another, start a new topic. > > Do not just change the subject line. It confuses some threaded readers, > like yahoo's html version. > > Tracy > > > --- In flexco

Re: [flexcoders] defining more than one class in a simple .as file (ref)

2009-10-15 Thread Baz
No definitely not, but I am curious what your specific use-case is to want that. How would you be able to find a class without opening every file to see if it is in there? On Thu, Oct 15, 2009 at 12:33 AM, dennis wrote: > > > I want to create more than one class in a single .as file, but final

[flexcoders] embed font into preloader

2009-10-15 Thread Baz
I have a custom font I would like to use for my preloader, but I would like to implement it without having to use Flash IDE. I know the exact text I need to write, it is only 6 characters long, but later on in the app I will need the entire set of chars of that font. What is the best way to go abou

[flexcoders] Duplicate decompression when app starts

2009-10-13 Thread Baz
I have a Flex 4 (gumbo) app that uses modules and it seems there is a lot of duplicate decompression and loading of swf's when the app runs, is this normal? Here is the trace: [SWF] /cf8/hub-debug/Hub.swf - 753,158 bytes after decompression [SWF] /cf8/hub-debug/Hub.swf - 2,247,068 bytes after deco

[flexcoders] Does SPLICE loop through the array or not?

2009-10-12 Thread Baz
Hi, if I have a large array and I wanted to remove, say, item #455 - is splice the best way to do that? How efficient is splice? Does it loop through the array anyway behind the scenes, or does it use a more direct mechanism to remove the item and adjust the rest of the count? Cheers, Baz

Re: [flexcoders] When does myArrayCollection.setItemAt() get invoked in the component lifecycle?

2009-10-09 Thread Baz
rui > > Flex SDK Developer > > Adobe Systems Inc. <http://www.adobe.com/> > > Blog: http://blogs.adobe.com/aharui > > > > *From:* flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] *On > Behalf Of *Baz > *Sent:* Friday, October 09, 2009 11:09 AM &g

[flexcoders] When does myArrayCollection.setItemAt() get invoked in the component lifecycle?

2009-10-09 Thread Baz
the invalidateProperties() / commitProprties() strategy when using setItemAt() on an Arraycollection or is this automatically handled? Cheers, Baz

Re: [flexcoders] callLater in a non UI actionscript component (pseudo-threading)

2009-10-09 Thread Baz
Alex thanks for the tip. I saw your post about pseudo-threading: http://blogs.adobe.com/aharui/2008/01/threads_in_actionscript_3.html Then I found this project doing it: http://code.google.com/p/async-threading/downloads/list Do you know that project? Should I use that? Thanks so much! Baz

[flexcoders] callLater in a non UI actionscript component (pseudo-threading)

2009-10-07 Thread Baz
I currently have an expensive process that I am pseudo-threading by processing part of it, then using callLater to process the rest. This lets me update the view after each batch is processed, giving the user feedback during the process. Also, it gives the user a window to 'interrupt' the process a

Re: [flexcoders] how light-weight is an array of custom objects if those custom objects already exist in another array?

2009-10-07 Thread Baz
Great, thank you! On Wed, Oct 7, 2009 at 11:13 AM, Paul Andrews wrote: > > > Baz wrote: > > > > > > Hi, > > > > I have an ArrayCollection of custom objects, and I need to create a > > subset of those custom objects based on a condition (without usin

[flexcoders] how light-weight is an array of custom objects if those custom objects already exist in another array?

2009-10-07 Thread Baz
Hi, I have an ArrayCollection of custom objects, and I need to create a subset of those custom objects based on a condition (without using the built-in filter() functionality). I am thinking of storing that subset in a second array, but that is not mandatory - performance is key in this piece of t

Re: [flexcoders] custom itemrender flicker

2009-10-06 Thread Baz
i > > > > *From:* flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] *On > Behalf Of *Baz > *Sent:* Monday, October 05, 2009 3:18 PM > *To:* flexcoders@yahoogroups.com > *Subject:* Re: [flexcoders] custom itemrender flicker > > > > > > Hey Alex, thank

Re: [flexcoders] custom itemrender flicker

2009-10-05 Thread Baz
items and u onl;y set one item? Thanks a lot! Baz On Mon, Oct 5, 2009 at 3:05 PM, Alex Harui wrote: > > > It depends on how you wrote the renderer. You can try overriding the > “function set data()” to check for changes to the object referenced by the > renderer, but the

[flexcoders] custom itemrender flicker

2009-10-05 Thread Baz
If I have a custom item render based on an ArrayCollection with 10 times, and just for fun, I loop through those 10 items and setItemAt the exact same values that are already there - on screen the list of items reloads in a sense, re-building itself to the exact same values. I would like that in su

[flexcoders] Re: If you refresh() an ArrayCollection, should that be in commitProperties() or updateDisplayList()?

2009-10-02 Thread Baz
Similarly, what about addItemAt() or setItemAt() - should those go in commitProperties() or updateDisplayList()? On Fri, Oct 2, 2009 at 11:11 AM, Baz wrote: > If you refresh() an ArrayCollection, should that be in commitProperties() > or updateDisplayList()? >

[flexcoders] If you refresh() an ArrayCollection, should that be in commitProperties() or updateDisplayList()?

2009-10-02 Thread Baz
If you refresh() an ArrayCollection, should that be in commitProperties() or updateDisplayList()?

Re: [flexcoders] Re: what happens if you setItemAt the exact same item in an ArrayCollection?

2009-10-01 Thread Baz
Oh excellent, I can do that :) Thanks a lot for your advice! On Thu, Oct 1, 2009 at 1:54 PM, mrcaraion wrote: > > > I think a solution will be to extend the ArrayCollection and to override > setItemAt() method (and other methods if needed) and to prevent the call of > super.setItemAt() if the

Re: [flexcoders] Re: what happens if you setItemAt the exact same item in an ArrayCollection?

2009-10-01 Thread Baz
Thank you. To stop views from updating if an object with the same values was set, how would I intercept the events that get fired and cancel them? Would I play with the bubbling values? Cheers, Baz On Wed, Sep 30, 2009 at 11:20 PM, mrcaraion wrote: > > > The ArrayCollection will d

[flexcoders] what happens if you setItemAt the exact same item in an ArrayCollection?

2009-09-30 Thread Baz
the object was a different instance, but had the exact same values? Is this considered a *new* object and events will be fired? Thanks for your time! Baz

[flexcoders] Re: Text Effect: One Letter at a Time

2009-08-31 Thread Baz
I am thinking that I need to isolate the position of the specific letter, then create a new text element with that letter to animate then destroy. What do you guys think, is that the way to go? Is there a more efficient way? Cheers, Baz On Mon, Aug 31, 2009 at 10:56 AM, Baz wrote: > Is

Re: [flexcoders] How to get X, Y position/coordinates of a specific character/letter in a text field

2009-08-31 Thread Baz
Hey Thanks Ian, I was just looking at that actually but TextInput doesn't seem to have it (Flex 4). I read that you can use: import mx.core.mx_internal; use namespace mx_internal; to access TextField and then getCharBoundaries() but that doesn't seem to work in Flex 4. Any ideas? T

[flexcoders] How to get X, Y position/coordinates of a specific character/letter in a text field

2009-08-31 Thread Baz
Anyone know how to get the X/Y coordinates of a specific character/letter in a text field or text input? Thanks!

[flexcoders] Text Effect: One Letter at a Time

2009-08-31 Thread Baz
Is it possible to apply an effect on a single letter in a textinput field? For example, when a letter gets typed (*change* effect), that letter expands and fades out. So if someone types a word, each letter of that word independently and sequentially expands and fades out as they are typed. Cheers

Re: [flexcoders] Hierarchical Tree Data

2009-08-15 Thread Baz
, indefinitely until all levels are fulfilled? Cheers, Baz On Sat, Aug 15, 2009 at 2:23 PM, Wesley Acheson wrote: > > > I usually do this at the server level. I collect all my data from the > database and then I put it into objects. (I use java) Then I use Xstream to > convert to

[flexcoders] Hierarchical Tree Data

2009-08-14 Thread Baz
How do you generally handle generating hierarchical tree data from a database. Lets say I had a query that returned "*Name, ID, ParentID*" with an indefinite number of nest levels, and I wanted to turn that into a nice xml structure - do you usually peform that transofrmation at the DB layer, the a

[flexcoders] Re: regex: keyword search

2009-08-14 Thread Baz
#x27;, 'UserProvidedKeyword3']; var allKeywordsExist:Boolean = true; for(var i:int = 0; i < keywords.length; i++) { var myRegEx:regEx = new RegExp('.*' + keyword[i] + '.*', 'i'); if(!myRegEx.test(myBigText)) { allKeywordsExist = false;

[flexcoders] Re: ItemRenderer Effects Virtualization

2009-08-14 Thread Baz
Perhaps its not possible due to the virtualization? On Thu, Aug 13, 2009 at 7:34 PM, Baz wrote: > Is it possible to implement effects on virtualized itemrenderers? What > about if the change in underlying data is based on an ArrayCollection > filterFunction? > > Basically, I

[flexcoders] ItemRenderer Effects Virtualization

2009-08-13 Thread Baz
/hide is implemented using a filterFunction on my source ArrayCollection, so the data isn't actually being added/removed. Thoughts? Cheers, Baz

[flexcoders] regex: keyword search

2009-08-13 Thread Baz
regex won't work because it is order dependent: .*keyword1.*keyword2.* Is there a way to tell the regex to search the entire string from the beginning for each keyword? Currently I am looping through each keyword and testing them separately - if all tests pass then I return true, but that seems wasteful. Thanks, Baz

Re: [flexcoders] Execute events while loop is iterating - possible?

2009-08-12 Thread Baz
Thanks a lot Wesley, you confirmed my suspicion. I exaggerated my example to emphasise my point, its not that crazy in my app :) Never heard of pseudo threading before, googled some good resources, thanks for pointing me in a direction. Baz On Wed, Aug 12, 2009 at 3:35 PM, Wesley Acheson wrote

[flexcoders] Performance of looping through Arrays and ArrayCollections

2009-08-12 Thread Baz
This (older) blog postsays that looping through an ArrayCollection using FOR-IN is faster than using a regular FOR loop - any truth to this? Are there faster or slower ways to loop through ArrayCollections or Arr

Re: [flexcoders] ItemRender - Access Specific Item at Run-time

2009-08-12 Thread Baz
ces, development services available > -- > > *From:* flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] *On > Behalf Of *Baz > *Sent:* Wednesday, August 12, 2009 5:10 PM > > *To:* flexcoders@yahoogroups.com > *Subject:* Re:

  1   2   >