Re: [flexcoders] Debugging flash app running in C++ app

2007-06-07 Thread Aldo Bucchi

Hi Alex,

The problem is that I cannot use RUN to launch the app since it HAS to be
inside the C++ app... it relies on several externalinterface calls to work.
By itself it woudln't even load correctly.

If I load debug versions of the app it will ask me for the IP of the
debugger... not sure what to do with that dialog.

Thanks.
Aldo

On 6/6/07, Alex Harui [EMAIL PROTECTED] wrote:


   If you have the ActiveX debugger player installed, you should be able
to use FDB to debug.


 --

*From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On
Behalf Of *Aldo Bucchi
*Sent:* Wednesday, June 06, 2007 7:46 PM
*To:* flexcoders@yahoogroups.com
*Subject:* [flexcoders] Debugging flash app running in C++ app



Hi all,

Is there any way to run full debugging on a flash app that is loaded
inside an activeX control within a C++ app?

I have managed to get tracing ( by tailing flashlog.txt ) but I need
to set breakpoints, etc.

Any tips???

Thanks!
Aldo

--
: Aldo Bucchi :
mobile +56 9 8429 8300

 





--
: Aldo Bucchi :
mobile +56 9 8429 8300


[flexcoders] Flex Java, Where to Start?

2007-06-07 Thread aaronvm707
Hello,

I have begun working with Flex a couple of months ago and have been
learning fairly quickly. I come from a Microsoft ASP.net background,
but would prefer to work with Flex  Java. Can anyone suggest
resources and/or books to start learning Java as it relates to Flex.
There seams to be many variations of Java for different development
needs  I am not sure where to begin. Thanks

Aaron



[flexcoders] RichTextEditor problem

2007-06-07 Thread Robs
Hi all,
   I am assigning a 'commentText' property from the result of a backend 
java call to the 'htmlText' property of the richtexteditor. But, 
somehow, the paragraph is getting truncated. Have checked the 
resultobject  am getting the entire paragraph there.

   What could be the reason for the text to get truncated? Does the rte 
have a character limit?

   Please help!

Thanks



[flexcoders] Tile list of images to auto re-sort

2007-06-07 Thread David
Hi all,
Trying to put together a back-end admin section that will allow users
to  get a tilelist of images and be able to drag them around, and as
they drag i'd like the sort order to change, and update in the
database automatically. Anyone have any idea how i'd go about that? I
don't really know where to begin besides put the images in the
tilelist itself. I can't figure out how if i moved one image that it
would re-sort all the rest based off the position of 1, but i'm sure
there is a way.
If anyone has any thoughts i'd greatly appreciate it!
Thanks,
David



[flexcoders]Faking an XMLRPC call

2007-06-07 Thread dorkie dork from dorktown

Is there a way to fake an XML RPC call? It seems like it'd be simple but I
can't get it to work:

   mx:HTTPService id=srv
   url=http://www.judahfrangipane.com/blog/xmlrpc.php;
   fault={faultHandler(event)}
   result={resultHandler(event)}
   resultFormat=text
   method=POST
   contentType=application/xml
   mx:request
   methodCall
   methodNamemetaWeblog.getPost/methodName
   params
   paramvaluestring77/string/value/param
   paramvaluestringvisitor/string/value/param
   paramvaluestringvisitor/string/value/param
   /params
   /methodCall
   /mx:request
   /mx:HTTPService

The result I get is XML-RPC server accepts POST requests only.

FYI I'm calling a wordpress blog.


[flexcoders] Re: Visible Buttons

2007-06-07 Thread David
Tim,
Wow! Thanks a bunch! I got pretty close but i got this one error:

1151: A conflict exists with definition linkedFormButton in namespace
internal.

I'm really new to flex so alot of this is just a whole other OO level
then i'm use to. Below is my code for the whole page. IF you can take
a peek that would be awesome. Loved your site by the way. You guys do
amazing stuff with flex! i have a really good idea for a site if you
ever interested in packaging something.
Anyways, here's the code:
?xml version=1.0 encoding=utf-8?
cfComponents:SizeableTitleWindow
xmlns:mx=http://www.adobe.com/2006/mxml; xmlns=*
xmlns:cfComponents=com.adobe.ColdFusion.components.*
creationComplete=initComponent()
title=Archive Contents
showCloseButton=true close=WindowManager.remove(this);
width=800 height=400 

mx:Script
![CDATA[
import 
com.adobe.windowedApplication.managers.WindowManager;
import mx.core.UIComponent;
import mx.collections.ArrayCollection;
import mx.utils.ObjectUtil;
import mx.controls.Alert;
import mx.rpc.events.FaultEvent;
import mx.rpc.events.ResultEvent;
import 
com.cfgenerated.views.detail.Archive_Content_Details;
import com.cfgenerated.views.masterdetail.Art_Details;
import 
com.cfgenerated.views.masterdetail.Recording_Details;
private var currentIndex:int = 0;

private var _key:Object;

[Bindable]
public function get key():Object
{
return this._key;
}
public function set key(key:Object):void
{
this._key = key;
}

private function initComponent():void
{
refreshList(null);
}

public function refreshList(event:Event):void
{
this.dataManager.getMasterQuery(this.key);
}

private function deleteItem(key:Object):void
{
this.dataManager.deleteItem(key);
}

private function 
getDetailComponent(key:Object):UIComponent
{
var view:Archive_Content_Details = new 
Archive_Content_Details();
view.key = key;
view.addEventListener(change, refreshList);
return view;
}

private function 
getArt_DetailsComponent(key:Object):UIComponent
{
var view:Art_Details = new Art_Details();
view.key = key;
return view;
}

private function 
getRecording_DetailsComponent(key:Object):UIComponent
{
var view:Recording_Details = new 
Recording_Details();
view.key = key;
return view;
}

/**
 * RemoteObject result and error handlers
 */
private function server_fault(event:FaultEvent):void
{
// dump error message
Alert.show( ObjectUtil.toString(event.fault) );
}

private function 
getMasterQuery_result(event:ResultEvent):void 
{
//Alert.show( ObjectUtil.toString(event.result) 
);
this.masterList.dataProvider = event.result as 
ArrayCollection;
this.masterList.selectedIndex = 
this.currentIndex;
}

private function 
deleteItem_result(event:ResultEvent):void
{
//Alert.show( ObjectUtil.toString(event.result) 
);
refreshList(null);
}

[Bindable]
private var linkedFormButtonVisible : Boolean = false;

[Bindable]
private var linkedFormButton = ;  
  
private static const ART_DETAILS_LABEL : String = Art 

[flexcoders] EventResult to Array

2007-06-07 Thread Giro
 

How can I convert an eventResult to an array?

 

I have this code:

 

mx:HTTPService resultFormat=e4x result=updateTree(event)
id=listdir_ext showBusyCursor=true method=POST url=read_dir.php
useProxy=false

mx:request xmlns=

/mx:request

/mx:HTTPService

 

Httpservice return:

 

dirlist

node label=test /

node label=test2 /

node label=test3 /

/dirlist

 

My result handler function is:

 

private function updateTree(event:ResultEvent):void

{

resultat = new Array(event.result.lastResult.dirlist.node.label
as Array);



mx.controls.Alert.show(resultat[0].toString());



}

 

 

But if I do this no result show.

 

Where is the problem?

 

Thk.

Giro.

 

 

 

 



Re: [flexcoders] Load a Flash 9 SWF with loadBytes?

2007-06-07 Thread EECOLOR

Check the documentation on the flash.display.Loader class, that will get you
what you need.

// Now what?
// Do I create a new class and associate it with the bytes
// and then add it as a child to my container?
// SWFHolder.addChild( ? );

The above comment would be replaced by something like (from the top of my
head):

var loader:Loader = new Loader();
loader.loadBytes(swfBytes);
SWFHolder.addChild(loader);


Greetz Erik


Re: [flexcoders] Re: Landscape printing in Flex

2007-06-07 Thread Tom Chiverton
On Wednesday 06 Jun 2007, archtechcomputers wrote:
 I even tried to design the page rotated, but when you rotate a label,
 you can't see it anymore :-(

You need to change to an embeded font to make that bit work, but yes, when I 
try to print a rotated PrintDataGrid it hasn't been scaled correctly (it no 
longer fills the page width).

We've done the same thing for now - tell the user landscape is best.
Maybe Flex 3 will add this ability.


-- 
Tom Chiverton
Helping to apprehensively reinvent revolutionary clusters
on: http://thefalken.livejournal.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 St 
James's Court Brown Street Manchester M2 2JF.  A list of members is available 
for inspection at the registered office. Any reference to a partner in relation 
to Halliwells LLP means a member of Halliwells LLP. Regulated by the Law 
Society.

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 8008.

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



--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* Your email settings:
Individual Email | Traditional

* To change settings online go to:
http://groups.yahoo.com/group/flexcoders/join
(Yahoo! ID required)

* To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 


[flexcoders] Re: coordiates of items in a datagrid

2007-06-07 Thread Matt Maher
Alex, thanks so much! Can you tell me a bit more? I have looked 
through the debugger and seen the listItems but I cannot seem to 
figure out how to get reference to that list during runtime...

Is this what subclassing will do for me? How can I do that?

Thanks again for at least letting me know it's even POSSIBLE though.


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

 You'll have to subclass and then snoop through the listItems array
 
  
 
 
 
 From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On
 Behalf Of Matt Maher
 Sent: Wednesday, June 06, 2007 4:20 PM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] coordiates of items in a datagrid
 
  
 
 I have a datagrid and want the user to be able to draw a selection 
 box over the elements in it... 
 
 When the user lets go of the mouse button I want to look through 
the 
 items of the grid to ask each if they fall within the coordinates 
of 
 the box.
 
 This sounds so simple and I've gotten to the last step in the 
process, 
 but I cannot seem to find any way to determine the coordinates of 
the 
 elements in the datagrid which are currently displayed. There just 
must 
 be something...
 
 Any help at all on this matter would be so greatly appreciated. I 
am 
 pulling my (already gone) hair out over this one.
 
 Thanks





Re: [flexcoders] Re: repeater child click event

2007-06-07 Thread Tom Chiverton
On Wednesday 06 Jun 2007, nhp_ny wrote:
 the repeater has no children property.

Did you read all of 
http://livedocs.adobe.com/flex/201/langref/mx/core/Repeater.html ?

-- 
Tom Chiverton
Helping to synergistically reinvent cross-platform IPOs
on: http://thefalken.livejournal.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 St 
James's Court Brown Street Manchester M2 2JF.  A list of members is available 
for inspection at the registered office. Any reference to a partner in relation 
to Halliwells LLP means a member of Halliwells LLP. Regulated by the Law 
Society.

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 8008.

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



--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* Your email settings:
Individual Email | Traditional

* To change settings online go to:
http://groups.yahoo.com/group/flexcoders/join
(Yahoo! ID required)

* To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 


[flexcoders] Re: repeater child click event

2007-06-07 Thread nhp_ny
--- In flexcoders@yahoogroups.com, Derek Vadneau [EMAIL PROTECTED] 
wrote:

 Sorry, I responded before trying, duh.
 
 Here's some working code (modified from the docs Referencing 
repeated
 components):
 
 ?xml version=1.0 encoding=utf-8?
 mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; xmlns=*
 layout=absolute
 mx:Script
 ![CDATA[
 [Bindable]
 private var dp:Array = [1, 2, 3, 4, 5, 6, 7, 8, 9];
 
 private function onClick(b:*):void
 {
 trace(b);
 }
 ]]
 /mx:Script
 
 mx:Panel title=Repeater Example width=75% height=75%
 paddingTop=10 paddingLeft=10 paddingRight=10
 paddingBottom=10
 mx:Text width=100% color=blue
 text=Use the Repeater class to create 9 Button 
controls in a 3
 by 3 Tile container./
 
 mx:Tile direction=horizontal borderStyle=inset
 horizontalGap=10 verticalGap=15
 paddingLeft=10 paddingTop=10 paddingBottom=10
 paddingRight=10
 mx:Repeater id=rp dataProvider={dp}
 mx:LinkButton id=myLB height=50 width=50
 label={String(rp.currentItem)}
 click=onClick(event.target);/
 /mx:Repeater
 /mx:Tile
 
 mx:Button label=onClick click=onClick(myLB[0]);/
 
 /mx:Panel
 /mx:Application
 
 On 6/6/07, nhp_ny [EMAIL PROTECTED] wrote:
 
--- In flexcoders@yahoogroups.com flexcoders%
40yahoogroups.com,
  nhp_ny nhp_ny@ wrote:
  
   mx:Repeater ... 
   mx:LinkButton id=myLB click=onClick(Event.currentTarget)/
   /mx:Repeater
  
  
   how can i fire the click event of repeater child component myLB
[0]?
   just to simulate a mouse click on that component.
  
 
  is it possibile that nobody here knows how to do this? i just 
need to
  call the onClick function passing it the first child component of 
the
  repeater that should be myLB[0].
 
   
 
 
 
 
 -- 
 
 Derek Vadneau



yes ok,... thats what i'm working on too... but when i put the :

mx:Button label=onClick click=onClick(myLB[0]);/

line inside a function, i doesn't work.. because i need to call the 
function from AS. Like:

proivate function onInitApp():void
{
onClick(myLB[0]);
}

thanks






[flexcoders] applying filters to assets to use as icon in components

2007-06-07 Thread Paolo Bernardini

How do you applying filter to assets to use as icon in components?

I want to apply a shadow to an image and than use it as icon for a button.

[Embed(source=myIcon.gif)]
[Bindable]
public var imgCls:Class;

I'm trying to convert it to a BitmapAsset then apply my filters and convert
back to Class to use it within the Button.icon but I get Casting type
errors.
Could some one please help me with this?


[flexcoders] Parameter passing !! I am shocked

2007-06-07 Thread Ravi Kumar Gummadi

Hi all

How does flex handle parameter passing, as I understand, it is by Pass
by reference. But I was having some memory leaks and playing around a
few tweaks and the following snippet completely took me by surprise.

// CODE START

script

public var obj:Object;

createObject(){

obj = {test:1234,test2:5678};
}

checkObject(objParam:Object){
trace(objParam);
}

deleteObject(objParam:Object){
objParam = null; // I tried objParam = undefined as well
}

/script

mx:Button id=create click=createObject() /
mx:Button id=check click=checkObject(obj) /
mx:Button id=delete click=deleteObject(obj) /
 
// END 

Now 1. I created the object by click on create
2. Then check for the existence of it (Traces [object object].. This
is fine)
3. Then clicked delete. 
4. Then again click on check... (Traces [object] [object]
! But since its passed by reference it should be
NULL)


Somewhere I read that it setting to NULL changes the reference count,
does that mean in each of my function I need to set all the params to
null at the end of it so that refercne count is reduced and raady for
garbage collection!! ( That doesn't quite a sense !!)

Regards
Ravi



[flexcoders] Formatting tabnavigator labels?

2007-06-07 Thread candysmate
Is there a way to highlight letters within the label of a tabnavigator
tab label? (the user wants accelerator key reminders)



[flexcoders] Re: Flex 2 locales...

2007-06-07 Thread teracyte
Whoops.  You did answer my question to #1.  My apologies.


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

 Thanks for the reply.  I don't think you answered my question for #1
 though.
 
 I am using Eclipse with the Flex Builder plug-in.  If I create a new
 MXML and add some static text (e.g. Name) which is acquired from a
 resource bundle, what I see in the editor is
 @Resource(key=nameLabel, bundle=bundleName) and not Name. 
 This is not a big deal for single languages, but when designing for
 multiple languages it would be nice to see Name and not
 @Resource  This way I can review the layout and (hopefully)
 switch between languages without having to build  launch multiple
swf's.
 
 Is there any way to accomplish this?
 
 
 --- In flexcoders@yahoogroups.com, Dimitrios Gianninas
 dimitrios.gianninas@ wrote:
 
  1) For now no. You have to create a FR and EN resource bundle, and
 compile against both of them, thus creating 2 different SWFs. Then
 load the appriopriate on via your JSP (or whatever server-side tech u
 use). However for Flex 3 you won't need to do this, as you can load a
 Resource Bundle at run-time.
   
  2)  Dont' think there is.
   
  Dimitrios Gianninas
  Developer
  Optimal Payments Inc.
   
  
  
  
  From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED]
 On Behalf Of teracyte
  Sent: Wednesday, June 06, 2007 12:44 PM
  To: flexcoders@yahoogroups.com
  Subject: [flexcoders] Flex 2  locales...
  
  
  
  1) Can Flex Builder display text in a locale of choice?
  
  For example:
  
  Can Flex Builder show la Name, not @Resource(key=userFieldLabel,
  bundle=Input) for labels), when the the application is compiled
  using -locale fr_CA. Is there a way to display a different locale
  without re-compiling to en_US?
  
  2) Are there best practices for locales? (E.g. Storage of locales
  relative to MXML  AS files; naming conventions; etc.)
  
  I would appreciate any insights you can provide. Thanks.
  
  
  
   
  
  -- 
  WARNING
  ---
  This electronic message and its attachments may contain
 confidential, proprietary or legally privileged information, which is
 solely for the use of the intended recipient.  No privilege or other
 rights are waived by any unintended transmission or unauthorized
 retransmission of this message.  If you are not the intended recipient
 of this message, or if you have received it in error, you should
 immediately stop reading this message and delete it and all
 attachments from your system.  The reading, distribution, copying or
 other use of this message or its attachments by unintended recipients
 is unauthorized and may be unlawful.  If you have received this e-mail
 in error, please notify the sender.
  
  AVIS IMPORTANT
  --
  Ce message électronique et ses pièces jointes peuvent contenir des
 renseignements confidentiels, exclusifs ou légalement privilégiés
 destinés au seul usage du destinataire visé.  L'expéditeur original ne
 renonce à aucun privilège ou à aucun autre droit si le présent message
 a été transmis involontairement ou s'il est retransmis sans son
 autorisation.  Si vous n'êtes pas le destinataire visé du présent
 message ou si vous l'avez reçu par erreur, veuillez cesser
 immédiatement de le lire et le supprimer, ainsi que toutes ses pièces
 jointes, de votre système.  La lecture, la distribution, la copie ou
 tout autre usage du présent message ou de ses pièces jointes par des
 personnes autres que le destinataire visé ne sont pas autorisés et
 pourraient être illégaux.  Si vous avez reçu ce courrier électronique
 par erreur, veuillez en aviser l'expéditeur.
 





[flexcoders] fullscreen question

2007-06-07 Thread Bogdan BALAJ
Hi,

we are looking to build a standalone app that will run in full screen.
To go to fullscreen on start is easy, the only problem that I have is
that when the user is pressing ESC, the player is getting back to it's
window size. 

This might be easy also to solve with an addEventListener function.
However, all of my tries are not succesfull with this particular issue. 

Anyone have managed to solved it? Can you share a working example for
this issue?

Thank you,
Bogdan 



[flexcoders] 2 quick chart questions

2007-06-07 Thread cruci_nz
Hi there, I just have 2 quick chart questions.

1) I read in the docs that with a line chart You can use an icon or
symbol to represent each data point along the line, or show a simple
line with no icons. - but I can't find any information about how to
add  the icon/symbol to the line. Anyone point me in the right direction?

2) I have a single line chart that I am feeding different data to with
state changes, however there is (at least) one chart that I don't want
to start from 0. I know I can do mx:LinearAxis baseAtZero=false /,
but I don't understand how to change that with a mx:SetProperty tag
like I'm changing other things.

Thanks for your time.



[flexcoders] mx:List: How do you get rid of the 1 pixel gap between item renderers?

2007-06-07 Thread Arpit Mathur

This has been asked in the group before but I havent seen an answer. Does
anyone know how to get rid of the 1 pixel gap between item renderers in a
list ? I think Flex is trying to ensure the highlighting (or rollover or
selected) works but I dont need the highlighting since the renderer itself
has a highlight look.


[flexcoders] AS2 SWF in Flex for Pdf2Swf

2007-06-07 Thread Anush Shetty
Hi,

I am trying to use the AS2 SWF created from pdf2swf tool and use it in
flex. All I want is to be able to flip through the SWF frames in flex.
I am using LocalConnection technique for this method since Flex has
some problems with Flash8 SWFs. I have defined nextFrame within
LocalConnection function in the AS2 file . Then I am calling the
function from AS3 file again using LocalConnection. But when I run
this, I dont get the display. I am using the Firefox browser.

Has anybody here tried something like this.

regards,
Anush



[flexcoders] Re: EventResult to Array

2007-06-07 Thread candysmate
--- In flexcoders@yahoogroups.com, Giro [EMAIL PROTECTED] wrote:

  
 
 How can I convert an eventResult to an array?
 
  
 
 I have this code:
 
  
 
 mx:HTTPService resultFormat=e4x result=updateTree(event)
 id=listdir_ext showBusyCursor=true method=POST url=read_dir.php
 useProxy=false
 
 mx:request xmlns=
 
 /mx:request
 
 /mx:HTTPService
 
  
 
 Httpservice return:
 
  
 
 dirlist
 
 node label=test /
 
 node label=test2 /
 
 node label=test3 /
 
 /dirlist
 
  
 
 My result handler function is:
 
  
 
 private function updateTree(event:ResultEvent):void
 
 {
 
 resultat = new
Array(event.result.lastResult.dirlist.node.label
 as Array);
 
 
 
 mx.controls.Alert.show(resultat[0].toString());
 
 
 
 }
 
  
 
  
 
 But if I do this no result show.
 
  
 
 Where is the problem?
 
  
 
 Thk.
 
 Giro.


Try something like:

  import mx.utils.ArrayUtil;

  [Bindable]
  public var dataArrayResult:Object;

  public  function dataResult(event:ResultEvent):void
{

dataArrayResult = ArrayUtil.toArray(event.result);


}



[flexcoders] Re: Sysdeo Tomcat Plugin

2007-06-07 Thread Everson Alves da Silva
 Has anyone had success using the Tomcat Plugin from Sysdeo with Flex
 Builder? 


Yes. Just install Eclipse Java Development Tools, from eclipse update
site that it will work.



[flexcoders] Re: Flex Java, Where to Start?

2007-06-07 Thread simonjpalmer
Sun has a very comprehensive online documentation of the Java language.  

This is a good book if you are a seasoned developer and just wanting
to pick up Java Java In A Nutshell by David Flanagan, O'Reilly.  

Another really good book is Just Java 2 by Peter van der Linden, Sun
Microsystems Press.  I learnt Java from these (C++ background) and I
recommend both.

There aren't really variations of Java itself, so a basic grounding in
the language is something that you can use whatever you end up doing.
 However there are lots of design and coding patterns around Java
which give high productivity, especially when using Java to write
server software, which is probably what you mean by Java as it relates
to Flex.  Java doesn't specifically relate to flex or vice versa, but
there is middleware which serialises between Java and ActionScript,
such as FDS.

On the server you will need to look at EJB and J2EE and I would
recommend Spring, although it takes a bit of getting your head around,
and Hibernate if you are persisting your data relationally.  These are
all frameworks for coding which, with supporting packages from 3rd
parties, give a high degree of productivity in writing scalable Java
servers.  It is truly amazing how much fee code there is available.

You'll probably wind up with Eclipse as an IDE too, so it is worth
familiarising yourself with that.  Don't expect the Microsoft IDE, but
it is pretty good all the same.

I'm sure lots of people will comment, but i hope that gives you some
first pointers of what to google.

Good luck


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

 Hello,
 
 I have begun working with Flex a couple of months ago and have been
 learning fairly quickly. I come from a Microsoft ASP.net background,
 but would prefer to work with Flex  Java. Can anyone suggest
 resources and/or books to start learning Java as it relates to Flex.
 There seams to be many variations of Java for different development
 needs  I am not sure where to begin. Thanks
 
 Aaron





[flexcoders] Modify plain text without losing html

2007-06-07 Thread hrund1k
Hello guys!

How to modify plain text and at the same time save it's html 
formatting? (i'm working on smilies support for TextInput and 
TextArea and have to replace some parts of the text with spaces in 
order to place smilies on them). 
I'm thinking on direct html parsing, but i can break html code that 
way, for example, with :) smiley



Re: [flexcoders] Parameter passing !! I am shocked

2007-06-07 Thread Roman Protsiuk

objParam is not the same reference to created object as obj. Whenever you
set objParam to null it becomes null (try checking it out in your
deleteObject method). But who said the obj should become null? To prepare
obj for garbage collection you should set obj to null.

R.

On 6/7/07, Ravi Kumar Gummadi [EMAIL PROTECTED] wrote:



Hi all

How does flex handle parameter passing, as I understand, it is by Pass
by reference. But I was having some memory leaks and playing around a
few tweaks and the following snippet completely took me by surprise.

// CODE START

script

public var obj:Object;

createObject(){

obj = {test:1234,test2:5678};
}

checkObject(objParam:Object){
trace(objParam);
}

deleteObject(objParam:Object){
objParam = null; // I tried objParam = undefined as well
}

/script

mx:Button id=create click=createObject() /
mx:Button id=check click=checkObject(obj) /
mx:Button id=delete click=deleteObject(obj) /

// END

Now 1. I created the object by click on create
2. Then check for the existence of it (Traces [object object].. This
is fine)
3. Then clicked delete.
4. Then again click on check... (Traces [object] [object]
! But since its passed by reference it should be
NULL)

Somewhere I read that it setting to NULL changes the reference count,
does that mean in each of my function I need to set all the params to
null at the end of it so that refercne count is reduced and raady for
garbage collection!! ( That doesn't quite a sense !!)

Regards
Ravi

 



[flexcoders] Re: Modify plain text without losing html

2007-06-07 Thread hrund1k
Here is my smiley component - http://www.hrundik.ru/smiley/
SmileyTextTest.html 
You can download the source http://www.hrundik.ru/smiley/
SmileyText.zip

Any help and comments are appreciated

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

 Hello guys!
 
 How to modify plain text and at the same time save it's html 
 formatting? (i'm working on smilies support for TextInput and 
 TextArea and have to replace some parts of the text with spaces in 
 order to place smilies on them). 
 I'm thinking on direct html parsing, but i can break html code that 
 way, for example, with :) smiley





RE: [flexcoders] Re: EventResult to Array

2007-06-07 Thread Giro
Dont work, if i make mx.controls.alert.show(dataArrayResult.length) this
show 1

 

 

Giro.

 

  _  

De: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] En nombre
de candysmate
Enviado el: jueves, 07 de junio de 2007 12:26
Para: flexcoders@yahoogroups.com
Asunto: [flexcoders] Re: EventResult to Array

 

--- In [EMAIL PROTECTED] mailto:flexcoders%40yahoogroups.com ups.com,
Giro [EMAIL PROTECTED] wrote:

 
 
 How can I convert an eventResult to an array?
 
 
 
 I have this code:
 
 
 
 mx:HTTPService resultFormat=e4x result=updateTree(event)
 id=listdir_ext showBusyCursor=true method=POST url=read_dir.php
 useProxy=false
 
 mx:request xmlns=
 
 /mx:request
 
 /mx:HTTPService
 
 
 
 Httpservice return:
 
 
 
 dirlist
 
 node label=test /
 
 node label=test2 /
 
 node label=test3 /
 
 /dirlist
 
 
 
 My result handler function is:
 
 
 
 private function updateTree(event:ResultEvent):void
 
 {
 
 resultat = new
Array(event.result.lastResult.dirlist.node.label
 as Array);
 
 
 
 mx.controls.Alert.show(resultat[0].toString());
 
 
 
 }
 
 
 
 
 
 But if I do this no result show.
 
 
 
 Where is the problem?
 
 
 
 Thk.
 
 Giro.


Try something like:

import mx.utils.ArrayUtil;

[Bindable] 
public var dataArrayResult:Object;

public function dataResult(event:ResultEvent):void
{

dataArrayResult = ArrayUtil.toArray(event.result);


}

 



Re: [flexcoders] Modify plain text without losing html

2007-06-07 Thread Tom Chiverton
On Thursday 07 Jun 2007, hrund1k wrote:
 I'm thinking on direct html parsing, but i can break html code that
 way, for example, with :) smiley

Only if you don't insert gt;:) instead.

-- 
Tom Chiverton
Helping to autoschediastically facilitate error-free design-patterns
on: http://thefalken.livejournal.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 St 
James's Court Brown Street Manchester M2 2JF.  A list of members is available 
for inspection at the registered office. Any reference to a partner in relation 
to Halliwells LLP means a member of Halliwells LLP. Regulated by the Law 
Society.

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 8008.

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



--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* Your email settings:
Individual Email | Traditional

* To change settings online go to:
http://groups.yahoo.com/group/flexcoders/join
(Yahoo! ID required)

* To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 


Re: [flexcoders] Re: repeater child click event

2007-06-07 Thread Tom Chiverton
On Thursday 07 Jun 2007, nhp_ny wrote:
 yes ok,... thats what i'm working on too... but when i put the :

 mx:Button label=onClick click=onClick(myLB[0]);/

 line inside a function, i doesn't work.. because i need to call the
 function from AS. Like:

 proivate function onInitApp():void
 {
 onClick(myLB[0]);
 }

Your other option, rather than mucking about is to refactor so you have a 
method that is decoupled from knowing about your LinkBar.
Call that from both onClick() and onInitApp().

-- 
Tom Chiverton
Helping to augmentatively synergize strategic ROI
on: http://thefalken.livejournal.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 St 
James's Court Brown Street Manchester M2 2JF.  A list of members is available 
for inspection at the registered office. Any reference to a partner in relation 
to Halliwells LLP means a member of Halliwells LLP. Regulated by the Law 
Society.

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 8008.

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



--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* Your email settings:
Individual Email | Traditional

* To change settings online go to:
http://groups.yahoo.com/group/flexcoders/join
(Yahoo! ID required)

* To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 


[flexcoders] Re: ArrayCollection not working? Pulling out my HAIR!!!

2007-06-07 Thread Jason Ervin
If I can just get my xml into an array that would be great. I guess I
am going to have to skip ArrayUtil and hand code this as before with
proxyObject. Sure wish Adobe would update the arrayutil in Flex 3, or
better yet make importing data a drag and drop operation. Would make
this much simpiliar. Dragging in certain nodes from XML into an array
would ease the pain.

J

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

 I don't think ArrayUtil is as smart as you wish it was.  You may have to
 write your own conversion.
 
  
 
 
 
 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
 Behalf Of Jason Ervin
 Sent: Wednesday, June 06, 2007 6:50 PM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Re: ArrayCollection not working? Pulling out my
 HAIR!!!
 
  
 
 Well I am using one data source via the singleton pattern as I have
 approx. 20 screen feeding of the xml data. I am sure xml will work
 with that. I wanted to use an Array or Arraycollection because I am
 going to be using several hsliders to splice the data in arrays.
 
 I think it would be easier with an array than xml. Do you have an
 example of how to splice up the data with xml rather than an array?
 
 Thanks in advance for any help.
 
 J
 
 --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
 , Brendan Meutzner bmeutzner@
 wrote:
 
  Any reason you're going through the trouble of converting to an
  ArrayCollection? The following will work with your XML data just
 fine...
  
  mx:ColumnChart id=mybarchart dataProvider={billData.bill}
  showDataTips=true paddingLeft=5 paddingRight=5 width=100%
  height=100%
  mx:horizontalAxis
  mx:CategoryAxis categoryField=@account/
  /mx:horizontalAxis
  mx:series
  mx:ColumnSeries displayName=Electric Bill
 xField=@account
  yField=electricitybillamount /
  mx:ColumnSeries displayName=Gas Bill xField=@account
  yField=gasbillamount /
  mx:ColumnSeries displayName=Water Bill xField=@account
  yField=waterbillamount /
  /mx:series
  /mx:ColumnChart
  
  
  Brendan
  
  
  
  On 6/6/07, Jason Ervin jason_newport@ wrote:
  
   Hey everyone I am having issues with using an arraycollection as a
   dataprovider. I start with an xml variable (see below) then I
 convert
   it to an ArrayCollection using ArrayUtil.toArray and I use the
 result
   as a dataprovider. If I trace the dataprovider it prints out the xml
   data, but my chart is empty. Can you use ArrayUtil on xml data with
   this many nodes? I have spent way to much time on this.
  
   Here is what I have starting with my XML file.
  
   XML CODE START
  
   public var billData:XML =
   data
   bill account=100-1234567
   monthMay-05/month
   activetrue/active
   electricitybillamount60.00/electricitybillamount
   gasbillamount45.00/gasbillamount
   waterbillamount15.00/waterbillamount
   totalbill120.00/totalbill
   electricityusage500/electricityusage
   gasusage71.4/gasusage
   waterusage200/waterusage
   electricityservicecharge18.00/electricityservicecharge
   gasservicecharge9.00/gasservicecharge
   waterservicecharge2.00/waterservicecharge
   totalserviccharge29.00/totalserviccharge
   electricitytax4.00/electricitytax
   gastax2.00/gastax
   watertax1.00/watertax
   totaltax7.00/totaltax
   elecperdaycost2.00/elecperdaycost
   gasperdaycost1.00/gasperdaycost
   waterperdaycost.50/waterperdaycost
   totalperdaycost3.50/totalperdaycost
   pastdueamount0.00/pastdueamount
   billingdays33/billingdays
   billdate5/01/2007/billdate
   budgetbillamount155.00/budgetbillamount
   readtypemanual/readtype
   elecmeterreadend152868/elecmeterreadend
   /bill
   bill account=123-2345678
   monthApr-05/month
   activetrue/active
   electricitybillamount88.88/electricitybillamount
   gasbillamount50.00/gasbillamount
   waterbillamount15.00/waterbillamount
   totalbill115.00/totalbill
   electricityusage300/electricityusage
   gasusage62.9/gasusage
   waterusage189/waterusage
   electricityservicecharge15.00/electricityservicecharge
   gasservicecharge6.00/gasservicecharge
   waterservicecharge3.00/waterservicecharge
   totalserviccharge24.00/totalserviccharge
   electricitytax4.50/electricitytax
   gastax2.50/gastax
   watertax1.25/watertax
   totaltax8.25/totaltax
   elecperdaycost2.10/elecperdaycost
   gasperdaycost1.90/gasperdaycost
   waterperdaycost.50/waterperdaycost
   totalperdaycost4.50/totalperdaycost
   pastdueamount0.00/pastdueamount
   billingdays28/billingdays
   billdate3/29/2007/billdate
   budgetbillamount155.00/budgetbillamount
   readtypeamr/readtype
   elecmeterreadend150008/elecmeterreadend
   /bill
   bill account=145-3456789
   monthMar-05/month
   activetrue/active
   electricitybillamount62.00/electricitybillamount
   gasbillamount45.10/gasbillamount
   waterbillamount10.00/waterbillamount
   totalbill118.10/totalbill
   electricityusage300/electricityusage
   gasusage50.4/gasusage
   waterusage210/waterusage
   

Re: [flexcoders] Modify plain text without losing html

2007-06-07 Thread Hrundik

The real problem is that i work with .getCharBoundaries and this method
needs char index. And i can't get real char index by processing html, not
plain text

On 6/7/07, Tom Chiverton [EMAIL PROTECTED] wrote:


On Thursday 07 Jun 2007, hrund1k wrote:
 I'm thinking on direct html parsing, but i can break html code that
 way, for example, with :) smiley

Only if you don't insert gt;:) instead.

--
Tom Chiverton
Helping to autoschediastically facilitate error-free design-patterns
on: http://thefalken.livejournal.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 St James's Court Brown Street Manchester M2 2JF.  A list of members is
available for inspection at the registered office. Any reference to a
partner in relation to Halliwells LLP means a member of Halliwells LLP.
Regulated by the Law Society.

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 8008.

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



--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
Yahoo! Groups Links







--
Best regards,
 Hrundik  mailto:[EMAIL PROTECTED]


[flexcoders] Re: repeater child click event

2007-06-07 Thread nhp_ny
--- In flexcoders@yahoogroups.com, Tom Chiverton [EMAIL PROTECTED] 
wrote:

 On Thursday 07 Jun 2007, nhp_ny wrote:
  yes ok,... thats what i'm working on too... but when i put the :
 
  mx:Button label=onClick click=onClick(myLB[0]);/
 
  line inside a function, i doesn't work.. because i need to call 
the
  function from AS. Like:
 
  proivate function onInitApp():void
  {
  onClick(myLB[0]);
  }
 
 Your other option, rather than mucking about is to refactor so you 
have a 
 method that is decoupled from knowing about your LinkBar.
 Call that from both onClick() and onInitApp().
 
 -- 
 Tom Chiverton
 Helping to augmentatively synergize strategic ROI
 on: http://thefalken.livejournal.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 St James's Court Brown Street Manchester M2 
2JF.  A list of members is available for inspection at the registered 
office. Any reference to a partner in relation to Halliwells LLP 
means a member of Halliwells LLP. Regulated by the Law Society.
 
 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 8008.
 
 For more information about Halliwells LLP visit www.halliwells.com.


sorry, maybe it's my english, but i didn't get it. 1 little line of 
code is better that 1 million words.



Re: [flexcoders] Possible bug with TextInput

2007-06-07 Thread Tom Chiverton
On Wednesday 06 Jun 2007, Dmitry Miller wrote:
 Entering the following string (by copy/pasting) #7945;#947;#943;#945;
 #931;#959;#966;#943;#945; into Flex2 TextInput would result in the
 string displayed incorrectly. The first character of the string would
 appear as square.

Does the font have a matching glyph ?

-- 
Tom Chiverton
Helping to preemptively monetize unique systems
on: http://thefalken.livejournal.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 St 
James's Court Brown Street Manchester M2 2JF.  A list of members is available 
for inspection at the registered office. Any reference to a partner in relation 
to Halliwells LLP means a member of Halliwells LLP. Regulated by the Law 
Society.

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 8008.

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



--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* Your email settings:
Individual Email | Traditional

* To change settings online go to:
http://groups.yahoo.com/group/flexcoders/join
(Yahoo! ID required)

* To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 


[flexcoders] Re: repeater child click event

2007-06-07 Thread nhp_ny
this is my OnClick function:

private function onClickCanali(obj:Object, xmlFile:String):void
{
var lb:LinkButton;

for each (lb in lbCanali)
{
lb.enabled = true   
}
obj.enabled = false;

LoadXmlFile(xmlFile);
}

as you can see, i need to pass parameters to it, don't see another 
way to do it. I have vertical linkbuttons that i'm using like if i 
had a vertical linkbar. when i disable a linkbutton, the others get 
enabled. just like the linkbar does.

and this is the xml that calls the func:

mx:Repeater id=rCanali dataProvider={xmlCanali.canale}
mx:LinkButton id=lbCanali label={rCanali.currentItem.title} 
width=100% textAlign=left click=onClickCanali
(event.currentTarget, event.currentTarget.getRepeaterItem
().xmlfile);/
/mx:Repeater




Re: [flexcoders] Parameter passing !! I am shocked

2007-06-07 Thread Jeffry Houser

  I think you missed his point.

  He sent in obj as a parameter to a function.  So objParam should be a 
reference to obj; and nulling one should definitely null the other.

  I do notice that the functions in the example are not declared as 
functions with the public function keywords.  Could that be a 
contributing factor to the problem?

Roman Protsiuk wrote:
 
 
 objParam is not the same reference to created object as obj. Whenever 
 you set objParam to null it becomes null (try checking it out in your 
 deleteObject method). But who said the obj should become null? To 
 prepare obj for garbage collection you should set obj to null.
 
 R.
 
 On 6/7/07, *Ravi Kumar Gummadi* [EMAIL PROTECTED] 
 mailto:[EMAIL PROTECTED] wrote:
 
 
 Hi all
 
 How does flex handle parameter passing, as I understand, it is by Pass
 by reference. But I was having some memory leaks and playing around a
 few tweaks and the following snippet completely took me by surprise.
 
 // CODE START
 
 script
 
 public var obj:Object;
 
 createObject(){
 
 obj = {test:1234,test2:5678};
 }
 
 checkObject(objParam:Object){
 trace(objParam);
 }
 
 deleteObject(objParam:Object){
 objParam = null; // I tried objParam = undefined as well
 }
 
 /script
 
 mx:Button id=create click=createObject() /
 mx:Button id=check click=checkObject(obj) /
 mx:Button id=delete click=deleteObject(obj) /
 
 // END
 
 Now 1. I created the object by click on create
 2. Then check for the existence of it (Traces [object object].. This
 is fine)
 3. Then clicked delete.
 4. Then again click on check... (Traces [object] [object]
 ! But since its passed by reference it should be
 NULL)
 
 Somewhere I read that it setting to NULL changes the reference count,
 does that mean in each of my function I need to set all the params to
 null at the end of it so that refercne count is reduced and raady for
 garbage collection!! ( That doesn't quite a sense !!)
 
 Regards
 Ravi
 


-- 
Jeffry Houser, Technical Entrepreneur, Software Developer, Author, 
Recording Engineer
AIM: Reboog711  | Phone: 1-203-379-0773
--
My Company: http://www.dot-com-it.com
My Podcast: http://www.theflexshow.com
My Blog: http://www.jeffryhouser.com



[flexcoders] Re: Flex Data Services consumes messages, but no delivery to Consumer in application

2007-06-07 Thread Manohar Madhusudan Joshi

Have you tried changing network properties like throttle-inbound and
throttle-outbound ?

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

 Our backend application is pumping a large number of messages through
an ActiveMQ
 queue (upwards of 6,000 typically) to our frontend application (Flex
based) through Flex
 Data Services.

 We are using Jconsole to track the number of messages that go in to
the queue, and the
 number of messages that get pulled off of the queue. In our testing,
100% of the time Flex
 Data Services consumes 100% of the messages off of the queue. Roughly
30% of the time
 however, the Flex application's Consumer receives only a small portion
of the total
 messages from FDS (the number varies, but it is usually around 5-10%
of the total
 messages).

 We have looked through the FDS documentation extensively, and added
all appropriate
 settings to both our messaging-config.xml and our services-config,
here are some
 excerpts of those settings:

 Our queue as defined in messaging-config.xml:

 destination id=MQ1
 adapter ref=jms /
 properties
 network
 session-timeout0/session-timeout
 /network
 jms
 destination-typeQueue/destination-type
 message-typejavax.jms.TextMessage/message-type
 connection-factoryConnectionFactory/connection-factory
 destination-jndi-namedynamicQueues/MQ1/destination-
 jndi-name
 delivery-modePERSISTENT/delivery-mode
 message-priorityDEFAULT_PRIORITY/message-priority
 acknowledge-modeAUTO_ACKNOWLEDGE/acknowledge-mode
 transacted-sessionsfalse/transacted-sessions

 initial-context-environment
 property
 nameContext.INITIAL_CONTEXT_FACTORY/name

 valueorg.apache.activemq.jndi.ActiveMQInitialContextFactory/value
 /property
 property
 nameContext.PROVIDER_URL/name
 valuetcp://192.168.2.187:61616/value
 /property
 /initial-context-environment

 /jms
 server
 max-cache-size10/max-cache-size
 message-time-to-live0/message-time-to-live
 durabletrue/durable
 /server
 /properties
 channels
 channel ref=my-rtmp /
 /channels
 /destination

 As you can see, we are setting generous values for our max-cache-size
(number of
 messages to cache), and making sure that our messages live forever on
the queue, and we
 are also ensuring delivery by setting their durable setting to true.
We also ensure that our
 consumers never automatically disconnect from the queue
(session-timeout = 0).

 Our RTMP channel definition in services-config.xml:

 channel-definition id=my-rtmp
class=mx.messaging.channels.RTMPChannel
 endpoint uri=rtmp://{server.name}:443
 class=flex.messaging.endpoints.RTMPEndpoint/
 properties
 idle-timeout-minutes720/idle-timeout-minutes
 client-to-server-maxbps1K/client-to-server-maxbps
 server-to-client-maxbps1K/server-to-client-maxbps
 accept-backlog10/accept-backlog
 /properties
 /channel-definition

 Again, we are setting generous values for all of our values here to
ensure delivery of
 messages.

 We had initially thought that perhaps this was based on the UDP
protocol and packets
 were getting dropped (for whatever reason). After some research, we
are led to believe
 that RTMP (the protocol of which these messages are transferred over)
is based on TCP,
 which would mean that there shouldn't be any dropping of packets. We
have pretty much
 ruled this out as a possible problem.

 Does anybody have any experience with these types of issues? Or any
thoughts on what
 else we might look at for settings, optimization, etc?

 Help for any Adobe guys or general gurus in Flex Data Services would
be much
 appreciated.

 Thanks for your time,

 Brian






[flexcoders] Re: fullscreen question

2007-06-07 Thread arpitmathur_80
I think there may not be an option to alter that behavior since adobe
is worried that people may use the feature to take away the user's
navigation and ability to move out of the experience. So the esc key
is permanently tied to escaping the fullscreen experience, as far as I
know.


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

 Hi,
 
 we are looking to build a standalone app that will run in full screen.
 To go to fullscreen on start is easy, the only problem that I have is
 that when the user is pressing ESC, the player is getting back to it's
 window size. 
 
 This might be easy also to solve with an addEventListener function.
 However, all of my tries are not succesfull with this particular issue. 
 
 Anyone have managed to solved it? Can you share a working example for
 this issue?
 
 Thank you,
 Bogdan





Re: [flexcoders] Re: Content overflow problem in a Box

2007-06-07 Thread Manish Jethani
On 6/6/07, de.newsight [EMAIL PROTECTED] wrote:

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

  What happens when you set minWidth and minHeight to 0 on the Canvas?

 When I set minWidth/minHeight to the Canvas I get the same behavior. The
 VBox is sized to the width of the Canvas and there are still no
 scrollbars.

I think I made a mistake. You have to set minWidth/minHeight on the
VBox rather than its contents. Can you try that?

One of these days I have to make a post to explain the box layout
algorithm and its oddities.


Re: [flexcoders] Re: repeater child click event

2007-06-07 Thread Tom Chiverton
On Thursday 07 Jun 2007, nhp_ny wrote:
 this is my OnClick function:

This has an xmlFile argument that isn't set in the inital code you posted, 
I'll assume it's a page variable.

 private function onClickCanali(obj:Object, xmlFile:String):void
 {
   var lb:LinkButton;

   for each (lb in lbCanali)
   {
   lb.enabled = true
   }
   obj.enabled = false;

 LoadXmlFile(xmlFile);
 }

 as you can see, i need to pass parameters to it, don't see another
 way to do it. 

Right. Ya see, you post code and it all becomes much easier.

private function onClickCanali(event:MouseEvent):void{
   selectOnly(event.target.label);
}

private function selectOnly(lab:String){
 var lb:LinkButton;

for each (lb in lbCanali)
{
 if (lb.label==lb){
   lb.enabled = true   ;
}else{
lb.enabeled=false;  
}   
}

        LoadXmlFile(xmlFile);   
}

in initApp():
selectOnly(someLabel);//you could get this string from the 
dataProvider of 
the repeater too.


 I have vertical linkbuttons that i'm using like if i 
 had a vertical linkbar. when i disable a linkbutton, the others get
 enabled. just like the linkbar does.

 and this is the xml that calls the func:

 mx:Repeater id=rCanali dataProvider={xmlCanali.canale}
 mx:LinkButton id=lbCanali label={rCanali.currentItem.title}
 width=100% textAlign=left click=onClickCanali
 (event.currentTarget, event.currentTarget.getRepeaterItem
 ().xmlfile);/
 /mx:Repeater



-- 
Tom Chiverton
Helping to enthusiastically facilitate robust models
on: http://thefalken.livejournal.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 St 
James's Court Brown Street Manchester M2 2JF.  A list of members is available 
for inspection at the registered office. Any reference to a partner in relation 
to Halliwells LLP means a member of Halliwells LLP. Regulated by the Law 
Society.

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 8008.

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



--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* Your email settings:
Individual Email | Traditional

* To change settings online go to:
http://groups.yahoo.com/group/flexcoders/join
(Yahoo! ID required)

* To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 


Re: [flexcoders] Re: ArrayCollection not working? Pulling out my HAIR!!!

2007-06-07 Thread Arpit Mathur

Would using an XMLListCollection help?
http://livedocs.adobe.com/flex/201/langref/mx/collections/XMLListCollection.html


On 6/7/07, Jason Ervin [EMAIL PROTECTED] wrote:


  If I can just get my xml into an array that would be great. I guess I
am going to have to skip ArrayUtil and hand code this as before with
proxyObject. Sure wish Adobe would update the arrayutil in Flex 3, or
better yet make importing data a drag and drop operation. Would make
this much simpiliar. Dragging in certain nodes from XML into an array
would ease the pain.

J

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

 I don't think ArrayUtil is as smart as you wish it was. You may have to
 write your own conversion.



 

 From: flexcoders@yahoogroups.com flexcoders%40yahoogroups.com [mailto:
flexcoders@yahoogroups.com flexcoders%40yahoogroups.com] On
 Behalf Of Jason Ervin
 Sent: Wednesday, June 06, 2007 6:50 PM
 To: flexcoders@yahoogroups.com flexcoders%40yahoogroups.com
 Subject: [flexcoders] Re: ArrayCollection not working? Pulling out my
 HAIR!!!



 Well I am using one data source via the singleton pattern as I have
 approx. 20 screen feeding of the xml data. I am sure xml will work
 with that. I wanted to use an Array or Arraycollection because I am
 going to be using several hsliders to splice the data in arrays.

 I think it would be easier with an array than xml. Do you have an
 example of how to splice up the data with xml rather than an array?

 Thanks in advance for any help.

 J

 --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.commailto:
flexcoders% flexcoders%2540yahoogroups.com

 , Brendan Meutzner bmeutzner@
 wrote:
 
  Any reason you're going through the trouble of converting to an
  ArrayCollection? The following will work with your XML data just
 fine...
 
  mx:ColumnChart id=mybarchart dataProvider={billData.bill}
  showDataTips=true paddingLeft=5 paddingRight=5 width=100%
  height=100%
  mx:horizontalAxis
  mx:CategoryAxis categoryField=@account/
  /mx:horizontalAxis
  mx:series
  mx:ColumnSeries displayName=Electric Bill
 xField=@account
  yField=electricitybillamount /
  mx:ColumnSeries displayName=Gas Bill xField=@account
  yField=gasbillamount /
  mx:ColumnSeries displayName=Water Bill xField=@account
  yField=waterbillamount /
  /mx:series
  /mx:ColumnChart
 
 
  Brendan
 
 
 
  On 6/6/07, Jason Ervin jason_newport@ wrote:
  
   Hey everyone I am having issues with using an arraycollection as a
   dataprovider. I start with an xml variable (see below) then I
 convert
   it to an ArrayCollection using ArrayUtil.toArray and I use the
 result
   as a dataprovider. If I trace the dataprovider it prints out the xml
   data, but my chart is empty. Can you use ArrayUtil on xml data with
   this many nodes? I have spent way to much time on this.
  
   Here is what I have starting with my XML file.
  
   XML CODE START
  
   public var billData:XML =
   data
   bill account=100-1234567
   monthMay-05/month
   activetrue/active
   electricitybillamount60.00/electricitybillamount
   gasbillamount45.00/gasbillamount
   waterbillamount15.00/waterbillamount
   totalbill120.00/totalbill
   electricityusage500/electricityusage
   gasusage71.4/gasusage
   waterusage200/waterusage
   electricityservicecharge18.00/electricityservicecharge
   gasservicecharge9.00/gasservicecharge
   waterservicecharge2.00/waterservicecharge
   totalserviccharge29.00/totalserviccharge
   electricitytax4.00/electricitytax
   gastax2.00/gastax
   watertax1.00/watertax
   totaltax7.00/totaltax
   elecperdaycost2.00/elecperdaycost
   gasperdaycost1.00/gasperdaycost
   waterperdaycost.50/waterperdaycost
   totalperdaycost3.50/totalperdaycost
   pastdueamount0.00/pastdueamount
   billingdays33/billingdays
   billdate5/01/2007/billdate
   budgetbillamount155.00/budgetbillamount
   readtypemanual/readtype
   elecmeterreadend152868/elecmeterreadend
   /bill
   bill account=123-2345678
   monthApr-05/month
   activetrue/active
   electricitybillamount88.88/electricitybillamount
   gasbillamount50.00/gasbillamount
   waterbillamount15.00/waterbillamount
   totalbill115.00/totalbill
   electricityusage300/electricityusage
   gasusage62.9/gasusage
   waterusage189/waterusage
   electricityservicecharge15.00/electricityservicecharge
   gasservicecharge6.00/gasservicecharge
   waterservicecharge3.00/waterservicecharge
   totalserviccharge24.00/totalserviccharge
   electricitytax4.50/electricitytax
   gastax2.50/gastax
   watertax1.25/watertax
   totaltax8.25/totaltax
   elecperdaycost2.10/elecperdaycost
   gasperdaycost1.90/gasperdaycost
   waterperdaycost.50/waterperdaycost
   totalperdaycost4.50/totalperdaycost
   pastdueamount0.00/pastdueamount
   billingdays28/billingdays
   billdate3/29/2007/billdate
   budgetbillamount155.00/budgetbillamount
   readtypeamr/readtype
   elecmeterreadend150008/elecmeterreadend
   /bill
   bill account=145-3456789
   

[flexcoders] Re: repeater child click event

2007-06-07 Thread nhp_ny
mx:Repeater id=rCanali dataProvider={xmlCanali.canale}
 mx:LinkButton id=lbCanali label={rCanali.currentItem.title}
 width=100% textAlign=left click=onClickCanali
 (event.currentTarget, event.currentTarget.getRepeaterItem
 ().xmlfile);/
/mx:Repeater

the xml file is there.

event.currentTarget.getRepeaterItem().xmlfile

its the second parameter of the onclickCanali function

thanks




[flexcoders] Re: repeater child click event

2007-06-07 Thread nhp_ny
--- In flexcoders@yahoogroups.com, Tom Chiverton [EMAIL PROTECTED] 
wrote:

 On Thursday 07 Jun 2007, nhp_ny wrote:
  this is my OnClick function:
 
 This has an xmlFile argument that isn't set in the inital code you 
posted, 
 I'll assume it's a page variable.
 
  private function onClickCanali(obj:Object, xmlFile:String):void
  {
  var lb:LinkButton;
 
  for each (lb in lbCanali)
  {
  lb.enabled = true
  }
  obj.enabled = false;
 
  LoadXmlFile(xmlFile);
  }
 
  as you can see, i need to pass parameters to it, don't see another
  way to do it. 
 
 Right. Ya see, you post code and it all becomes much easier.
 
 private function onClickCanali(event:MouseEvent):void{
    selectOnly(event.target.label);
 }
 
 private function selectOnly(lab:String){
    var lb:LinkButton;
 
 for each (lb in lbCanali)
 {
  if (lb.label==lb){
      lb.enabled = true   ;
   }else{
   lb.enabeled=false;  
   }   
 }
 
         LoadXmlFile(xmlFile); 
 }
 
 in initApp():
   selectOnly(someLabel);//you could get this string from the 
dataProvider of 
 the repeater too.
 
 
  I have vertical linkbuttons that i'm using like if i 
  had a vertical linkbar. when i disable a linkbutton, the others 
get
  enabled. just like the linkbar does.
 
  and this is the xml that calls the func:
 
  mx:Repeater id=rCanali dataProvider={xmlCanali.canale}
  mx:LinkButton id=lbCanali label={rCanali.currentItem.title}
  width=100% textAlign=left click=onClickCanali
  (event.currentTarget, event.currentTarget.getRepeaterItem
  ().xmlfile);/
  /mx:Repeater
 
 
 
 -- 
 Tom Chiverton
 Helping to enthusiastically facilitate robust models
 on: http://thefalken.livejournal.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 St James's Court Brown Street Manchester M2 
2JF.  A list of members is available for inspection at the registered 
office. Any reference to a partner in relation to Halliwells LLP 
means a member of Halliwells LLP. Regulated by the Law Society.
 
 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 8008.
 
 For more information about Halliwells LLP visit www.halliwells.com.


great!! got the idea but what about the xmlfile string? its a 
string that i need to get from the repeater dataprovider. When the 
user clicks the linkbutton, other than changing its state to 
disabled, i also need to have that string so i can load an external 
xml file.

the data provider is:

?xml version=1.0?
canali
canale id=1
titleMy Title/title
xmlfilexmldata/xmlfile
/canale
/canali




[flexcoders] Re: ASDoc on a Mac

2007-06-07 Thread joshbuhler
I know it's a belated answer, but I was having the same problem until about 10 
minutes 
ago on my MacBook Pro. However, ASDoc was working fine on my PowerMac. Until 
recently, I've been using Xcode  the Flex SDK on the PowerMac - so I had the 
SDK 
installed at:

/Developer/SDKs/Flex

I also have a path to the SDK in my .bash_profile

Just in some light testing, whenever I run ASDoc from the location above, it 
works just 
fine. But if I run it from the location it's installed with Flex Builder in my 
Applications 
folder, I get the same java.lang.NoClass error.

Kindof a pain to install the Flex SDK again in a different location, but it 
looks like one of 
the easiest fixes I've found so far. Hopefully FB3 can make using ASDoc a 
little more easier 
for us.

- Josh



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

 Anyone ever get ASDoc to work on a Mac?
 
 I'm having the same problem these dudes are having.
 
 http://www.google.com/search?hl=ensafe=offq=asdoc+Exception+in+thread+%
22main%22+java.lang.NoClassDefFoundError%3A+FlexbtnG=Search





[flexcoders] Re: Landscape printing in Flex

2007-06-07 Thread archtechcomputers
How did you get the reading of the orientation to work?
print orientation is a property of PrintJob, and not FlexPrintJob.
I have a page designed in a vbox component, which contains my form to 
be printed.
PrintJob uses a sprite.  The LiveDocs show to do something like:
var pj:PrintJob = new PrintJob
if (pj.start() != true) {
return;
}
if (pj.orientation != PrintJobOrientation.LANDSCAPE)
 Alert.show(Choose Landscape, Error, Alert.OK);
 return;
}

I can't do this using FlexPrintJob

Thanks

Joe

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

 On Wednesday 06 Jun 2007, archtechcomputers wrote:
  I even tried to design the page rotated, but when you rotate a 
label,
  you can't see it anymore :-(
 
 You need to change to an embeded font to make that bit work, but 
yes, when I 
 try to print a rotated PrintDataGrid it hasn't been scaled 
correctly (it no 
 longer fills the page width).
 
 We've done the same thing for now - tell the user landscape is best.
 Maybe Flex 3 will add this ability.
 
 
 -- 
 Tom Chiverton
 Helping to apprehensively reinvent revolutionary clusters
 on: http://thefalken.livejournal.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 St James's Court Brown Street Manchester M2 
2JF.  A list of members is available for inspection at the registered 
office. Any reference to a partner in relation to Halliwells LLP 
means a member of Halliwells LLP. Regulated by the Law Society.
 
 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 8008.
 
 For more information about Halliwells LLP visit www.halliwells.com.





RE: [flexcoders]Faking an XMLRPC call

2007-06-07 Thread Peter Farland
I'd check with an HTTP sniffer to see just what exactly is being sent on
the wire for the body of the request.
 
There are two known issues with the Flash Player XML type that
HTTPService does not work around correctly in 2.0. The scenario is that
if an XML value is provided as the body of a POST and that value has
only empty, simple content (i.e. no child elements, just the empty
string), then because toString() is called on the value when serializing
it, the first known issue is hit where by the root elements are
unwrapped and only the simple content is sent, i.e. the empty string.
The second issue is that if you try to send no content with POST, the
underlying URLLoader changes this back to GET.
 
The reason I suggest using an HTTP sniffer is perhaps while you think
you've provided a correct mx:request, perhaps it's not being actually
sent as such? How are you calling send() on the HTTP service?
 
Pete
 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of dorkie dork from dorktown
Sent: Thursday, June 07, 2007 4:00 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders]Faking an XMLRPC call



Is there a way to fake an XML RPC call? It seems like it'd be simple but
I can't get it to work:

mx:HTTPService id=srv
url= http://www.judahfrangipane.com/blog/xmlrpc.php
http://www.judahfrangipane.com/blog/xmlrpc.php  
fault={faultHandler(event)} 
result={resultHandler(event)} 
resultFormat=text
method=POST 
contentType=application/xml
mx:request
methodCall
methodNamemetaWeblog.getPost/methodName
params 
paramvaluestring77/string/value/param
 
paramvaluestringvisitor/string/value/param 
 
paramvaluestringvisitor/string/value/param
/params
/methodCall
/mx:request
/mx:HTTPService 

The result I get is XML-RPC server accepts POST requests only.

FYI I'm calling a wordpress blog. 

 


[flexcoders] Re: Parameter passing !! I am shocked

2007-06-07 Thread wpfeiffe
When it is said that the object is passed by reference versus passed
by value, what is being implied is that a copy of the object is NOT
being sent, but a reference instead is sent.  The reference itself is
STILL contained within a variable scoped to the method (the
parameter).  Therefore, nulling out the reference from within
deleteObject() has no effect on the obj var which still contains a
reference to the actual object.  

The reference count should make sense if you look at it like this: 

When you create the object and assign it to the obj var, you have a
reference count of 1.  When you pass the object into the
deleteObject() method, you now have a NEW reference (the parameter),
so your reference count is now 2.  When you null out the parameter,
your reference count goes back down to 1 (the obj var is still in
scope and still has a reference).  Even if you didn't null out the
parameter, the reference count would go back down to 1 when the
deleteObject() method ends and the parameter goes out of scope. 

Bill 



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

 
   I think you missed his point.
 
   He sent in obj as a parameter to a function.  So objParam should be a 
 reference to obj; and nulling one should definitely null the other.
 
   I do notice that the functions in the example are not declared as 
 functions with the public function keywords.  Could that be a 
 contributing factor to the problem?
 
 Roman Protsiuk wrote:
  
  
  objParam is not the same reference to created object as obj. Whenever 
  you set objParam to null it becomes null (try checking it out in your 
  deleteObject method). But who said the obj should become null? To 
  prepare obj for garbage collection you should set obj to null.
  
  R.
  
  On 6/7/07, *Ravi Kumar Gummadi* [EMAIL PROTECTED] 
  mailto:[EMAIL PROTECTED] wrote:
  
  
  Hi all
  
  How does flex handle parameter passing, as I understand, it is
by Pass
  by reference. But I was having some memory leaks and playing
around a
  few tweaks and the following snippet completely took me by
surprise.
  
  // CODE START
  
  script
  
  public var obj:Object;
  
  createObject(){
  
  obj = {test:1234,test2:5678};
  }
  
  checkObject(objParam:Object){
  trace(objParam);
  }
  
  deleteObject(objParam:Object){
  objParam = null; // I tried objParam = undefined as well
  }
  
  /script
  
  mx:Button id=create click=createObject() /
  mx:Button id=check click=checkObject(obj) /
  mx:Button id=delete click=deleteObject(obj) /
  
  // END
  
  Now 1. I created the object by click on create
  2. Then check for the existence of it (Traces [object
object].. This
  is fine)
  3. Then clicked delete.
  4. Then again click on check... (Traces [object] [object]
  ! But since its passed by reference it
should be
  NULL)
  
  Somewhere I read that it setting to NULL changes the reference
count,
  does that mean in each of my function I need to set all the
params to
  null at the end of it so that refercne count is reduced and
raady for
  garbage collection!! ( That doesn't quite a sense !!)
  
  Regards
  Ravi
  
 
 
 -- 
 Jeffry Houser, Technical Entrepreneur, Software Developer, Author, 
 Recording Engineer
 AIM: Reboog711  | Phone: 1-203-379-0773
 --
 My Company: http://www.dot-com-it.com
 My Podcast: http://www.theflexshow.com
 My Blog: http://www.jeffryhouser.com





[flexcoders] Re: repeater child click event

2007-06-07 Thread nhp_ny
and also ... another thig that i just saw.. ... 

selectOnly(someLabel);

can't do that because i don't know the name of the linkbutton label.
the linkbuttons get their labels from a xml file. thats why i was 
passing all those objects to the onClickCanali function.



[flexcoders] Re: fullscreen question

2007-06-07 Thread Bogdan BALAJ
Yes, you're right. The ESC key will switch FS off. 

The idea is to switch back on if I detect that the application is not
in fullscreen. This is something I can't manage to solve  in Flex.


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

 I think there may not be an option to alter that behavior since adobe
 is worried that people may use the feature to take away the user's
 navigation and ability to move out of the experience. So the esc key
 is permanently tied to escaping the fullscreen experience, as far as I
 know.
 
 
 --- In flexcoders@yahoogroups.com, Bogdan BALAJ bogdan.balaj@
 wrote:
 
  Hi,
  
  we are looking to build a standalone app that will run in full screen.
  To go to fullscreen on start is easy, the only problem that I have is
  that when the user is pressing ESC, the player is getting back to it's
  window size. 
  
  This might be easy also to solve with an addEventListener function.
  However, all of my tries are not succesfull with this particular
issue. 
  
  Anyone have managed to solved it? Can you share a working example for
  this issue?
  
  Thank you,
  Bogdan
 





Re: [flexcoders] Re: Mixing styles in a single component

2007-06-07 Thread Guido

Thank you! It really helped n_n

On 6/6/07, candysmate [EMAIL PROTECTED] wrote:


  --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Guido
[EMAIL PROTECTED] wrote:

 Hi, my question is a simple one, yet I can't seem to fancy a way of
doing
 this.

 Basically, I want to know how possible it is to set a style to a
certain
 part of the component, and not to it all.

 For example, i have a Label component that reads:

 I am a cool label

 And I would like it to display like:

 I am a cool label

 Is there a way of doing this?

 Thanx!

 Guido.

Instead of standard text use html text such as:

htmlText=I am a lt;Igt;coollt;/Igt; label

 



[flexcoders] Caching issue in HTTPService

2007-06-07 Thread Christopher Olsen
Anyone ever have an issue where an HTTPService result gets cached?

I'm use an httpservice to call a script which generates html however 
after the time run it's always returning the same results the *data* 
appears to be cached

-Christopher



[flexcoders] Re: Nested classes picking up CSS

2007-06-07 Thread Geoffrey
I guess it's imposibble

Is there a good CSS reference in the Flex docs somewhere?  I can't
seem to find it.

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

 Here's the basic setup.  On display 1 there is Panel A, on display 2
 there is Panel B.  Both Panels contain 'CommonPanel'.
 
 Using an external CSS file, how can I get CommonPanel to have
 different styles?
 
 I tried something like:
 
 Display_1.mxml
 mx:Panel id=panelA styleName=level1
local:CommonPanel id=foo/
 /mx:Panel
 
 
 Display_2.mxml
 mx:Panel id=panelB styleName=level2
local:CommonPanel id=foo2/
 /mx:Panel
 
 CSS file
 .level1.Panel{
border-color: #FF;
 }
 
 .level2.Panel{
border-color: #00;
 }
 
 
 This is a very simplified version of the real code, where in the real
 code the CommonPanel is nested a few layers down.
 
 My basic goal is to have common components take on a different style
 depending on the parent it's contained within.  I would like to set
 the parents style via styleName and have that propagate down through
 the children through something like:
 .styleA{}
 .styleA.Panel{}
 .styleA.DataGrid{}
 .styleA.CustomClass{}
 ...etc...
 
 Thanks in advance,
 Geoff





Re: [flexcoders] RichTextEditor problem

2007-06-07 Thread Tom Chiverton
On Thursday 07 Jun 2007, Robs wrote:
What could be the reason for the text to get truncated?

Broken HTML ?

-- 
Tom Chiverton
Helping to challengingly cluster dot-com data
on: http://thefalken.livejournal.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 St 
James's Court Brown Street Manchester M2 2JF.  A list of members is available 
for inspection at the registered office. Any reference to a partner in relation 
to Halliwells LLP means a member of Halliwells LLP. Regulated by the Law 
Society.

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 8008.

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



--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* Your email settings:
Individual Email | Traditional

* To change settings online go to:
http://groups.yahoo.com/group/flexcoders/join
(Yahoo! ID required)

* To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 


Re: [flexcoders] Modify plain text without losing html

2007-06-07 Thread Daniel Freiman

I wouldn't parse the html, but instead I'd let the TextField handle it:

First, if you don't know how to access the TextField of a text control, you
can read up on it here http://nondocs.blogspot.com/2007/05/faqtext.html.
Second, use TextField.replaceText() to alter the text property.  This will
keep the text formating of the rest of the text in place.  (I think the new
text should be in the format of TextField.defaultTextFormat.)

I think that should accomplish what you want.

Dan Freiman
nondocs http://nondocs.blogspot.com

On 6/7/07, Hrundik [EMAIL PROTECTED] wrote:


  The real problem is that i work with .getCharBoundaries and this method
needs char index. And i can't get real char index by processing html, not
plain text


On 6/7/07, Tom Chiverton [EMAIL PROTECTED] wrote:

 On Thursday 07 Jun 2007, hrund1k wrote:
  I'm thinking on direct html parsing, but i can break html code that
  way, for example, with :) smiley

 Only if you don't insert gt;:) instead.

 --
 Tom Chiverton
 Helping to autoschediastically facilitate error-free design-patterns
 on: http://thefalken.livejournal.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 St James's Court Brown Street Manchester M2 2JF.  A list of members is
 available for inspection at the registered office. Any reference to a
 partner in relation to Halliwells LLP means a member of Halliwells LLP.
 Regulated by the Law Society.

 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 8008.

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



 --
 Flexcoders Mailing List
 FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
 Search Archives:
 http://www.mail-archive.com/flexcoders%40yahoogroups.com
 Yahoo! Groups Links






--
Best regards,
  Hrundik  mailto: [EMAIL PROTECTED]

 



Re: [flexcoders] Unable to disable to vbox - Potential Bug?

2007-06-07 Thread Daniel Freiman

Sounds like like validateDisplayList() or validateNow() needs to be called
manually on the form, although I don't understand why these (or an
equivalent) wouldn't be called automatically.  Is this a Form, or a class
that extends Form?

Dan Freiman
nondocs http://nondocs.blogspot.com

On 6/6/07, Me [EMAIL PROTECTED] wrote:


  Hi,

I have a mx:Form in VDividedBox on the left hand side and a
TabNavigator on the right VDividedBox. The parent application listens
to TabNavigator' s VBox show event and set the Form.enabled to true or
false. For certain tabs, I want to disable the form. Initially it's
set to false. If the parent application sets From.enabled to true, it
works fine. But when the parent sets it to false, nothing happens.
But if I do a resize, then the form will get disabled.

Do you know what the problem can be? Any help will be appreciated.

Thanks,
Ken

 



[flexcoders] Re: Caching issue in HTTPService

2007-06-07 Thread nhp_ny
--- In flexcoders@yahoogroups.com, Christopher Olsen [EMAIL PROTECTED] 
wrote:

 Anyone ever have an issue where an HTTPService result gets cached?
 
 I'm use an httpservice to call a script which generates html however 
 after the time run it's always returning the same results the *data* 
 appears to be cached
 
 -Christopher


have no idea, sorry



RE: [flexcoders] PDF in Flex

2007-06-07 Thread Harald Dehn
Not all of our clients want to install the Apollo runtime. For the adobe
folks, it would be fantastic , when a future version of the flash-player
could directly render (with the help of an installed acrobat reader on the
client maschine) pdf-inside  a flash movie…

 

Harald

 

 

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Dimitrios Gianninas
Sent: Dienstag, 5. Juni 2007 15:21
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] PDF in Flex

 

You should at Adobe Apollo for that (Flash Player for the desktop), it will
have that.

 

Dimitrios Gianninas

Developer

Optimal Payments Inc.

 

 

  _  

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Harald Dehn
Sent: Tuesday, June 05, 2007 4:06 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] PDF in Flex

Hi,

are there any plans to display PDF-documents directly in a future version of
the flash-player. It should be possible for the flash-player to detect an
installed acrobat reader on the client machine and use it for rendering. 

This would helps us a lot to improve the user experience of our application.

Thanks,

Harald 


AVIS IMPORTANT

WARNING


Ce message électronique et ses pièces jointes peuvent contenir des
renseignements confidentiels, exclusifs ou légalement privilégiés destinés
au seul usage du destinataire visé. L'expéditeur original ne renonce à aucun
privilège ou à aucun autre droit si le présent message a été transmis
involontairement ou s'il est retransmis sans son autorisation. Si vous
n'êtes pas le destinataire visé du présent message ou si vous l'avez reçu
par erreur, veuillez cesser immédiatement de le lire et le supprimer, ainsi
que toutes ses pièces jointes, de votre système. La lecture, la
distribution, la copie ou tout autre usage du présent message ou de ses
pièces jointes par des personnes autres que le destinataire visé ne sont pas
autorisés et pourraient être illégaux. Si vous avez reçu ce courrier
électronique par erreur, veuillez en aviser l'expéditeur.

This electronic message and its attachments may contain confidential,
proprietary or legally privileged information, which is solely for the use
of the intended recipient. No privilege or other rights are waived by any
unintended transmission or unauthorized retransmission of this message. If
you are not the intended recipient of this message, or if you have received
it in error, you should immediately stop reading this message and delete it
and all attachments from your system. The reading, distribution, copying or
other use of this message or its attachments by unintended recipients is
unauthorized and may be unlawful. If you have received this e-mail in error,
please notify the sender.

 



Re: [flexcoders] Caching issue in HTTPService

2007-06-07 Thread Guido

I've had the same issue and I wasn't able to bypass it. In my case, I access
an XML file throug HTTPService, and I always get the same XML even if I
modify (or even delete!) the file from the server

On 6/7/07, Christopher Olsen [EMAIL PROTECTED] wrote:


  Anyone ever have an issue where an HTTPService result gets cached?

I'm use an httpservice to call a script which generates html however
after the time run it's always returning the same results the *data*
appears to be cached

-Christopher

 



Re: [flexcoders] Parameter passing !! I am shocked

2007-06-07 Thread Erik Price
On 6/7/07, Guido [EMAIL PROTECTED] wrote:
 I'm not really familiar with technical specifications on how AS manages 
 argument references. However, I believe this has more to do with OO Paradigm 
 than with AS.

This is unrelated to the issue at hand.


 On 6/7/07, Jeffry Houser [EMAIL PROTECTED] wrote:
 
  I think you missed his point.
 
  He sent in obj as a parameter to a function. So objParam should be a
  reference to obj; and nulling one should definitely null the other.

Not really true.

I think it is more helpful to think of it this way (most popular
languages use this exact same design):

1. When a parameter is passed to a function or method call, it is
ALWAYS pass-by-value (i.e., makes a copy of it local to the function).
 But the thing being passed/copied is not the actual object itself,
but rather, a pointer or reference to an object.

2. Therefore, if you pass a reference to an object to a function or
method as a parameter, you have a COPY of the reference, but both your
in-function copy AND your out-of-function original both point to the
same object out there on the heap.

3. Therefore, if you set your parameter reference to null, you're
nulling out your local copy of the reference.  But the reference from
outside of the function still exists, and is not set to null (because
only the COPY was set to null).  Therefore, the object will not
magically disappear.

To summarize, you can't set an object to null in the first place.
You can only set references to objects to null.  Therefore, if you
have a reference to object A outside of your function, and a reference
to object A inside of your function, setting one to null does not mean
the other is set to null.

It's all pass by value, just keep in mind it's the REFERENCES that are
getting passed by value (i.e., copied), not the objects themselves.

e


Re: [flexcoders] Parameter passing !! I am shocked

2007-06-07 Thread Guido

I'm not really familiar with technical specifications on how AS manages
argument references. However, I believe this has more to do with OO Paradigm
than with AS.

Let's say this code is in a myClass Class. This makes 'obj' a myClass
instance variable. This makes the object referenced by 'obj' accesible by
every method for every myClass instance.

Since creteObject(), checkObject() and deleteObject() are myClass' instance
methods, they can use this variable.

BUT, in the code you posted, checkObject() and deleteObject() each have a
parameter, and (I understand) AS handles parameters by creating a local
variable for the method; it's scope is the method and not the class. This
makes the code:

deleteObject(objParam:Object){
objParam = null;
}

equivalent to:

deleteObject(){
var objParam : Object;
objParam = obj;
objParam = null;
}

This is, exactly as it reads:
1) create an Object-type variable called objParam.
2) make objParam refer to the object referenced by instance variable called
'obj'.
3) make objParam refer to the null object.

As can be seen, the reference to 'obj' is never affected. And the object
itself is not GC'ed because it is still being referenced-to by obj instance
variable.

The proper approach here would be to make obj refer to null.

Hope it helped :)

Guido.

On 6/7/07, Jeffry Houser [EMAIL PROTECTED] wrote:



I think you missed his point.

He sent in obj as a parameter to a function. So objParam should be a
reference to obj; and nulling one should definitely null the other.

I do notice that the functions in the example are not declared as
functions with the public function keywords. Could that be a
contributing factor to the problem?

Roman Protsiuk wrote:


 objParam is not the same reference to created object as obj. Whenever
 you set objParam to null it becomes null (try checking it out in your
 deleteObject method). But who said the obj should become null? To
 prepare obj for garbage collection you should set obj to null.

 R.

 On 6/7/07, *Ravi Kumar Gummadi* [EMAIL 
PROTECTED]ravigummadi%40ivycomptech.com
 mailto:[EMAIL PROTECTED] ravigummadi%40ivycomptech.com
wrote:


 Hi all

 How does flex handle parameter passing, as I understand, it is by Pass
 by reference. But I was having some memory leaks and playing around a
 few tweaks and the following snippet completely took me by surprise.

 // CODE START

 script

 public var obj:Object;

 createObject(){

 obj = {test:1234,test2:5678};
 }

 checkObject(objParam:Object){
 trace(objParam);
 }

 deleteObject(objParam:Object){
 objParam = null; // I tried objParam = undefined as well
 }

 /script

 mx:Button id=create click=createObject() /
 mx:Button id=check click=checkObject(obj) /
 mx:Button id=delete click=deleteObject(obj) /

 // END

 Now 1. I created the object by click on create
 2. Then check for the existence of it (Traces [object object].. This
 is fine)
 3. Then clicked delete.
 4. Then again click on check... (Traces [object] [object]
 ! But since its passed by reference it should be
 NULL)

 Somewhere I read that it setting to NULL changes the reference count,
 does that mean in each of my function I need to set all the params to
 null at the end of it so that refercne count is reduced and raady for
 garbage collection!! ( That doesn't quite a sense !!)

 Regards
 Ravi


--
Jeffry Houser, Technical Entrepreneur, Software Developer, Author,
Recording Engineer
AIM: Reboog711 | Phone: 1-203-379-0773
--
My Company: http://www.dot-com-it.com
My Podcast: http://www.theflexshow.com
My Blog: http://www.jeffryhouser.com

 



[flexcoders] Flex Component Kit Issue: mx.core.IFlexDisplayObject marked as extern

2007-06-07 Thread Jurgen Beck
I am getting an error in a large Flex project when trying to use a SWC 
that was produced with the Flex Component Kit in Flash CS3:

Inconsistant linkage in DownloadProgress.swc(mx/core/IFlexDisplayObject) 
- 'mx.core:IFlexDisplayObject' is marked as extern, but 
'mx.core.IFlexDisplayObject' is not.

Unless I missed something, adding the SWC to the project should be 
pretty straight forward. I have set up a small test application where I 
am not getting the error.

Anyone run into this issue?

Thanks,

Jurgen



RE: [flexcoders] Caching issue in HTTPService

2007-06-07 Thread Peter Farland
Can your script also set HTTP response no-cache and expires headers?



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Guido
Sent: Thursday, June 07, 2007 10:22 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Caching issue in HTTPService



I've had the same issue and I wasn't able to bypass it. In my case, I
access an XML file throug HTTPService, and I always get the same XML
even if I modify (or even delete!) the file from the server


On 6/7/07, Christopher Olsen [EMAIL PROTECTED]
mailto:[EMAIL PROTECTED]  wrote: 

Anyone ever have an issue where an HTTPService result gets
cached?

I'm use an httpservice to call a script which generates html
however 
after the time run it's always returning the same results the
*data* 
appears to be cached

-Christopher






 


Re: [flexcoders] Caching issue in HTTPService

2007-06-07 Thread Christopher Olsen
Yeah from my experiences with the flash player it appears that it uses 
the browser for network connections to fetch files... and the browser 
does the caching
I have a poor workaround i modify the httpservice url and keep appending 
a timestamp to the url but there must be a better way?

-Christopher


Guido wrote:

 I've had the same issue and I wasn't able to bypass it. In my case, I 
 access an XML file throug HTTPService, and I always get the same XML 
 even if I modify (or even delete!) the file from the server

 On 6/7/07, *Christopher Olsen* [EMAIL PROTECTED] 
 mailto:[EMAIL PROTECTED] wrote:

 Anyone ever have an issue where an HTTPService result gets cached?

 I'm use an httpservice to call a script which generates html however
 after the time run it's always returning the same results the *data*
 appears to be cached

 -Christopher


  




Re: [flexcoders] Parameter passing !! I am shocked

2007-06-07 Thread Guido

that's what I meant n_n

On 6/7/07, Erik Price [EMAIL PROTECTED] wrote:


  On 6/7/07, Guido [EMAIL PROTECTED] ptevan%40gmail.com wrote:
 I'm not really familiar with technical specifications on how AS manages
argument references. However, I believe this has more to do with OO Paradigm
than with AS.

This is unrelated to the issue at hand.

 On 6/7/07, Jeffry Houser [EMAIL PROTECTED] jeff%40farcryfly.com
wrote:
 
  I think you missed his point.
 
  He sent in obj as a parameter to a function. So objParam should be a
  reference to obj; and nulling one should definitely null the other.

Not really true.

I think it is more helpful to think of it this way (most popular
languages use this exact same design):

1. When a parameter is passed to a function or method call, it is
ALWAYS pass-by-value (i.e., makes a copy of it local to the function).
But the thing being passed/copied is not the actual object itself,
but rather, a pointer or reference to an object.

2. Therefore, if you pass a reference to an object to a function or
method as a parameter, you have a COPY of the reference, but both your
in-function copy AND your out-of-function original both point to the
same object out there on the heap.

3. Therefore, if you set your parameter reference to null, you're
nulling out your local copy of the reference. But the reference from
outside of the function still exists, and is not set to null (because
only the COPY was set to null). Therefore, the object will not
magically disappear.

To summarize, you can't set an object to null in the first place.
You can only set references to objects to null. Therefore, if you
have a reference to object A outside of your function, and a reference
to object A inside of your function, setting one to null does not mean
the other is set to null.

It's all pass by value, just keep in mind it's the REFERENCES that are
getting passed by value (i.e., copied), not the objects themselves.

e
 



Re: [flexcoders] Re: repeater child click event

2007-06-07 Thread Tom Chiverton
On Thursday 07 Jun 2007, nhp_ny wrote:
 selectOnly(someLabel);
 can't do that because i don't know the name of the linkbutton label.
 the linkbuttons get their labels from a xml file. thats why i was
 passing all those objects to the onClickCanali function.

Go via lbCanali.dataProvider[0] then. Maybe my comment in the code snippit 
wasn't clear.

 event.currentTarget.getRepeaterItem().xmlfile

You can extract that in both initApp and onClick, and make it the 2nd arg to 
selectOnly().

-- 
Tom Chiverton
Helping to vitalistically reintermediate fifth-generation information
on: http://thefalken.livejournal.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 St 
James's Court Brown Street Manchester M2 2JF.  A list of members is available 
for inspection at the registered office. Any reference to a partner in relation 
to Halliwells LLP means a member of Halliwells LLP. Regulated by the Law 
Society.

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 8008.

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



--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* Your email settings:
Individual Email | Traditional

* To change settings online go to:
http://groups.yahoo.com/group/flexcoders/join
(Yahoo! ID required)

* To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 


Re: [flexcoders] Parameter passing !! I am shocked

2007-06-07 Thread Alias™

No, because the parameter reference should be a local variable
and hence a different reference to the same object, no?

Alias

On 07/06/07, Jeffry Houser [EMAIL PROTECTED] wrote:



I think you missed his point.

He sent in obj as a parameter to a function. So objParam should be a
reference to obj; and nulling one should definitely null the other.

I do notice that the functions in the example are not declared as
functions with the public function keywords. Could that be a
contributing factor to the problem?

Roman Protsiuk wrote:


 objParam is not the same reference to created object as obj. Whenever
 you set objParam to null it becomes null (try checking it out in your
 deleteObject method). But who said the obj should become null? To
 prepare obj for garbage collection you should set obj to null.

 R.

 On 6/7/07, *Ravi Kumar Gummadi* [EMAIL 
PROTECTED]ravigummadi%40ivycomptech.com
 mailto:[EMAIL PROTECTED] ravigummadi%40ivycomptech.com
wrote:


 Hi all

 How does flex handle parameter passing, as I understand, it is by Pass
 by reference. But I was having some memory leaks and playing around a
 few tweaks and the following snippet completely took me by surprise.

 // CODE START

 script

 public var obj:Object;

 createObject(){

 obj = {test:1234,test2:5678};
 }

 checkObject(objParam:Object){
 trace(objParam);
 }

 deleteObject(objParam:Object){
 objParam = null; // I tried objParam = undefined as well
 }

 /script

 mx:Button id=create click=createObject() /
 mx:Button id=check click=checkObject(obj) /
 mx:Button id=delete click=deleteObject(obj) /

 // END

 Now 1. I created the object by click on create
 2. Then check for the existence of it (Traces [object object].. This
 is fine)
 3. Then clicked delete.
 4. Then again click on check... (Traces [object] [object]
 ! But since its passed by reference it should be
 NULL)

 Somewhere I read that it setting to NULL changes the reference count,
 does that mean in each of my function I need to set all the params to
 null at the end of it so that refercne count is reduced and raady for
 garbage collection!! ( That doesn't quite a sense !!)

 Regards
 Ravi


--
Jeffry Houser, Technical Entrepreneur, Software Developer, Author,
Recording Engineer
AIM: Reboog711 | Phone: 1-203-379-0773
--
My Company: http://www.dot-com-it.com
My Podcast: http://www.theflexshow.com
My Blog: http://www.jeffryhouser.com

 



[flexcoders] ASDoc for MXML components?

2007-06-07 Thread borekbe
Hi all

Is there a way to generate API documentation from MXML components? So
far, I thought that MXML and ActionScript are just different ways to
express the same things but if I can't generate documentation, this
practically means that I can't use MXML for component development at
all. I hope it's not the case because MXML is much more suitable for
certain scenarios...

Thanks,
Borek



Re: [flexcoders] Caching issue in HTTPService

2007-06-07 Thread Christopher Olsen

Peter,

Thanks for the thought I didn't think about that...

But it's tested and it worked...

-Christopher

Peter Farland wrote:


Can your script also set HTTP response no-cache and expires headers?


*From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] 
*On Behalf Of *Guido

*Sent:* Thursday, June 07, 2007 10:22 AM
*To:* flexcoders@yahoogroups.com
*Subject:* Re: [flexcoders] Caching issue in HTTPService

I've had the same issue and I wasn't able to bypass it. In my case, I 
access an XML file throug HTTPService, and I always get the same XML 
even if I modify (or even delete!) the file from the server


On 6/7/07, *Christopher Olsen* [EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED] wrote:


Anyone ever have an issue where an HTTPService result gets cached?

I'm use an httpservice to call a script which generates html however
after the time run it's always returning the same results the *data*
appears to be cached

-Christopher


 




Re: [flexcoders] Modify plain text without losing html

2007-06-07 Thread Hrundik

Thank you! It did the trick!

On 6/7/07, Daniel Freiman [EMAIL PROTECTED] wrote:


I wouldn't parse the html, but instead I'd let the TextField handle it:

First, if you don't know how to access the TextField of a text control,
you can read up on it herehttp://nondocs.blogspot.com/2007/05/faqtext.html
.
Second, use TextField.replaceText() to alter the text property.  This will
keep the text formating of the rest of the text in place.  (I think the new
text should be in the format of TextField.defaultTextFormat .)

I think that should accomplish what you want.

Dan Freiman
nondocs http://nondocs.blogspot.com

On 6/7/07, Hrundik  [EMAIL PROTECTED] wrote:

 The real problem is that i work with .getCharBoundaries and this method
 needs char index. And i can't get real char index by processing html, not
 plain text


 On 6/7/07, Tom Chiverton [EMAIL PROTECTED] wrote:
 
  On Thursday 07 Jun 2007, hrund1k wrote:
   I'm thinking on direct html parsing, but i can break html code that
   way, for example, with :) smiley
 
  Only if you don't insert gt;:) instead.
 
  --
  Tom Chiverton
  Helping to autoschediastically facilitate error-free design-patterns
  on: http://thefalken.livejournal.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 St James's Court Brown Street Manchester M2 2JF.  A list of
  members is available for inspection at the registered office. Any reference
  to a partner in relation to Halliwells LLP means a member of Halliwells LLP.
  Regulated by the Law Society.
 
  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 8008.
 
  For more information about Halliwells LLP visit www.halliwells.com.
 
 
 
  --
  Flexcoders Mailing List
  FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
  Search Archives:
  http://www.mail-archive.com/flexcoders%40yahoogroups.com
  Yahoo! Groups Links
 
 
 
 


 --
 Best regards,
   Hrundik  mailto: [EMAIL PROTECTED]








--
Best regards,
 Hrundik  mailto:[EMAIL PROTECTED]


[flexcoders] Re: JavaFX

2007-06-07 Thread Rohan Pinto
since you mentioned Java, have u looked at JavaFX ?
http://www.sun.com/software/javafx/index.jsp

Rohan
http://opentube.info

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

 Sun has a very comprehensive online documentation of the Java
language.  
 
 This is a good book if you are a seasoned developer and just wanting
 to pick up Java Java In A Nutshell by David Flanagan, O'Reilly.  
 
 Another really good book is Just Java 2 by Peter van der Linden, Sun
 Microsystems Press.  I learnt Java from these (C++ background) and I
 recommend both.
 
 There aren't really variations of Java itself, so a basic grounding in
 the language is something that you can use whatever you end up doing.
  However there are lots of design and coding patterns around Java
 which give high productivity, especially when using Java to write
 server software, which is probably what you mean by Java as it relates
 to Flex.  Java doesn't specifically relate to flex or vice versa, but
 there is middleware which serialises between Java and ActionScript,
 such as FDS.
 
 On the server you will need to look at EJB and J2EE and I would
 recommend Spring, although it takes a bit of getting your head around,
 and Hibernate if you are persisting your data relationally.  These are
 all frameworks for coding which, with supporting packages from 3rd
 parties, give a high degree of productivity in writing scalable Java
 servers.  It is truly amazing how much fee code there is available.
 
 You'll probably wind up with Eclipse as an IDE too, so it is worth
 familiarising yourself with that.  Don't expect the Microsoft IDE, but
 it is pretty good all the same.
 
 I'm sure lots of people will comment, but i hope that gives you some
 first pointers of what to google.
 
 Good luck
 
 
 --- In flexcoders@yahoogroups.com, aaronvm707 vestamedia@ wrote:
 
  Hello,
  
  I have begun working with Flex a couple of months ago and have been
  learning fairly quickly. I come from a Microsoft ASP.net background,
  but would prefer to work with Flex  Java. Can anyone suggest
  resources and/or books to start learning Java as it relates to Flex.
  There seams to be many variations of Java for different development
  needs  I am not sure where to begin. Thanks
  
  Aaron
 





Re: [flexcoders] Caching issue in HTTPService

2007-06-07 Thread Guido

Is there a way to specify the HTTPService to no-cache mode? If I access the
URL with a browser I can get the *real* destination with CTRL+F5... I don't
know how to make an HTTPService use this kind of request; I don't even know
if it is possible. Anyone?

On 6/7/07, Christopher Olsen [EMAIL PROTECTED] wrote:


  Yeah from my experiences with the flash player it appears that it uses
the browser for network connections to fetch files... and the browser
does the caching
I have a poor workaround i modify the httpservice url and keep appending
a timestamp to the url but there must be a better way?

-Christopher

Guido wrote:

 I've had the same issue and I wasn't able to bypass it. In my case, I
 access an XML file throug HTTPService, and I always get the same XML
 even if I modify (or even delete!) the file from the server

 On 6/7/07, *Christopher Olsen* [EMAIL 
PROTECTED]cwolsen%40domainatlantic.com
 mailto:[EMAIL PROTECTED] cwolsen%40domainatlantic.com
wrote:

 Anyone ever have an issue where an HTTPService result gets cached?

 I'm use an httpservice to call a script which generates html however
 after the time run it's always returning the same results the *data*
 appears to be cached

 -Christopher




 



Re: [flexcoders] Re: ArrayCollection not working? Pulling out my HAIR!!!

2007-06-07 Thread Guido

We are all hoping for a flex equivalent to the commons.collections for java
n_n

On 6/7/07, Alex Harui [EMAIL PROTECTED] wrote:


   I don't think ArrayUtil is as smart as you wish it was.  You may have
to write your own conversion.


 --

*From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On
Behalf Of *Jason Ervin
*Sent:* Wednesday, June 06, 2007 6:50 PM
*To:* flexcoders@yahoogroups.com
*Subject:* [flexcoders] Re: ArrayCollection not working? Pulling out my
HAIR!!!



Well I am using one data source via the singleton pattern as I have
approx. 20 screen feeding of the xml data. I am sure xml will work
with that. I wanted to use an Array or Arraycollection because I am
going to be using several hsliders to splice the data in arrays.

I think it would be easier with an array than xml. Do you have an
example of how to splice up the data with xml rather than an array?

Thanks in advance for any help.

J

--- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Brendan
Meutzner [EMAIL PROTECTED]
wrote:

 Any reason you're going through the trouble of converting to an
 ArrayCollection? The following will work with your XML data just
fine...

 mx:ColumnChart id=mybarchart dataProvider={billData.bill}
 showDataTips=true paddingLeft=5 paddingRight=5 width=100%
 height=100%
 mx:horizontalAxis
 mx:CategoryAxis categoryField=@account/
 /mx:horizontalAxis
 mx:series
 mx:ColumnSeries displayName=Electric Bill
xField=@account
 yField=electricitybillamount /
 mx:ColumnSeries displayName=Gas Bill xField=@account
 yField=gasbillamount /
 mx:ColumnSeries displayName=Water Bill xField=@account
 yField=waterbillamount /
 /mx:series
 /mx:ColumnChart


 Brendan



 On 6/6/07, Jason Ervin [EMAIL PROTECTED] wrote:
 
  Hey everyone I am having issues with using an arraycollection as a
  dataprovider. I start with an xml variable (see below) then I convert
  it to an ArrayCollection using ArrayUtil.toArray and I use the result
  as a dataprovider. If I trace the dataprovider it prints out the xml
  data, but my chart is empty. Can you use ArrayUtil on xml data with
  this many nodes? I have spent way to much time on this.
 
  Here is what I have starting with my XML file.
 
  XML CODE START
 
  public var billData:XML =
  data
  bill account=100-1234567
  monthMay-05/month
  activetrue/active
  electricitybillamount60.00/electricitybillamount
  gasbillamount45.00/gasbillamount
  waterbillamount15.00/waterbillamount
  totalbill120.00/totalbill
  electricityusage500/electricityusage
  gasusage71.4/gasusage
  waterusage200/waterusage
  electricityservicecharge18.00/electricityservicecharge
  gasservicecharge9.00/gasservicecharge
  waterservicecharge2.00/waterservicecharge
  totalserviccharge29.00/totalserviccharge
  electricitytax4.00/electricitytax
  gastax2.00/gastax
  watertax1.00/watertax
  totaltax7.00/totaltax
  elecperdaycost2.00/elecperdaycost
  gasperdaycost1.00/gasperdaycost
  waterperdaycost.50/waterperdaycost
  totalperdaycost3.50/totalperdaycost
  pastdueamount0.00/pastdueamount
  billingdays33/billingdays
  billdate5/01/2007/billdate
  budgetbillamount155.00/budgetbillamount
  readtypemanual/readtype
  elecmeterreadend152868/elecmeterreadend
  /bill
  bill account=123-2345678
  monthApr-05/month
  activetrue/active
  electricitybillamount88.88/electricitybillamount
  gasbillamount50.00/gasbillamount
  waterbillamount15.00/waterbillamount
  totalbill115.00/totalbill
  electricityusage300/electricityusage
  gasusage62.9/gasusage
  waterusage189/waterusage
  electricityservicecharge15.00/electricityservicecharge
  gasservicecharge6.00/gasservicecharge
  waterservicecharge3.00/waterservicecharge
  totalserviccharge24.00/totalserviccharge
  electricitytax4.50/electricitytax
  gastax2.50/gastax
  watertax1.25/watertax
  totaltax8.25/totaltax
  elecperdaycost2.10/elecperdaycost
  gasperdaycost1.90/gasperdaycost
  waterperdaycost.50/waterperdaycost
  totalperdaycost4.50/totalperdaycost
  pastdueamount0.00/pastdueamount
  billingdays28/billingdays
  billdate3/29/2007/billdate
  budgetbillamount155.00/budgetbillamount
  readtypeamr/readtype
  elecmeterreadend150008/elecmeterreadend
  /bill
  bill account=145-3456789
  monthMar-05/month
  activetrue/active
  electricitybillamount62.00/electricitybillamount
  gasbillamount45.10/gasbillamount
  waterbillamount10.00/waterbillamount
  totalbill118.10/totalbill
  electricityusage300/electricityusage
  gasusage50.4/gasusage
  waterusage210/waterusage
  electricityservicecharge13.00/electricityservicecharge
  gasservicecharge7.00/gasservicecharge
  waterservicecharge1.00/waterservicecharge
  totalserviccharge21.00/totalserviccharge
  electricitytax5.00/electricitytax
  gastax2.20/gastax
  watertax1.10/watertax
  totaltax8.30/totaltax
  elecperdaycost2.20/elecperdaycost
  gasperdaycost1.70/gasperdaycost
  waterperdaycost.50/waterperdaycost
  totalperdaycost4.40/totalperdaycost
  email[EMAIL PROTECTED] ccoenraets%40fictitious.com/email
  

[flexcoders] Re: Visible Buttons

2007-06-07 Thread Tim Hoff
That error usually means that you have two objects with the same 
name.

-TH

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

 Tim,
 Wow! Thanks a bunch! I got pretty close but i got this one error:
 
 1151: A conflict exists with definition linkedFormButton in 
namespace
 internal.
 
 I'm really new to flex so alot of this is just a whole other OO 
level
 then i'm use to. Below is my code for the whole page. IF you can 
take
 a peek that would be awesome. Loved your site by the way. You guys 
do
 amazing stuff with flex! i have a really good idea for a site if 
you
 ever interested in packaging something.
 Anyways, here's the code:
 ?xml version=1.0 encoding=utf-8?
 cfComponents:SizeableTitleWindow
 xmlns:mx=http://www.adobe.com/2006/mxml; xmlns=*
   xmlns:cfComponents=com.adobe.ColdFusion.components.*
   creationComplete=initComponent()
   title=Archive Contents
   showCloseButton=true close=WindowManager.remove(this);
 width=800 height=400 
 
   mx:Script
   ![CDATA[
   import 
com.adobe.windowedApplication.managers.WindowManager;
   import mx.core.UIComponent;
   import mx.collections.ArrayCollection;
   import mx.utils.ObjectUtil;
   import mx.controls.Alert;
   import mx.rpc.events.FaultEvent;
   import mx.rpc.events.ResultEvent;
   import 
com.cfgenerated.views.detail.Archive_Content_Details;
   import 
com.cfgenerated.views.masterdetail.Art_Details;
   import 
com.cfgenerated.views.masterdetail.Recording_Details;
   private var currentIndex:int = 0;
 
   private var _key:Object;
 
   [Bindable]
   public function get key():Object
   {
   return this._key;
   }
   public function set key(key:Object):void
   {
   this._key = key;
   }
 
   private function initComponent():void
   {
   refreshList(null);
   }
 
   public function refreshList(event:Event):void
   {
   this.dataManager.getMasterQuery
(this.key);
   }
 
   private function deleteItem(key:Object):void
   {
   this.dataManager.deleteItem(key);
   }
 
   private function getDetailComponent
(key:Object):UIComponent
   {
   var view:Archive_Content_Details = 
new Archive_Content_Details();
   view.key = key;
   view.addEventListener(change, 
refreshList);
   return view;
   }
 
   private function getArt_DetailsComponent
(key:Object):UIComponent
   {
   var view:Art_Details = new 
Art_Details();
   view.key = key;
   return view;
   }
 
   private function 
getRecording_DetailsComponent(key:Object):UIComponent
   {
   var view:Recording_Details = new 
Recording_Details();
   view.key = key;
   return view;
   }
 
   /**
* RemoteObject result and error handlers
*/
   private function server_fault
(event:FaultEvent):void
   {
   // dump error message
   Alert.show( ObjectUtil.toString
(event.fault) );
   }
 
   private function getMasterQuery_result
(event:ResultEvent):void 
   {
   //Alert.show( ObjectUtil.toString
(event.result) );
   this.masterList.dataProvider = 
event.result as ArrayCollection;
   this.masterList.selectedIndex = 
this.currentIndex;
   }
 
   private function deleteItem_result
(event:ResultEvent):void
   {
   //Alert.show( ObjectUtil.toString
(event.result) );
   refreshList(null);
   }
 
   [Bindable]
   private var linkedFormButtonVisible : 
Boolean = false;
   
   [Bindable]
   private var 

Re: [flexcoders] PDF in Flex

2007-06-07 Thread Tom Chiverton
On Thursday 07 Jun 2007, Ben Marchbanks wrote:
 I would be shocked if the next release of Flex did not include support of
 PDF rendering as has been announced for production release of Apollo.
 It just makes too much sense to add it to the sister product as well.

What, add 10meg of bloat to the Flash player ? Lets not.

-- 
Tom Chiverton
Helping to proactively iterate bricks-and-clicks e-services
on: http://thefalken.livejournal.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 St 
James's Court Brown Street Manchester M2 2JF.  A list of members is available 
for inspection at the registered office. Any reference to a partner in relation 
to Halliwells LLP means a member of Halliwells LLP. Regulated by the Law 
Society.

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 8008.

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



--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* Your email settings:
Individual Email | Traditional

* To change settings online go to:
http://groups.yahoo.com/group/flexcoders/join
(Yahoo! ID required)

* To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 


[flexcoders] String.Format???

2007-06-07 Thread gary_mangum
I'm sure I have just missed it, but I am looking for the string
function that handles formatting with parameters:

var pageNumber:int = 5;
String.Format(Are you sure you want to delete page {0}?, pageNumber);

How do you do this in Action Script?

Thanks!



Re: [flexcoders] PDF in Flex

2007-06-07 Thread Tom Chiverton
On Thursday 07 Jun 2007, Harald Dehn wrote:
 Not all of our clients want to install the Apollo runtime. For the adobe
 folks, it would be fantastic , when a future version of the flash-player
 could directly render (with the help of an installed acrobat reader on the
 client maschine) pdf-inside  a flash movie…

You can do that now, by invoking some JavaScript and using a float'ed IFRAME.

-- 
Tom Chiverton
Helping to adaptively grow one-to-one IPOs
on: http://thefalken.livejournal.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 St 
James's Court Brown Street Manchester M2 2JF.  A list of members is available 
for inspection at the registered office. Any reference to a partner in relation 
to Halliwells LLP means a member of Halliwells LLP. Regulated by the Law 
Society.

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 8008.

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



--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* Your email settings:
Individual Email | Traditional

* To change settings online go to:
http://groups.yahoo.com/group/flexcoders/join
(Yahoo! ID required)

* To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 


Re: [flexcoders] Re: Landscape printing in Flex

2007-06-07 Thread Tom Chiverton
On Thursday 07 Jun 2007, archtechcomputers wrote:
 How did you get the reading of the orientation to work?

I didn't.

-- 
Tom Chiverton
Helping to interactively differentiate user-centric platforms
on: http://thefalken.livejournal.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 St 
James's Court Brown Street Manchester M2 2JF.  A list of members is available 
for inspection at the registered office. Any reference to a partner in relation 
to Halliwells LLP means a member of Halliwells LLP. Regulated by the Law 
Society.

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 8008.

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



--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* Your email settings:
Individual Email | Traditional

* To change settings online go to:
http://groups.yahoo.com/group/flexcoders/join
(Yahoo! ID required)

* To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 


Re: [flexcoders] Caching issue in HTTPService

2007-06-07 Thread Christopher Olsen

Guido,

I did it on the server side with my php script that generates the XML 
but I see HTTPService has a .headers

That's a good place to look to see if you can specify it there.

-Christopher

Guido wrote:


Is there a way to specify the HTTPService to no-cache mode? If I 
access the URL with a browser I can get the *real* destination with 
CTRL+F5... I don't know how to make an HTTPService use this kind of 
request; I don't even know if it is possible. Anyone?


On 6/7/07, *Christopher Olsen* [EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED] wrote:


Yeah from my experiences with the flash player it appears that it
uses
the browser for network connections to fetch files... and the browser
does the caching
I have a poor workaround i modify the httpservice url and keep
appending
a timestamp to the url but there must be a better way?

-Christopher

Guido wrote:

 I've had the same issue and I wasn't able to bypass it. In my
case, I
 access an XML file throug HTTPService, and I always get the same XML
 even if I modify (or even delete!) the file from the server

 On 6/7/07, *Christopher Olsen* [EMAIL PROTECTED]
mailto:cwolsen%40domainatlantic.com

 mailto:[EMAIL PROTECTED]
mailto:cwolsen%40domainatlantic.com wrote:

 Anyone ever have an issue where an HTTPService result gets cached?

 I'm use an httpservice to call a script which generates html however
 after the time run it's always returning the same results the *data*
 appears to be cached

 -Christopher





 




Re: [flexcoders] PDF in Flex

2007-06-07 Thread Ben Marchbanks
I would be shocked if the next release of Flex did not include support of PDF 
rendering as has been announced for production release of Apollo.

It just makes too much sense to add it to the sister product as well.


Harald Dehn wrote:
 Not all of our clients want to install the Apollo runtime. For the adobe
 folks, it would be fantastic , when a future version of the flash-player
 could directly render (with the help of an installed acrobat reader on the
 client maschine) pdf-inside  a flash movie…
 
  
 
 Harald
 
  
 
  
 
 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
 Behalf Of Dimitrios Gianninas
 Sent: Dienstag, 5. Juni 2007 15:21
 To: flexcoders@yahoogroups.com
 Subject: RE: [flexcoders] PDF in Flex
 
  
 
 You should at Adobe Apollo for that (Flash Player for the desktop), it will
 have that.
 
  
 
 Dimitrios Gianninas
 
 Developer
 
 Optimal Payments Inc.
 
  
 
  
 
   _  
 
 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
 Behalf Of Harald Dehn
 Sent: Tuesday, June 05, 2007 4:06 AM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] PDF in Flex
 
 Hi,
 
 are there any plans to display PDF-documents directly in a future version of
 the flash-player. It should be possible for the flash-player to detect an
 installed acrobat reader on the client machine and use it for rendering. 
 
 This would helps us a lot to improve the user experience of our application.
 
 Thanks,
 
 Harald 
 
 
 AVIS IMPORTANT
 
 WARNING
 
 
 Ce message électronique et ses pièces jointes peuvent contenir des
 renseignements confidentiels, exclusifs ou légalement privilégiés destinés
 au seul usage du destinataire visé. L'expéditeur original ne renonce à aucun
 privilège ou à aucun autre droit si le présent message a été transmis
 involontairement ou s'il est retransmis sans son autorisation. Si vous
 n'êtes pas le destinataire visé du présent message ou si vous l'avez reçu
 par erreur, veuillez cesser immédiatement de le lire et le supprimer, ainsi
 que toutes ses pièces jointes, de votre système. La lecture, la
 distribution, la copie ou tout autre usage du présent message ou de ses
 pièces jointes par des personnes autres que le destinataire visé ne sont pas
 autorisés et pourraient être illégaux. Si vous avez reçu ce courrier
 électronique par erreur, veuillez en aviser l'expéditeur.
 
 This electronic message and its attachments may contain confidential,
 proprietary or legally privileged information, which is solely for the use
 of the intended recipient. No privilege or other rights are waived by any
 unintended transmission or unauthorized retransmission of this message. If
 you are not the intended recipient of this message, or if you have received
 it in error, you should immediately stop reading this message and delete it
 and all attachments from your system. The reading, distribution, copying or
 other use of this message or its attachments by unintended recipients is
 unauthorized and may be unlawful. If you have received this e-mail in error,
 please notify the sender.
 
  
 
 

-- 
Ben Marchbanks

::: alQemy ::: transforming information into intelligence
http://www.alQemy.com

::: magazooms ::: digital magazines
http://www.magazooms.com

Greenville, SC
864.284.9918


--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* Your email settings:
Individual Email | Traditional

* To change settings online go to:
http://groups.yahoo.com/group/flexcoders/join
(Yahoo! ID required)

* To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 


[flexcoders] Re: still having trouble with breakpoints

2007-06-07 Thread Pan Troglodytes

Realized some info that might be relevant.  This seems to happen in a .as
file included by a Script tag.  Not sure if I've run into it in a regular
AS class file.

On 5/9/07, Pan Troglodytes [EMAIL PROTECTED] wrote:


So I have version 2.0.155577 now and it solved a lot of my problems with
breakpoints jumping further down the file than they should.

However, I still run into problems where certain breakpoints getting
disabled because FB claims there is no executable code on the line.  Well,
there definitely IS.  In this one file, it happens on any breakpoints past
the 309th line of the file.  Whitespace doesn't change it, but if I compress
something like:

if (...)
{
  do something;
}
else
{
  do something else;
}

into

  if () { do something } else { do something else }

then it moves from the 309th line to a later line.  It also doesn't matter
which code is first.  I can rearrange it so that the same code that started
losing breakpoints is earlier than 309, and it will regain breakpoints.

Unfortunately, i don't have a small, reproducible example or I would send
it in.  I guess I'm just hoping some adobe folks will go Yep, I know what
that is.  It should be fixed in the next patch.

--
Jason





--
Jason


[flexcoders] Handling Special Characters in XML

2007-06-07 Thread Daniel Freiman

How do I handle whitespace (or other special characters) in the name of an
XML tag.  For example: my name/.  It seems that the XML spec suggests
inserting hex symbols into the tag name.  Is there any functionality in Flex
that does this automatically?

Daniel Freiman


RE: [flexcoders] ASDoc for MXML components?

2007-06-07 Thread Stephen Gilson
There is only limited support in ASDoc for MXML files. 
 
- All ActionScript entities defined in an mx:Script block, such as
properties and methods, appear in the output. Items defined in MXML tags
do not appear in the ASDoc output. 

- You can only insert an ASDoc comment in an mx:Script block of an
MXML file. 

- The superclass corresponds to the first tag in the MXML file. For an
application file, that tag is the mx:Application tag and therefore an
MXML application file appears in the ASDoc output as a subclass of the
Application class.
 
Stephen



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of borekbe
Sent: Thursday, June 07, 2007 10:42 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] ASDoc for MXML components?



Hi all

Is there a way to generate API documentation from MXML components? So
far, I thought that MXML and ActionScript are just different ways to
express the same things but if I can't generate documentation, this
practically means that I can't use MXML for component development at
all. I hope it's not the case because MXML is much more suitable for
certain scenarios...

Thanks,
Borek



 


Re: [flexcoders] String.Format???

2007-06-07 Thread Tom Chiverton
On Thursday 07 Jun 2007, gary_mangum wrote:
 I'm sure I have just missed it, but I am looking for the string
 function that handles formatting with parameters:

 var pageNumber:int = 5;
 String.Format(Are you sure you want to delete page {0}?, pageNumber);

Are you sure you want to delete page { pageNumber}?

:-)

-- 
Tom Chiverton
Helping to ambassadorially aggregate granular users
on: http://thefalken.livejournal.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 St 
James's Court Brown Street Manchester M2 2JF.  A list of members is available 
for inspection at the registered office. Any reference to a partner in relation 
to Halliwells LLP means a member of Halliwells LLP. Regulated by the Law 
Society.

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 8008.

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



--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* Your email settings:
Individual Email | Traditional

* To change settings online go to:
http://groups.yahoo.com/group/flexcoders/join
(Yahoo! ID required)

* To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 


[flexcoders] Re: repeater child click event

2007-06-07 Thread nhp_ny
thanks, thanks and thanks.



[flexcoders] Re: Flex Java, Where to Start?

2007-06-07 Thread aaronvm707
Thank you very much for all the info. I think the key word I was
looking for was EJB. Is this what I will develop in order to start
using Flex Data Services?

Any suggestions on the server software needed to run EJB  J2EE? Again
I am moving from a Microsoft, .net, IIS environment so I am completly
new to all this. Thanks

Aaron 



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

 Sun has a very comprehensive online documentation of the Java
language.  
 
 This is a good book if you are a seasoned developer and just wanting
 to pick up Java Java In A Nutshell by David Flanagan, O'Reilly.  
 
 Another really good book is Just Java 2 by Peter van der Linden, Sun
 Microsystems Press.  I learnt Java from these (C++ background) and I
 recommend both.
 
 There aren't really variations of Java itself, so a basic grounding in
 the language is something that you can use whatever you end up doing.
  However there are lots of design and coding patterns around Java
 which give high productivity, especially when using Java to write
 server software, which is probably what you mean by Java as it relates
 to Flex.  Java doesn't specifically relate to flex or vice versa, but
 there is middleware which serialises between Java and ActionScript,
 such as FDS.
 
 On the server you will need to look at EJB and J2EE and I would
 recommend Spring, although it takes a bit of getting your head around,
 and Hibernate if you are persisting your data relationally.  These are
 all frameworks for coding which, with supporting packages from 3rd
 parties, give a high degree of productivity in writing scalable Java
 servers.  It is truly amazing how much fee code there is available.
 
 You'll probably wind up with Eclipse as an IDE too, so it is worth
 familiarising yourself with that.  Don't expect the Microsoft IDE, but
 it is pretty good all the same.
 
 I'm sure lots of people will comment, but i hope that gives you some
 first pointers of what to google.
 
 Good luck
 
 
 --- In flexcoders@yahoogroups.com, aaronvm707 vestamedia@ wrote:
 
  Hello,
  
  I have begun working with Flex a couple of months ago and have been
  learning fairly quickly. I come from a Microsoft ASP.net background,
  but would prefer to work with Flex  Java. Can anyone suggest
  resources and/or books to start learning Java as it relates to Flex.
  There seams to be many variations of Java for different development
  needs  I am not sure where to begin. Thanks
  
  Aaron
 





Re: [flexcoders] Re: still having trouble with breakpoints

2007-06-07 Thread Tom Chiverton
On Thursday 07 Jun 2007, Pan Troglodytes wrote:
 Realized some info that might be relevant.  This seems to happen in a .as
 file included by a Script tag.  Not sure if I've run into it in a regular
 AS class file.

I certainly recall other people having the same problem, but not a solution.

-- 
Tom Chiverton
Helping to centrally introduce bleeding-edge channels
on: http://thefalken.livejournal.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 St 
James's Court Brown Street Manchester M2 2JF.  A list of members is available 
for inspection at the registered office. Any reference to a partner in relation 
to Halliwells LLP means a member of Halliwells LLP. Regulated by the Law 
Society.

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 8008.

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



--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* Your email settings:
Individual Email | Traditional

* To change settings online go to:
http://groups.yahoo.com/group/flexcoders/join
(Yahoo! ID required)

* To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 


[flexcoders] Como pasar parametro XMLListCollection por HTTPService ?

2007-06-07 Thread [EMAIL PROTECTED]
Sorry, but I can't speak English a little., and I have a problem with 
HTTPService and XMLListCollection.


Estimados Listeros:

Necesito pasar un parámetro XMLListCollection por HTTPService a una JSP 
o Servlet.


He utilizado un DataGrid, para el manejo de la información, y luego 
necesito pasar los nuevos datos (XMLListCollection id=XML_Grupos) del 
DataGrid a un Servlet o JSP.


mx:XMLListCollection id=*XML_Grupos* ./ // Tiene los datos del 
DataGrid.


mx:HTTPService id=serviceJSP url=Diagrama.jsp resultFormat=e4x 
showBusyCursor=true
   fault=Alert.show(event.fault.faultString), 'Error' 
result=Alert.show(event.toString())

   mx:request
   quienflex/quien
   Grupos*{XML_Grupos}*/Grupos
   /mx:request
/mx:HTTPService

Por medio de un Button envío los datos *serviceJSP.send()

*El parametro quien lo recibo sin ningún problema en la JSP,
JSP:...
request.getParameter(quien);

Pero el parametro Grupos{XML_Grupos}/Grupos, no lo puedo recibir, ni 
trabajar con los datos.

JSP:
String[] Grupos=request.getParameterValues(Grupos);

La comunicacion con la JSP me da OK., pero el Array String[] Grupos en 
la JSP no contiene la información enviada por Flex.


Necesito hacerlo por HTTPService, dado que no deseo utilizar FDS por 
motivos de licencia, dado que el cliente tiene un Servidor con 2 
Procesadores, y por lo tanto debería de adquirir FDS.


Recurro a Uds. dado que en la documentación de Adobe (devguide.PDF) no 
encontre nada sobre esto.


Muchas Gracias por todo.


Pablo Dario Ingelhorn
Ingelhorn Sistemas
(6303) Toay  - La Pampa - Argentina 





Re: [flexcoders] PDF in Flex

2007-06-07 Thread Paul deCoursey
Tom Chiverton wrote:
 On Thursday 07 Jun 2007, Ben Marchbanks wrote:
   
 I would be shocked if the next release of Flex did not include support of
 PDF rendering as has been announced for production release of Apollo.
 It just makes too much sense to add it to the sister product as well.
 

 What, add 10meg of bloat to the Flash player ? Lets not.

   
I don't think it would add 10MB of bloat to the player.  Adding simple 
PDF 1.3 or 1.4 support would maybe add 1MB if done correctly.  I'd 
imagine you could build a simple display component for Flex that would 
easily be less that 100k.  If I had the time I would attempt it myself, 
I'm mostly afraid that Adobe would just go ahead and do it before I 
could display my success.

paul


--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* Your email settings:
Individual Email | Traditional

* To change settings online go to:
http://groups.yahoo.com/group/flexcoders/join
(Yahoo! ID required)

* To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 


Re: [flexcoders] ASDoc for MXML components?

2007-06-07 Thread Daniel Freiman

It looks like the mx:Metadata tag might also allows for comments, but i
haven't personally confirmed that.  See RichTextEditor.mxml for what I'm
talking about.

Daniel Freiman
nondocs http://nondocs.blogspot.com


On 6/7/07, Stephen Gilson [EMAIL PROTECTED] wrote:


   There is only limited support in ASDoc for MXML files.

- All ActionScript entities defined in an mx:Script block, such as
properties and methods, appear in the output. Items defined in MXML tags do
not appear in the ASDoc output.
- You can only insert an ASDoc comment in an mx:Script block of an MXML
file.
- The superclass corresponds to the first tag in the MXML file. For an
application file, that tag is the mx:Application tag and therefore an MXML
application file appears in the ASDoc output as a subclass of the
Application class.

Stephen

 --
*From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On
Behalf Of *borekbe
*Sent:* Thursday, June 07, 2007 10:42 AM
*To:* flexcoders@yahoogroups.com
*Subject:* [flexcoders] ASDoc for MXML components?

 Hi all

Is there a way to generate API documentation from MXML components? So
far, I thought that MXML and ActionScript are just different ways to
express the same things but if I can't generate documentation, this
practically means that I can't use MXML for component development at
all. I hope it's not the case because MXML is much more suitable for
certain scenarios...

Thanks,
Borek

 



Re: [flexcoders] PDF in Flex

2007-06-07 Thread Christopher Olsen
Well if we want to add bloat an html render would be nice since the 
IFRAME hack is above the player itself



Tom Chiverton wrote:

On Thursday 07 Jun 2007, Ben Marchbanks wrote:
  

I would be shocked if the next release of Flex did not include support of
PDF rendering as has been announced for production release of Apollo.
It just makes too much sense to add it to the sister product as well.



What, add 10meg of bloat to the Flash player ? Lets not.

  




Re: [flexcoders] Re: repeater child click event

2007-06-07 Thread Tom Chiverton
On Thursday 07 Jun 2007, nhp_ny wrote:
 thanks, thanks and thanks.

tom:Bow / :-)

-- 
Tom Chiverton
Helping to dynamically expedite out-of-the-box e-services
on: http://thefalken.livejournal.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 St 
James's Court Brown Street Manchester M2 2JF.  A list of members is available 
for inspection at the registered office. Any reference to a partner in relation 
to Halliwells LLP means a member of Halliwells LLP. Regulated by the Law 
Society.

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 8008.

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



--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* Your email settings:
Individual Email | Traditional

* To change settings online go to:
http://groups.yahoo.com/group/flexcoders/join
(Yahoo! ID required)

* To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 


Re: [flexcoders] PDF in Flex

2007-06-07 Thread Ben Marchbanks
I doubt that adding PDF support to Flex would come at such an expense.

Apollo requires Adobe Reader for PDF rendering which does all the heavy lifting.

Ben Marchbanks

::: alQemy ::: transforming information into intelligence
http://www.alQemy.com

::: magazooms ::: digital magazines
http://www.magazooms.com

Greenville, SC
864.284.9918

Paul deCoursey wrote:
 Tom Chiverton wrote:
 On Thursday 07 Jun 2007, Ben Marchbanks wrote:
   
 I would be shocked if the next release of Flex did not include support of
 PDF rendering as has been announced for production release of Apollo.
 It just makes too much sense to add it to the sister product as well.
 
 What, add 10meg of bloat to the Flash player ? Lets not.

   
 I don't think it would add 10MB of bloat to the player.  Adding simple 
 PDF 1.3 or 1.4 support would maybe add 1MB if done correctly.  I'd 
 imagine you could build a simple display component for Flex that would 
 easily be less that 100k.  If I had the time I would attempt it myself, 
 I'm mostly afraid that Adobe would just go ahead and do it before I 
 could display my success.
 
 paul
 
 
 --
 Flexcoders Mailing List
 FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
 Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
 Yahoo! Groups Links
 
 
 
 
 

-- 
Ben Marchbanks

::: alQemy ::: transforming information into intelligence
http://www.alQemy.com

::: magazooms ::: digital magazines
http://www.magazooms.com

Greenville, SC
864.284.9918


--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* Your email settings:
Individual Email | Traditional

* To change settings online go to:
http://groups.yahoo.com/group/flexcoders/join
(Yahoo! ID required)

* To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 


Re: [flexcoders] PDF in Flex

2007-06-07 Thread Tom Chiverton
On Thursday 07 Jun 2007, Paul deCoursey wrote:
 easily be less that 100k.  If I had the time I would attempt it myself,
 I'm mostly afraid that Adobe would just go ahead and do it before I
 could display my success.

Well, libpoppler and libpoppler-qt (PDF rendering library's for 'nix) come in 
at 1.5meg each, but they probably don't support most of what can be found in 
more recent PDFs, and certainly aren't GUIs.
It'd also require Adobe making an up to date PDF client for 'nix. Can't see 
that coming anytime soon (it's been on v7 for about forever).

-- 
Tom Chiverton
Helping to preemptively market professional patterns
on: http://thefalken.livejournal.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 St 
James's Court Brown Street Manchester M2 2JF.  A list of members is available 
for inspection at the registered office. Any reference to a partner in relation 
to Halliwells LLP means a member of Halliwells LLP. Regulated by the Law 
Society.

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 8008.

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



--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* Your email settings:
Individual Email | Traditional

* To change settings online go to:
http://groups.yahoo.com/group/flexcoders/join
(Yahoo! ID required)

* To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 


[flexcoders] Re: still having trouble with breakpoints

2007-06-07 Thread beecee1977
I'll just echo that I see the same thing (again only in .as files 
included by script tags).

For me it's usually after line 500 or so, but no amount of cleaning 
the project or closing reopening Flex fixes it for me. So I do lots 
of moving functions to where I can debug them! :-)


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

 On Thursday 07 Jun 2007, Pan Troglodytes wrote:
  Realized some info that might be relevant.  This seems to happen 
in a .as
  file included by a Script tag.  Not sure if I've run into it in 
a regular
  AS class file.
 
 I certainly recall other people having the same problem, but not a 
solution.
 
 -- 
 Tom Chiverton
 Helping to centrally introduce bleeding-edge channels
 on: http://thefalken.livejournal.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 St James's Court Brown Street Manchester M2 
2JF.  A list of members is available for inspection at the registered 
office. Any reference to a partner in relation to Halliwells LLP 
means a member of Halliwells LLP. Regulated by the Law Society.
 
 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 8008.
 
 For more information about Halliwells LLP visit www.halliwells.com.





Re: [flexcoders] PDF in Flex

2007-06-07 Thread Tom Chiverton
On Thursday 07 Jun 2007, Christopher Olsen wrote:
 Well if we want to add bloat an html render would be nice since the
 IFRAME hack is above the player itself

Why does the Flash player (that runs in a browser) need a HTML renderer ?
OK, so RichTextEditor has issues, but no one is seriously that bothered, are 
they ?

-- 
Tom Chiverton
Helping to confidentially disseminate frictionless e-commerce
on: http://thefalken.livejournal.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 St 
James's Court Brown Street Manchester M2 2JF.  A list of members is available 
for inspection at the registered office. Any reference to a partner in relation 
to Halliwells LLP means a member of Halliwells LLP. Regulated by the Law 
Society.

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 8008.

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



--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* Your email settings:
Individual Email | Traditional

* To change settings online go to:
http://groups.yahoo.com/group/flexcoders/join
(Yahoo! ID required)

* To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 


Re: [flexcoders] PDF in Flex

2007-06-07 Thread Christopher Olsen

Tom Chiverton wrote:

On Thursday 07 Jun 2007, Christopher Olsen wrote:
  

Well if we want to add bloat an html render would be nice since the
IFRAME hack is above the player itself



Why does the Flash player (that runs in a browser) need a HTML renderer ?
OK, so RichTextEditor has issues, but no one is seriously that bothered, are 
they ?


  


Well I have a rss reader and I hate that it has to open a new html 
browser to read the page instead of putting it in a panel


Re: [flexcoders] Re: Flex Java, Where to Start?

2007-06-07 Thread Robert Cadena
Hi Aaron,

You don't need EJB or J2EE to start with FDS.  In fact, I would 
recommend trying familiarize yourself with plain FDS before attempting 
to integrate with enterprise java.

What you do need is a servlet container.  Typically tomcat.  FDS comes 
with a lite version of another servlet container called jrun.  you could 
start with that.

you could also try out christophe coenraets Tomcat Test Drive Server; 
it has all the stuff you need to get started:

http://coenraets.org/blog/2007/01/flex-test-drive-server-for-java-developers-tomcat-based/

his tutorials are really worthwhile too.

Get started with a very simple RemoteObject application talking with a 
Flex front end.   If you have no java experience, start off without FDS 
and just get the feel for how to develop, package, and deploy simple 
java apps.

I second simonjpalmer's suggestion to use Eclipse: It's free, it's easy, 
it can run the Flex Builder as a Plug-in, and it supports lots of tools 
that make your java life easier: ant, refactoring, etc.

best of luck.

/r
http://www.searchcoders.com/
http://www.laflex.org/





aaronvm707 wrote:
 Thank you very much for all the info. I think the key word I was
 looking for was EJB. Is this what I will develop in order to start
 using Flex Data Services?
 
 Any suggestions on the server software needed to run EJB  J2EE? Again
 I am moving from a Microsoft, .net, IIS environment so I am completly
 new to all this. Thanks
 
 Aaron 
 
 
 
 --- In flexcoders@yahoogroups.com, simonjpalmer [EMAIL PROTECTED]
 wrote:
 Sun has a very comprehensive online documentation of the Java
 language.  
 This is a good book if you are a seasoned developer and just wanting
 to pick up Java Java In A Nutshell by David Flanagan, O'Reilly.  

 Another really good book is Just Java 2 by Peter van der Linden, Sun
 Microsystems Press.  I learnt Java from these (C++ background) and I
 recommend both.

 There aren't really variations of Java itself, so a basic grounding in
 the language is something that you can use whatever you end up doing.
  However there are lots of design and coding patterns around Java
 which give high productivity, especially when using Java to write
 server software, which is probably what you mean by Java as it relates
 to Flex.  Java doesn't specifically relate to flex or vice versa, but
 there is middleware which serialises between Java and ActionScript,
 such as FDS.

 On the server you will need to look at EJB and J2EE and I would
 recommend Spring, although it takes a bit of getting your head around,
 and Hibernate if you are persisting your data relationally.  These are
 all frameworks for coding which, with supporting packages from 3rd
 parties, give a high degree of productivity in writing scalable Java
 servers.  It is truly amazing how much fee code there is available.

 You'll probably wind up with Eclipse as an IDE too, so it is worth
 familiarising yourself with that.  Don't expect the Microsoft IDE, but
 it is pretty good all the same.

 I'm sure lots of people will comment, but i hope that gives you some
 first pointers of what to google.

 Good luck


 --- In flexcoders@yahoogroups.com, aaronvm707 vestamedia@ wrote:
 Hello,

 I have begun working with Flex a couple of months ago and have been
 learning fairly quickly. I come from a Microsoft ASP.net background,
 but would prefer to work with Flex  Java. Can anyone suggest
 resources and/or books to start learning Java as it relates to Flex.
 There seams to be many variations of Java for different development
 needs  I am not sure where to begin. Thanks

 Aaron

 
 
 
 
 --
 Flexcoders Mailing List
 FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
 Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
 Yahoo! Groups Links
 
 
 
 




Re: [flexcoders] PDF in Flex

2007-06-07 Thread Paul deCoursey
Tom Chiverton wrote:
 On Thursday 07 Jun 2007, Christopher Olsen wrote:
   
 Well if we want to add bloat an html render would be nice since the
 IFRAME hack is above the player itself
 

 Why does the Flash player (that runs in a browser) need a HTML renderer ?
 OK, so RichTextEditor has issues, but no one is seriously that bothered, are 
 they ?
   
I think there are a lot of people who don't get that the Flex 
application doesn't need to take up the whole screen.  It, like Flash, 
can just be a part of the page and can communicate with other bits on 
the page.  One Flex app can even talk to another on the page.  With that 
in mind I don't think an HTML renderer is important.  I also think that 
the RTE is fine, if you need complex HTML then you should be coding it 
and not using a WYSIWYG anyway.



--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* Your email settings:
Individual Email | Traditional

* To change settings online go to:
http://groups.yahoo.com/group/flexcoders/join
(Yahoo! ID required)

* To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 


RE: [flexcoders] Re: Flex Java, Where to Start?

2007-06-07 Thread Peter Farland
I would skip EJB for now. You don't need to know about EJB to use FDS
(note FDS was recently re-branded as LiveCycle Data Services ES 2.5
which is the latest release available).
 
The concepts behind web apps in .NET are very close to the concepts of
J2EE. There should be tons of web postings comparing J2EE to .NET.
 
I'd start by getting familiar with simple J2EE deployments, that is
start with a web application archive (WAR). These are essentially zip
files that can be deployed on a J2EE server (like JBoss, or simply
Tomcat). Get a feel for how the configuration looks under the /WEB-INF
directory, how Servlets (and JSP pages) can handle HTTP GET/POST
requests to produce dynamic web apps, go over the basic parts of the
web.xml configuration file, work out how classes are found in the
classpath, such as /WEB-INF/lib for *.jar libraries and /WEB-INF/classes
for loose *.class files. Read up on web application contexts and how the
WAR context path delineate the root URL of the application.
 
You can use Flex's RemoteObject to call a plain old Java object, or use
Producers/Consumers for real-time messaging to create publish/subscribe
applications, or use DataService to get comprehensive management of
distributed data graphs to build powerful collaborative
applications/dashboards etc.
 
Pete
 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of aaronvm707
Sent: Thursday, June 07, 2007 11:39 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Flex  Java, Where to Start?



Thank you very much for all the info. I think the key word I was
looking for was EJB. Is this what I will develop in order to start
using Flex Data Services?

Any suggestions on the server software needed to run EJB  J2EE? Again
I am moving from a Microsoft, .net, IIS environment so I am completly
new to all this. Thanks

Aaron 

--- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
, simonjpalmer [EMAIL PROTECTED]
wrote:

 Sun has a very comprehensive online documentation of the Java
language. 
 
 This is a good book if you are a seasoned developer and just wanting
 to pick up Java Java In A Nutshell by David Flanagan, O'Reilly. 
 
 Another really good book is Just Java 2 by Peter van der Linden, Sun
 Microsystems Press. I learnt Java from these (C++ background) and I
 recommend both.
 
 There aren't really variations of Java itself, so a basic grounding in
 the language is something that you can use whatever you end up doing.
 However there are lots of design and coding patterns around Java
 which give high productivity, especially when using Java to write
 server software, which is probably what you mean by Java as it relates
 to Flex. Java doesn't specifically relate to flex or vice versa, but
 there is middleware which serialises between Java and ActionScript,
 such as FDS.
 
 On the server you will need to look at EJB and J2EE and I would
 recommend Spring, although it takes a bit of getting your head around,
 and Hibernate if you are persisting your data relationally. These are
 all frameworks for coding which, with supporting packages from 3rd
 parties, give a high degree of productivity in writing scalable Java
 servers. It is truly amazing how much fee code there is available.
 
 You'll probably wind up with Eclipse as an IDE too, so it is worth
 familiarising yourself with that. Don't expect the Microsoft IDE, but
 it is pretty good all the same.
 
 I'm sure lots of people will comment, but i hope that gives you some
 first pointers of what to google.
 
 Good luck
 
 
 --- In flexcoders@yahoogroups.com
mailto:flexcoders%40yahoogroups.com , aaronvm707 vestamedia@
wrote:
 
  Hello,
  
  I have begun working with Flex a couple of months ago and have been
  learning fairly quickly. I come from a Microsoft ASP.net background,
  but would prefer to work with Flex  Java. Can anyone suggest
  resources and/or books to start learning Java as it relates to Flex.
  There seams to be many variations of Java for different development
  needs  I am not sure where to begin. Thanks
  
  Aaron
 




 


Re: [flexcoders] PDF in Flex

2007-06-07 Thread Christopher Olsen

Paul,

Well what I'm working on is a little more involved then a single flex 
app running inside a website...


It's more of a flex/flash app player/environment...

It allows for you to find flex apps run them build your own custom 
tailored environments with apps you like and switch between them...


And the overlay/child indexing is where it become an issue

For an example see http://cupid.ubixos.com/reddawg

-Christopher



Paul deCoursey wrote:

Tom Chiverton wrote:
  

On Thursday 07 Jun 2007, Christopher Olsen wrote:
  


Well if we want to add bloat an html render would be nice since the
IFRAME hack is above the player itself

  

Why does the Flash player (that runs in a browser) need a HTML renderer ?
OK, so RichTextEditor has issues, but no one is seriously that bothered, are 
they ?
  

I think there are a lot of people who don't get that the Flex 
application doesn't need to take up the whole screen.  It, like Flash, 
can just be a part of the page and can communicate with other bits on 
the page.  One Flex app can even talk to another on the page.  With that 
in mind I don't think an HTML renderer is important.  I also think that 
the RTE is fine, if you need complex HTML then you should be coding it 
and not using a WYSIWYG anyway.




--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links




  




[flexcoders] Re: PDF in Flex

2007-06-07 Thread James
Fine isn't good enough for me. I'd like to jump on the bandwagon, too.
Surely Adobe could make a fake html component that actually implements
a floating div or iframe or something? And then you could fluidly use
htmlObject.url = http://www.example.com;, etc.



  1   2   >