[flexcoders] Re: The Alert box is at the Top Left.

2009-11-13 Thread jamesfin
You can always just move the Alert yourself... private function popUpAlert():void{ var myMenu:Menu = new Menu(); var popUpButton:PopUpButton = new PopUpButton(); addChild(popUpButton); popUpButton.x = this.width / 2;

[flexcoders] Re: Repeating background for a component

2009-11-16 Thread jamesfin
var repeat:RepeatBackground = new RepeatBackground(); addChild(repeat); repeat.percentHeight = 100; repeat.percentWidth = 100; package { import mx.containers.Canvas; import

[flexcoders] Re: how to update a progress bar when uploading an image

2009-11-17 Thread jamesfin
There isn't a way to do this. You can simulate a progress bar but for whatever reason, this functionality doesn't exist. If you have a look at speedtest.net, they show download progress nicely but their upload progress is simulated. I've thought about making another (different) request to

[flexcoders] Re: how to update a progress bar when uploading an image

2009-11-17 Thread jamesfin
This also assumes you are trying to upload text vs. binary depending on how your server is configured. This is an example that you might be able to leverage if you have binary. http://www.adobe.com/devnet/flex/articles/file_upload_05.html --- In flexcoders@yahoogroups.com, stinasius

[flexcoders] Re: first tile of tilelist does not show up

2009-11-17 Thread jamesfin
Move the setImage into commitProperties and you should be good to go... override protected function commitProperties():void{ super.commitProperties(); setImage(); } --- In flexcoders@yahoogroups.com, mattgarland2000 al...@... wrote: I have a

[flexcoders] Re: first tile of tilelist does not show up

2009-11-17 Thread jamesfin
of this if it is some weird timing/updating issue. --- In flexcoders@yahoogroups.com, jamesfin james.alan.finnigan@ wrote: Move the setImage into commitProperties and you should be good to go... override protected function commitProperties():void

[flexcoders] Re: In a Label field, if the text is too long it ends with ..... , however if you ..

2009-11-17 Thread jamesfin
This was of help to me a while back... http://thanksmister.com/index.php/archive/flex-truncating-html-text --- In flexcoders@yahoogroups.com, luvfotography ygro...@... wrote: If the Label control size is smaller than its text, the text of the Label control is truncated using a localizable

[flexcoders] Re: constraintColumns/constraintRows on extended Sprite object REFdn6025643069

2009-11-18 Thread jamesfin
You can always do this where the right / top is constraining the item. ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=absolute creationComplete=init() mx:Script ![CDATA[ import

[flexcoders] Re: Progress for synchronous operation

2009-11-18 Thread jamesfin
It depends on what you want to display. If you put up some kind of progress or other status UI then immediately jump into your sync. operation, it's unlikely the status UI will have been rendered by the time you entered it. No different than an infinite loop in the flash player. A couple of

[flexcoders] Re: HorizontalList itemRenderer size does not resize on refresh

2009-11-20 Thread jamesfin
I had a similar predicament recently... In my renderer code, I setup a listener to respond to external data changes. In my case, I just needed to call invalidateDisplayList but you could reset your sizes/etc. based upon the new data.

[flexcoders] Re: I've got a [Bindable] boolean var - can I setup a eventlistener on it?

2009-11-20 Thread jamesfin
This should get you on your way... http://livedocs.adobe.com/flex/3/html/help.html?content=databinding_4.html --- In flexcoders@yahoogroups.com, luvfotography ygro...@... wrote: I've declared a [Bindable] private var changeme:Boolean; Is there a way to execute a function whenever this

[flexcoders] Re: how to get an array as a part from another array?

2009-11-25 Thread jamesfin
private function seniorsOnly(person:*, index:int, arr:Array):Boolean{ return (person.isSenior == true?true:false); } private function init():void{

[flexcoders] Re: how to get an array as a part from another array?

2009-11-25 Thread jamesfin
? jamesfin-2 wrote: private function seniorsOnly(person:*, index:int, arr:Array):Boolean{ return (person.isSenior == true?true:false); } private function init():void{ var ac:ArrayCollection = new ArrayCollection([ {id

[flexcoders] Re: Simple Layout Question

2009-11-30 Thread jamesfin
Copy / paste this and it will help you along... ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; mx:VBox backgroundColor=0xff mx:HBox backgroundColor=0x00ff00 mx:Button label=Test 1/ mx:Button label=Test 1/

[flexcoders] Re: Simple Layout Question

2009-11-30 Thread jamesfin
dataTipPrecision=0 / /mx:Application --- In flexcoders@yahoogroups.com, jamesfin james.alan.finni...@... wrote: Copy / paste this and it will help you along... ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; mx:VBox backgroundColor

[flexcoders] Re: Starting with Cairngorm or PureMvc

2009-12-01 Thread jamesfin
I have to concur with Chris. I've been using PureMVC and took a stab at Cairngorm and Mate in the beginning but felt they were too tightly coupled with Flex, especially Mate. I'm not an MVC expert but will say that I have enjoyed having the strict decoupling which makes managing the code

[flexcoders] Re: Starting with Cairngorm or PureMvc

2009-12-01 Thread jamesfin
it works for you), but I don't really get the significance of the fact that it's not Flex-specific. We're developing Flex apps. One complaint I have about Mate is that the lack of strong typing in the event map can certainly trip you up. On Tue, Dec 1, 2009 at 10:31 AM, jamesfin james.alan.finni

[flexcoders] Compiling Problems...

2009-12-12 Thread jamesfin
I've got a really strange issue tonight that I've never seen before... I've been working on a project for months and everything has been compiling fine. I can debug/etc. Something changed and the compiler won't flag any problems in some mxml/as files. I can enter asdf into the file and

[flexcoders] Re: Compiling Problems...

2009-12-13 Thread jamesfin
After trying different things to no avail, I started editing each file in my project and voila, everything starts working again! Clearly an issue with the FlexBuilder environent. Anybody ever experienced this issue? --- In flexcoders@yahoogroups.com, jamesfin james.alan.finni...@... wrote

[SPAM] Re: [flexcoders] var token:AsyncToken = service.[str](); how to get this working?

2009-12-16 Thread jamesfin
A reminder that pre 3.5sdk there is a bug where the responder can get called twice. Bug SDK-22883 Incorrectly Functioning HTTPService responders are called twice Steps to reproduce: 1. Run HTTPServiceTest.mxml from the attached zip file. It calls one service that should succeed and one

[flexcoders] Re: Using URLLoader with AsyncToken

2009-12-26 Thread jamesfin
This is another starting point http://anirudhs.chaosnet.org/blog/2008.06.20.html --- In flexcoders@yahoogroups.com, Karthik Kailash kart...@... wrote: Hi all, I was trying to retrieve binary data over HTTP for my Flex application, and was running into some stumbling blocks.

[flexcoders] Re: rewriting a function using prototype?

2009-12-28 Thread jamesfin
I've used this in this pasta bit more verbose but does the trick. ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=absolute creationComplete=createJunk() mx:Script ![CDATA[ import mx.controls.Alert;

[flexcoders] Re: Stop ToolTips from Appearing on Certain Buttons.

2010-01-05 Thread jamesfin
close...use this myButton.toolTip = null; --- In flexcoders@yahoogroups.com, taude1 tpreka...@... wrote: That doesn't work, it then creates the tooltip from the label value. --- In flexcoders@yahoogroups.com, Ariel J arieljake@ wrote: i believe you can do this by setting the

[flexcoders] Flex Printing...

2010-01-06 Thread jamesfin
I've spent two days researching and playing with printing in Flex 3.4. I was somewhat excited to learn this area of Flex which I had not previously explored but have only one word (for now): Disappointing. Primarily because there are many, many unresolved defects with various parts of the

[flexcoders] Re: Setting variables

2010-01-12 Thread jamesfin
Unfortunately, the Inspectable metatag only works for mxml. Here's a more reuseable solution so you can use the same strings when coding in AS3 too. It also will do compile time checking on your selection in either case. MAIN APPLICATION... ?xml version=1.0 encoding=utf-8?

[flexcoders] Re: Preferred Socket Policy File Server Implementation?

2010-01-22 Thread jamesfin
Here's a Java based PFS...a flash-player bug seems to still exist though... https://bugs.adobe.com/jira/browse/FP-1866 package import java.io.BufferedReader; import java.io.EOFException; import java.io.IOException; import java.io.InputStreamReader; import java.io.InterruptedIOException;

[flexcoders] Popups in Sub Applications...

2010-01-29 Thread jamesfin
I've been studying the sub application functionality lately and have a question. If a multi-versioned sub application wants to put up a popup via the popup manager, it all works well except that the centerPopUp doesn't seem to work correctly in that it isn't centered in the Main application.

[flexcoders] Re: Popups in Sub Applications...

2010-01-29 Thread jamesfin
In addition... Depending on where the loader is in the display list, the popup seems to move around relative to it. // AS3 loader = new SWFLoader(); addChild(loader); // MXML mx:SWFLoader id=loader/ --- In flexcoders@yahoogroups.com, jamesfin james.alan.finni...@... wrote: I've been

[flexcoders] Re: Pointers

2010-01-29 Thread jamesfin
Here's what I've done in the past... // add this in your init code... myDataGrid.addEventListener(ListEvent.ITEM_EDIT_END, editEnd); private function editEnd(evt:DataGridEvent):void{ // get a reference to the datagrid var grid:DataGrid = evt.target as

[flexcoders] Re: Popups in Sub Applications...

2010-01-30 Thread jamesfin
as it is clipped to that area. On 1/29/10 7:42 PM, jamesfin james.alan.finni...@... wrote: In addition... Depending on where the loader is in the display list, the popup seems to move around relative to it. // AS3 loader = new SWFLoader(); addChild(loader); // MXML mx:SWFLoader

[flexcoders] Re: Popups in Sub Applications...

2010-01-30 Thread jamesfin
examples? --- In flexcoders@yahoogroups.com, myflexdownloads myflexdownlo...@... wrote: I normally just create the popup as a child of Application.application and that way cenetering is perfect. Web Admin FlexDownloads.com --- In flexcoders@yahoogroups.com, jamesfin james.alan.finnigan

[flexcoders] Re: Popups in Sub Applications...

2010-01-30 Thread jamesfin
Tweak: Application.application of the main application means nothing to the subapplication. --- In flexcoders@yahoogroups.com, jamesfin james.alan.finni...@... wrote: Thanks for the tips. The caveat here is that Application.application means nothing to a multi-versioned subapplication

[flexcoders] SubApplications Chapter Deux...

2010-02-01 Thread jamesfin
I've been trying to center a dialog in a sub application but haven't had any success. All SubApplication experts can pitch-in here... Backgrounder...SubApps are cool because two SWF's can be compiled with different SDK's and can still work together. The upper/left-hand corner of the dialog

[flexcoders] Re: SubApplications Chapter Deux...

2010-02-01 Thread jamesfin
(), TestView, true) as TestView; PopUpManager.centerPopUp(test); } On 2/1/10 11:32 AM, jamesfin james.alan.finni...@... wrote: I've been trying to center a dialog in a sub application but haven't had any success. All SubApplication experts can pitch

[flexcoders] Re: SubApplications Chapter Deux...

2010-02-01 Thread jamesfin
And... With what use-case would the loaderContext be used? --- In flexcoders@yahoogroups.com, jamesfin james.alan.finni...@... wrote: Thanks for the feedback. Ironically, I had just found the systemManager.getSandboxRoot() reference and was putting it in to test! While on the same

[flexcoders] Re: SubApplications Chapter Deux...

2010-02-01 Thread jamesfin
. LoadForCompatibility refreshes the loaderContext before each load. On 2/1/10 4:01 PM, jamesfin james.alan.finni...@... wrote: And... With what use-case would the loaderContext be used? --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , jamesfin

[flexcoders] SubApplications Chapter Trois...

2010-02-02 Thread jamesfin
For any Multi-Versioned SubApplication, what are the hard and fast rules about using RSL's? I tried making the parent (3.4sdk) and child subapplication (3.2sdk) both use RSL's but it fails miserably which doesn't surprise me considering the complexity of what's going on already. However, if

[flexcoders] Re: SubApplications Chapter Deux...

2010-02-02 Thread jamesfin
@yahoogroups.com, jamesfin james.alan.finni...@... wrote: Understood! I'll add that to my blog. Thanks again. --- In flexcoders@yahoogroups.com, Alex Harui aharui@ wrote: TopLevelSystemManager is might be used by a sub-app of that sub-app to get to its parent sub-app if they are both

[flexcoders] Re: SubApplications Chapter Trois...

2010-02-02 Thread jamesfin
\galaga\frameworks\projects\framework\src\mx\core\RSLItem.as:233] at mx.core::CrossDomainRSLItem/loadBytesCompleteHandler()[C:\autobuild\galaga\frameworks\projects\framework\src\mx\core\CrossDomainRSLItem.as:396] --- In flexcoders@yahoogroups.com, jamesfin james.alan.finni...@... wrote

[flexcoders] Re: SubApplications Chapter Trois...

2010-02-02 Thread jamesfin
setting loadForCompatiblity On 2/2/10 10:41 AM, jamesfin james.alan.finni...@... wrote: Forgot to include the error. This error only appears if I have framework.swc being used via RSL in the child subapplication. TypeError: Error #1009: Cannot access a property or method

[flexcoders] Re: SubApplications Chapter Trois...

2010-02-02 Thread jamesfin
, you will start to see verify errors. You could also set the source property instead of calling load and then order wouldn't matter. On 2/2/10 12:11 PM, jamesfin james.alan.finni...@... wrote: I didn't see that small note to move the loadForCompatibility before the load. Now

[flexcoders] The distant cousin AIR...

2010-02-10 Thread jamesfin
My apologies in advance...I realize this is a Flex forum but the Adobe AIR forum over at http://forums.adobe.com/community/labs/air2?view=discussions doesn't have the expertise that exists here. There doesn't seem to be any Adobe AIR Engineers monitoring the forum too well either. Hear

[flexcoders] PureMVC Folks...

2010-02-15 Thread jamesfin
For you PureMVC/AS3 Folks... There's a new PureMVC Port in town...JavaScript. Well sort of. There's really an update using MooTools which will really move JavaScript along in the AS3/PureMVC developers toolbox. Base Project: http://trac.puremvc.org/Demo_JS_BoxSplash Demo:

[flexcoders] Re: Changing the speed of sound?

2010-02-24 Thread jamesfin
Hi Nick, This will get ugly quickly as this isn't as easy as it sounds, pardon the pun. ;) You need to do some pitch-shifting to the audio stream before sending it along to play. Here's a good discussion on it http://www.dspdimension.com/admin/pitch-shifting-using-the-ft/ Here's a

[flexcoders] Re: Vertical separator in MenuBar

2010-02-25 Thread jamesfin
Here's a starting point for you. To get a leg up on this the next time around you need to do something special like this, dive into the base class source code (menubar.as in this case) and look around to get a feel for what is happening within the default component. For this question, I dove

[flexcoders] Re: Do you guys consider Flex3/4 be a niche(Market)?

2010-02-28 Thread jamesfin
This is an open-ended question but I'll give it a whirl... I don't see Flex per se as the linchpin in defining a niche market. I see it as a vehicle to help bring real-world software engineering practices to web-based applications. I've spent over twenty-five years in strict software

[flexcoders] Re: Lightweight Flex framework?

2010-03-03 Thread jamesfin
I'd like to know what the definition of a lightweight framework is so we can better determine an optimal solution. Fastest? Most Efficient?, Smallest Code?, Easiest-to-learn? Easiest on the fingers? Portable? Proven? I had a similar requirement recently for a HTML5/JS project and ended up

[flexcoders] Re: Question about currentTarget and Event:Listener

2010-03-04 Thread jamesfin
It would appear as if you never call createHandlers. Try this version... ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=absolute creationComplete=createHandlers(event) mx:Script ![CDATA[ import mx.controls.Alert;

[flexcoders] Re: How to identify which child of tabNavigatoris clicked?

2010-03-17 Thread jamesfin
Here's a complete working example to start with... ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=absolute applicationComplete=TabOnglet() mx:Script ![CDATA[ import

[flexcoders] Re: How to identify which child of tabNavigatoris clicked?

2010-03-17 Thread jamesfin
The oldIndex is the tab that was current before you click on another tab. So if you have two tabs (like in the demo) with the indices of 0 and 1 and you click on the second tab, the oldIndex will be zero (0) and the new tab will be one (1). If you then click on tab 1, oldIndex will be 1 and

[flexcoders] Re: Wow. Healthcare passed and flashbuilder 4 all in the same day

2010-03-22 Thread jamesfin
got me there https://store4.adobe.com/cfusion/store/index.cfm?store=OLS-USview=ols_prodcategory=/Applications/FlashBuilderPremiumdistributionMethod=FULLnr=0#view=ols_prodcategory=/Applications/FlashBuilderPremiumstore=OLS-USloc=en_us --- In flexcoders@yahoogroups.com, djhatrick

[flexcoders] XMLListCollection DataGrid Performance vs Any Other DataProvider Type

2010-04-28 Thread jamesfin
Here's the scenario... Simple datagrid with XMLListCollection data provider. Average collection size is 200 rows of XML (shown below) 10 columns in the datagrid with a unique item renderer for each. 1 Column can display 1 of 10 embedded images depending on an xml attribute. AS3-only

[flexcoders] Re: XMLListCollection DataGrid Performance vs Any Other DataProvider Type

2010-04-30 Thread jamesfin
, 2010 21:49:52 Subject: Re: [flexcoders] XMLListCollection DataGrid Performance vs Any Other DataProvider Type Convert the XML to Class instances. On 4/28/10 10:06 AM, jamesfin james.alan.finnigan @gmail.com wrote: Here's the scenario... Simple datagrid

[flexcoders] Thoughts on things other than Flash...

2010-05-03 Thread jamesfin
Based upon the Steve Jobs thread, we all have an opinion on what we believe is the Holy Grail for creating/deploying cloud applications. This begs the question...In a perfect world (a do-over), what would the perfect cloud-based application development platform/deployment architecture look

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

2010-05-03 Thread jamesfin
I agree with Rick. For all net calls, I have a timer going and a simple queue that is populated when sending each request. When and if they return sometime later, they are removed from the queue. If requests aren't received by some set timeout, they are ignored. I employ the use of tokens

[flexcoders] Flash Player Detection / ServerSide

2010-05-25 Thread jamesfin
Does anyone have any knowledge of how to detect whether or not a simple REST call to a server (java/php/etc.) is from the Flash Player (flex app)? It would appear that application/x-shockwave-flash can be detected by the server in the HTTP_ACCEPT header as long as the type is defined in the

[flexcoders] Flash Player Detection / ServerSide

2010-05-25 Thread jamesfin
Does anyone have any knowledge of how to detect whether or not a simple REST call to a server (java/php/etc.) is from the Flash Player (flex app)? It would appear that application/x-shockwave-flash can be detected by the server in the HTTP_ACCEPT header as long as the type is defined in the

[flexcoders] trace(trace not working);

2010-05-28 Thread jamesfin
I have the Flex4 Eclipse Plugin installed and I'm noticing that the trace statement seems to be ignored. A breakpoint can't be put on any trace statement nor does any output appear. My Flex 3 Eclipse Plugin works great. I can debug in both versions no problem. trace(waiting for your

[flexcoders] Re: trace(trace not working);

2010-05-28 Thread jamesfin
trace(no); --- In flexcoders@yahoogroups.com, Brendan Meutzner bmeutz...@... wrote: Do you use the compiler argument -optimize=true ? On May 28, 2010, at 10:59 AM, jamesfin james.alan.finni...@... wrote: I have the Flex4 Eclipse Plugin installed and I'm noticing that the trace

[flexcoders] Panel Container Gradients...

2010-06-18 Thread jamesfin
Using Flex4, I'd like some suggestions on how to paint the Panel Container title bar area with a gradient rather than a single color choice. It would appear that there is a 'chrome-color' style but only takes a single color value.

[flexcoders] IE8/ActiveX FlashPlayer Bug?

2010-07-02 Thread jamesfin
I believe there is an anomaly within the ActiveX Flash Player that is causing a 1009 error when trying to center a simple popup. This logic runs fine on all non-IE OSX and Windows browsers thus causing me to think it's specific to ActiveX Flash. One thing that may be unique here is that we are

[flexcoders] Re: IE8/ActiveX FlashPlayer Bug?

2010-07-02 Thread jamesfin
@yahoogroups.com, jamesfin james.alan.finni...@... wrote: I believe there is an anomaly within the ActiveX Flash Player that is causing a 1009 error when trying to center a simple popup. This logic runs fine on all non-IE OSX and Windows browsers thus causing me to think it's specific to ActiveX

[flexcoders] Re: IE8/ActiveX FlashPlayer Bug?

2010-07-02 Thread jamesfin
...@... wrote: Is the loaded SWF also built with 3.5? On 7/2/10 10:18 AM, jamesfin james.alan.finni...@... wrote: Follow-up... As a test, I set loadForCompatibility=false. Voila, everything works. This indicates a clear defect in the loadForCompatibility functionality

[flexcoders] Re: IE8/ActiveX FlashPlayer Bug?

2010-07-02 Thread jamesfin
Tried this and got the same 1009 error in the same place. --- In flexcoders@yahoogroups.com, Alex Harui aha...@... wrote: Try passing in just systemManager instead of systemManager.getSandboxRoot On 7/2/10 11:11 AM, jamesfin james.alan.finni...@... wrote: Sorry bout

[flexcoders] Flex, HTML5, Javascript...oh my!

2011-10-13 Thread jamesfin
As a devoted flex developer of over five years now, I'm getting the nudge by management to get as comfortable with HTML5/Javascript as I currently am with MXML/Actionscript. Not my decision. That said, I figured this forum would be better suited to answer a few questions about

[flexcoders] Re: You are the product

2011-12-28 Thread jamesfin
As a devoted Flex Developer, Flex has been very, very good to me. I also know that technology advancements require change (I say additions). I can remember when programming in 8086 assembler wondering when I wouldn't need to use that silly old segment/offset hack, er, architecture.

[flexcoders] Modules, TabNavigator, Force Render...

2012-02-05 Thread jamesfin
Using a simple two tab TabNavigator, two modules are loaded via ModuleManager.load. A bitmap is being generated for each tab as a preview to what content exists on each tab. The first visible tab displays the bitmap normally. The second tab (not yet clicked on or shown) bitmap comes up empty

[flexcoders] SWF Management...

2012-02-05 Thread jamesfin
A module is being loaded by a simple ModuleManager.load. In debug mode, there is output like this... [Unload SWF] View.swf/[[DYNAMIC]]/307 - 632 bytes after decompression [Unload SWF] View.swf/[[DYNAMIC]]/308 - 632 bytes after decompression [Unload SWF] View.swf/[[DYNAMIC]]/309 - 632 bytes after

[flexcoders] Re: Modules, TabNavigator, Force Render...

2012-02-06 Thread jamesfin
Follow-up #1... Use a simple 100ms timer so each tab is selected programmatically. Each tab is rendered normally although the tab stays visible throughout the rendering process and switches to the next tab when completed. A workaround is to hide the tabnavigator and restore visibility at the

[flexcoders] How To Disable Module Screen Updates....

2012-04-09 Thread jamesfin
We have up to 30 small modules that are getting loaded at startup and notice that the accumulative perceived loading effect is slow when creating the modules via... _module.factory.create() as IVisualElement; ... as all of the modules are competing for CPU to draw themselves. So, is there a

[flexcoders] Re: How To Disable Module Screen Updates....

2012-04-09 Thread jamesfin
Thanks Alex! We were hoping for that elusive disableNow function to add to the invalidateNow(), validateNow() family. ;) --- In flexcoders@yahoogroups.com, Alex Harui aharui@... wrote: Don't call factory.create() until the first time you go to that tab. On 4/9/12 11:16 AM, jamesfin