Re: [flexcoders] UML and Flex

2005-09-16 Thread Darron J. Schall
javanatic23 wrote: Hi. Does exist any tool with these features: - Generation of MXML and AS from UML Diagrams. I created an ActionScript 2 code generator here: http://www.darronschall.com/weblog/archives/000174.cfm I've mostly tested it with ArgoUML, your mileage may vary. Source code is

Re: AW: [flexcoders] Re: Number(011) = 9 ????

2005-10-05 Thread Darron J. Schall
Christoph Diefenthal wrote: My last question was only, whether there is a way to use the Number class to produce this output, because I thought that it is not the most object-oriented way to use the global function parseInt(...)... Use numVar = parseInt( string, base ) to convert a string to

Re: [flexcoders] Re: Flex or Flash, opinions?

2005-10-06 Thread Darron J. Schall
Greg Johnson wrote: Even though Flash 8 now has many of the same controls that Flex has (acordians, viewstacks, datagrids, etc).? Flex's development model is *way* better for applications. The controls that Flash 8 has are essentially the same that Flash 7 had, which aren't as good as

Re: [flexcoders] a bit OT...eclipse and templates and mxml files

2005-10-10 Thread Darron J. Schall
Douglas Knudsen wrote: ok, I'm using eclipse, the WST drop. I have the XML editor set to for mxml files. How do I create a standard template so that any time I create a new *.mxml file it uses this template? Windows - Preferences Expand Web and XML, XML Files, click XML Templates, create a

Re: [flexcoders] Args in functions

2005-10-13 Thread Darron J. Schall
David Harris wrote: Is there any way to handle undeclared Arguments passed in to function? Check out the arguments array that is created inside of the function automatically for you function foo() { trace( arguments[0] ); } foo( bar ); // output bar -d

Re: [flexcoders] DataGridColumn display issue

2005-10-14 Thread Darron J. Schall
Husain Kitabi wrote: I tried to use mx:DataGridColumn columnName=classgroupVenue headerText=Classgroup Venue / mx:DataGridColumn columnName=classgroupCapacity headerText=Classgroup Capacity/ mx:DataGridColumn columnName=module.moduleName headerText=Module/ The first 2

Re: [flexcoders] DataGridColumn display issue

2005-10-14 Thread Darron J. Schall
Allen Manning wrote: Custom cell renderer might be a bit OTT for this, labelFunction would be a good start. A cell renderer for an object path is reusable, whereas with using a label function you have to create a new function for each path. It may be over the top for this particular case,

Re: [flexcoders] Flex 2 Alpha huge output swf

2005-10-17 Thread Darron J. Schall
kosirm2000 wrote: First of all, I've noticed that output swf is huge, empty has about 246 kb. Does anyone know if this is going to change in future? Yes, it's going to get smaller. This is alpha software, and it's still deing developed. The team hasn't had a chance to even think about

Re: [flexcoders] how can I change the default browser in Flexbuilder 2?

2005-10-17 Thread Darron J. Schall
Rich Rodecker wrote: quick question...how can I tell FB2 to launch IE instead of FireFox (which is currently my default)? Go to Window - Preferences, expand General, click Web Browser, and make your selection there. -d Yahoo! Groups Sponsor

Re: [flexcoders] How to upload file from local file system

2005-10-25 Thread Darron J. Schall
jagabcdeff wrote: Hi, Now i am working on uploading file from local system to oracle database. How to do this with Flex. I've recently done this, and the process I used looks something like this: If Flash Player 7 and Non ActiveX player - Disable upload, prompt for upgrade to latest

Re: [flexcoders] Multiple Tabs Rows

2005-10-27 Thread Darron J. Schall
jwc_wensan wrote: Can we set multiple tab rows. In other words, for example, can we set that the tab has 2 rows with 5 tabs each? Not natively, but an example of multiple tab rows will be Flex By Example probably in the next few days. I have the example created, I just need to take the

Re: [flexcoders] Flex2: TitleWindow close button click event error

2005-11-04 Thread Darron J. Schall
Muzak wrote: When defining a click event for a custom TitleWindow, clicking anywhere within the TitleWindow triggers the event, allthough the docs say it is used for the close button. I believe that's a known issue. For now, do this: closeButton=true click=if ( event.target ==

Re: [flexcoders] File - flexcodersFAQ.txt

2005-11-06 Thread Darron J. Schall
flexcoders@yahoogroups.com wrote: Q: Is there a Rich Text Editor? This answer needs to be updated: Flex 2.0 includes a Rich Text Editor, available with the mx:RichTextEditor / tag. Documentation for the component is available here:

Re: [flexcoders] Changing the background color of row in datagrid

2005-11-08 Thread Darron J. Schall
Parekh, Shweta - BLS CTR wrote: I also tried using employee_dg.rows[rowInd].backgroundColor = 0xfff00; for changing the background color for a row but this does not work. This should probably be added the to FAQ as it gets asked a lot: // Use setPropertiesAt to set the background color of

Re: [flexcoders] Flex 2: thread management, synchronous methods, etc

2006-03-16 Thread Darron J. Schall
dos dedos wrote: I'm trying to find out from if it's possible to have a separate thread that does constant polling (of new screen data), i.e. without interrupting the AS execution thread. This way I won't have to develop a custom push-pull protocol on top of binary socket (I would rather

Re: [flexcoders] AS3 :: Multiline RegExp declarations :: Future enhancement ? ;-)

2006-03-17 Thread Darron J. Schall
Michael Schmalle wrote: Do you ever think down the road, you will give us regexp freaks a multiple line regexp declaration? Don't use a regex literal. Instead, use the constructor and pass a string: var regex:RegExp = new RegExp( some realy +

Re: [flexcoders] AS3 :: Multiline RegExp declarations :: Future enhancement ? ;-)

2006-03-18 Thread Darron J. Schall
Gordon Smith wrote: Forget StringBuilder... it's going away in B3. The player team decided it didn't give enough performance gain in enough useful cases to justify having both String and StringBuilder. Doh, really? I've actually been using it a decent amount. It's especially handy in

Re: [flexcoders] AS3 :: Multiline RegExp declarations :: Future enhancement ? ;-)

2006-03-18 Thread Darron J. Schall
Michael Schmalle wrote: The only reason I don't like using the string is the esacped back slash sequences. If it's a concern, then when you build your regex don't escape the \'s, and as a last step before you convert them to strings just do a quick find/replace with \ to \\ on the regex.

Re: [flexcoders] FB2 :: doubleClick bug event doen't happen

2006-03-21 Thread Darron J. Schall
Jason Hawryluk wrote: i have the same problem, i noticed a doubleClickEnabled property and setting that did not do it for the tree which is the only component i use it on. Seems double click is gone.../ not working. I'm pretty sure this is a known issue - doubleClickEnabled

Re: [flexcoders] Re: Google Finance in AJAX: Can we do this in Flex?

2006-03-21 Thread Darron J. Schall
Renaun Erickson wrote: When I right-click it comes up as Flash Player, hmmm... AJAX and Flex (FABridge?) probaby not, Google wouldn't be using Flex2, but probably a nice Flash app. It's a Flash 7 app that uses the Flash JavaScript Integration Kit [1] to communicate between Flash/JavaScript.

Re: [flexcoders] cloning was: in operator (F2B2)

2006-04-04 Thread Darron J. Schall
Gordon Smith wrote: There is no easy way in Flex 2 to clone an arbitrary type of. Can you explain why you need to? Peter posted a neat approach here: http://www.peterjoel.com/blog/index.php?archive=2006_02_01_archive.xml#114064012876401732 package com.peterjoel.util { import

Re: [flexcoders] cloning was: in operator (F2B2)

2006-04-04 Thread Darron J. Schall
jeremy lu wrote: last time when I making a copy of arrayCollection of VO's, turned out the copied arrayCollection won't keep VO's type, all the vos are turned into plain Object. Most likely because the VO's haven't been registered. Do you have [RemoteClass(alias=package.name.ClassName)]

Re: [flexcoders] Re: Question to Adobe about Flex Framework 1.5 Code Quality

2006-04-06 Thread Darron J. Schall
maxym.hryniv wrote: Looking at Flex 2 framework event model, and Flex 2 Framework UML (Flex 2 api visual reference by Rocket Boots) I don't believe that Flex 2 is better. Can you be more specific? The event model is fundamentally part of the player is an based on the DOM Level 3 Events

Re: [flexcoders] Cairngorm and TitleWindow issue

2006-04-13 Thread Darron J. Schall
Suzy Lawson wrote: HOWEVER...it does work if I do this. var event : MyEvent = new MyEvent ( eventVO ); Application.application.dispatchEvent( event ); It seems like the core Application can't pick up events dispatched from a TitleWindow. Is this a known issue or am i missing something??

Re: [flexcoders] Flex2B2 - PopupManager problem?

2006-04-18 Thread Darron J. Schall
bhaq1972 wrote: i'm getting 2 runtime errors when i do the following Take a look at Peter Ent's post regarding Component Tempaltes in Flex 2, it should help: http://weblogs.macromedia.com/pent/archives/2006/03/component_templ.cfm -d -- Flexcoders Mailing List FAQ:

Re: [flexcoders] Change Text Color in FlexBuilder 2 Editors

2006-07-12 Thread Darron J. Schall
You have to tweak an XML file to change the syntax coloring in FlexBuilder 2. It's undocumented / unsupported, but you can find more information about it here: http://www.morearty.com/blog/2006/05/22/undocumented-flex-builder-changing-the-syntax-coloring/ -d jwc_wensan wrote: Under

Re: [flexcoders] best general purpose way to keep textarea scrolled to bottom

2006-07-13 Thread Darron J. Schall
I've done this in the past through code like the following: textArea.addEventListener( FlexEvent.VALUE_COMMIT, autoScrollToBottom ); private function autoScrollToBottom( event:FlexEvent ):void { // Auto-scroll to the bottom anytime the text changes event.target.validateNow();

Re: [flexcoders] Adobe Resources

2006-07-17 Thread Darron J. Schall
When the Flex 2 product line was released, the livedocs pages that were on labs were migrated to the official livedocs site. Because there was such a long beta period, you'll find that a lot of web sites linked to the labs livedocs, and now those links are no longer valid. You can correct

Re: [flexcoders] Re: antiAliasType null exception with Text instances!

2006-07-28 Thread Darron J. Schall
I've ran into this error on two separate occasions, with two different fixes for it. 1) I was creating a component that used binding to bind a value to a mx:Text/'s "text" property. In order to fix the antiAliasType error there, I was able to break out the in-line binding into a binding

Re: [flexcoders] Remote object - Nullable type

2006-11-14 Thread Darron J. Schall
You can't match it exactly. Trying to use a boolean type means you can only have either true or false as the value. It's in a proposal somewhere to add nullable type support to ECMAScript, but in the meantime you can try using the * data type since it can assume any value (which includes the

Re: [flexcoders] Re: Flex Builder Linux

2006-11-16 Thread Darron J. Schall
Tom Chiverton wrote: I thought that FDS would run over any transport, not just RTMP. FDS can work via client polling, but for true real time sharing via server push, RTMP is the way to go. -d -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt

Re: [flexcoders] Disclosure triangles

2006-12-01 Thread Darron J. Schall
Yes, it's possible. You have to embed the symbol from the Assets.swf that comes with the Flex framework. I'm using CSS to do this in a similar scenario, and my code looks like this: ClassName { disclosure-open-icon: Embed( souce=Assets.swf, symbol=TreeDisclosureOpen );

Re: [flexcoders] Embed or Load PDF File

2006-12-01 Thread Darron J. Schall
If you would decide to take this approach, consider the recent articles I've published on my weblog about FlashPaper and Flex 2 integration: How to load FlashPaper Documents in Flex 2 - http://www.darronschall.com/weblog/archives/000249.cfm Batch Convert PDF files to FlashPaper 2 -

Re: [flexcoders] TextArea as Console: Controlling cursor position and intercepting arrow keys

2006-12-07 Thread Darron J. Schall
Since TextEvents are cancellable, you can also look at using event.preventDefault(); in the TEXT_INPUT event handler to stop the Flash Player from automatically moving the cursor when the up key is pressed. -d Daniel Freiman wrote: What you're looking for is setSelection() to set the cursor

Re: [flexcoders] Fade from one color to another

2006-12-09 Thread Darron J. Schall
Dorkie, this one's for you: http://www.darronschall.com/weblog/archives/000251.cfm I see from your sample color values that you found my old ActionScript 1 code to fade colors ;-) I went ahead and turned the logic into a new effect so you can easily apply color transitions in Flex 2.

Re: [flexcoders]Does the Accordion have an Icon Function?

2006-12-13 Thread Darron J. Schall
I think you've actually stumbled on a bug that I submitted a couple months ago -- where the icon set in the last accordion header gets applied to all previous headers, or something like that. I narrowed it down to a reproducible test case, and I believe Adobe was able to fix it (as part of

Re: [flexcoders] Where are all the 3rd party components

2007-01-09 Thread Darron J. Schall
Just a few resources: * Mike has some components for sale here: http://www.teotigraphix.com/flex2/ * You can find a lot of components on the Adobe Flex Exchange: http://www.adobe.com/cfusion/exchange/index.cfm?view=sn610 * Try searching MXNA - A lot of people post components on their

Re: [flexcoders] FLEX 2 FDS Hibernate Help

2007-01-09 Thread Darron J. Schall
Take a look at My First Hibernate Enabled Flex Application - http://blogs.adobe.com/mtg/2006/08/my_first_hibernate_enabled_fle.html Also, Victor Rubba has a lot of good Hibernate Flex information on his weblog: http://viconflex.blogspot.com There's also the Flex 2 Help -

Re: [flexcoders] StringBuilder Class?

2007-01-09 Thread Darron J. Schall
There used to be a StringBuilder class, but it was removed. The regular String class had its performance improved enough that adding an additional StringBuilder class didn't make sense. I would've liked to see it stick around.. but that's only because I had already written a chapter on it for

Re: [flexcoders] fyi : Open Source ActionScript 3 Libraries Moved to Google Code

2007-01-09 Thread Darron J. Schall
You shouldn't use those instructions anymore. The code in the Adobe Labs SVN is now out-of-date, and is not going to be updated anymore. All projects going forward will be using the Google Code SVN repositories. Each project on Google Code, then, has instructions for downloading the latest

Re: [flexcoders] error when including a swc ?

2007-01-18 Thread Darron J. Schall
To compile a Flex Library project, you have to edit the project properties and select the classes that you want to be included in the library. Upon doing so, the .swc file will be built. For some more instruction, you might want to check out a wiki article I made for the AS 3.0 libraries on

Re: [flexcoders] Flowcharting/Drawing Components

2007-01-24 Thread Darron J. Schall
Getting slightly off-topic here, but Gliffy iss actually written in OpenLaszlo [1]. Because of that, I would doubt that they're worknig on a Flex 2.0/AS3 version. -d [1] - http://www.gliffy.com/about.shtml Doug McCune wrote: That's not Flex though, I guess it's older Flash. They only

Re: [flexcoders] Re: setting conditional enabled with AS

2005-04-19 Thread Darron J. Schall
Matthew Shirey wrote: It seems that you want to know if there's a way to create the same simple live databinding in AS as you did in MXML. I too would like to know how to do this if its possible. In mxml you had the enabled property bound to the results of a conditional evaluation. i.e.

Re: [flexcoders] Re: setting conditional enabled with AS

2005-04-19 Thread Darron J. Schall
Joe Berkovitz wrote: I don't recommend using watch() as Darron suggested, because you can only have one user of watch() per watched object property. It's better to do what MXML bindings do and listen for change events. The problem is you can only get change events in certain situations.

Re: [flexcoders] String Trimming

2005-04-26 Thread Darron J. Schall
Ronald Kinion wrote: I've been looking for a way to trim strings in flex/actionscript (removing leading and trailing whitespace, a curious omission I think) and was not having much luck finding existing methods so I wrote my own based off how java does it: This is how I do it -- code

Re: [flexcoders] AS help. Multi deleting from a list.

2005-05-01 Thread Darron J. Schall
[EMAIL PROTECTED] wrote: Have you considered de-incrementing the loop? Take the last one first then the compression would not change the lesser values. I think this might be more computationally more efficient if the array was larger than 50. If you're really worried about the efficiency

Re: [flexcoders] Re: More Competition

2005-05-05 Thread Darron J. Schall
dunwerkin wrote: My reason to not look at SnappMX (or Lazlo for that matter) is that every XML based implementation for a UI seems to be creating its own very different dialect. Not very good if you want to repurpose UI later. If someone wrote a SWF generator that used either XUL (Mozilla's

Re: [flexcoders] Copyright Symbol in MXML using Eclipse and OxygenXML

2005-05-10 Thread Darron J. Schall
Manish Jethani wrote: 2. Save the file as utf-8. Set this up in your editor's preferences. In Eclipse you can find this under Window - Preferences. Then, expand Workbench, select Editors then find Text file encoding and change it to Other - UTF-8 That should do it.. -d Yahoo!

Re: [flexcoders] Using custom classes in RSL

2005-05-31 Thread Darron J. Schall
Erik Westra wrote: class fly.language.English { //button labels static public var okLabel:String = OK; snip //=== Language.sws === library url=Language.swf component name=fly.language.English uri=* / /library //=== Test.mxml === ?xml version=1.0 encoding=utf-8? mx:Application

[flexcoders] Embedding fonts in Shared Libraries

2005-06-15 Thread Darron J. Schall
Has anyone been able to embed a font in a shared library to use across multiple Flex-created .swf files? Specifically, I have this line of code in a .sws file: embed source=../fonts/Arial.ttf newSymbol=mainFont / And it always complains that Arial.ttf can't be found. I know the first think

Re: [flexcoders] Embedding fonts in Shared Libraries

2005-06-15 Thread Darron J. Schall
Roger Gonzalez wrote: So, I think that if you were to make a dummy component with a style sheet that embeds the font you want, and then put that component into your RSL, you should be in good shape. That's genious. I was able to get that approach working, and I'll outline exactly what I

Re: [flexcoders] Datagrid, Cellrenderer Combos

2005-06-15 Thread Darron J. Schall
Stacy Young wrote: Now, if a user were to delete a row then click add for a new rowthe combos appear but they default to the value of the previous record that was deleted! (as if the objects were not really destroyed) Adding a new row at any other time defaults normally. What does the

Re: [flexcoders] I don't understand this error message -

2005-06-15 Thread Darron J. Schall
Mike Anderson wrote: This code in my app (even know it works fine): public function popupWindow() { var pop = mx.managers.PopUpManager.createPopUp(this, Categories, false); } What's happening is that there is a popupWindow function already defined in mx.core.Application. You can

Re: [flexcoders] Flex external desktop application communication

2005-07-06 Thread Darron J. Schall
superabe wrote: The app in question is a desktop app that serves up map images. Central is not an option because the Flex appp needs to have its own branded UI. The local connection approach is probably most suited to this case. No one has mentioned XMLSocket yet. Embedding the

Re: [flexcoders] Flex external desktop application communication

2005-07-06 Thread Darron J. Schall
I know Flex excels at communicating with server-side data sources. Is there any way for a flex app to communicate with a desktop application installed on the same machine as where the app is being viewed (in a controlled kiosk environment for e.g.) Look into using the XMLSocket class.

Re: [flexcoders] Flash Player 8 Public Beta

2005-07-12 Thread Darron J. Schall
Sjors Pals wrote: I was wondering or there is some kind of test page where we can actually see the new features of the flashplayer (especially stuff like upload). The public (developer) betas have always been to ensure backwards compatibility. The biggest help you can give MM right now is

Re: [flexcoders] Filesize generated swf's

2005-07-12 Thread Darron J. Schall
Joost Nuijten wrote: We created an empty mxml-template (containing only a mx:application-tag) and the filesize was still 263Kb. Does anybody have an idea how to reduce the filesize? If you're site is comprised of multiple .swf files, consider using Shared Libraries. There's an article

Re: [flexcoders] clone objects

2005-07-18 Thread Darron J. Schall
m00n_de wrote: how is it possible to clone an object, rather than creating a reference to an object ? Use mx.utils.ObjectCopy - http://livedocs.macromedia.com/flex/15/asdocs_en/mx/utils/ObjectCopy.html It's for internal use only but usage is as such: var instance2:SomeClass = SomeClass(

Re: [flexcoders] Re: clone objects

2005-07-18 Thread Darron J. Schall
Clint Modien wrote: i remember reading a post a few weeks ago that said something about this is broken for v 1.5 http://www.mail-archive.com/flexcoders@yahoogroups.com/msg09275.html I fixed ObjectCopy earlier this year here: http://www.darronschall.com/weblog/archives/000148.cfm I'm

Re: [FlexCoders] Validator width actionscript and without model tag

2005-07-18 Thread Darron J. Schall
Eric Guesdon wrote: I do this code and i retreived true or false from validate method but i would like to retreive default validators behaviors (TextInput with red border and error tooltip attach to the error field) That's kind of funny - I actually just ran into this exact same thing today.

[flexcoders] Extended ComboBox can't use mx:dataProvider /

2005-07-19 Thread Darron J. Schall
I've run into an interesting situation. I needed to extend the combobox, and in doing so, I'm not longer able to nest the mx:dataProvider tag. For example, the following code doesn't work. controls:MyCustomComboBox mx:dataProvider mx:Array mx:StringItem 1/mx:String

Re: [flexcoders] Flex License(s) Performance

2005-07-19 Thread Darron J. Schall
jwc_wensan wrote: With the above scenario how many simultaneous users can adequately access the server before I would need a second server? Or is it better to ask how many per hour? See Ted's entry here about scaling Flex: http://www.powersdk.com/ted/2005/05/scaling-flex.php I completely

Re: [flexcoders] How/where do I get the server name

2005-07-29 Thread Darron J. Schall
pb_test wrote: Hi, I need to get the server name of where the SWF is served. For example: if the flex client is servered from http://www.macromedia.com/flex/, I need to get http://www.macromedia.com/ This might help: http://www.prismix.com/blog/archives/2005/05/how_do_i_get_th.cfm -d

Re: [flexcoders] Hope all is watching the Avalon space..

2005-08-01 Thread Darron J. Schall
Rick Bullotta wrote: I also wouldn't be at all surprised to see a Flex client based on the Java plug-in someday. When looking at the Flex class models, it has a lot of similarities to Java rich client stuff - so who knows - maybe the Flash viewer someday becomes classes deployed on a JVM!

Re: [flexcoders] Input formatting

2005-08-02 Thread Darron J. Schall
James wrote: Hello All Anybody figure out to to-do input formatting: Exam: I want to save a phone number as 9991234567 But I want it to appear on input: (999) 123-4567 Any help would be appreciated http://www.darronschall.com/downloads/fti.swf This component will be

Re: [flexcoders] Big flex web

2007-06-15 Thread Darron J. Schall
Tom Chiverton wrote: Only if most people won't use that particular panel. There's no point shaving a bit off the initial load time if most people have to wait for a Module to load at a later time. I think that's an unfair assumption. Choosing to use modules in an architecture is more

Re: [flexcoders] Re: What comes after FlexEvent.INITIALIZE and FlexEvent.CREATION_COMPLETE?

2006-09-06 Thread Darron J. Schall
It's not actually the events that are giving you a problem, but rather it's the tricky nature of dealing with auto-sizing text measurement. Add this statement to your measure function: trace( textHeight = + textField.textHeight ); trace( height = + textField.height ); When the components

Re: [flexcoders] Re: Compiler warning about unused CSS type selector

2006-09-19 Thread Darron J. Schall
Have you tried the -compiler.keep-all-type-selectors flag or keep-all-type-selectorstrue/keep-all-type-selectors tag? It might add a tiny bit to the file size (since unused types won't be pruned), but it might eliminate the warnings. There doesn't seem to be a specific compiler option to

Re: [flexcoders] Re: Flex and Screen / application Sharing

2006-09-25 Thread Darron J. Schall
Have you seen my FVNC project yet? http://osflash.org/fvnc It's a VNC client for ActionScript 3 that enables screen-sharing in Flex applications. The basic idea behind a presentation like you describe would be: * Host installs a VNC server, such as TightVNC * Host configures VNC server to

Re: [flexcoders] Multiple Inheritance

2006-10-10 Thread Darron J. Schall
Multiple inheritance is actually possible with AS3, despite popular belief that it's not supported. It's not "true" multiple inheritance int he C++ sense of the word, and you can't list more than one class as a super class via extends.. but theres a way to get the job done in AS3. I have a

Re: [flexcoders] Multiple Inheritance

2006-10-10 Thread Darron J. Schall
As promised, here's how to do multiple inheritance in ActionScript 3. http://www.darronschall.com/weblog/archives/000245.cfm -d Darron J. Schall wrote: Multiple inheritance is actually possible with AS3, despite popular belief that it's not supported. It's not "true"

Re: [flexcoders] JPEGEncoder.as

2006-10-11 Thread Darron J. Schall
They're in the Adoeb Labs SVN: http://labs.adobe.com/svn/flashplatform/?/projects/corelib/trunk/src/actionscript3/com/adobe/images/ -d Rich Tretola wrote: Anyone have a new copy of JPEGEncoder.as? Rich __._,_.___ -- Flexcoders Mailing List FAQ:

Re: [flexcoders] Alternative image file formats

2006-10-12 Thread Darron J. Schall
With the ByteArray capability of Flash Player 9, "anything" is possible. Jim Cheng has an .xls parser that loads an .xls file, scans it, and then displays the results in a data grid. See here: http://www.psalterego.com/2006/05/17/parsing-excel-files-with-actionscript-30/ If you can find the

Re: [flexcoders] Re: Now Shippi ng: ActionScript 3.0 Cookbook – Solutio ns for Flash Platform and F

2006-10-13 Thread Darron J. Schall
No, it's legit.  I just received my (author) copy yesterday.  The book is going be available at MAX, and I'm not sure why there'd be a delay with Amazon... but it's definitely available at this point. -d ben.clinkinbeard wrote: Same here, except mine says it will ship Dec 12. I'm

Re: [flexcoders] Bug in Date() class math

2006-10-17 Thread Darron J. Schall
While I'm not sure on the status of this as a bug, I would suggest anyway to use the setDate() and getDate() methods instead. On a date object, you can call setDate() with an arbitrary value and have the date automatically adjust to stay consistent. That is, consider this example: var

Re: [flexcoders] Re: Socket woes - something simple I'm sure

2006-10-19 Thread Darron J. Schall
To write a null byte to a Socket, just use the writeByte method: this.writeByte( 0x00 ); this.flush(); -d e_baggg wrote: ## Try adding a null byte before flushing the flash.net.Socket. Ted- Thanks for your response but I am still unable to get it working. Partly b/c I can't find

Re: [flexcoders] Error showing up in Flex but not CF

2006-10-19 Thread Darron J. Schall
I know this may sound silly (like, my computer won't turn on... is it plugged in?), but haev you checked to make sure the paramters to the remote object method call are being passed correctly? When you run the CFC method outside of flex, you use named parameters like:

Re: [flexcoders] Re: Flex and Crystal reports

2006-10-19 Thread Darron J. Schall
If you're looking to integrate Crystal Reporting-like functionality with Flex, I highly recommend taking a look at ColdFusion Reporting: http://www.adobe.com/products/coldfusion/reporting/ ColdFusion Reporting is done via the ColdFusion Report Builder tool. You can design a report visually,

Re: [flexcoders] Typecast a generic Object into a VO

2006-10-23 Thread Darron J. Schall
This Article in the CFDJ should be of help to you: http://it.sys-con.com/read/264726_1.htm http://it.sys-con.com/read/264726_2.htm As an aside, I'll be checking in some code to the Adobe Labs SVN this week to handle this in a slightly more generic fashion. -d mdoberenz wrote: I'm pretty

[flexcoders] Problem sending AMF data to ColdFusion over SSL

2006-10-24 Thread Darron J. Schall
Hi, I'm running into an interesting situation that leaves me scratching my head. I've tried a few things that I could think of, but can't seem to come up with a solution, and there doesn't seem to be any help in the archives or on google. Here's the situation: I'm sending [RemoteClass]'d

Re: [flexcoders] Problem sending AMF data to ColdFusion over SSL

2006-10-24 Thread Darron J. Schall
I love it when the answer is something simple. My Secure ColdFusion AMF channel definition looks like this (added instantiate-types): channel-definition id=cf-secure-amf class=mx.messaging.channels.SecureAMFChannel endpoint

Re: [flexcoders] FlashPaper in SWFLoader

2006-10-25 Thread Darron J. Schall
If you're using Flex 1.5, use the FlashPaperLoader class from Matt Chotin: http://www.cflex.net/showfiledetails.cfm?ChannelID=1Object=FileobjectID=117 If you're using Flex 2, it's a lot trickier. Normally, you resize the FlashPaper.swf by using the FlashPaper API [1], and just calling the

Re: [flexcoders] FlashPaper in SWFLoader

2006-10-25 Thread Darron J. Schall
The solution I used was to just create a unique id when you want to load a FlashPaper.swf, and pass that value to the loader. The AVM1/AVM2 communication channels then use that specific id so that you can load multiple isntances of them without interfering with each other. As and aside, we're

Re: [flexcoders] Convert Object to a Value Object

2006-10-29 Thread Darron J. Schall
Originally it was written so that JSON behaved more like RemoteObject (returning class instances from the server instead of just plain objects), but the method is generic enough to be useful in a lot of situations. Hope that helps... -d mvbaffa wrote: - Type Coercion failed:

Re: [flexcoders] Convert Object to a Value Object

2006-10-29 Thread Darron J. Schall
behaved more like RemoteObject (returning class instances from the server instead of just plain objects), but the method is generic enough to be useful in a lot of situations. Hope that helps... -d Darron J. Schall wrote: Originally it was written so that JSON behaved more like RemoteObject

Re: [flexcoders] Beauty ( Flex ) and the Beast ( FlashPlayer/AS2)

2005-03-04 Thread Darron J. Schall
Vali Tomba wrote: Declaration like this : var r:Number = new Number(250); do nothing that confuse a Java, C# programerand let's face it many people that use Flex at this moment comes from areas like .NET/J2EE. Again, maybe its just my lack of AS2 knowledge... but I take as a joke when

Re: [flexcoders] Multidimensional Array in Actionscript

2005-03-06 Thread Darron J. Schall
javawebgrrl wrote: Hi, Is there an object in ActionScript which will behave something like a java.util.HashMap ? The generic Object in Flash acts just like a map. var map:Object = new Object(); map[strKey] = theObject; .. later... theObject = map[strKey]; -d

Re: [flexcoders] Re: Experienced programmer new to java app servers,quick question

2005-02-28 Thread Darron J. Schall
Cushing, Matthew wrote: I was curious if you use Eclipse for your Flex coding as well, or do you use Flex Builder? I am using a windows box at work, but this is mostly stuff I am doing at home, where I only have an apple Powerbook. The thing I like the best is code complete, is there a way to

Re: [flexcoders] Laszlo Systems, Inc.

2005-02-02 Thread Darron J. Schall
Not replacement but rather alternative: http://www.openlaszlo.org/ Here is the IDE for it as well (Eclipse plug-in): http://alphaworks.ibm.com/tech/ide4laszlo With support from IBM, who knows how far laszlo will go, and if it will really challenge MM in the future. -d Michel Jansen wrote: Is

Re: [flexcoders] Silly question

2005-03-25 Thread Darron J. Schall
Robert Stuttaford wrote: var x = new [ className ](); But obviously the compiler doesn't like that. Classes are stored in the _global scope of the movie, so you can do that by using this code: var x = new _global[ className ](); ... where className is the fully-qualified name (i.e.

Re: [flexcoders] Silly question

2005-03-25 Thread Darron J. Schall
Robert Stuttaford wrote: BTW, are there any concrete multiple-swf RSL examples out there? Currently I'm writing intrinsics for each class that gets used in any other swf, and it seems like I might be going the long way around. Instead of using intrinsics for each class, make use of the

Re: [flexcoders] Flex 1.5 price

2005-03-31 Thread Darron J. Schall
Jeff Steiner wrote: Lazslo, while the samples look great, is still based upon Flash player 5 (Beta 3 of Lazslo is player 6). It is one of those things where you have to wonder - how does Lazslo know what to extend of the Flash Player. The people that are contributing to it make guesses and try

Re: [flexcoders] Experiences with XMLSocket?

2005-04-04 Thread Darron J. Schall
Abdul Qabiz wrote: And what about, Colin Moock :), but Jobe is more vocal in community lists... While we're at it, there's also Oregano-Server, which is an open source alternative (both electroserver and moock's unity aren't free). http://www.oregano-server.org/ Be warned though,

Re: [flexcoders] Great Abdul (c++/flex) source c++ -- flex

2005-04-14 Thread Darron J. Schall
Abdul Qabiz wrote: I have not yet made it, in my case it's going to be straight forward. A flash movie embedded in C# app would communicate with Flex app via LocalConnection... Yeah, you can embed Flash in C# and then have the Flash movies talk to each other via LC, however in the example I

Re: [flexcoders] Socket (not XMLSocket) Issue

2005-11-30 Thread Darron J. Schall
Ralf Rottmann wrote: In another area of the application I want to call it like this: response = SendCommand(login name); Alert.show(response), Welcome to the world of asynchronous socket programming. In short, you can't do what you want to do in the manner in which you have it coded

Re: [flexcoders] Flex Builder 1.5 Expiry Woes

2005-11-30 Thread Darron J. Schall
Johannes Nel wrote: we don't use flex builder at workbut rather eclipse and Oxygen xml plugin. get oxegyn to point to the mxml schema, and with a wee bit more jigging (i can mail you the settings file we import) you haver code hinting for your mxml in eclipse. granted there is no design

Re: [flexcoders] Limiting text input (ComboBox) to numbers

2005-12-08 Thread Darron J. Schall
Ralf Rottmann wrote: Hi there, How can I limit the possible characters which a user can enter into a TextInput or ComboBox control to lets say just numbers etc. R Set the "restrict" property to "0-9" mx:TextInput id="textInput" restrict="0-9" / mx:ComboBox

Re: [flexcoders] Re: Cairngorm Question

2006-01-23 Thread Darron J. Schall
Dave Wolf wrote: We are firm believers of precompiling our applications when in production rather then using the JIT MXML compiler. We are big proponents of ANT and automate the builds of not only the MXML but of the entire production server. With one command line we build the entire site

Re: [flexcoders] Re: Cairngorm Question

2006-01-23 Thread Darron J. Schall
Dave Wolf wrote: I was just shown your weblog today about this and they are awesome. The crazy part is they look a ton like ours. Guess you have a couple of smart people and they reach the same conclusions! Really great posting Darron. We have tons of macros for everything from compiling

Re: [flexcoders] Radio Button Cell Renderer for Data Grids

2006-01-24 Thread Darron J. Schall
maxgsilverscape wrote: I have created a custom cell renderer for a datagrid that displays four radio buttons and creates a radiobuttongroup for them. The problem is that the end result only allows one radio button to be selected for the entire grid as opposed to one for each cell. Has

  1   2   >