Re: [flexcoders] In-house Online Training Solution

2013-10-02 Thread Johannes Nel
Red 5 can function as a drop replacement for Media Server, at the same time
it allows functions as an amf server (so you won't need blaze). I have not
used Red5 in a long time (note to self go see what the 1.0 release they
just did looks like). Red5 uses Spring quite heavily (once again have not
looked at it in years) and a familiarity with spring would be quite handy.


On Tue, Oct 1, 2013 at 3:06 PM, Paulo Zanetti pzanetti...@ymail.com wrote:

 **


 Hi,

 I'm novice, looking again to Flex after some years developing other
 things, using other tools.

 Today my challenge is to develop a small, in-house online training for my
 company, only using open-source tools.

 Few year ago, I think the natural path to explore was searching for stuff
 like Adobe Flex, Blaze DS, Flash Media Server and so on.

 And now? Which tools should I learn in order to achive my goal?

 Can I use Apache Flex, BlazeDS, Red5 Media Server? Are there better tools?

 Do anyone have some experience developing this kind of application? Share
 thoughts?

 The only restriction: I need to use only open-source tools.

 Help me?


 Thanks in advance,

 -- Paulo Zanetti.

  



Re: [flexcoders] Re: Flex alternatives

2012-01-17 Thread Johannes Nel
I have said this before, look at google closure. you code in javascript,
annotate your types a compiler which gives you real errors, it has a
component library with a well defined livecycle. it is what gmail, docs,
goog+ is written in.
it is really really good.

On Tue, Jan 17, 2012 at 8:58 AM, John Fletcher fletch...@gmail.com wrote:

 **


 Out of interest... why does ZK marketing material never mention HTML5?
 They used to say direct RIA though I can't see that on the site anymore.
 I thought HTML5 was the new buzzword and that it would make sense to state
 it at least 3 times on every page?
 John
 2012/1/17 Ron G rgri...@sinclairoil.com

 **


 Hi Joaoak:

 You can make the coupling as tight or loose as you want. Each UI object
 can have a client side widget that is primarily the appearance, and a
 server side component that should contain the more complex logic. So, you
 can hide as much as want by placing it in the server side component as Java
 code, or keep in the client side widget as JS. In fact, since you indicate
 you are moving to HTML5, ZKoss actually might be a good choice, since it
 relies heavily on jQuery, which is considered a favorite HTML5 library. The
 difference is ZK lets you choose where client side logic is stored - as JS
 on the client or Java on the server. Another type of HTML5 approach won't
 offer that.

 Ron

  




-- 
j:pn
\\no comment


Re: [flexcoders] Challenge in Migrating to HTML5 from FLEX.

2012-01-14 Thread Johannes Nel
use jackson or jersey to convert your pojos to xml or json

On Fri, Jan 13, 2012 at 4:21 PM, Venkat M venkat_...@yahoo.com wrote:

 **


 Hi Team,
 ** **
 I have a question on migration from FLEX to HTML5. This question may be
 little out of the discussion in here; It would be great if someone help me
 out.
 ** **
 I have a java server side application. It had a class that exposed a
 bundle of routines that are needed for the flex front end to drive the
 backend. I connect this class using with blazeds and get access to all the
 routines within and able to work just fine. It worked like a charm and
 everyone was happy till date.
 ** **
 Now, I have a parallel requirement to build a HTML5 equivalent front end
 that does the same. I am asked to provide a estimate and possible
 frameworks that can be used with ease. Can someone put down any views if
 they have. Thanks.
 ** **
 Scenario.  Java back end remains the same – Build an interactive HTML5
 webpage just looking similar to my current flash version  - there is a
 submit_button() java routine which I have to call when a button on HTML
 page is clicked – Web server used is Jetty – Please Comment! 
 ** **
 Thanks!!

 *
 Cheers,
 Venkat.
 *



  




-- 
j:pn
\\no comment


Re: [flexcoders] Flex and AIR on Mobile Platforms

2011-11-13 Thread Johannes Nel
http://blogs.adobe.com/flex/2011/11/your-questions-about-flex.html

On Sun, Nov 13, 2011 at 12:58 AM, Guy Morton g...@alchemy.com.au wrote:

 **


 I think the only thing you should draw from this announcement is that
 Adobe has given up on trying to support  flash as a browser plugin on
 mobile devices. I think they have seen that a) performance is an issue they
 may struggle to fix while maintaining compatibility and b) there is market
 resistance to plugins on mobile platforms (see the Windows 8 Metro
 plugin-less IE as the final domino to fall there).

 Flash is now in decline as a plugin technology. It will continue for a
 good few years yet, but it is trending downwards. Because its life as a
 plugin is drawing to an end, Adobe is seeking to reshape Flash as an
 app-building tool. This makes perfect sense, and if they do it well, they
 could manage to make an army of Flash/flex developers into app developers,
 which is not all bad.

 Adobe has read the writing on the wall and is putting a lot of effort into
 re-shaping themselves as the tool provider for HTML5. Certainly there is a
 need for great tools in this area, so I hope they succeed in doing this.

 Also, you might note with interest their purchase of nitobi, who make
 PhoneGap.

 Guy


 On 13/11/2011, at 1:56 AM, e_val_soft wrote:



 I'd like to understand more about Adobe's latest annnouncement that they
 will focus on HTML5 on mobile platforms(rather than Flash).

 Obviously a kick in the head for flex/air developers targetting
 applications that need or want a mobile client because mobile platform
 manufacturers will drop Flash (in a flash) from their product plans.

 I've seen some mixed messages - Adobe's version which is just a change in
 focus while the industry reads it like a Flash obituary. Here are two
 bullets from Adobe's announcement:
 --from Adobe.com

 •Shifting resources to support even greater investment in HTML5, through
 tools like Adobe® Dreamweaver, Adobe Edge and PhoneGap, recently added
 through the acquisition of Nitobi

 •Focusing Flash resources on delivering the most advanced PC web
 experiences, including gaming and premium video, as well as mobile apps
 --
 I can almost see them sitting around the board room table debating whether
 to stick that , as well as mobile apps on the end of bullet 2 just to
 leave people like us (Flex developers I mean) confused. Pretend you're a
 Samsung or Motorola executive planning the next release of your latest
 mobile device. Do we spend $10 million and 40 developers integrating Flash?

 Since the vast majority of new, innovative applications involve
 incorporation or embracing of mobile clients, Flash's ubiquity, which
 is/was its greatest selling point, is gone. I mean when Jobs took a stand
 to ban Flash from iOS - that was a phaser blast to the holodeck, but
 this...this is a photon torpedo to the bridge.

 Am I reading this wrong, or should I be starting my new HTML5 career now?
 I mean once flash is gone from mobile, it is gone as a general web
 application framework so forget those desktop focused applications too,
 except some specialized graphics oriented apps.

 I think of what I'm developing now on Flex and it would be years away from
 possible with HTML5 but maybe I should be focusing on HTML5 plus one of the
 better JavaScript frameworks?

 I'm really looking for some opinions here about what flex developers think
 of the near term future based on this announcement. It'd be great to hear
 some Adobe employee perspectives (probably on gag order) but anyone with
 some insight, please do tell. I'd love to be told I'm exaggerating the
 consequence of the announcement


  




-- 
j:pn
\\no comment


[flexcoders] air 2.7 3

2011-10-30 Thread Johannes Nel
Has anybody else had issues with this upgrade. we have had massive
problems, tracks of bugs that got created around this (our app is
partially html and partially flex)

-- 
j:pn
\\no comment


Re: [flexcoders] adding uniqueIds to XML nodes dynamically

2011-10-18 Thread Johannes Nel
quick question. do you want to give each node an ID, even if it is the same
as another node
I don't know the e4x for selecting everynode, but the xpath is real easy //*
then have a singleton with a getID method, itterate through the collection
adding an attribute (i would advise namespacing that attribute as not to
override existing values) and bob's yer uncle.

On Tue, Oct 18, 2011 at 7:32 AM, henrianno henria...@yahoo.com wrote:

 **


 Hello,

 Please, i have an XML documents which is nested and contains repeating xml
 nodes inside. So, i want a way to identify the different nodes in the XML
 document. I came up with an idea of giving each node a unique ID
 dynamically. Does anyone know how to to this in Flex?

 Thanks

  




-- 
j:pn
\\no comment


Re: [flexcoders] Embedded SVG scales like bitmap.

2011-10-16 Thread Johannes Nel
export it as a swf

On Sun, Oct 16, 2011 at 6:46 PM, Dave Glasser dglas...@pobox.com wrote:

 **


 I drew a simple irregular polygon in Adobe Illustrator and saved it as an
 SVG. I embedded it in my Flex app as a SpriteAsset.  I then set it as the
 skin (all states) for a button. When I set the button size much larger than
 the original size of the SVG (approx 75X75 pixels), the sides of the polygon
 show severe stair-stepping. Is there anything I can do to make it behave
 like a scalable vector graphic in my application, rather than a lo-res
 embedded bitmap?

  




-- 
j:pn
\\no comment


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

2011-10-14 Thread Johannes Nel
i can really recommend this book
http://www.amazon.co.uk/Closure-Definitive-Guide-Michael-Bolin/dp/1449381871


On Fri, Oct 14, 2011 at 3:25 PM, valdhor valdhorli...@embarqmail.comwrote:

 **


 Thanks for that. You're right; I'd never heard of it before. All I ever
 knew about was SproutCore.


 --- In flexcoders@yahoogroups.com, Johannes Nel johannes.nel@... wrote:
 
  look, i don't want to get into a fight with people, but i can really say
  that the google closure toolset makes every other html/javascript
 approach
  look absolutely stoneage. a compiler, i mean a real compiler,
  it eliminates dead code, does your optimisations for you, you don't have
 to
  write javascript like you are the compiler. if you play nice and
 religiously
  annotate your code, you get static type checking (huge benefit!) proper
 OO,
  interfaces (granted no way to really do is-A)
 
  lots of components
  http://closure-library.googlecode.com/svn/trunk/closure/goog/demos/
 
  components actually have a livecycle (believe me, for most people playing
  around with javascript this is a radical concept).
  there is a framework (called relief), but i don't use it, it is not
 trying
  to solve the problems I am solving. I implemented my own binding system
 in a
  matter of hours, you can even add your own passes to the compiler (at any
  point, so pre abstract syntax tree (AST) or use the AST to do your own
  transforms)
 
  I tend to code in netbeans since the code completion is decent and I can
  also say the chrome debugger and profiler is extremely sweet. other
 people
  use different tools.
 
  if you like flex I think you will like closure, it is like the step up
 from
  flash to flex which I took in 2004 and I went like whaaa this is
  awesome.
  check this video http://www.youtube.com/watch?v=M3uWx-fhjUc
 
  now the bad, people don't seem to know about it, so it does not get all
 the
  loving it deserves, the lists however are extremely responsive (there are
  lists for all the different parts of the toolsets, but using all of them
  together makes for insane results)
  the compiler is not very fast, but using stuff like plovr (build tool)
  people make life pretty easy.
 
  i am just going to flame here as a finish, but jquery is for building mom
  and pop crap, if you plan to do any kind of real development in
 javascript
  and you like your wrists, closure is really the only way to go IMO.
 
  On Thu, Oct 13, 2011 at 9:52 PM, jamesfin james.alan.finnigan@
 ...wrote:
 
   **

  
  
   As a devoted flex developer of over five years now, I'm getting the
 nudge
   by management to get as comfortable with HTML5/Javascript as I
 currently am
   with MXML/Actionscript. Not my decision.
  
   That said, I figured this forum would be better suited to answer a few
   questions about html5/javascript rather than a endure throught a few
   flash-hater filled javascript forums. ;)
  
   Knowing the following about common flex development practices, what are
 the
   analogs with flex when using javascript, if any at all?
  
   FlashBuilder = ? (i.e. dreamweaver?)
   MXML = HTML
   Actionscript = Javascript
   RobotLegs = ?
   AS3Signals = ?
   Others, feel free to contribute...
  
   Also,
   Using Robotlegs affords many comforts towards MVC development
 practices. In
   that context, can other analogs be made in HTML5/Javascript where
 separate
   files are used for each of these areas? Links and/or examples would be
   great.
  
   View = ?
   Mediator = ?
   Service = ?
   Model = ?
   Controller = ?
   Dependency Injection = ?
   Signals = ?
  
   It would appear as if SproutCore shares some of the attributes we enjoy
 in
   Flex but would like to hear what Javascripts frameworks are most
 friendly to
   Flex Developers.
  
   Thanks in advance!
  
  
  
 
 
 
  --
  j:pn
  \\no comment
 

  




-- 
j:pn
\\no comment


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

2011-10-14 Thread Johannes Nel
I have read that google will provide a partial converter from closure code
to dart. But in reality, the type system which is in Dart is already there
with the closure compiler if you bother to annotate your code - this is a
crucial concept and I annotate religiously (97.4% coverage on our current
code base) and so many potential errors get picked up by the compiler.

On Fri, Oct 14, 2011 at 4:33 PM, Alex Harui aha...@adobe.com wrote:

 **


 But also read up on Google’s new DART language.



 On 10/14/11 8:06 AM, Johannes Nel johannes@gmail.com wrote:






 i can really recommend this book

 http://www.amazon.co.uk/Closure-Definitive-Guide-Michael-Bolin/dp/1449381871


 On Fri, Oct 14, 2011 at 3:25 PM, valdhor valdhorli...@embarqmail.com
 wrote:






 Thanks for that. You're right; I'd never heard of it before. All I ever
 knew about was SproutCore.



 --- In flexcoders@yahoogroups.com 
 mailto:flexcoders%40yahoogroups.comflexcoders%40yahoogroups.com
 , Johannes Nel johannes.nel@... wrote:
 
  look, i don't want to get into a fight with people, but i can really say
  that the google closure toolset makes every other html/javascript
 approach
  look absolutely stoneage. a compiler, i mean a real compiler,
  it eliminates dead code, does your optimisations for you, you don't have
 to
  write javascript like you are the compiler. if you play nice and
 religiously
  annotate your code, you get static type checking (huge benefit!) proper
 OO,
  interfaces (granted no way to really do is-A)
 
  lots of components
  http://closure-library.googlecode.com/svn/trunk/closure/goog/demos/
 
  components actually have a livecycle (believe me, for most people playing
  around with javascript this is a radical concept).
  there is a framework (called relief), but i don't use it, it is not
 trying
  to solve the problems I am solving. I implemented my own binding system
 in a
  matter of hours, you can even add your own passes to the compiler (at any
  point, so pre abstract syntax tree (AST) or use the AST to do your own
  transforms)
 
  I tend to code in netbeans since the code completion is decent and I can
  also say the chrome debugger and profiler is extremely sweet. other
 people
  use different tools.
 
  if you like flex I think you will like closure, it is like the step up
 from
  flash to flex which I took in 2004 and I went like whaaa this is
  awesome.
  check this video http://www.youtube.com/watch?v=M3uWx-fhjUc
 
  now the bad, people don't seem to know about it, so it does not get all
 the
  loving it deserves, the lists however are extremely responsive (there are
  lists for all the different parts of the toolsets, but using all of them
  together makes for insane results)
  the compiler is not very fast, but using stuff like plovr (build tool)
  people make life pretty easy.
 
  i am just going to flame here as a finish, but jquery is for building mom
  and pop crap, if you plan to do any kind of real development in
 javascript
  and you like your wrists, closure is really the only way to go IMO.
 
  On Thu, Oct 13, 2011 at 9:52 PM, jamesfin james.alan.finnigan@
 ...wrote:
 
   **

  
  
   As a devoted flex developer of over five years now, I'm getting the
 nudge
   by management to get as comfortable with HTML5/Javascript as I
 currently am
   with MXML/Actionscript. Not my decision.
  
   That said, I figured this forum would be better suited to answer a few
   questions about html5/javascript rather than a endure throught a few
   flash-hater filled javascript forums. ;)
  
   Knowing the following about common flex development practices, what are
 the
   analogs with flex when using javascript, if any at all?
  
   FlashBuilder = ? (i.e. dreamweaver?)
   MXML = HTML
   Actionscript = Javascript
   RobotLegs = ?
   AS3Signals = ?
   Others, feel free to contribute...
  
   Also,
   Using Robotlegs affords many comforts towards MVC development
 practices. In
   that context, can other analogs be made in HTML5/Javascript where
 separate
   files are used for each of these areas? Links and/or examples would be
   great.
  
   View = ?
   Mediator = ?
   Service = ?
   Model = ?
   Controller = ?
   Dependency Injection = ?
   Signals = ?
  
   It would appear as if SproutCore shares some of the attributes we enjoy
 in
   Flex but would like to hear what Javascripts frameworks are most
 friendly to
   Flex Developers.
  
   Thanks in advance!
  
  
  
 
 
 
  --
  j:pn
  \\no comment
 









 --
 Alex Harui
 Flex SDK Team
 Adobe System, Inc.
 http://blogs.adobe.com/aharui

  




-- 
j:pn
\\no comment


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

2011-10-13 Thread Johannes Nel
look, i don't want to get into a fight with people, but i can really say
that the google closure toolset makes every other html/javascript approach
look absolutely stoneage. a compiler, i mean a real compiler,
it eliminates dead code, does your optimisations for you, you don't have to
write javascript like you are the compiler. if you play nice and religiously
annotate your code, you get static type checking (huge benefit!) proper OO,
interfaces (granted no way to really do is-A)

lots of components
http://closure-library.googlecode.com/svn/trunk/closure/goog/demos/

components actually have a livecycle (believe me, for most people playing
around with javascript this is a radical concept).
there is a framework (called relief), but i don't use it, it is not trying
to solve the problems I am solving. I implemented my own binding system in a
matter of hours, you can even add your own passes to the compiler (at any
point, so pre abstract syntax tree (AST) or use the AST to do your own
transforms)

I tend to code in netbeans since the code completion is decent and I can
also say the chrome debugger and profiler is extremely sweet. other people
use different tools.

if you like flex I think you will like closure, it is like the step up from
flash to flex which I took in 2004 and I went like whaaa this is
awesome.
check this video http://www.youtube.com/watch?v=M3uWx-fhjUc

now the bad, people don't seem to know about it, so it does not get all the
loving it deserves, the lists however are extremely responsive (there are
lists for all the different parts of the toolsets, but using all of them
together makes for insane results)
the compiler is not very fast, but using stuff like plovr (build tool)
people make life pretty easy.

i am just going to flame here as a finish, but jquery is for building mom
and pop crap, if you plan to do any kind of real development in javascript
and you like your wrists, closure is really the only way to go IMO.

On Thu, Oct 13, 2011 at 9:52 PM, jamesfin james.alan.finni...@gmail.comwrote:

 **


 As a devoted flex developer of over five years now, I'm getting the nudge
 by management to get as comfortable with HTML5/Javascript as I currently am
 with MXML/Actionscript. Not my decision.

 That said, I figured this forum would be better suited to answer a few
 questions about html5/javascript rather than a endure throught a few
 flash-hater filled javascript forums. ;)

 Knowing the following about common flex development practices, what are the
 analogs with flex when using javascript, if any at all?

 FlashBuilder = ? (i.e. dreamweaver?)
 MXML = HTML
 Actionscript = Javascript
 RobotLegs = ?
 AS3Signals = ?
 Others, feel free to contribute...

 Also,
 Using Robotlegs affords many comforts towards MVC development practices. In
 that context, can other analogs be made in HTML5/Javascript where separate
 files are used for each of these areas? Links and/or examples would be
 great.

 View = ?
 Mediator = ?
 Service = ?
 Model = ?
 Controller = ?
 Dependency Injection = ?
 Signals = ?

 It would appear as if SproutCore shares some of the attributes we enjoy in
 Flex but would like to hear what Javascripts frameworks are most friendly to
 Flex Developers.

 Thanks in advance!

  




-- 
j:pn
\\no comment


Re: [flexcoders] Restrict access to an API to only allowed applications

2011-09-26 Thread Johannes Nel
The problem with making it as hard as possible is the overhead on your
client application. decrypting a lot of data is a processer intensive
operation and your own UI could suffer, while someone stealing data could
decrypt it in C and republish that data unencrypted, giving their UI the
edge over yours.


On Mon, Sep 26, 2011 at 6:45 PM, Haykel BEN JEMIA hayke...@gmail.comwrote:

 **


 yeah you have just confirmed my 'fear' that for client applications there
 is actually no secure way to identify them because anything they include
 (data, algorithms etc.) can be cracked and the identification process can be
 reproduced. We can only try to make it as hard as possible.


 Haykel Ben Jemia

 Allmas
 Web  RIA Development
 http://www.allmas-tn.com




 On Mon, Sep 26, 2011 at 1:35 PM, claudiu ursica the_bran...@yahoo.comwrote:

 **


 The thing is that most client side apps implement security by obscurity
 which pretty much means that you will never be safe 100%, the only thing you
 do is not putting it in plain sight. So as you continue is add more level of
 obscurity, but as said that will only make it harder still not impossible to
 crack. You can double/triple that by server side checks e.g. trusted ips,
 domains, user etc. Whenever server feels like there is not enough trust
 should deny the connection.

 Obviously the topic is large enough to tackle in just a couple of lines,
 hopes this gives you a start ...
 C

 --
 *From:* Haykel BEN JEMIA hayke...@gmail.com
 *To:* flexcoders@yahoogroups.com
 *Sent:* Monday, September 26, 2011 1:40 PM
 *Subject:* Re: [flexcoders] Restrict access to an API to only allowed
 applications


 Thanks Claudiu,

 I have found a PDF of the presentation and on page 4 it says the following
 about protecting sensitive data through embedding:

 * Most decompilers don’t look at embedded data.
 * Given that SWF is an open file format, nothing is really stopping them
 from doing this in the future.
 * Useful for quick/dirty storage of WebService credentials.

 So this is definitly better than storing the keys in plain text format,
 but still easy to crack.

 Any other suggestions.

 Thanks,

 Haykel Ben Jemia

 Allmas
 Web  RIA Development
 http://www.allmas-tn.com




 On Mon, Sep 26, 2011 at 11:33 AM, claudiu ursica 
 the_bran...@yahoo.comwrote:

 **

  You can embed the keys instead of keeping them in plain site.

 check this session I think you will find some useful stuff:

 http://tv.adobe.com/watch/360flex-conference/encrypting-flex-protecting-revenue-by-andrew-westberg/

 C

 --
 *From:* Haykel BEN JEMIA hayke...@gmail.com
 *To:* flexcoders flexcoders@yahoogroups.com
 *Sent:* Monday, September 26, 2011 12:00 PM
 *Subject:* [flexcoders] Restrict access to an API to only allowed
 applications


 Hi,

 I'm looking for the best and most secure way to restrict access to a web
 API to only allowed applications. The best option I found is to use 2-Legged
 OAuth where applications would get a consumer key and a secret key. The
 problem here is that SWF files can be easily decompiled and the keys
 extracted. My questions here are:

 * Does anybody know a way to protect the keys?
 * Is there another authorization mechanism that is better suited for such
 client applications in general (Flash, JavaScript ...)

 Thanks.

 Haykel Ben Jemia

 Allmas
 Web  RIA Development
 http://www.allmas-tn.com








  




-- 
j:pn
\\no comment


Re: [flexcoders] BlazeDS having localhost:8080 hardcoded somewhere?

2011-08-24 Thread Johannes Nel
check where your swf is calling, is that url hardcoded? I assume you have
changed the server.xml for your tomcat to run of the port you want (since it
is serving the swf)

Also check your blaze services-config.xml in your web-inf folder.

On Wed, Aug 24, 2011 at 1:43 AM, Venkat M venkat_...@yahoo.com wrote:

 **


  Hi,

 I am a newbie working with BlazeDS. We developed an application that uses
 java backend and BlazeDs to connect to it. I tested several times on my
 machine and it is working just fine. But it is to be run at several location
 on different servers and not on a sigle stand alone or a single fixed
 server. Its basically for a sercver admin kinda stuff.

 How do I configure blazeDs to work in this sceneriao. Also if I change the
 localhost in the adressbar to fully-qualified servername in the browser to
 access the application, it loads the swf and screen. but the calls fail.
 Error: Send Fail.

 I also tried to put the stuff on a Liniux box and run, no luck. Same error.


 Any ideas comments or suggestion. Greatly appreciated. Thanks!!

 Regards,
 Venkat**



  




-- 
j:pn
\\no comment


Re: [flexcoders] SQLite Insert Statements in a transaction

2011-08-18 Thread Johannes Nel
probably, but the environment is still single threaded. We tend to open our
connections synchronously and then manage the number of inserts we do in a
given time.

On Wed, Aug 17, 2011 at 9:28 AM, Tac Tacelosky tac...@gmail.com wrote:

 **


 I should have clarified that my database has been opened async.  And I'm
 now pretty convinced that to do async inserts, you have to create a new
 SQLStatement within the insert loop.  I'm almost certain that is going to be
 slower and use more memory, but the user experience may be better with
 async, if the entire process is in the background.

 Is my thinking correct on that?

 Thanks,

 Tac

 On Wed, Aug 17, 2011 at 2:52 AM, Johannes Nel johannes@gmail.comwrote:

 **


 how much data are you dealing with. make your inserts synchronous perhaps


 On Tue, Aug 16, 2011 at 1:24 PM, Tac Tacelosky tac...@gmail.com wrote:

 **


 I'm trying to get my head around how to do a SQLite bulk insert using
 transactions.  This works, but it doesn't make sense to re-create a new
 SQLStatement in the loop:

 private function onAddBulkContacts():void {
 _responder = new Responder(resultEventHandler, errorEventHandler);
 contacts_db.connection.begin(null, _responder);
 var statement:SQLStatement;

 for (var i:uint=0; iparseInt(bulkAdd.numberToAdd.text); i++) {
  statement  = new SQLStatement();
 statement.sqlConnection = contacts_db.connection;
 statement.text =INSERT INTO contacts ('name', 'lastname') VALUES
 (@NAME, @LASTNAME);

 statement.addEventListener(SQLErrorEvent.ERROR,
 function(event:Event):void {
 trace('statement error');});
 statement.addEventListener(SQLEvent.RESULT,
 function(event:Event):void { trace('result'); });
 statement.parameters['@NAME'] = Name  + i.toString();
 statement.parameters['@LASTNAME'] = LastName  + i.toString();
 statement.execute();
 }
 contacts_db.connection.commit();
 }

 What I want to do is create the SQLStatement once, let it compile, then
 just pass in new arguments within the loop, the commit it at the end, e.g.

 private function onAddBulkContacts():void {
 _responder = new Responder(resultEventHandler, errorEventHandler);
 contacts_db.connection.begin(null, _responder);
 var statement:SQLStatement;

 statement  = new SQLStatement();
 statement.sqlConnection = contacts_db.connection;
 statement.text =INSERT INTO contacts ('name', 'lastname') VALUES
 (@NAME, @LASTNAME);

 statement.addEventListener(SQLErrorEvent.ERROR,
 function(event:Event):void {
 trace('statement error');});
 statement.addEventListener(SQLEvent.RESULT,
 function(event:Event):void { trace('result'); });

 for (var i:uint=0; iparseInt(bulkAdd.numberToAdd.text); i++) {
 statement.parameters['@NAME'] = Name  + i.toString();
 statement.parameters['@LASTNAME'] = LastName  + i.toString();
 statement.execute();
 }
 contacts_db.connection.commit();
 }

 But the latter code throw an error saying that it can't execute the
 second time through, since the statement itself is still executing (and I
 believe will be in that state until the commit).  I guess I can understand
 that the statements get added to the execution queue, but it doesn't make
 sense that I have to add the SQL text within the loop, exactly the thing I'm
 trying to avoid.  I'm sure there's a better way to do this, but I've spent
 way too long hacking and reading trying to figure out what the proper
 sequence is.  Any ideas?

 Thanks,

 Tac




 --
 j:pn
 \\no comment


  




-- 
j:pn
\\no comment


Re: [flexcoders] SQLite Insert Statements in a transaction

2011-08-17 Thread Johannes Nel
how much data are you dealing with. make your inserts synchronous perhaps

On Tue, Aug 16, 2011 at 1:24 PM, Tac Tacelosky tac...@gmail.com wrote:

 **


 I'm trying to get my head around how to do a SQLite bulk insert using
 transactions.  This works, but it doesn't make sense to re-create a new
 SQLStatement in the loop:

 private function onAddBulkContacts():void {
 _responder = new Responder(resultEventHandler, errorEventHandler);
 contacts_db.connection.begin(null, _responder);
 var statement:SQLStatement;

 for (var i:uint=0; iparseInt(bulkAdd.numberToAdd.text); i++) {
  statement  = new SQLStatement();
 statement.sqlConnection = contacts_db.connection;
 statement.text =INSERT INTO contacts ('name', 'lastname') VALUES
 (@NAME, @LASTNAME);

 statement.addEventListener(SQLErrorEvent.ERROR,
 function(event:Event):void {
 trace('statement error');});
 statement.addEventListener(SQLEvent.RESULT, function(event:Event):void
 { trace('result'); });
 statement.parameters['@NAME'] = Name  + i.toString();
 statement.parameters['@LASTNAME'] = LastName  + i.toString();
 statement.execute();
 }
 contacts_db.connection.commit();
 }

 What I want to do is create the SQLStatement once, let it compile, then
 just pass in new arguments within the loop, the commit it at the end, e.g.

 private function onAddBulkContacts():void {
 _responder = new Responder(resultEventHandler, errorEventHandler);
 contacts_db.connection.begin(null, _responder);
 var statement:SQLStatement;

 statement  = new SQLStatement();
 statement.sqlConnection = contacts_db.connection;
 statement.text =INSERT INTO contacts ('name', 'lastname') VALUES
 (@NAME, @LASTNAME);

 statement.addEventListener(SQLErrorEvent.ERROR,
 function(event:Event):void {
 trace('statement error');});
 statement.addEventListener(SQLEvent.RESULT, function(event:Event):void
 { trace('result'); });

 for (var i:uint=0; iparseInt(bulkAdd.numberToAdd.text); i++) {
 statement.parameters['@NAME'] = Name  + i.toString();
 statement.parameters['@LASTNAME'] = LastName  + i.toString();
 statement.execute();
 }
 contacts_db.connection.commit();
 }

 But the latter code throw an error saying that it can't execute the second
 time through, since the statement itself is still executing (and I believe
 will be in that state until the commit).  I guess I can understand that the
 statements get added to the execution queue, but it doesn't make sense that
 I have to add the SQL text within the loop, exactly the thing I'm trying to
 avoid.  I'm sure there's a better way to do this, but I've spent way too
 long hacking and reading trying to figure out what the proper sequence is.
 Any ideas?

 Thanks,

 Tac
  




-- 
j:pn
\\no comment


Re: [flexcoders] Re: How to debug PHP side in AIR applications?

2011-08-09 Thread Johannes Nel
I have a  different setup from you, but I debug my java backends without a
problem wether I make my request in air, ajax or flex.
A php project is a request response model, so no matter what initiates the
request you should be able to put a breakpoint in your code.

Your url request in air can have all those querystring variables.

On Tue, Aug 9, 2011 at 1:15 PM, enridp enr...@yahoo.com.ar wrote:

 **


 Hi johannes, I think I can't catch what you said, my projects are separated
 of course, but the problem, from what I see, is that the PHP debugger needs
 a browser (because it adds a lot of query strings for sessions and php
 debugging).
 In AIR we don't have any browser, I have my PHP project, I have breakpoints
 in the PHP project of course too, even more, I have my AIR project linked
 with my PHP project in FB 4.5 for PHP.
 But the PHP debug doesn't work with AIR

 Did you tested it?
 I mean, are you debugging PHP in AIR applications?


 --- In flexcoders@yahoogroups.com, Johannes Nel johannes.nel@... wrote:
 
  split your projects, put a break point in the php code.
 
  On Mon, Aug 8, 2011 at 8:08 PM, enridp enridp@... wrote:
 
   **
  
  
   Hi ! I think I can't explain it better than my subject :)
  
   Flash Builder 4.5 for PHP it's wonderful for debugging both, Flex and
 PHP
   side at the same time, but it doesn't work with AIR applications.
  
   Does somebody know a workaround for this?
  
  
  
 
 
 
  --
  j:pn
  \\no comment
 

  




-- 
j:pn
\\no comment


Re: [flexcoders] How to debug PHP side in AIR applications?

2011-08-08 Thread Johannes Nel
split your projects, put a break point in the php code.

On Mon, Aug 8, 2011 at 8:08 PM, enridp enr...@yahoo.com.ar wrote:

 **


 Hi ! I think I can't explain it better than my subject :)

 Flash Builder 4.5 for PHP it's wonderful for debugging both, Flex and PHP
 side at the same time, but it doesn't work with AIR applications.

 Does somebody know a workaround for this?

  




-- 
j:pn
\\no comment


Re: [flexcoders] Re: Switching Item Renderers

2010-09-02 Thread Johannes Nel
it does.

Another approach which i have taken (and I find neater, faster and more
memory efficient with less emphasis on binding) is the concept of one 1
itemrenderer and several layouts which you can swop out depending on the
model. This allows you to control shared resources (meaning i create the
least number of fields i have to across several different itemrenderers) and
get extremely intelligent about a lot more with less overhead.
but hey, its personal flavour, spice of life stuff, ya know.

On Wed, Sep 1, 2010 at 8:14 PM, Wesley Acheson wesley.ache...@gmail.comwrote:



 True. I'm not sure if that recycles well though?

 On Wed, Sep 1, 2010 at 3:01 PM, Johannes Nel johannes@gmail.comwrote:



 set your renderer to an IFactory. this is a pretty standard way of doing
 things.


 On Wed, Sep 1, 2010 at 1:19 PM, valdhor valdhorli...@embarqmail.comwrote:



 The only computation I see is determining which component to use. With
 your original idea you would still need the same computation to figure out
 which (sub) item renderer to use. I still think you are trying to hide the
 woods using more trees.


 --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Wesley
 Acheson wesley.ache...@... wrote:
 
  Yeah thats the way I've done it previously. I thought that this way
 would
  cut out on some additional computation.
 
 
 
  On Tue, Aug 31, 2010 at 6:04 PM, valdhor valdhorli...@...wrote:

 
  
  
   That seems overly complicated to me. What I would try is create two
 custom
   components then instantiate the appropriate one based on the data and
 add it
   in the updateDisplayList method.
  
  
   --- In flexcoders@yahoogroups.com 
   flexcoders%40yahoogroups.comflexcoders%
 40yahoogroups.com, Wesley

   Acheson wesley.acheson@ wrote:
   
Since nobody has replied I'm continueing to try this. I currently
 think I
may need to override all methods in UI component.
   
   
Is it clear what I'm trying to do?
   
Is this the wrong way of doing it?
   
I think its probably lighter than wrapping to components in a fully
   fledged
UI component?
*
Some Thoughts*
   
Also a comment on ListItemRenderer, theres an awful lot of methods
 that
   need
to be implemented to make this work. I doubt all of them are used
 in a
   List
Senario. Even implementing them all theres still a dependency on
DisplayObject (who's methods seem to be implemented). It does feel
 to me
like the architecture seems a bit off. I mean if all of those
 methods are
implemented why is there still a dependency on DisplayObject.
   
Its not just enough to implement IListRenderer which seems to
 defeat the
purpose of an interace
   
On Wed, Aug 18, 2010 at 11:42 PM, Wesley Acheson
wesley.acheson@wrote:
  
   
 *Disclaimer:* This is a cross post with Stack Overflow. I know at
 least
 one person on this list saw it there.

 http://stackoverflow.com/questions/3507313/flex-switch-item-renderer

 Hi

 I was wondering if anyone had any luck with the following senario
 in
   flex.

 I'd like to be able to have a custom item renderer which
 delegates to
 another renderer inside.

 The reason for this would be in a datagrid for instance
 displaying a
 checkbox if the dataprovider for the row had a boolean value.
 Using the
 default item renderer when the value was a non boolean.

 Basically I was hoping to use a proxy object (though not
 necessarily
   the
 proxy class) so that I could a renderer which delegated all of
 its
 responsibilties to a sub renderer.

 Hard to explain.

 *Edit 1*

 I think the following gives a clearer idea of what I had in mind.
 This
   is
 only knocked up quickly for the purpose of showing the idea.

 *SwitchingRenderer.as*

 package com.example
 {
 import mx.controls.CheckBox;

 import mx.controls.dataGridClasses.DataGridItemRenderer;

 import mx.controls.listClasses.BaseListData;

 import mx.controls.listClasses.IDropInListItemRenderer;

 import mx.core.IDataRenderer;

 import mx.core.UIComponent;

 public class SwitchingRenderer extends UIComponent implements
   IDataRenderer, IDropInListItemRenderer

 {
 private var checkboxRenderer:CheckBox;

 private var defaultRenderer:DataGridItemRenderer;

 private var currentRenderer:IDataRenderer;

 public function SwitchingRenderer()

 {
 this.checkboxRenderer = new CheckBox();

 this.defaultRenderer = new DataGridItemRenderer();

 this.currentRenderer = defaultRenderer();

 super();
 }

 public function get data():Object

 {
 //If the data for this cell is a boolean
 // currentRender = checkBoxRenderer

 // otherwise
 // currentRenderer = defaultRenderer
 }

 public function set data(value:Object):void

Re: [flexcoders] Re: Switching Item Renderers

2010-09-01 Thread Johannes Nel
set your renderer to an IFactory. this is a pretty standard way of doing
things.

On Wed, Sep 1, 2010 at 1:19 PM, valdhor valdhorli...@embarqmail.com wrote:



 The only computation I see is determining which component to use. With your
 original idea you would still need the same computation to figure out which
 (sub) item renderer to use. I still think you are trying to hide the woods
 using more trees.


 --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Wesley
 Acheson wesley.ache...@... wrote:
 
  Yeah thats the way I've done it previously. I thought that this way would
  cut out on some additional computation.
 
 
 
  On Tue, Aug 31, 2010 at 6:04 PM, valdhor valdhorli...@...wrote:

 
  
  
   That seems overly complicated to me. What I would try is create two
 custom
   components then instantiate the appropriate one based on the data and
 add it
   in the updateDisplayList method.
  
  
   --- In flexcoders@yahoogroups.com 
   flexcoders%40yahoogroups.comflexcoders%
 40yahoogroups.com, Wesley

   Acheson wesley.acheson@ wrote:
   
Since nobody has replied I'm continueing to try this. I currently
 think I
may need to override all methods in UI component.
   
   
Is it clear what I'm trying to do?
   
Is this the wrong way of doing it?
   
I think its probably lighter than wrapping to components in a fully
   fledged
UI component?
*
Some Thoughts*
   
Also a comment on ListItemRenderer, theres an awful lot of methods
 that
   need
to be implemented to make this work. I doubt all of them are used in
 a
   List
Senario. Even implementing them all theres still a dependency on
DisplayObject (who's methods seem to be implemented). It does feel to
 me
like the architecture seems a bit off. I mean if all of those methods
 are
implemented why is there still a dependency on DisplayObject.
   
Its not just enough to implement IListRenderer which seems to defeat
 the
purpose of an interace
   
On Wed, Aug 18, 2010 at 11:42 PM, Wesley Acheson
wesley.acheson@wrote:
  
   
 *Disclaimer:* This is a cross post with Stack Overflow. I know at
 least
 one person on this list saw it there.

 http://stackoverflow.com/questions/3507313/flex-switch-item-renderer

 Hi

 I was wondering if anyone had any luck with the following senario
 in
   flex.

 I'd like to be able to have a custom item renderer which delegates
 to
 another renderer inside.

 The reason for this would be in a datagrid for instance displaying
 a
 checkbox if the dataprovider for the row had a boolean value. Using
 the
 default item renderer when the value was a non boolean.

 Basically I was hoping to use a proxy object (though not
 necessarily
   the
 proxy class) so that I could a renderer which delegated all of its
 responsibilties to a sub renderer.

 Hard to explain.

 *Edit 1*

 I think the following gives a clearer idea of what I had in mind.
 This
   is
 only knocked up quickly for the purpose of showing the idea.

 *SwitchingRenderer.as*

 package com.example
 {
 import mx.controls.CheckBox;

 import mx.controls.dataGridClasses.DataGridItemRenderer;

 import mx.controls.listClasses.BaseListData;

 import mx.controls.listClasses.IDropInListItemRenderer;

 import mx.core.IDataRenderer;

 import mx.core.UIComponent;

 public class SwitchingRenderer extends UIComponent implements
   IDataRenderer, IDropInListItemRenderer

 {
 private var checkboxRenderer:CheckBox;

 private var defaultRenderer:DataGridItemRenderer;

 private var currentRenderer:IDataRenderer;

 public function SwitchingRenderer()

 {
 this.checkboxRenderer = new CheckBox();

 this.defaultRenderer = new DataGridItemRenderer();

 this.currentRenderer = defaultRenderer();

 super();
 }

 public function get data():Object

 {
 //If the data for this cell is a boolean
 // currentRender = checkBoxRenderer

 // otherwise
 // currentRenderer = defaultRenderer
 }

 public function set data(value:Object):void

 {
 currentRenderer.data = value;

 }

 public function get listData():BaseListData

 {
 return currentRenderer.listData;

 }

 public function set listData(value:BaseListData):void

 {
 currentRenderer.listData = value;

 }



 }
 }



   
  
  
  
 

  




-- 
j:pn
\\no comment


Re: [flexcoders] How to declare a Complex Type : String + int-

2010-08-09 Thread Johannes Nel
wel you could use the variant type

var p:* but this is not very neat, nice or efficient to be honest

On Mon, Aug 9, 2010 at 2:52 PM, Oleg Sivokon olegsivo...@gmail.com wrote:



 You cannot really have custom types in AS3 or any other ECMAScript
 language. I'd go for a class with 2 fields for integer and string.

  




-- 
j:pn
\\no comment


Re: [flexcoders] Re: Flex Project Management App

2010-07-09 Thread Johannes Nel
i would guess the person used a tree with custom itemrederer or a custom
component

for http://www.seenowdo.com we use a custom component for the taskboard

On Fri, Jul 9, 2010 at 3:59 PM, valdhor valdhorli...@embarqmail.com wrote:



 I would create a custom component that has all of the features of the
 milestone encapsulated. ie. The plus button, the label, the datagrid, the
 add and remove tasks buttons etc.

 I would also have a custom component comprising of the datagrid and its sub
 components.

 All you would need to do when someone clicks the add milestone button is to
 create a new instance of the custom component and add it to the display
 list.


 --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Angelo
 Anolin angelo_ano...@... wrote:
 
  Hi FlexCoders,
 
  I came across a Flex PM site and I would like to ask what are the
 necessary
  controls / things I need to do to achieve the same application.
 
  The site's page is:
 
  http://www.radscientist.com/flexpm/demo/index.html
 
  I am having problems re-creating those items which expands when the plus
 sign is
  clicked as well as adding new items when the Add Milestone button is
 clicked.
  How do I achieve adding controls on the fly on the application?
 
  I hope you could provide some guidance on this.
 
  Thanks.
 
  Angelo
 

  




-- 
j:pn
\\no comment


Re: [flexcoders] Uninstall Flash Player

2010-07-05 Thread Johannes Nel
there is also a flash version switcher for firefox

http://www.sephiroth.it/weblog/archives/2006/10/flash_switcher_for_firefox.php

On Sun, Jul 4, 2010 at 11:13 AM, Christophe
christophe_jacque...@yahoo.frwrote:



 Hello,

 How to uninstall Flash Player 10.1 (on Firefox) to get back to Flash Player
 10.0 ?

 Thx,
 Christophe,

  




-- 
j:pn
\\no comment


Re: [flexcoders] How to automatise Unit test with Maven ???

2010-05-18 Thread Johannes Nel
when you say automate what do you exactly mean. DO you mean running unit
tests on the back of a continues integration build?
Paul B-H has blogged about that a fair bit
http://eyefodder.com/


On Tue, May 18, 2010 at 3:56 PM, Nini7016 Nini7016 
nahloulaha...@hotmail.com wrote:



 Hello

 I would like to automatise Unit tests but i didn't find the best plugin
 which does this ?

 does anyone did this before 


 Thanks

 --
 Envie de plus d'originalité dans vos conversations ? Téléchargez
 gratuitement les Emoch'ticones 
 !http://www.ilovemessenger.fr/emoticones/telecharger-emoticones-emochticones.aspx
 




-- 
j:pn
\\no comment


Re: [flexcoders] Re: Thoughts on Flash by Steve Jobs

2010-05-05 Thread Johannes Nel
 i would like to chime in on this point.


 What restrictions are placed upon the SWF format? None so far as I know.
 You can take the spec and do whatever you want with it; including creating
 alternate IDEs and alternate players.

 You might be able to argue that it is not a standard in the same way that
 HTML or SVG is. But, that doesn't make it non-open.
 --


I somehow doubt the people on red5, woza and such would spend so much time
not reading the specs if it was really that open. (you are not allowed to
reverse engineer the rmtp(t/s) etc protocols. Projects Like phpAMF were (and
legally i think still might be in legal black holes were nothing has been
confirmed or denied about their position).
Also, think of all those hidden API's which Breeze and Adobe Connect use or
the ability to connect directly via TCP  to other clients without buying an
extremely expensive server.
HTML 5 is much more open than all of this, yes people have API's which are
browser specific, but really what is the point of that (that is as good as
deploying with gears (in the past, now this api is built into chrome).

Also to note, we have been developing and extending a product written in
flex with full QA cycles for more than a year now and we have had several
browser specific bugs. (although compared to html much much less), but more
tricky to fix.

I love Flash and have love developing for the platform, this is the 10th
year since I started with swf's and I clearly see good things coming out of
HTML 5 and the openness of the standard.
I think the tools we use to develop in Flash and Flex are way behind similar
toolsets for other languages and testing, OMG, automated testing is a F-ing
pain in the @5s compared to html.

Just remember how sad we all were when Tamarin/ ECMAScript 4 was canned.





j:pn
\\no comment


Re: [flexcoders] Re: Thoughts on Flash by Steve Jobs

2010-05-05 Thread Johannes Nel
With way behind I am referring to the whole eco-system :
 profiler (contains rant),
crappy automated testing tools (qtp?) and docs about the api's for people
trying to write their own (flex mokey)
More comprehensive documentation on extending  Flex builder API - helping
people extend their tool instead of making it more difficult.



On Wed, May 5, 2010 at 6:42 PM, Oleg Sivokon olegsivo...@gmail.com wrote:



 Sorry, cannot miss this one :)

  I think the tools we use to develop in Flash and Flex are way behind
 similar toolsets for other languages
 Please be specific, are you comparing Flash to Inkscape? Are you for real?
 I mean, if it's not Inkscape, then it should be Blend (but we are then back
 again to the proprietary world), because what other tools did you have in
 mind when speaking of vector graphics on the web?
 I don't agree with you saying that AS editors are bad as a whole. This is
 clearly a very subjective judgement. I would rate FlashDevelop for instance
 as third best editor I've ever seen with Visual Studio and MonoDevelop being
 the better ones (I cannot decide on the order :) And all sorts of Eclipse /
 NetBeans / MPS somewhere much further down the list.
 Let us take every thing in proportion, there is bad and there is not
 perfect and these two are clearly different things.
  




-- 
j:pn
\\no comment


Re: [flexcoders] Writing images to the src folder in flex/air

2010-02-18 Thread Johannes Nel
first off, you don't want to save them in your src folder since this is only
available at compile time and not in the deployed application. Also, if you
are deploying to a Mac, you can't save things in your application directory,
this will give you a security error, you should rather save to the documents
directory or the application storage directory.

Since you are working with an air application, there really is no need to
embed them in the application, these resources will be available immediately
from the local file system, (also embeding them will mean they are part of
your swf and thus unchangeable).

So take a step back and think about it again.
What I propose is the following, check if the image exists in your storage
directory (if that is where you save it) if not, load the image from the
application directory, which is the image which you packaged into the
installer.

On Thu, Feb 18, 2010 at 3:24 PM, James garymoorcroft_...@yahoo.co.ukwrote:



 In my app I have a jpegencoder which saves bitmap snapshots of components
 as jpgs in my images folder (assets/images). The problem is it saves them in
 the bin-debug folder rather than the src folder.

 The reason I want them in the src folder is so that I can embed them within
 the app and it seems you can't embed images that are in the bin-debug
 folder. The reason I want to be able to save them directly into the
 src/assets/images folder is so that they will replace current images I have
 stored there which are embedded within the app so hopefully as they are
 saved these will replace the images live within the app if that makes sense.

 The current line of code I have which saves the images in the bin-debug
 folder is this:-

 var file:File =
 File.applicationDirectory.resolvePath(assets/images/testpicture.jpg);

 Can anyone tell me how to modify this so that they save in the source/src
 folder rather than the bin-debug folder? Thanks.

  




-- 
j:pn
\\no comment


Re: [flexcoders] Air File Is Damaged Error

2010-02-12 Thread Johannes Nel
one thing which can cause this is if the update.xml file and the air file
have different versions.

On Fri, Feb 12, 2010 at 2:54 PM, James garymoorcroft_...@yahoo.co.ukwrote:



 I keep getting the same The application could not be installed because the
 AIR file is damaged. etc... message every time I attempt to test the
 install of an air file I've just made from an application in flex. I've
 tried exporting other applications for release build and they work fine but
 it just seems this particular one won't work so I know it's not a flex
 problem. I've tried starting a whole new project and creating a new app and
 copying and pasting all of the code from the app I need into this new app
 and exporting that for release build from there but again I get the same
 error.

 Is there any way of finding out what is causing this error and is there a
 fix for this?

  




-- 
j:pn
\\no comment


[flexcoders] roundtrip catalyst flash builder

2010-01-22 Thread Johannes Nel
Hi

I followed the approach outlined by Ryan Stewart by creating the catalyst
project, exporting it as a library project, pulling this into flex builder
(it automagically creates a library project although you just select flex
builder project). So all good one way in. Then i get compile errors, my fxg
graphics cannot be found by the compiler.
Looking at the compilation settings for my FB Library project, even if I add
the assets (under the assets tab) I still get this error, the only way
around it seems to be selecting the option to specify which files go into
the project in the classes tab and then exporting to fxpl.

Importing this resultant fxpl into Catalyst then gives me a wrong format
error.

Have people gotten this right?
Can I see a detailed error log of why the import into catalyst has failed?
Is it worth exploring compiling this fxpl from command line and then
importing it into catalyst?

Suggestions and approaches welcome.

Johan

-- 
j:pn
\\no comment


Re: [flexcoders] Can QTP work for AS 3 based project ?

2010-01-07 Thread Johannes Nel
i seriously doubt it, since the automation links in with the flex component
set. of course, you can always write your own components to support the
automation libraries, but that is not documented (or I have not seen
documentation on this)

On Fri, Jan 8, 2010 at 6:05 AM, Pankaj Munjal flex.pan...@yahoo.com wrote:



 Hi,

 I m very new to QTP and i noticed that if my project is Flex based QTP
 works well. but not with AS 3 based project. Could some one pls guide
 me how to make it work for AS 3 based project as well.

 Thanks in advance for your support !

 Thanks,
 Pankaj


  




-- 
j:pn
\\no comment


Re: [flexcoders] Creating an AIR install file from scratch..

2009-12-14 Thread Johannes Nel
old post which i am resurrecting.

I am having issues singing a build with my p12 key file, has anyone got a
working example (not using the flexTasks jar) of this working?

jpn

On Tue, Jul 1, 2008 at 1:22 PM, Jim Hayes j...@primalpictures.com wrote:

That is what ADT is there for, I believe. If you check the
 documentation it will give you enough help to use it on the command line, or
 in ant.

 Without too much bother, I’ve made ant build files that compile my swf then
 package it with the required additional files into an air package/installer.

 Though I do run it in flexbuilder, theres no reason it could not be run
 standalone.



 -Original Message-
 *From:* flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] *On
 Behalf Of *essuark
 *Sent:* 01 July 2008 01:40
 *To:* flexcoders@yahoogroups.com
 *Subject:* [flexcoders] Creating an AIR install file from scratch..



 lets just 'say' I wanted to do this, any ideas, pointers, links? I am
 interested in automating an internal process that requires an AIR
 file. I want a program to create the AIR file, NOT Flex Builder...

 thanks
 Ralph


 __

 This communication is from Primal Pictures Ltd., a company registered in
 England and Wales with registration No. 02622298 and registered office: 4th
 Floor, Tennyson House, 159-165 Great Portland Street, London, W1W 5PA, UK.
 VAT registration No. 648874577.

 This e-mail is confidential and may be privileged. It may be read, copied
 and used only by the intended recipient. If you have received it in error,
 please contact the sender immediately by return e-mail or by telephoning
 +44(0)20 7637 1010. Please then delete the e-mail and do not disclose its
 contents to any person.
 This email has been scanned for Primal Pictures by the MessageLabs Email
 Security System.
 __
  




-- 
j:pn
\\no comment


Re: [flexcoders] Re: Progress for synchronous operation

2009-11-18 Thread Johannes Nel
well if it is synchronous then this will help squat unless a separate thread
gets spawned, since the drawing cycle and the render cycle are split in the
vm. so, if it does not lock up the vm (which basically renders you
powerless) then it ain't synchronous.

On Thu, Nov 19, 2009 at 2:57 AM, ag_rcuren robert.vancuren...@gmail.comwrote:



 Here is some code that will show a very simply way using a timer to show
 some UI before you start your sync stuff. NOTE using a timer is bad because
 you can not guarantee how much time it will take for your UI to display. The
 best thing to do would be create some sort of popup that fires an event when
 it is fully visible. Listen for that even and once that happens then you
 start your synchronous process because at that time you will be sure your UI
 is ready.

 ?xml version=1.0 encoding=utf-8?
 mx:Application xmlns:mx=http://www.adobe.com/2006/mxml;
 layout=absolute
 mx:Script
 ![CDATA[
 import mx.managers.CursorManager;
 import mx.events.FlexEvent;
 import mx.controls.Alert;

 private function bigNastySynchronousThing():void
 {
 trace(running);
 var i:int = 0;
 for (i; i  2000; i++)
 {
 //trace really slows things down
 var x:Number = Math.sqrt(500) / Math.sqrt(20);
 }
 trace(done);
 }

 private function noGood(event:MouseEvent):void
 {
 mx.controls.Alert.show(You wont see this untill we are done because the ui
 cant update);
 bigNastySynchronousThing();
 }

 private function kindGood(event:MouseEvent):void
 {
 Alert.show(This will take some time, hold on);
 CursorManager.setBusyCursor();
 var t:Timer = new Timer(1000, 1);
 t.addEventListener(TimerEvent.TIMER_COMPLETE, tc);
 t.start();
 }

 private function tc(event:TimerEvent):void
 {
 trace(event.target);
 EventDispatcher(event.target).removeEventListener(event.type,
 arguments.callee);
 this.callLater(bigNastySynchronousThing);
 CursorManager.removeBusyCursor();

 }
 ]]
 /mx:Script
 mx:Button label=no good click=noGood(event);/
 mx:Button label=kinda good click=kindGood(event); x=81/
 /mx:Application


 --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Richard
 Rodseth rrods...@... wrote:
 
  What's a good way to display progress or a busy cursor for a potentially
  long-running, but synchronous operation (in my case generating a PDF
 using
  AlivePDF) ?
 
  As noted here, CursorManager.setBusyCursor doesn't display the cursor
 until
  there is no code running, and PopupManager seems to act similarly.
 
  Defer initiation of the operation using a timer?
 

  




-- 
j:pn
\\no comment


Re: [flexcoders] ArrayList Vs ArrayCollection

2009-11-10 Thread Johannes Nel
to dig up an old horse, the main advantage I can see is that arrayList
supports disableEvents and enableEvents,
which in theory should be availible via the fact that ArrayCollection
extends ListCollectionView which has a getter called get list():ArrayList on
which in theory i would want to say disable events, but somehow the compiler
and me disagree on this, since I cannot get to that ArrayList via my
arrayCollection.

Why?

On Fri, Mar 7, 2008 at 2:14 AM, Alex Harui aha...@adobe.com wrote:

ArrayList exists and is written in AS.  ArrayList is the underlying
 IList implementation that wraps Arrays and is used internally by
 ArrayCollection.  There are relatively few advantages to going straight to
 an ArrayList.  If you pass one into a list class it will just wrap it in an
 ArrayCollection anyway.


  --

 *From:* flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] *On
 Behalf Of *DannyT
 *Sent:* Thursday, March 06, 2008 4:08 PM
 *To:* flexcoders@yahoogroups.com
 *Subject:* Re: [flexcoders] ArrayList Vs ArrayCollection



 var myList:ArrayList = new ArrayList(); // doesn't throw any error

 var myList:ArrayList = new ArrayCollection();
 gives the following error:
 Implicit coercion of a value of type mx.collections:ArrayCollection to an
 unrelated type mx.collections:ArrayList.

 It was my confusion with c# that caused me to write that int eh first place
 when I noticed the error. I've googled and seen it mentioned in code
 snippets but coudln't find much.



  On 06/03/2008, *Paul Andrews* p...@ipauland.com wrote:

 If you search in help, it's only mentioned as a C# class and does not
 appear to exist in the mx.collections package.



 Where have you seen it?



 Paul

  - Original Message -

 *From:* DannyT danmo...@googlemail.com

 *To:* flexcoders@yahoogroups.com

 *Sent:* Thursday, March 06, 2008 11:29 PM

 *Subject:* [flexcoders] ArrayList Vs ArrayCollection



 Can anyone point out the difference between ArrayList and ArrayCollection?

 ArrayList seems to be in the mx.collections package but I can't find any
 documentation on it.

 Dan

 --
 http://danny-t.co.uk




 --
 http://danny-t.co.uk
   




-- 
j:pn
\\no comment


Re: [flexcoders] ArrayList Vs ArrayCollection

2009-11-10 Thread Johannes Nel
retraction, disable events is private. mourn.

On Tue, Nov 10, 2009 at 12:41 PM, Johannes Nel johannes@gmail.comwrote:

 to dig up an old horse, the main advantage I can see is that arrayList
 supports disableEvents and enableEvents,
 which in theory should be availible via the fact that ArrayCollection
 extends ListCollectionView which has a getter called get list():ArrayList on
 which in theory i would want to say disable events, but somehow the compiler
 and me disagree on this, since I cannot get to that ArrayList via my
 arrayCollection.

 Why?


 On Fri, Mar 7, 2008 at 2:14 AM, Alex Harui aha...@adobe.com wrote:

ArrayList exists and is written in AS.  ArrayList is the underlying
 IList implementation that wraps Arrays and is used internally by
 ArrayCollection.  There are relatively few advantages to going straight to
 an ArrayList.  If you pass one into a list class it will just wrap it in an
 ArrayCollection anyway.


  --

 *From:* flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] *On
 Behalf Of *DannyT
 *Sent:* Thursday, March 06, 2008 4:08 PM
 *To:* flexcoders@yahoogroups.com
 *Subject:* Re: [flexcoders] ArrayList Vs ArrayCollection



 var myList:ArrayList = new ArrayList(); // doesn't throw any error

 var myList:ArrayList = new ArrayCollection();
 gives the following error:
 Implicit coercion of a value of type mx.collections:ArrayCollection to an
 unrelated type mx.collections:ArrayList.

 It was my confusion with c# that caused me to write that int eh first
 place when I noticed the error. I've googled and seen it mentioned in code
 snippets but coudln't find much.



  On 06/03/2008, *Paul Andrews* p...@ipauland.com wrote:

 If you search in help, it's only mentioned as a C# class and does not
 appear to exist in the mx.collections package.



 Where have you seen it?



 Paul

  - Original Message -

 *From:* DannyT danmo...@googlemail.com

 *To:* flexcoders@yahoogroups.com

 *Sent:* Thursday, March 06, 2008 11:29 PM

 *Subject:* [flexcoders] ArrayList Vs ArrayCollection



 Can anyone point out the difference between ArrayList and ArrayCollection?

 ArrayList seems to be in the mx.collections package but I can't find any
 documentation on it.

 Dan

 --
 http://danny-t.co.uk




 --
 http://danny-t.co.uk
   




 --
 j:pn
 \\no comment




-- 
j:pn
\\no comment


Re: [flexcoders] Implement Multiple Interfaces in a MXML component

2009-09-08 Thread Johannes Nel
only one attribute, but comma deliminated interface paths in that attributes
text


On Tue, Sep 8, 2009 at 11:48 AM, Michael Ridland rid...@gmail.com wrote:



 Hi

 I want to be able to implement multiple interfaces in a MXML Component. But
 I get this error, 'Attribute implements was already specified for element
 mx:Canvas.'.

 Thanks in Advance.


 Michael
  




-- 
j:pn
\\no comment


Re: [flexcoders] What does [Bindable(dataChange)] do?

2009-09-03 Thread Johannes Nel
it means the binding will only update when the dataChange event fires on
that object.

On Thu, Sep 3, 2009 at 4:40 PM, Nick Middleweek n...@middleweek.co.ukwrote:



 i'm still new to Flex... I'm going through someone's code and i'm wondering
 what *[Bindable(dataChange)]* does.

 It's in an ItemRenderer MXML file for an Advanced DG. it's not inside any
 function, it's near the top, underneath the import statements and variable
 declarations and before the first function.

 Can anyone shed some light on it please?


 Cheers,
 Nick

  




-- 
j:pn
\\no comment


Re: [flexcoders] What does [Bindable(dataChange)] do?

2009-09-03 Thread Johannes Nel
its not specific to any class, its part of the framework. its a very handy
way to optimise in truth, when a specific property updates you only fire
that one event, and only the property(ies) associated with that event via
binding will update.

you can also have multiple binding tags with one getter, for example
[Bindable(eventA)]
[Bindable(eventB)]
funciton get a():String
{
}

lastly its a way to make read only properties bindbale.

On Thu, Sep 3, 2009 at 6:02 PM, Johannes Nel johannes@gmail.com wrote:

 it means the binding will only update when the dataChange event fires on
 that object.


 On Thu, Sep 3, 2009 at 4:40 PM, Nick Middleweek n...@middleweek.co.ukwrote:



 i'm still new to Flex... I'm going through someone's code and i'm
 wondering what *[Bindable(dataChange)]* does.

 It's in an ItemRenderer MXML file for an Advanced DG. it's not inside any
 function, it's near the top, underneath the import statements and variable
 declarations and before the first function.

 Can anyone shed some light on it please?


 Cheers,
 Nick

  




 --
 j:pn
 \\no comment




-- 
j:pn
\\no comment


Re: [flexcoders] LCDS : Looking for livecycle experts

2009-08-10 Thread Johannes Nel
I tried this and got 0 responses. :(
What are your issues, I have been through a fair amount of pain recently
with livecycle.

On Mon, Aug 10, 2009 at 11:11 AM, Besite - Bart b...@besite.be wrote:



 Dear all,

 We have developed a Flex application that extensively uses Livecycle
 Data Services, more precisely, we use the
 Data Management Service and Messaging Service.

 Our application should be released within a month, but we still
 encounter some problems and issues with LCDS, and are a bit stuck at the
 moment.
 We are considering to hire a Livecycle Expert for a few days that can
 help us with debugging the known problems.

 Our company is located in Belgium (nearby Brussels), but of course help
 from a distance is also an option.

 If there are people who consider themselves livecycle experts ;) and are
 interested, let us know !

 Kind regards
 Bart
  




-- 
j:pn
\\no comment


Re: [flexcoders] LCDS : Looking for livecycle experts

2009-08-10 Thread Johannes Nel
I personally have not used the MultiTopicConsumer class (unless its
underlying in something else I used, but still unaware).

Is there anyway you can interrogate the server side classes to find out if
your client application is subscribed post a refresh?
(does it log in cataline.out that the user has resubscribed)

I can think of a brutal workaround if you can interrogate, create another
destination (or to be doubly safe a simple jsp page) which you ask if you
are connected after a certain timeout.

Underlying a lot of the lcds stuff is netconnection,I enjoyed working with
netconnection (and netstream) in AS2 more than AS3. Netconnection I find
flaky as fugk.


On Mon, Aug 10, 2009 at 12:26 PM, Besite - Bart b...@besite.be wrote:



 Hello Jonathan, thanks for your reply :) i know the feeling !

 The main problem that we deal with is the following (that I posted on the
 mailing list some weeks ago,
 but unfortunately, I did not get much answers) :

 I have a messaging application that makes use of the MultiTopicConsumer
 class. When I run my application for the first time,
 a MultiTopicConsumer is instantiated and we subscribe() to the this
 consumer. We always receive a MessageAckEvent message after subscribing.

 Now when we refresh our browser (F5), sometimes we don't receive a
 MessageAckEvent after subscribing (and we also don't receive messages
 for the topics we subscribed to).

 It's not clear when the subscription succeeds and when not.. 

 If you need more information, let me know.

 Kind regards
 Bart



 I tried this and got 0 responses. :(
 What are your issues, I have been through a fair amount of pain recently
 with livecycle.

  On Mon, Aug 10, 2009 at 11:11 AM, Besite - Bart b...@besite.be wrote:



 Dear all,

 We have developed a Flex application that extensively uses Livecycle
 Data Services, more precisely, we use the
 Data Management Service and Messaging Service.

 Our application should be released within a month, but we still
 encounter some problems and issues with LCDS, and are a bit stuck at the
 moment.
 We are considering to hire a Livecycle Expert for a few days that can
 help us with debugging the known problems.

 Our company is located in Belgium (nearby Brussels), but of course help
 from a distance is also an option.

 If there are people who consider themselves livecycle experts ;) and are
 interested, let us know !

 Kind regards
 Bart




 --
 j:pn
 \\no comment


  




-- 
j:pn
\\no comment


Re: [flexcoders] Moving flex app (coldfusion) to a production server

2009-08-07 Thread Johannes Nel
ah. well then. No service config for you.
Remote object with fully qualified paths, setup from a configuration file i
would say.

On Wed, Aug 5, 2009 at 7:50 PM, Scott h...@netprof.us wrote:



  Where does it pull the server name from?  Is it where the flex app was
 called from?  To make this a little more complex; this is an Air application
 so it’s installed locally.


  --

 *From:* flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] *On
 Behalf Of *Johannes Nel
 *Sent:* Wednesday, August 05, 2009 9:46 AM
 *To:* flexcoders@yahoogroups.com
 *Subject:* Re: [flexcoders] Moving flex app (coldfusion) to a production
 server





 if you setup your services config to point to a specific server like this:


 endpoint url=rtmp://www.servername.com:2038
 class=flex.messaging.endpoints.RTMPEndpoint/
 then change it to
 endpoint url=rtmp://{server.name}:2038
 class=flex.messaging.endpoints.RTMPEndpoint/

 so for example my amf channel endpoint is defined as this
   channel-definition id=my-amf class=mx.messaging.channels.AMFChannel
 endpoint 
 url=http://{server.name}:{server.port}/{context.root}/messagebroker/amf;
 class=flex.messaging.endpoints.AMFEndpoint/
 properties
 polling-enabledfalse/polling-enabled
 /properties
 /channel-definition

 deploying between servers then becomes pretty easy.

  On Wed, Aug 5, 2009 at 4:16 PM, Tom Chiverton 
 tom.chiver...@halliwells.com wrote:



 On Wednesday 05 Aug 2009, Scott wrote:
  I've been working on my development environment on my notebook for a
  while now. I've got Flex and CF loaded locally along with CF's built in
  web server. I discovered that it seems the services-config.xml may be
  what tells the flex app to connect to a specific server. How do I move
  a development app like this into production?

 Copy the file to the server. Bounce CF.

 

 This email is sent for and on behalf of Halliwells LLP.

 Halliwells LLP is a limited liability partnership registered in England and
 Wales under registered number OC307980 whose registered office address is at
 Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB. A list
 of members is available for inspection at the registered office together
 with a list of those non members who are referred to as partners. We use the
 word ?partner? to refer to a member of the LLP, or an employee or consultant
 with equivalent standing and qualifications. Regulated by the Solicitors
 Regulation Authority.

 CONFIDENTIALITY

 This email is intended only for the use of the addressee named above and
 may be confidential or legally privileged. If you are not the addressee you
 must not read it and must not use any information contained in nor copy it
 nor inform any person other than Halliwells LLP or the addressee of its
 existence or contents. If you have received this email in error please
 delete it and notify Halliwells LLP IT Department on 0870 365 2500.

 For more information about Halliwells LLP visit 
 *www.Halliwells.com*http://www.Halliwells.com
 .




 --
 j:pn
 \\no comment

 --
 This message has been scanned for viruses and
 dangerous content by *MailScanner* http://www.mailscanner.info/, and is
 believed to be clean.
  




-- 
j:pn
\\no comment


Re: [flexcoders] Moving flex app (coldfusion) to a production server

2009-08-05 Thread Johannes Nel
if you setup your services config to point to a specific server like this:


endpoint url=rtmp://www.servername.com:2038
class=flex.messaging.endpoints.RTMPEndpoint/
then change it to
endpoint url=rtmp://{server.name}:2038
class=flex.messaging.endpoints.RTMPEndpoint/

so for example my amf channel endpoint is defined as this
  channel-definition id=my-amf class=mx.messaging.channels.AMFChannel
endpoint
url=http://{server.name}:{server.port}/{context.root}/messagebroker/amf;
class=flex.messaging.endpoints.AMFEndpoint/
properties
polling-enabledfalse/polling-enabled
/properties
/channel-definition

deploying between servers then becomes pretty easy.


On Wed, Aug 5, 2009 at 4:16 PM, Tom Chiverton
tom.chiver...@halliwells.comwrote:



 On Wednesday 05 Aug 2009, Scott wrote:
  I've been working on my development environment on my notebook for a
  while now. I've got Flex and CF loaded locally along with CF's built in
  web server. I discovered that it seems the services-config.xml may be
  what tells the flex app to connect to a specific server. How do I move
  a development app like this into production?

 Copy the file to the server. Bounce CF.

 

 This email is sent for and on behalf of Halliwells LLP.

 Halliwells LLP is a limited liability partnership registered in England and
 Wales under registered number OC307980 whose registered office address is at
 Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB. A list
 of members is available for inspection at the registered office together
 with a list of those non members who are referred to as partners. We use the
 word ?partner? to refer to a member of the LLP, or an employee or consultant
 with equivalent standing and qualifications. Regulated by the Solicitors
 Regulation Authority.

 CONFIDENTIALITY

 This email is intended only for the use of the addressee named above and
 may be confidential or legally privileged. If you are not the addressee you
 must not read it and must not use any information contained in nor copy it
 nor inform any person other than Halliwells LLP or the addressee of its
 existence or contents. If you have received this email in error please
 delete it and notify Halliwells LLP IT Department on 0870 365 2500.

 For more information about Halliwells LLP visit www.Halliwells.com.
  




-- 
j:pn
\\no comment


Re: [flexcoders] Moving flex app (coldfusion) to a production server

2009-08-05 Thread Johannes Nel
I have noticed a lot of developers tend to put hardcoded paths in there to
be able to debug since they use flex projects and not server projects.

On Wed, Aug 5, 2009 at 5:03 PM, Tom Chiverton
tom.chiver...@halliwells.comwrote:



 On Wednesday 05 Aug 2009, Johannes Nel wrote:
  then change it to
  endpoint url=rtmp://{server.name}:2038
  class=flex.messaging.endpoints.RTMPEndpoint/

 Curly braces are the default, and are filled in at run time by the client,
 for
 the record.

 --
 Helping to evangelistically seize mission-critical revolutionary extensible

 patterns as part of the IT team of the year, '09 and '08

 

 This email is sent for and on behalf of Halliwells LLP.

 Halliwells LLP is a limited liability partnership registered in England and
 Wales under registered number OC307980 whose registered office address is at
 Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB. A list
 of members is available for inspection at the registered office together
 with a list of those non members who are referred to as partners. We use the
 word ?partner? to refer to a member of the LLP, or an employee or consultant
 with equivalent standing and qualifications. Regulated by the Solicitors
 Regulation Authority.

 CONFIDENTIALITY

 This email is intended only for the use of the addressee named above and
 may be confidential or legally privileged. If you are not the addressee you
 must not read it and must not use any information contained in nor copy it
 nor inform any person other than Halliwells LLP or the addressee of its
 existence or contents. If you have received this email in error please
 delete it and notify Halliwells LLP IT Department on 0870 365 2500.

 For more information about Halliwells LLP visit www.Halliwells.com.
  




-- 
j:pn
\\no comment


Re: [flexcoders] how to enable stack traceback?

2009-08-04 Thread Johannes Nel
just using the debug player should give you that.

On Tue, Aug 4, 2009 at 3:54 PM, mitchgrrt mitch_g...@hotmail.com wrote:



 I've recently changed companies. At my old company in the Flex app we were
 developing, whenever there was an unhandled exception we got a stack
 traceback in a popup window. At my new company I'm not seeing that. I see it
 when running inside the debugger, in the console, but not when there is no
 debugger.

 I'd like to turn on the traceback and see it without the debugger. Does
 somebody know how to turn this on? I'm running FlexBuilder 3 on a Mac.
 Thanks.

  




-- 
j:pn
\\no comment


Re: [flexcoders] Re: Lcds via Tomcat on Mac - possible?

2009-07-31 Thread Johannes Nel
just grab the latest version of tomcat, drop them lcds jars under tomcat/lib
and remember to set the context in your application project xml under
tomcat/conf/Catalina/localhost/{project}.xml to include
Context
 Transaction factory=org.objectweb.jotm.UserTransactionFactory
jotm.timeout=60/
/Context

then you should really be good to go.
On Fri, Jul 31, 2009 at 6:38 AM, Steven Marcus s...@yahoo.com wrote:



 The lcds test drive as distributed by adobe, with an older version of
 tomcat, works on the mac -- although I think I installed the linux version
 on linux and then copied the installed/unpacked dir over to the mac.

 I think the problem you are running into is trying to get lcds installed
 correctly on a newer version of tomcat.

 There are some notes/hints in the livecycle release notes on how to go
 about
 setting up livecycle correctly.
 I remember doing a diff between a standard tomcat install and the tomcat
 provided by adobe to finally figure it out.

 You are likely to run into this problem running on all platforms, not just
 Macs.

 Good luck!

  




-- 
j:pn
\\no comment


Re: [flexcoders] Re: LCDS fallback and firewalls which inspect packets

2009-07-25 Thread Johannes Nel
Ok, so this was an interesting one in the end
In our dev and testing environments which are hosted on the amazon cloud
this was failing since the kernel did not have syn cookies compiled into the
kernel. Once we moved to a production enviroment (also debian but hosted
with a different company) it all started working.
Automagically.

On Wed, Jul 15, 2009 at 2:56 PM, Tom Chiverton tom.chiver...@halliwells.com
 wrote:



  On Tuesday 14 Jul 2009, Johannes Nel wrote:
  the https idea is worth a try. Thanks for the input.

 Or set up a site-to-site VPN.

 --
 Helping to biannually differentiate revolutionary vertical unique
 web-enabled
 environments as part of the IT team of the year, '09 and '08

 

 This email is sent for and on behalf of Halliwells LLP.

 Halliwells LLP is a limited liability partnership registered in England and
 Wales under registered number OC307980 whose registered office address is at
 Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB. A list
 of members is available for inspection at the registered office together
 with a list of those non members who are referred to as partners. We use the
 word ?partner? to refer to a member of the LLP, or an employee or consultant
 with equivalent standing and qualifications. Regulated by the Solicitors
 Regulation Authority.

 CONFIDENTIALITY

 This email is intended only for the use of the addressee named above and
 may be confidential or legally privileged. If you are not the addressee you
 must not read it and must not use any information contained in nor copy it
 nor inform any person other than Halliwells LLP or the addressee of its
 existence or contents. If you have received this email in error please
 delete it and notify Halliwells LLP IT Department on 0870 365 2500.

 For more information about Halliwells LLP visit www.Halliwells.com.
  




-- 
j:pn
\\no comment


[flexcoders] Tomcat LCDS configuration, contractor seeked

2009-07-14 Thread Johannes Nel
Hi All

We are having problems with configuring LCDS to work in all enviroments and
would like to hire a contracter to set it up for us. Please contact me
offlist if you have experience in this. We use  Tomcat 6 and LCDS 2.6.1.
My main concern is really fall back management.

Regards
Johan

-- 
j:pn
\\no comment


Re: [flexcoders] LCDS fallback and firewalls which inspect packets

2009-07-14 Thread Johannes Nel
I have. They  are not prepared to change their setup so I really want to get
hold of an expert who can solve or answer with finality.


On Tue, Jul 14, 2009 at 2:54 PM, Tom Chiverton tom.chiver...@halliwells.com
 wrote:



  On Tuesday 07 Jul 2009, Johannes Nel wrote:
  deity, has a network which inspects packets. They seem to be throwing out
  out all my AMF over http packets. So...is there something I can do?

 Presumably this is more than inspection, it's some sort of
 MPLS/DPI/application protocol security/etc. that rejects unknown (or
 unauthorised) protocols.
 I suggest you find their IT bods.


 --
 Helping to advantageously syndicate turn-key robust high-yield granular
 communities as part of the IT team of the year, '09 and '08

 

 This email is sent for and on behalf of Halliwells LLP.

 Halliwells LLP is a limited liability partnership registered in England and
 Wales under registered number OC307980 whose registered office address is at
 Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB. A list
 of members is available for inspection at the registered office together
 with a list of those non members who are referred to as partners. We use the
 word ?partner? to refer to a member of the LLP, or an employee or consultant
 with equivalent standing and qualifications. Regulated by the Solicitors
 Regulation Authority.

 CONFIDENTIALITY

 This email is intended only for the use of the addressee named above and
 may be confidential or legally privileged. If you are not the addressee you
 must not read it and must not use any information contained in nor copy it
 nor inform any person other than Halliwells LLP or the addressee of its
 existence or contents. If you have received this email in error please
 delete it and notify Halliwells LLP IT Department on 0870 365 2500.

 For more information about Halliwells LLP visit www.Halliwells.com.
  




-- 
j:pn
\\no comment


Re: [flexcoders] LCDS fallback and firewalls which inspect packets

2009-07-14 Thread Johannes Nel
Someone must see some easy money here! come on people!

On Tue, Jul 14, 2009 at 3:03 PM, Johannes Nel johannes@gmail.comwrote:

 I have. They  are not prepared to change their setup so I really want to
 get hold of an expert who can solve or answer with finality.



 On Tue, Jul 14, 2009 at 2:54 PM, Tom Chiverton 
 tom.chiver...@halliwells.com wrote:



  On Tuesday 07 Jul 2009, Johannes Nel wrote:
  deity, has a network which inspects packets. They seem to be throwing
 out
  out all my AMF over http packets. So...is there something I can do?

 Presumably this is more than inspection, it's some sort of
 MPLS/DPI/application protocol security/etc. that rejects unknown (or
 unauthorised) protocols.
 I suggest you find their IT bods.


 --
 Helping to advantageously syndicate turn-key robust high-yield granular
 communities as part of the IT team of the year, '09 and '08

 

 This email is sent for and on behalf of Halliwells LLP.

 Halliwells LLP is a limited liability partnership registered in England
 and Wales under registered number OC307980 whose registered office address
 is at Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB.
 A list of members is available for inspection at the registered office
 together with a list of those non members who are referred to as partners.
 We use the word ?partner? to refer to a member of the LLP, or an employee or
 consultant with equivalent standing and qualifications. Regulated by the
 Solicitors Regulation Authority.

 CONFIDENTIALITY

 This email is intended only for the use of the addressee named above and
 may be confidential or legally privileged. If you are not the addressee you
 must not read it and must not use any information contained in nor copy it
 nor inform any person other than Halliwells LLP or the addressee of its
 existence or contents. If you have received this email in error please
 delete it and notify Halliwells LLP IT Department on 0870 365 2500.

 For more information about Halliwells LLP visit www.Halliwells.com.
  




 --
 j:pn
 \\no comment




-- 
j:pn
\\no comment


Re: [flexcoders] Re: LCDS fallback and firewalls which inspect packets

2009-07-14 Thread Johannes Nel
the https idea is worth a try. Thanks for the input.

On Tue, Jul 14, 2009 at 8:07 PM, valdhor valdhorli...@embarqmail.comwrote:



 Just a couple of ideas...

 Try AMF over HTTPS.

 Could you use PPTP or L2TP?


 --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Johannes
 Nel johannes@... wrote:
 
  Someone must see some easy money here! come on people!
 
  On Tue, Jul 14, 2009 at 3:03 PM, Johannes Nel johannes@...wrote:
 
   I have. They are not prepared to change their setup so I really want to
   get hold of an expert who can solve or answer with finality.
  
  
  
   On Tue, Jul 14, 2009 at 2:54 PM, Tom Chiverton 
   tom.chiver...@... wrote:
  
  
  
   On Tuesday 07 Jul 2009, Johannes Nel wrote:
deity, has a network which inspects packets. They seem to be
 throwing
   out
out all my AMF over http packets. So...is there something I can do?
  
   Presumably this is more than inspection, it's some sort of
   MPLS/DPI/application protocol security/etc. that rejects unknown (or
   unauthorised) protocols.
   I suggest you find their IT bods.
  
  
   --
   Helping to advantageously syndicate turn-key robust high-yield
 granular
   communities as part of the IT team of the year, '09 and '08
  
   
  
   This email is sent for and on behalf of Halliwells LLP.
  
   Halliwells LLP is a limited liability partnership registered in
 England
   and Wales under registered number OC307980 whose registered office
 address
   is at Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3
 3EB.
   A list of members is available for inspection at the registered office
   together with a list of those non members who are referred to as
 partners.
   We use the word ?partner? to refer to a member of the LLP, or an
 employee or
   consultant with equivalent standing and qualifications. Regulated by
 the
   Solicitors Regulation Authority.
  
   CONFIDENTIALITY
  
   This email is intended only for the use of the addressee named above
 and
   may be confidential or legally privileged. If you are not the
 addressee you
   must not read it and must not use any information contained in nor
 copy it
   nor inform any person other than Halliwells LLP or the addressee of
 its
   existence or contents. If you have received this email in error please
   delete it and notify Halliwells LLP IT Department on 0870 365 2500.
  
   For more information about Halliwells LLP visit www.Halliwells.com.
  
  
  
  
  
   --
   j:pn
   \\no comment
  
 
 
 
  --
  j:pn
  \\no comment
 

  




-- 
j:pn
\\no comment


[flexcoders] LCDS fallback and firewalls which inspect packets

2009-07-07 Thread Johannes Nel
Hi All

We have our fall back mechanisms configured, we drop down to port 80 using
tunneling et al. Unfortunately my clients's biggest client, thus my meta
deity, has a network which inspects packets. They seem to be throwing out
out all my AMF over http packets. So...is there something I can do?

JOhan

-- 
j:pn
\\no comment


Re: [flexcoders] LCDS / Tomcat : port 2038 already in use

2009-06-30 Thread Johannes Nel
we have a similiar issue on our CI server with the same version of Tomcat
and LCDS,
we are forced to kill -KILL (-f) the process. as yet we have found no work
around.

I don't know if you have tried forcing the kill yet,  just going kill pid
does not always work for us.
ps ax | grep lcds (or lsof -i :2038)
shows the port still in use by a java process.
if you find a sollution please repost.

We are only using data management.

On Tue, Jun 30, 2009 at 12:35 PM, Besite - Bart b...@besite.be wrote:



  Hello,

 We are running a Livecycle application that runs in Tomcat 6 environment
 (Our livecycle version is 2.6.1).  Our application makes use
 of Data Management Service and Messaging Service (and so underlying there
 are rtmp connections on port 2038 and port 2039)

 We are facing a problem restarting tomcat... The Tomcat log shows the
 following error :

 SocketServer 'my-rtmp-SocketServer' cannot bind to accept client
 connections on port '2038' because another process has already bound the
 port. Please ensure that multiple 

 This error occurs when clients are still connected to our Application while
 restarting Tomcat.
 Even if we kill the processes that bind to port 2038, the port is not
 released.

 We now have a workaround : we stop Tomcat,  we wait until the port is
 finally given free (sometimes it takes about three minutes) and then
 we start Tomcat again...  However, this is not an option in our production
 environment, because we want to be able to deploy a new version in less than
 a minute..

 I suppose some of you have encountered this problem ? If you have a
 solution for this problem,.. please let us know ;

 Thank you !
 Bart Ronsyn


  




-- 
j:pn
\\no comment


[flexcoders] RDS configuration to postgres, FB4 + modeling

2009-06-25 Thread Johannes Nel
Hi

in my project.xml file (for tomcat) I am trying to setup a RDS connection to
a postgres  db.
i get the following error:

Data source not found: java:/comp/env/jdbc/dbName

I have tried

Resource name=jdbc/DbName type=javax.sql.DataSource
driverClassName=org.postgresql.Driver
maxIdle=2 maxWait=5000
url=jdbc:postgresql://username:passw...@localhost/dbName
username=username password=password maxActive=4
/
Resource name=jdbc/DbName type=javax.sql.DataSource
driverClassName=org.postgresql.Driver
maxIdle=2 maxWait=5000
url=postgresql://username:passw...@localhost/dbName
username=username password=password maxActive=4
/
and

Resource name=jdbc/DbName type=javax.sql.DataSource
driverClassName=org.postgresql.Driver
maxIdle=2 maxWait=5000
url=jdbc:postgresql://localhost/dbName username=username
password=password maxActive=4
/


How would I achieve this.

As a side note related to the licensing error i inquired about before:
 if i uninstal my FB4  and reinstal  (plugin on 3.4 modeling edition), my
Flash perpective works, once I close and reopen the eclipse instance, it
stops working (giving me the same licensing error (code 6) as it did
before). The modeling plugin continues working  once I reopen eclipse.

thanks
johan
\\no comment


[flexcoders] Re: RDS configuration to postgres, FB4 + modeling

2009-06-25 Thread Johannes Nel
stupid mistake.
the postgres jar must be in the tomcat/libs folder, project/web-inf/libs is
not enough
http://tomcat.apache.org/tomcat-5.5-doc/jndi-datasource-examples-howto.html

On Thu, Jun 25, 2009 at 7:45 PM, Johannes Nel johannes@gmail.comwrote:

 Hi

 in my project.xml file (for tomcat) I am trying to setup a RDS connection
 to a postgres  db.
 i get the following error:

 Data source not found: java:/comp/env/jdbc/dbName

 I have tried

 Resource name=jdbc/DbName type=javax.sql.DataSource
 driverClassName=org.postgresql.Driver
 maxIdle=2 maxWait=5000
 url=jdbc:postgresql://username:passw...@localhost/dbName
 username=username password=password maxActive=4
 /
 Resource name=jdbc/DbName type=javax.sql.DataSource
 driverClassName=org.postgresql.Driver
 maxIdle=2 maxWait=5000
 url=postgresql://username:passw...@localhost/dbName
 username=username password=password maxActive=4
 /
 and

 Resource name=jdbc/DbName type=javax.sql.DataSource
 driverClassName=org.postgresql.Driver
 maxIdle=2 maxWait=5000
 url=jdbc:postgresql://localhost/dbName username=username
 password=password maxActive=4
 /


 How would I achieve this.

 As a side note related to the licensing error i inquired about before:
  if i uninstal my FB4  and reinstal  (plugin on 3.4 modeling edition), my
 Flash perpective works, once I close and reopen the eclipse instance, it
 stops working (giving me the same licensing error (code 6) as it did
 before). The modeling plugin continues working  once I reopen eclipse.

 thanks
 johan
 \\no comment




-- 
j:pn
\\no comment


[flexcoders] flash builder 4 license error

2009-06-24 Thread Johannes Nel
Hi All

I managed to install the plugin version of Flash Builder 4 without an issue,
it gave me a license error but continued working, I installed the modeling
plugin and then my actionscript editor stopped working. A lot of the jars
that came with the modeling plugin were already part of my default eclipse
(3.4 modeling edition) so I uninstalled the plugin version and installed the
standalone and then added the modeling plugin again.

Now I get a license error and the standalone player does not even start up,
saying there is a license problem (twice) and I should restart my computer
(done).

any ideas?



-- 
j:pn
\\no comment


Re: [flexcoders] Re: ArrayCollection to Delimited String

2009-06-08 Thread Johannes Nel
if this has to be imported somewhere else you need to consider, what happens
if your delimiter is in a piece of text?

On Sun, Jun 7, 2009 at 2:25 PM, Angelo Anolin angelo_ano...@yahoo.comwrote:



 Hi Tim,

 Thanks for the tip(s). Was able to make this thing work out.

 Regards,

 Angelo

 --
 *From:* Tim Hoff timh...@aol.com
 *To:* flexcoders@yahoogroups.com
 *Sent:* Friday, 5 June, 2009 14:05:46
 *Subject:* [flexcoders] Re: ArrayCollection to Delimited String

  Well, let's not assume anything:

 private *function* parseArrayCollectio n():*void*
 {
  *var* myString:String = **;

  *for* *each* ( *var* myObject:Object *in* myAC )
  {
   myString += myObject.label + *|* + myObject.data + *||*;
  }
 *
  trace*(myString);
 }

 -TH


 --- In flexcod...@yahoogro ups.com, Tim Hoff timh...@... wrote:
 
 
  Assuming that you don't want the trailing pipes:
 
  private function parseArrayCollectio n():void {
 
 
 
  var myString:String = ;
 
 
 
  for each ( var myObject:Object in myAC )
  {
  myString += myObject.label + | + myObject.data;
 
  if ( myAC.getItemIndex( myObject )  myAC.length - 1 )
  {
  myString += |;
  }
  }
 
  trace(myString) ;
  }
 
  -TH
 
  --- In flexcod...@yahoogro ups.com, Angelo Anolin angelo_anolin@
  wrote:
  
   Hi FlexCoders,
  
   Supposed I have an ArrayCollection variable represented like below:
  
   mx:ArrayCollection id=myAC
   mx:Array id=myArray
   mx:Object label=MI data=Lansing /
   mx:Object label=MO data=Jefferson City/
   mx:Object label=MA data=Boston /
   mx:Object label=MT data=Helena /
   mx:Object label=ME data=Augusta /
   mx:Object label=MS data=Jackson /
   mx:Object label=MN data=Saint Paul/
   /mx:Array
   /mx:ArrayCollection
  
   I want to store the same in a String variable where the resulting
  string would be like:
  
   var ResultString: String;
   ResultString = MI|Lansing| |MO|Jefferson
  City||MA|Boston| |MT|Helena| |ME|Augusta| |MS|Jackson| |MN|Saint Paul||
  
   How do I achieve this?
  
   Inputs highly appreciated. Thanks.
  
   Regards,
  
   Angelo
  
 

  




-- 
j:pn
\\no comment


[flexcoders] case sensitive hard drive formatting

2009-06-02 Thread Johannes Nel
this is actually a problem for the whole cs4 suite, but i was amazed that
its the same for catalyst (as its built on eclipse). If you format your hard
drive case sensitive you cannot install catalyst (nor flash, photoshop...)
why?

-- 
j:pn
\\no comment


Re: [flexcoders] Re: LCDS problems using refreshCollection(value:ListCollectionView)

2009-06-02 Thread Johannes Nel
this even however fires a lot if you use that collection to manipulate data

On Tue, Jun 2, 2009 at 2:38 PM, rahul_bindu rahul_bi...@yahoo.com wrote:



 Kevin,
 This is a quick fix, you could listen to the
 CollectionEvent.COLLECTION_CHANGE on the managed collection. If you could
 post more code, I would be in a better position to solve the issue.

 Rahul.

 --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Kevin
 li...@... wrote:
 
  Is anyone out there using the feature of LCDS that allows you to
  refresh a managed collection (see below)? I am able to get the
  collection to refresh, but I can't seem to get any of the event
  handlers to fire, thus I can't listen for the result of the fill using
  (myDataService.addEventListener(ResultEvent.RESULT,handleResult). I
  have traced the result in my logs and I know I am attaching the
  listener to the correct dataService. I am wondering if this is a
  known bug or if it's something I am doing wrong.
 
  I am interested if anyone is having the same problem. Thanks, Kevin
 
  /**
  * Refreshes an array collection previously filled with the fill
  method or managed as
  * a managed association. This method makes a request to the
  server, fetches the new
  * version of any resident items in the collection using the fill
  parameters original used
  * with this collection or by fetching the property from the
  parent item.
  * If any changes are found, they merged into the collection in
  an incremental fashion.
  *
  * @return AsyncToken You can use this token to register one or
  more callback
  * functions to receive result or fault events from
  this refresh operation.
  * Null is returned if there is nothing to refresh for
  a paged collection.
  * This token is also returned in the codecall/
  code property of
  * the codeResultEvent.RESULT/code or in the
  * codeFaultEvent.FAULT/code.
  * Custom data can be attached to this object and
  inspected later
  * during the event handling phase.
  */
  public function
  refreshCollection(value:ListCollectionView):AsyncToken
 

  




-- 
j:pn
\\no comment


Re: [flexcoders] LCDS async error

2009-05-28 Thread Johannes Nel
I just love talking to myself.

No, the bug is not going to go away, I know people from Adobe read this
list. This is really a show stopper, can someone from Adobe take a look
please.

has anyone on this list tried to decompile the fds swc, if so can they mail
me off list and tell me how that worked out for them, kinda desperate by
now

On Wed, May 27, 2009 at 11:10 AM, Johannes Nel johannes@gmail.comwrote:

 Since Jeff has left Adobe, can someone from Adobe please check the source
 code on this.

 We are using build 2.6.0.201390 of the fds.swc.







 On Tue, May 26, 2009 at 11:13 AM, Johannes Nel johannes@gmail.comwrote:

 No, tis not 1, all our error handeling uses FaultEvent.

 How I would have approached this with other parts of the framework.
 Copy the adobe class into my src folder, make the change needed to avoid
 the error and let my changed class override the adobe implementation at
 compile time (what are the implications for this with split framework rsl?),
 obviously this is not an option now.

 :(




 On Mon, May 25, 2009 at 7:28 PM, Jeffrey Vroom j...@jvroom.com wrote:



 I see two possible things that could cause this error:

 1) you have a fault handler whose function definition takes a
 MessageFaultEvent parameter.  You need to change that to the common base
 class which is (I think) a FaultEvent so it can accept both a
 MessageFaultEvent and a DataServiceFaultEvent.
 2) there is a bug in LCDS where it is doing 1).

 If you check your code and you don't have any event handlers which take a
 MessageFaultEvent, it is probably 2).   I don't have access to the source
 anymore or I'd check into 2) for you...

 Jeff


 On Mon, May 25, 2009 at 5:17 AM, Johannes Nel johannes@gmail.comwrote:



 Hi All

 I have a LCDS app which must stay open for ages, deal with dodgy
 internet connections and all such fun things.
 Thus far we have managed to get the NetConnection to re-establish itself
 nicely when the line drops, but here is a wonderful error (which does not
 actually break the app) that i get after having the app open for a few
 hours,  only on OS X.

 So, the fact that it does not touch our code anywhere means that I have
 no way of trapping this. I would really like some advice on how i can
 suppress or even catch it.



 TypeError: Error #1034: Type Coercion failed: cannot convert
 mx.data.events::dataservicefaultev...@2cb864c1 to
 mx.messaging.events.MessageFaultEvent.
 at mx.data::ConcreteDataService/sendRefreshFault()
 at mx.rpc::AsyncResponder/fault()
 at mx.rpc::AsyncToken/
 http://www.adobe.com/2006/flex/mx/internal::applyFault()http://www.adobe.com/2006/flex/mx/internal::applyFault%28%29
 at mx.rpc.events::FaultEvent/
 http://www.adobe.com/2006/flex/mx/internal::callTokenResponders()http://www.adobe.com/2006/flex/mx/internal::callTokenResponders%28%29
 at mx.data::ConcreteDataService/
 http://www.adobe.com/2006/flex/mx/internal::dispatchFaultEvent()http://www.adobe.com/2006/flex/mx/internal::dispatchFaultEvent%28%29
 at DataListRequestResponder/fault()
 at mx.rpc::AsyncRequest/fault()
 at NetConnectionMessageResponder/channelDisconnectHandler()
 at flash.events::EventDispatcher/dispatchEventFunction()
 at flash.events::EventDispatcher/dispatchEvent()
 at mx.messaging::Channel/disconnectSuccess()
 at mx.messaging.channels::NetConnectionChannel/internalDisconnect()
 at mx.messaging.channels::RTMPChannel/internalDisconnect()
 at mx.messaging.channels::RTMPChannel/statusHandler()

 regards
 Johan
 --
 j:pn
 \\no comment


  




 --
 j:pn
 \\no comment




 --
 j:pn
 \\no comment




-- 
j:pn
\\no comment


Re: [flexcoders] LCDS async error

2009-05-27 Thread Johannes Nel
Since Jeff has left Adobe, can someone from Adobe please check the source
code on this.

We are using build 2.6.0.201390 of the fds.swc.






On Tue, May 26, 2009 at 11:13 AM, Johannes Nel johannes@gmail.comwrote:

 No, tis not 1, all our error handeling uses FaultEvent.

 How I would have approached this with other parts of the framework.
 Copy the adobe class into my src folder, make the change needed to avoid
 the error and let my changed class override the adobe implementation at
 compile time (what are the implications for this with split framework rsl?),
 obviously this is not an option now.

 :(




 On Mon, May 25, 2009 at 7:28 PM, Jeffrey Vroom j...@jvroom.com wrote:



 I see two possible things that could cause this error:

 1) you have a fault handler whose function definition takes a
 MessageFaultEvent parameter.  You need to change that to the common base
 class which is (I think) a FaultEvent so it can accept both a
 MessageFaultEvent and a DataServiceFaultEvent.
 2) there is a bug in LCDS where it is doing 1).

 If you check your code and you don't have any event handlers which take a
 MessageFaultEvent, it is probably 2).   I don't have access to the source
 anymore or I'd check into 2) for you...

 Jeff


 On Mon, May 25, 2009 at 5:17 AM, Johannes Nel johannes@gmail.comwrote:



 Hi All

 I have a LCDS app which must stay open for ages, deal with dodgy internet
 connections and all such fun things.
 Thus far we have managed to get the NetConnection to re-establish itself
 nicely when the line drops, but here is a wonderful error (which does not
 actually break the app) that i get after having the app open for a few
 hours,  only on OS X.

 So, the fact that it does not touch our code anywhere means that I have
 no way of trapping this. I would really like some advice on how i can
 suppress or even catch it.



 TypeError: Error #1034: Type Coercion failed: cannot convert
 mx.data.events::dataservicefaultev...@2cb864c1 to
 mx.messaging.events.MessageFaultEvent.
 at mx.data::ConcreteDataService/sendRefreshFault()
 at mx.rpc::AsyncResponder/fault()
 at mx.rpc::AsyncToken/
 http://www.adobe.com/2006/flex/mx/internal::applyFault()http://www.adobe.com/2006/flex/mx/internal::applyFault%28%29
 at mx.rpc.events::FaultEvent/
 http://www.adobe.com/2006/flex/mx/internal::callTokenResponders()http://www.adobe.com/2006/flex/mx/internal::callTokenResponders%28%29
 at mx.data::ConcreteDataService/
 http://www.adobe.com/2006/flex/mx/internal::dispatchFaultEvent()http://www.adobe.com/2006/flex/mx/internal::dispatchFaultEvent%28%29
 at DataListRequestResponder/fault()
 at mx.rpc::AsyncRequest/fault()
 at NetConnectionMessageResponder/channelDisconnectHandler()
 at flash.events::EventDispatcher/dispatchEventFunction()
 at flash.events::EventDispatcher/dispatchEvent()
 at mx.messaging::Channel/disconnectSuccess()
 at mx.messaging.channels::NetConnectionChannel/internalDisconnect()
 at mx.messaging.channels::RTMPChannel/internalDisconnect()
 at mx.messaging.channels::RTMPChannel/statusHandler()

 regards
 Johan
 --
 j:pn
 \\no comment


  




 --
 j:pn
 \\no comment




-- 
j:pn
\\no comment


Re: [flexcoders] LCDS async error

2009-05-26 Thread Johannes Nel
No, tis not 1, all our error handeling uses FaultEvent.

How I would have approached this with other parts of the framework.
Copy the adobe class into my src folder, make the change needed to avoid the
error and let my changed class override the adobe implementation at compile
time (what are the implications for this with split framework rsl?),
obviously this is not an option now.

:(



On Mon, May 25, 2009 at 7:28 PM, Jeffrey Vroom j...@jvroom.com wrote:



 I see two possible things that could cause this error:

 1) you have a fault handler whose function definition takes a
 MessageFaultEvent parameter.  You need to change that to the common base
 class which is (I think) a FaultEvent so it can accept both a
 MessageFaultEvent and a DataServiceFaultEvent.
 2) there is a bug in LCDS where it is doing 1).

 If you check your code and you don't have any event handlers which take a
 MessageFaultEvent, it is probably 2).   I don't have access to the source
 anymore or I'd check into 2) for you...

 Jeff


 On Mon, May 25, 2009 at 5:17 AM, Johannes Nel johannes@gmail.comwrote:



 Hi All

 I have a LCDS app which must stay open for ages, deal with dodgy internet
 connections and all such fun things.
 Thus far we have managed to get the NetConnection to re-establish itself
 nicely when the line drops, but here is a wonderful error (which does not
 actually break the app) that i get after having the app open for a few
 hours,  only on OS X.

 So, the fact that it does not touch our code anywhere means that I have no
 way of trapping this. I would really like some advice on how i can suppress
 or even catch it.



 TypeError: Error #1034: Type Coercion failed: cannot convert
 mx.data.events::dataservicefaultev...@2cb864c1 to
 mx.messaging.events.MessageFaultEvent.
 at mx.data::ConcreteDataService/sendRefreshFault()
 at mx.rpc::AsyncResponder/fault()
 at mx.rpc::AsyncToken/
 http://www.adobe.com/2006/flex/mx/internal::applyFault()http://www.adobe.com/2006/flex/mx/internal::applyFault%28%29
 at mx.rpc.events::FaultEvent/
 http://www.adobe.com/2006/flex/mx/internal::callTokenResponders()http://www.adobe.com/2006/flex/mx/internal::callTokenResponders%28%29
 at mx.data::ConcreteDataService/
 http://www.adobe.com/2006/flex/mx/internal::dispatchFaultEvent()http://www.adobe.com/2006/flex/mx/internal::dispatchFaultEvent%28%29
 at DataListRequestResponder/fault()
 at mx.rpc::AsyncRequest/fault()
 at NetConnectionMessageResponder/channelDisconnectHandler()
 at flash.events::EventDispatcher/dispatchEventFunction()
 at flash.events::EventDispatcher/dispatchEvent()
 at mx.messaging::Channel/disconnectSuccess()
 at mx.messaging.channels::NetConnectionChannel/internalDisconnect()
 at mx.messaging.channels::RTMPChannel/internalDisconnect()
 at mx.messaging.channels::RTMPChannel/statusHandler()

 regards
 Johan
 --
 j:pn
 \\no comment


  




-- 
j:pn
\\no comment


[flexcoders] LCDS async error

2009-05-25 Thread Johannes Nel
Hi All

I have a LCDS app which must stay open for ages, deal with dodgy internet
connections and all such fun things.
Thus far we have managed to get the NetConnection to re-establish itself
nicely when the line drops, but here is a wonderful error (which does not
actually break the app) that i get after having the app open for a few
hours,  only on OS X.

So, the fact that it does not touch our code anywhere means that I have no
way of trapping this. I would really like some advice on how i can suppress
or even catch it.



TypeError: Error #1034: Type Coercion failed: cannot convert
mx.data.events::dataservicefaultev...@2cb864c1 to
mx.messaging.events.MessageFaultEvent.
at mx.data::ConcreteDataService/sendRefreshFault()
at mx.rpc::AsyncResponder/fault()
at mx.rpc::AsyncToken/
http://www.adobe.com/2006/flex/mx/internal::applyFault()
at mx.rpc.events::FaultEvent/
http://www.adobe.com/2006/flex/mx/internal::callTokenResponders()
at mx.data::ConcreteDataService/
http://www.adobe.com/2006/flex/mx/internal::dispatchFaultEvent()
at DataListRequestResponder/fault()
at mx.rpc::AsyncRequest/fault()
at NetConnectionMessageResponder/channelDisconnectHandler()
at flash.events::EventDispatcher/dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at mx.messaging::Channel/disconnectSuccess()
at mx.messaging.channels::NetConnectionChannel/internalDisconnect()
at mx.messaging.channels::RTMPChannel/internalDisconnect()
at mx.messaging.channels::RTMPChannel/statusHandler()

regards
Johan
-- 
j:pn
\\no comment


[flexcoders] Re: LCDS async error

2009-05-25 Thread Johannes Nel
My bad, we get it on windows as well.

On Mon, May 25, 2009 at 2:17 PM, Johannes Nel johannes@gmail.comwrote:

 Hi All

 I have a LCDS app which must stay open for ages, deal with dodgy internet
 connections and all such fun things.
 Thus far we have managed to get the NetConnection to re-establish itself
 nicely when the line drops, but here is a wonderful error (which does not
 actually break the app) that i get after having the app open for a few
 hours,  only on OS X.

 So, the fact that it does not touch our code anywhere means that I have no
 way of trapping this. I would really like some advice on how i can suppress
 or even catch it.



 TypeError: Error #1034: Type Coercion failed: cannot convert
 mx.data.events::dataservicefaultev...@2cb864c1 to
 mx.messaging.events.MessageFaultEvent.
 at mx.data::ConcreteDataService/sendRefreshFault()
 at mx.rpc::AsyncResponder/fault()
 at mx.rpc::AsyncToken/
 http://www.adobe.com/2006/flex/mx/internal::applyFault()http://www.adobe.com/2006/flex/mx/internal::applyFault%28%29
 at mx.rpc.events::FaultEvent/
 http://www.adobe.com/2006/flex/mx/internal::callTokenResponders()http://www.adobe.com/2006/flex/mx/internal::callTokenResponders%28%29
 at mx.data::ConcreteDataService/
 http://www.adobe.com/2006/flex/mx/internal::dispatchFaultEvent()http://www.adobe.com/2006/flex/mx/internal::dispatchFaultEvent%28%29
 at DataListRequestResponder/fault()
 at mx.rpc::AsyncRequest/fault()
 at NetConnectionMessageResponder/channelDisconnectHandler()
 at flash.events::EventDispatcher/dispatchEventFunction()
 at flash.events::EventDispatcher/dispatchEvent()
 at mx.messaging::Channel/disconnectSuccess()
 at mx.messaging.channels::NetConnectionChannel/internalDisconnect()
 at mx.messaging.channels::RTMPChannel/internalDisconnect()
 at mx.messaging.channels::RTMPChannel/statusHandler()

 regards
 Johan
 --
 j:pn
 \\no comment




-- 
j:pn
\\no comment


[flexcoders] Re: LCDS async error

2009-05-25 Thread Johannes Nel
this is a show stopper here for us. I realise why the code is not availible,
but an unhandleble error coming from the lcds swc's is a pain. anyone...?

On Mon, May 25, 2009 at 3:36 PM, Johannes Nel johannes@gmail.comwrote:

 My bad, we get it on windows as well.


 On Mon, May 25, 2009 at 2:17 PM, Johannes Nel johannes@gmail.comwrote:

 Hi All

 I have a LCDS app which must stay open for ages, deal with dodgy internet
 connections and all such fun things.
 Thus far we have managed to get the NetConnection to re-establish itself
 nicely when the line drops, but here is a wonderful error (which does not
 actually break the app) that i get after having the app open for a few
 hours,  only on OS X.

 So, the fact that it does not touch our code anywhere means that I have no
 way of trapping this. I would really like some advice on how i can suppress
 or even catch it.



 TypeError: Error #1034: Type Coercion failed: cannot convert
 mx.data.events::dataservicefaultev...@2cb864c1 to
 mx.messaging.events.MessageFaultEvent.
 at mx.data::ConcreteDataService/sendRefreshFault()
 at mx.rpc::AsyncResponder/fault()
 at mx.rpc::AsyncToken/
 http://www.adobe.com/2006/flex/mx/internal::applyFault()http://www.adobe.com/2006/flex/mx/internal::applyFault%28%29
 at mx.rpc.events::FaultEvent/
 http://www.adobe.com/2006/flex/mx/internal::callTokenResponders()http://www.adobe.com/2006/flex/mx/internal::callTokenResponders%28%29
 at mx.data::ConcreteDataService/
 http://www.adobe.com/2006/flex/mx/internal::dispatchFaultEvent()http://www.adobe.com/2006/flex/mx/internal::dispatchFaultEvent%28%29
 at DataListRequestResponder/fault()
 at mx.rpc::AsyncRequest/fault()
 at NetConnectionMessageResponder/channelDisconnectHandler()
 at flash.events::EventDispatcher/dispatchEventFunction()
 at flash.events::EventDispatcher/dispatchEvent()
 at mx.messaging::Channel/disconnectSuccess()
 at mx.messaging.channels::NetConnectionChannel/internalDisconnect()
 at mx.messaging.channels::RTMPChannel/internalDisconnect()
 at mx.messaging.channels::RTMPChannel/statusHandler()

 regards
 Johan
 --
 j:pn
 \\no comment




 --
 j:pn
 \\no comment




-- 
j:pn
\\no comment


Re: [flexcoders] HyperThreading...

2009-05-18 Thread Johannes Nel
The player is not really single threaded. We might not be able to kick off
more threads, but with stuff like alchemy, pixelbender (or any async process
going outside the player) it is multi threaded.

On Mon, May 18, 2009 at 12:42 PM, Paul Andrews p...@ipauland.com wrote:



  - Original Message -

  *From:* Tom Chiverton tom.chiver...@halliwells.com
 *To:* flexcoders@yahoogroups.com
 *Sent:* Monday, May 18, 2009 10:01 AM
 *Subject:* Re: [flexcoders] HyperThreading...



 On Monday 18 May 2009, Laurence MacNeill wrote:
  Does anyone know if the Flash Player supports HyperThreading?

 Applications don't, in general, support or not HT as that's at the O/S
 level.

 Strictly that's true, but other technologies (such as Java) allow multiple
 threads of execution and are able to take advantage of HT if they are
 written with multiple threads.

 Given the availability of multiple cores these days, I'd hope that
 actionscript (and the player) would embrace this, though it's  MAJOR change
 in application development.

 The player is single-threaded at the moment so cannot use a second core -
 as Tom says. :-(

 Paul



  other words, will my program run faster on a CPU that has
  HyperThreading? Or will it not make any difference?

 If it's fairly CPU-bound (and nothing else is), it'll probably feel faster
 because there's less contention for the CPU resource.

 --
 Helping to biannually promote low-risk e-tailers as part of the IT team of
 the
 year, '09 and '08


Tom Chiverton
 Developer
 Tel: +44 0161 618 5032
 Fax: +44 0161 618 5099
 tom.chiver...@halliwells.com
 3 Hardman Square, Manchester, M3 3EB
 www.Halliwells.com

 

 This email is sent for and on behalf of Halliwells LLP.

 Halliwells LLP is a limited liability partnership registered in England and
 Wales under registered number OC307980 whose registered office address is at
 Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB. A list
 of members is available for inspection at the registered office together
 with a list of those non members who are referred to as partners. We use the
 word ?partner? to refer to a member of the LLP, or an employee or consultant
 with equivalent standing and qualifications. Regulated by the Solicitors
 Regulation Authority.

 CONFIDENTIALITY

 This email is intended only for the use of the addressee named above and
 may be confidential or legally privileged. If you are not the addressee you
 must not read it and must not use any information contained in nor copy it
 nor inform any person other than Halliwells LLP or the addressee of its
 existence or contents. If you have received this email in error please
 delete it and notify Halliwells LLP IT Department on 0870 365 2500.

 For more information about Halliwells LLP visit www.Halliwells.com.

  




-- 
j:pn
\\no comment


Re: [flexcoders] Remote Desktop

2009-04-30 Thread Johannes Nel
darron schall wrote a vnc client. obviously this is not exactly what you are
looking for.
Acrobat connect (previously called breeze) is the thing for you most likely,
and you can extend that (aka load swf's in if my memory serves correctly
since this came from central, to breeze to ...)

On Thu, Apr 30, 2009 at 6:58 AM, meaglith genednapara...@gmail.com wrote:



  You could try acrobat.com...


 On Sat, Apr 25, 2009 at 2:07 PM, venkat eswar cooler...@yahoo.com wrote:



 Can we do Remote Desktop feature in Flex like one in GoToMeeting




  




-- 
j:pn
\\no comment


Re: [flexcoders] Re: best ftp client

2009-04-30 Thread Johannes Nel
i like total commander the most personally on a windows box. on a mac fetch.

On Thu, Apr 30, 2009 at 1:30 AM, Tracy Spratt tr...@nts3rd.com wrote:



  Me too.  I’ve never done a lot of ftp, but FileZilla was easy to use and
 does all all need so far.



 Tracy Spratt,

 Lariat Services, development services available
   --

 *From:* flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] *On
 Behalf Of *valdhor
 *Sent:* Wednesday, April 29, 2009 8:30 AM
 *To:* flexcoders@yahoogroups.com
 *Subject:* [flexcoders] Re: best ftp client






  I'm a big fan of FileZilla (http://filezilla-project.org/)

 --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com,
 stinasius stinas...@... wrote:
 
  what is the best free ftp client to use to upload flex app to remote
 server?
 
   




-- 
j:pn
\\no comment


Re: [flexcoders] Flex Builder on Linux been scrapped ?

2009-04-28 Thread Johannes Nel
:(

On Tue, Apr 28, 2009 at 4:43 PM, Tom Chiverton tom.chiver...@halliwells.com
 wrote:





 It looks like Builder on Linux might be a gonner
 (http://gruchalski.com/2009/04/22/flex-builder-3-for-linux-on-hold/) -
 register your support for the product by voting for
 http://bugs.adobe.com/jira/browse/FB-19053


   Tom Chiverton
  Developer
  Tel: +44 0161 618 5032
 Fax: +44 0161 618 5099
  tom.chiver...@halliwells.com
  3 Hardman Square, Manchester, M3 3EB
  www.Halliwells.com

  

 This email is sent for and on behalf of Halliwells LLP.

 Halliwells LLP is a limited liability partnership registered in England and
 Wales under registered number OC307980 whose registered office address is at
 Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB. A list
 of members is available for inspection at the registered office together
 with a list of those non members who are referred to as partners. We use the
 word “partner” to refer to a member of the LLP, or an employee or consultant
 with equivalent standing and qualifications. Regulated by the Solicitors
 Regulation Authority.

 CONFIDENTIALITY

 This email is intended only for the use of the addressee named above and
 may be confidential or legally privileged. If you are not the addressee you
 must not read it and must not use any information contained in nor copy it
 nor inform any person other than Halliwells LLP or the addressee of its
 existence or contents. If you have received this email in error please
 delete it and notify Halliwells LLP IT Department on 0870 365 2500.

 For more information about Halliwells LLP visit www.Halliwells.com.


  




-- 
j:pn
\\no comment


[flexcoders] Re: No message broker found

2009-04-01 Thread Johannes Nel
work around for my use case:
because a client uploads a file which then starts the multiple inserts into
the managed collection i could refresh that collection from the client side
after my upload  complete event.
Because the client then gets new data, all other clients's (with that
managed collection open) data also updates.
This would obviously not work if the change to my data was initiated by a
non flex client.


On Tue, Mar 31, 2009 at 6:36 PM, Johannes Nel johannes@gmail.comwrote:

 Hi All

 Using a many to one relationship on a collection and I have more than one
 client which has the collection visible.
 From my java code I refresh my fills and then I get the no message broker
 error. Yet if I add anything to the collection from within my flex app the
 changes propagate fine.
 So really this only happens when telling my hibernate assembler to refresh
 post me creating more items in the collection. The error is as clear as mud,
 so can someone point me in some direction.

 johan

 --
 j:pn
 \\no comment




-- 
j:pn
\\no comment


[flexcoders] No message broker found

2009-03-31 Thread Johannes Nel
Hi All

Using a many to one relationship on a collection and I have more than one
client which has the collection visible.
From my java code I refresh my fills and then I get the no message broker
error. Yet if I add anything to the collection from within my flex app the
changes propagate fine.
So really this only happens when telling my hibernate assembler to refresh
post me creating more items in the collection. The error is as clear as mud,
so can someone point me in some direction.

johan

-- 
j:pn
\\no comment


Re: [flexcoders] Array of objects

2009-03-13 Thread Johannes Nel
the annotation is not only for mxml. Vector is really fast, so if possible
use that.

On Fri, Mar 13, 2009 at 5:25 PM, Maciek Sakrejda msakre...@truviso.comwrote:

   Note that the annotation is only for compile-time checking (and only for
 MXML, it looks like?), so you were still mostly correct, Paul.

 If he wants to get really fancy and can require FlashPlayer 10, there's
 always Vector: http://livedocs.adobe.com/flex/3/langref/Vector.html

 --
 Maciek Sakrejda
 Truviso, Inc.
 http://www.truviso.com


 -Original Message-
 From: Paul Andrews p...@ipauland.com paul%40ipauland.com
 Reply-to: flexcoders@yahoogroups.com flexcoders%40yahoogroups.com
 To: flexcoders@yahoogroups.com flexcoders%40yahoogroups.com
 Subject: Re: [flexcoders] Array of objects
 Date: Fri, 13 Mar 2009 09:02:55 -

 LOL, I should be doing the tutorials!


 http://livedocs.adobe.com/flex/201/html/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Book_Partsfile=metadata_141_05.html

 Paul

 - Original Message -
 From: Paul Andrews p...@ipauland.com paul%40ipauland.com
 To: flexcoders@yahoogroups.com flexcoders%40yahoogroups.com
 Sent: Friday, March 13, 2009 8:59 AM
 Subject: Re: [flexcoders] Array of objects

 
  - Original Message -
  From: christophe_jacquelin 
  christophe_jacque...@yahoo.frchristophe_jacquelin%40yahoo.fr
 
  To: flexcoders@yahoogroups.com flexcoders%40yahoogroups.com
  Sent: Friday, March 13, 2009 8:46 AM
  Subject: [flexcoders] Array of objects
 
 
  Hello,
 
  How to declare an array of n Objects of the class myClass ? How did
 we
  indicates the type of the object to the array ?
 
  private var myArray:Array = []; // You cannot give the array a
 dimension,
  nor can you type the obects it holds
  private var anArray:Array = new Array(); // alternative. Naturally it
  doesn't have to be private..
 
  Please do some tutorials Christophe.
 
  Paul
 
 
  Thank you,
  Christophe,
 
 
 
  
 
  --
  Flexcoders Mailing List
  FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
  Alternative FAQ location:
 

 https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847
  Search Archives:
  http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups
  Links
 
 
 
 
 
 
  
 
  --
  Flexcoders Mailing List
  FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
  Alternative FAQ location:
 

 https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847
  Search Archives:
  http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups
  Links
 
 
 

  




-- 
j:pn
\\no comment


[flexcoders] adg as adg renderer - sizing the child renderers.

2009-03-03 Thread Johannes Nel
Hi All

When using an adg as the renderer for another adg, has anyone got any tipes
on how to size the child renderers so i don't have empty rows.

thanks
-- 
j:pn
\\no comment


Re: [flexcoders] adg as adg renderer - sizing the child renderers.

2009-03-03 Thread Johannes Nel
i cannot determine this at the point where my factory gets created, also the
rows get reused.

On Tue, Mar 3, 2009 at 7:33 PM, Tracy Spratt tspr...@lariatinc.com wrote:

Set the rowCount = to the number of items in the dataProvider?


  --

 *From:* flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] *On
 Behalf Of *Johannes Nel
 *Sent:* Tuesday, March 03, 2009 9:43 AM
 *To:* flexcoders@yahoogroups.com
 *Subject:* [flexcoders] adg as adg renderer - sizing the child renderers.



 Hi All

 When using an adg as the renderer for another adg, has anyone got any tipes
 on how to size the child renderers so i don't have empty rows.

 thanks
 --
 j:pn
 \\no comment
   




-- 
j:pn
\\no comment


Re: [flexcoders] Send an object via an ItemRenderer in a DataGrid

2009-02-25 Thread Johannes Nel
instead of passing a class factory to the render pass an instance of
ifactory, passing the needed variables to the constructer of your custom
factory. then in newInstance of your ifactory set the needed variables on
that new instance. remember that your renderers will get reused, so
newInstance will not be called during the same invalidation cycles as set
data.

On Wed, Feb 25, 2009 at 3:19 PM, yossi.baram yossi.ba...@yahoo.com wrote:

   Hi helper,
 In my columns I call my ItemRenderer cellValueRenderer

 rendererProvider = new AdvancedDataGridRendererProvider();
 rendererProvider.columnIndex=2;
 rendererProvider.renderer= new ClassFactory(cellValueRenderer);
 rendererProvider.dataField='col1';

 advancedDataGrid.rendererProviders.push(rendererProvider);

 I need to send to this renderer and object with properties, to enable
 me use them when I override data() function.

 Can It be done?
 The only info exposed to me in the renderer is the dataprovider and
 column name  id.

 Thanks a lot

 Jo

  




-- 
j:pn
\\no comment


Re: Re: [flexcoders] In AIR Application fonts getting distort

2009-02-17 Thread Johannes Nel
embed the font. its air after all so file size is not a concern

On Tue, Feb 17, 2009 at 12:55 PM, verma.lu...@gmail.com wrote:

   Yes I did it but still not the font is distorting.

 Best,
 Ashish
 
  Did you clean the project after migrating to Flex 3.2?
  Haykel Ben Jemia
 
  Allmas
  Web RIA Development
  http://www.allmas-tn.com
 
  On Tue, Feb 17, 2009 at 10:52 AM, Ashish Verma verma.lu...@gmail.com
 wrote:
 
  Hello All,
 
  Facing a strange problem. Actually I made an application using Flex - 3.0
 later I build it Flex SDK 3.2 now on MAC system the font is getting distort
 what is wrong with application. I can see only the font with bold weight
 getting distort.
 
  Please advice me.
 
 
 
 
 
 
  Best,
  Ashish
  




-- 
j:pn
\\no comment


Re: [flexcoders] AMF instead of XML over http?

2009-02-17 Thread Johannes Nel
you mean build an swf and download that and get the compiled in data from
that

On Tue, Feb 17, 2009 at 12:45 PM, Guy Morton g...@alchemy.com.au wrote:

   Is it possible to simply transfer data over http that has been encoded
 in AMF format, ie to bypass all the other remoting stuff and just use
 AMF as one might use XML? I've been looking at the docs and online and
 all the docs seem to assume you want the whole remoting thing with a
 gateway etc. I want to keep using http and just change the data format
 to AMF3. Is this possible? If so, is there a right way to do it, and
 can anyone point me in the right direction?

 TIA

 Guy
  




-- 
j:pn
\\no comment


Re: [flexcoders] Re: How to read the received ByteArray as SQLite?

2009-02-16 Thread Johannes Nel
you have to write it to the file system. if security is your concern encrypt
it. we do this a lot, but we do not send it over web services, just using
https get.

On Mon, Feb 16, 2009 at 5:58 PM, handitan handi...@yahoo.com wrote:

   I would like to clear one thing:
 - The .Net webservice returns the bytearray-conversion of a SQLite
 file from the server.


 --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com,
 handitan handi...@... wrote:
 
  Hi all,
 
  I have a .Net webservice the bytearray-conversion of a SQLite file.
  My client call the webservice and I received the byteArray as
 expected
  but I couldn't treat it as SQLite until I do the following:
  - Write the byteArray to a file with .db extension.
  - Then open the SQLConnection to that file.
 
  So is there a way to treat the byteArray as SQLite without saving it
  first to the local storage and read it?
 
  Thx!
 

  




-- 
j:pn
\\no comment


Re: [flexcoders] Re: Help Me for SharedObject and registerClassAlias method

2009-02-16 Thread Johannes Nel
watch out for classes that take arguments in the constructer or java style
enums.

On Mon, Feb 16, 2009 at 12:07 AM, Braam Genis braamge...@gmail.com wrote:

   Use the metadata tag [RemoteClass(alias=WindowInfo)] above your
 WindowInfo class declaration and your objects should be typed when you
 retrieve them from SharedObject.


 On Sun, Feb 15, 2009 at 3:59 PM, valdhor valdhorli...@embarqmail.comwrote:

   I don't think you can do that. A SharedObject is just an object. What
 you would need to do is put the WindowInfo objects you want to store
 into an array and store the array in the SharedObject. When you want
 to retrieve the WindowInfo objects, read them into an array and coerce
 each array item into a WindowInfo object.


 --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com,
 thelordsince1984 lore...@... wrote:
 
  Hi,
 
  i've yet posted this question but i can't resolve this problem..
 
  i've created a custom value object class..a simple class with private
  properties and getters methods to retrieve them.
 
  public class WindowInfo
  {
 
  private var _id:String;
 
  private var _module:String
 
  private var _xpos:int;
 
  private var _ypos:int;
 
  private var _width:int;
 
  private var _height:int;
 
  public function WindowInfo(id:String, module:String, xpos:int,
  ypos:int, width:int, height:int)
  {
  this._id = id;
  this._module = module;
  this._xpos = xpos;
  this._ypos = ypos;
  this._width = width;
  this._height = height;
  }
 
  public function get id():String {
  return _id;
  }
 
  public function get module():String {
  return _module;
  }
 
  public function get xpos():int {
  return _xpos;
  }
 
  public function get ypos():int {
  return _ypos;
  }
 
  public function get width():int {
  return _width;
  }
 
  public function get height():int {
  return _height;
  }
  }
 
  then i created an array collection where each item is an istance of
  value object.
  then i have a shared object manager that looks like this:
 
  package util{
 
  import flash.net.SharedObject;
 
  import mx.collections.ArrayCollection;
 
  public class SharedObjectApplicationManager {
 
  private var mySO:SharedObject;
  private var ac:ArrayCollection;
  private var lsoType:String;
 
  public function SharedObjectApplicationManager(s:String) {
  init(s);
  }
 
  private function init(s:String):void {
  mySO = SharedObject.getLocal(s);
  if (getf()) {
  getf();
  }
  }
 
  public function getf():ArrayCollection {
  return mySO.data.arrayc;
  }
 
  private function adda(array:ArrayCollection):void {
  mySO.data.arrayc = new ArrayCollection();
  mySO.data.arrayc = array;
  mySO.flush();
  }
  }
  }
 
  so when i try to get arraycollection with getf method i get an
  arraycollection of generic objects…not with windowinfo objects..in
  this manner i can't get value properties of value object class.
 
  so i would use registerClassAlias(Info, WindowInfo) where WindowInfo
  is the VO..but where?
 
  the architecture of my app is:
 
  -main application (verify the shared object, if full then call a
  public function of canvas to create windows with specific parameters
  saved in windowinfo class)
  –canvas (contains one or more windows)
 
  any suggestions?
 
  Thanks in advance
 
  Regards Lorenzo
 


  




-- 
j:pn
\\no comment


[flexcoders] advanced datagrid error weirdness

2009-02-13 Thread Johannes Nel
hey,
actually hoping someone from the adg team can tell me what on a certain line
would be giving an error.

I use sdk 3.0

so i have an adg which renderers another adg. detail is not really that
important. i have a mock data set in 2 different projects (1 being the main
app i am working on and the other being an adg sample to try and replicate
my error).

the sample app uses the same IFactory, ADGRenderer, columns, hierachial data
descriptor (and of course the mock data set).

 the error i get is
TypeError: Error #1034: Type Coercion failed: cannot convert null to
Class.
at
mx.controls::AdvancedDataGrid/initListData()[C:\Work\flex\dmv_automation\projects\datavisualisation\src\mx\controls\AdvancedDataGrid.as:5476]

I am specifically interested in what is on that one line, since my sample
app works perfectly and my main app does not. I realise that this means its
somehting in my own code (the difference between the two apps is complexity
of the application structure.)

my sample app consists of

view
  - presmodel
  - my adg component

where my presentation model exposes via bindings my columns, data provider
and renderer

in contrast to this my main app is

view
 -presModel
-component
   -presModel
   -my adg component.

i think this means that some binding is not firing all the way through my
chains, but which one (i cannot figure this since i cannot debug the adg :(
)

anyway, whats on that line, and what variable is null.

(as a side note, i have overridden this function (and several in that chain
to inspect them and I do not see arguments being passed as null, so I assume
its some type of class variable or a property on one of the objects which is
null)

thanks
Johan
-- 
j:pn
\\no comment


[flexcoders] Re: advanced datagrid error weirdness

2009-02-13 Thread Johannes Nel
ok to follow up.
in the initListData function it is the first line after the first call to
getStyle (after the call to getDisplayDisclosureIcon).

the offending line(s) was in my css, added by somebody else in ignorance. :(
   folderOpenIcon: null;
disclosureOpenIcon: null;

anyway, obviously getStyle returned a null bla bla. less black box debugging
would have made this much easier :(




and commenting it out solved the problem. will report later

On Fri, Feb 13, 2009 at 11:24 AM, Johannes Nel johannes@gmail.comwrote:

 hey,
 actually hoping someone from the adg team can tell me what on a certain
 line would be giving an error.

 I use sdk 3.0

 so i have an adg which renderers another adg. detail is not really that
 important. i have a mock data set in 2 different projects (1 being the main
 app i am working on and the other being an adg sample to try and replicate
 my error).

 the sample app uses the same IFactory, ADGRenderer, columns, hierachial
 data descriptor (and of course the mock data set).

  the error i get is
 TypeError: Error #1034: Type Coercion failed: cannot convert null to
 Class.
 at
 mx.controls::AdvancedDataGrid/initListData()[C:\Work\flex\dmv_automation\projects\datavisualisation\src\mx\controls\AdvancedDataGrid.as:5476]

 I am specifically interested in what is on that one line, since my sample
 app works perfectly and my main app does not. I realise that this means its
 somehting in my own code (the difference between the two apps is complexity
 of the application structure.)

 my sample app consists of

 view
   - presmodel
   - my adg component

 where my presentation model exposes via bindings my columns, data provider
 and renderer

 in contrast to this my main app is

 view
  -presModel
 -component
-presModel
-my adg component.

 i think this means that some binding is not firing all the way through my
 chains, but which one (i cannot figure this since i cannot debug the adg :(
 )

 anyway, whats on that line, and what variable is null.

 (as a side note, i have overridden this function (and several in that chain
 to inspect them and I do not see arguments being passed as null, so I assume
 its some type of class variable or a property on one of the objects which is
 null)

 thanks
 Johan
 --
 j:pn
 \\no comment




-- 
j:pn
\\no comment


Re: [flexcoders] Conditional compilation for variable declarations

2009-01-31 Thread Johannes Nel
abstract factory would also solve this, unless you compile to swc that is.

On Fri, Jan 30, 2009 at 6:46 PM, jimmy5804 jimmy5...@yahoo.com wrote:


 I'm able to use conditional compilation for functions by prefacing
 them with CONFIG::xxx and other blocks by wrapping them in
 if(CONFIG::xxx), but I'm not sure how to do conditional declaration of
 class variables without making the whole class conditional.

 If, for example, I have a single SQL class variable in a class that's
 otherwise portable between Flex and AIR, do I need to create separate
 classes for the two frameworks, or is there a convenient way to
 conditionally declare the SQL variable?

 TIA

  




-- 
j:pn
\\no comment


Re: [flexcoders] itemRenderer data question (recycling)

2009-01-30 Thread Johannes Nel
we agree to disagree in that case.

why lists based components.
1. automatic recycling
2. easier to tap into events and determine which item was clicked etc
3. itemrenderer factories

repeaters are useful and we use them, but its the correct tool for the time,
and mostly the correct tool is some list based control, for us anyway.

On Fri, Jan 30, 2009 at 6:09 AM, Tracy Spratt tspr...@lariatinc.com wrote:

…repeater is rarely the sollution…



 I disagree intensely.  It depends entirely on the problem.  Repeater should
 not be used to replace a List-based control for a large number of items.



 But it should always be considered when you start using addChild()
 statements driven by some data structure.



 And it can replace List for a limited number of items, or if you use a
 paged navigation instead of scroll.



 Repeater has gotten an undeserved bad rap from folks using it improperly.



 Tracy Spratt
 Lariat Services

 Flex development bandwidth available
   --

 *From:* flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] *On
 Behalf Of *Johannes Nel
 *Sent:* Wednesday, January 28, 2009 5:05 AM
 *To:* flexcoders@yahoogroups.com
 *Subject:* Re: [flexcoders] itemRenderer data question (recycling)



 mmm, repeater is rarely the sollution IMO. remember that they render all
 the items (when they do not recycle) and not only the visible parts like a
 list.

 On Wed, Jan 28, 2009 at 11:23 AM, nwebb neilw...@gmail.com wrote:

 Ah right - wasn't aware that repeaters didn't recycle - thanks.



 On Fri, Jan 23, 2009 at 6:34 PM, Alex Harui aha...@adobe.com wrote:

 If there aren't going to me more than a few dozen funds you can use
 repeater and avoid recycling.  Otherwise, you'll have to live with recycling
 and add other data like when it changed last so you can determine whether to
 color it or not.



 *From:* flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] *On
 Behalf Of *nwebb
 *Sent:* Friday, January 23, 2009 12:54 AM
 *To:* flexcoders@yahoogroups.com
 *Subject:* Re: [flexcoders] itemRenderer data question (recycling)



 Yes sorry - I was scant with the details because I know people don't read
 long posts.

 I'm just using a standard array for the dp rather than an ArrayCollection
 and I am overwriting the array each time. Eventually I think that each
 bundle may have completely different items (they are actually funds - this
 is a financial app) , but in my test data I just have 4 funds. It was a
 question out of curiosity more than anything else. I was trying to knock
 something together quickly as this is just a prototype screen.

 at the moment (in the test data) I have the same 4 funds for each
 bundle. From the UIDs I get, it looks like the renderers get recycled and
 always in the same order - ie the renderer that was last used to display
 item4 is then used to display item1 the next time around. If you knew your
 List would never scroll, and you had the same four items, I wondered if
 there was a way to turn off recycling, or at least get the renderer in
 position1 to be in position1 again after a refresh.


 n.b. Currently I send in the old percent  new percent, the override set
 data and determine the state using those values, so the uissue is solved,
 but curious to know if there is a way to get the same renderers being reused
 in the same order for a scenario like i described.

 On Thu, Jan 22, 2009 at 6:43 PM, Alex Harui aha...@adobe.com wrote:

 That didn't quite make sense.  What is the dataprovider for the % list?
 Why would different bundles have data items with the same UID?  Are you
 resetting the dataProvider when someone selects a different bundle?



 If the dp for the % list is a set of fields computed from the selected
 bundle, don't reset the dp and have those items in the dp dispatch change
 events.  That should keep recycling to a minimum.  If that doesn't work, try
 using a DataGrid with 1 column and headers turned off.  It is possible that
 List has a different recycling algorithm than DG



 *From:* flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] *On
 Behalf Of *nwebb
 *Sent:* Thursday, January 22, 2009 4:14 AM
 *To:* flexcoders
 *Subject:* [flexcoders] itemRenderer data question (recycling)



 Hi,


 I have 2 List components on a page.
 The one on the left displays the names of some  bundles - e.g. *Bundle
 1*
 The one on the right displays the items in the selected bundle, plus a
 percentage value - e.g. *item1 - 10%* *item2 - 55%*  *item3 -
 61%*

 The items are the same for all bundles, but their percentages may change as
 the user selects different bundles. If that happens I want to highlight that
 itemRenderer. (eg when the percentage changes, highlight renderer)


 I looked at a similar example from Alex Harui - he compares a DataGrid's
 listData.UID to the previous UID (stored as a property on the renderer). If
 they match, he knows he has the same item and changes that value.

 I

Re: [flexcoders] ItemEditors and rowHeight

2009-01-30 Thread Johannes Nel
have you considered using a sub renderer as an editor.

on the adg you have a rendererProviders which allow you to alter the
individual rows,

var t:AdvancedDataGridRendererProvider = new
AdvancedDataGridRendererProvider();
t.depth = 2;
t.columnIndex = 1;
t.columnSpan = 0;
t.rowSpan = ...
etc. I have found this class very useful when dealing with the ADG.



On Fri, Jan 30, 2009 at 12:29 PM, Gregor Kiddie gkid...@inpses.co.ukwrote:

Yeah, I've played with those properties, I have no problem having the
 ItemEditor sitting on top of the grid (which is what happens with an
 itemEditor in reality) at any size… I want the row which contains the cell
 I'm editing to resize itself so that the editor still appears to be a part
 of the row, which those do not help with.



 Gk.

 *Gregor Kiddie*
 Senior Developer
 *INPS*

 Tel:   01382 564343

 Registered address: The Bread Factory, 1a Broughton Street, London SW8 3QJ

 Registered Number: 1788577

 Registered in the UK

 Visit our Internet Web site at www.inps.co.uk

 The information in this internet email is confidential and is intended
 solely for the addressee. Access, copying or re-use of information in it by
 anyone else is not authorised. Any views or opinions presented are solely
 those of the author and do not necessarily represent those of INPS or any of
 its affiliates. If you are not the intended recipient please contact
 is.helpd...@inps.co.uk
   --

 *From:* flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] *On
 Behalf Of *Randy Martin
 *Sent:* 30 January 2009 05:39
 *To:* flexcoders@yahoogroups.com
 *Subject:* RE: [flexcoders] ItemEditors and rowHeight



 Here you go:



 http://livedocs.adobe.com/flex/3/html/help.html?content=celleditor_5.html



 HTH,

 ~randy



 *From:* flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] *On
 Behalf Of *Gregor Kiddie
 *Sent:* Thursday, January 29, 2009 9:17 AM
 *To:* flexcoders@yahoogroups.com
 *Subject:* [flexcoders] ItemEditors and rowHeight



 Looking through SearchCoders, it looks like this question has been asked
 repeatedly, and never with a good solution, but hey, I may as well ask
 again!

 I have an AdvancedDataGrid using the default renderer. When I edit a cell
 though, I want to show an ItemEditor that is taller than the row. I've tried
 numerous combinations of events and setting height properties to no good
 effect.

 So while I go away and delve into the ADG code to try and work out a
 solution, has anyone managed this successfully, and is willing to save me
 some head scratching time?



 Gk.

 *Gregor Kiddie*
 Senior Developer
 *INPS*

 Tel:   01382 564343

 Registered address: The Bread Factory, 1a Broughton Street, London SW8 3QJ

 Registered Number: 1788577

 Registered in the UK

 Visit our Internet Web site at www.inps.co.uk

 The information in this internet email is confidential and is intended
 solely for the addressee. Access, copying or re-use of information in it by
 anyone else is not authorised. Any views or opinions presented are solely
 those of the author and do not necessarily represent those of INPS or any of
 its affiliates. If you are not the intended recipient please contact
 is.helpd...@inps.co.uk



  




-- 
j:pn
\\no comment


Re: [flexcoders] itemRenderer data question (recycling)

2009-01-28 Thread Johannes Nel
mmm, repeater is rarely the sollution IMO. remember that they render all the
items (when they do not recycle) and not only the visible parts like a list.


On Wed, Jan 28, 2009 at 11:23 AM, nwebb neilw...@gmail.com wrote:

   Ah right - wasn't aware that repeaters didn't recycle - thanks.


 On Fri, Jan 23, 2009 at 6:34 PM, Alex Harui aha...@adobe.com wrote:

If there aren't going to me more than a few dozen funds you can use
 repeater and avoid recycling.  Otherwise, you'll have to live with recycling
 and add other data like when it changed last so you can determine whether to
 color it or not.



 *From:* flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] *On
 Behalf Of *nwebb
 *Sent:* Friday, January 23, 2009 12:54 AM
 *To:* flexcoders@yahoogroups.com
 *Subject:* Re: [flexcoders] itemRenderer data question (recycling)



 Yes sorry - I was scant with the details because I know people don't read
 long posts.

 I'm just using a standard array for the dp rather than an ArrayCollection
 and I am overwriting the array each time. Eventually I think that each
 bundle may have completely different items (they are actually funds - this
 is a financial app) , but in my test data I just have 4 funds. It was a
 question out of curiosity more than anything else. I was trying to knock
 something together quickly as this is just a prototype screen.

 at the moment (in the test data) I have the same 4 funds for each
 bundle. From the UIDs I get, it looks like the renderers get recycled and
 always in the same order - ie the renderer that was last used to display
 item4 is then used to display item1 the next time around. If you knew your
 List would never scroll, and you had the same four items, I wondered if
 there was a way to turn off recycling, or at least get the renderer in
 position1 to be in position1 again after a refresh.


 n.b. Currently I send in the old percent  new percent, the override set
 data and determine the state using those values, so the uissue is solved,
 but curious to know if there is a way to get the same renderers being reused
 in the same order for a scenario like i described.

 On Thu, Jan 22, 2009 at 6:43 PM, Alex Harui aha...@adobe.com wrote:

 That didn't quite make sense.  What is the dataprovider for the % list?
 Why would different bundles have data items with the same UID?  Are you
 resetting the dataProvider when someone selects a different bundle?



 If the dp for the % list is a set of fields computed from the selected
 bundle, don't reset the dp and have those items in the dp dispatch change
 events.  That should keep recycling to a minimum.  If that doesn't work, try
 using a DataGrid with 1 column and headers turned off.  It is possible that
 List has a different recycling algorithm than DG



 *From:* flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] *On
 Behalf Of *nwebb
 *Sent:* Thursday, January 22, 2009 4:14 AM
 *To:* flexcoders
 *Subject:* [flexcoders] itemRenderer data question (recycling)



 Hi,


 I have 2 List components on a page.
 The one on the left displays the names of some  bundles - e.g. *Bundle
 1*
 The one on the right displays the items in the selected bundle, plus a
 percentage value - e.g. *item1 - 10%* *item2 - 55%*  *item3
 - 61%*

 The items are the same for all bundles, but their percentages may change
 as the user selects different bundles. If that happens I want to highlight
 that itemRenderer. (eg when the percentage changes, highlight renderer)


 I looked at a similar example from Alex Harui - he compares a DataGrid's
 listData.UID to the previous UID (stored as a property on the renderer). If
 they match, he knows he has the same item and changes that value.

 I have implemented IDropInListItemRenderer (so I have access to the UID)
 but the renderer-recycling of the List means that even when the UID's match,
 the oldPercent value I stored doesn't actually match up to item being
 displayed - in other words, the renderer which previously displayed *item1
 - 10%* may now be displaying *item3 - 61%* , so the percentage HAS
 changed, but that's because it's displaying a different item!

 Is my only option to send both the new% and old% in via the dataprovider,
 or is there another way to get around this issue?

 Cheers





  




-- 
j:pn
\\no comment


Re: [flexcoders] BindingUtils and ResourceManager Question

2009-01-28 Thread Johannes Nel
on rereading your post i realise that what you are after is change events
(but my post will also help a bit me thinks)
a few people did custom annotations which function like an event listener,
just google a bit, i think it will make your life easier.
old post///
ok, i will approach it slightly differently.
I would use a presentation model to bind the text to,

so
component
control text=presModel.someText/
/component
in my pres model

class presModel
{

[Bindable(localChange)]
[Bindable (someTextChange)]
public function get someText():String

[Bindable(localChange)]
[Bindable (someOtherTextChange)]
public function get someOtherText():String
}

this way you have groups of text that update at the same time when your
local changes (which in the workflow we use would look something like this
(still inside this presModel)
[Trigger (path=myModel.theLocalleValueIWantToKnowAbout)]
public function set localle(localle:String)
{
dispatchEvent(localChange)
}
where this localChange event will update all the strings which have a
bindable declared with that custom event name.

the trigger annotation is basically an event listener and is the same as
saying
in my local presentation model notify me when the applications localle
changes,
thus someAppModel.addEventListener(localChange)

jpn
On Wed, Jan 28, 2009 at 12:09 AM, Thomas, Erik erik_tho...@intuit.comwrote:

Having just localized a medium sized application into Spanish, I ran
 into a recurring pattern I had to work around that I really shouldn't have
 to, specifically around data binding localized resources from ActionScript.

 For example, in MXML, one can data bind a localized resource and when the
 localeChain is switched dynamically, all bound clients will requery their
 values and the new language will display:

 mx:Label text={resourceManager.getString(ResourceEnums.COMMON,
 'labelAppointments}/

 When the localeChain is switched, the label above will automatically update
 to the Spanish version, just like magic. This is a very cool feature of Flex
 3 resource management.

 However, there are many use cases where I need to bind to resource
 bundles from within ActionScript, sort of like this:

 public class Foo
 {
 [Bindable]
 public var bar:String;

 public function Foo()
 {
 bar = ResourceManager.getString(ResourceEnums.COMMON,
 'labelAppointments');
 }
 }

 When the localeChain is updated, bar is obviously not automatically
 updated because bar is not bound to the resource, it is just a simple
 assignment.

 BindingUtil.bindProperty and bindSetter don't appear to offer parameters
 that will work with ResourceManager. I've experimented a little, but it does
 not appear possible to use BindingUtils to bind to a resource.

 I had to work around this by listening for a localeChange event and then
 reassigning the resource to the variable. This does not scale.

 So my question is simple: *can you bind a variable to a resource in
 ActionScript? If so, how?*

 Thanks!

 Erik

 *Erik Thomas* | Small Business Group, *Intuit* | Staff Engineer
 | 650-944-2602

  




-- 
j:pn
\\no comment


Re: [flexcoders] Re: Navigational Design Patterns?

2009-01-23 Thread Johannes Nel
we have never had a problem with modules, there are no singletons,
controllers and models cascade through the display tree (with the ability
overwrite these references anywhere down the display tree) and modules are
just new children on the display tree.
it is not a framework in the sense of cairngorm or puremvc which defines the
way you communicate to the server as well.
think of it as a navgitaion system based on best practises and gives you
debug tools.
we can take this offline if you want.


On Fri, Jan 23, 2009 at 10:35 AM, nwebb neilw...@gmail.com wrote:

   Johannes, does slide Slide work well with modules as this project is
 modular?


 On Fri, Jan 23, 2009 at 7:46 AM, Johannes Nel johannes@gmail.comwrote:

   kind of off topic now.

 i would actually look at slide, even for an existing app (if it uses
 viewstacks and states) for navigation. it makes life much much easier.

 Slide uri's map to paths inside a display tree so the url
 /app/state/stateb/statec tells you that you have set the selected child for
 3 viewstacks (thus making complex nav easier). also these uri's are really
 xpath statements so /app/*/*/state will only filter on the last one. you can
 even use xpath functions to make decisions on your navigation.

 this is a gross simplification, but ping me offline, i have a plugin which
 generates the slide app structure for you.

 back to navigation. i also have a simple plugin which generates my nav
 commands for me (slightly slide specific, but easily modifiable), either
 with mememto or sans, which could help you in this. I use JET to generate
 code a lot at the moment (i need an abstract factory, i need a set of
 commands, i need an enum etc etc) which has kind of removed me from the
 doldrums of implenting paterns to more thinking about the application as a
 whole. of course generation is not a answer to all (i refuse to generate
 actual implementation for long and arguable reasons).



 On Thu, Jan 22, 2009 at 2:18 PM, nwebb neilw...@gmail.com wrote:

   Thanks v much Johannes - Command was the only pattern I had considered
 thus far because I know it's often used for history/undo functionality -
 interested to look at memento in conjunction. Useful info as always :)

 On Thu, Jan 22, 2009 at 12:08 PM, Johannes Nel 
 johannes@gmail.comwrote:

   Depending on the application type, the command pattern works quite
 nicely with navigation. You can then also implement a memento more easily
 and have the command support an undo function allowing you to go back and
 forth.

 we use slide (obviously) and the uri based navigation (based on states)
 work really well with this approach as well.



 On Thu, Jan 22, 2009 at 11:02 AM, nwebb neilw...@gmail.com wrote:

   Thanks guys for all your responses so far.
 To clarify, it is a multi-step process (with a few possible branches).

 Tracy/Jim, for the most part I agree. Ideal if I was given the scope to
 re-design the application, but I've just been handed the task of 
 re-writing
 the step-process logic. The client is very happy with what they have, so 
 it
 is a decision that is out of my hands.

 I am mainly looking for suggestions for (code) design
 patterns/micro-architectures out there that handle this sort of thing - 
 not
 a fully-fledged framework.

 I did like the look of the book Haykel recommended, even though it was
 not code-based so I may well purchase it too - thanks.

 Cheers,
 Neil







 On Wed, Jan 21, 2009 at 9:02 PM, jim.abbott45 
 jim.abbot...@yahoo.comwrote:


 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 flexcoders%40yahoogroups.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
 





 --
 j:pn
 \\no comment





 --
 j:pn
 \\no comment


  




-- 
j:pn
\\no comment


Re: [flexcoders] Re: Navigational Design Patterns?

2009-01-22 Thread Johannes Nel
Depending on the application type, the command pattern works quite nicely
with navigation. You can then also implement a memento more easily and have
the command support an undo function allowing you to go back and forth.

we use slide (obviously) and the uri based navigation (based on states) work
really well with this approach as well.


On Thu, Jan 22, 2009 at 11:02 AM, nwebb neilw...@gmail.com wrote:

   Thanks guys for all your responses so far.
 To clarify, it is a multi-step process (with a few possible branches).

 Tracy/Jim, for the most part I agree. Ideal if I was given the scope to
 re-design the application, but I've just been handed the task of re-writing
 the step-process logic. The client is very happy with what they have, so it
 is a decision that is out of my hands.

 I am mainly looking for suggestions for (code) design
 patterns/micro-architectures out there that handle this sort of thing - not
 a fully-fledged framework.

 I did like the look of the book Haykel recommended, even though it was not
 code-based so I may well purchase it too - thanks.

 Cheers,
 Neil







 On Wed, Jan 21, 2009 at 9:02 PM, jim.abbott45 jim.abbot...@yahoo.comwrote:


 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 flexcoders%40yahoogroups.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
 


  




-- 
j:pn
\\no comment


Re: [flexcoders] Re: Navigational Design Patterns?

2009-01-22 Thread Johannes Nel
kind of off topic now.

i would actually look at slide, even for an existing app (if it uses
viewstacks and states) for navigation. it makes life much much easier.

Slide uri's map to paths inside a display tree so the url
/app/state/stateb/statec tells you that you have set the selected child for
3 viewstacks (thus making complex nav easier). also these uri's are really
xpath statements so /app/*/*/state will only filter on the last one. you can
even use xpath functions to make decisions on your navigation.

this is a gross simplification, but ping me offline, i have a plugin which
generates the slide app structure for you.

back to navigation. i also have a simple plugin which generates my nav
commands for me (slightly slide specific, but easily modifiable), either
with mememto or sans, which could help you in this. I use JET to generate
code a lot at the moment (i need an abstract factory, i need a set of
commands, i need an enum etc etc) which has kind of removed me from the
doldrums of implenting paterns to more thinking about the application as a
whole. of course generation is not a answer to all (i refuse to generate
actual implementation for long and arguable reasons).


On Thu, Jan 22, 2009 at 2:18 PM, nwebb neilw...@gmail.com wrote:

   Thanks v much Johannes - Command was the only pattern I had considered
 thus far because I know it's often used for history/undo functionality -
 interested to look at memento in conjunction. Useful info as always :)

 On Thu, Jan 22, 2009 at 12:08 PM, Johannes Nel johannes@gmail.comwrote:

   Depending on the application type, the command pattern works quite
 nicely with navigation. You can then also implement a memento more easily
 and have the command support an undo function allowing you to go back and
 forth.

 we use slide (obviously) and the uri based navigation (based on states)
 work really well with this approach as well.



 On Thu, Jan 22, 2009 at 11:02 AM, nwebb neilw...@gmail.com wrote:

   Thanks guys for all your responses so far.
 To clarify, it is a multi-step process (with a few possible branches).

 Tracy/Jim, for the most part I agree. Ideal if I was given the scope to
 re-design the application, but I've just been handed the task of re-writing
 the step-process logic. The client is very happy with what they have, so it
 is a decision that is out of my hands.

 I am mainly looking for suggestions for (code) design
 patterns/micro-architectures out there that handle this sort of thing - not
 a fully-fledged framework.

 I did like the look of the book Haykel recommended, even though it was
 not code-based so I may well purchase it too - thanks.

 Cheers,
 Neil







 On Wed, Jan 21, 2009 at 9:02 PM, jim.abbott45 jim.abbot...@yahoo.comwrote:


 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 flexcoders%40yahoogroups.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
 





 --
 j:pn
 \\no comment


  




-- 
j:pn
\\no comment


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

2009-01-06 Thread Johannes Nel
I suspect this cannot work, mostly since the browser in air would have to be
cross platform and OLE objects are windows based. you can reverse this of
course and embed the whole flex application into a win app as an ActiveX
control and then use browser active X control as well. not nearly as nice
nor neat ofcourse.

On Thu, Jan 1, 2009 at 5:22 AM, pratikshah83 pratiksha...@yahoo.com wrote:

   Hi Nate,

 Actually I am trying to call an application and update the application
 using the activexobject.

 The application has an OLE Object model set up. So it has certain
 methods exposed which I can access using the activexobject in jscript.

 You can take and example of calling Excel.Application and updating the
 excel document.

 I hope you are getting an idea what exactly I am trying to do.

 Let me know if you need any more information. I was trying to use
 html. But if I can achieve without using html it would be great. In
 short I need to call an application on my PC and update it using its
 OLE object.

 Thanks
 Pratik

 --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Nate
 Beck n...@... wrote:
 
  Can you possibly give some more code?
  I'm trying to understand what it is you are trying to do. If you
 are using
  Adobe AIR, then you are running the application outside of the browser
  completely. The MX:HTML tag is a version of webkit within the Adobe AIR
  runtime, not within IE.
 
  Cheers,
  Nate
 
  On Wed, Dec 31, 2008 at 5:46 PM, 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
  
  
  
 
 
 
  --
 
  Cheers,
  Nate
  
  http://blog.natebeck.net
 

  




-- 
j:pn
\\no comment


Re: [flexcoders] Test-driven development in Flex

2008-12-23 Thread Johannes Nel
a well written post.
Fowlers sync concerns are not especially relevant in flex with the data
binding mechanisms we have at our disposal.
from where I am standing the supervisor controller and a presentation model
seems a decent approach. My reasoning behind this is that views render
aspects or transposed views of the domain model, if the presentationModel
then had to have all the implementation for handeling user gestures it
quickly becomes a more complex class than it needs be.
Seperating into a supervising controller to handle user gestures (and
observe the domain model), which in turn sets the presentation model allows
you to swap out both presentation model (another view onto a data set) and
the supervising controller (different application actions from the same user
gestures) more easily.

it allows becomes more testable as I really only need to test the
superivising controller and see what changes were made to my presentation
model (or domain model/application state) and on the presentation model
level the different views onto the dataset.

an approach i use a lot  involves binding the views currentState property
to my presentationModel, thus allowing me to test viewState as well and
not only the data and the user gestures. Of course this fails if the state
is not implemented correctly in the view. Here I can however see a good
workflow improvement in gumbo as states and skins are externalised into the
skin file, which I think would lead to views becoming evening thinner and
thus more easily generated and less likely to change. your extension points
then reside in the skin file, the pres model, the supervisor controller (2
of which are unit testable) and what ever domain structure you want to have
behind this.

A concern that has been raised in our team around this however is the extra
code (thus footprint and increase in bugs), but unit testing obivously
alleviates this concern and as a bonus  a proper planning phase and
generated scaffolding would really remove the issue, it does have some
limitations in software which grows organically as it would most probally
lead to a fair bit of refactoring (which is not a bad thing).

All in all I think you guys have summed up testing really well, but
something I find lacking in most flex related TDD posts is a discussion of
the tools people use to make life easier, determine coverage, approaches
around CI. There are some great tools out there (although I have yet to see
someone run (what I would call) a proper CI enviroment with Air). That said,
I have delved a fair bit into Jet transformations to scaffold, but in a true
agile enviroment  Jet still fails with mxml (I do think this is fixable).

johan



On Fri, Dec 19, 2008 at 9:17 AM, Errol Thompson kiw...@acm.org wrote:

You mentioned Supervising Controller by Martin Fowler;
  did you know he has another variant of that same idea
  called Presentation Model?
 http://martinfowler.com/eaaDev/PresentationModel.html

 Fowler describes four different patterns which he regards as different ways
 of implementing the MVC or MVP patterns in his GUI architectures article
 http://martinfowler.com/eaaDev/uiArchs.html and supporting articles
 (Separated Presentation
 http://martinfowler.com/eaaDev/SeparatedPresentation.html, Presentation
 Model, Supervising Controller
 http://martinfowler.com/eaaDev/SupervisingPresenter.html, and Passive view
 http://martinfowler.com/eaaDev/PassiveScreen.html.

 My interpretation is that he sees the Separated Presentation as being at
 the
 heart of the MVC concept. He has retired the MVC pattern in his thinking
 since he sees different forms of implementation. He sees this pattern as
 separating the common functionality from the view specific functionality.

 The Presentation Model he argues is the beginning of the shift from MVC to
 MVP although he contends that the boundary is unclear. He says that the
 presentation model is a class that contains all the data of the UI window,
 but without any of the controls used to render that UI on the screen. In
 effect, it separates the view from the data needed to build the view.
 Fowler
 talks about problems in synchronising the presentation model and the view.

 The Passive View sees the manipulates the view as well as being a
 presentation model. This approach sees the view having no built in
 functionality and the controller or presenter manipulating the view to make
 changes. The controller pushes data back into the view.

 The Supervising Controller is similar to the passive view except that the
 controller doesn't push data back into the view. This is left to data
 binding mechanisms. The model in this pattern may be closer to a
 presentation model rather than a domain model. The controller handles all
 user gestures. One of the things with this pattern is that because the
 controller and model have no knowledge of the view, it is easier to
 implement in a test driven fashion.

 I believe one of the points of difference between the 

Re: [flexcoders] SWC compression format?

2008-12-17 Thread Johannes Nel
i think its gnu zip

On Wed, Dec 17, 2008 at 5:13 PM, John McCormack j...@easypeasy.co.ukwrote:

   If you rename the *.swc file to a *.zip file you can open it with
 Windows Vista (and XP?) or with 7-zip (etc.) without renaming it, so it
 must be a derivation of the pkzip format. There are some zip functions
 in the nochump branch of papervision3D so that might help.

 John


 aaron smith wrote:
  Does anyone have any idea what format a swc is compressed with? I'm
  trying to figure out how to take the ouput of a swc (with the
  -directory switch from compc), run the optimize command line tool on
  the library.swf, and then zip it back up as a swc. any ideas?
 
  thanks
 
  
 
  --
  Flexcoders Mailing List
  FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
  Alternative FAQ location:
 https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847
  Search Archives:
 http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups
 Links
 
 
 
 
 
 

  




-- 
j:pn
\\no comment


Re: [flexcoders] Loadbytes - Exclude framework?

2008-12-17 Thread Johannes Nel
export the framework as an external RSL for both your main app and the
runtime loaded class swf, that way your external swf won't have the bytes in
it and the main app will mount all the needed classes from the rsl as is
necesary.
of course you are also helping all the rest of us who then export with the
framework as an rsl.

the downside is that the external framework includes all the classes and is
thus bigger.

On Wed, Dec 17, 2008 at 12:15 PM, Sceneshift j...@sceneshift.com wrote:


 I am loading in a external SWF at runtime using loadBytes, so I am able to
 retrieve library items / class names created via the designers in the SWF.
 I
 need to use loadBytes so I can use timeline AS3 code etc.

 I was wondering what the implications are of this, since the exported SWFs
 filesize will include the FP framework. Is there a way to load in a SWF
 using loadBytes, but ignoring any of the framework stuff we already have
 loaded?
 --
 View this message in context:
 http://www.nabble.com/Loadbytes---Exclude-framework--tp21050425p21050425.html
 Sent from the FlexCoders mailing list archive at Nabble.com.

  




-- 
j:pn
\\no comment


Re: [flexcoders] Re: How do I include a file in the AIR app-storage directory at install time?

2008-12-15 Thread Johannes Nel
when creating an install you can include files which get dumped in the
application directory. then on first time startup you use the file api to
copy it over. no you should not write info in the application directory as
permissions can be an issue, but copying from there is pretty simple.
I have an ant script which manages the packaging of air apps on my CI box,
will go and dig it out in a bit.

On Mon, Dec 15, 2008 at 3:36 PM, Jim Boone j...@jim-boone.com wrote:

   I read what you say, but I don't know how to do that. How do I include
 it as part of the install? How do I copy it over? Does the AIR install
 include some sort of scripting?

 Also, on doing more research, I have found that it is not wise to
 include files that I am talking about in app-storage and that perhaps
 the user directory is more appropriate.

 http://blogs.adobe.com/simplicity/2008/06/dont_write_to_app_dir.html

 --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com,
 Johannes Nel johannes@...
 wrote:

 
  include it in the application directory as part of the instal and
 copy it
  over if it does not exist.
 
  On Mon, Dec 15, 2008 at 5:22 AM, Jim Boone j...@... wrote:
 
   Hi,
  
   I am new to AIR and I am writing an application that needs access to a
   new SQLite database when the user first launches the application. I
   have considered two options. I could create an empty SQlite database
   and include it in the app-storage directory when the application
   installed or I could include an SQL schema file in app-storage and
   create the database when the user launches the app. Either way, I want
   to be able to include an file the the application directory at install
   time. I have researched how to do this with no luck. Does anyone know
   how I can accomplish this? Thanks!
  
   Jim
  
  
  
 
 
 
  --
  j:pn
  \\no comment
 

  




-- 
j:pn
\\no comment


Re: [flexcoders] How do I include a file in the AIR app-storage directory at install time?

2008-12-14 Thread Johannes Nel
include it in the application directory as part of the instal and copy it
over if it does not exist.

On Mon, Dec 15, 2008 at 5:22 AM, Jim Boone j...@jim-boone.com wrote:

   Hi,

 I am new to AIR and I am writing an application that needs access to a
 new SQLite database when the user first launches the application. I
 have considered two options. I could create an empty SQlite database
 and include it in the app-storage directory when the application
 installed or I could include an SQL schema file in app-storage and
 create the database when the user launches the app. Either way, I want
 to be able to include an file the the application directory at install
 time. I have researched how to do this with no luck. Does anyone know
 how I can accomplish this? Thanks!

 Jim

  




-- 
j:pn
\\no comment


Re: [flexcoders] Re: Lazy loading trees

2008-12-11 Thread Johannes Nel
those classes were just random stuff i was using from where i copied the
code.

On Fri, Dec 12, 2008 at 2:16 AM, Amy amyblankens...@bellsouth.net wrote:

   --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com,
 dandante danda...@... wrote:
 
  Thank you.
  I am unclear on where the classes QueryBuilderTreeDelegate and
  ReferenceDataBrowserDelegate are supposed to be.
 
  I realize that I can implement ITreeDataDescriptor and use
 getChildren() to provide the
  children of any given node. What I don't know how to do is fetch a
 node's child data
  asynchronously from the server. getChildren() has to return
 something right away, so what
  does the callback function (from the asynchronous server call) do?
 Should it fire an event
  to the tree? If so, which one?

 Check out this on how to let getChildren return something immediately
 even if you don't yet have a result:

 http://www.johnwilger.com/2007/03/future-value-pattern-in-
 actionscript-3.html

  




-- 
j:pn
\\no comment


Re: [flexcoders] Lazy loading trees

2008-12-09 Thread Johannes Nel
Implement ITreeDataDescriptor and set the tree's data descriptor
thus every time you open a node you call the getChildren function of your
data descriptor
a simple example

internal class ReferenceDataDescriptor implements ITreeDataDescriptor
{
private var __delegate:QueryBuilderTreeDelegate;

public function
ReferenceDataDescriptor(delegate:QueryBuilderTreeDelegate)
{
__delegate = delegate;
}

public function getChildren(node:Object,
model:Object=null):ICollectionView
{
var referenceDataDelegate:ReferenceDataBrowserDelegate =
__delegate.referenceDataDelegate
var gt:GenericTable = GenericTable


}
then store the data i get back in a hash table

so hash['a\b'] = ArraycCOlleciton

for local caching.


On Tue, Dec 9, 2008 at 4:04 AM, dandante [EMAIL PROTECTED] wrote:

   Hello,

 I have a Tree control and I want to load each node's children in lazy
 fashion--that is, when
 the user expands a node, I want to fetch that node's children from the
 server. (there is way
 too much data to populate the entire tree ahead of time).

 I've looked around and the closest I came to a solution is this old post:
 http://www.mail-archive.com/flexcoders@yahoogroups.com/msg62360.html

 This code works, but it seems that it will only modify the children of the
 root nodes. It isn't
 clear how to expand this code to work with a deep tree.

 Does anyone have ideas on that, specifically, or on other approaches to
 this problem?
 Thanks

  




-- 
j:pn
\\no comment


Re: [flexcoders] OpenAMF for returning files?

2008-12-02 Thread Johannes Nel
build the file on the server, download via get. use blazeDS or red5 instead
of openAMF

On Tue, Dec 2, 2008 at 1:23 AM, buzz_tarun [EMAIL PROTECTED] wrote:

   Hi there,

 I am using openamf for integrating flex ui with a J2EE backend. The
 integration works fine as far as strongly typed data types are
 concerned. Has anyone attempted to return files (say PDFs or Excels)
 from the backend via openamf? Any comments/suggestions would be very
 helpful.

 Thanks,
 Tarun

  




-- 
j:pn
\\no comment


Re: [flexcoders] The Online Flex Builder!

2008-11-25 Thread Johannes Nel
this mailing list has been running for years, no where near the beginning of
the archives :)

On Mon, Nov 24, 2008 at 10:45 PM, Jim Hayes [EMAIL PROTECTED] wrote:

   John Grden had one quite a while back, not seen any news on it for a
 while though. The name of it escapes me for now I'm afraid.
 try http://www.rockonflash.com, somewhere near the beginning of the
 archives I would think.


 -Original Message-
 From: flexcoders@yahoogroups.com flexcoders%40yahoogroups.com on behalf
 of Cato Paus
 Sent: Mon 24/11/2008 19:20
 To: flexcoders@yahoogroups.com flexcoders%40yahoogroups.com
 Subject: [flexcoders] The Online Flex Builder!

 Hi all, I remeber taht someone did create a FlexBuilder in a
 flash-application, but I'cant remeber where, someone have the url ?

 __
 This communication is from Primal Pictures Ltd., a company registered in
 England and Wales with registration No. 02622298 and registered office: 4th
 Floor, Tennyson House, 159-165 Great Portland Street, London, W1W 5PA, UK.
 VAT registration No. 648874577.

 This e-mail is confidential and may be privileged. It may be read, copied
 and used only by the intended recipient. If you have received it in error,
 please contact the sender immediately by return e-mail or by telephoning
 +44(0)20 7637 1010. Please then delete the e-mail and do not disclose its
 contents to any person.
 This email has been scanned for Primal Pictures by the MessageLabs Email
 Security System.
 __

  




-- 
j:pn
\\no comment


[flexcoders] LCDS hostinG

2008-11-25 Thread Johannes Nel
HI
Can you guys recommend a LCDS hosting company.

Thanks
Johan

-- 
j:pn
\\no comment


Re: [flexcoders] Re: How can I create a path animation in Flex?

2008-11-25 Thread Johannes Nel
i fair while ago i created an animation in flash, exported it to xml (its a
command in flash) import the correct action script classes and used it in
flex. i cannot recall if i had t make changes.
http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/motionXSD.html

i am certain other people have done the same, so a google might help.

On Tue, Nov 25, 2008 at 6:02 PM, gilbert_mizrahi [EMAIL PROTECTED] wrote:

   Tim, That could help. I have to see how I can extend that
 functionality for more complex paths, but this seems to be a good start.

 Sefi, I am familiar with some of the tween engines. However, I believe
 the create tweens from point x1,y1 to x2,y2. Hence, I need to break
 the path in multiple line segments to use them. That is a possibility,
 but I would need then to look for a way to fit a function to a path.

 Gilbert

 --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Sefi
 Ninio [EMAIL PROTECTED] wrote:
 
  You can use a tween library ( there are many out there - tweener,
 tweenlite
  etc.).
  you can give it a source and origin x,y Points and duration, easing
 function
  etc and it will handle the animation.
  it the route is not a straight line, you can break the animation into
  sections, listen for the end of one and start the next one.
 
  I don't know about tweenLite, but in tweener it's done in a single
 line of
  code.
 
  HTH
  Sefi
 
  On Tue, Nov 25, 2008 at 3:21 AM, tim.geiges [EMAIL PROTECTED] wrote:
 
   Take a look at, it might have your answer(I hope) :-)
  
  

 http://keith-hair.net/blog/2008/05/30/interpolation-of-a-point-on-quadratic-curve/#more-4
  
  
   --- In flexcoders@yahoogroups.com 
   flexcoders%40yahoogroups.comflexcoders%
 40yahoogroups.com,
   gilbert_mizrahi mizrahi@ wrote:
   
I would like to be able to draw a path and then have an object
travel through that path.
   
I know how to draw a path in AS3. But I need to get some tips on
 how I
can make an object (i.e. car) following that path. Something
 like the
original LineRider.
   
A while ago I saw an example on a blog, which I did not
 bookmark, and
I am unable to locate it again.
   
Thanks,
Gilbert
   
  
  
  
 

  




-- 
j:pn
\\no comment


Re: [flexcoders] Re: AIR SQLLite, ints, and NULLs

2008-11-24 Thread Johannes Nel
on debug level it evaluates to NaN, which should insert as NULL.but then
remember
var n:Number; // == NaN
var p:Number = n + 1;//==NaN

var q:int = n+1;//==0

On Mon, Nov 24, 2008 at 9:01 PM, Charlie Hubbard
[EMAIL PROTECTED]wrote:

   So if I can sum up your email very clearly.  I'd say:

 DO NOT use int, use Number, because that's what Air's database connection
 layer is going to return you.

 If you use int data type for fields you'll get zeros.  With Number it's
 will propagate NULLs correctly.

 Thanks,
 Charlie

 On Mon, Nov 24, 2008 at 12:18 AM, jason_williams_mm 
 [EMAIL PROTECTED] wrote:

   --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com,
 Charlie Hubbard
 [EMAIL PROTECTED] wrote:
 
  I've read over all of the docs on Air, but there seems to be a missing
  discussion around NULL values in SQLLite and how those map back to
  datatypes. What I've found is that if I have an int field type I
 can't get
  a NULL value to ever get inserted into the SQLLite. It just ends up
  inserting 0 (zero). In Java we'd just convert to using a true
 Object like
  Integer class, and that would handle this problem for us. What is the
  equivalent with Actionscript? If you want NULLs and numbers what is an
  object and a number, and will Air convert between the two correctly?
 
  Thanks
  Charlie
 

 It would help to see the code that you are using, however, the
 following code gives the same results in both 1.5 and 1.1:

 ?xml version=1.0 encoding=utf-8?
 mx:WindowedApplication xmlns:mx=http://www.adobe.com/2006/mxml;
 layout=absolute creationComplete=run()
 mx:Script
 ![CDATA[
 import mx.utils.ObjectUtil;

 private function run():void
 {
 trace(NativeApplication.nativeApplication.runtimeVersion);
 var con:SQLConnection = new SQLConnection();
 con.open(File.applicationStorageDirectory.resolvePath(nulltesting.db));
 var sql:SQLStatement = new SQLStatement();
 sql.sqlConnection = con;
 sql.text = CREATE TABLE test (id integer);;
 sql.execute();

 sql.text = INSERT INTO test VALUES(null);;
 sql.execute();

 sql.text = INSERT INTO test VALUES(1);;
 sql.execute();

 sql.text = INSERT INTO test VALUES(2);;
 sql.execute();

 sql.text = INSERT INTO test VALUES(3);;
 sql.execute();

 sql.text = SELECT * FROM test;;
 sql.execute();
 trace(ObjectUtil.toString(sql.getResult().data));
 }
 ]]
 /mx:Script
 /mx:WindowedApplication

 -- trace output --

 (Array)#0
 [0] (Object)#1
 id = (null)
 [1] (Object)#2
 id = 1
 [2] (Object)#3
 id = 2
 [3] (Object)#4
 id = 3

 Each of the values returned in the object is a Number. Hope that
 helps some.

 jw


  




-- 
j:pn
\\no comment


Re: [flexcoders] How to refer xsd file in flex ?

2008-11-17 Thread Johannes Nel
currently that validation has to be done on a server.

On Mon, Nov 17, 2008 at 10:05 AM, Nievtha NagaRaj [EMAIL PROTECTED]wrote:

   Hi ,

How to refer xsd file in flex before loading XML Data?
 Could u help me If anyone knows about this?

 Thanks in Advance
   Nivetha

  




-- 
j:pn
\\no comment


Re: [flexcoders] How to refer xsd file in flex ?

2008-11-17 Thread Johannes Nel
oh, if you mean just a schema, load it as an xml file and parse that. i
meant you will not be able to validate an xml file against a schema

On Mon, Nov 17, 2008 at 12:18 PM, Johannes Nel [EMAIL PROTECTED]wrote:

 currently that validation has to be done on a server.


 On Mon, Nov 17, 2008 at 10:05 AM, Nievtha NagaRaj [EMAIL PROTECTED]wrote:

   Hi ,

How to refer xsd file in flex before loading XML Data?
 Could u help me If anyone knows about this?

 Thanks in Advance
   Nivetha

  




 --
 j:pn
 \\no comment




-- 
j:pn
\\no comment


  1   2   3   4   >