[flexcoders] Re: Flex 4: Text Performance Research

2008-04-25 Thread Jason The Saj
I'll chime in on getting the text content width versus TextArea width.

[flexcoders] How to get image width/height ???

2008-04-24 Thread Jason The Saj
Approximate example [Embed(source="images/myphoto.png")] [Bindable] public var MyPhoto:Class; var myImage:Image = new Image(); myImage.source = MyPhoto; trace(myImage.width); For whatever reason, I just get "0". I've tried contentWidth, maxWidth, explicitWidth. I've tried callLater and then att

[flexcoders] Re: Click Lite: The right click now. But not now?

2008-04-18 Thread Jason The Saj
I guess my difficulty is that my goal is to load the buttons dynamically based upon an XML config file for which buttons should be existent. So I need to be able to dynamically create these event listeners. I am sure there is a good way to do this. I really wish Adobe would do some cross-training

[flexcoders] Re: addEventListener and additional arguments?

2008-04-18 Thread Jason The Saj
Can you point me to some good simple examples. As someone who is coming from Flash/AS1 into Flex/AS3. I find that often Adobe's examples assume knowledge and seem written more for a Java developer moving to Flex rather than for older Flash developers moving toward Flex. Any good examples on best

[flexcoders] Re: Click Lite: The right click now. But not now?

2008-04-18 Thread Jason The Saj
"This may seem like a major restriction, but we had no problem writing all the Flex components with this event model." And I am sure that most of the Adobe people who wrote the components had training to use such methodology either in AS3 or other languages. Being newer to this structure, I find

[flexcoders] Re: Well, that does me absolutely no good....unless you can show me how to do th

2008-04-18 Thread Jason The Saj
I'll give that a try, it looks like it might be a solution for me...thanks!

[flexcoders] Hi there,

2008-04-16 Thread Jason The Saj
I dealt with this issue on my blog pretty extensively.. http://thesaj.wordpress.com/2008/02/12/the-nightmare-that-is-_blank-part-ii-help/ Here is an example of what I implemented for the browsers I was testing for (IE, Firefox, Safari, Opera on PC/Mac) http://www.easternstorm.net/sassie/example2/

[flexcoders] Click Lite: The right click now. But not now?

2008-04-16 Thread Jason The Saj
Why does click work here? But not here? btnFoo.addEventListener(MouseEvent.CLICK,Foo(2)); Now, it's obviously Adobe has coded the button component to allow for arguments to be passed via the click parameter. But we're not given that same privilege when using just AS3. But obviously, they mu

[flexcoders] Well, that does me absolutely no good....unless you can show me how to do this!

2008-04-16 Thread Jason The Saj
http://www.adobe.com/2006/mxml";>

[flexcoders] Re: addEventListener and additional arguments?

2008-04-16 Thread Jason The Saj
Okay then How do I do the simple act of "click" event call function and pass a parameter value? This was easy in AS1/AS2/JS I could essentially just say... btnFoo.release = function (parameters){...} Now, it looks like i need to add an event listener. Then create a custom event. All so I

[flexcoders] Plumbers & Programmers

2008-03-31 Thread Jason The Saj
Plumber's faucets always leak... Programmer's websites always suck... *LOL* My own website is oh, 4 yrs out-of-date. But I'm too busy working, raising a little girl and trying to be a good husband to update it. That said, Jeffry Houser has been in the Allaire/Macromedia/Adobe community for qui

[flexcoders] Camera / Video feed from iMac's Webcam is mirrored/reversed?

2008-03-27 Thread Jason The Saj
I wrote a little app using the Camera & Video components. Everything works fine except for the fact that my video is reversed (mirrored) with right being left and vice versa. My guess is something weird from the feed of the built in iSight cam in my iMac at work is providing reversed video. Is t

[flexcoders] HSlider - invert / reverse scale.

2008-03-27 Thread Jason The Saj
I am using an hslider for a project. My values range from 1-50. However, in this case "1" is the higher sensitivity value. Currently my slider is as follows: <-1-50-> I'd like to change it so that it slides from 50 down to 1. So that the highest sensitivity value is to

[flexcoders] Re: Binding to Microphone

2008-03-26 Thread Jason The Saj
I too would love to know the answer to this. I'd like to BIND to the activityLevel of the camera.

[flexcoders] userAgent failing to return info in IE 6 since security update - anyone else?

2008-02-14 Thread Jason The Saj
I've been using the following for determining browser: var browserAgent:String = ExternalInterface.call("function getBrowser(){return navigator.userAgent;}"); if(browserAgent != null && browserAgent.indexOf("Safari/IE/Firefox/Etc") >= 0){} But recently, IE has ceased returning the info. I notice

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

2008-02-14 Thread Jason The Saj
I've been using the following: var browserAgent:String = ExternalInterface.call("function getBrowser(){return navigator.userAgent;}"); if(browserAgent != null && browserAgent.indexOf("Safari/IE/Firefox/Etc") >= 0){} But recently, IE has ceased returning the info. I noticed this after a recent "s

[flexcoders] Question regarding the auto-highlight of all instances in code (Beta 3)

2008-01-14 Thread Jason The Saj
Flex Builder 3 (Beta 3) automatically highlights ALL instances of code. (ie: If you have a variable named foo, it will highlight all other instances) While I believe this to be a useful feature I find the color selection abominable because it is too close to the "highlight" color. Makes copy/pas

[flexcoders] Re: Flex and Subversion - a project organization for review

2007-11-06 Thread Jason The Saj
This is most definitely an area where Adobe needs to apply some resources. (I've had my local subversion repository hosed twice by Flex Builder. They don't like to get along. In part because the default behavior of FB is to import tons of stuff to the bin folder. Which causes chaos as it also move

[flexcoders] Re: Best practices for laying out Flex directory structure.

2007-11-06 Thread Jason The Saj
Tell me about it... Had subversion pretty much get hosed twice now. Currently trying to get everything re-established.

Re: [flexcoders]FLEX2 - CF7 URL Encryp Decrypt

2007-11-06 Thread Jason The Saj
Just a thought... Can you pass the values to Flash/Flex "encrypted". Then write a web service for the Flash/Flex to pass those values to that returns them "decrypted". If you are using ColdFusion, I'd go with a Flash remoting connection to the CFC since this passes data as binary. Not quite enc

[flexcoders] Re: autoUpdater.swf (214px x 137px issue)

2007-11-06 Thread Jason The Saj
Not a solution, but alas a work around. I modified the SWFOjbect 1.5 "expressinstall.swf". Instead of it popping an alert I have it remove the movie clip that the auto updater swf is loaded into. I manually put some Flash content to link to updating. Including a template on our site that is Flash

[flexcoders] Re: Pop-Up Blocking Issues

2007-11-06 Thread Jason The Saj
a) getURL doesn't have this problem. And it's within Flash. But getURL seldom has a problem so long as you "click". b) Browsers could so easily handle this quite easily. The simple algorithm is this: > record recent mouse clicks > if pop-up window launched > check last mouse click and see i

[flexcoders] Re: Pop-Up Blocking Issues

2007-11-06 Thread Jason The Saj
The issue is that I don't have access to the HTML wrapper. This swf is not going to be hosted on our servers. So everything has to be done internally within Flash.

[flexcoders] Re: Dates and Months Problem

2007-10-03 Thread Jason The Saj
Because Flex decided to be stupid like most programming languages and count from zero. Which make for additional work and headache. I so miss ColdFusion's date/time handling. It was beautiful. It was the way date/time should be. Of course, I also like counting from 1 instead of zero. And yes, I u

[flexcoders] Last displayed character of a textArea?

2007-10-02 Thread Jason The Saj
I am dealing with a rather annoying dilemma. Often I'll set text or htmlText of a textArea dynamically. I will also turn off scrolling. Often as the case may be, the set text is longer than the displayable area. I'd like to be able to get the "displayed text length" (ie: last character positi

[flexcoders] Is there a way to determine Label truncation? (...)

2007-09-12 Thread Jason The Saj
A number of place I am using buttons. Flex will at times "truncate" the labels of my buttons with a (...) I want to either: a) tell Flex NOT to truncate OR b) check a value as to whether the label is truncated so I can either widen the stage, scale down the size or remove non-essential buttons.

[flexcoders] Re: Setting flashVars via SWFloader

2007-08-28 Thread Jason The Saj
on > > > > From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On > Behalf Of Jason The Saj > Sent: Monday, August 27, 2007 2:25 PM > To: flexcoders@yahoogroups.com > Subject: [flexcoders] Setting flashVars via SWFloader > > >

[flexcoders] Best practices for laying out Flex directory structure.

2007-08-27 Thread Jason The Saj
Does anyone know of any resources regarding best practices for laying out one's directory structure for Flex development? Particularly with care to multi-application development. Where to store various assets, SWCs, classes, etc. I know it is recommended to use com.domain.Classes. But what sugges

[flexcoders] Setting flashVars via SWFloader

2007-08-27 Thread Jason The Saj
I have a .swf file created by Flex. Normally, this app is loaded into an HTML page and passed a number settings via flashVars. I've written a second app which facilitates the configuring of these custom settings. I've tried to load the first Flex .swf into the second application via "SWFloader" w

[flexcoders] Re: wmode - determining value?

2007-08-27 Thread Jason The Saj
Much obliged...that let me get the value. Might I inquire if you are familiar with embedding a .swf file into a Flex app and pass it flashvar parameters or set internal values. The swf is also generated via Flex.