[flexcoders] Re: Iframe in RichTextEditor(flex 3)

2009-04-06 Thread jim.abbott45
Hmm . . . IFRAME is an HTML element, not a Flex (MXML) one. 

Please clarify what you are trying to accomplish--are you trying to display 
HTML content?

Regards,
Jim


--- In flexcoders@yahoogroups.com, senthilkumarirtt senthilkumari...@... 
wrote:

 hi i need to implement iframe in RichTextEditor in flex application.





[flexcoders] Re: FlexMDI controlling Tab navigation

2009-03-31 Thread jim.abbott45

Unfortunately, this sounds like a known issue.  [Sigh]

Please view the following bug and, if so inclined, vote for it to be
fixed.

See:  https://bugs.adobe.com/jira/browse/SDK-16897 
https://bugs.adobe.com/jira/browse/SDK-16897%20   (The inability to
create Tab Loop domains.)

--Jim

--- In flexcoders@yahoogroups.com, raja_s_patil kpr.rspa...@...
wrote:

 hello,

 I am in processing of evaluating Flex to be used for migrating
 our Desktop Delphi database applications to WEB. Till Date we
 found very positive features and have opinion that Flex is suiting
 our many requirements. Our existing application is composed of many
 forms and some them remain open simultaneously in a typical
 practical use of application. We came across FlexMDI and found that
 this satisfies this requirement but when we press tab key to
 navigate between controls in a form then it passes through all
 controls in that window and then it goes to captions buttons and
 then goes to next window.

 We would like to restrict this tab navigation to same window and
 may be CTRL-TAB to switch between different windows. How can we
 achieve this ? U can think of a typical desktop window behaviour
 simulation in flex.

 Thanks and Best Regards




[flexcoders] Re: Fortify Scan on my Application.

2009-03-31 Thread jim.abbott45
If you've modified the HTML wrapper file (or the template file which it is 
generated from), then be SURE to BACK UP those files BEFORE you modify the 
project (as Tracy discusses). When you modify that aspect of a Flex project, 
your HTML wrapper changes are all over-written! You do get a warning message, 
but it is perhaps worded a little too innocuously.

Regards,
Jim

--- In flexcoders@yahoogroups.com, Tracy Spratt tspr...@... wrote:

 The purpose of those files and IFRame is to allow the Flex app to be
 navigated using the browser Forward and Back buttons.
 
  
 
 I never use this functionality myself.  You can turn it off in the Project,
 Properties, Compile dialog.  That will remove the js file and will not pit
 the IFrame in the wrapper.
 
  
 
 Tracy Spratt,
 
 Lariat Services, development services available
 
   _  
 
 From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
 Behalf Of Parkash
 Sent: Monday, March 30, 2009 2:43 AM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Fortify Scan on my Application.
 
  
 
 Hello All, 
 
  
 
 I ran fortify scan on my application and getting the three hot issues on
 history.js and historyFrame.html.
 
 How can I eliminate the problems from these files?
 
  
 
 Do I really need these files can I delete these files can any one tell me
 the purpose of these files.
 
  
 
 The hot issues are listed below.
 
  
 
  
 
 Issue # 1:
 
  
 
 ABSTRACT:
 
 The method addHistoryEntry() in history.js sends unvalidated data to a web
 browser on line 207, which can result in the browser executing malicious
 code.
 
  
 
 EXPLANATION:
 
  
 
 Cross-site scripting (XSS) vulnerabilities occur when:
 
  
 
 1. Data enters a web application through an untrusted source, most
 frequently a web request or database.
 
  
 
 2. The data is included in dynamic content that is sent to a web user
 without being validated for malicious code. 
 
  
 
 The malicious content sent to the web browser often takes the form of a
 segment of JavaScript, but may also include HTML, Flash or any other type of
 code that the browser may execute. The variety of attacks based on XSS is
 almost limitless, but they commonly include transmitting private data like
 cookies or other session information to the attacker, redirecting the victim
 to web content controlled by the attacker, or performing other malicious
 operations on the user's machine under the guise of the vulnerable site.
 
  
 
  
 
  
 
 Issue # 2:
 
  
 
  
 
 ABSTRACT:
 
 The method checkForUrlChange() in history.js sends unvalidated data to a web
 browser on line 283, which can result in the browser executing malicious
 code.
 
  
 
 EXPLANATION:
 
  
 
 Cross-site scripting (XSS) vulnerabilities occur when:
 
  
 
 1. Data enters a web application through an untrusted source, most
 frequently a web request or database.
 
  
 
 2. The data is included in dynamic content that is sent to a web user
 without being validated for malicious code. 
 
  
 
 The malicious content sent to the web browser often takes the form of a
 segment of JavaScript, but may also include HTML, Flash or any other type of
 code that the browser may execute. The variety of attacks based on XSS is
 almost limitless, but they commonly include transmitting private data like
 cookies or other session information to the attacker, redirecting the victim
 to web content controlled by the attacker, or performing other malicious
 operations on the user's machine under the guise of the vulnerable site.
 
  
 
  
 
 Issue # 3:
 
  
 
 ABSTRACT:
 
 The method lambda() in history.js sends unvalidated data to a web browser on
 line 509, which can result in the browser executing malicious code.
 
  
 
 EXPLANATION:
 
  
 
 Cross-site scripting (XSS) vulnerabilities occur when:
 
  
 
 1. Data enters a web application through an untrusted source, most
 frequently a web request or database.
 
  
 
 2. The data is included in dynamic content that is sent to a web user
 without being validated for malicious code. 
 
  
 
 The malicious content sent to the web browser often takes the form of a
 segment of JavaScript, but may also include HTML, Flash or any other type of
 code that the browser may execute. The variety of attacks based on XSS is
 almost limitless, but they commonly include transmitting private data like
 cookies or other session information to the attacker, redirecting the victim
 to web content controlled by the attacker, or performing other malicious
 operations on the user's machine under the guise of the vulnerable site.
 
  
 
  
 
 Issue # 4:
 
  
 
 ABSTRACT:
 
 The method ~file_function() in historyFrame.html sends unvalidated data to a
 web browser on line 25, which can result in the browser executing malicious
 code.
 
  
 
 EXPLANATION:
 
  
 
 Cross-site scripting (XSS) vulnerabilities occur when:
 
  
 
 1. Data enters a web application through an untrusted source, most
 frequently a web request or database.
 
  
 
 2. The 

[flexcoders] Re: Strongly typed responses from RESTful web services

2009-03-27 Thread jim.abbott45
--- In flexcoders@yahoogroups.com, djepyon i...@... wrote:

 Hey flexiverse, is there a way to generate dto's and have strongly typed 
 result objects from REST services in flex?


Short answer: POX  (Google it...)

Long answer:
1) Have each REST service serialize its result as XML (or possibly JSON)
2) Have each REST service return that chunk of XML
3) From Flex, call each REST service (method) using the HTTPService class and 
the send() method
4) In Flex, define a Value Object (VO) class which has properties that map to 
the properties of each type of XML that your service methods can return (the VO 
class defines your strongly-typed object)
5) In the HTTPService, set the result type to e4x (for XML, that is)
6) In the HTTPService's result handler, use E4X to extract the values from the 
XML chunk and then put those values into an instance of the corresponding VO 
class.

Optionally:
--Make the VO class [Bindable]
--Store multiple instances of (same-class) VOs in ArrayCollection instances
--Use XDocLet or other templating/transformation tools to automatically 
generate the Flex VO (client-side object) definitions from server-side 
classes/XML schema/etc.



[flexcoders] Re: FocusManager fun... Tab Loops redux

2009-03-13 Thread jim.abbott45
Feeling less than ecstatic? Then please VOTE for fixing of bug #16897.

See:  https://bugs.adobe.com/jira/browse/SDK-16897
https://bugs.adobe.com/jira/browse/SDK-16897

--Jim



--- In flexcoders@yahoogroups.com, aceoohay pa...@... wrote:

 Alex:

 Neither of these options are practical in the real world (at least my
world) since we have over 135 modules currently, and up to 10 can be
loaded at any one time. We cannot have the cursor willy nilly hopping
from module to module going to panels that are partially obscured by
other panels, etc.

 Does the mx.managers.FocusManager allow the ability to establish
multiple tab loops within a single application?

 If so, how can this be used to define a tab loop for a single
container?

 If not, is there anything that will allow defining a tab loop for a
container? With multiple tab loops available on the stage at one time.
The user can use the mouse to jump from module to module.

 Paul

 --- In flexcoders@yahoogroups.com, Alex Harui aharui@ wrote:
 
  Setting tabEnabled on anything you don't want to have focus is one
answer.  So is non-modal popups.
 
  Alex Harui
  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 aceoohay
  Sent: Wednesday, March 11, 2009 8:00 AM
  To: flexcoders@yahoogroups.com
  Subject: [flexcoders] Re: FocusManager fun... Tab Loops redux
 
 
  Alex:
 
  Let me restate my primary question;
 
  ...has anyone else tried to create a flex component with a separate
tab loop, if so how did you make it work?
 
  Since the documentation seems to indicate that FocusManager will
allow multiple tab loops that was the approach I was investigating.
 
  My primary goal, irrespective of how I do it is to create what I
call a tab domain. Whatever it is called, what I need is the ability
to define a captive group of objects from which focus will never leave
by pressing the tab key.
 
  Paul
 




[flexcoders] Re: Flash 10 File Chooser

2009-03-06 Thread jim.abbott45
No, according to the documentation (probably because it would be a privacy 
violation):

The FileReference and FileReferenceList classes . . . do not allow the SWF 
file that initiated the upload or download to access the uploaded or downloaded 
file or the file's location on the user's disk.

See: http://livedocs.adobe.com/flex/3/langref/flash/net/FileReference.html

--JIm

--- In flexcoders@yahoogroups.com, twcrone70 twcron...@... wrote:

 Is there anyway to get the fully qualified path to a selected file rather 
 than just the filename?
 
 - Todd





[flexcoders] Re: re-initialize component in viewstack

2009-02-25 Thread jim.abbott45
Try hooking the Show event of your UI component and add your 'init()'
code to your new event handler (for the Show event).

--- In flexcoders@yahoogroups.com, _estatica_ ibo...@... wrote:

 Is it possible to call a method (say init(void)) within UI component
 that is within viewstack every time it becomes visible in viewstack.
 
 I want to clear fields of a form every time form gets selected. Form
 is staged withing viewstack.
 
 Cheers!





[flexcoders] Re: open new browser in maximized state

2009-02-16 Thread jim.abbott45
If all your users are running very old versions of Internet Explorer
then you can use the ExternalInterface API to call a JavaScript
function which calls the Browser/DOM window.open() function. The third
argument to window.open() should have fullscreen in the features
list (i.e., ..., fullscreen=yes,channelmode=yes, ...).
This technique -may- even work on recent versions of IE, but I
wouldn't rely on it work robustly (x-browser, or even x-version).

See: http://msdn.microsoft.com/en-us/library/ms536651(VS.85).aspx

For a more modern, standards-orient take on this, see:
https://developer.mozilla.org/En/DOM/Window.open

This feature of windows.open() was fun and even potentially useful
back in the old days of IE-only DHTML coding, but _not_ something I'd
recommend these days. (If I remember correctly, in I.E. 5.0 you could
create a kiosk/full-screen browser window, and then invoke
window.resizeTo() on it; thereby creating an arbitrarily sized,
*completely frameless* browser 'canvas' on a user's desktop. Just the
thing for spoofing native OS dialog boxes and other social
engineering. Good times, that!)

Regards,
Jim

--- In flexcoders@yahoogroups.com, GeeTee guns_n_mai...@... wrote:

 
 Hi everyone,
 
 Can anyone let me know if it is possible using Flex / AS to open a new
 browser (using navigateToURL(arg1,_blank)) with the new browser in
 maximized state? On my system, it always opens at a smaller size and
does
 not create a good user experience.
 
 Thanks.
 Gaurav
 -- 
 View this message in context:
http://www.nabble.com/open-new-browser-in-maximized-state-tp22044344p22044344.html
 Sent from the FlexCoders mailing list archive at Nabble.com.





[flexcoders] Re: [Req] What do you (love|hate|wish for) about (mx.*|Cairngorm|PureMVC|Mate|Prana|BlazeDS)?

2009-02-13 Thread jim.abbott45
Just as a suggestion, Why not take Maté and add Java/BlazeDS support
to it?

(OK, I admit it, I really like what I've seen of Maté so far--IMHO a
Developer could do a lot worse using another framework.)

--Jim


--- In flexcoders@yahoogroups.com, Josh McDonald j...@... wrote:

 Hey guys, I have a small request:
 
 I'd like to know what grinds your gears, and what makes you smile
about the
 Flex library, and about whatever other libraries you use on a daily
basis to
 get your work done. If you have time, please post here or to me
off-list a
 quick summary of your thoughts, some bullet points, or even a link to
 somebody else's blog posting that sums up your ideas. Anything
you've got to
 say, even if it's no more than PureMVC ftw!, I'd like to hear it.
 
 I have a keen interest in frameworks, and I'm planning on building
something
 that takes the best ideas I can find (and cook up) from these and my
 experiences maintaining a mostly-closed-source framework at my 9-5.
It's for
 my own apps, I'll be dog-fooding it, but it will be open source.
It's going
 to be a full-stack framework with an optional Java+Warp+BlazeDS
component,
 so if you think you've got some good ideas, or would like to help,
please
 drop me a line.
 
 Cheers,
 
 -Josh
 
 -- 
 Therefore, send not to know For whom the bell tolls. It tolls for
thee.
 
 Josh 'G-Funk' McDonald
   -  j...@...
   -  http://twitter.com/sophistifunk
   -  http://flex.joshmcdonald.info/





[flexcoders] Re: Flex End-User Documentation Tools

2009-02-12 Thread jim.abbott45
This topic has come up more than once on FlexCoders. Please do a
search for this. 

That said, the last time it came up, I don't believe that anyone had
any brilliant solutions for this challenge. Some people were using
various forms of HTML-based documentation; *** but displaying it in a
separate (stand-alone) browser window. Arguably, the lack of a
more-integrated solution is a hole in the current Flex offering.

--Jim

--- In flexcoders@yahoogroups.com, limscoder limsco...@... wrote:

 --- In flexcoders@yahoogroups.com, dthomp325 dthompso@ wrote:
 
  Are there any tools available for creating in-application end-user
  documentation?
 
 
 So this question either has a really obvious answer, or I'm not being
 specific enough
 
 I'm looking for tools to put together end-user help documentation for
 a Flex 3.2 application. The documentation needs to be some type of
 structured text with headings, chapters, etc., and I need to be able
 to link to specific sections of the documentation when a user clicks a
 help icon located next to a component in the GUI. Support for embedded
 flash videos for showing tutorials would also be nice. I could do this
 with an HTML documentation system, but I would prefer more integration
 with flash/flex, so I that when components get moved around in the
 GUI, I won't have to worry about making sure all the URLs are pointing
 to the right documentation. Any suggestions?





[flexcoders] Re: Newbie Help

2009-02-12 Thread jim.abbott45
(See responses below...)

--- In flexcoders@yahoogroups.com, Wally Kolcz wko...@... wrote:

 1.) Flex is just an SWF file. You can set the application to any
size and embed it as a SWF.
 3.) Flex has a really good printing solution allowing you to add
elements to a print job and control the order of printing. 
 
 I believe that AlivePDF can convert and export Flex information as a
PDF document.
 
 
 From: ksunair ksun...@...
 Sent: Thursday, February 12, 2009 5:36 AM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Newbie Help 
 
 Hi All,
 
 I am very new to Flex as a matter of fact I just wrote hello world :)
 
 Anyway, I am evaluating Flex against SilverLight for our new
development. Our current web 
 
 app is legacy ASP (not ASP.Net) and I have completed a prototype for
SilverLight and as a 
 
 C# developer I was able to get it done pretty fast. I was reading
about Flex and it seems to 
 
 be also straight forward. I have few questions if someone can help
me with.
 
 1. Is it possible to add a flex object to an existing ASP page. If
not, how can I call and pass 
 
 information between classic ASP and Flex, is it possible? 
 


As mentioned by the other respondent, ultimately a Flex application
compiles down to a Flash byte code (.SWF) file. Your ASP page needs
have a reference to that file, but via Object  Embed tags.
However, Adobe has already done a lot of the tedious work for you.
When you build a Flex application, the IDE will spit out an HTML page
with the proper tags and file reference already in it. All you have to
do is serve that page up via ASP.
As for data access, your Flex application can send data to your ASP
server using the HTTP GET and POST verbs. When the server replies, it
can send POX (plain old XML) in response. If you want to get fancy,
you can also use SOAP, instead (but there may be some wrinkles doing
that with a .NET/Windows stack).


 2. I would like to know how to create a hierarchal data grid in
Flex? I saw some examples 
 
 of the new Hierarchical collection, if it is the solution, is there
a simple example 
 
 somewhere I can use?
 


Try Adobe's documentation: 
http://livedocs.adobe.com/flex/3/html/help.html?content=advdatagrid_07.html


 3. I would like to print reports from web and currently silverlight
has buggy 
 
 implementation of print, is it possible to print from Flex web page?
Also is it possible to 
 
 export the data to PDF or HTML format?
 


More documentation:
http://livedocs.adobe.com/flex/3/html/help.html?content=advdatagrid_07.html


 I am doing reading right now, as the Flex expert you could help me
speed up to make my decision.
 
 Thanks a lot.


Oh, as a former ASP and .NET developer, I'm happy to say: Flex rocks!
--Jim



[flexcoders] Re: sizing dinamically the screen

2009-02-02 Thread jim.abbott45
Gustavo:

Sorry, but I don't think the approach you are taking is necessarily
advisable, or even technically correct (in one regard). Specifically:

1) screen.width (and screen.height, and screen.availableWidth, etc.)
allow JavaScript (DOM) code to discover the size of the user's monitor
(screen hardware), not of the browser window in which your Flex
application is running. (The available* properties then subtract from
that size any operating system 'reserved' screen real estate, such as
the Windows task bar.)

2) I would be very surprised if JavaScript code could alter the value
of any of these properties--by definition they could not be under the
control of a browser window, so they should be read-only. Therefore,
code like

screen.width = 1024;

should not be expected to work.
Even if that code _does_ happen to work with one Browser or Operating
System, I wouldn't rely on it!

3) A reasonably reliable way to ensure that your application is
running in a browser window of the size that you want, is to use the
JavaScript/browser DOM Window.open() method to open a new window,
which gives you the opportunity to specify the size of browser window
that you want your application to have. Be sure to note that you are
specifying the overall (e.g., outer) size of the window; you are NOT
specifying how much (client) area that your application will get. ***
Different brands (and versions) of browsers will use different amounts
of space for their own 'chrome' (UI elements such as the URL/address
bar, etc.). I don't know of any way other than cross-browser testing
to discover the exact values, and they may change when a new version
of a browser is released!

4) If you don't want to open a new browser window, then you can use
the Window.resizeTo() DOM call in order to modify the size of the
current window.

For both 3) and 4), security policy in modern browsers may affect: the
success of opening a new window (i.e., pop-up blockers), and to place
limits on net window size.

5) You can call the JavaScript/DOM code from your Flex application
using the Flash ExternalInterface API. For more information, see (for
example):
http://livedocs.adobe.com/flex/3/html/help.html?content=passingarguments_4.html

6) For more information about the Window.resizeTo() browser DOM API,
see (for example):
http://msdn.microsoft.com/en-us/library/ms536723(VS.85).aspx

7) My _recommendation_ is that you consider abandoning the notion of a
fixed-size application window. Flex containers support liquid layout
very nicely and it is not much (extra) work to let your application
work that way. In other words, if/when the user resizes their browser
window, have your application adjust its layout accordingly. If you do
that, I think that it is also reasonable to specify a (window) size
below which your application won't be able to re-size itself to (and,
thus, scroll bars may appear).

Good luck!
--Jim


--- In flexcoders@yahoogroups.com, Gustavo Duenas LRS gdue...@... wrote:

 do you know where I can get examples of this ExternalInterface?
 
 Regards,
 
 Gustavo
 
 On Feb 2, 2009, at 10:45 AM, Tracy Spratt wrote:
 
 
  If that works in javascript, in different browsers, then you can  
  get those values through ExternalInterface
 
 
 
  Tracy Spratt
  Lariat Services
 
  Flex development bandwidth available
 
  From: flexcoders@yahoogroups.com  
  [mailto:flexcod...@yahoogroups.com] On Behalf Of Gustavo Duenas LRS
  Sent: Monday, February 02, 2009 9:33 AM
  To: flexcoders@yahoogroups.com
  Subject: [flexcoders] sizing dinamically the screen
 
 
 
  Ok, Coders, this is my problem I have set the width and height of my
  application to 1024 to 768 , it works on mac, but in pc you know what
  would happen with the IE7...
  well I just think this, just addind a creationComplete code like
 
  function initSize(){
 
  screen.width= screen.availWidth;
  screen.height= screen/availHeight;
 
  this think works in Javascript there is counterpart on flex or it
  works on flex?
 
  I'd appreciate your help.
 
  Gus
 
 
 
 





[flexcoders] Re: sizing dinamically the screen

2009-02-02 Thread jim.abbott45
Gustavo:

Your page _does_ render on IE (7) on Windows (XP). However, it does
*not* appear to be re-sizing when the (Browser) window is re-sized.
FYI: at 800 x 600 window size, I can see down to the line your target
group... and ending at ...Right Solutions has t At 1024 x 768,
all the text is seen, but the background image is clipped at about the
lower right (visible) corner of the bridge. At 1280 x 1024, all of the
content is seen _except_ the outer-most areas of the blue semi-circles
on the far left and right.

Regards,
Jim

--- In flexcoders@yahoogroups.com, Gustavo Duenas LRS gdue...@... wrote:

 Ok, jim, my flex ste:
 is:
 
 http://leftandrightsolutions.com/lrsad/bin/lrsad.html
 please check it on a pc with windows and let me know if this one  
 looks good on windows/vista/xp borwsers,
 prefenrently IE.
 
 Regards,
 
 Gustavo
 
 P.d: the aplication for mac computer has a window.open() but problem  
 is the windows browsers, so instead of that
 I've been trying to apporach the windows, not much of success right now.
 
 
 On Feb 2, 2009, at 1:13 PM, jim.abbott45 wrote:
 
  Gustavo:
 
  Sorry, but I don't think the approach you are taking is necessarily
  advisable, or even technically correct (in one regard). Specifically:
 
  1) screen.width (and screen.height, and screen.availableWidth, etc.)
  allow JavaScript (DOM) code to discover the size of the user's monitor
  (screen hardware), not of the browser window in which your Flex
  application is running. (The available* properties then subtract from
  that size any operating system 'reserved' screen real estate, such as
  the Windows task bar.)
 
  2) I would be very surprised if JavaScript code could alter the value
  of any of these properties--by definition they could not be under the
  control of a browser window, so they should be read-only. Therefore,
  code like
 
  screen.width = 1024;
 
  should not be expected to work.
  Even if that code _does_ happen to work with one Browser or Operating
  System, I wouldn't rely on it!
 
  3) A reasonably reliable way to ensure that your application is
  running in a browser window of the size that you want, is to use the
  JavaScript/browser DOM Window.open() method to open a new window,
  which gives you the opportunity to specify the size of browser window
  that you want your application to have. Be sure to note that you are
  specifying the overall (e.g., outer) size of the window; you are NOT
  specifying how much (client) area that your application will get. ***
  Different brands (and versions) of browsers will use different amounts
  of space for their own 'chrome' (UI elements such as the URL/address
  bar, etc.). I don't know of any way other than cross-browser testing
  to discover the exact values, and they may change when a new version
  of a browser is released!
 
  4) If you don't want to open a new browser window, then you can use
  the Window.resizeTo() DOM call in order to modify the size of the
  current window.
 
  For both 3) and 4), security policy in modern browsers may affect: the
  success of opening a new window (i.e., pop-up blockers), and to place
  limits on net window size.
 
  5) You can call the JavaScript/DOM code from your Flex application
  using the Flash ExternalInterface API. For more information, see (for
  example):
  http://livedocs.adobe.com/flex/3/html/help.html? 
  content=passingarguments_4.html
 
  6) For more information about the Window.resizeTo() browser DOM API,
  see (for example):
  http://msdn.microsoft.com/en-us/library/ms536723(VS.85).aspx
 
  7) My _recommendation_ is that you consider abandoning the notion of a
  fixed-size application window. Flex containers support liquid layout
  very nicely and it is not much (extra) work to let your application
  work that way. In other words, if/when the user resizes their browser
  window, have your application adjust its layout accordingly. If you do
  that, I think that it is also reasonable to specify a (window) size
  below which your application won't be able to re-size itself to (and,
  thus, scroll bars may appear).
 
  Good luck!
  --Jim
 
  --- In flexcoders@yahoogroups.com, Gustavo Duenas LRS gduenas@  
  wrote:
  
   do you know where I can get examples of this ExternalInterface?
  
   Regards,
  
   Gustavo
  
   On Feb 2, 2009, at 10:45 AM, Tracy Spratt wrote:
  
   
If that works in javascript, in different browsers, then you can
get those values through ExternalInterface
   
   
   
Tracy Spratt
Lariat Services
   
Flex development bandwidth available
   
From: flexcoders@yahoogroups.com
[mailto:flexcod...@yahoogroups.com] On Behalf Of Gustavo Duenas  
  LRS
Sent: Monday, February 02, 2009 9:33 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] sizing dinamically the screen
   
   
   
Ok, Coders, this is my problem I have set the width and height  
  of my
application to 1024 to 768 , it works on mac, but in pc you  
  know what

[flexcoders] Re: sizing dinamically the screen

2009-02-02 Thread jim.abbott45
Gustavo:

Sorry, but I don't think you're coding this correctly. Specifically:

1) I don't see your browser size detection code in the HTML wrapper
file at all. E.g., it is missing:

 script type=javascript
 
 var browserHeight= screen.availHeight;
 var browserWidth = screen.availWidth;
 
 /script

2) In any case, I'm not 100% clear as to what you are trying to
accomplish via the external interface. However, to get the available
screen width the following code will *probably* work (I haven't tried
it or tested it):

In ActionScript (note the quotation marks):
var width:Number = ExternalInterface.call(getAvailWidth);


assuming you have a JS function (in the HTML wrapper file) like this:

function getAvailWidth()
{
 return screen.availWidth;
}


Then write similar code for the height, etc.


3) BTW, as a general rule, I've found it most productive to debug JS
code first (in isolation), _before_ attempting to call it from Flex.

4) Please look at the Adobe documentation for the ExternalInterface
API and the HTMLWrapper file again. I think--for now--you've reached
the limit as to what can reasonably be addressed via postings on
FlexCoders.

Good luck,
Jim

--- In flexcoders@yahoogroups.com, Gustavo Duenas LRS gdue...@... wrote:

 OK,,I have this using the external interface let me know if I'm  
 wrong...:)
 
 mx:script
 import flash.external.*;
 
 publicFunction resizerFlash():void{
 
 var h:uint;
 var w:uint;
 
 if (ExternalInterface.available){
 
 var availableHeight:uint = browserHeight ;
 h= ExternalInterface.call(availableHeight, stage.height);
 }
 
 if (ExternalInterface.available){
 
 var availableWidth:uint = browserWidth;
 w=ExternalInterface.call(availableHeight, stage.width);
 
 }
 
 }
 in the html:
 
 script type=javascript
 
 var browserHeight= screen.availHeight;
 var browserWidth = screen.availWidth;
 
 /script
 
 I'm just adapting something I found about using the external  
 interface
 let me know if I'm wrong or this is going to be a fiasco
 
 
 Gustavo
 
 
 On Feb 2, 2009, at 1:33 PM, Gustavo Duenas LRS wrote:
 
  Ok, jim, my flex ste:
 
  is:
 
  http://leftandrightsolutions.com/lrsad/bin/lrsad.html
  please check it on a pc with windows and let me know if this one  
  looks good on windows/vista/xp borwsers,
  prefenrently IE.
 
  Regards,
 
  Gustavo
 
  P.d: the aplication for mac computer has a window.open() but  
  problem is the windows browsers, so instead of that
  I've been trying to apporach the windows, not much of success right  
  now.
 
 
  On Feb 2, 2009, at 1:13 PM, jim.abbott45 wrote:
 
  Gustavo:
 
  Sorry, but I don't think the approach you are taking is necessarily
  advisable, or even technically correct (in one regard). Specifically:
 
  1) screen.width (and screen.height, and screen.availableWidth, etc.)
  allow JavaScript (DOM) code to discover the size of the user's  
  monitor
  (screen hardware), not of the browser window in which your Flex
  application is running. (The available* properties then subtract from
  that size any operating system 'reserved' screen real estate, such as
  the Windows task bar.)
 
  2) I would be very surprised if JavaScript code could alter the value
  of any of these properties--by definition they could not be under the
  control of a browser window, so they should be read-only. Therefore,
  code like
 
  screen.width = 1024;
 
  should not be expected to work.
  Even if that code _does_ happen to work with one Browser or Operating
  System, I wouldn't rely on it!
 
  3) A reasonably reliable way to ensure that your application is
  running in a browser window of the size that you want, is to use the
  JavaScript/browser DOM Window.open() method to open a new window,
  which gives you the opportunity to specify the size of browser window
  that you want your application to have. Be sure to note that you are
  specifying the overall (e.g., outer) size of the window; you are NOT
  specifying how much (client) area that your application will get. ***
  Different brands (and versions) of browsers will use different  
  amounts
  of space for their own 'chrome' (UI elements such as the URL/address
  bar, etc.). I don't know of any way other than cross-browser testing
  to discover the exact values, and they may change when a new version
  of a browser is released!
 
  4) If you don't want to open a new browser window, then you can use
  the Window.resizeTo() DOM call in order to modify the size of the
  current window.
 
  For both 3) and 4), security policy in modern browsers may affect:  
  the
  success of opening a new window (i.e., pop-up blockers), and to place
  limits on net window size.
 
  5) You can call the JavaScript/DOM code from your Flex application
  using the Flash ExternalInterface API. For more information, see (for
  example):
  http://livedocs.adobe.com/flex/3/html/help.html? 
  content=passingarguments_4.html
 
  6) For more information about the Window.resizeTo() browser DOM API,
  see (for example

[flexcoders] Re: HTML and Flex

2009-01-21 Thread jim.abbott45
OK, I'll bite . . .

The only solution that I can think of, off the top of my head, is to
pop up a new browser window and embed just the TinyMCE instance in
that window. When the user has committed their changes in the editor
window, use JavaScript and Flex's ExternalInterface API to get the
edited content back into the Flex world. And you need some code to
close the pop up window, etc.

Personally, I'd try real hard to work around that scrolling issue you
mentioned, first, before I implemented the pop-up.

--Jim

--- In flexcoders@yahoogroups.com, bffoley bffo...@... wrote:

 I have a client who I am making a full-page Flex application for.  We
 originally had the application embeded in the HTML page, but because
 of Flex's Browser and VBox scrollbars scrolling together bug, I had
 to made the application show the full page, including the other
 content in the page which I had to recreate in MXML.  
 
 The issue here is the client uses TinyMCE in some homemade CMS to make
 updates to the rest of the content on the page, and he doesn't want to
 give this up.  I haven't been able to find a solution that lets us
 import the HTML he creates in TinyMCE into the Flex app.  I've seen a
 few iframe options that wont work because of the scrollbars (the
 iframe stays in the same spot, no matter where you scroll up and down
 on the page), and some other option I found that converts HTML to a
 Flash-friendly format doesnt support tables (only DIV tags), which
 TinyMCE relies on heavily.
 
 What are my options here?  Is there some sort of solution I can do
 here that would allow a person who's not technical but likes WYSIWYG
 editors to get new content into a Flex app?





[flexcoders] Re: Navigational Design Patterns?

2009-01-21 Thread jim.abbott45

FWIW, I have to concur with the advice that Tracy gave you and I can
also recommend--HIGHLY--the content at the link that Haykel gave you.

In short, use Wizard-style navigation for
infrequent/complex/inherently multi-step tasks. For the rest of
(usually, most of) your tasks, use a more fluid navigational
mechanism, such as Hub-and-Spoke.


--Jim


--- In flexcoders@yahoogroups.com, nwebb neilw...@... wrote:

 Hi,
 
 We have a modular Flex project.
 Each screen has back and next  buttons.
 
 There are various routes through the application and I'm about to
re-write
 the logic which determines where the buttons take the user when they are
 pressed (what is already in place is overly complex).
 
 I'm guessing that there are fairly established methods for achieving
this
 and would be interested to see what exists, rather than roll out a
bespoke
 solution. Can anyone point me in the direction of a good resource?
 
 Cheers,
 Neil





[flexcoders] Re: copyright notices in code

2009-01-21 Thread jim.abbott45
For your compiled code:

If you are compiling an application, then the first screen that a user
sees (splash screen, login form, etc.) should have a copyright notice.
If you are compiling a library or resource file of some sort, you may
want to include a string which contains a copyright notice.

The above does NOT constitute legal advice!
--Jim


--- In flexcoders@yahoogroups.com, arieljake arielj...@... wrote:

 How do people add copyright notices to their code? When they create a
 new file? 
 
 What if the notice changes? Do they use ant to add it before
 compilation to each file? 
 
 Does compiling Flex remove the copyright notice? If so, should one
 worry about having a copyright notice in the code for if/when it is
 decompiled?
 
 Anyone notice that comments are removed from an MXML file when it is
 edited in design mode?
 
 Any and all responses are invited!





[flexcoders] Re: Overriding margins using FlexPrintJob

2009-01-16 Thread jim.abbott45
Jeff:

We're a little confused as to what problem you're really trying to
solve here . . .

I just tried the printing wizard (in XP's Windows Picture and Fax
Viewer) application--I assume that's what you're referring to. When I
tried the 'Wallet Prints' option, it scaled and rotated the image. It
did NOT appear to affect the borders. And the image printed _with_ a
border.

Perhaps more to the point, AFAIK, the ability to print content
*without a border* is a function of the brand/model of printer that
one is printing to; it cannot be 'forced' by the software if the
(printer) hardware doesn't support it.

Unfortunately, however, it doesn't appear that Flex/Flash can
programmatically specify that option. (Assuming that a user _does_
have a printer which supports border-less printing.) 

The Adobe documentation says:

Flash Player and AIR can read an operating system's printing
settings, but note that these properties are read-only: although you
can respond to their values, you can't set them. So, for example, you
can find out the printer's page size setting and adjust your content
to fit the size. You can also determine a printer's margin settings
and page orientation.

I don't know if above is true from personal experience, however, so
maybe some flexcoders readers who have done this would like to chime
in here . . .

--Jim


--- In flexcoders@yahoogroups.com, Jeff Hindman jake...@... wrote:

 Flex  AIR gurus,
 
   Is it possible to force printing to be borderless without setting it
 in the printer dialog box? I'm printing from an AIR application ... or
 at least trying to. I'm trying to duplicate the wallet-sized option of
 the Windows Photo Printing Wizard.
 
 Thanks,
 
   -- Jeff





[flexcoders] Re: warning on 'back' button before closing application?

2009-01-14 Thread jim.abbott45
Your other choice is to have your entire application opened in a new,
separate browser window, but with the browser 'chrome'  history
turned off. In that case, users cannot accidentally navigate away from
the application, because there _is no_ navigation history to begin
with. Of course not everyone likes the idea of opening new browser
windows, so this technique may not be useful everywhere.

Regards,
Jim

--- In flexcoders@yahoogroups.com, Maciek Sakrejda msakre...@... wrote:

 Is there a way to warn the user that they're about to navigate away from
 the app through the browser's back button? This is actually a request
 from our users: we don't use BrowserManager (I don't think it would even
 make sense for us), but they are used to browser paradigms, and
 sometimes hit 'back' inadvertently, navigating away from the
 application. Is there a way to issue a warning beforehand?
 
 -- 
 Maciek Sakrejda
 Truviso, Inc.
 http://www.truviso.com





[flexcoders] Re: Using ActiveXObject with Adobe AIR and Flex

2009-01-09 Thread jim.abbott45
Pratik: I've gotten this to work on my own projects (for example, to
load data into Excel). But ONLY with Internet Explorer (on Windows, of
course). I doubt it would ever work cross-browser (or with AIR),
because the browser needs to implement support for instantiating
ActiveX objects and to call methods on them. AFAIK, this is an IE-only
feature.

Bottom line: if you want to do this (and can live with the browser
restrictions), the Flex ExternalInterface API to call some JS code
which instantiates and calls the ActiveX object (like your example JS
code does).

Regards,
Jim

--- In flexcoders@yahoogroups.com, pratikshah83 pratiksha...@...
wrote:

 Hi Guys, 
 
 I am trying to execute a application on the desktop using
 ActiveXObject... but I am unable to get it working with Adobe AIR +
Flex. 
 
 Something Like this. It works fine using it in javascript in IE. But i
 am unable to get it working from AIR even after calling the javascript
 and so tried using the mx:html tag.
 
 AB = new ActiveXObject(Broker.Application);
 AB.Quit();
 
 Any help if this regards would be appreciated. 
 
 Thanks
 Pratik





[flexcoders] Re: WANTED: Online help integration, authoring, best practices (for Flex or Ajax)

2009-01-06 Thread jim.abbott45

Tracy: thanks for the information.  --Jim


--- In flexcoders@yahoogroups.com, Tracy Spratt tspr...@... wrote:

 One would hope that the company that owns Flash, Flex and RoboHelp is
 working on some integration.  I have not seen anything myself yet.
 
  
 
 Here is what I did:
 
 * I use an external browser window to display help
 * I chose to have two levels of context, module, and view.
 * My navigation system always knows the current context.
 * Invoking help in Flex uses ExternalInterface to call out to a
 javascript function in the wrapper
 * The wrapper creates or gets the reference to the help window,
 and builds the url based on module and view arguments.
 * The module defines the html page, and the view is an #
 anchor in the url to navigate to the appropriate part of the page.
 
  
 
 My needs were very simple, and this simple approach worked
 satisfactorily.  The help authors needed only the module and view ids,
 which were descriptive strings.
 
  
 
 Tracy
 
  
 
 
 
 From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
 Behalf Of jim.abbott45
 Sent: Monday, January 05, 2009 12:27 PM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] WANTED: Online help integration, authoring, best
 practices (for Flex or Ajax)
 
  
 
 Does anyone have any recommendations about good ways to add online
 help to Flex (and maybe Ajax) applications? In particular . . .
 
 1) Is your help system integrated into the application or is it in a
 separate (browser) window?
 
 2) How do you achieve _context-sensitive_ linkage?
 
 3) What tooling (i.e., RoboHelp, HTML editor, etc.) did you use?
 
 4) What did your authoring to deployment workflow look like (and how
 did you handle content changes)?
 
 -
 FYI: I already searched FlexCoders, but all I could find that seemed
 relevant was this post
 (http://tech.groups.yahoo.com/group/flexcoders/message/129245
 http://tech.groups.yahoo.com/group/flexcoders/message/129245 ) from
 October and this one
 (http://tech.groups.yahoo.com/group/flexcoders/message/16032
 http://tech.groups.yahoo.com/group/flexcoders/message/16032 ) from,
 gulp, 2005! And neither one had any responses (sigh).
 
 -
 Specifically, some of my colleagues would like to do single-source
 generation of our help content and then publish the content in
 WebHelp/HTMLhelp form. However, we can't directly use that content in
 Flex (3), because the HtmlText property of the Flex text controls only
 supports a very limited subset of HTML. For example, our writer would
 like to use lists and tables, but the Flex controls don't support that.
 
 Any ideas people?
 
 Thanks in advance,
 Jim Abbott





[flexcoders] WANTED: Online help integration, authoring, best practices (for Flex or Ajax)

2009-01-05 Thread jim.abbott45
Does anyone have any recommendations about good ways to add online
help to Flex (and maybe Ajax) applications? In particular . . .

1) Is your help system integrated into the application or is it in a
separate (browser) window?

2) How do you achieve _context-sensitive_ linkage?

3) What tooling (i.e., RoboHelp, HTML editor, etc.) did you use?

4) What did your authoring to deployment workflow look like (and how
did you handle content changes)?

-
FYI: I already searched FlexCoders, but all I could find that seemed
relevant was this post
(http://tech.groups.yahoo.com/group/flexcoders/message/129245) from
October and this one
(http://tech.groups.yahoo.com/group/flexcoders/message/16032) from,
gulp, 2005! And neither one had any responses (sigh).

-
Specifically, some of my colleagues would like to do single-source
generation of our help content and then publish the content in
WebHelp/HTMLhelp form. However, we can't directly use that content in
Flex (3), because the HtmlText property of the Flex text controls only
supports a very limited subset of HTML. For example, our writer would
like to use lists and tables, but the Flex controls don't support that.

Any ideas people?

Thanks in advance,
Jim Abbott



[flexcoders] Re: clearing out mx:DateField

2008-12-09 Thread jim.abbott45
Hmm . . . I would think that should work, I've used the
foo.selectedDate = null technique before.

Here's how my technique for clearing out a DateField looks (in this
example: it is filtering a data provider, and 'tomorrowOn' is an
instance of an Object which has a rangeStart property):

startDateField.selectedDate = null; 
startDateField.disabledRanges = new Array();
startDateField.disabledRanges.push(tomorrowOn);
openingDataProvider.refresh();


--- In flexcoders@yahoogroups.com, Stephen More [EMAIL PROTECTED]
wrote:

 Within flex I have:
  mx:DateField id=effective /
 
 Once a user selects a date, I can not clear it out using actionscript.
 
 I have tried:
  effective.selectedDate = null;
  effective.selectedDate = undefined;
 neither one has worked.
 
 How can one clear out the mx:DateField ?
 
 -Thanks





[flexcoders] Re: Unformatting currency values - best practice?

2008-12-04 Thread jim.abbott45
It sounds like you're taking the 'high road' approach to this (i.e.,
letting users enter arbitrary currency strings and then trying to
figure out the currency type after the fact and then checking the
thousands separators and decimal point characters to see if they match
that). That's a best practice usability-wise (at least if you agree
with Alan Cooper...), but it can also take a lot of code to implement
it robustly and it requires thorough testing.

If you're willing to trade off some usability, you could have user's
pick the currency type (i.e., USD, Euro, Yen), _separately_, say in a
drop-down list; and then have them enter the actual value (in a
separate text field). If you implement it that way, then your
(currency) string parsing problem becomes much simpler. If you put the
currency type selector _before_ the amount field (in the workflow/tab
order), then you can also do things like dynamically changing the
validator for the amount field, based on the selected currency. You
could even have a 'no currency type selected' default for the currency
type selector and disable the amount field until the user selected a
particular currency.

I don't know if I would consider the latter approaches as 'best
practices' (especially from a usability perspective), but they are
reasonable trade-offs. YMMV.

I'm not quite clear on what you're trying to do formatting wise,
however. Are you saying that you try to detect when a user has
finished entering a currency amount, and then add currency symbols,
thousands separator symbols, decimal point symbol, etc.?

Regards,
Jim

--- In flexcoders@yahoogroups.com, flexcoder2008 [EMAIL PROTECTED] wrote:

 What is the best practice or a good recommendation for formatting
 currency values and then removing the currency formatting for saving
 to the database?
 
 Here's what I have attempted to do so far.  It works - but only if the
 user enters plain old numbers - if they add any currency symbol or
 thousand separator, it fails.
 
 I have a form which has some textInput's that are formatted with
 currencyFormatters.  I initialize each textInput's .data property to
 0.  The textInput displays formatted currency amounts from xml data
 retrieved from the database.  On the focusIn event, the text property
 is assigned to the textInput's .data property, so the value stays the
 same but the formatting is gone. And when a change event fires, the
 unformatted text in the textInput gets updated to the data property as
 well.
 
 On the FocusOut event, the currency formatting is re-applied.
 
 When I save to the db, I use the textInput's .data property.  So for
 the most part this works, but fails if the user enters any currency
 symbols.
 
 Is there a good class or function someone could recommend to take a
 currency value in a textInput and strip out all the extra formatting
 characters?  I am also trying to implement localization, so the
 various currency symbols will be different depending on the locale.
 
 Thanks





[flexcoders] Re: JSP taglib FLEX 3

2008-12-02 Thread jim.abbott45
virchete: I don't have a lot of expertise with the Flex web-tier
compiler. However, If you are trying to compile a Flex application
using the web-tier compiler, then you should normally be loading a
.mxml (and not .jsp) file to the server, and then having your browser
request that file. 

For more information, see: 
http://livedocs.adobe.com/flex/3/html/help.html?content=apache_4.html

--Jim


--- In flexcoders@yahoogroups.com, virchete [EMAIL PROTECTED] wrote:

 I am trying to use the jsp tag library into a very simple jsp:
 
 %@ taglib uri=FlexTagLib prefix=mm %
 htmlbody
 h3Introduction/h3
 pThis is an example of writing MXML in a JSP./p
 h3My App/h3
 mm:mxml  
mx:Application xmlns:mx=http://www.adobe.com/2006/mxml;
   mx:Accordion width=500 height=300
  mx:VBox label=panel1 width=500 height=200 /
   /mx:Accordion
/mx:Application
 /mm:mxml
 /body/html
 
 I have a Java project that uses STRUTS to redirect. Well the problem
 is that, although I have included the flex-bootstrap.jar,
 flex-bootstrap-jsp.jar,  flex-webtier.jar and flex-webtier-jsp.jar I
 always receive the same exception in the explorer or mozilla navigator:
 
 java.lang.NullPointerException
   flex.bootstrap.BootstrapTag.init(BootstrapTag.java:24)
   flex.bootstrap.BootstrapBodyTag.init(BootstrapBodyTag.java:14)
   flex.webtier.server.j2ee.jsp.MxmlTagImpl.init(MxmlTagImpl.java:2)
 
 
 I am using Tomcat 6 server and I receive always the following trace:
 
 EVERE: Servlet.service() for servlet jsp threw exception
 org.apache.jasper.JasperException: Unable to read TLD
 META-INF/taglib.tld from JAR file

file:/C:/google2/MapasOpodo/build/web/WEB-INF/lib/flex-bootstrap.jar: 
java.lang.NullPointerException
 at

org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:51)
 at

org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:409)
 at

org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:181)
 at

org.apache.jasper.compiler.TagLibraryInfoImpl.init(TagLibraryInfoImpl.java:182)
 at
 org.apache.jasper.compiler.Parser.parseTaglibDirective(Parser.java:420)
 ...
 ...
 ...
 
 SEVERE: Servlet.service() for servlet jsp threw exception
 java.lang.NullPointerException
 at flex.bootstrap.BootstrapTag.init(BootstrapTag.java:24)
 at
 flex.bootstrap.BootstrapBodyTag.init(BootstrapBodyTag.java:14)
 
 Well If you need something more (the source code) don't doubt to ask
 me. I am so sorry for having to find help, but I have lost all the day
 of work today, and if you could help me...
 
 Many Thanks
 David Virgil.





[flexcoders] Re: Using XSL in Flex?

2008-12-02 Thread jim.abbott45
Or you could just use the ExternalInterface API to call the XSL(T)
engine that most mainstream browsers include these days. That said,
there is (in my opinion) still the question of whether that approach
leads to a robust solution, particularly w.r.t. cross-browser
differences . . .

If you want to pursue that approach, this appears to be a good resource:
http://ajaxpatterns.org/Browser-Side_XSLT


--- In flexcoders@yahoogroups.com, oneworld95 [EMAIL PROTECTED] wrote:

 Can XSL be used to tell Flex how to display XML data? I've got an XML
 help file that I'd like to display in a popup window in Flex without
 having to fetch each element; I'd like to just dump the contents into
 a Flex control and have it automatically apply styles to it. Thanks.





[flexcoders] Re: Flex 3 - Export to Microsoft Excel?

2008-12-02 Thread jim.abbott45
I've successfully implemented two different approaches. 

The first approach just puts the data for Excel _on the clipboard_. It
also uses Microsoft's uber-funky XML schemas to control the formatting
of the resulting spread-sheet. This approach works nicely for both FF
and IE, in my experience (and, in theory, it should work in any
browser that supports the Flash VM, including clipboard access).

The second approach uses the ExternalInterface API to call a JS
function which uses ActiveX to invoke the Excel COM object. If the JS
function is able to load the Excel object, it then calls the object's
COM interface directly (via JS functions) in order to create a
Workbook and then to load data into its cells. Unfortunately, this
approach only works with IE, but it is slick if you can use it. But,
having the first approach as a fall-back is a good idea even then, in
my opinion.

Let me know if you have any specific questions about implementing
either of these.

Regards,
Jim



[flexcoders] Re: Creating a Chart With 50,000 Data Points

2008-11-18 Thread jim.abbott45
50,000? LOL. ;-)

On a more serious note, I have to agree with Fotis and Ricky that 50K
data points is too many, both from a (Flash 9 VM at least) performance
perspective and probably also from an Information Visualization
perspective (unless, maybe, your users have 300 dpi monitors).

There are several standard interaction design and information
visualization techniques which may be useful to you . . .

1) Aggregation (as already suggested, take 'N' data points, average
them, and then only display the average value).

2) Filtering (by sliders on an axis, by date/time, by structured or
open-ended queries, ...)

3) Progressive rendering (sample the entire data set at intervals of
'N', render those points, then go back and get the data which is
mid-point between the original points, add the new points to the
curve, repeat until desired resolution obtained--or on user demand)

4) Non-linear zooming (like idea 1), but allow user to zoom in on a
section of the curve, when they do, add the additional data points to
the curve for the zoomed-in region)


On a more pragmatic note, you certainly _can_ plot more than 2,000
points. For example, I've personally used Flex to create charts with
over 14,000 points in them, so I know that at least that number is
definitely *possible*. However, the overall rendering time was (as I
recall) over 3 minutes long. More troubling was the fact that the
entire Flex UI become very sluggish once a chart that large was
displayed. I've seen good chart rendering speed ( ~= 2S ) and no UI
sluggishness, up to about 1500 points. I've also been able to render
up to 6,000 points, but it took about 10S for the rendering and the UI
started to become sluggish. From your posting, it sounds like you're
not seeing those rendering speeds. I'd recommend that you experiment
with how you are using the charting objects/API. My experience was
that I was able to see some very noticeable speed-ups simply be
optimizing how I called the charting API (especially w.r.t. how I
loaded the series data). In particular, if your charts are
interactive, try to cache anything you can that doesn't necessarily
change during an interaction (i.e., axis objects).

Last thought: the new Flash 10 VM (Astro) has support for larger
bitmaps and also can now do hardware-based rendering, apparently. I
haven't tried either of those features myself, but using the v10 VM
_might_ be another way to get a performance boost, etc.

Good luck!
Jim

--- In flexcoders@yahoogroups.com, Mark Easton [EMAIL PROTECTED] wrote:

 Hi,
  
 It appears that Flex Charts cannot handle generating charts with large
 DataSets. We tried with 50,000 data points and it thrashed away without
 producing a result after 6 minutes. It was able to plot 2,000 points in
 about 25 seconds.
  
 What is the recommended approach for creating charts from large data
sets.
 The best I can think of is to write some code that will reduce the
data set
 in size yet still provide enough data to represent the graph accurately.
  
 Thoughts?
  
 Ta.
 Mark





[flexcoders] Re: Communicating with Component

2008-11-12 Thread jim.abbott45
It should be quite straight-forward . . .


1) Import the component's class. For example:

import com.myOrg.folderName.WidgetClass;


2) Instantiate the component:

protected var aWidget:WidgetClass = new WidgetClass();


3) Access its properties and invoke its methods:

aWidget.name = 'foo';
aWidget.moveLeft(55);






[flexcoders] Re: Setting cursor to particular text box on the application load

2008-11-12 Thread jim.abbott45
In order for this to work, your application _as a whole_ needs to do
two things. One of them is (in Flex) to use the setFocus() method to
specify where (in the Flex applications) focus should go. From your
posting it appears that you have already done this.

The other thing is that the _entire Flex application itself_ needs to
first get focus. This is not done in Flex, it needs to be done in the
'HTML Wrapper' page which loads the Flex application. Please locate
your Flex project's index.template.html file and open it for
editing. Then add JavaScript code which will cause the Flex
application to receive focus when the HTML page is loaded. The
simplest way to do this is to add an inline event handler to the
page's BODY element. For example, if the HTML Wrapper page is being
viewed in the IE v7 Web browser, then the following code should work:

body scroll=no onLoad=window.document.${application}.focus();

Please note that the behavior might be slightly different in other
browsers (i.e., FireFox, Safari, etc.) and you may have to tweak the
JavaScript code to achieve a robust solution.

Regards,
Jim


--- In flexcoders@yahoogroups.com, anuj181 [EMAIL PROTECTED] wrote:

 Hi 
 Is it possible to set the cursor to the text input while your app
 loads. I am using setFocus to particular text input but it is just
 setting the focus to my text box but not the cursor. Is it possible to
 set the cursor to the text box on the app load.
 Thanks
 Anuj





[flexcoders] Is Astro (version 10) of the Flash VM on the auto-updateder now?

2008-11-10 Thread jim.abbott45
Can anyone (Matt, Alex, ...others?) confirm that version 10 is what
the auto-updater is pushing out now?

FYI: on at least one of my Development machines, I just got an update
recommendation (to v10), even though I wasn't looking for an update.

TIA,
Jim



[flexcoders] Re: my first flex website

2008-11-05 Thread jim.abbott45
Gustavo, here are a few things I noticed:

-- The sculpture/building image (and maybe some other content) did not
load at the same time as the rest of the design; it was somewhat
jarring when it/they did finally appear (a few seconds later). You
might want to consider embedding all the content (if not doing that is
what is causing the delay).

-- The sliding in of the various bits of content (from the left and
right) is unusual. But I really like it and I think it works well.

-- I would strongly suggest trying to unify the typography (i.e., make
it more consistent, etc.). The text at the top is also a bit hard to read.

-- I like the looks of the semi-circles (on each side), but they are
making your site quite wide (and even without them it is wide).

-- In general, I would suggest taking what you've got and trying to
simplify the visual design a little.

-- This is much cooler than my first Flex application; so what do I
know?  8-)

Regards,
Jim


--- In flexcoders@yahoogroups.com, Gustavo Duenas [EMAIL PROTECTED] wrote:

 HI, finally I've done my first flex web siteit is done, or at  
 least is that what I think...maybe tomorrow I'll add something else.
 
 please check it at:
 
 http://leftandrightsolutions.com/lrsad/bin/lrsad.html
 
 please don't be so hard in critics, is ok to be criticized but don't  
 be offensive.
 
 I hope you like, is not the big deal, but is something that did by  
 myself, I thank in advance to all of you who help me out
 with your advices.
 
 regards,
 
 Gustavo
 
 
 
 Gustavo A. Duenas
 Creative Director
 LEFT AND RIGHT SOLUTIONS
 904.  265 0330 - 904. 386 7958
 www.leftandrightsolutions.com
 Jacksonville - Florida





[flexcoders] Re: textArea.setFocus();

2008-10-30 Thread jim.abbott45
For IE7 (at least), the following line of code works . . .

body scroll=no onLoad=window.document.${application}.focus();

Just to be clear, it needs to be put in the
html-template/index.template.html file of your project, and replacing
the body tag that is already there.

Good luck,
Jim



--- In flexcoders@yahoogroups.com, Blake Barrett [EMAIL PROTECTED] wrote:

 There is some JS you can run in the wrapper HTML that will give focus to
 the SWF, but it doesn't work in FF2 or Chrome.
  
 Blake
 
  
 
 
 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
 Behalf Of valdhor
 Sent: Wednesday, October 29, 2008 11:35 AM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Re: textArea.setFocus();
 
 
 
 Unfortunately, you can't.
 
 The browser has focus until the user clicks on your app.
 
 BTW. Does anyone know if this is rectified with FP10? Or is it just
 something we have to live with from the browser vendors?
 
 --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
 , tchredeemed apthorp@ wrote:
 
  Thanks guys, now I guess my problem is how to give the application
  focus without clicking on it?
  
  parentApplication.systemManager.activate() ?
  
  Not sure exactly where to go :)
 





[flexcoders] Re: WANTED: code examples (or explanations) of *NON-PopUp* Tab loops

2008-10-27 Thread jim.abbott45
Thanks AGAIN, to Alex!

Sadly, not what I was hoping to hear (the TileList does not support
focus in its renderers. part, at least). But important to have
clarified, and the information about the FocusManager is very useful
too . . . a good start for my own implementation.

Thanks,
Jim


--- In flexcoders@yahoogroups.com, Alex Harui [EMAIL PROTECTED] wrote:

 TileList does not support focus in its renderers. (List, Tree,
DataGrid do).  If you look at the code in List or DataGrid you'll see
how tabbing is handled.  You can probably try to subclass TileList and
add it in there, but it will be significant work.
 
 Tabloops in Flex are more or less handled by a single FocusManager
instance which is associated with top-level windows like the
application, or popups.  There is no support for creating new
FocusManagers for containers that are children of another FocusManager.
 
 The list classes can intercept KEY_FOCUS_CHANGE and override the
FocusManager's default behavior.
 
 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED]
On Behalf Of jim.abbott45
 Sent: Friday, October 24, 2008 9:06 AM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Re: WANTED: code examples (or explanations) of
*NON-PopUp* Tab loops
 
 
 Bump. The silence is deafening.
 
 I'm still hoping someone has some best practices or ideas to share,
if not
 necessarily and actual code examples.
 
 TIA,
 Jim
 
 --- In
flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com,
jim.abbott45 jim.abbott45@
 wrote:
 
  Hello fellow Flexers:
 
  I'm having a hard time finding reliable information on how Tab loops
  work. I'm hoping that someone has some good code samples they could
  share that would show how to implement/use tab loops in Flex. Or,
  failing that, clearer explanations than I've been able to glean from
  the Flex documentation.
 
  FYI: I don't have any concerns with or questions about Tab loop
  (keyboard focus) support in the context of controls in a container
  that is displayed via the PopUpManager.
 
  *** The use cases that I am interested in relate to control containers
  that are NOT displayed via the PopUpManager. For example, if I create
  a control container and use it as an item renderer in, say, a
  TileList--then how does focus management get initialized and how is it
  controlled? Or even in any container that is not displayed via the
  PopUpManager?
 
 
  My specific questions are:
 
  1) If the overall container (i.e., the TileList) instantiates or shows
  an ItemRenderer, then how do I get the keyboard focus set to a
  particular control in that new ItemRenderer/control container?
 
  FYI: I've tried adding code to the ItemRenderer's CreationComplete and
  Show events that calls the target control's setFocus() method, but
  that doesn't work. I also tried it using the FocusManager's setFocus()
  method--also doesn't work.
 
 
  2) How do I get the keyboard focus to move from control to control (in
  my ItemRenderer/control container)?
 
  FYI: I've actually gotten this to work (more-or-less), but it took so
  much code that it seems kludgy to me and I'm wondering if there is a
  better way to do this. What I did (the kludgy? way) was to add an
  event listener for the FocusEvent.KEY_FOCUS_CHANGE to the
  ItemRenderer/control container. In the event handler, I use the id of
  the event's target to decode which control the user is tabbing _from_
  and then set nextTabItem and previousTabItem properties based on the
  currently focused control plus the target control's enablement state.
  Then I call setFocus() on either nextTabItem or previousTabItem,
  depending on the keyboard Shift state. Lastly, I call
  this.focusManger.showFocus(), because it seemed that the current focus
  highlight was not always being rendered if I didn't call the
  showFocus() method. Note: the user is tabbing between TextInput,
  Button, and RadioButton controls--I need solutions that will support
  at least all of these controls, preferably all focus-able controls.
 
  Does anyone have a best practice (or at least better) way of doing
this?
 
 
  Thanks in advance for you help--flexcoders is a great resource!
  --Jim
 





[flexcoders] Re: WANTED: code examples (or explanations) of *NON-PopUp* Tab loops

2008-10-24 Thread jim.abbott45
Bump. The silence is deafening.

I'm still hoping someone has some best practices or ideas to share, if not
necessarily and actual code examples.

TIA,
Jim


--- In flexcoders@yahoogroups.com, jim.abbott45 [EMAIL PROTECTED]
wrote:

 Hello fellow Flexers:
 
 I'm having a hard time finding reliable information on how Tab loops
 work. I'm hoping that someone has some good code samples they could
 share that would show how to implement/use tab loops in Flex. Or,
 failing that, clearer explanations than I've been able to glean from
 the Flex documentation.
 
 FYI: I don't have any concerns with or questions about Tab loop
 (keyboard focus) support in the context of controls in a container
 that is displayed via the PopUpManager. 
 
 *** The use cases that I am interested in relate to control containers
 that are NOT displayed via the PopUpManager. For example, if I create
 a control container and use it as an item renderer in, say, a
 TileList--then how does focus management get initialized and how is it
 controlled? Or even in any container that is not displayed via the
 PopUpManager?
 
 
 My specific questions are:
 
 1) If the overall container (i.e., the TileList) instantiates or shows
 an ItemRenderer, then how do I get the keyboard focus set to a
 particular control in that new ItemRenderer/control container?
 
 FYI: I've tried adding code to the ItemRenderer's CreationComplete and
 Show events that calls the target control's setFocus() method, but
 that doesn't work. I also tried it using the FocusManager's setFocus()
 method--also doesn't work.
 
 
 2) How do I get the keyboard focus to move from control to control (in
 my ItemRenderer/control container)?
 
 FYI: I've actually gotten this to work (more-or-less), but it took so
 much code that it seems kludgy to me and I'm wondering if there is a
 better way to do this. What I did (the kludgy? way) was to add an
 event listener for the FocusEvent.KEY_FOCUS_CHANGE to the
 ItemRenderer/control container. In the event handler, I use the id of
 the event's target to decode which control the user is tabbing _from_
 and then set nextTabItem and previousTabItem properties based on the
 currently focused control plus the target control's enablement state.
 Then I call setFocus() on either nextTabItem or previousTabItem,
 depending on the keyboard Shift state. Lastly, I call
 this.focusManger.showFocus(), because it seemed that the current focus
 highlight was not always being rendered if I didn't call the
 showFocus() method. Note: the user is tabbing between TextInput,
 Button, and RadioButton controls--I need solutions that will support
 at least all of these controls, preferably all focus-able controls.
 
 Does anyone have a best practice (or at least better) way of doing this?
 
 
 Thanks in advance for you help--flexcoders is a great resource!
 --Jim





[flexcoders] WANTED: code examples (or explanations) of *NON-PopUp* Tab loops

2008-10-23 Thread jim.abbott45
Hello fellow Flexers:

I'm having a hard time finding reliable information on how Tab loops
work. I'm hoping that someone has some good code samples they could
share that would show how to implement/use tab loops in Flex. Or,
failing that, clearer explanations than I've been able to glean from
the Flex documentation.

FYI: I don't have any concerns with or questions about Tab loop
(keyboard focus) support in the context of controls in a container
that is displayed via the PopUpManager. 

*** The use cases that I am interested in relate to control containers
that are NOT displayed via the PopUpManager. For example, if I create
a control container and use it as an item renderer in, say, a
TileList--then how does focus management get initialized and how is it
controlled? Or even in any container that is not displayed via the
PopUpManager?


My specific questions are:

1) If the overall container (i.e., the TileList) instantiates or shows
an ItemRenderer, then how do I get the keyboard focus set to a
particular control in that new ItemRenderer/control container?

FYI: I've tried adding code to the ItemRenderer's CreationComplete and
Show events that calls the target control's setFocus() method, but
that doesn't work. I also tried it using the FocusManager's setFocus()
method--also doesn't work.


2) How do I get the keyboard focus to move from control to control (in
my ItemRenderer/control container)?

FYI: I've actually gotten this to work (more-or-less), but it took so
much code that it seems kludgy to me and I'm wondering if there is a
better way to do this. What I did (the kludgy? way) was to add an
event listener for the FocusEvent.KEY_FOCUS_CHANGE to the
ItemRenderer/control container. In the event handler, I use the id of
the event's target to decode which control the user is tabbing _from_
and then set nextTabItem and previousTabItem properties based on the
currently focused control plus the target control's enablement state.
Then I call setFocus() on either nextTabItem or previousTabItem,
depending on the keyboard Shift state. Lastly, I call
this.focusManger.showFocus(), because it seemed that the current focus
highlight was not always being rendered if I didn't call the
showFocus() method. Note: the user is tabbing between TextInput,
Button, and RadioButton controls--I need solutions that will support
at least all of these controls, preferably all focus-able controls.

Does anyone have a best practice (or at least better) way of doing this?


Thanks in advance for you help--flexcoders is a great resource!
--Jim



[flexcoders] Re: Base64Encoder / Base64Decoder

2008-09-25 Thread jim.abbott45
Has ANYONE got a code sample (of the Decoder, especially) they'd like
to share? 

I'm using the Decoder right now and can't get it to work. Of course I
don't know yet if its in my AS3 code; the server guy's Base-64 code
(in Java); or--dare I say it--in the Flex library.




[flexcoders] Re: Flex Enhancement, TabIndex

2008-09-20 Thread jim.abbott45
Please VOTE for SDK-16016
(https://bugs.adobe.com/jira/browse/SDK-16016), in addition to
SDK-16897 (https://bugs.adobe.com/jira/browse/SDK-16897), if you want
tab key support to be fixed, including usage in item renderers.