Re: [flexcoders] optimize swf generated by mxmlc module

2007-09-06 Thread Steve Hagenlock
Flex is probably not the right tool for that job.  You should be looking 
at something like Ming (php module) or the MTASC open source project for 
compiling Flash.  I'm sure there are several other options if you look 
around.  When you use the Flex compilers, you get the Flex framework 
code as the price of entry.
-Steve

Ary wrote:
 Hi,

 i use mxmlc module (apache) to generate swf, its a
 very simple swf only write a swf that has function to
 load images externally, but the file size is 133 KB ,
 if i make the same procedure  with flash and publish
 it the file its only 20-30 KB.

 can i make the swf that rendered by mxmlc more simpler
 and lighter? and is it possible to embed the image
 inside the swf rather than link it to external file?


   


Re: [flexcoders] Re: optimize swf generated by mxmlc module

2007-09-06 Thread Steve Hagenlock
Daniel, you are giving this guy advice based on software that hasn't 
been released to production yet - flex framework caching is a Flex 3 
technology.  Further, a simple image loader doesn't need the flex 
framework, regardless of whether the bulk of it will (eventually) be 
cached on the end users machine.  There is nothing to be gained by using 
Flex for a dynamically generated image loader except a Flash 9 minimum 
player requirement + the flex framework requirement.
Cheers,
Steve

danielvlopes wrote:
 No, flex is right tool for tha job. Look in internet for framework
 caching and generate report for modularity compiling.

 Watch this video, this will reduce your swf file extremely.
 http://labs.adobe.com/technologies/flex/videos/flex3rsls/

 The size of swf is because Framework is embeded in swf. I had project,
 with giant codes and comps with 70kb.

 --- In flexcoders@yahoogroups.com, Steve Hagenlock [EMAIL PROTECTED] wrote:
   
 Flex is probably not the right tool for that job.  You should be
 
 looking 
   
 at something like Ming (php module) or the MTASC open source project
 
 for 
   
 compiling Flash.  I'm sure there are several other options if you look 
 around.  When you use the Flex compilers, you get the Flex framework 
 code as the price of entry.
 -Steve

 Ary wrote:
 
 Hi,

 i use mxmlc module (apache) to generate swf, its a
 very simple swf only write a swf that has function to
 load images externally, but the file size is 133 KB ,
 if i make the same procedure  with flash and publish
 it the file its only 20-30 KB.

 can i make the swf that rendered by mxmlc more simpler
 and lighter? and is it possible to embed the image
 inside the swf rather than link it to external file?



   



[flexcoders] Digest or Basic+HTTPS auth for HTTPService WITHOUT LCDS/FDS

2007-08-29 Thread Steve Hagenlock
Hello,

I'm trying to setup a scenario where calls to an HTTPService can be 
authenticated using Digest or Basic authentication where the backend is 
a JEE container managed security.  After much research on the web and on 
this list I've decided to simply ask the question - is robust security 
available within Flex without using the Live Cycle Data Server? 

Peter Farland in this thread - (RE: [flexcoders] WebService Basic 
Authentication over HTTPS?) states:
Despite what the ASDoc say, WebService.setCredentials() is only for 
authenticating with LCDS (nee FDS) itself when making use of a 
destination registered with the Proxy Service. 
WebService.setRemoteCredentials() is only for LCDS too, it's what is 
used by the Proxy Service to handle any HTTP Basic Authentication 
challenges while contacting the 3rd party endpoint.

This statement leads me to conclude that security/authentication aspects 
of the Flex HTTPService has been designed to require  the Adobe LCDS 
server and Flex API options haven't been provided which allow for 
flexible and robust security where you

Our goal is to be able to make use of the standard JEE security model 
without the LCDS dependency.

Regards,
Steve


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

2007-08-28 Thread Steve Hagenlock
I've been following the Flex/Subversion threads with interest.  I'd like 
to propose a method which keeps all project files out of subversion 
repositories without the need for manually selecting or deselecting 
files for inclusion.

Consider the scenario where you have a Subversion checked out source path:
c:\repositories\projecta\source\...all files/folders which are source 
code *.as, *.mxml

Then you have a workspace path:
c:\Flex Projects\projecta\ +bin +html-template + other stuff that is not 
Source Code

To create a new project in this structure:
1) Create a new directory under the Subversion Repository path:
c:\repositories\projectb\source\

2) Create a new Flex project in the workspace as normal, then:
a) Project-properties-Flex Build Path- Add Folder to Source Path
This would be: c:\repositories\projectb\source\
b) Close the Properties pane and reopen the pane after Flex finishes 
reconfiguring the project
c) Project-properties-Flex Build Path- set Main source folder to 
your newly imported folder and close the pane
d) Move your projectb.mxml file into the newly linked source path 
and ensure that it is the default application file via
right-click context menu  Set as Default Application

At this point, the project is set up.  All source files for the project 
should be located in the linked path and beyond.  There is a clear 
separation between project files, build files and source files.  
Subversion repository paths contain now project or build files and will 
not have these files magically appear.
   
We are converting from a single person flex team to a subversion-based 
multi-person flex team and exploring the various ways of doing team flex 
work with the least amount of pain.  I'm curious if anyone has tried 
this approach, had pitfalls with it or other commentary.  I can see 
where linked projects might get hairy as well as modules possibly.  
Someone mentioned earlier that when devs add new classes, the 
definitions or paths are stored in some project file - haven't seen that 
yet.  Most of all, realize this organizational structure has not been 
tested beyond setup and a successful compile.  By no means is it 
hardened and debugged from my point of view.

Thanks,
Steve


Re: [flexcoders] Whatever happened to Peter Ent's scrolling text ticker?

2007-03-24 Thread Steve Hagenlock
http://weblogs.macromedia.com/pent/archives/flex/ticker/tickerText.zip

simonjpalmer wrote:
 Anyone know what became of it?  The markme.com code link on his blog
 leads nowhere.  Anyone have the code they could share with me?

 http://weblogs.macromedia.com/pent/archives/2004/12/ticker.cfm

 Thanks

 Simon


   
 

 No virus found in this incoming message.
 Checked by AVG Free Edition.
 Version: 7.5.446 / Virus Database: 268.18.17/731 - Release Date: 3/23/2007 
 3:27 PM
   



Re: [flexcoders] icons

2007-03-24 Thread Steve Hagenlock
http://www.iconbase.com/

There are many others... you can purchase icon libraries from places 
like this.

-Steve

Kevin wrote:
 Where do people go to get small icons for use in Flex apps?  I need  
 the little things like arrows  check marks.  For example I would  
 like to display a check mark when an address has been validated.   
 Is there a library of these little symbols somewhere? OR does  
 everyone just design their own.

 Thanks, Kevin



   
 

 No virus found in this incoming message.
 Checked by AVG Free Edition.
 Version: 7.5.446 / Virus Database: 268.18.17/731 - Release Date: 3/23/2007 
 3:27 PM
   



Re: [flexcoders] Code behind- do you use it?

2007-01-16 Thread Steve Hagenlock
I've been thinking about asking the same question, all of the samples 
out there seem to embed the actionscript in MXML, however the code 
behind scenario seems more like a best practice approach.  Personally, I 
use code behind everywhere except for procedural initialization code in 
my main.mxml. 
-Steve

ben.clinkinbeard wrote:
 I am undecided as to whether or not I want to use the code behind
 method for my MXML files and figured I would see what others are
 doing. I am currently just using Script blocks at the top of my files
 to do event handling, initialization, etc but some of them are getting
 pretty big. 

 So what are others doing? No AS in your MXML files, no code behind, a
 mixture of the two?

 Thanks,
 Ben


[flexcoders] strategy for Composite component as itemRenderer in DataGrid or List

2006-12-20 Thread Steve Hagenlock
Hello,

I'm trying to create a strategy for creating a summary/detail
editing interface using either mx.List or mx.DataGrid (with one column).

I've created a composite component, which uses two States, a summary 
(with a text label and a checkbox) and a detail (based on summary with 
some other controls).

That dataProvider I plan on using is an ArrayCollection which is a 
collection of Object instances of various classes, where each class 
implements a toString() function which returns an XML formatted String 
(of the String class).  I point that last bit out because the toString() 
function is getting called and the results are being returned, rather 
than the instance reference itself in some of the test cases I've done.
 
Incidentally, I can use this dataProvider model with a basic DataGrid 
without issues.

I've chosen to attempt to do this with a DataGrid or List, as opposed to 
a VBox with a repeater because of the efficiences of the pattern the 
DataGrid/List are based on as well as gaining the drag/drop features. 

I'm fine with doing the binding between the properties in the objects in 
the ArrayCollection to the controls in the composite component, I'm 
having difficulty gaining a reference to the ArrayCollection objects as 
objects.

Briefly, I've explored:
1)
implements=mx.controls.listClasses.IDropInListItemRenderer on the 
composite component coupled with 'get listData()' and 'set listData()' 
functions.

2) Using a custom formatter function which returns a reference to the 
object (applied in the datagrid column) or list.

And various tweaks on the above concepts...

If anyone has done this sort of thing, could you point me in the right 
direction? It would be much appreciated.

-Steve


Re: [flexcoders] Flex project with apache server setup?

2006-12-17 Thread Steve Hagenlock
I'm not so sure this is true.  If you are using the Flex Data Services 
then yes, you need a JE container, however if you are not, ANY webserver 
can serve up a Flex project.  I've never used a JE container with Flex, 
just been using Apache.
-Steve

Dimitrios Gianninas wrote:
 You cant do it with Apache's Web Server. You need an application server like 
 Tomcat, WebSphere, JRun or Weblogic, etc...
  
 Actually what you can do is download and install FDS Express and see how they 
 do it. 
  
 Dimitrios Gianninas
 RIA Developer
 Optimal Payments Inc.
  

 

 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Tolis 
 Christomanos
 Sent: Saturday, December 16, 2006 8:09 AM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Flex project with apache server setup?



 How can i make a new flex project with apache server? Can you guide me 
 through the new project setup wizard?


  

   



Re: [flexcoders] Apollo

2006-12-14 Thread Steve Hagenlock
Until Apollo is real and proves to have the features you are requesting 
(c++ extensibility??), the profile of your project says Director all 
over it.  At least if you are trying to keep within the Adobe product 
line for software development.  A Director shell, that is, which uses an 
embedded web browser (WebXTRA or one of the others for cross-plat work), 
adhoc peer/peer connections (MUS XTRA in client/server modes) and access 
to the file system for various things (FileIO XTRA, FileXTRA4 - 
read/write/query for the file system, BuddyAPI XTRA for tight 
integration with OS).  C++ Extensibility through XTRA architecture for 
cross-plat work or ActiveX on Windows.  Don't know about the screen 
reader though.
It will be interesting indeed if Apollo steps into the game at that 
level...  Anyway, something to think about, good luck!
-Steve

Essl, Markus wrote:
 Hello!
  
 I wanted to ask if there is a place for a wish list for Apollo. It is
 christmas anyway!
  
 First of all, our company creates Computer Based Training Modules -
 which are available online (for use in an LMS) but are also available
 offline on CD. These CBTs are made with Authorware, Flash or DHTML, or a
 combination thereof. 
  
 Currently we need an own browser (based on Mozillla) to make these
 things launchable from CD (we need access to the file system because of
 tracking user scores between sessions and to integrate into the desktop,
 etc.; also classroom teaching (ad-hoc peer-to-peer without the need to
 setup) is a thing we will address sooner or later). 
  
 When I heard about Apollo I was excited (and I still am). It would mean
 that we can offer part of our CBTs for download (because the current
 system takes more than 20mb just for framework, plus 300kb actual
 content).
  
 The number #1 wish for me is this: create flash applications that run
 from CD (like a Flash Projector) WITHOUT the need to install anything
 (like Flash Projector, but with more rights and more access to the
 system). 
  
 It may sound stupid for the rest of us, but customers demand that they
 do not want to install anything - they want to insert the CD, and it
 should run, without EULAs, installing and without accessing the internet
 or whatever, just run.
  
 The number #2 wish for me is: be able to extend it with C++ code - even
 if it means to loose platform compatibility. 
  
 And Number #3: That it is accessible to screen readers (i have had hard
 times with the flash projector - i just could not get the screen reader
 to recognize the settings).
  
  
 I am sorry that this might be the wrong group for that. If there is any
 chance that there is an official wish list please tell me.
  
 Markus

   



Re: [flexcoders] removeNamespace() and the default namespace in XML

2006-12-05 Thread Steve Hagenlock
Hi Peter,

Peter wrote:
 I've found that removeNamespace() doesn't work if there are existing 
attributes or elements using that namespace

I suppose that every element in the file uses the namespace, since it is 
the default namespace, ie:
xmlns=http://path.to.com/someplace;

Here's how I'm removing the namespace, rather,  trying to:
where myXML:XML is a parsed XML document

for (var i:uint = 0; i  
myXML.namespaceDeclarations().length; i++) {
var ns:Namespace = myXML.namespaceDeclarations()[i];
var prefix:String = ns.prefix;
myXML.removeNamespace(ns);
  }

As an example, I have two namespaces at the root of my document 
declared.  One is a custom namespace with a prefix (and no elements use 
it) - this one is removed.  The other is the default namespace, without 
a prefix, this one sticks around.

-Steve



Peter Farland wrote:
 I've found that removeNamespace() doesn't work if there are existing
 attributes or elements using that namespace... have you tried first
 deleting any of these and then tried to remove the namespace? Also, when
 you're calling removeNamespace, how are you constructing the Namespace
 instance to pass in to the function?

 

 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
 Behalf Of shagenlo
 Sent: Monday, December 04, 2006 9:12 PM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] removeNamespace() and the default namespace in XML



 Hello,

 I realize this topic was covered a bit in a thread titled Namespace
 hell, however I didn't see a resolution to a lingering question. Is
 there any way to use the removeNamespace() method of the XML class to
 remove the default namespace (the namespace without a prefix)?

 I would like to do this, because i have an object heirarchy which
 represents an unstructured XML document (not a recordset). In
 serializing the object structure, the new XML can get littered with
 namespace declares, it would be easier to simply remove the original
 default namespace and be done with it. Name collisions are not a
 concern for me, but the fact that removeNamespace() doesn't work with
 the default namespace is. Is there an answer other than RegEx on the
 xml string?

 Cheers,
 Steve