Re: [flexcoders] How much does FXG affect performance?

2010-06-22 Thread dorkie dork from dorktown
so if i had an fxg file with 1 paths but those paths didn't change they
wouldn't be redrawn every frame correct?

how should i determine when to rasterize vector FXG art vs leaving it as is?

On Fri, Jun 18, 2010 at 1:49 AM, Alex Harui  wrote:

>
>
> Maybe, yes, none, n/a, no, yes (17), no, depends, bribery, no thank you.
>  Not necessarily in that order.
>
>
>
> On 6/17/10 7:15 PM, "dorkiedorkfromdorkt...@gmail.com" <
> dorkiedorkfromdorkt...@gmail.com> wrote:
>
>
>
>
>
>
> I saw a comment recently that large FXG usage can affect performance.
> For example, FXG in skins. But I also read it affects file size??? If
> it's vector shouldn't it in most cases be smaller in size than a
> rasterized representation of the vector? What about If the vector skin
> art is relatively static how much of it is getting redrawn every
> frame? If it is redrawn every frame what is the use of "Show redrawn
> regions" in the Flash Player context menu?
>
> To quote Ted P, "Internally the player sweeps the DisplayList and
> processes all graphics, then processes all frame bytecode, then
> processed events. If there are things to do in each phase, the phase
> will expand potentially slowing down the frame speed."
> http://tinyurl.com/2erm72a
>
> Has this behavior changed in Flash Player 10.1? BTW Is there a limit
> to the number of questions I can ask in a single post? Have I past
> that limit? If so will any of my questions get answered or is the
> whole post disqualified? If so how do I get it re-qualified? Separate
> posts for each question?
>
> JP
>
>
>
>
>
> --
> Alex Harui
> Flex SDK Team
> Adobe System, Inc.
> http://blogs.adobe.com/aharui
>  
>


Re: [flexcoders] Re: Height and Focus | Itemeditor

2010-06-22 Thread Alex Harui
Probably indexToItemRenderer for that index to get a renderer’s height and 
compare to the itemEditorInstance’s height.


On 6/22/10 10:32 AM, "ilikeflex"  wrote:






How to find if the first row's itemeditor overlaps another row editors.

--- In flexcoders@yahoogroups.com  , Alex 
Harui  wrote:
>
> You can't click because the first row's editor overlaps the second row, or 
> for some other reason?
>
>
> On 6/22/10 8:46 AM, "ilikeflex"  wrote:
>
>
>
>
>
>
> In have implemented itemEditEnd event which is causing the problem. I am 
> calling the event.preventDefault(); inside the itemEditEnd. If i remove this 
> then i am able to click on another itemeditor which clicking on the blank 
> row. I need to call event.preventDefault(); because i am using nested 
> properties as datafield.
>
> so how to make this work...Any pointers..
>
> --- In flexcoders@yahoogroups.com   
>  , "ilikeflex"  wrote:
> >
> > Hi
> >
> > I am able to solve first one. Second is remaining.
> >
> > --- In flexcoders@yahoogroups.com   
> >  , "ilikeflex"  wrote:
> > >
> > > Hi
> > >
> > >
> > > The challenge i am facing is that the
> > >
> > > 1.rows height are very small and i do not know to increase it.
> > >
> > > 2.I am using the itemeditor. If i click the item editor of the first row 
> > > then i am not able to click on itemeditor of the second row. If i need to 
> > > click on the second row then i need to click on any empty row first then 
> > > i am able to click on another row.
> > >
> > > In the itmeditor i am using the text input control. I know if i just need 
> > > to have textinput control as itemeditor i do not need to make custom 
> > > itemeditor. But this is just test case of my complex code.
> > >
> > > I am stuck on these for couple of days. Any pointers are highly 
> > > appreciated.
> > >
> > > Please see the code for itemeditor.
> > >
> > >
> > > public class SpyGlassFieldEditor extends UIComponent implements 
> > > IListItemRenderer, IDropInListItemRenderer
> > > {
> > > public function SpyGlassFieldEditor(){super();}
> > > private var txtInputByUser:TextInput;
> > > private var _data:Object;
> > > public function get data():Object {return _data;}
> > > public function set data(value:Object):void 
> > > {_data=value;invalidateProperties();}
> > > private var _listData:BaseListData;
> > > private var _dataGrid:CheckBoxDataGrid;
> > > private var _dataField:String;
> > > public function get listData():BaseListData {return _listData; }
> > > public function set listData(value:BaseListData):void
> > > {
> > > _listData=value;
> > > _dataGrid=value.owner as CheckBoxDataGrid;
> > > _dataField=(value as DataGridListData).dataField;
> > > }
> > >
> > > override protected function createChildren():void
> > > {
> > > txtInputByUser=new TextInput();
> > > addChild(txtInputByUser);
> > > }
> > > public function get editValue():String
> > > {
> > > trace("EditValue " + txtInputByUser.text);
> > > return txtInputByUser.text;
> > > }
> > >
> > > override protected function commitProperties():void
> > > {
> > > super.commitProperties();
> > > }
> > >
> > > override protected function updateDisplayList(w:Number, h:Number):void
> > > {
> > > super.updateDisplayList(w, h);
> > > txtInputByUser.move(0, 0);
> > > txtInputByUser.setActualSize(w - 11, h);
> > > }
> > > }
> > >
> > >
> > >
> > > MainApplication.mxml
> > >
> > > 
> > > http://www.adobe.com/2006/mxml";
> > > xmlns:cc="customComponents.*"
> > > xmlns:renderer="com.vzw.mpi.rss.mxml.renderer.*"
> > > viewSourceURL="srcview/index.html"
> > > creationComplete="onCreationComplete(event)">
> > >
> > > 
> > > 
> > > 
> > >
> > >  > >  sortableColumns="false"
> > >  enabled="true"
> > >  width="300"
> > >  itemEditEnd="onitemEditEnd(event)"
> > >  height="100"
> > >  dataProvider="{_editCollection}"
> > >  editable="true"
> > >  variableRowHeight="true"
> > >  horizontalScrollPolicy="auto"
> > >  verticalScrollPolicy="auto">
> > > 
> > >  > >dataField="compatableInd.id"
> > >isRequired="true"
> > >isPopupEditor="true"
> > >width="30"
> > >editorDataField="editValue"
> > >labelFunction="labelCompitableInd"
> > >itemEditor="customComponents.datagrid.itemeditor.SpyGlassFieldEditor"/>
> > > 
> > > 
> > > 
> > >
> >
>
>
>
>
>
>
> --
> Alex Harui
> Flex SDK Team
> Adobe System, Inc.
> http://blogs.adobe.com/aharui
>






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


Re: [flexcoders] FocusManager chillHideHandler Error 1009 workaround ?

2010-06-22 Thread Alex Harui
Make sure you’re adding to the right place (maybe not systemManager).  Each 
top-level window like the Application or something you popup has its own 
focusmanager that is listening for HIDE in capture phase on that top-level 
window.  You wouldn’t be getting that error if the focusmanager couldn’t 
capture the event from where it is listening, so if you get in first you should 
be able to block it.


On 6/22/10 10:51 AM, "Stephane Guyot"  wrote:


Alex,

thanks again but i've done exactly this test, adding priority 100, perhaps I 
could try higher value tomorrow morning.

I've also try to assign lastFocus property of focusManager instance to null 
using mx_internal namespace ( OK not really recommended but accepable for a 
workaround )

For now I hope night will give me some other ideas,
Stephane

Just do it :  http://www.kiva.org/lender/stephane4127

Le 22 juin 2010 à 19:14, Alex Harui a écrit :

Try adding a high priority handler to the top-level window that parents that 
scroller

topLevelWindow.addEventListener(FlexEvent.HIDE, hideEventFilter, true, 100);


On 6/22/10 9:19 AM, "Stephane Guyot"  > wrote:


Alex,

I've added   systemManager.addEventListener(FlexEvent.HIDE, hideEventFilter, 
true)
on the top-level window  placed in a PopUpAnchor ( and  containing checkboxes, 
legends , group,  scroller)  and try to stop  HIDE event,  causing troubles in 
FocusManager.
This tips prevents many  exceptions, I see it in logs ..., but sometimes 
SparkSkin of a scroller still produce the exception :-/
I don't undertand why, the scroller is in the displayList of the top 
level-window but i'm not listening the Hide event, and then don't do 
stopImmediatePropagation.

One more idea ?

Thanks,
Stephane


TypeError: Error #1009: Il est impossible d'accéder à la propriété ou à la 
méthode d'une référence d'objet nul.

   at 
mx.managers::FocusManager/childHideHandler()[E:\dev\4.x\frameworks\projects\framework\src\mx\managers\FocusManager.as:1759]

   at flash.events::EventDispatcher/dispatchEventFunction()

   at flash.events::EventDispatcher/dispatchEvent()

   at 
mx.core::UIComponent/dispatchEvent()[E:\dev\4.x\frameworks\projects\framework\src\mx\core\UIComponent.as:12528]

   at 
mx.core::UIComponent/setVisible()[E:\dev\4.x\frameworks\projects\framework\src\mx\core\UIComponent.as:3088]

   at mx.core::UIComponent/set 
visible()[E:\dev\4.x\frameworks\projects\framework\src\mx\core\UIComponent.as:3047]

   at spark.components.supportClasses::ScrollerLayout/set 
vsbVisible()[E:\dev\4.x\frameworks\projects\spark\src\spark\components\supportClasses\ScrollerLayout.as:189]

   at 
spark.components.supportClasses::ScrollerLayout/updateDisplayList()[E:\dev\4.x\frameworks\projects\spark\src\spark\components\supportClasses\ScrollerLayout.as:448]

   at 
spark.components.supportClasses::GroupBase/updateDisplayList()[E:\dev\4.x\frameworks\projects\spark\src\spark\components\supportClasses\GroupBase.as:1224]

   at 
spark.components::Group/updateDisplayList()[E:\dev\4.x\frameworks\projects\spark\src\spark\components\Group.as:899]

   at 
spark.skins::SparkSkin/updateDisplayList()[E:\dev\4.x\frameworks\projects\spark\src\spark\skins\SparkSkin.as:191]

   at 
mx.core::UIComponent/validateDisplayList()[E:\dev\4.x\frameworks\projects\framework\src\mx\core\UIComponent.as:8709]

   at 
mx.managers::LayoutManager/validateDisplayList()[E:\dev\4.x\frameworks\projects\framework\src\mx\managers\LayoutManager.as:663]

   at 
mx.managers::LayoutManager/doPhasedInstantiation()[E:\dev\4.x\frameworks\projects\framework\src\mx\managers\LayoutManager.as:736]

   at 
mx.managers::LayoutManager/doPhasedInstantiationCallback()[E:\dev\4.x\frameworks\projects\framework\src\mx\managers\LayoutManager.as:1072]



Just do it :  http://www.kiva.org/lender/stephane4127

Le 18 juin 2010 à 19:05, Alex Harui a écrit :

Try adding a capture phase listener to systemManager.

systemManager.addEventListener(FlexEvent.HIDE, hideEventFilter, true);

private function hideEventFilter(event:FlexEvent):void
{
if (event.target.stage == null)
event.stopImmediatePropagation();
}


On 6/18/10 2:56 AM, "Stephane Guyot"   
 > > wrote:


Alex,

yes the ViewStack is newly destroyed.
I use PopUpAnchor to show/hide Chart Legend, the bug is not clearly 
reproductible, somtimes it appears, sometimes no trouble.

I'm still looking for a workaround. What should i do ? Replace PopUpAnchor and 
use PopUpManager ?
Is it possible to plug my own FocusManager and a try/catch to hide the 
exception ?

ViewStack, CheckBox and this morning I've got a new version with Group :

TypeError: Error #1009: Il est impossible d'accéder à la propriété ou à la 
méthode d'une référence d'objet nul.

at 
mx.managers::FocusManager/childHideHandler()[E:\dev\4.x\frameworks\projects\framework\src\mx\managers\FocusManager.as:1759]

at flash.events::EventDispatcher/dispatchEventFunction()


Re: [flexcoders] Flex Profiler will not connect

2010-06-22 Thread Alex Harui
Did you reboot?  That is usually the problem for me.


On 6/22/10 12:49 PM, "s_grollins"  wrote:






Hi all,

I'm trying to get the flex profiler to work but I'm having no luck. I've come 
across a few posts about the profiler but none of them have helped:

http://stackoverflow.com/questions/115420/flex-profiler-gives-socket-timeout-error-why-for
http://wceii.blogspot.com/2009/12/flex-profiler-socket-timeout-error.html

The 1st link mentions updating your etc/hosts file on Windows, which I have 
done, the 3rd link mentions updating your mm.cfg file which I've also done, 
neither of these have yielded any results. Currently it just gives me "Socket 
Timeout" each and every time. I'm on Windows Vista, using Firefox, using 
Eclipse with Flex Builder Plug-In, has anyone had any luck using this or does 
anyone have any suggestions?






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


Re: [flexcoders] Re: flex3 upload function seems not calling the php script

2010-06-22 Thread David Pariente
Unfortunately, even that component might work good, it would not have in my 
case i guess...

The problem was the configuration of the server at the hosting company.

creating a .htaccess folder in the php upload folders and the file upload taget 
folders solved the issue.
The file should have thiscontent:

SecFilterEngine Off
SecFilterScanPOST Off

Keep this solution in mind, because ur hosting company can change php options 
like this at any time, and who knows when people with notice the reason:S 
scary (it happened to me).

Thanx all for the comments! :)








De: valdhor 
Para: flexcoders@yahoogroups.com
Enviado: vie,18 junio, 2010 15:04
Asunto: [flexcoders] Re: flex3 upload function seems not calling the php script

   
I got my File Upload component directly from the source (Adobe). I found out 
about it at 
http://help.adobe.com/en_US/ActionScript/3.0_ProgrammingAS3/WS5b3ccc516d4fbf351e63e3d118a9b90204-7cf6.html
 and downloaded the example files at http://www.adobe.com/go/as3examples

This has worked great for me. No bugs; No crashes. Give it a go - it can't hurt 
to try.

--- In flexcoders@yahoogroups.com, David Pariente  wrote:
>
> Hi, well, i guessed Charles would make exactly the same as httpFox, but since 
> have to be installed, i should look for a PC where i could get it installed, 
> at home for example.
> 
> The host value is "". It's there for control the host when i work on 
> production or development servers. I used it the same way all over the site, 
> working perfectly. The difference is that in the other places, it's just 
> normal xml loader calls, while in this case, it's sent with UPLOAD from the 
> file reference object.
> 
> The uploaders i tried, back to the starts of flex3, where bug full, and 
> crashed often, and in no means dependable at all. If there is a simple one, 
> for upload a simple file, i would not miss upload bars and bulk uploads. If 
> you say they work, they must have improved developments A LOT. A simple 
> upload script will take 10 lines, not the kind of thing i need a commercial 
> product for...1 or 2 more lines for have a progress bar.
> 
> Now the main goal is to make the code works again. a little might have been 
> deleted accidentally or something is wrong and can't see it. :(
> 
> I guess not much people do any upload at all in their websites :(
> 
> Well, thank you anyway, and if someone see something wrong or have any simple 
> working code to compare with, it would be much wellcome...
> Thnx.
> 
> 
> 
> 
> 
> 
> De: valdhor 
> Para: flexcoders@yahoogroups.com
> Enviado: jue,17 junio, 2010 18:29
> Asunto: [flexcoders] Re: flex3 upload function seems not calling the php 
> script
> 
> 
> Charles has a demo version that is fully functional but will exit after 30 
> minutes. Charles is invaluable for tracking down network issues. It has paid 
> for itself many times over for me.
> 
> The only thing that may be wrong that I can see is the value of HOST.
> 
> I would put a breakpoint in your try block and check to see that the 
> filereference and URLRequest is setup correctly.
> 
> Also, you may want to download a file upload component and try that (That is 
> what I did). These components have been tested and known to work. They also 
> add extra functionality like progress bars etc so you don't have to re-invent 
> the wheel.
> 
> --- In flexcoders@yahoogroups.com, David Pariente  wrote:
> >
> > I get all alerts but the one of the catch error.
> > 
> > i dont get any warning or errors.
> > 
> > at first the try/catcch was inside the subeArchivo function...but i moved 
> > it to the object itself for test and leave code more clear for me. same 
> > result.
> > 
> > i didn't try charles (commercial, and don't think i could install it here) 
> > but tryied with httpfox and i can't see the call to the php file when click 
> > upload. (I see any other communication).
> > 
> > thnks for the help...i continued trying but still have no hint...:(
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > De: valdhor 
> > Para: flexcoders@yahoogroups.com
> > Enviado: mié,16 junio, 2010 14:47
> > Asunto: [flexcoders] Re: flex3 upload function seems not calling the php 
> > script
> > 
> > 
> > What alerts actually show?
> > Does the try block produce an error? If so, what error?
> > What happens if you include the try block inside the subeArchivo function 
> > rather than using getChildByName?
> > What does Charles (http://www.charlesproxy.com) show?
> > 
> > --- In flexcoders@yahoogroups.com, David Pariente  wrote:
> > >
> > > Hi all,
> > > 
> > > I have a website with an upload code that stopped to work...if ever did 
> > > (thought this was tested).
> > > 
> > > After checking for many hours i still can't find a reason why is not 
> > > working, or stopped to.
> > > 
> > > I checked with httpFox, and looks like the php file is never called...so 
> > > i wonder if the u

[flexcoders] Yahoo TimeInput component as Item Editor

2010-06-22 Thread Matthew
Hi --

I'm having problems using the Yahoo TimeInput component as an Item Editor. I'm 
try to handle the situation when a user deletes numbers in the component and 
then clicks outside. For example, deleting the '56' in seconds

Example time: 12:22:56

Normally, the numbers reset to 0, which is what I expect. 

However, in an item editor, when you click outside, the numbers don't reset, 
meaning they're just blank. As in, 12:22:

I'm expecting: 12:22:00

Any ideas as to why this might be happening? I'm a bit perplexed.

Thanks for any helpful tips, 

Matt



Re: [flexcoders] install AIR 2.5 SDK on Flash Builder (Flex 4) got error "Directory does not contain a Flex SDK"

2010-06-22 Thread Willy Ci
I duplicate 4.0.0, rename it to 4.2.5, copy everything,
I use finder drag and drop made the copy, does that over write the whole
folder?

[Macintosh-4 4.2.5]$ ls -la
total 528
drwxrwxr-x  18 wci   admin 612 Jun 22 16:44 .
drwxrwxr-x   8 root  admin 272 Jun 22 16:41 ..
-rw-r--r--@  1 wci   staff7087 Jun 16 23:04 AIR SDK Readme.txt
-rw-r--r--@  1 wci   staff  126294 Jun 16 23:04 SDK license.pdf
-rw-r--r--@  1 wci   staff 495 Jun 22 16:37 air file change.txt
drwxrwxr-x   7 wci   admin 238 May  4 14:28 ant
drwxrwxr-x   4 wci   admin 136 May  4 14:28 asdoc
drwxr-xr-x@  4 wci   staff 136 Jun 16 23:04 bin
-rw-r--r--   1 wci   admin 139 May  4 14:28 flex-sdk-description.xml
drwxr-xr-x@  4 wci   staff 136 Jun 16 23:04 frameworks
drwxr-xr-x@  4 wci   staff 136 Jun 16 23:04 lib
-rw-r--r--   1 wci   admin   43095 May  4 14:28 license-adobesdk-fr.htm
-rw-r--r--   1 wci   admin   29775 May  4 14:28 license-adobesdk.htm
-rw-r--r--   1 wci   admin   27398 May  4 14:28 license-mpl.htm
-rw-r--r--   1 wci   admin   20202 May  4 14:28 readme.htm
drwxr-xr-x@  3 wci   staff 102 Jun 16 23:04 runtimes
drwxr-xr-x@  5 wci   staff 170 Jun 16 23:04 samples
drwxr-xr-x@  3 wci   staff 102 Jun 16 23:04 templates
[Macintosh-4 4.2.5]$ pwd
/Applications/Adobe Flash Builder 4/sdks/4.2.5
[Macintosh-4 4.2.5]$



Willy
617-606-3437
--
6 X 9 = 42
http://www.wolframalpha.com/input/?i=meaning+of+life
--


On Tue, Jun 22, 2010 at 8:17 PM, Oleg Sivokon  wrote:

>
>
> Can you cd to the sdk root and then ls it and paste here the results?
>
> $ cd ~/flex/sdk
> $ ls
>
> (something like this)
>
> It sounds like you maybe didn't extract that into a proper folder / removed
> something accidentally.
>
> Another idea:
> - try compiling from command line, will it compile? If it won't (I'm afraid
> it won't), what error will it give?
>
> Best.
>
> Oleg
>  
>


Re: [flexcoders] install AIR 2.5 SDK on Flash Builder (Flex 4) got error "Directory does not contain a Flex SDK"

2010-06-22 Thread Oleg Sivokon
Can you cd to the sdk root and then ls it and paste here the results?

$ cd ~/flex/sdk
$ ls

(something like this)

It sounds like you maybe didn't extract that into a proper folder / removed
something accidentally.

Another idea:
- try compiling from command line, will it compile? If it won't (I'm afraid
it won't), what error will it give?

Best.

Oleg


[flexcoders] CallResponder

2010-06-22 Thread Stephen
Is it possible to get feedback when a call reponder has updated a row in the 
database. I managed to get an addition to work probably because it had to 
return a key as a result. But update wont return a result so far as I have 
tried.

All their seems to have is ACTIVE, DEACTIVE, FAULT & RESULT none of which fires 
when updating.

I can not bind to the datagrid for update as its a join, I can only update a 
table, when I do I need to know when it has been done so that I can call an 
update on the join to refresh the datagrid.

- Any help?

- Stephen



[flexcoders] setting the border thickness on a Spark mx.controls.VBox ?

2010-06-22 Thread Nick Middleweek
Hi,

Sounds a bit contradictory - Spark and mx.controls but I'm using Flex 4 but
working on some Flex 3 code and can't update to Spark at the moment. I'm
struggling to find out how to set the border thickness of my VBox to 10.

Has anyone acheived this ?


Thanks,
Nick


[flexcoders] ScrollEvent bubble

2010-06-22 Thread johng_sst
Can anyone help me with getting a scrollEvent to bubble. I know I have to 
extend it but I really don't know what is necessary to do after that.

I'm also using Swiz in my application.



[flexcoders] Re: mutitouch for HP DX9000 Touchsmart pc?

2010-06-22 Thread markflex2007
Hi Don,

Please give me a idea how to enable touch drivers.

Thanks

Mark

--- In flexcoders@yahoogroups.com, "fusionpage"  wrote:
>
> My HP Touchsmart 300 works fine with both Gestures and raw touch points with 
> Flash 10.1 and Air 2.  It worked out-of-the-box without having to go to the 
> control panel Touch tab to enable touch. I suspect your model uses the same 
> NextWindow drivers.
> 
> Your model might require enabling touch drivers. 
> 
> Don
> 
> 
> --- In flexcoders@yahoogroups.com, "markflex2007"  wrote:
> >
> > I use windows 7 with HP DX9000 Touchsmart pc.
> > 
> > I have install flash player 10.1 and Air 2.0.
> > 
> > but when I didi followings
> > 
> > trace(Multitouch.supportsGestureEvents);
> > trace(Multitouch.supportsTouchEvents);
> > trace(Multitouch.supportedGestures);
> > trace(Multitouch.maxTouchPoints);
> > 
> > I get the results
> > 
> > false
> > false
> > null
> > 0
> > 
> > How I can do now for this case? which touch pc support flash player 10.1?
> > 
> > Thanks
> > 
> > Mark
> >
>




[flexcoders] install AIR 2.5 SDK on Flash Builder (Flex 4) got error "Directory does not contain a Flex SDK"

2010-06-22 Thread Willy Ci
Hi,

I am trying to add AIR 2.5 SDK into my FLashBuilder, (I am on a Mac)
I did copy the SDK 4.0 folder, over-write with AIR25_mac_sdk_20100617.tbz2
but I am still got this error
"Directory does not contain a Flex SDK"
anyone can help me?


here is the steps I followed:

How to overlay the Adobe AIR SDK for use with the Flex SDK

1. Copy the contents an existing Flex SDK folder to a new folder. For
example, in Flex Builder, copy the following folder located at:
* Windows: c:\Program Files\Adobe\Flex Builder 3\sdks\3.2.0
* Mac OS: /Applications/Adobe Flex Builder 3/sdks/3.2.0
2. Download the appropriate AIR SDK file for your operating system and
save it to the root folder of the Flex SDK.
* Windows: AIR20_win_sdk_XX.zip
* Mac OS: AIR20_mac_sdk_XX.tbz2
3. Extract the contents of the AIR SDK archive and overwrite the
existing SDK files in the copied folder.
* Windows: Right-click on the ZIP file and select "Extract All" or use
the decompression tool of your choice.
* Mac OS: In Terminal, cd to the root folder of the Flex SDK and run
this command:
* tar jxvf AIR20_mac_sdk_XX.tbz2

If you have trouble overwriting files due to file permissions, try this command
sudo tar jxvf AIR20_mac_sdk_XX.tbz2

4. In Flex or Flash Builder, open the Properties dialog and choose the
Flex Compiler page
5. Click the Configure Flex SDKs... link
6. Add the combined Flex and AIR 2 SDK folder created above
7. Use this SDK for any projects accessing AIR 2 APIs.




Willy
617-606-3437
--
6 X 9 = 42
http://www.wolframalpha.com/input/?i=meaning+of+life
--


[flexcoders] Flex Profiler will not connect

2010-06-22 Thread s_grollins
Hi all,

I'm trying to get the flex profiler to work but I'm having no luck. I've come 
across a few posts about the profiler but none of them have helped:

http://stackoverflow.com/questions/115420/flex-profiler-gives-socket-timeout-error-why-for
http://wceii.blogspot.com/2009/12/flex-profiler-socket-timeout-error.html

The 1st link mentions updating your etc/hosts file on Windows, which I have 
done, the 3rd link mentions updating your mm.cfg file which I've also done, 
neither of these have yielded any results. Currently it just gives me "Socket 
Timeout" each and every time. I'm on Windows Vista, using Firefox, using 
Eclipse with Flex Builder Plug-In, has anyone had any luck using this or does 
anyone have any suggestions?



[flexcoders] Re: mutitouch for HP DX9000 Touchsmart pc?

2010-06-22 Thread fusionpage
My HP Touchsmart 300 works fine with both Gestures and raw touch points with 
Flash 10.1 and Air 2.  It worked out-of-the-box without having to go to the 
control panel Touch tab to enable touch. I suspect your model uses the same 
NextWindow drivers.

Your model might require enabling touch drivers. 

Don


--- In flexcoders@yahoogroups.com, "markflex2007"  wrote:
>
> I use windows 7 with HP DX9000 Touchsmart pc.
> 
> I have install flash player 10.1 and Air 2.0.
> 
> but when I didi followings
> 
> trace(Multitouch.supportsGestureEvents);
> trace(Multitouch.supportsTouchEvents);
> trace(Multitouch.supportedGestures);
> trace(Multitouch.maxTouchPoints);
> 
> I get the results
> 
> false
> false
> null
> 0
> 
> How I can do now for this case? which touch pc support flash player 10.1?
> 
> Thanks
> 
> Mark
>




[flexcoders] Re: Spark List item 0 not visible

2010-06-22 Thread fusionpage
This question was answered by Adobe on their Flex forum.
You have set an explicit width of mx:Image in your list renderer
http://forums.adobe.com/message/2916563#2916563

Just wanted to close the loop here in case others see the same issue.

Don 




--- In flexcoders@yahoogroups.com, "fusionpage"  wrote:
>
> Strange.  DataProvider contains an item at zero, but it doesn't appear 
> visible in the list.  Selecting the item works fine and the data is there... 
> it is just not visible.  Is this a known bug?  It occurs with/without the 
> custom skinClass.
> 
> 
> Any ideas?
> 
> 
> Don
> 
> 
>  creationComplete="topLeft_creationCompleteHandler(event)"   
> dataProvider="{photosDP}"  borderColor="0xff" borderAlpha="0.3" 
> skinClass="TouchListHorizontal"  width="100%" height="100%" 
> itemRenderer="ImageRendererPhotosThumb" horizontalCenter="0" 
> verticalCenter="0">
> 
>  verticalAlign="middle" />
> 
> 
>




[flexcoders] How to make a s:Label with variable content wrap, without specifying width=100%?

2010-06-22 Thread Baz
I have a s:Label in an ItemRender whose content is variable in length from
item to item. This label also has a ToolTip defined that gets displayed when
a user hovers over the text. I would like for this label to wrap and adjust
to the browser size, but I don't want to specify width=100% because then the
tooltip displays when hovering over empty space. Anyone know of a clever
solution?

Thanks!


Re: [flexcoders] FocusManager chillHideHandler Error 1009 workaround ?

2010-06-22 Thread Stephane Guyot

Alex,

thanks again but i've done exactly this test, adding priority 100, 
perhaps I could try higher value tomorrow morning.

I've also try to assign lastFocus property of focusManager instance to 
null using mx_internal namespace ( OK not really recommended but accepable for 
a workaround )

For now I hope night will give me some other ideas,
Stephane

Just do it :  http://www.kiva.org/lender/stephane4127

Le 22 juin 2010 à 19:14, Alex Harui a écrit :

> Try adding a high priority handler to the top-level window that parents that 
> scroller
> 
> topLevelWindow.addEventListener(FlexEvent.HIDE, hideEventFilter, true, 
> 100);
> 
> 
> On 6/22/10 9:19 AM, "Stephane Guyot"  wrote:
> 
>> 
>> Alex,
>> 
>> I've added  systemManager.addEventListener(FlexEvent.HIDE, hideEventFilter, 
>> true)
>> on the top-level window  placed in a PopUpAnchor ( and  containing 
>> checkboxes, legends , group,  scroller)  and try to stop  HIDE event,  
>> causing troubles in FocusManager.
>> This tips prevents many  exceptions, I see it in logs ..., but sometimes 
>> SparkSkin of a scroller still produce the exception :-/
>> I don't undertand why, the scroller is in the displayList of the top 
>> level-window but i'm not listening the Hide event, and then don't do 
>> stopImmediatePropagation.
>> 
>> One more idea ?
>> 
>> Thanks,
>> Stephane
>> 
>> 
>> TypeError: Error #1009: Il est impossible d'accéder à la propriété ou à la 
>> méthode d'une référence d'objet nul.
>> 
>>at 
>> mx.managers::FocusManager/childHideHandler()[E:\dev\4.x\frameworks\projects\framework\src\mx\managers\FocusManager.as:1759]
>> 
>>at flash.events::EventDispatcher/dispatchEventFunction()
>> 
>>at flash.events::EventDispatcher/dispatchEvent()
>> 
>>at 
>> mx.core::UIComponent/dispatchEvent()[E:\dev\4.x\frameworks\projects\framework\src\mx\core\UIComponent.as:12528]
>> 
>>at 
>> mx.core::UIComponent/setVisible()[E:\dev\4.x\frameworks\projects\framework\src\mx\core\UIComponent.as:3088]
>> 
>>at mx.core::UIComponent/set 
>> visible()[E:\dev\4.x\frameworks\projects\framework\src\mx\core\UIComponent.as:3047]
>> 
>>at spark.components.supportClasses::ScrollerLayout/set 
>> vsbVisible()[E:\dev\4.x\frameworks\projects\spark\src\spark\components\supportClasses\ScrollerLayout.as:189]
>> 
>>at 
>> spark.components.supportClasses::ScrollerLayout/updateDisplayList()[E:\dev\4.x\frameworks\projects\spark\src\spark\components\supportClasses\ScrollerLayout.as:448]
>> 
>>at 
>> spark.components.supportClasses::GroupBase/updateDisplayList()[E:\dev\4.x\frameworks\projects\spark\src\spark\components\supportClasses\GroupBase.as:1224]
>> 
>>at 
>> spark.components::Group/updateDisplayList()[E:\dev\4.x\frameworks\projects\spark\src\spark\components\Group.as:899]
>> 
>>at 
>> spark.skins::SparkSkin/updateDisplayList()[E:\dev\4.x\frameworks\projects\spark\src\spark\skins\SparkSkin.as:191]
>> 
>>at 
>> mx.core::UIComponent/validateDisplayList()[E:\dev\4.x\frameworks\projects\framework\src\mx\core\UIComponent.as:8709]
>> 
>>at 
>> mx.managers::LayoutManager/validateDisplayList()[E:\dev\4.x\frameworks\projects\framework\src\mx\managers\LayoutManager.as:663]
>> 
>>at 
>> mx.managers::LayoutManager/doPhasedInstantiation()[E:\dev\4.x\frameworks\projects\framework\src\mx\managers\LayoutManager.as:736]
>> 
>>at 
>> mx.managers::LayoutManager/doPhasedInstantiationCallback()[E:\dev\4.x\frameworks\projects\framework\src\mx\managers\LayoutManager.as:1072]
>> 
>> 
>> 
>> Just do it :  http://www.kiva.org/lender/stephane4127
>> 
>> Le 18 juin 2010 à 19:05, Alex Harui a écrit :
>> 
>>> Try adding a capture phase listener to systemManager.
>>> 
>>> systemManager.addEventListener(FlexEvent.HIDE, hideEventFilter, true);
>>> 
>>> private function hideEventFilter(event:FlexEvent):void
>>> {
>>> if (event.target.stage == null)
>>> event.stopImmediatePropagation();
>>> }
>>> 
>>> 
>>> On 6/18/10 2:56 AM, "Stephane Guyot" >>  > wrote:
>>> 
 
 Alex,
 
 yes the ViewStack is newly destroyed.
 I use PopUpAnchor to show/hide Chart Legend, the bug is not clearly 
 reproductible, somtimes it appears, sometimes no trouble.
 
 I'm still looking for a workaround. What should i do ? Replace PopUpAnchor 
 and use PopUpManager ?
 Is it possible to plug my own FocusManager and a try/catch to hide the 
 exception ?
 
 ViewStack, CheckBox and this morning I've got a new version with Group :
 
 TypeError: Error #1009: Il est impossible d'accéder à la propriété ou à la 
 méthode d'une référence d'objet nul.
 
 at 
 mx.managers::FocusManager/childHideHandler()[E:\dev\4.x\frameworks\projects\framework\src\mx\managers\FocusManager.as:1759]
 
 at flash.events::EventDispatcher/dispatchEventFunction()
 
 at flash.ev

[flexcoders] Re: Height and Focus | Itemeditor

2010-06-22 Thread ilikeflex
How to find if the first row's itemeditor overlaps another row editors.

--- In flexcoders@yahoogroups.com, Alex Harui  wrote:
>
> You can't click because the first row's editor overlaps the second row, or 
> for some other reason?
> 
> 
> On 6/22/10 8:46 AM, "ilikeflex"  wrote:
> 
> 
> 
> 
> 
> 
> In have implemented itemEditEnd event which is causing the problem. I am 
> calling the event.preventDefault(); inside the itemEditEnd. If i remove this 
> then i am able to click on another itemeditor which clicking on the blank 
> row. I need to call event.preventDefault(); because i am using nested 
> properties as datafield.
> 
> so how to make this work...Any pointers..
> 
> --- In flexcoders@yahoogroups.com  , 
> "ilikeflex"  wrote:
> >
> > Hi
> >
> > I am able to solve first one. Second is remaining.
> >
> > --- In flexcoders@yahoogroups.com  , 
> > "ilikeflex"  wrote:
> > >
> > > Hi
> > >
> > >
> > > The challenge i am facing is that the
> > >
> > > 1.rows height are very small and i do not know to increase it.
> > >
> > > 2.I am using the itemeditor. If i click the item editor of the first row 
> > > then i am not able to click on itemeditor of the second row. If i need to 
> > > click on the second row then i need to click on any empty row first then 
> > > i am able to click on another row.
> > >
> > > In the itmeditor i am using the text input control. I know if i just need 
> > > to have textinput control as itemeditor i do not need to make custom 
> > > itemeditor. But this is just test case of my complex code.
> > >
> > > I am stuck on these for couple of days. Any pointers are highly 
> > > appreciated.
> > >
> > > Please see the code for itemeditor.
> > >
> > >
> > > public class SpyGlassFieldEditor extends UIComponent implements 
> > > IListItemRenderer, IDropInListItemRenderer
> > > {
> > > public function SpyGlassFieldEditor(){super();}
> > > private var txtInputByUser:TextInput;
> > > private var _data:Object;
> > > public function get data():Object {return _data;}
> > > public function set data(value:Object):void 
> > > {_data=value;invalidateProperties();}
> > > private var _listData:BaseListData;
> > > private var _dataGrid:CheckBoxDataGrid;
> > > private var _dataField:String;
> > > public function get listData():BaseListData {return _listData; }
> > > public function set listData(value:BaseListData):void
> > > {
> > > _listData=value;
> > > _dataGrid=value.owner as CheckBoxDataGrid;
> > > _dataField=(value as DataGridListData).dataField;
> > > }
> > >
> > > override protected function createChildren():void
> > > {
> > > txtInputByUser=new TextInput();
> > > addChild(txtInputByUser);
> > > }
> > > public function get editValue():String
> > > {
> > > trace("EditValue " + txtInputByUser.text);
> > > return txtInputByUser.text;
> > > }
> > >
> > > override protected function commitProperties():void
> > > {
> > > super.commitProperties();
> > > }
> > >
> > > override protected function updateDisplayList(w:Number, h:Number):void
> > > {
> > > super.updateDisplayList(w, h);
> > > txtInputByUser.move(0, 0);
> > > txtInputByUser.setActualSize(w - 11, h);
> > > }
> > > }
> > >
> > >
> > >
> > > MainApplication.mxml
> > >
> > > 
> > > http://www.adobe.com/2006/mxml";
> > > xmlns:cc="customComponents.*"
> > > xmlns:renderer="com.vzw.mpi.rss.mxml.renderer.*"
> > > viewSourceURL="srcview/index.html"
> > > creationComplete="onCreationComplete(event)">
> > >
> > > 
> > > 
> > > 
> > >
> > >  > >  sortableColumns="false"
> > >  enabled="true"
> > >  width="300"
> > >  itemEditEnd="onitemEditEnd(event)"
> > >  height="100"
> > >  dataProvider="{_editCollection}"
> > >  editable="true"
> > >  variableRowHeight="true"
> > >  horizontalScrollPolicy="auto"
> > >  verticalScrollPolicy="auto">
> > > 
> > >  > >dataField="compatableInd.id"
> > >isRequired="true"
> > >isPopupEditor="true"
> > >width="30"
> > >editorDataField="editValue"
> > >labelFunction="labelCompitableInd"
> > >itemEditor="customComponents.datagrid.itemeditor.SpyGlassFieldEditor"/>
> > > 
> > > 
> > > 
> > >
> >
> 
> 
> 
> 
> 
> 
> --
> Alex Harui
> Flex SDK Team
> Adobe System, Inc.
> http://blogs.adobe.com/aharui
>




[flexcoders] Re: How to use flash player 10.1 API in Flex?

2010-06-22 Thread markflex2007

Thanks

Mark
--- In flexcoders@yahoogroups.com, Oleg Sivokon  wrote:
>
> Check that you have minor player version specified and it is exactly "01".
> To check this compile with -dump-config and look for the player version
> there.
> It is also possible that your SDK doesn't have the required
> playerglobals.swc. If this is the case, download it from Adobe labs site.
> http://download.macromedia.com/pub/labs/flashplayer10/flashplayer10_globalswc.zip
>




Re: [flexcoders] Re: Height and Focus | Itemeditor

2010-06-22 Thread Alex Harui
You can’t click because the first row’s editor overlaps the second row, or for 
some other reason?


On 6/22/10 8:46 AM, "ilikeflex"  wrote:






In have implemented itemEditEnd event which is causing the problem. I am 
calling the event.preventDefault(); inside the itemEditEnd. If i remove this 
then i am able to click on another itemeditor which clicking on the blank row. 
I need to call event.preventDefault(); because i am using nested properties as 
datafield.

so how to make this work...Any pointers..

--- In flexcoders@yahoogroups.com  , 
"ilikeflex"  wrote:
>
> Hi
>
> I am able to solve first one. Second is remaining.
>
> --- In flexcoders@yahoogroups.com  , 
> "ilikeflex"  wrote:
> >
> > Hi
> >
> >
> > The challenge i am facing is that the
> >
> > 1.rows height are very small and i do not know to increase it.
> >
> > 2.I am using the itemeditor. If i click the item editor of the first row 
> > then i am not able to click on itemeditor of the second row. If i need to 
> > click on the second row then i need to click on any empty row first then i 
> > am able to click on another row.
> >
> > In the itmeditor i am using the text input control. I know if i just need 
> > to have textinput control as itemeditor i do not need to make custom 
> > itemeditor. But this is just test case of my complex code.
> >
> > I am stuck on these for couple of days. Any pointers are highly appreciated.
> >
> > Please see the code for itemeditor.
> >
> >
> > public class SpyGlassFieldEditor extends UIComponent implements 
> > IListItemRenderer, IDropInListItemRenderer
> > {
> > public function SpyGlassFieldEditor(){super();}
> > private var txtInputByUser:TextInput;
> > private var _data:Object;
> > public function get data():Object {return _data;}
> > public function set data(value:Object):void 
> > {_data=value;invalidateProperties();}
> > private var _listData:BaseListData;
> > private var _dataGrid:CheckBoxDataGrid;
> > private var _dataField:String;
> > public function get listData():BaseListData {return _listData; }
> > public function set listData(value:BaseListData):void
> > {
> > _listData=value;
> > _dataGrid=value.owner as CheckBoxDataGrid;
> > _dataField=(value as DataGridListData).dataField;
> > }
> >
> > override protected function createChildren():void
> > {
> > txtInputByUser=new TextInput();
> > addChild(txtInputByUser);
> > }
> > public function get editValue():String
> > {
> > trace("EditValue " + txtInputByUser.text);
> > return txtInputByUser.text;
> > }
> >
> > override protected function commitProperties():void
> > {
> > super.commitProperties();
> > }
> >
> > override protected function updateDisplayList(w:Number, h:Number):void
> > {
> > super.updateDisplayList(w, h);
> > txtInputByUser.move(0, 0);
> > txtInputByUser.setActualSize(w - 11, h);
> > }
> > }
> >
> >
> >
> > MainApplication.mxml
> >
> > 
> > http://www.adobe.com/2006/mxml";
> > xmlns:cc="customComponents.*"
> > xmlns:renderer="com.vzw.mpi.rss.mxml.renderer.*"
> > viewSourceURL="srcview/index.html"
> > creationComplete="onCreationComplete(event)">
> >
> > 
> > 
> > 
> >
> >  >  sortableColumns="false"
> >  enabled="true"
> >  width="300"
> >  itemEditEnd="onitemEditEnd(event)"
> >  height="100"
> >  dataProvider="{_editCollection}"
> >  editable="true"
> >  variableRowHeight="true"
> >  horizontalScrollPolicy="auto"
> >  verticalScrollPolicy="auto">
> > 
> >  >dataField="compatableInd.id"
> >isRequired="true"
> >isPopupEditor="true"
> >width="30"
> >editorDataField="editValue"
> >labelFunction="labelCompitableInd"
> >itemEditor="customComponents.datagrid.itemeditor.SpyGlassFieldEditor"/>
> > 
> > 
> > 
> >
>






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


[flexcoders] mutitouch for HP DX9000 Touchsmart pc?

2010-06-22 Thread markflex2007
I use windows 7 with HP DX9000 Touchsmart pc.

I have install flash player 10.1 and Air 2.0.

but when I didi followings

trace(Multitouch.supportsGestureEvents);
trace(Multitouch.supportsTouchEvents);
trace(Multitouch.supportedGestures);
trace(Multitouch.maxTouchPoints);

I get the results

false
false
null
0

How I can do now for this case? which touch pc support flash player 10.1?

Thanks

Mark



Re: [flexcoders] FocusManager chillHideHandler Error 1009 workaround ?

2010-06-22 Thread Alex Harui
Try adding a high priority handler to the top-level window that parents that 
scroller

topLevelWindow.addEventListener(FlexEvent.HIDE, hideEventFilter, true, 100);


On 6/22/10 9:19 AM, "Stephane Guyot"  wrote:


Alex,

I've added  systemManager.addEventListener(FlexEvent.HIDE, hideEventFilter, 
true)
on the top-level window  placed in a PopUpAnchor ( and  containing checkboxes, 
legends , group,  scroller)  and try to stop  HIDE event,  causing troubles in 
FocusManager.
This tips prevents many  exceptions, I see it in logs ..., but sometimes 
SparkSkin of a scroller still produce the exception :-/
I don't undertand why, the scroller is in the displayList of the top 
level-window but i'm not listening the Hide event, and then don't do 
stopImmediatePropagation.

One more idea ?

Thanks,
Stephane


TypeError: Error #1009: Il est impossible d'accéder à la propriété ou à la 
méthode d'une référence d'objet nul.

   at 
mx.managers::FocusManager/childHideHandler()[E:\dev\4.x\frameworks\projects\framework\src\mx\managers\FocusManager.as:1759]

   at flash.events::EventDispatcher/dispatchEventFunction()

   at flash.events::EventDispatcher/dispatchEvent()

   at 
mx.core::UIComponent/dispatchEvent()[E:\dev\4.x\frameworks\projects\framework\src\mx\core\UIComponent.as:12528]

   at 
mx.core::UIComponent/setVisible()[E:\dev\4.x\frameworks\projects\framework\src\mx\core\UIComponent.as:3088]

   at mx.core::UIComponent/set 
visible()[E:\dev\4.x\frameworks\projects\framework\src\mx\core\UIComponent.as:3047]

   at spark.components.supportClasses::ScrollerLayout/set 
vsbVisible()[E:\dev\4.x\frameworks\projects\spark\src\spark\components\supportClasses\ScrollerLayout.as:189]

   at 
spark.components.supportClasses::ScrollerLayout/updateDisplayList()[E:\dev\4.x\frameworks\projects\spark\src\spark\components\supportClasses\ScrollerLayout.as:448]

   at 
spark.components.supportClasses::GroupBase/updateDisplayList()[E:\dev\4.x\frameworks\projects\spark\src\spark\components\supportClasses\GroupBase.as:1224]

   at 
spark.components::Group/updateDisplayList()[E:\dev\4.x\frameworks\projects\spark\src\spark\components\Group.as:899]

   at 
spark.skins::SparkSkin/updateDisplayList()[E:\dev\4.x\frameworks\projects\spark\src\spark\skins\SparkSkin.as:191]

   at 
mx.core::UIComponent/validateDisplayList()[E:\dev\4.x\frameworks\projects\framework\src\mx\core\UIComponent.as:8709]

   at 
mx.managers::LayoutManager/validateDisplayList()[E:\dev\4.x\frameworks\projects\framework\src\mx\managers\LayoutManager.as:663]

   at 
mx.managers::LayoutManager/doPhasedInstantiation()[E:\dev\4.x\frameworks\projects\framework\src\mx\managers\LayoutManager.as:736]

   at 
mx.managers::LayoutManager/doPhasedInstantiationCallback()[E:\dev\4.x\frameworks\projects\framework\src\mx\managers\LayoutManager.as:1072]



Just do it :  http://www.kiva.org/lender/stephane4127

Le 18 juin 2010 à 19:05, Alex Harui a écrit :

Try adding a capture phase listener to systemManager.

systemManager.addEventListener(FlexEvent.HIDE, hideEventFilter, true);

private function hideEventFilter(event:FlexEvent):void
{
if (event.target.stage == null)
event.stopImmediatePropagation();
}


On 6/18/10 2:56 AM, "Stephane Guyot"  > wrote:


Alex,

yes the ViewStack is newly destroyed.
I use PopUpAnchor to show/hide Chart Legend, the bug is not clearly 
reproductible, somtimes it appears, sometimes no trouble.

I'm still looking for a workaround. What should i do ? Replace PopUpAnchor and 
use PopUpManager ?
Is it possible to plug my own FocusManager and a try/catch to hide the 
exception ?

ViewStack, CheckBox and this morning I've got a new version with Group :

TypeError: Error #1009: Il est impossible d'accéder à la propriété ou à la 
méthode d'une référence d'objet nul.

at 
mx.managers::FocusManager/childHideHandler()[E:\dev\4.x\frameworks\projects\framework\src\mx\managers\FocusManager.as:1759]

at flash.events::EventDispatcher/dispatchEventFunction()

at flash.events::EventDispatcher/dispatchEvent()

at 
mx.core::UIComponent/dispatchEvent()[E:\dev\4.x\frameworks\projects\framework\src\mx\core\UIComponent.as:12528]

at 
mx.core::UIComponent/setVisible()[E:\dev\4.x\frameworks\projects\framework\src\mx\core\UIComponent.as:3088]

at mx.core::UIComponent/set 
visible()[E:\dev\4.x\frameworks\projects\framework\src\mx\core\UIComponent.as:3047]

at spark.components.supportClasses::ScrollerLayout/set 
hsbVisible()[E:\dev\4.x\frameworks\projects\spark\src\spark\components\supportClasses\ScrollerLayout.as:105]

at 
spark.components.supportClasses::ScrollerLayout/updateDisplayList()[E:\dev\4.x\frameworks\projects\spark\src\spark\components\supportClasses\ScrollerLayout.as:429]

at 
spark.components.supportClasses::GroupBase/updateDisplayList()[E:\dev\4.x\frameworks\projects\spark\src\spark\components\supportClasses

[flexcoders] What happened to Flex 4 SDK nightly builds?

2010-06-22 Thread Baz
I just went to check out the Flex 4 SDK nightlies (
http://opensource.adobe.com/wiki/display/flexsdk/Download+Flex+4) and
noticed that there haven't been any builds since May 12th - anyone know what
that's about?


Re: [flexcoders] How to use flash player 10.1 API in Flex?

2010-06-22 Thread Oleg Sivokon
Check that you have minor player version specified and it is exactly "01".
To check this compile with -dump-config and look for the player version
there.
It is also possible that your SDK doesn't have the required
playerglobals.swc. If this is the case, download it from Adobe labs site.
http://download.macromedia.com/pub/labs/flashplayer10/flashplayer10_globalswc.zip


[flexcoders] How to use flash player 10.1 API in Flex?

2010-06-22 Thread markflex2007
I try to use functions in flash player 10.1 API.

The problem for me is I can not use 10.1 classes

I try the following statement

import flash.events.TransformGestureEvent;

But Flex can not find "TransformGestureEvent".

Please let me know how to fix this.Thanks a lot

Mark



Re: [flexcoders] FocusManager chillHideHandler Error 1009 workaround ?

2010-06-22 Thread Stephane Guyot

Alex,

I've added   systemManager.addEventListener(FlexEvent.HIDE, hideEventFilter, 
true)
on the top-level window  placed in a PopUpAnchor ( and  containing checkboxes, 
legends , group,  scroller)  and try to stop  HIDE event,  causing troubles in 
FocusManager.
This tips prevents many  exceptions, I see it in logs ..., but sometimes 
SparkSkin of a scroller still produce the exception :-/
I don't undertand why, the scroller is in the displayList of the top 
level-window but i'm not listening the Hide event, and then don't do 
stopImmediatePropagation.

One more idea ?

Thanks,
Stephane


TypeError: Error #1009: Il est impossible d'accéder à la propriété ou à la 
méthode d'une référence d'objet nul.

at 
mx.managers::FocusManager/childHideHandler()[E:\dev\4.x\frameworks\projects\framework\src\mx\managers\FocusManager.as:1759]

at flash.events::EventDispatcher/dispatchEventFunction()

at flash.events::EventDispatcher/dispatchEvent()

at 
mx.core::UIComponent/dispatchEvent()[E:\dev\4.x\frameworks\projects\framework\src\mx\core\UIComponent.as:12528]

at 
mx.core::UIComponent/setVisible()[E:\dev\4.x\frameworks\projects\framework\src\mx\core\UIComponent.as:3088]

at mx.core::UIComponent/set 
visible()[E:\dev\4.x\frameworks\projects\framework\src\mx\core\UIComponent.as:3047]

at spark.components.supportClasses::ScrollerLayout/set 
vsbVisible()[E:\dev\4.x\frameworks\projects\spark\src\spark\components\supportClasses\ScrollerLayout.as:189]

at 
spark.components.supportClasses::ScrollerLayout/updateDisplayList()[E:\dev\4.x\frameworks\projects\spark\src\spark\components\supportClasses\ScrollerLayout.as:448]

at 
spark.components.supportClasses::GroupBase/updateDisplayList()[E:\dev\4.x\frameworks\projects\spark\src\spark\components\supportClasses\GroupBase.as:1224]

at 
spark.components::Group/updateDisplayList()[E:\dev\4.x\frameworks\projects\spark\src\spark\components\Group.as:899]

at 
spark.skins::SparkSkin/updateDisplayList()[E:\dev\4.x\frameworks\projects\spark\src\spark\skins\SparkSkin.as:191]

at 
mx.core::UIComponent/validateDisplayList()[E:\dev\4.x\frameworks\projects\framework\src\mx\core\UIComponent.as:8709]

at 
mx.managers::LayoutManager/validateDisplayList()[E:\dev\4.x\frameworks\projects\framework\src\mx\managers\LayoutManager.as:663]

at 
mx.managers::LayoutManager/doPhasedInstantiation()[E:\dev\4.x\frameworks\projects\framework\src\mx\managers\LayoutManager.as:736]

at 
mx.managers::LayoutManager/doPhasedInstantiationCallback()[E:\dev\4.x\frameworks\projects\framework\src\mx\managers\LayoutManager.as:1072]



Just do it :  http://www.kiva.org/lender/stephane4127

Le 18 juin 2010 à 19:05, Alex Harui a écrit :

> Try adding a capture phase listener to systemManager.
> 
> systemManager.addEventListener(FlexEvent.HIDE, hideEventFilter, true);
> 
> private function hideEventFilter(event:FlexEvent):void
> {
> if (event.target.stage == null)
> event.stopImmediatePropagation();
> }
> 
> 
> On 6/18/10 2:56 AM, "Stephane Guyot"  wrote:
> 
>> 
>> Alex,
>> 
>> yes the ViewStack is newly destroyed.
>> I use PopUpAnchor to show/hide Chart Legend, the bug is not clearly 
>> reproductible, somtimes it appears, sometimes no trouble.
>> 
>> I'm still looking for a workaround. What should i do ? Replace PopUpAnchor 
>> and use PopUpManager ?
>> Is it possible to plug my own FocusManager and a try/catch to hide the 
>> exception ?
>> 
>> ViewStack, CheckBox and this morning I've got a new version with Group :
>> 
>> TypeError: Error #1009: Il est impossible d'accéder à la propriété ou à la 
>> méthode d'une référence d'objet nul.
>> 
>> at 
>> mx.managers::FocusManager/childHideHandler()[E:\dev\4.x\frameworks\projects\framework\src\mx\managers\FocusManager.as:1759]
>> 
>> at flash.events::EventDispatcher/dispatchEventFunction()
>> 
>> at flash.events::EventDispatcher/dispatchEvent()
>> 
>> at 
>> mx.core::UIComponent/dispatchEvent()[E:\dev\4.x\frameworks\projects\framework\src\mx\core\UIComponent.as:12528]
>> 
>> at 
>> mx.core::UIComponent/setVisible()[E:\dev\4.x\frameworks\projects\framework\src\mx\core\UIComponent.as:3088]
>> 
>> at mx.core::UIComponent/set 
>> visible()[E:\dev\4.x\frameworks\projects\framework\src\mx\core\UIComponent.as:3047]
>> 
>> at spark.components.supportClasses::ScrollerLayout/set 
>> hsbVisible()[E:\dev\4.x\frameworks\projects\spark\src\spark\components\supportClasses\ScrollerLayout.as:105]
>> 
>> at 
>> spark.components.supportClasses::ScrollerLayout/updateDisplayList()[E:\dev\4.x\frameworks\projects\spark\src\spark\components\supportClasses\ScrollerLayout.as:429]
>> 
>> at 
>> spark.components.supportClasses::GroupBase/updateDisplayList()[E:\dev\4.x\frameworks\projects\spark\src\spark\components\supportClasses\GroupBase.as:1224]
>> 
>> at 
>> spark.compon

[flexcoders] Re: Height and Focus | Itemeditor

2010-06-22 Thread ilikeflex
In have implemented itemEditEnd event which is causing the problem. I am 
calling the event.preventDefault(); inside the itemEditEnd. If i remove this 
then i am able to click on another itemeditor which clicking on the blank row. 
I need to call event.preventDefault(); because i am using nested properties as 
datafield.

so how to make this work...Any pointers..

--- In flexcoders@yahoogroups.com, "ilikeflex"  wrote:
>
> Hi
> 
> I am able to solve first one. Second is remaining.
> 
> --- In flexcoders@yahoogroups.com, "ilikeflex"  wrote:
> >
> > Hi
> > 
> > 
> > The challenge i am facing is that the 
> > 
> > 1.rows height are very small and i do not know to increase it.
> > 
> > 2.I am using the itemeditor. If i click the item editor of the first row 
> > then i am not able to click on itemeditor of the second row. If i need to 
> > click on the second row then i need to click on any empty row first then i 
> > am able to click on another row.
> > 
> > In the itmeditor i am using the text input control. I know if i just need 
> > to have textinput control as itemeditor i do not need to make custom 
> > itemeditor. But this is just test case of my complex code.
> > 
> > I am stuck on these for couple of days. Any pointers are highly appreciated.
> > 
> > Please see the code for itemeditor.
> > 
> > 
> > public class SpyGlassFieldEditor extends UIComponent implements 
> > IListItemRenderer, IDropInListItemRenderer
> > {
> > public function SpyGlassFieldEditor(){super();}
> > private var txtInputByUser:TextInput;
> > private var _data:Object;
> > public function get data():Object   {return _data;}
> > public function set data(value:Object):void 
> > {_data=value;invalidateProperties();}
> > private var _listData:BaseListData;
> > private var _dataGrid:CheckBoxDataGrid;
> > private var _dataField:String;
> > public function get listData():BaseListData {return 
> > _listData;  }
> > public function set listData(value:BaseListData):void
> > {
> > _listData=value;
> > _dataGrid=value.owner as CheckBoxDataGrid;
> > _dataField=(value as DataGridListData).dataField;
> > }
> > 
> > override protected function createChildren():void
> > {
> > txtInputByUser=new TextInput();
> > addChild(txtInputByUser);
> > }
> > public function get editValue():String
> > {
> > trace("EditValue " + txtInputByUser.text);
> > return txtInputByUser.text;
> > }
> > 
> > override protected function commitProperties():void
> > {
> > super.commitProperties();
> > }
> > 
> > override protected function updateDisplayList(w:Number, 
> > h:Number):void
> > {
> > super.updateDisplayList(w, h);
> > txtInputByUser.move(0, 0);
> > txtInputByUser.setActualSize(w - 11, h);
> > }
> > }
> > 
> > 
> > 
> > MainApplication.mxml
> > 
> > 
> > http://www.adobe.com/2006/mxml";
> > xmlns:cc="customComponents.*"
> > xmlns:renderer="com.vzw.mpi.rss.mxml.renderer.*"
> > viewSourceURL="srcview/index.html"
> > creationComplete="onCreationComplete(event)">
> > 
> > 
> > 
> > 
> > 
> >  >  sortableColumns="false"
> >  enabled="true"
> >  width="300"
> >  itemEditEnd="onitemEditEnd(event)"
> >  height="100"
> >  dataProvider="{_editCollection}"
> >  editable="true"
> >  variableRowHeight="true"
> >  horizontalScrollPolicy="auto"
> >  verticalScrollPolicy="auto">
> > 
> >  > 
> >dataField="compatableInd.id"
> > 
> >isRequired="true"
> > 
> >isPopupEditor="true"
> > 
> >width="30"
> > 
> >editorDataField="editValue"
> > 
> >labelFunction="labelCompitableInd"
> >

[flexcoders] Re: Height and Focus | Itemeditor

2010-06-22 Thread ilikeflex
Hi

I am able to solve first one. Second is remaining.

--- In flexcoders@yahoogroups.com, "ilikeflex"  wrote:
>
> Hi
> 
> 
> The challenge i am facing is that the 
> 
> 1.rows height are very small and i do not know to increase it.
> 
> 2.I am using the itemeditor. If i click the item editor of the first row then 
> i am not able to click on itemeditor of the second row. If i need to click on 
> the second row then i need to click on any empty row first then i am able to 
> click on another row.
> 
> In the itmeditor i am using the text input control. I know if i just need to 
> have textinput control as itemeditor i do not need to make custom itemeditor. 
> But this is just test case of my complex code.
> 
> I am stuck on these for couple of days. Any pointers are highly appreciated.
> 
> Please see the code for itemeditor.
> 
> 
> public class SpyGlassFieldEditor extends UIComponent implements 
> IListItemRenderer, IDropInListItemRenderer
>   {
>   public function SpyGlassFieldEditor(){super();}
>   private var txtInputByUser:TextInput;
>   private var _data:Object;
>   public function get data():Object   {return _data;}
>   public function set data(value:Object):void 
> {_data=value;invalidateProperties();}
>   private var _listData:BaseListData;
>   private var _dataGrid:CheckBoxDataGrid;
>   private var _dataField:String;
>   public function get listData():BaseListData {return 
> _listData;  }
>   public function set listData(value:BaseListData):void
>   {
>   _listData=value;
>   _dataGrid=value.owner as CheckBoxDataGrid;
>   _dataField=(value as DataGridListData).dataField;
>   }
>   
>   override protected function createChildren():void
>   {
>   txtInputByUser=new TextInput();
>   addChild(txtInputByUser);
>   }
>   public function get editValue():String
>   {
>   trace("EditValue " + txtInputByUser.text);
>   return txtInputByUser.text;
>   }
> 
>   override protected function commitProperties():void
>   {
>   super.commitProperties();
>   }
> 
>   override protected function updateDisplayList(w:Number, 
> h:Number):void
>   {
>   super.updateDisplayList(w, h);
>   txtInputByUser.move(0, 0);
>   txtInputByUser.setActualSize(w - 11, h);
>   }
>   }
> 
> 
> 
> MainApplication.mxml
> 
> 
> http://www.adobe.com/2006/mxml";
>   xmlns:cc="customComponents.*"
>   xmlns:renderer="com.vzw.mpi.rss.mxml.renderer.*"
>   viewSourceURL="srcview/index.html"
>   creationComplete="onCreationComplete(event)">
> 
>   
>   
>   
> 
>   sortableColumns="false"
>enabled="true"
>width="300"
>itemEditEnd="onitemEditEnd(event)"
>height="100"
>dataProvider="{_editCollection}"
>editable="true"
>variableRowHeight="true"
>horizontalScrollPolicy="auto"
>verticalScrollPolicy="auto">
>   
>  
>dataField="compatableInd.id"
>   
>isRequired="true"
>   
>isPopupEditor="true"
>   
>width="30"
>   
>editorDataField="editValue"
>   
>labelFunction="labelCompitableInd"
>   
>itemEditor="customComponents.datagrid.itemeditor.SpyGlassFieldEditor"/>
>   
>   
> 
>




[flexcoders] Flash Player 10.1 intermittently locks the log file

2010-06-22 Thread Oleg Sivokon
Hi, does anyone else experience the same thing? Having to close-open all
browser windows only to be able to remove old traces from the log
is extraordinarily annoying. This was a bug in AIR once ago, now it happens
with both AIR and player.


[flexcoders] Height and Focus | Itemeditor

2010-06-22 Thread ilikeflex
Hi


The challenge i am facing is that the 

1.rows height are very small and i do not know to increase it.

2.I am using the itemeditor. If i click the item editor of the first row then i 
am not able to click on itemeditor of the second row. If i need to click on the 
second row then i need to click on any empty row first then i am able to click 
on another row.

In the itmeditor i am using the text input control. I know if i just need to 
have textinput control as itemeditor i do not need to make custom itemeditor. 
But this is just test case of my complex code.

I am stuck on these for couple of days. Any pointers are highly appreciated.

Please see the code for itemeditor.


public class SpyGlassFieldEditor extends UIComponent implements 
IListItemRenderer, IDropInListItemRenderer
{
public function SpyGlassFieldEditor(){super();}
private var txtInputByUser:TextInput;
private var _data:Object;
public function get data():Object   {return _data;}
public function set data(value:Object):void 
{_data=value;invalidateProperties();}
private var _listData:BaseListData;
private var _dataGrid:CheckBoxDataGrid;
private var _dataField:String;
public function get listData():BaseListData {return 
_listData;  }
public function set listData(value:BaseListData):void
{
_listData=value;
_dataGrid=value.owner as CheckBoxDataGrid;
_dataField=(value as DataGridListData).dataField;
}

override protected function createChildren():void
{
txtInputByUser=new TextInput();
addChild(txtInputByUser);
}
public function get editValue():String
{
trace("EditValue " + txtInputByUser.text);
return txtInputByUser.text;
}

override protected function commitProperties():void
{
super.commitProperties();
}

override protected function updateDisplayList(w:Number, 
h:Number):void
{
super.updateDisplayList(w, h);
txtInputByUser.move(0, 0);
txtInputByUser.setActualSize(w - 11, h);
}
}



MainApplication.mxml


http://www.adobe.com/2006/mxml";
xmlns:cc="customComponents.*"
xmlns:renderer="com.vzw.mpi.rss.mxml.renderer.*"
viewSourceURL="srcview/index.html"
creationComplete="onCreationComplete(event)">















Re: [flexcoders] Re: subclassing DataGrid

2010-06-22 Thread Tom Chiverton
On Tuesday 22 Jun 2010 14:51:53 you wrote:
> can you please elaborate for a newbie?

You're making a new DataGrid that will reuse the existing DataGridColumn. 
You're new DataGrid will have it's own column property.
So you need to prefix MyBetterDataGrid and 'columns' with you're namespace, 
but keep the DataGridColumn's themselves in the default 'mx' namespace.

-- 
Tom Chiverton
Helping to economically empower value-added holistic platforms as part of the 
IT team of the year 2010, '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.

[flexcoders] Re: subclassing DataGrid

2010-06-22 Thread tex_learning_flex
Alex,

can you please elaborate for a newbie?

thanks,

Tex

--- In flexcoders@yahoogroups.com, Alex Harui  wrote:
>
> Because all property names are in the same namespace as the component.
> 
> 
> 
>  
> 
> 
> 
> On 6/21/10 1:47 PM, "mitchgrrt"  wrote:
> 
> 
> 
> 
> 
> 
> I have:
> 
> 
>  
>  
> 
> and am getting the error message:
> 
> Could not resolve  to a component implementation
> 
> MyBetterDataGrid extends DataGrid.  Why isn't the compiler letting me declare 
> the columns?  Is there a way to do this?  Thanks.
> 
> 
> 
> 
> 
> 
> --
> Alex Harui
> Flex SDK Team
> Adobe System, Inc.
> http://blogs.adobe.com/aharui
>




[flexcoders] Re: word stops

2010-06-22 Thread Jesse Warden
Apparently here is a fix:

http://www.visible-form.com/blog/mac-eclipse-word-boundary-issue-fix/

On Thu, Jun 17, 2010 at 1:43 PM, Jesse Warden wrote:

> It appears upgrading to the latest Java on my Mac has affected my ability
> to tab & double-click for certain word stops.  Things like : and other
> symbols (. still works) that used to stop a double click selection or a tab
> no longer do.  Others have had the same experience as well and we all
> believe it's the latest update to Java on the Mac.
>
> Any solutions? (Yes, I'm using FDT instead of Flash Builder until I figure
> this out... good bye Library projects... I miss you .)
>


[flexcoders] Re: subclassing DataGrid

2010-06-22 Thread mitchgrrt
Thanks!  Totally logical now that I see it.  But not apparent from any docs 
I've ever read.  Before asking I Googled and found other people with the same 
problem, but not the answer.  Thanks again.

--- In flexcoders@yahoogroups.com, Alex Harui  wrote:
>
> Because all property names are in the same namespace as the component.
> 
> 
> 
>  
> 
> 
> 
> On 6/21/10 1:47 PM, "mitchgrrt"  wrote:
> 
> 
> 
> 
> 
> 
> I have:
> 
> 
>  
>  
> 
> and am getting the error message:
> 
> Could not resolve  to a component implementation
> 
> MyBetterDataGrid extends DataGrid.  Why isn't the compiler letting me declare 
> the columns?  Is there a way to do this?  Thanks.
> 
> 
> 
> 
> 
> 
> --
> Alex Harui
> Flex SDK Team
> Adobe System, Inc.
> http://blogs.adobe.com/aharui
>




[flexcoders] Spark List item 0 not visible

2010-06-22 Thread fusionpage
Strange.  DataProvider contains an item at zero, but it doesn't appear visible 
in the list.  Selecting the item works fine and the data is there... it is just 
not visible.  Is this a known bug?  It occurs with/without the custom skinClass.


Any ideas?


Don










[flexcoders] Natively drag and drop pdf text

2010-06-22 Thread tomeastmond
I've been trying to get text from an unprotected pdf dragged/dropped into an 
AIR application without any luck. Despite the condition:
event.clipboard.hasFormat(ClipboardFormats.TEXT_FORMAT)
returning true, 
event.clipboard.getData(ClipboardFormats.TEXT_FORMAT)
returns null.

I can drag the same text into wordpad and have it shown correctly. Someone on 
the list suggested dragging it into notepad to see what it looks like but 
notepad doesn't accept the drag/drop. I've experimented with other text formats 
and they seem to work fine. I've even tried to pull out the data with 
RICH_TEXT_FORMAT but no luck thus far.

Any help or ideas greatly appreciated,

Tom



[flexcoders] Blazdes Problem with Maven ----Any Help please :( :(

2010-06-22 Thread Nini7016 Nini7016

Hello, 


I worked with an application Flex that uses Blazdes. In our lib there are these 
librairees : 

  - flex-messaging-common.jar
  - flex-messaging-core.jar
  - flex-messaging-opt.jar
  - flex-messaging-proxy.jar
  - flex-messaging-remoting.jar
  - commons-httpclient-3.0.1.jar
  - commons-logging.jar
  - concurrent.jar


We
modified our application in order to use Maven, so we have use removed
the librairis located in the folder lib od Webapp and in the pom.xml we
added these dependecies 

   

com.adobe.blazeds
blazeds-common
3.0.0.544



com.adobe.blazeds
blazeds-core
1.0-beta1

  
 
com.adobe.blazeds
blazeds-opt
3.0.0.544


com.adobe.blazeds
blazeds-proxy
3.0.0.544


com.adobe.blazeds
blazeds-proxy
3.2.0.3978


com.adobe.blazeds
blazeds-remoting
3.0.0.544




When we runned our application with Maven, we have this error 

Error during connexion with server : 
(mx.messaging.messages::ErrorMessage)#0
  body = (Object)#1
  clientId = (null)
  correlationId = "9B4657AA-C406-F588-5157-5EA0140B7503"
  destination = ""
  extendedData = (null)
  faultCode = "Client.Error.MessageSend"
 
faultDetail = "Channel.Connect.Failed error NetConnection.Call.Failed:
HTTP: Status 404: url:
'http://localhost:8080/orchestradesigner/messagebroker/amf'"
  faultString = "Send failed"
  headers = (Object)#2
  messageId = "8E185A4B-C1C2-3D1A-F9B9-5EA0156399C4"
  rootCause = (mx.messaging.events::ChannelFaultEvent)#3
bubbles = false
cancelable = false
channel = (mx.messaging.channels::AMFChannel)#4
  authenticated = false
  channelSets = (Array)#5
  connected = false
  connectTimeout = -1
  enableSmallMessages = true
  endpoint = "http://localhost:8080/orchestradesigner/messagebroker/amf";
  failoverURIs = (Array)#6
  id = "my-amf"
  mpiEnabled = false
  netConnection = (flash.net::NetConnection)#7
client = (mx.messaging.channels::AMFChannel)#4
connected = false
objectEncoding = 3
proxyType = "none"
uri = "http://localhost:8080/orchestradesigner/messagebroker/amf";
  piggybackingEnabled = false
  polling = false
  pollingEnabled = true
  pollingInterval = 0
  protocol = "http"
  reconnecting = false
  recordMessageSizes = false
  recordMessageTimes = false
  requestTimeout = -1
  uri = 
"http://{server.name}:{server.port}/orchestradesigner/messagebroker/amf";
  url = 
"http://{server.name}:{server.port}/orchestradesigner/messagebroker/amf";
  useSmallMessages = false
channelId = "my-amf"
connected = false
currentTarget = (mx.messaging.channels::AMFChannel)#4
eventPhase = 2
faultCode = "Channel.Connect.Failed"
   
faultDetail = "NetConnection.Call.Failed: HTTP: Status 404: url:
'http://localhost:8080/orchestradesigner/messagebroker/amf'"
faultString = "error"
reconnecting = false
rejected = false
rootCause = (Object)#8
  code = "NetConnection.Call.Failed"
  description = "HTTP: Status 404"
  details = "http://localhost:8080/orchestradesigner/messagebroker/amf";
  level = "error"
target = (mx.messaging.channels::AMFChannel)#4
type = "channelFault"
  timestamp = 0
  timeToLive = 0




I am not able to resolve this problem, any boday has seen that before :( please 
??
Thank you very very much 

  
_
Installez gratuitement les nouvelles Emoch'ticones !
http://www.ilovemessenger.fr/emoticones/telecharger-emoticones-emochticones.aspx

[flexcoders] Blazdes Problem with Maven -----Any help please :( :(

2010-06-22 Thread Nini7016 Nini7016

Hello, 


I worked with an application Flex that uses Blazdes. In our lib there are these 
librairees : 

  - flex-messaging-common.jar
  - flex-messaging-core.jar
  - flex-messaging-opt.jar
  - flex-messaging-proxy.jar
  - flex-messaging-remoting.jar
  - commons-httpclient-3.0.1.jar
  - commons-logging.jar
  - concurrent.jar


We modified our application in order to use Maven, so we have use removed the 
librairis located in the folder lib od Webapp and in the pom.xml we added these 
dependecies 

   

com.adobe.blazeds
blazeds-common
3.0.0.544



com.adobe.blazeds
blazeds-core
1.0-beta1

  
 
com.adobe.blazeds
blazeds-opt
3.0.0.544


com.adobe.blazeds
blazeds-proxy
3.0.0.544


com.adobe.blazeds
blazeds-proxy
3.2.0.3978


com.adobe.blazeds
blazeds-remoting
3.0.0.544




When we runned our application with Maven, we have this error 

Error during connexion with server : 
(mx.messaging.messages::ErrorMessage)#0
  body = (Object)#1
  clientId = (null)
  correlationId = "9B4657AA-C406-F588-5157-5EA0140B7503"
  destination = ""
  extendedData = (null)
  faultCode = "Client.Error.MessageSend"
  faultDetail = "Channel.Connect.Failed error NetConnection.Call.Failed: HTTP: 
Status 404: url: 'http://localhost:8080/orchestradesigner/messagebroker/amf'"
  faultString = "Send failed"
  headers = (Object)#2
  messageId = "8E185A4B-C1C2-3D1A-F9B9-5EA0156399C4"
  rootCause = (mx.messaging.events::ChannelFaultEvent)#3
bubbles = false
cancelable = false
channel = (mx.messaging.channels::AMFChannel)#4
  authenticated = false
  channelSets = (Array)#5
  connected = false
  connectTimeout = -1
  enableSmallMessages = true
  endpoint = "http://localhost:8080/orchestradesigner/messagebroker/amf";
  failoverURIs = (Array)#6
  id = "my-amf"
  mpiEnabled = false
  netConnection = (flash.net::NetConnection)#7
client = (mx.messaging.channels::AMFChannel)#4
connected = false
objectEncoding = 3
proxyType = "none"
uri = "http://localhost:8080/orchestradesigner/messagebroker/amf";
  piggybackingEnabled = false
  polling = false
  pollingEnabled = true
  pollingInterval = 0
  protocol = "http"
  reconnecting = false
  recordMessageSizes = false
  recordMessageTimes = false
  requestTimeout = -1
  uri = 
"http://{server.name}:{server.port}/orchestradesigner/messagebroker/amf";
  url = 
"http://{server.name}:{server.port}/orchestradesigner/messagebroker/amf";
  useSmallMessages = false
channelId = "my-amf"
connected = false
currentTarget = (mx.messaging.channels::AMFChannel)#4
eventPhase = 2
faultCode = "Channel.Connect.Failed"
faultDetail = "NetConnection.Call.Failed: HTTP: Status 404: url: 
'http://localhost:8080/orchestradesigner/messagebroker/amf'"
faultString = "error"
reconnecting = false
rejected = false
rootCause = (Object)#8
  code = "NetConnection.Call.Failed"
  description = "HTTP: Status 404"
  details = "http://localhost:8080/orchestradesigner/messagebroker/amf";
  level = "error"
target = (mx.messaging.channels::AMFChannel)#4
type = "channelFault"
  timestamp = 0
  timeToLive = 0




I am not able to resolve this problem, any boday has seen that before :( please 
??
Thank you very very much 



  
_
Vous voulez regarder la TV directement depuis votre PC ? C'est très simple avec 
Windows 7
http://clk.atdmt.com/FRM/go/229960614/direct/01/

Re: [flexcoders] Best Practice for making sure you're displaying correct data

2010-06-22 Thread Alex Harui
Model-View or MVC.  If all UI widgets are bound to a data model, the should all 
update when the model is changed.


On 6/21/10 6:18 PM, "libbychantel"  wrote:






Hello people

>From time to time I run into this problem which makes me think I am doing 
>something wrong: I have a popup window which receives data and constructs 
>itself. It is reusable across several different windows. However, sometimes on 
>subsequent popups, it shows data from the original popup. Should I be removing 
>all children and forcing reconstruction each time, or something more along the 
>lines of just setting dataproviders to null, that sort of thing? Is there a 
>best practice for this sort of thing in flex?

Thanks,
Libby






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


Re: [flexcoders] Datagrid Column Setting Vertical Gap

2010-06-22 Thread Alex Harui
Should be in pixels.  I think 0 is the default for TextField which is the base 
for DataGridItemRenderer.


On 6/21/10 8:44 PM, "Angelo Anolin"  wrote:






Hi Alex,

On the adobe docs, the default says that it is 0 only for combo box and 2 for 
all others.  What unit is being used here? I set my leading to 0 but the space 
is still noticeably big.  Setting it to -2 somewhat fixed it.

Thanks.

Angelo


From: Alex Harui 
To: "flexcoders@yahoogroups.com" 
Sent: Mon, 21 June, 2010 10:24:54
Subject: Re: [flexcoders] Datagrid Column Setting Vertical Gap




Try “leading”


On 6/21/10 9:17 AM, "Angelo Anolin"  wrote:






Hi FlexCoders,

I have a datagrid where I have set the wrapping to true (wordWrap="true") and 
the row height (variableRowHeight="true").  The text wraps properly, except 
that the Vertical Gap is quite too big.  There is a visible space between the 
lines that were wrapped inside the datagrid.

Is there a way to set the verticalGap property for the datagrid so that the 
data it renders as wrapped text would be quite compressed, instead of having a 
clear and big visible space between its vertical lines?

Checking adobe livedocs does not list any verticalGap property.

Thanks.

angeLo













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


Re: [flexcoders] subclassing DataGrid

2010-06-22 Thread Alex Harui
Because all property names are in the same namespace as the component.



 



On 6/21/10 1:47 PM, "mitchgrrt"  wrote:






I have:


 
 

and am getting the error message:

Could not resolve  to a component implementation

MyBetterDataGrid extends DataGrid.  Why isn't the compiler letting me declare 
the columns?  Is there a way to do this?  Thanks.






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


Re: [flexcoders] AS3 nested groups

2010-06-22 Thread Alex Harui
I don’t see you adding hgWeek’s to a parent.


On 6/21/10 1:52 PM, "Scott"  wrote:






I’m trying to draw a calendar grid using HGroup and VGroup

If I do the follow it draws 7 boxes:


for (var nDay:int = 0; nDay < 7; nDay++)
{
  var bcBox:BorderContainer = new BorderContainer();
  var lblCalText:Label = new Label();
  var vgWeek:VGroup = new VGroup();
  bcBox.height = 100;
  bcBox.width = 133;
  vgWeek.height = 100;
  vgWeek.width = 133;

  lblCalText.text = “test”;
  vgWeek.addElement(lblCalText);
  bcBox.addElement(vgWeek);
  hgTest.addElement(bcBox);
}

...




I was thinking great… No problem…

So I decided to draw 5 weeks worth of boxes so I added in the following code:

for ( var nWeek:int = 0; nWeek < 5; nWeek++)
{

  var hgWeek:HGroup = new HGroup(); // row of Days
  hgWeek.height = 100;
  hgWeek.width = 957;
  hgWeek.x = 25;
  hgWeek.y = 5 + ( nWeek * 100); // shift the row down 100px

for (var nDay:int = 0; nDay < 7; nDay++)
{
var bcBox:BorderContainer = new BorderContainer(); // Box around 
the day
var lblCalText:Label = new Label(); //
var vgWeek:VGroup = new VGroup(); // Days in the Row
bcBox.height = 100;
bcBox.width = 133;
vgWeek.height = 100;
vgWeek.width = 133;

lblCalText.text = “test”;
vgWeek.addElement(lblCalText);
bcBox.addElement(vgWeek);
hgWeek.addElement(bcBox);
  }
}

When I add in the weeks nothing draws.  If I point the last hgTest.addElement 
in then it works just fine…

Any ideas on what I’m doing wrong?

Thanks!





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