[flexcoders] Re: Urgent Prob - cant debug after upgrading to new player

2009-03-11 Thread reflexactions
It was installed, I ran it, from FB I ran the app in debug mode, it loaded, I 
went to the about in the context menu, it went to the adobe about web page 
which stated I had the 10.0.22.87 version installed.

I am not sure how many more ways I can say that...

... and u still didnt tell me where is this test website and how I am 
supposed to verify objectively on it



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

 The player version is one issue that just needs to be verified first.  Just
 because you installed it does not guarantee that it got installed.  You
 always need to verify it objectively.
 
  
 
 Tracy Spratt,
 
 Lariat Services, development services available
 
   _  
 
 From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
 Behalf Of reflexactions
 Sent: Wednesday, March 11, 2009 1:38 AM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Re: Urgent Prob - cant debug after upgrading to new
 player
 
  
 
 I installed the debug version, no doubt about that.
 
 --- In flexcod...@yahoogro mailto:flexcoders%40yahoogroups.com ups.com,
 Nathaniel Skiba nate.skiba@ wrote:
 
  Did you upgrade to the debug version or the regular version? If you
  upgraded to the regular version, then you can fix the problem by
  downloading one of the debugger versions from
  http://www.adobe.
 http://www.adobe.com/support/flashplayer/downloads.html.
 com/support/flashplayer/downloads.html.
  
  reflexactions wrote:
   I upgraded to the new flash player earlier today and now I cant debug in
 FB.
  
   I have tried everything including uninstalling the FPlayer using the
 uninstall tool, reboot, install debug player, run from FB (standalone), IE8
 opens with the app but FB says still waiting for the player to connect.
  
   I used netstat -a and FB is listening on port 7935, but the app wont
 connect, even if I try to manually force it by using the context menu it
 won't connect.
  
   I have tried down grading but that doesnt work
  
   I cant find anything to get back to debugging and its a problem 'cos I
 cant work at all.
  
   Help!
  
  
  
   
  
   --
   Flexcoders Mailing List
   FAQ: http://groups.
 http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
 yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
   Alternative FAQ location: https://share.
 https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e6
 2079f6847
 acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847
   Search Archives: http://www.mail-
 http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo
 archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links
  
  
  
  
 





Re: [flexcoders] Component with Text and Image in sameline

2009-03-11 Thread Haykel BEN JEMIA
Take a look at the Text Layout Framework [
http://labs.adobe.com/technologies/textlayout/ ].

Haykel Ben Jemia

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




On Wed, Mar 11, 2009 at 5:40 AM, Ashish Verma verma.lu...@gmail.com wrote:

   Hello All,
 Want to make a component in Flex 3:
 Here is the specification of the application –
 1.   We need to develop a windows/web application in which we want to
 have a component which can accommodate images in line with the text.


 2.   We can move/drag the images/text in that component using mouse.
 The text or images adjust themselves inline while moving.

 3.   We can cut / copy / paste the text not the images.

 4.   We can also write text in between the images.

 5.   You have to use the following XML to load this component. You can
 have the images where you will find the braces. You have to use different
 images for {0} and {1}.

 @xml version=”1.0” encoding=”utf-8” ?

 text

 This is {0} a windows application {1} in which we want to have text between
 the images

 text
 /xml
 Any Help would be appriciate.

  



[flexcoders] Re: Turn all keyboard input into upper-case for all TextInput and TextArea

2009-03-11 Thread per.olesen

--- In flexcoders@yahoogroups.com, Gordon Smith gosm...@... wrote:

 In a handler for the 'textInput' event, set event.text = 
 event.text.toUpperCase(). The 'textInput' event is dispatched after the text 
 has been typed (or converted by an IME) but before it has been inserted into 
 the TextField. The 'change' event is dispatched after the text has been 
 inserted.
 

Thank you for the tip. 

We actually tried this, but it didn't work for us. It seemed like the other 
existing listeners for the textInput event got the version of the event with 
the lower-case characters?

Also, we need the actual text in the input box to display as upper-case too.




[flexcoders] Re: Modules Communication

2009-03-11 Thread thelordsince1984
--- In flexcoders@yahoogroups.com, Tracy Spratt tspr...@... wrote:

 Which part do you not understand?  Have you looked at changeWatcher in the
 docs?
 
  
 
 Tracy Spratt,
 
 Lariat Services, development services available
 
   _  
 
 From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
 Behalf Of thelordsince1984
 Sent: Tuesday, March 10, 2009 11:29 AM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Re: Modules Communication
 
  
 
 --- In flexcod...@yahoogro mailto:flexcoders%40yahoogroups.com ups.com,
 Tracy Spratt tspratt@ wrote:
 
  I'm not sure, maybe since modules are independent swf's, but that is way
  more complicated than necessary.
  
  
  
  Look into the singleton data model. In such a case, you would do:
  
  1. in the source module, MyModel.getInstance().id = myTextInput.text;
  2. In the target module, text={ MyModel.getInstance().id }
  3. Or use a changeWatcher if you need to take programmatic action when
  id changes
  
  
  
  Tracy
  
  
  
  _ 
  
  From: flexcod...@yahoogro mailto:flexcoders%40yahoogroups.com ups.com
 [mailto:flexcod...@yahoogro mailto:flexcoders%40yahoogroups.com ups.com]
 On
  Behalf Of thelordsince1984
  Sent: Tuesday, March 03, 2009 12:30 PM
  To: flexcod...@yahoogro mailto:flexcoders%40yahoogroups.com ups.com
  Subject: [flexcoders] Re: Modules Communication
  
  
  
  --- In flexcod...@yahoogro mailto:flexcoders%40yahoogroups.com ups.com,
  thelordsince1984 loreboa@ wrote:
  
   --- In flexcod...@yahoogro mailto:flexcoders%40yahoogroups.com
 ups.com,
  Simon Bailey simon@ wrote:
   
On the tip for communicating between modules using a framework, 
PureMVC has a utility called Pipes which helps you accomplish this:

http://trac. http://trac.
 http://trac.puremvc.org/Utility_AS3_MultiCore_Pipes
 puremvc.org/Utility_AS3_MultiCore_Pipes
  puremvc.org/Utility_AS3_MultiCore_Pipes

;S

On 3 Mar 2009, at 10:10, claudiu ursica wrote:


 You should probably have ca comunication manager something like a 
 central event dispatcher (I believe the Mate framework already
  does 
 this but i might be mistaking) and register panels within that 
 scope. so when a panel fires an event the other listening panels 
 check if the event is adressed to them and actually consume catch 
 that event...

 there was some guy doing a prof of concept for this google for
  ALON 
 desing pattern ...

 HTH,
 Claudiu

 From: thelordsince1984 loreboa@
 To: flexcod...@yahoogro mailto:flexcoders%40yahoogroups.com
 ups.com
 Sent: Tuesday, March 3, 2009 10:53:49 AM
 Subject: [flexcoders] Re: Modules Communication

 --- In flexcod...@yahoogro ups.com, Guy Morton guy@ wrote:
 
  Have you read the section Using interfaces for module 
 communication
  in the docs? That's been working for me.
 

 thanks for the reply..

 For Guy Morton...

 i've read it but modules are created at runtime so i would have a
 maneger that controls communication over modules.is it true?

 For Alex Harui

 how can i achieve the commuication between modules..for example a
 module dispatch an event...the event is catch by a manager and then
 fires to the rigth destination. ..rember that i have an
 application. ..it contains panels and each panel could contain a 
 module...

 thanks again

 Regards Lorenzo





   
   thanks all,
   
   but is there a simple manner to achieve module to module communication?
   
   suppose this scenario:
   
   i've a module within a panel. it contains a textinput...it fires a
   custom event when the user clicks a button..the event contains an id
   number..an other modules is listen for this event, catchs it at then
   update itself depending on passed id...
   
   thanks again 
   Regards Lorenzo
  
  is it possible to use localconnection among modules or is a bad way to
  achieve module to module communication?
 
 
 hi Tracy,
 
 i've read your last response...
 
 can you explain me the third option:
 
 Use a changeWatcher if you need to take programmatic action when
 id changes.
 
 thanks in advance 
 Regards 
 Lorenzo

i see the changewatcher docs but i can't understand where to put it...

Thanks again
Regards
Lorenzo




RE: [flexcoders] flash 10 3D - bug or feature

2009-03-11 Thread Kenneth Sutherland
Yip I know nobody has replied to this but I have a solution of sorts. If
anyone can explain what on earth is going on I'd like to know.

 

I have a function that does only this and it does NOT work. (doesn't
work in the sense I'm trying to rotate around the center point of the
object) The translation moves the object so the point I wish to rotate
is over point (0, 0, 0)

  

private function iDontWork() : void {

object.transform.matrix3D.appendTranslation(150, 0,0);

object.transform.matrix3D.appendRotation(36, Vector3D.Y_AXIS);

object.transform.matrix3D.appendTranslation(-150, 0,0);

}

 

I have another function that does only this and it DOES work. J

 

private function IDoWork() : void {

translateOnly();

rotateOnly();

translateOnly(); 

   

}

 

private function rotateOnly() : void {

  object.transform.matrix3D.appendRotation(36, Vector3D.Y_AXIS);

}



private var valueToMove : Number = 150;

private var translateUpOrDown : Boolean = false;

private function translateOnly() : void {

  if(translateUpOrDown){

object.transform.matrix3D.appendTranslation(valueToMove, 0,
0);

translateUpOrDown = false;

  } else {

object.transform.matrix3D.appendTranslation(-valueToMove,
-0,0);

translateUpOrDown = true;

 }

}





Any ideas why one works and the other doesn't.  They are both the same
just one splits the transformations into separate functions and the
other does not. Bug or feature??

 

Cheers.

 

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of Kenneth Sutherland
Sent: 10 March 2009 14:21
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] flash 10 3D

 

I've not managed to rotate a Box on some arbitrary point.  If anyone
knows how to do this, that would be great.

What I've tried so far to get it to rotate on its Y axis in the middle
of the Box.

 

myBox.appendTranslation( -(theBox.width/2), 0, 0);

myBox.appendRotation(angleToRotate, Vector3D.Y_AXIS);

myBox.appendTranslation( (theBox.width/2), 0, 0);

 

This does not work, it always rotates around its registration point, no
matter what the translation values are.

I've tried various combinations of prepend  append, I've tried quite a
few variations including adding a point for the third parameter on the
appendRotation but the only way I've managed to get it to rotate
correctly is if the Box is positioned at (0, 0, 0) inside the
application.  So I tried changing the x, y  z of the box then doing the
rotation and then resetting the x, y  z but still didn't work.  I tried
changing the translation to translate the box's width/2 and what its x
coord was but again no joy.

 

Anyone any ideas.

 

Cheers Kenneth.

 

 

 

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of Kenneth Sutherland
Sent: 09 March 2009 16:08
To: flexcoders@yahoogroups.com
Subject: [flexcoders] flash 10 3D

 

I'm trying to get to grips with some of the new 3D features in flash
player 10 and I'm having limited success. So I'm looking for some
helpful tutorials/examples.  I've seen a few that are to do with gumbo,
but I'm not looking at that yet. Just flex 3.2/3.3 examples.

 

Some of the sites I've seen useful info on so far are.

 

http://www.yswfblog.com/blog/2008/11/12/3d-with-flash-10-part-2/

 

http://www.flex888.com/934/tutorial-for-3d-using-flash-10.html

 

http://polygeek.com/1508_flex_flash-10-3d-examples-of-rotating-component
s

 

http://www.neuroproductions.be/experiments/the-new-drawing-api-rocks/

 

http://blog.dcholth.com/

 

If you know of any other good ones, let me know.

 

Cheers.

 

 



realise

.


Kenneth Sutherland

Technical Developer

Realise Ltd
Quay House, 142 Commercial Street, Leith, Edinburgh EH6 6LB
Tel 0131 476 7432
www.realise.com http://www.realise.com/ 

Check out some of our recent flex work:
* Focus on funds UK http://www.focusonfunds.co.uk/ 
* Focus on funds Europe
http://europe.standardlifeinvestments.com/distributor/products_and_serv
ices/going_further_focus_on_funds/index.html 
* Fund selector
http://uk.standardlifeinvestments.com/ifa/adviser_support/index.html 

* Video view
http://uk.standardlifeinvestments.com/ifa/market_views/video_view_and_m
p3s/index.html 
Realise are sponsors of the Marketing Society Scotland.
Realise Limited is registered in Scotland, SC172507.

 

 



Disclaimer 



This electronic message contains information which may be privileged and
confidential. The information is intended to be for the use of the
individual(s) or entity named above. If you are not the intended
recipient, be aware that any disclosure, copying, distribution or use of
the contents of this information is prohibited. If you have received
this electronic message in error, please notify us by telephone on 0131
476 6000 and delete the 

Re: [flexcoders] Flex 3 Tree - Moving Nodes

2009-03-11 Thread Romuald Quantin
That tree is just working very well, thanks again Yves.

Romu

Yves Riel wrote:

 I have done something similar lately except for the spring 
 loaded opening mechanism. The problem that I saw with Alex Harui's 
 approach was that you had to turn a leaf into a branch before being 
 able to drop a node on it. That impacts the icons that represent the 
 nodes and I still wanted a leaf node to be represented with a leaf 
 icon up to the point where it contains children. If all your nodes 
 (leaf or branch) have the same icon, then you could make all the nodes 
 branches through a custom ITreeDataDescriptor. You'll have to live 
 with having the small arrow to the left on every node.
  
 What I finally did was to overload some tree methods. If the drag  
 drop is over the bottom half portion of a node, I highlight it and 
 rewrite the parent and rowIndex properties of the _dropData property. 
 That works well. You could extend the logic to open up the folder 
 after the drop and add a spring loaded opening mechanism.
  
 I'm attaching some code but I had to clean it up to remove proprietary 
 information. Not sure if it still compiles but that's a starting point :-)
  
 Hope it helps!
  
  
  
  
 



[flexcoders] Open native file browser from Air

2009-03-11 Thread bjorn
I don't mean the native file browser that lets you select a file
(FileReferenceList), I mean opening ie. on windows explorer and let the user
browse around as normal.

Is this possible? Tried navigateToURL with file:// but that just opened
the browser in the directory. I'd like to open the file explorer.

Bjørn

-- 

http://www.juicability.com - flex blog
http://www.nospoiler.com - link to youtube videos without the spoilers


[flexcoders] Re: HTML component does not display images

2009-03-11 Thread florian.salihovic
Nope, actually if i#m loading images from the web, there's no problem in 
displaying the images. What kind of sandbox behaviour am i missing?

--- In flexcoders@yahoogroups.com, sunild99 sunilbd...@... wrote:

 Maybe you need a body tag in your html?
 
 --- In flexcoders@yahoogroups.com, florian.salihovic florian.salihovic@ 
 wrote:
 
  What am i missing? Passing htmlHttp Worldimg src='pic1.png' //html 
  to the HTML component's htmlText property will only display the text, not 
  the image.
  
  Best regards.
 





[flexcoders] Populating NativeMenu with async call; AIR

2009-03-11 Thread Aldo Bucchi
Hi all,

Is there any way to incrementally populate a NativeMenu after it has
been displayed?
I need to show the menu upon right-click, send some queries back to
the server and, depending on the replies, show custom actions.

It looks like this is not possible, but I'd rather ask as it might be
a common use case.

One alternative is to use Windows instead of NativeMenus. But that
means looser integration.

Thanks!
A


-- 
Aldo Bucchi
U N I V R Z
Office: +56 2 795 4532
Mobile:+56 9 7623 8653
skype:aldo.bucchi
http://www.univrz.com/
http://aldobucchi.com/

PRIVILEGED AND CONFIDENTIAL INFORMATION
This message is only for the use of the individual or entity to which it is
addressed and may contain information that is privileged and confidential. If
you are not the intended recipient, please do not distribute or copy this
communication, by e-mail or otherwise. Instead, please notify us immediately by
return e-mail.
INFORMACIÓN PRIVILEGIADA Y CONFIDENCIAL
Este mensaje está destinado sólo a la persona u organización al cual está
dirigido y podría contener información privilegiada y confidencial. Si usted no
es el destinatario, por favor no distribuya ni copie esta comunicación, por
email o por otra vía. Por el contrario, por favor notifíquenos inmediatamente
vía e-mail.


[flexcoders] Write to an XML file

2009-03-11 Thread christophe_jacquelin
Hello, 

How to declare a XML file in an ActionScript function and how to write data in 
this XML file ? 

Thank you,
Christophe, 




[flexcoders] Tree filter nodes to hide leaves

2009-03-11 Thread Romuald Quantin
Hi,

There must be simple way to do that. I've got an XML (the dataProvider 
of a tree) that can contains any kind of nodes.

I'd like to display only a type of node in my tree, let's say I've got 
an XML composed of car and plane nodes and I want to show only the 
cars in my tree.

Also, if my node has a content like:
car![CDATA[My Car]]/car

It shows the content of the car node as a leaf in the tree, I'd like to 
hide that content as well.

This XML is binded to others views so I wouldn't like to use another 
dataProvider built from this XML. I would need to hide them without 
remove them from the XML.

Any hint?

Thanks

Romu


Re: [flexcoders] Flex 3 Tree - Moving Nodes

2009-03-11 Thread Howard Fore
How are you detecting if it is over the top or bottom portion of a node?

--
Howard Fore, howard.f...@hofo.com
The universe tends toward maximum irony. Don't push it. - Jeff Atwood


On Tue, Mar 10, 2009 at 8:30 AM, Yves Riel r...@cae.com wrote:

 What I finally did was to overload some tree methods. If the drag  drop is
 over the bottom half portion of a node, I highlight it and rewrite the
 parent and rowIndex properties of the _dropData property. That works well.
 You could extend the logic to open up the folder after the drop and add a
 spring loaded opening mechanism.



Re: [flexcoders] Tree filter nodes to hide leaves

2009-03-11 Thread Howard Fore
How about using the XML in an XMLListCollection and using a filter function?

http://blog.flexexamples.com/2007/08/04/filtering-an-xmllistcollection-using-the-filterfunction-property-and-regular-expressions/

--
Howard Fore, howard.f...@hofo.com
The universe tends toward maximum irony. Don't push it. - Jeff Atwood


On Wed, Mar 11, 2009 at 6:33 AM, Romuald Quantin 
soundstep.mail...@googlemail.com wrote:

 Hi,

 There must be simple way to do that. I've got an XML (the dataProvider
 of a tree) that can contains any kind of nodes.

 I'd like to display only a type of node in my tree, let's say I've got
 an XML composed of car and plane nodes and I want to show only the
 cars in my tree.

 Also, if my node has a content like:
 car![CDATA[My Car]]/car

 It shows the content of the car node as a leaf in the tree, I'd like to
 hide that content as well.

 This XML is binded to others views so I wouldn't like to use another
 dataProvider built from this XML. I would need to hide them without
 remove them from the XML.

 Any hint?

 Thanks

 Romu


 

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






Re: [flexcoders] Flex 3 Tree - Moving Nodes

2009-03-11 Thread Howard Fore
Ah, didn't see the code attachment...
--
Howard Fore, howard.f...@hofo.com
The universe tends toward maximum irony. Don't push it. - Jeff Atwood


On Wed, Mar 11, 2009 at 7:16 AM, Howard Fore howard.f...@hofo.com wrote:

 How are you detecting if it is over the top or bottom portion of a node?

 --
 Howard Fore, howard.f...@hofo.com
 The universe tends toward maximum irony. Don't push it. - Jeff Atwood


 On Tue, Mar 10, 2009 at 8:30 AM, Yves Riel r...@cae.com wrote:

 What I finally did was to overload some tree methods. If the drag  drop
 is over the bottom half portion of a node, I highlight it and rewrite the
 parent and rowIndex properties of the _dropData property. That works well.
 You could extend the logic to open up the folder after the drop and add a
 spring loaded opening mechanism.





Re: [flexcoders] Write to an XML file

2009-03-11 Thread Howard Fore
http://www.adobe.com/devnet/flex/quickstart/accessing_xml_data/

--
Howard Fore, howard.f...@hofo.com
The universe tends toward maximum irony. Don't push it. - Jeff Atwood


On Wed, Mar 11, 2009 at 6:28 AM, christophe_jacquelin 
christophe_jacque...@yahoo.fr wrote:

 How to declare a XML file in an ActionScript function and how to write data
 in this XML file ?


[flexcoders] how to change alpha of a disabled combobox?

2009-03-11 Thread ettorepasquini
in my application i need to disable comboboxes (enabled = false) and change the 
look of the disabled combo to make it more opaque. Basically I want the 
disabled combo to look a little closer to the enabled combo look. Easy right?

Wrong. I am able to change every styling info (color, background, gradients, 
etc) EXCEPT the overall alpha mask of the component, which makes the 0x0 black 
look like gray.

I tried many approaches:
- combo.alpha = 1;
- combo.setStyle(backgroundAlpha, 1.0);
- combo.setStyle(fillAlphas, [1.0, 1.0]);
- applied my own skin class modified from ComboBoxArrowSkin and modified 
updateDisplayList to set fillAlphas to [1,1]

No changes whatsoever: someone is imposing a default alpha but I cannot figure 
where the hell that happens and/or out how to override that.

Any insights? Am I missing the obvious? Thanks in advance.



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

2009-03-11 Thread pwohlhart
I have the same problem although I use mx.managers.FocusManager

Basically what I'm trying to do is a tab-loop in a container-Sprite.

When I click on one of the elements in the container-Sprite what I get is:

ArgumentError: Error #2025: The supplied DisplayObject must be a child of the 
caller.
at flash.display::DisplayObjectContainer/getChildIndex()
at 
mx.managers::SystemManager/getChildIndex()[C:\autobuild\3.2.0\frameworks\projects\framework\src\mx\managers\SystemManager.as:1652]
at 
mx.managers::SystemManager/mouseDownHandler()[C:\autobuild\3.2.0\frameworks\projects\framework\src\mx\managers\SystemManager.as:3439]


It seems like the SystemManager is looking for the IFocusManagerContainer
responsible for the clicked DisplayObject directly in its own childList.
Do all FocusManagerContainers have to be top level elements?

Am I right when assuming that per application there should always be one
SystemManger and my IFocusManagerContainer should return that one (in 
Application.application)?


Does anybody know how to do this, or where to get solid information about this 
tabbing thing?

thanks a lot

This is my code:

package tests.controls
{
import flash.display.Sprite;
   
import mx.core.Application;
import mx.managers.FocusManager;
import mx.managers.IFocusManager;
import mx.managers.IFocusManagerContainer;
import mx.managers.ISystemManager;

public class FocusManagingContainer extends Sprite implements 
IFocusManagerContainer
{
private var _focusManager:FocusManager = null;
   
public function FocusManagingContainer()
{
super();
   
new FocusManager(this);
}
   
public function get focusManager():IFocusManager
{
return _focusManager;
}
   
public function set focusManager(value:IFocusManager):void
{
_focusManager = FocusManager(value);
}
   
public function get systemManager():ISystemManager
{
var app:Application = 
Application(Application.application);
return app.systemManager;
}
   
}
}


package tests.controls
{
import flash.display.Sprite;
import flash.text.TextField;
import flash.text.TextFieldAutoSize;
import flash.text.TextFieldType;
   
import mx.managers.IFocusManagerComponent;

public class FocusableControl extends Sprite implements 
IFocusManagerComponent
{
private var _focusEnabled:Boolean = true;
private var _mouseFocusEnabled:Boolean = true;
private var _tabEnabled:Boolean = true;
   
private var _label:TextField = null;
private var _input:TextField = null;
   
public function FocusableControl()
{
super();
   
_label = new TextField();
_label.text = Input:;
_label.autoSize = TextFieldAutoSize.LEFT;
_label.selectable = false;
_label.type = TextFieldType.DYNAMIC;
addChild(_label);
   
_input = new TextField();
_input.width = 100;
_input.height = 20;
_input.x = _label.width + 10;
_input.autoSize = TextFieldAutoSize.NONE;
_input.type = TextFieldType.INPUT;
_input.background = true;
_input.backgroundColor = 0xFF;
addChild(_input);
}
   
public function get focusEnabled():Boolean
{
return _focusEnabled;
}
   
public function set focusEnabled(value:Boolean):void
{
_focusEnabled = value;
}
   
public function get mouseFocusEnabled():Boolean
{
return _mouseFocusEnabled;
}
   
public function setFocus():void
{
stage.focus = _input;
}
   
public function drawFocus(isFocused:Boolean):void
{
//
}
   
}
}


I use them like that:

var fc: FocusManagingContainer = new FocusManagingContainer();

[flexcoders] Re: Turn all keyboard input into upper-case for all TextInput and Te

2009-03-11 Thread Gohlke, Greg
We also needed to accomplish this. Here is the event handler we wrote. 

 

/**

* Runs on change converting all text to upper case

*/

private function changeHandlerToUpper(event:Event):void{

  event.target.text = event.target.text.toUpperCase();

}

 

I hope this helps you out.

 

 

Greg



[flexcoders] Question about binding and circular reference

2009-03-11 Thread enriirne
Say I have this:

// MyForm.mxml
[Bindable]
public var foo:String;

mx:Bindable source=foo destination=myText.text/
mx:Bindable source=myText.text destination=foo/

mx:TextInput id=myText/

Is there an elegant way to avoid that foo is cleared upon creation of MyForm?
Indeed, if I do this in the main app:

var mf:MyForm = new MyForm();
mf.foo = bar;
addChild(mf);

then myText is empty, probably because it's empty content is first assigned to 
foo due to the second binding.
The real problem I'm trying to solve is to use the same value object to show 
data to the user and to receive his/her changes.

Of course it works if I use two vos: say voIn and voOut, binding them 
accordingly.

Any ideas?

Enri



[flexcoders] Re: How to get RemoteClass alias?

2009-03-11 Thread valdhor
Use ObjectUtil.getClassInfo (In the mx.utils package) and look at the alias 
property of the returned object.


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

 I have the following metadata attached to a class:
 [RemoteClass(alias=models.User)]
 public class User...
 
 Is there a way to retrieve the alias string from the class?





Re: [flexcoders] Tree filter nodes to hide leaves

2009-03-11 Thread Romuald Quantin
I tried that and bind the XMLListCollection, which is updating my XML, 
all working.

The only problem is that the filterFunction is working only on the list 
(on the first level).

The children of the list (that are XMLList, not XMLListConnection) are 
not filtered and I still see nodes that I dont want there.

How can I apply this filter Function recursively through the 
XMLListCollection?

Romu

Howard Fore wrote:

 How about using the XML in an XMLListCollection and using a filter 
 function?

 http://blog.flexexamples.com/2007/08/04/filtering-an-xmllistcollection-using-the-filterfunction-property-and-regular-expressions/
  
 http://blog.flexexamples.com/2007/08/04/filtering-an-xmllistcollection-using-the-filterfunction-property-and-regular-expressions/

 --
 Howard Fore, howard.f...@hofo.com mailto:howard.f...@hofo.com
 The universe tends toward maximum irony. Don't push it. - Jeff Atwood


 On Wed, Mar 11, 2009 at 6:33 AM, Romuald Quantin 
 soundstep.mail...@googlemail.com 
 mailto:soundstep.mail...@googlemail.com wrote:

 Hi,

 There must be simple way to do that. I've got an XML (the dataProvider
 of a tree) that can contains any kind of nodes.

 I'd like to display only a type of node in my tree, let's say
 I've got
 an XML composed of car and plane nodes and I want to show only the
 cars in my tree.

 Also, if my node has a content like:
 car![CDATA[My Car]]/car

 It shows the content of the car node as a leaf in the tree, I'd
 like to
 hide that content as well.

 This XML is binded to others views so I wouldn't like to use another
 dataProvider built from this XML. I would need to hide them without
 remove them from the XML.

 Any hint?

 Thanks

 Romu


 

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


(Yahoo! ID required)

mailto:flexcoders-fullfeatu...@yahoogroups.com
 mailto:flexcoders-fullfeatu...@yahoogroups.com




 



[flexcoders] TextArea : change fontcolor of selected text

2009-03-11 Thread secrit.service
Hello,

I have TextArea.
My wish is to select a part of the text and change the color of it by using a 
ColorPicker.
Till now I tried several ways, but I'm not able to get it done. I can change 
the complete text, but just a part of it did not work out.
Does anyone have any idea how to get this done?

Thanks a lot



RE: [flexcoders] Flex 3 Tree - Moving Nodes

2009-03-11 Thread Yves Riel
You're welcome Romu.
 
It's not the first time people are looking for a better tree component.
Maybe it would be worth while to create a new tree component in FlexLib.
We could start with the basic functionality that I added.
 
Yves
 
http://geo.yahoo.com/serv?s=97359714/grpId=12286167/grpspId=1705007207/
msgId=138704/stime=1236765221/nc1=1/nc2=2/nc3=3 




[flexcoders] Re: Write to an XML file

2009-03-11 Thread christophe_jacquelin
Hello,

It is OK to modify my XML file in the folder source/assets.

But when I leave the application, the xml file is not saved.

It is possible to save the XML file with File but it is for an AIR application.

For a flex application the File class is not available.

How to save the xml files for a flex application ?

Thank you,
Christophe, 


--- In flexcoders@yahoogroups.com, christophe_jacquelin 
christophe_jacque...@... wrote:

 Hello, 
 
 How to declare a XML file in an ActionScript function and how to write data 
 in this XML file ? 
 
 Thank you,
 Christophe,





RE: [flexcoders] Question about binding and circular reference

2009-03-11 Thread Yves Riel
The problem you are experiencing is caused by the fact that when the
player executes the line [ mf.foo = bar ], your text input is not even
created in your form yet. So, the foo-myText binding does nothing and
when the text input is finally created, the myText-foo binding executes
and thus overwrite what was in foo.
 
If you want to avoid this, you need to do:
 
protected var mf:MyForm = new MyForm();
mf.addEventListener(FlexEvent.CREATION_COMPLETE, formCreatedHandler);
addChild(mf);
 
protected function formCreatedHandler(event:FlexEvent):void {
mf.removeEventListener(FlexEvent.CREATION_COMPLETE,
formCreatedHandler);
mf.foo = bar;
}



From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of enriirne
Sent: Wednesday, March 11, 2009 8:25 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Question about binding and circular reference



Say I have this:

// MyForm.mxml
[Bindable]
public var foo:String;

mx:Bindable source=foo destination=myText.text/
mx:Bindable source=myText.text destination=foo/

mx:TextInput id=myText/

Is there an elegant way to avoid that foo is cleared upon creation of
MyForm?
Indeed, if I do this in the main app:

var mf:MyForm = new MyForm();
mf.foo = bar;
addChild(mf);

then myText is empty, probably because it's empty content is first
assigned to foo due to the second binding.
The real problem I'm trying to solve is to use the same value object to
show data to the user and to receive his/her changes.

Of course it works if I use two vos: say voIn and voOut, binding them
accordingly.

Any ideas?

Enri






Re: [flexcoders] Re: Write to an XML file

2009-03-11 Thread Paul Andrews
- Original Message - 
From: christophe_jacquelin christophe_jacque...@yahoo.fr
To: flexcoders@yahoogroups.com
Sent: Wednesday, March 11, 2009 2:34 PM
Subject: [flexcoders] Re: Write to an XML file


 Hello,

 It is OK to modify my XML file in the folder source/assets.
I think you mean modify in memory after Flex has read the file.

 But when I leave the application, the xml file is not saved.
Correct.

 It is possible to save the XML file with File but it is for an AIR 
 application.
Correct.

 For a flex application the File class is not available.
Correct.

 How to save the xml files for a flex application ?

You cannot. The closest you can come is saving your XML file on a remote 
server with the aid of a scripting language such as PHP, or similar.

You could do it by turning your flex application to a desktop app by using 
some 3rd party projector technology.

Paul

 Thank you,
 Christophe,


 --- In flexcoders@yahoogroups.com, christophe_jacquelin 
 christophe_jacque...@... wrote:

 Hello,

 How to declare a XML file in an ActionScript function and how to write 
 data in this XML file ?

 Thank you,
 Christophe, 



[flexcoders] Best practices for full screen video in AIR? What's the best HD performance we can?

2009-03-11 Thread George
Hi,

The Flex/AIR project I'm working recently need to play full screen high 
quality H.264 videos in second monitor screen (usually a projector, 
maybe a large monitor sometime, such as 1680x1050). I run into trouble 
with video performance we can get.

I know Adobe Media Player make full screen video playback. Our 
application is larger than AMP though. There's a main window in main 
screen, control video playback as well as other contents such as full 
screen Flash files loaded.

The performance when I testing on 1680x1050 screen with Macbook core 2 
duo (with Flex Builder running),  camcorder shot videos can play mostly 
smooth,  while as parts of videos panning with still images slowly, in 
these parts can never feel smooth enough. (The application when I tested 
with released version in slow 2G cpu / 2G memory Vista computer, it run 
80% CPU around when video playing.)

What I'm doing on video:

Use an standalone Window component to contain a FLVPlayback (CS4 
version), run full screen display mode on its stage alone. (Didn't set 
'fullScreenSourceRect', as I tried, it cause worse performance 
significantly)

Video encode settings:
960x540, Field Oder - none (no interlace), profile - high, level - 4.1, 
frame rate - should be 30 or 29.97 fps, target bitrate - 1.5 mbps, max 
bitrate - 2 mbps.

My question is:
 - Does each AIR nativeWindow run its own thread, or the whole AIR 
application running a single thread?
 - What's the best practices for full screen high quality video in AIR? 
Anything I can improve?
 - How to GC after video played? I used videoplayer.clear(), but cannot 
run videoplayer.close(), as I test when try to load a new video quickly, 
it throw an error.
 - What's the best HD video performance we can get in multiple windows 
Flex/AIR application?

Any help is greatly appreciated.

George






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

2009-03-11 Thread aceoohay
Alex:

Let me restate my primary question;

...has anyone else tried to create a flex component with a separate tab loop, 
if so how did you make it work?

Since the documentation seems to indicate that FocusManager will allow multiple 
tab loops that was the approach I was investigating. 

My primary goal, irrespective of how I do it is to create what I call a tab 
domain. Whatever it is called, what I need is the ability to define a captive 
group of objects from which focus will never leave by pressing the tab key.

Paul



[flexcoders] Re: TextArea : change fontcolor of selected text

2009-03-11 Thread ross_w_henderson
The RichTextEditor component does this.  If you look at that class's code, 
you'll see that it calls a function named setTextStyles and passes an argument 
of 'color'.

Basically, it creates a TextFormat object with the desired style (font color, 
in this case), and applies it to the selected text.


Good luck.








[flexcoders] Exporting code to Microsoft Word

2009-03-11 Thread oneworld95
Is there an easy way to copy and paste the Flex code into Microsoft Word and 
keep the formatting intact? I have the most difficulty with multi-line, ASDoc 
comments (/** */) that show up in Word mangled to the point of being useless; 
all the line breaks and spacing is off. Thanks.

- Alex C



[flexcoders] BlazeDS/ActiveMQ amf-streaming disconnect problem

2009-03-11 Thread Christophe Herreman
Hi,

We are experiencing disconnects on our Tomcat/BlazeDS/ActiveMQ stack.
Although our BlazeDS StreamingAMFChannel is configured with the default
idle-timeout-minutes of 0, it seems to timeout after about 30 minutes of
idle time (see log). The client does not do any requests during that time
and we are also not pushing messages from the ActiveMQ topic.

We have enabled debug logging on activeMQ and BlazeDS and see that BlazeDS
is removing the consumer. Unfortunately there is no log message prior to the
disconnect message so we can't really trace when this is called within
BlazeDS.

Has anyone else experienced this or can anyone provide a solution?

*** ActiveMQ log ***

11 Mar 2009 16:25:47,405 [ActiveMQ Transport: tcp:///127.0.0.1:49971] DEBUG
activemq.broker.region.AbstractRegion  - Removing consumer:
ID:TMSNEC02.traficon.int-52586-1236783284912-2:3:1:1
11 Mar 2009 16:25:47,406 [ActiveMQ Transport: tcp:///127.0.0.1:49971] DEBUG
activemq.broker.region.AbstractRegion  - Removing consumer:
ID:TMSNEC02.traficon.int-52586-1236783284912-2:3:-1:1
11 Mar 2009 16:25:47,407
[ContainerBackgroundProcessor[StandardEngine[Catalina]]] DEBUG
activemq.transport.tcp.TcpTransport  - Stopping transport tcp://localhost/
127.0.0.1:61616
11 Mar 2009 16:25:47,408 [ActiveMQ Transport Stopper: /127.0.0.1:49971]
DEBUG apache.activemq.broker.TransportConnection  - Stopping connection: /
127.0.0.1:49971
11 Mar 2009 16:25:47,409 [ActiveMQ Transport Stopper: /127.0.0.1:49971]
DEBUG activemq.transport.tcp.TcpTransport  - Stopping transport tcp:///
127.0.0.1:49971
11 Mar 2009 16:25:47,413 [ActiveMQ Transport Stopper: /127.0.0.1:49971]
DEBUG apache.activemq.broker.TransportConnection  - Stopped connection: /
127.0.0.1:49971
11 Mar 2009 16:25:47,417 [ActiveMQ Transport Stopper: /127.0.0.1:49971]
DEBUG apache.activemq.broker.TransportConnection  - Connection Stopped: /
127.0.0.1:49971
11 Mar 2009 16:25:47,427 [ActiveMQ Transport: tcp:///127.0.0.1:50680] DEBUG
activemq.broker.region.AbstractRegion  - Removing consumer:
ID:TMSNEC02.traficon.int-52586-1236783284912-2:4:1:1
11 Mar 2009 16:25:47,430 [ActiveMQ Transport: tcp:///127.0.0.1:50680] DEBUG
activemq.broker.region.AbstractRegion  - Removing consumer:
ID:TMSNEC02.traficon.int-52586-1236783284912-2:4:-1:1
11 Mar 2009 16:25:47,431
[ContainerBackgroundProcessor[StandardEngine[Catalina]]] DEBUG
activemq.transport.tcp.TcpTransport  - Stopping transport tcp://localhost/
127.0.0.1:61616
11 Mar 2009 16:25:47,431 [ActiveMQ Transport Stopper: /127.0.0.1:50680]
DEBUG apache.activemq.broker.TransportConnection  - Stopping connection: /
127.0.0.1:50680
11 Mar 2009 16:25:47,431 [ActiveMQ Transport Stopper: /127.0.0.1:50680]
DEBUG activemq.transport.tcp.TcpTransport  - Stopping transport tcp:///
127.0.0.1:50680
11 Mar 2009 16:25:47,435 [ActiveMQ Transport Stopper: /127.0.0.1:50680]
DEBUG apache.activemq.broker.TransportConnection  - Stopped connection: /
127.0.0.1:50680
11 Mar 2009 16:25:47,438 [ActiveMQ Transport Stopper: /127.0.0.1:50680]
DEBUG apache.activemq.broker.TransportConnection  - Connection Stopped: /
127.0.0.1:50680
11 Mar 2009 16:25:47,439 [ActiveMQ Transport: tcp:///127.0.0.1:50681] DEBUG
activemq.broker.region.AbstractRegion  - Removing consumer:
ID:TMSNEC02.traficon.int-52586-1236783284912-2:5:1:1
11 Mar 2009 16:25:47,439 [ActiveMQ Transport: tcp:///127.0.0.1:50681] DEBUG
activemq.broker.region.AbstractRegion  - Removing consumer:
ID:TMSNEC02.traficon.int-52586-1236783284912-2:5:-1:1
11 Mar 2009 16:25:47,440
[ContainerBackgroundProcessor[StandardEngine[Catalina]]] DEBUG
activemq.transport.tcp.TcpTransport  - Stopping transport tcp://localhost/
127.0.0.1:61616
11 Mar 2009 16:25:47,440 [ActiveMQ Transport Stopper: /127.0.0.1:50681]
DEBUG apache.activemq.broker.TransportConnection  - Stopping connection: /
127.0.0.1:50681
11 Mar 2009 16:25:47,441 [ActiveMQ Transport Stopper: /127.0.0.1:50681]
DEBUG activemq.transport.tcp.TcpTransport  - Stopping transport tcp:///
127.0.0.1:50681
11 Mar 2009 16:25:47,441 [ActiveMQ Transport Stopper: /127.0.0.1:50681]
DEBUG apache.activemq.broker.TransportConnection  - Stopped connection: /
127.0.0.1:50681
11 Mar 2009 16:25:47,441 [ActiveMQ Transport Stopper: /127.0.0.1:50681]
DEBUG apache.activemq.broker.TransportConnection  - Connection Stopped: /
127.0.0.1:50681

*** BlazeDS log ***

[BlazeDS]03/11/2009 15:55:39.776 [DEBUG] [Endpoint.AMF] Serializing AMF/HTTP
response
Version: 3
  (Message #0 targetURI=/4/onResult, responseURI=)
(Externalizable Object #0 'DSK')
  (Externalizable Object #1 'flex.messaging.io.ArrayCollection')
(Array #2)
1.236783339776E12
(Byte Array #3, Length 16)
(Byte Array #4, Length 16)
(Byte Array #5, Length 16)

[BlazeDS]03/11/2009 16:25:47.391 [INFO] [Service.Message.JMS] JMS consumer
for JMS destination 'java:comp/env/eventMessagesFlexTopic' is being removed
from the JMS adapter
[BlazeDS]03/11/2009 16:25:47.392 [INFO] [Service.Message.JMS] JMS consumer
for JMS destination 'java:comp/env/eventMessagesFlexTopic' is 

Re: [flexcoders] Exporting code to Microsoft Word

2009-03-11 Thread Tom Chiverton
On Wednesday 11 Mar 2009, oneworld95 wrote:
 Is there an easy way to copy and paste the Flex code into Microsoft Word

http://xzfv.appspot.com/s/format.html ?
-- 
Tom Chiverton
Helping to challengingly expedite portals
as part of the IT team of the year, '09 and '08



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

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

CONFIDENTIALITY

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

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

RE: [flexcoders] Re: Urgent Prob - cant debug after upgrading to new player

2009-03-11 Thread Tracy Spratt
You missed my reply with the link, I posted it yesterday evening, but here
it is again:

http://kb.adobe.com/selfservice/viewContent.do?externalId=tn_15507

 

I'm not saying you didn't say it, I'm saying that saying it doesn't always
make it so.

 

That version number does not necessarily indicate a debug version.

 

Tracy Spratt,

Lariat Services, development services available

  _  

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of reflexactions
Sent: Wednesday, March 11, 2009 2:13 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Urgent Prob - cant debug after upgrading to new
player

 

It was installed, I ran it, from FB I ran the app in debug mode, it loaded,
I went to the about in the context menu, it went to the adobe about web
page which stated I had the 10.0.22.87 version installed.

I am not sure how many more ways I can say that...

... and u still didnt tell me where is this test website and how I am
supposed to verify objectively on it

--- In flexcod...@yahoogro mailto:flexcoders%40yahoogroups.com ups.com,
Tracy Spratt tspr...@... wrote:

 The player version is one issue that just needs to be verified first. Just
 because you installed it does not guarantee that it got installed. You
 always need to verify it objectively.
 
 
 
 Tracy Spratt,
 
 Lariat Services, development services available
 
 _ 
 
 From: flexcod...@yahoogro mailto:flexcoders%40yahoogroups.com ups.com
[mailto:flexcod...@yahoogro mailto:flexcoders%40yahoogroups.com ups.com]
On
 Behalf Of reflexactions
 Sent: Wednesday, March 11, 2009 1:38 AM
 To: flexcod...@yahoogro mailto:flexcoders%40yahoogroups.com ups.com
 Subject: [flexcoders] Re: Urgent Prob - cant debug after upgrading to new
 player
 
 
 
 I installed the debug version, no doubt about that.
 
 --- In flexcod...@yahoogro mailto:flexcoders%40yahoogroups.com ups.com,
 Nathaniel Skiba nate.skiba@ wrote:
 
  Did you upgrade to the debug version or the regular version? If you
  upgraded to the regular version, then you can fix the problem by
  downloading one of the debugger versions from
  http://www.adobe.
 http://www.adobe.
http://www.adobe.com/support/flashplayer/downloads.html.
com/support/flashplayer/downloads.html.
 com/support/flashplayer/downloads.html.
  
  reflexactions wrote:
   I upgraded to the new flash player earlier today and now I cant debug
in
 FB.
  
   I have tried everything including uninstalling the FPlayer using the
 uninstall tool, reboot, install debug player, run from FB (standalone),
IE8
 opens with the app but FB says still waiting for the player to connect.
  
   I used netstat -a and FB is listening on port 7935, but the app wont
 connect, even if I try to manually force it by using the context menu it
 won't connect.
  
   I have tried down grading but that doesnt work
  
   I cant find anything to get back to debugging and its a problem 'cos I
 cant work at all.
  
   Help!
  
  
  
   
  
   --
   Flexcoders Mailing List
   FAQ: http://groups.
 http://groups.
http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
 yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
   Alternative FAQ location: https://share.
 https://share.
https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e6
 acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e6
 2079f6847
 acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847
   Search Archives: http://www.mail-
 http://www.mail-
http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo
archive.com/flexcoders%40yahoogroups.comYahoo
 archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links
  
  
  
  
 






[flexcoders] Number of connexions

2009-03-11 Thread christophe_jacquelin
Hello, 

How did we know the max number of connexions (users) that are possible on my 
flex application ? How to we compute it ?

Thank you,
Christophe, 




Re: [flexcoders] Tree filter nodes to hide leaves

2009-03-11 Thread Romuald Quantin
I found this, so it seems an incorrect functionning...
http://bugs.adobe.com/jira/browse/SDK-17808

I'd like to find a turn-around for that, anyone has a clever idea?

Romu


Howard Fore wrote:

 How about using the XML in an XMLListCollection and using a filter 
 function?

 http://blog.flexexamples.com/2007/08/04/filtering-an-xmllistcollection-using-the-filterfunction-property-and-regular-expressions/
  
 http://blog.flexexamples.com/2007/08/04/filtering-an-xmllistcollection-using-the-filterfunction-property-and-regular-expressions/

 --
 Howard Fore, howard.f...@hofo.com mailto:howard.f...@hofo.com
 The universe tends toward maximum irony. Don't push it. - Jeff Atwood


 On Wed, Mar 11, 2009 at 6:33 AM, Romuald Quantin 
 soundstep.mail...@googlemail.com 
 mailto:soundstep.mail...@googlemail.com wrote:

 Hi,

 There must be simple way to do that. I've got an XML (the dataProvider
 of a tree) that can contains any kind of nodes.

 I'd like to display only a type of node in my tree, let's say
 I've got
 an XML composed of car and plane nodes and I want to show only the
 cars in my tree.

 Also, if my node has a content like:
 car![CDATA[My Car]]/car

 It shows the content of the car node as a leaf in the tree, I'd
 like to
 hide that content as well.

 This XML is binded to others views so I wouldn't like to use another
 dataProvider built from this XML. I would need to hide them without
 remove them from the XML.

 Any hint?

 Thanks

 Romu


 

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


(Yahoo! ID required)

mailto:flexcoders-fullfeatu...@yahoogroups.com
 mailto:flexcoders-fullfeatu...@yahoogroups.com




 



[flexcoders] Re: Using icons on buttons?

2009-03-11 Thread daniel.koestler
Thanks for the advice, I'll give it a try.

-Dan

--- In flexcoders@yahoogroups.com, Alain Thibodeau thibodeau.al...@... wrote:

 If you have the Flash IDE and flex component kit installed, there are 
 templates for skinning. There is one specific for the button. You can skin in 
 flash with full control of the look you want, then export as swc. In flex 
 open your css file in design mode and with the tools at the top you can add a 
 new class. Create a new one based on the Button and in the right tabs you can 
 change the skin with the swc you created from flash...
 
 Alternatly you can create images for each state and do the same as described 
 above in Flex, but instead of selecting your swc you can select the images 
 you created for each state...
 
 Don't forget for to use scale 9 to make your buttons scalable (if needed)
 
 HTH
 
 
 
 
 
 From: daniel.koestler daniel.koest...@...
 To: flexcoders@yahoogroups.com
 Sent: Tuesday, March 10, 2009 5:28:02 PM
 Subject: [flexcoders] Re: Using icons on buttons?
 
 
 Hmm, if you wanted more control over the graphics in a button, what would you 
 suggest using? I thought about subclassing the button or writing my own, but 
 perhaps there's a way to skin it? 
 
 
 
 
 
   __
 Instant Messaging, free SMS, sharing photos and more... Try the new Yahoo! 
 Canada Messenger at http://ca.beta.messenger.yahoo.com/





RE: [flexcoders] Number of connexions

2009-03-11 Thread Tracy Spratt
Hmm, a Flex app runs in an instance of the flash Player in a client pc
browser.  I do not understand your question.

 

Tracy Spratt,

Lariat Services, development services available

  _  

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of christophe_jacquelin
Sent: Wednesday, March 11, 2009 11:53 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Number of connexions

 

Hello, 

How did we know the max number of connexions (users) that are possible on my
flex application ? How to we compute it ?

Thank you,
Christophe, 





RE: [flexcoders] Tree filter nodes to hide leaves

2009-03-11 Thread Tracy Spratt
I do not know of a workaround for this issue.

 

Another approach entirely would be to create a custom data descriptor.   I
haven't, so I can't be any specific help.

 

Tracy Spratt,

Lariat Services, development services available

  _  

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of Romuald Quantin
Sent: Wednesday, March 11, 2009 11:55 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Tree filter nodes to hide leaves

 

I found this, so it seems an incorrect functionning...
http://bugs. http://bugs.adobe.com/jira/browse/SDK-17808
adobe.com/jira/browse/SDK-17808

I'd like to find a turn-around for that, anyone has a clever idea?

Romu

Howard Fore wrote:

 How about using the XML in an XMLListCollection and using a filter 
 function?

 http://blog.
http://blog.flexexamples.com/2007/08/04/filtering-an-xmllistcollection-usin
g-the-filterfunction-property-and-regular-expressions/
flexexamples.com/2007/08/04/filtering-an-xmllistcollection-using-the-filterf
unction-property-and-regular-expressions/ 
 http://blog.
http://blog.flexexamples.com/2007/08/04/filtering-an-xmllistcollection-usin
g-the-filterfunction-property-and-regular-expressions/
flexexamples.com/2007/08/04/filtering-an-xmllistcollection-using-the-filterf
unction-property-and-regular-expressions/

 --
 Howard Fore, howard.fore@ mailto:howard.fore%40hofo.com hofo.com
mailto:howard.fore@ mailto:howard.fore%40hofo.com hofo.com
 The universe tends toward maximum irony. Don't push it. - Jeff Atwood


 On Wed, Mar 11, 2009 at 6:33 AM, Romuald Quantin 
 soundstep.mailing@ mailto:soundstep.mailing%40googlemail.com
googlemail.com 
 mailto:soundstep.mailing@ mailto:soundstep.mailing%40googlemail.com
googlemail.com wrote:

 Hi,

 There must be simple way to do that. I've got an XML (the dataProvider
 of a tree) that can contains any kind of nodes.

 I'd like to display only a type of node in my tree, let's say
 I've got
 an XML composed of car and plane nodes and I want to show only the
 cars in my tree.

 Also, if my node has a content like:
 car![CDATA[My Car]]/car

 It shows the content of the car node as a leaf in the tree, I'd
 like to
 hide that content as well.

 This XML is binded to others views so I wouldn't like to use another
 dataProvider built from this XML. I would need to hide them without
 remove them from the XML.

 Any hint?

 Thanks

 Romu


 

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


 (Yahoo! ID required)

 mailto:flexcoders-fullfeat
mailto:flexcoders-fullfeatured%40yahoogroups.com u...@yahoogroups.com
 mailto:flexcoders-fullfeat
mailto:flexcoders-fullfeatured%40yahoogroups.com u...@yahoogroups.com




 





RE: [flexcoders] Re: Modules Communication

2009-03-11 Thread Tracy Spratt
Ok, it behaves kinda like a binding, but instead of just putting some value
into a property, it calls a specified function.  In that function, you can
do whatever you need.

 

Tracy Spratt,

Lariat Services, development services available

  _  

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of thelordsince1984
Sent: Wednesday, March 11, 2009 4:57 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Modules Communication

 

--- In flexcod...@yahoogro mailto:flexcoders%40yahoogroups.com ups.com,
Tracy Spratt tspr...@... wrote:

 Which part do you not understand? Have you looked at changeWatcher in
the
 docs?
 
 
 
 Tracy Spratt,
 
 Lariat Services, development services available
 
 _ 
 
 From: flexcod...@yahoogro mailto:flexcoders%40yahoogroups.com ups.com
[mailto:flexcod...@yahoogro mailto:flexcoders%40yahoogroups.com ups.com]
On
 Behalf Of thelordsince1984
 Sent: Tuesday, March 10, 2009 11:29 AM
 To: flexcod...@yahoogro mailto:flexcoders%40yahoogroups.com ups.com
 Subject: [flexcoders] Re: Modules Communication
 
 
 
 --- In flexcod...@yahoogro mailto:flexcoders%40yahoogroups.com ups.com,
 Tracy Spratt tspratt@ wrote:
 
  I'm not sure, maybe since modules are independent swf's, but that is way
  more complicated than necessary.
  
  
  
  Look into the singleton data model. In such a case, you would do:
  
  1. in the source module, MyModel.getInstance().id = myTextInput.text;
  2. In the target module, text={ MyModel.getInstance().id }
  3. Or use a changeWatcher if you need to take programmatic action when
  id changes
  
  
  
  Tracy
  
  
  
  _ 
  
  From: flexcod...@yahoogro mailto:flexcoders%40yahoogroups.com ups.com
 [mailto:flexcod...@yahoogro mailto:flexcoders%40yahoogroups.com ups.com]
 On
  Behalf Of thelordsince1984
  Sent: Tuesday, March 03, 2009 12:30 PM
  To: flexcod...@yahoogro mailto:flexcoders%40yahoogroups.com ups.com
  Subject: [flexcoders] Re: Modules Communication
  
  
  
  --- In flexcod...@yahoogro mailto:flexcoders%40yahoogroups.com
ups.com,
  thelordsince1984 loreboa@ wrote:
  
   --- In flexcod...@yahoogro mailto:flexcoders%40yahoogroups.com
 ups.com,
  Simon Bailey simon@ wrote:
   
On the tip for communicating between modules using a framework, 
PureMVC has a utility called Pipes which helps you accomplish this:

http://trac. http://trac.
 http://trac. http://trac.puremvc.org/Utility_AS3_MultiCore_Pipes
puremvc.org/Utility_AS3_MultiCore_Pipes
 puremvc.org/Utility_AS3_MultiCore_Pipes
  puremvc.org/Utility_AS3_MultiCore_Pipes

;S

On 3 Mar 2009, at 10:10, claudiu ursica wrote:


 You should probably have ca comunication manager something like a 
 central event dispatcher (I believe the Mate framework already
  does 
 this but i might be mistaking) and register panels within that 
 scope. so when a panel fires an event the other listening panels 
 check if the event is adressed to them and actually consume catch 
 that event...

 there was some guy doing a prof of concept for this google for
  ALON 
 desing pattern ...

 HTH,
 Claudiu

 From: thelordsince1984 loreboa@
 To: flexcod...@yahoogro mailto:flexcoders%40yahoogroups.com
 ups.com
 Sent: Tuesday, March 3, 2009 10:53:49 AM
 Subject: [flexcoders] Re: Modules Communication

 --- In flexcod...@yahoogro ups.com, Guy Morton guy@ wrote:
 
  Have you read the section Using interfaces for module 
 communication
  in the docs? That's been working for me.
 

 thanks for the reply..

 For Guy Morton...

 i've read it but modules are created at runtime so i would have a
 maneger that controls communication over modules.is it true?

 For Alex Harui

 how can i achieve the commuication between modules..for example a
 module dispatch an event...the event is catch by a manager and
then
 fires to the rigth destination. ..rember that i have an
 application. ..it contains panels and each panel could contain a 
 module...

 thanks again

 Regards Lorenzo





   
   thanks all,
   
   but is there a simple manner to achieve module to module
communication?
   
   suppose this scenario:
   
   i've a module within a panel. it contains a textinput...it fires a
   custom event when the user clicks a button..the event contains an id
   number..an other modules is listen for this event, catchs it at then
   update itself depending on passed id...
   
   thanks again 
   Regards Lorenzo
  
  is it possible to use localconnection among modules or is a bad way to
  achieve module to module communication?
 
 
 hi Tracy,
 
 i've read your last response...
 
 can you explain me the third option:
 
 Use a changeWatcher if you need to take programmatic action when
 id changes.
 
 thanks in advance 
 Regards 
 Lorenzo

i see the changewatcher docs but i can't understand 

[flexcoders] Login in an XML File

2009-03-11 Thread christophe_jacquelin
Hello,

I want to store my website login and password in an xml file.

This xml file will be on the server.

Where to put this xml file to be invisible for the exterior of the website ? 

Thank you,
Christophe, 




Re: [flexcoders] Best practices for full screen video in AIR? What's the best HD performance we can?

2009-03-11 Thread Jon Bradley


On Mar 11, 2009, at 10:56 AM, George wrote:


What I'm doing on video:

Use an standalone Window component to contain a FLVPlayback (CS4
version), run full screen display mode on its stage alone. (Didn't set
'fullScreenSourceRect', as I tried, it cause worse performance
significantly)


Write your own. I'd stay away from FLVPlayback. Roll your own video  
player using NetStream and/or video classes along with scripts to  
control it.


Instead of using fullScreenSourceRect you can just try simple full  
screen mode and set up your controls properly. Flash has a pretty  
efficient full screen model now and also takes into consideration  
vertical blank (VBL) for smoother playback. I'm not so sure hardware  
scaling does that.



Video encode settings:
960x540, Field Oder - none (no interlace), profile - high, level -  
4.1,

frame rate - should be 30 or 29.97 fps, target bitrate - 1.5 mbps, max
bitrate - 2 mbps.


That sounds good.

Ensure no smoothing is on the video. Try to set the profile to  
main. High is more processor intensive. Drop the data rate in half  
as a test - though I'm guessing the results you get will be similar.  
It just might be your processor.



My question is:
- Does each AIR nativeWindow run its own thread, or the whole AIR
application running a single thread?


Certain things within Flash are multithreaded and will take advantage  
of multiple cores (bitmap filters, some vector ops, H.264 decoding  
and hardware scaling).


Flash itself runs in one thread (i think?). The only other thing with  
AIR that's unique is WebKit ... don't know much about that.



- What's the best practices for full screen high quality video in AIR?
Anything I can improve?


On an intel core 2 duo chip you should be able to do full screen 720p  
(1280x720) video at the least - and barely 1080p. Should being the  
operative word. Best practices here is all in the encoding and bit rate.


Check out the Adobe HD Gallery and see if you can run those videos on  
your test case. If you can't, you need a faster machine.


You can try FFMPEG to encode the H.264 video (x264 or mencoder). It  
does a great job and you get some nice additional encoding features  
that might give you a one-up on performance. That said, I think the  
latest Flash Media Encoder is pretty well tuned.



- How to GC after video played? I used videoplayer.clear(), but cannot
run videoplayer.close(), as I test when try to load a new video  
quickly,

it throw an error.


Not sure there's enough information to help here. What error are you  
getting? GC is automatic and you don't have much control with  
FLVPlayback.



- What's the best HD video performance we can get in multiple windows
Flex/AIR application?


One stream of H.264 encoded 1080p video for best performance on a  
dual core processor. More windows with more streams is possible but  
from a performance standpoint, you might need 2x as many cores as you  
have streams to play. I'm not sure how smart the multithreading is on  
the video decoding in Flash.


Some other thoughts:

1. I'd recommend trying WinXP Pro as a test case

2. Do not use any transparent border skin for the AIR Window. The  
custom border skin will kill the performance of your application  
anywhere from 10-20%


cheers,

Jon





[flexcoders] Re: Exporting code to Microsoft Word

2009-03-11 Thread oneworld95
Cool. Thanks, Tom :)
Didn't know that tool existed.

- Alex C

--- In flexcoders@yahoogroups.com, Tom Chiverton tom.chiver...@... wrote:

 On Wednesday 11 Mar 2009, oneworld95 wrote:
  Is there an easy way to copy and paste the Flex code into Microsoft Word
 
 http://xzfv.appspot.com/s/format.html ?
 -- 
 Tom Chiverton
 Helping to challengingly expedite portals
 as part of the IT team of the year, '09 and '08
 
 
 
 This email is sent for and on behalf of Halliwells LLP.
 
 Halliwells LLP is a limited liability partnership registered in England and 
 Wales under registered number OC307980 whose registered office address is at 
 Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB.  A list 
 of members is available for inspection at the registered office together with 
 a list of those non members who are referred to as partners.  We use the word 
 ?partner? to refer to a member of the LLP, or an employee or consultant with 
 equivalent standing and qualifications. Regulated by the Solicitors 
 Regulation Authority.
 
 CONFIDENTIALITY
 
 This email is intended only for the use of the addressee named above and may 
 be confidential or legally privileged.  If you are not the addressee you must 
 not read it and must not use any information contained in nor copy it nor 
 inform any person other than Halliwells LLP or the addressee of its existence 
 or contents.  If you have received this email in error please delete it and 
 notify Halliwells LLP IT Department on 0870 365 2500.
 
 For more information about Halliwells LLP visit www.halliwells.com.





Re: [flexcoders] Number of connexions

2009-03-11 Thread Paul Andrews
- Original Message - 
From: christophe_jacquelin christophe_jacque...@yahoo.fr
To: flexcoders@yahoogroups.com
Sent: Wednesday, March 11, 2009 3:52 PM
Subject: [flexcoders] Number of connexions


 Hello,

 How did we know the max number of connexions (users) that are possible on 
 my flex application ? How to we compute it ?

A flex application runs on the users computer. It does not normally have 
multiple connections. The server side technology is what determines the 
maximum number of user supported and that's not particular to flex.

I have a big feeling you are trying to run before you can walk.

 Thank you,
 Christophe,



[flexcoders] Find the middel of the screen

2009-03-11 Thread timgerr
I have to use layout=absolute in my flex app, is there a way to find the x 
and y values of the middle of the screen?

Thanks, 
timgerr



[flexcoders] Re: Number of connexions

2009-03-11 Thread christophe_jacquelin
So, an unlimited number of users can use my flex application worldwide in the 
same time ?

Thank you,
Christophe, 

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

 Hmm, a Flex app runs in an instance of the flash Player in a client pc
 browser.  I do not understand your question.
 
  
 
 Tracy Spratt,
 
 Lariat Services, development services available
 
   _  
 
 From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
 Behalf Of christophe_jacquelin
 Sent: Wednesday, March 11, 2009 11:53 AM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Number of connexions
 
  
 
 Hello, 
 
 How did we know the max number of connexions (users) that are possible on my
 flex application ? How to we compute it ?
 
 Thank you,
 Christophe,





RE: [flexcoders] Login in an XML File

2009-03-11 Thread Tracy Spratt
You will need some server-side functionality for this, like php, .net, java,
Cold Fusion, etc.  Those technologies can write to the server's files
system, so you could put the data files anywhere outside the web site.

 

Tracy Spratt,

Lariat Services, development services available

  _  

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of christophe_jacquelin
Sent: Wednesday, March 11, 2009 12:07 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Login in an XML File

 

Hello,

I want to store my website login and password in an xml file.

This xml file will be on the server.

Where to put this xml file to be invisible for the exterior of the website ?


Thank you,
Christophe, 





Re: [flexcoders] Number of connexions

2009-03-11 Thread Jake Churchill
It'd be based on the number of simultaneous connections allowed by the 
web server.  The SWF is downloaded to the client's computer.  Same with 
remoting calls.  Connections generally don't last very long but it 
should be limited by the web server's connection settings.


Jake Churchill
CF Webtools
11204 Davenport, Ste. 100
Omaha, NE  68154
http://www.cfwebtools.com
402-408-3733 x103



christophe_jacquelin wrote:


Hello,

How did we know the max number of connexions (users) that are possible 
on my flex application ? How to we compute it ?


Thank you,
Christophe,




Re: [flexcoders] Re: Number of connexions

2009-03-11 Thread Paul Andrews
- Original Message - 
From: christophe_jacquelin christophe_jacque...@yahoo.fr
To: flexcoders@yahoogroups.com
Sent: Wednesday, March 11, 2009 4:14 PM
Subject: [flexcoders] Re: Number of connexions


 So, an unlimited number of users can use my flex application worldwide in 
 the same time ?

No, a limited number of users can access the server that serves your flex 
application at any time. It has no relationship with flex as a client side 
technology.

Instead of the series of little questions, give us the big picture of what 
you are planning.

 Thank you,
 Christophe,

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

 Hmm, a Flex app runs in an instance of the flash Player in a client pc
 browser.  I do not understand your question.



 Tracy Spratt,

 Lariat Services, development services available

   _

 From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
 Behalf Of christophe_jacquelin
 Sent: Wednesday, March 11, 2009 11:53 AM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Number of connexions



 Hello,

 How did we know the max number of connexions (users) that are possible on 
 my
 flex application ? How to we compute it ?

 Thank you,
 Christophe,





 

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






[flexcoders] Re: Text Looks Ugly When PrintAsBitmap=true

2009-03-11 Thread pliechty
Blendmode helped but it is still not smooth.  I am surprised this works like 
this.  This is the default setting.  I am sure many other people are doing 
this.  Embedding the fonts is not an option.  Thanks

--- In flexcoders@yahoogroups.com, Amy amyblankens...@... wrote:

 --- In flexcoders@yahoogroups.com, pliechty pliechty@ wrote:
 
  We print images in our application. I can print fine with 
  printAsBitmap=false, but I want to set the smooth flag on the image. I have 
  to set printAsBitmap=true to get the smooth flag to take effect, but my 
  text looks horrible. Is there a way to have smooth images and nice looking 
  text?
 
 
 What happens if you set the blendMode to layer on the text that you are 
 printing?





RE: [flexcoders] Re: Number of connexions

2009-03-11 Thread Tracy Spratt
From the viewpoint of the Flex application, yes.

 

Tracy Spratt,

Lariat Services, development services available

  _  

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of christophe_jacquelin
Sent: Wednesday, March 11, 2009 12:15 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Number of connexions

 

So, an unlimited number of users can use my flex application worldwide in
the same time ?

Thank you,
Christophe, 

--- In flexcod...@yahoogro mailto:flexcoders%40yahoogroups.com ups.com,
Tracy Spratt tspr...@... wrote:

 Hmm, a Flex app runs in an instance of the flash Player in a client pc
 browser. I do not understand your question.
 
 
 
 Tracy Spratt,
 
 Lariat Services, development services available
 
 _ 
 
 From: flexcod...@yahoogro mailto:flexcoders%40yahoogroups.com ups.com
[mailto:flexcod...@yahoogro mailto:flexcoders%40yahoogroups.com ups.com]
On
 Behalf Of christophe_jacquelin
 Sent: Wednesday, March 11, 2009 11:53 AM
 To: flexcod...@yahoogro mailto:flexcoders%40yahoogroups.com ups.com
 Subject: [flexcoders] Number of connexions
 
 
 
 Hello, 
 
 How did we know the max number of connexions (users) that are possible on
my
 flex application ? How to we compute it ?
 
 Thank you,
 Christophe,






Re: [flexcoders] Login in an XML File

2009-03-11 Thread Alan K
I want to store my website login and password in an xml file.
This xml file will be on the server.
Where to put this xml file to be invisible for the exterior of the website ?

In short...

Anything accessed and consumed by the client ( a web browser ) will be
exposed to the client. When a user accesses a XML file, she is downloading
the file and parsing it.

This is whey a server side language, such as PHP, is used. With PHP, a
request is sent to the server and a response is sent back.  While the
request and response can be monitored, the script it self is not exposed.

Alan






[flexcoders] Accordion component and drag?

2009-03-11 Thread Peter Witham
Hi everyone,
   There is probably something really obvious I am missing here, but I want
to be able to drag an item from the accordion component. I have not found a
way to do it though, I know there is not a dragEnabled setting for the
Accordion but I thought there would be for the repeater inside it? I am
using a canvas inside the repeater and cannot find one there either.

   Am I just missing the obvious?

Thanks,
Peter.

-- 
Peter Witham
http://www.evolutiondata.com
Internet and Multimedia developer
Certified Flash Designer.


[flexcoders] Re: truncateToFit or multiline title in TitleWindow

2009-03-11 Thread gwangdesign
Thanks for the advice, Alex.


--- In flexcoders@yahoogroups.com, Alex Harui aha...@... wrote:

 Nope.  You'll have to subclass and decide when to call truncateToFit on 
 titleTextField.
 
 Alex Harui
 Flex SDK Developer
 Adobe Systems Inc.http://www.adobe.com/
 Blog: http://blogs.adobe.com/aharui
 
 From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On 
 Behalf Of gwangdesign
 Sent: Saturday, March 07, 2009 9:52 AM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] truncateToFit or multiline title in TitleWindow
 
 
 Hi,
 
 I know this may not as easy as it sounds but does Flex provide 
 out-of-the-shelf solutions for me to truncate the text in the title bar of 
 my TitleWindow component?
 
 By out-of-the-shelf I mean things like setting properties, CSS, etc, 
 without writing my own custom component?
 
 Thanks.





RE: [flexcoders] Accordion component and drag?

2009-03-11 Thread Tracy Spratt
Drag and drop is not built in to those components, but Dragmanager makes it
pretty easy to add drag and drop to anything.  There are good chapters and
examples in the docs on how to do this.

http://livedocs.adobe.com/flex/3/html/dragdrop_5.html

 

Tracy Spratt,

Lariat Services, development services available

  _  

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of Peter Witham
Sent: Wednesday, March 11, 2009 12:39 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Accordion component and drag?

 

Hi everyone,

 

   There is probably something really obvious I am missing here, but I want
to be able to drag an item from the accordion component. I have not found a
way to do it though, I know there is not a dragEnabled setting for the
Accordion but I thought there would be for the repeater inside it? I am
using a canvas inside the repeater and cannot find one there either.

 

   Am I just missing the obvious?

 

Thanks,

Peter.

-- 
Peter Witham
http://www.evolutio http://www.evolutiondata.com ndata.com
Internet and Multimedia developer
Certified Flash Designer.





Re: [flexcoders] Accordion component and drag?

2009-03-11 Thread Peter Witham
Thanks Tracy,
   I tried searching the docs for accordion drag and drop but never thought
to try dragmanager. I appreciate the response and will rush there now :)

Thanks,
Peter.

On Wed, Mar 11, 2009 at 12:04 PM, Tracy Spratt tspr...@lariatinc.comwrote:

Drag and drop is not built in to those components, but Dragmanager
 makes it pretty easy to add drag and drop to anything.  There are good
 chapters and examples in the docs on how to do this.

 http://livedocs.adobe.com/flex/3/html/dragdrop_5.html



 Tracy Spratt,

 Lariat Services, development services available
   --

 *From:* flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] *On
 Behalf Of *Peter Witham
 *Sent:* Wednesday, March 11, 2009 12:39 PM
 *To:* flexcoders@yahoogroups.com
 *Subject:* [flexcoders] Accordion component and drag?



 Hi everyone,



There is probably something really obvious I am missing here, but I want
 to be able to drag an item from the accordion component. I have not found a
 way to do it though, I know there is not a dragEnabled setting for the
 Accordion but I thought there would be for the repeater inside it? I am
 using a canvas inside the repeater and cannot find one there either.



Am I just missing the obvious?



 Thanks,

 Peter.

 --
 Peter Witham
 http://www.evolutiondata.com
 Internet and Multimedia developer
 Certified Flash Designer.

  




-- 
Peter Witham
http://www.evolutiondata.com
Internet and Multimedia developer
Certified Flash Designer.


RE: [flexcoders] Find the middel of the screen

2009-03-11 Thread Battershall, Jeff
Not sure exactly what you're planning to do with the information once
you get it, but with constraints you can place display objects in the
middle of any container that uses absolute layout - horizontalCenter=
and verticalCenter = .

Jeff

-Original Message-
From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of timgerr
Sent: Wednesday, March 11, 2009 12:14 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Find the middel of the screen


I have to use layout=absolute in my flex app, is there a way to find
the x and y values of the middle of the screen?

Thanks, 
timgerr





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





[flexcoders] Re: Find the middel of the screen

2009-03-11 Thread bartman279
Of the screen? No, at least not any way that I am aware.

You can determine the center of your flex application:

private function findCenter() : void 
{
var centerX:int = Application.application.width/2;
var centerY:int = Application.application.height/2;
Alert.show( String( centerX ) +  x  + String( centerY ) );
}

Hope this helps!

~ Bart

--- In flexcoders@yahoogroups.com, timgerr tgallag...@... wrote:

 I have to use layout=absolute in my flex app, is there a way to find the x 
 and y values of the middle of the screen?
 
 Thanks, 
 timgerr




RE: [flexcoders] Best practices for full screen video in AIR? What's the best HD performance we can?

2009-03-11 Thread Battershall, Jeff
Jon,
 
I'm interested in the data you have below about transparent borders +
AIR.  Are you expressing a general truth - using your own border
graphics will have THAT much of a performance hit on any AIR app?  First
I've heard of this and I've got something in the wild using a
transparent border in a similar fashion to Christope's Sales Builder
app.
 
Jeff

-Original Message-
From: flexcoders@yahoogroups.com
[mailto:flexcod...@yahoogroups.com] On Behalf Of Jon Bradley
Sent: Wednesday, March 11, 2009 12:12 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Best practices for full screen video
in AIR? What's the best HD performance we can?



On Mar 11, 2009, at 10:56 AM, George wrote:


What I'm doing on video:

Use an standalone Window component to contain a
FLVPlayback (CS4 
version), run full screen display mode on its stage
alone. (Didn't set 
'fullScreenSourceRect', as I tried, it cause worse
performance 
significantly)


Write your own. I'd stay away from FLVPlayback. Roll your own
video player using NetStream and/or video classes along with scripts to
control it.

Instead of using fullScreenSourceRect you can just try simple
full screen mode and set up your controls properly. Flash has a pretty
efficient full screen model now and also takes into consideration
vertical blank (VBL) for smoother playback. I'm not so sure hardware
scaling does that.


Video encode settings:
960x540, Field Oder - none (no interlace), profile -
high, level - 4.1, 
frame rate - should be 30 or 29.97 fps, target bitrate -
1.5 mbps, max 
bitrate - 2 mbps.


That sounds good.

Ensure no smoothing is on the video. Try to set the profile to
main. High is more processor intensive. Drop the data rate in half as
a test - though I'm guessing the results you get will be similar. It
just might be your processor.


My question is:
- Does each AIR nativeWindow run its own thread, or the
whole AIR 
application running a single thread?


Certain things within Flash are multithreaded and will take
advantage of multiple cores (bitmap filters, some vector ops, H.264
decoding and hardware scaling).

Flash itself runs in one thread (i think?). The only other thing
with AIR that's unique is WebKit ... don't know much about that.


- What's the best practices for full screen high quality
video in AIR? 
Anything I can improve?


On an intel core 2 duo chip you should be able to do full screen
720p (1280x720) video at the least - and barely 1080p. Should being the
operative word. Best practices here is all in the encoding and bit rate.

Check out the Adobe HD Gallery and see if you can run those
videos on your test case. If you can't, you need a faster machine.

You can try FFMPEG to encode the H.264 video (x264 or mencoder).
It does a great job and you get some nice additional encoding features
that might give you a one-up on performance. That said, I think the
latest Flash Media Encoder is pretty well tuned.


- How to GC after video played? I used
videoplayer.clear(), but cannot 
run videoplayer.close(), as I test when try to load a
new video quickly, 
it throw an error.


Not sure there's enough information to help here. What error are
you getting? GC is automatic and you don't have much control with
FLVPlayback.


- What's the best HD video performance we can get in
multiple windows 
Flex/AIR application?


One stream of H.264 encoded 1080p video for best performance on
a dual core processor. More windows with more streams is possible but
from a performance standpoint, you might need 2x as many cores as you
have streams to play. I'm not sure how smart the multithreading is on
the video decoding in Flash. 

Some other thoughts:

1. I'd recommend trying WinXP Pro as a test case

2. Do not use any transparent border skin for the AIR Window.
The custom border skin will kill the performance of your application
anywhere from 10-20%

cheers,

Jon









[flexcoders] offline flex3 app - security error

2009-03-11 Thread banshee...@ymail.com
Hi,

is it still possible to run a flex app from lets say, a cd ?
Or do you really have to use air ?

We have an app that was developed last year. It calls an xml to get the data it 
needs. This version still works.

This month i had to change somethings in the app.

My flex builder is updated to the 3.3 SDK. ( I also tried with the 3 SDK and 
2.0.1 hotfix, the last hasn't got the necessary content).

When i try to run the app from outside the localhost, there is always a message 
:  the following local application on your computer ... is trying to 
communicate with this internet-enabled location ...

Clicking the settings button doesn't do anything, so i can't add the folder to 
the trusted places. This wouldn't be a solution if it worked, because all the 
cd users would have to add the folder also.

Both the swf and the html are in the same folder.

Choosing ok continues the app, and everything is working, the xml is loaded. 
So why the warning ?

I have been looking into the Compiler options :
- -use-network=false has been in there all the time, and so it should
- deselecting the require flash player version doesn't do the trick
- not enabling integration with browser navigation neither

I read that the security changed with player 9.0 r124 - the older of the app 
version worked with 9.0 r115 - so i tried to run the app with older flash 
players.
9.0 r115 and 9.0 r47 didn't work.

If i put the new swf in a folder with the old working html file and change the 
references for history and .js files it doesn't work either. Still the error 
message.

So i guess the problem must be in the swf itself.

I cannot find anything on this, except the advice to add the app to the trusted 
places.

Anybody can help me ? Would be greatly appreciated !

b



[flexcoders] flash cs3 skinning

2009-03-11 Thread quinrou
Hi,

I have skinned a button using the flex skinning template in flash cs3. The 
skinned is composed of bitmaps and vertors. The skin has some rounded corners 
so I used a scale9grid to make sure they wouldn't be distorted when used.
However when the skin is used in flex the scale9grid doesn't seem to work on 
the bipmap, they are distorted. the vector graphics seem to behave as expected.

Does anyone know what I need to do to get this working properly?

thanks
S



Re: [flexcoders] Flex 3 Tree - Moving Nodes

2009-03-11 Thread Alan Rother
Ok.. I'm going to confess.. Being a total newbie...
I'm not sure if I am implementing this AS file correctly.

I added the file to a folder under my project root and then imported it as
such

import TreeEx.TreeEx;

Now, since it's imported and overriding several protected methods, it should
just apply that to my already included mx:tree component, correct?  Do I
need to do anything to the tree? include or not include certain attributes.

Here is my Tree

mx:Tree
id=myTree x=13 y=36 height=546 width=615 borderStyle=inset
dragEnabled=true dropEnabled=true
dragDrop=handleDragDrop(event);
dragMoveEnabled=true
click=showMenu(event);
labelField=@Title iconFunction=loadIconClass
showRoot=true
dataProvider={treeData.page}/


Thank you for your help on this guys. I'm really trying to learn it, but I
only get to work on it occasionally at work...


=]

-- 
Alan Rother
Adobe Certified Advanced ColdFusion MX 7 Developer
Manager, Phoenix Cold Fusion User Group, AZCFUG.org


[flexcoders] HTTPService POST method weirdness

2009-03-11 Thread Alan Shaw
I make a request to a service using URLLoader and everything works fine.
I try the same thing with HTTPService and I get back an error telling
me that only POST method is allowed.
(My server-side friend tells me that Apache saw it as a GET.)
In both cases I am setting the method to POST and sending the exact
same data in the request.
The service url is an https url.  Can that have anything to do with this?

-A


Re: [flexcoders] Best practices for full screen video in AIR? What's the best HD performance we can?

2009-03-11 Thread George
Thanks a lot Jon,

Jon Bradley wrote:
 
 On Mar 11, 2009, at 10:56 AM, George wrote:
 
 What I'm doing on video:

 Use an standalone Window component to contain a FLVPlayback (CS4 
 version), run full screen display mode on its stage alone. (Didn't set 
 'fullScreenSourceRect', as I tried, it cause worse performance 
 significantly)
 
 Write your own. I'd stay away from FLVPlayback. Roll your own video 
 player using NetStream and/or video classes along with scripts to 
 control it.

The reason I use FLVPlayback because I tried before writing my own video 
player, and didn't find any performance improvements (at that time I 
didn't use full screen mode though, video was resized to full screen 
size instead, to be controlled by a slide show engine I wrote, now I 
separated video from other contents). I will test whether it can improve 
in full screen mode if I have time on this project.

 
 Instead of using fullScreenSourceRect you can just try simple full 
 screen mode and set up your controls properly. Flash has a pretty 
 efficient full screen model now and also takes into consideration 
 vertical blank (VBL) for smoother playback. I'm not so sure hardware 
 scaling does that.
 
 Video encode settings:
 960x540, Field Oder - none (no interlace), profile - high, level - 4.1, 
 frame rate - should be 30 or 29.97 fps, target bitrate - 1.5 mbps, max 
 bitrate - 2 mbps.
 
 That sounds good.
 
 Ensure no smoothing is on the video. Try to set the profile to main. 
 High is more processor intensive. Drop the data rate in half as a test - 
 though I'm guessing the results you get will be similar. It just might 
 be your processor.

Yes I tried half rate a few days before, the results was similar.

 
 My question is:
 - Does each AIR nativeWindow run its own thread, or the whole AIR 
 application running a single thread?
 
 Certain things within Flash are multithreaded and will take advantage of 
 multiple cores (bitmap filters, some vector ops, H.264 decoding and 
 hardware scaling).
 
 Flash itself runs in one thread (i think?). The only other thing with 
 AIR that's unique is WebKit ... don't know much about that.
 
 - What's the best practices for full screen high quality video in AIR? 
 Anything I can improve?
 
 On an intel core 2 duo chip you should be able to do full screen 720p 
 (1280x720) video at the least - and barely 1080p. Should being the 
 operative word. Best practices here is all in the encoding and bit rate.
 
 Check out the Adobe HD Gallery and see if you can run those videos on 
 your test case. If you can't, you need a faster machine.

I tested both 480p and 720p, the video performance from Adobe HD gallery 
even worse. I think it because most of our pc/Macs using Intel shared 
graphics chips? But the owner of project wish to get high quality video 
playback in full screen even with Intel chips.

Seems it has to have dedicated graphics card to play, as I test with 
iMac, the video running more smoothly.

 
 You can try FFMPEG to encode the H.264 video (x264 or mencoder). It does 
 a great job and you get some nice additional encoding features that 
 might give you a one-up on performance. That said, I think the latest 
 Flash Media Encoder is pretty well tuned.
 
 - How to GC after video played? I used videoplayer.clear(), but cannot 
 run videoplayer.close(), as I test when try to load a new video quickly, 
 it throw an error.
 
 Not sure there's enough information to help here. What error are you 
 getting? GC is automatic and you don't have much control with FLVPlayback.

The application change dynamically videos playback and other contents 
anytime. I tested on Vista, regular video play use 100M more memory than 
clean them when possible ( use both vp.clean() and vp.close() and then 
System.gc()).

The error say 'failed to reconnect.' or so, happened in a special 
situation, as the application working in dual screen mode, it can 
sometime go back to single screen mode, so the same video (another video 
instance but same video source) will be played inside main window (for 
example, the second screen was disconnected by accident). This error 
happen when I switch from dual-screen to one-screen and return back 
again to dual-screen (will reconnect to the same source).

 
 - What's the best HD video performance we can get in multiple windows 
 Flex/AIR application?
 
 One stream of H.264 encoded 1080p video for best performance on a dual 
 core processor. More windows with more streams is possible but from a 
 performance standpoint, you might need 2x as many cores as you have 
 streams to play. I'm not sure how smart the multithreading is on the 
 video decoding in Flash.
 
 Some other thoughts:
 
 1. I'd recommend trying WinXP Pro as a test case
 
 2. Do not use any transparent border skin for the AIR Window. The custom 
 border skin will kill the performance of your application anywhere from 
 10-20%
 
 cheers,
 
 Jon
 
 


RE: [flexcoders] Flex 3 Tree - Moving Nodes

2009-03-11 Thread Tracy Spratt
You need to declare the extended component:

TreeEx id=myTree .

 

You may have component namespace issues.  If the component is in the same
folder as the app source, you can use the local xmlns=* If it is in a
different folder, you need to specify that in the xmlns declaration,
xmlns:mycomps=components.*, then do: mycomps:TreeEx id=myTree .

 

 

Tracy Spratt,

Lariat Services, development services available

  _  

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of Alan Rother
Sent: Wednesday, March 11, 2009 2:10 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Flex 3 Tree - Moving Nodes

 

Ok.. I'm going to confess.. Being a total newbie...

 

I'm not sure if I am implementing this AS file correctly. 

 

I added the file to a folder under my project root and then imported it as
such

 

import TreeEx.TreeEx;

 

Now, since it's imported and overriding several protected methods, it should
just apply that to my already included mx:tree component, correct?  Do I
need to do anything to the tree? include or not include certain attributes.

 

Here is my Tree

 

mx:Tree 

id=myTree x=13 y=36 height=546 width=615
borderStyle=inset

dragEnabled=true dropEnabled=true
dragDrop=handleDragDrop(event);

dragMoveEnabled=true

click=showMenu(event);

labelField=@Title iconFunction=loadIconClass

showRoot=true 

dataProvider={treeData.page}/

 

 

Thank you for your help on this guys. I'm really trying to learn it, but I
only get to work on it occasionally at work...

 

 

=]


-- 
Alan Rother
Adobe Certified Advanced ColdFusion MX 7 Developer
Manager, Phoenix Cold Fusion User Group, AZCFUG.org





Re: [flexcoders] Flex 3 Tree - Moving Nodes

2009-03-11 Thread Alan Rother
BINGO!
Thank you everyone!

=]


-- 
Alan Rother
Adobe Certified Advanced ColdFusion MX 7 Developer
Manager, Phoenix Cold Fusion User Group, AZCFUG.org


[flexcoders] How can I format the text in my custom labelFunction?

2009-03-11 Thread sailorsea21
Hi everyone, 

how can I format the text in my custom labelFunction (bold, center, color...)

CategoryAxis: labelFunction=test_labelFunc.

private function 
test_labelFunc(item:String,previousItem:Object,axis:CategoryAxis,labelItem:XML):String
{
var labelArray:Array = item.split('?');
return labelArray[0] + '\n' + labelArray[1] + '\n' + labelArray[2];
}

I would like my return text to be centered and my labelArray[0] to be bold.

Are there any tutorials?

Thanks.



[flexcoders] Automation updates with 3.3 SDK?

2009-03-11 Thread Beau Scott
Just curious if the automation libraries were updated as well? and if so,
where to obtain them.

-- 
Beau D. Scott
Software Engineer


RE: [flexcoders] offline flex3 app - security error

2009-03-11 Thread Alex Harui
Read the whitepapers on Security on the Adobe web-site.

Alex Harui
Flex SDK Developer
Adobe Systems Inc.http://www.adobe.com/
Blog: http://blogs.adobe.com/aharui

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of banshee...@ymail.com
Sent: Wednesday, March 11, 2009 10:31 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] offline flex3 app - security error


Hi,

is it still possible to run a flex app from lets say, a cd ?
Or do you really have to use air ?

We have an app that was developed last year. It calls an xml to get the data it 
needs. This version still works.

This month i had to change somethings in the app.

My flex builder is updated to the 3.3 SDK. ( I also tried with the 3 SDK and 
2.0.1 hotfix, the last hasn't got the necessary content).

When i try to run the app from outside the localhost, there is always a message 
:  the following local application on your computer ... is trying to 
communicate with this internet-enabled location ...

Clicking the settings button doesn't do anything, so i can't add the folder to 
the trusted places. This wouldn't be a solution if it worked, because all the 
cd users would have to add the folder also.

Both the swf and the html are in the same folder.

Choosing ok continues the app, and everything is working, the xml is loaded. 
So why the warning ?

I have been looking into the Compiler options :
- -use-network=false has been in there all the time, and so it should
- deselecting the require flash player version doesn't do the trick
- not enabling integration with browser navigation neither

I read that the security changed with player 9.0 r124 - the older of the app 
version worked with 9.0 r115 - so i tried to run the app with older flash 
players.
9.0 r115 and 9.0 r47 didn't work.

If i put the new swf in a folder with the old working html file and change the 
references for history and .js files it doesn't work either. Still the error 
message.

So i guess the problem must be in the swf itself.

I cannot find anything on this, except the advice to add the app to the trusted 
places.

Anybody can help me ? Would be greatly appreciated !

b



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

2009-03-11 Thread Alex Harui
Setting tabEnabled on anything you don't want to have focus is one answer.  So 
is non-modal popups.

Alex Harui
Flex SDK Developer
Adobe Systems Inc.http://www.adobe.com/
Blog: http://blogs.adobe.com/aharui

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of aceoohay
Sent: Wednesday, March 11, 2009 8:00 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: FocusManager fun... Tab Loops redux


Alex:

Let me restate my primary question;

...has anyone else tried to create a flex component with a separate tab loop, 
if so how did you make it work?

Since the documentation seems to indicate that FocusManager will allow multiple 
tab loops that was the approach I was investigating.

My primary goal, irrespective of how I do it is to create what I call a tab 
domain. Whatever it is called, what I need is the ability to define a captive 
group of objects from which focus will never leave by pressing the tab key.

Paul



[flexcoders] Re: LCDS Upgrade Problems

2009-03-11 Thread foobone9
I have also noticed an issue when removing metadata sections from destinations 
in data-management-config.xml. The DataDestination, now getting its 
relationship information from the Hibernate mapping files, seems to only want 
to find the related destination from its full class name. Using an independent 
destination id and setting item-class is not good enough for the relationship 
to be worked out.



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

2009-03-11 Thread aceoohay
Alex:

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

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

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

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

Paul

--- In flexcoders@yahoogroups.com, Alex Harui aha...@... wrote:

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





[flexcoders] Control remote desktop with Flash

2009-03-11 Thread Carlos Rovira
Hi all!

I need a way to control remote desktops within a Flex Application. I have a
client with an ActiveX solution and we want to change their collaborative
applications to Flash RIA (chats, video chats, etc...). The only show
stopper is this special functionality that I saw in Adobe Connect through a
special plugin developed by Adobe but from what I know, there's no way to
get it outside Adobe Connect (and we need a solution we can integrate in our
software)

Someone could point me to an Open Source solution? if not...commercial
maybe?

Thanks in advance

Carlos Rovira


Re: [flexcoders] Automation updates with 3.3 SDK?

2009-03-11 Thread Matt Chotin
They should be included in the datavisualization download that's on the Flex 
download page.  http://www.adobe.com/products/flex/flexdownloads/

Matt


On 3/11/09 1:10 PM, Beau Scott beau.sc...@gmail.com wrote:




Just curious if the automation libraries were updated as well? and if so, where 
to obtain them.


Re: [flexcoders] Automation updates with 3.3 SDK?

2009-03-11 Thread Matt Chotin
And if not, then just copy them from 3.2, nothing should have changed.


On 3/11/09 2:30 PM, Matt Chotin mcho...@adobe.com wrote:

They should be included in the datavisualization download that's on the Flex 
download page.  http://www.adobe.com/products/flex/flexdownloads/

Matt


On 3/11/09 1:10 PM, Beau Scott beau.sc...@gmail.com wrote:




Just curious if the automation libraries were updated as well? and if so, where 
to obtain them.


[flexcoders] Maintaining sessions while interacting with Flex using alt back-end services

2009-03-11 Thread wubac1
I'm hoping someone can shed some light on a design issue I'm facing.  If I have 
a sign in form external to Flex, but it controls access to the Flex 
application, what are the best practices for maintaining the session when the 
user is interacting with the Flex application?  I can provide the Flex 
application the session ID, but what do I do with it to ensure that the session 
does not expire while a user is working in the application?  I'm using web 
services, so I wonder if I should be checking the session at the point.  For 
example, if I have a PHP-based website hosting an adobe Flex application, with 
a PHP sign in form, what should I be doing with regard to Flex, if the 
application uses web services outside of PHP (such as gSOAP, Axis2/C, or one of 
the various Java options)?

I can see how this would work if the Flex application used PHP as the back-end, 
since all communication would go though a single source that manages the 
session.  However, what I don't understand and have found little with regard to 
answers on the subject, is how to integrate a Flex application that utilizes an 
alternate back-end from the hosting website.  I'm my case, the alternate 
back-end is in the same domain, so I suspect there should be a way to share the 
session information between PHP and other services such as web services in 
gSOAP.  Has anyone faced this design issue?  Thoughts on an appropriate 
solution?  Is this approach worth the trouble or should I be calling PHP that 
then routes requests to the web services (or implements the service)?

A visualization:

PHP login -- PHP back-end -- database
   |
   |
   Flex  -- (PHP returns page with Flex Application)
-- web service (non-PHP; but same domain) -- database




Re: [flexcoders] flash cs3 skinning

2009-03-11 Thread Alain Thibodeau
You mean you did the scale 9 in Flash with the guides or in the flex css? I 
haven't had to set it in both before, but sounds like it isn't set properly. 
I'd play around with the guides in flash and in the css...


I've never had issues with it in flash or in css with bitmaps.

http://www.adobe.com/devnet/flex/articles/flex_skins_08.html

hth






From: quinrou quin...@yahoo.co.uk
To: flexcoders@yahoogroups.com
Sent: Wednesday, March 11, 2009 1:23:14 PM
Subject: [flexcoders] flash cs3 skinning


Hi,

I have skinned a button using the flex skinning template in flash cs3. The 
skinned is composed of bitmaps and vertors. The skin has some rounded corners 
so I used a scale9grid to make sure they wouldn't be distorted when used.
However when the skin is used in flex the scale9grid doesn't seem to work on 
the bipmap, they are distorted. the vector graphics seem to behave as expected.

Does anyone know what I need to do to get this working properly?

thanks
S





  __
Yahoo! Canada Toolbar: Search from anywhere on the web, and bookmark your 
favourite sites. Download it now at
http://ca.toolbar.yahoo.com.

Re: [flexcoders] Maintaining sessions while interacting with Flex using alt back-end services

2009-03-11 Thread Fotis Chatzinikos
if your session expires every lets say 30 minutes, make the client hit a
simple page that does nothing every lets say 25 minutes-
make sure that this is not cached by appending a timestamp in the url

On Wed, Mar 11, 2009 at 11:23 PM, wubac1 wub...@gmail.com wrote:

   I'm hoping someone can shed some light on a design issue I'm facing. If
 I have a sign in form external to Flex, but it controls access to the Flex
 application, what are the best practices for maintaining the session when
 the user is interacting with the Flex application? I can provide the Flex
 application the session ID, but what do I do with it to ensure that the
 session does not expire while a user is working in the application? I'm
 using web services, so I wonder if I should be checking the session at the
 point. For example, if I have a PHP-based website hosting an adobe Flex
 application, with a PHP sign in form, what should I be doing with regard to
 Flex, if the application uses web services outside of PHP (such as gSOAP,
 Axis2/C, or one of the various Java options)?

 I can see how this would work if the Flex application used PHP as the
 back-end, since all communication would go though a single source that
 manages the session. However, what I don't understand and have found little
 with regard to answers on the subject, is how to integrate a Flex
 application that utilizes an alternate back-end from the hosting website.
 I'm my case, the alternate back-end is in the same domain, so I suspect
 there should be a way to share the session information between PHP and other
 services such as web services in gSOAP. Has anyone faced this design issue?
 Thoughts on an appropriate solution? Is this approach worth the trouble or
 should I be calling PHP that then routes requests to the web services (or
 implements the service)?

 A visualization:

 PHP login -- PHP back-end -- database
 |
 |
 Flex -- (PHP returns page with Flex Application)
 -- web service (non-PHP; but same domain) -- database

  




-- 
Fotis Chatzinikos, Ph.D.
Founder,
Phinnovation
fotis.chatzini...@gmail.com,


Re: [flexcoders] Building Custom ActionScript Components with Skins

2009-03-11 Thread Josh McDonald
Is the size of the component a big question? If not, I'd go with Flex
because then you can use Degrafa. The team is working on removing
inter-dependencies and also removing the dependency upon Flex (via
UIComponent), but that's not ready yet, so it does add some weight to your
.swf files.

-Josh

2009/3/11 adamduro a...@duromedia.com

   So I am trying to build out a custom SimpleMp3player component. Here is
 a screen shot of what the current design for this looks like:

 http://storage.duromedia.com/mp3_player_ui.jpg

 I want to create a custom component that will contain all the functionality
 that the above UI illustrates, but I want to make the component as easily
 skinable for the future as possible. Preferably skinable by a designer, and
 not a developer.

 I have considered a few routes.

 1) The one I am most comfortable with is building a custom component with
 the Flash IDE, and custom AS3 classes, then export out using the Flex
 Component Kit. As far as I can see, the draw back to that is the skin has to
 be customized using the Flash IDE from then on out.

 2) The other route I considered was building the whole thing in Flex, and
 using a style attribute to feed in a SWF based skin file. This is something
 I'm starting to get more familiar with, but I'm still a long ways off from
 mastering the art of pure Flex custom components.

 First off, if anyone has any opinions on which of the above two routes
 would be best, please speak up. If there are other routes to take, do tell.

 Second, If anyone has any good resources (besides the Flex 3 LiveDocs) on
 building out custom components that utilize Skins as outlined in option 2,
 please pass those along.

 Third, if anyone feels like tackling any of these specific questions, I
 would love some help:

 - When creating a skinnable ActionScript component, do I have to create a
 style property for each UI element? (ie. playButtonUp, playButtonDown,
 seekBarTrack, seekBar, etc.)

 - Can I use the skin file to put together the layout of the component, or
 do I have to do that programatically with ActionScript? I would love if I
 could do a layout in Illustrator that had all the elements of the
 MusicPlayer component positioned where I want them, and then feed in a
 single Symbol (containing the other symbols) so that the UI component
 maintained the layout as it was set in Illustrator.

 Any help with any of the above would be met with great appreciation.

 Best,

 Adam Duro
 DuroMedia: Web Developer
 W: www.duromedia.com

  




-- 
Therefore, send not to know For whom the bell tolls. It tolls for thee.

Josh 'G-Funk' McDonald
  -  j...@joshmcdonald.info
  -  http://twitter.com/sophistifunk
  -  http://flex.joshmcdonald.info/


Re: [flexcoders] Control remote desktop with Flash

2009-03-11 Thread Sam Lai
http://www.google.com/search?hl=enrls=com.microsoft%3A*q=vnc+flash

2009/3/12 Carlos Rovira carlos.rov...@gmail.com:
 Hi all!

 I need a way to control remote desktops within a Flex Application. I have a
 client with an ActiveX solution and we want to change their collaborative
 applications to Flash RIA (chats, video chats, etc...). The only show
 stopper is this special functionality that I saw in Adobe Connect through a
 special plugin developed by Adobe but from what I know, there's no way to
 get it outside Adobe Connect (and we need a solution we can integrate in our
 software)

 Someone could point me to an Open Source solution? if not...commercial
 maybe?

 Thanks in advance

 Carlos Rovira


 


Re: [flexcoders] Re: Find the middel of the screen

2009-03-11 Thread Sam Lai
You can get the screen resolution from the Capabilities object - see
here 
http://www.thedesilva.com/2008/06/finding-client-machine-capabilities-using-flex-flash/.
From that you can work out the middle of the screen.

However, a word of warning - I have no idea how Flash and/or different
operating systems handle multiple displays. On Windows, all screen
location points (x, y) are relative to the 'primary' screen. So the
location point on any screen left or below of the primary screen will
have negative values for example. There is not enough information
provided for you to be able to handle these situations, which are
becoming increasingly common.

If you're looking just to place your app in the middle of the screen,
I'd argue the effort isn't worth the effect.

2009/3/12 bartman279 bartman...@yahoo.com:
 Of the screen? No, at least not any way that I am aware.

 You can determine the center of your flex application:

        private function findCenter() : void
        {
                var centerX:int = Application.application.width/2;
                var centerY:int = Application.application.height/2;
                Alert.show(     String( centerX ) +  x  + String( centerY ) 
 );
        }

 Hope this helps!

 ~ Bart

 --- In flexcoders@yahoogroups.com, timgerr tgallag...@... wrote:

 I have to use layout=absolute in my flex app, is there a way to find the x 
 and y values of the middle of the screen?

 Thanks,
 timgerr




 

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






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

2009-03-11 Thread Alex Harui
Not within a single FocusManagerContainer, but if you have tiled the screen 
with non-modal popups that can't be dragged around, I don't see how your user 
will know the difference.  You don't have to popup panels to do this.

Alex Harui
Flex SDK Developer
Adobe Systems Inc.http://www.adobe.com/
Blog: http://blogs.adobe.com/aharui

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of aceoohay
Sent: Wednesday, March 11, 2009 1:59 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: FocusManager fun... Tab Loops redux


Alex:

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

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

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

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

Paul

--- In flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com, Alex 
Harui aha...@... wrote:

 Setting tabEnabled on anything you don't want to have focus is one answer. So 
 is non-modal popups.

 Alex Harui
 Flex SDK Developer
 Adobe Systems Inc.http://www.adobe.com/
 Blog: http://blogs.adobe.com/aharui

 From: flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com 
 [mailto:flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com] On 
 Behalf Of aceoohay
 Sent: Wednesday, March 11, 2009 8:00 AM
 To: flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com
 Subject: [flexcoders] Re: FocusManager fun... Tab Loops redux


 Alex:

 Let me restate my primary question;

 ...has anyone else tried to create a flex component with a separate tab 
 loop, if so how did you make it work?

 Since the documentation seems to indicate that FocusManager will allow 
 multiple tab loops that was the approach I was investigating.

 My primary goal, irrespective of how I do it is to create what I call a tab 
 domain. Whatever it is called, what I need is the ability to define a 
 captive group of objects from which focus will never leave by pressing the 
 tab key.

 Paul




[flexcoders] ArrayCollection or XML

2009-03-11 Thread tiend...@ezweb.ne.jp
Hi all guru,

[Database Table]
id
firstname
lastname

At Backend I use PHP and Mysql. PHP script can return Array or XML string.
At Flex app, I use Remote Object

1)PHP script return Array:
and in Flex code I get Array as :

dp = new ArrayCollection( ArrayUtil.toArray(event.result));

If I show dp in Datagrid or List, TileList - it OK . But I want to get value 
of firstname , lastname into textbox . I don't know , can flex do that ? And 
how to get value from ArrayCollection.

2)PHP script return XML string :

I don't know how to parse XML string and show result in textbox. And how to get 
value from XML string.

Please help me or any idea

Thanks






[flexcoders] Re: Text Looks Ugly When PrintAsBitmap=true

2009-03-11 Thread Amy
--- In flexcoders@yahoogroups.com, pliechty pliec...@... wrote:

 Blendmode helped but it is still not smooth.  I am surprised this works like 
 this.  This is the default setting.  I am sure many other people are doing 
 this.  Embedding the fonts is not an option.  Thanks

Try setting cacheAsBitmap to true.  If that doesn't work, try actually taking 
an ImageSnapshot of the text and printing that.



RE: [flexcoders] ArrayCollection or XML

2009-03-11 Thread Tracy Spratt
In all cases, use the appropriate API to navigate to the desired data
object, then access the data via the methods and properties provided by that
object.

 

Tracy Spratt,

Lariat Services, development services available

  _  

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of tiend...@ezweb.ne.jp
Sent: Wednesday, March 11, 2009 9:20 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] ArrayCollection or XML

 

Hi all guru,

[Database Table]
id
firstname
lastname

At Backend I use PHP and Mysql. PHP script can return Array or XML string.
At Flex app, I use Remote Object

1)PHP script return Array:
and in Flex code I get Array as :

dp = new ArrayCollection( ArrayUtil.toArray(event.result));

If I show dp in Datagrid or List, TileList - it OK . But I want to get
value of firstname , lastname into textbox . I don't know , can flex do that
? And how to get value from ArrayCollection.

2)PHP script return XML string :

I don't know how to parse XML string and show result in textbox. And how to
get value from XML string.

Please help me or any idea

Thanks





RE: [flexcoders] How can I format the text in my custom labelFunction?

2009-03-11 Thread Tracy Spratt
You can format it in the labelFunction if you use a renderer that supports
htmlText.

 

Tracy Spratt,

Lariat Services, development services available

  _  

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of sailorsea21
Sent: Wednesday, March 11, 2009 3:54 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] How can I format the text in my custom labelFunction?

 

Hi everyone, 

how can I format the text in my custom labelFunction (bold, center,
color...)

CategoryAxis: labelFunction=test_labelFunc.

private function
test_labelFunc(item:String,previousItem:Object,axis:CategoryAxis,labelItem:X
ML):String
{
var labelArray:Array = item.split('?');
return labelArray[0] + '\n' + labelArray[1] + '\n' + labelArray[2];
}

I would like my return text to be centered and my labelArray[0] to be
bold.

Are there any tutorials?

Thanks.





Re: [flexcoders] Accordion component and drag?

2009-03-11 Thread Peter Witham
Just to report back, the DragManager and information at the link worked out
great Tracy, I can now drag from the accordion.
Thanks again,
Peter.

On Wed, Mar 11, 2009 at 12:11 PM, Peter Witham peter.wit...@gmail.comwrote:

 Thanks Tracy,
I tried searching the docs for accordion drag and drop but never thought
 to try dragmanager. I appreciate the response and will rush there now :)

 Thanks,
 Peter.

 On Wed, Mar 11, 2009 at 12:04 PM, Tracy Spratt tspr...@lariatinc.comwrote:

Drag and drop is not built in to those components, but Dragmanager
 makes it pretty easy to add drag and drop to anything.  There are good
 chapters and examples in the docs on how to do this.

 http://livedocs.adobe.com/flex/3/html/dragdrop_5.html



 Tracy Spratt,

 Lariat Services, development services available
   --

 *From:* flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] *On
 Behalf Of *Peter Witham
 *Sent:* Wednesday, March 11, 2009 12:39 PM
 *To:* flexcoders@yahoogroups.com
 *Subject:* [flexcoders] Accordion component and drag?



 Hi everyone,



There is probably something really obvious I am missing here, but I
 want to be able to drag an item from the accordion component. I have not
 found a way to do it though, I know there is not a dragEnabled setting for
 the Accordion but I thought there would be for the repeater inside it? I am
 using a canvas inside the repeater and cannot find one there either.



Am I just missing the obvious?



 Thanks,

 Peter.

 --
 Peter Witham
 http://www.evolutiondata.com
 Internet and Multimedia developer
 Certified Flash Designer.

  




 --
 Peter Witham
 http://www.evolutiondata.com
 Internet and Multimedia developer
 Certified Flash Designer.




-- 
Peter Witham
http://www.evolutiondata.com
Internet and Multimedia developer
Certified Flash Designer.


[flexcoders] Re: storing login data from a cfquery for use throught flex app

2009-03-11 Thread stinasius
hi how do i assign the properties of UserInfo in the result handler?