[flexcoders] Re: Thick Java Client for LCDS - AIR is too restrictive on Desktop

2008-07-26 Thread Shailesh Mangal
yeah, I spend some time looking at it, its certainly not easy. Any other 
alternatives? I need 
to connect to assembler and get the data pushes to the  java client and execute 
some stuff 
on the desktop. AIR would have been perfect if it was as powerful as Java on 
desktop. 

-Shailesh

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

 By LCDS, you mean DataService in Java? I haven't heard anyone try
 implementing that in Java. I don't think it'll be that easy though
 because, first you need to implement all Channels (or at least one
 that you'll use in your application) in Java and that by itself is not
 trivial. You need to figure out how to make HTTP calls (URLConnection
 vs. HTTPClient), figure out how AMF serialization/deserialization is
 going to work, etc. 
 
 After you have your Channel, you need to implement Producer/Consumer
 so you can do messaging. And finally, you can build DataService on top
 of those. 
 
 -Mete
 
 --- In flexcoders@yahoogroups.com, Shailesh Mangal
 shailesh.mangal@ wrote:
 
  Has java client (thick) for LCDS been tried? Any ideas how can this be
  done.
  
  -Shailesh
 






Re: [flexcoders] Re: Figuring out what was clicked in AdvancedDataGrid

2008-07-26 Thread shaun
Use selectedItem.


whatabrain wrote:
 I'm not quite sure I understand. My dataPrivider is an 
 mx:HierarchicalData object, with an ArrayCollection as its source. 
 The ArrayCollection is an array of arrays. Something like this:
 
 [
   {name=group1, children=[
 {name=item1},
 {name=item2}
 ]
   },
   {name=group2, children=[
 {name=item3},
 {name=item4}
 ]
   }
 ]
 
 If I click on item1 in the grid, I get an rowIndex of 1. What I 
 want to find out is that the click refers to item1, and, if possible, 
 that item1 is contained in group1.
 
 
 --- In flexcoders@yahoogroups.com, Carlos Rovira 
 [EMAIL PROTECTED] wrote:
 I use this code with an ArrayCollection dataProvider.
 I'm using multiple cell selection as well, but you can customize as 
 you
 need:

 var ac:ArrayCollection = dataProvider as ArrayCollection;

  for(var i:Number = 0; i  selectedCells.length; i++) {
 var cell:Object = selectedCells[i];
 var data:Object = ac.getItemAt(cell.rowIndex);
 var dataField:String = columns
 [cell.columnIndex].dataField;
 data[dataField] = ;
 ac.itemUpdated(data, dataField);
 }

 aside, selectedIndex and selectedColumnIndex should give you the 
 indices you
 need to retrieve a itemRenderer or a datapovider's object



 2008/7/25 whatabrain [EMAIL PROTECTED]:

   How can you tell which item in the dataProvider was clicked in 
 an
 AdvancedDataGrid, when using HierarchicalData as the dataProvider?

 I tried using the typical DataGrid method, of saving off the item 
 index
 in itemRollOver, and using it to determine the index of the 
 clicked
 item. However, with AdvancedDataGrid, the row index isn't 
 particularly
 relevant. Or is there some way to convert the row index to the 
 actual
 clicked item in the dataProvider?

  

 
 
 



[flexcoders] Scour.com invite from Rajeshwar Mothe

2008-07-26 Thread Rajeshwar Mothe
Hey,

Did you hear about Scour? It is the next gen search engine with 
Google/Yahoo/MSN results and user comments all on one page. Best of all we get 
paid for using it by earning points with every search, comment and vote. The 
points are redeemable for Visa gift cards! It's like earning credit card or 
airline points just for searching! Hit the link below to join for free and we 
will both get points! 

http://scour.com/invite/rajkishan.m/

I know you'll like it!

- Rajeshwar Mothe


[flexcoders] Re: Flex 3 Preloader broken when using deep linking ?

2008-07-26 Thread Adnan Doric
You are absolutely right, but the preloading part is completely missing :)

Well, maybe it is Flash Player bug, I don't know, but it is very
annoying for deep linking as you can imagine.

I tried to create custom preloader but same thing is happening, there
is no progress events.

Maybe have some kind of workaround to show the progress ?

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

 I saw the initializing progress bar.
 
  
 
 
 
 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
 Behalf Of Adnan Doric
 Sent: Friday, July 25, 2008 12:50 PM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Re: Flex 3 Preloader broken when using deep
 linking ?
 
  
 
 Sorry to bump this, but... am I the only one with this issue ? :)
 
 Even the Flex 3 style explorer have same issue :
 
 1. clear the cache
 2. load
 http://examples.adobe.com/flex3/consulting/styleexplorer/Flex3StyleExplo
 rer.html
 http://examples.adobe.com/flex3/consulting/styleexplorer/Flex3StyleExpl
 orer.html 
 
 You see the preloader
 
 3. clear the cache
 4. load (note the # at the end of the URL)
 http://examples.adobe.com/flex3/consulting/styleexplorer/Flex3StyleExplo
 rer.html#
 http://examples.adobe.com/flex3/consulting/styleexplorer/Flex3StyleExpl
 orer.html 
 
 There is no preloader...
 
 Am I crazy or we have some deep linking incompatibilities ?
 
 --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
 , Adnan Doric astronaute@ wrote:
 
  Hello,
  
  I don't know if this was already discussed so sorry in advance.
  
  After few days of hard debugging, I sadly noted that Flex 3 preloader
  is completely broken while using # in the URL.
  
  It doesn't show at all.
  
  Does anyone have any workarounds as preloading 2Mb without preloader
  is actually real pain ?
  
  Thank you.
 





[flexcoders] Re: Centering Bar Chart labels vertically

2008-07-26 Thread Amy
--- In flexcoders@yahoogroups.com, Tim Hoff [EMAIL PROTECTED] wrote:

 
 Ok, so we're talking about a vertical axis.  .
 
 * For a vertical axis, by default the labels are vertically 
aligned
 to the tick marks (center).For these, you can adjust the label
 position (up/down) slightly with the labelAlign property; on the 
axis
 tag.  This still might not get you what you want though.  Hard to 
tell
 without seeing an image.
 * For a horizontal axis, use the labelGap property on the axis 
tag to
 move the label down; from the axis line.
 * And, of course, you can always create your own axisRenderer.  
This
 can get a little dicey though.
 
 I'd try labelAlign before moving on to creating a custom 
axisRenderer. I
 agree, the chart framework is a substantial step in a positive
 direction.  I think that Ely put it nicely here:

No, I am talking about the labels WITHIN the bar.  I've posted a 
graphic here, since the ascii art got mangled despite my best 
efforts: http://www.magnoliamultimedia.com/images/labels.jpg.  This 
is the BarSeries, not the Axis. In Eli's chart explorer, he does this 
with a custom renderer, but it seems to me that it shouldn't be 
necessary...why would the team choose an ugly alignment for the 
default and give you no way to change it?  

I've seen places on people's blogs and even in the Flex 3 Cookbook 
where people used bunches of code to do something you could do with 
CSS or a property on the control, so just because there is an example 
on someone's website (no matter how respected) that solves a problem 
with a custom renderer, that doesn't mean that the custom renderer is 
the only or even the best way to solve the problem. 

Thanks;

Amy



[flexcoders] Re: Thick Java Client for LCDS - AIR is too restrictive on Desktop

2008-07-26 Thread meteatamel
There's no easy way to get DataService type of functionality in Java
but you can certainly do Flash remoting (flash.net.NetConnection) type
of functionality in Java using BlazeDS's AMFConnection. It's a new
mini-feature that is currently being tested but it's in BlazeDS source
tree. 

So, you can expose your Assembler as a remoting destination in
BlazeDS/LCDS and then you can use AMFConnection in your Java code to
make remoting calls to that destination. You'll probably need to have
a timer of some sort to do polling so the client can receive updates
in certain time intervals.

-Mete

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

 yeah, I spend some time looking at it, its certainly not easy. Any
other alternatives? I need 
 to connect to assembler and get the data pushes to the  java client
and execute some stuff 
 on the desktop. AIR would have been perfect if it was as powerful as
Java on desktop. 
 
 -Shailesh
 
 --- In flexcoders@yahoogroups.com, meteatamel meteatamel@ wrote:
 
  By LCDS, you mean DataService in Java? I haven't heard anyone try
  implementing that in Java. I don't think it'll be that easy though
  because, first you need to implement all Channels (or at least one
  that you'll use in your application) in Java and that by itself is not
  trivial. You need to figure out how to make HTTP calls (URLConnection
  vs. HTTPClient), figure out how AMF serialization/deserialization is
  going to work, etc. 
  
  After you have your Channel, you need to implement Producer/Consumer
  so you can do messaging. And finally, you can build DataService on top
  of those. 
  
  -Mete
  
  --- In flexcoders@yahoogroups.com, Shailesh Mangal
  shailesh.mangal@ wrote:
  
   Has java client (thick) for LCDS been tried? Any ideas how can
this be
   done.
   
   -Shailesh
  
 





[flexcoders] Re: Centering Bar Chart labels vertically

2008-07-26 Thread Tim Hoff

Hi Amy,

I guess that everyone has their own perspective.  Like you, I used to
complain that the flex styles weren't as comprehensive as the .net
controls that I was used to at the time.  However, looking at it from an
80-20 point of view, the basics are there; especially for charts.  The
point is that I'll gladly sacrifice some built-in properties, if the
framework supports rolling my own components and/or extending; to
customize properties.  Sometimes, it takes more time and effort to
complain about something, than it does to just create it yourself. 
Here's a solution that took very little time to create:

Best Regards,
-TH

?xml version=1.0?
!-- charts/BasicBar.mxml --
mx:Application xmlns:mx=http://www.adobe.com/2006/mxml;
mx:Script![CDATA[
import mx.collections.ArrayCollection;
[Bindable]
public var expenses:ArrayCollection = new ArrayCollection([
{Month:Jan, Profit:2000, Expenses:1500},
{Month:Feb, Profit:1000, Expenses:200},
{Month:Mar, Profit:1500, Expenses:500}
]);
]]/mx:Script
mx:Panel title=Bar Chart
mx:BarChart id=myChart dataProvider={expenses} showDataTips=true
mx:verticalAxis
mx:CategoryAxis
dataProvider={expenses}
categoryField=Month/
/mx:verticalAxis
mx:series
mx:BarSeries
yField=Month
xField=Profit
displayName=Profit
labelPosition=none
itemRenderer=LabeledRenderer
fills=[0x984EA3,0x4DAF4A,0x377DB8]
color=#00/
/mx:series
/mx:BarChart
/mx:Panel
/mx:Application

___
Renderer

___

package {



import flash.display.Graphics;
import flash.geom.Rectangle;
import mx.charts.ChartItem;
import mx.charts.chartClasses.GraphicsUtilities;
import mx.core.IDataRenderer;
import mx.graphics.IFill;
import mx.graphics.IStroke;
import mx.skins.ProgrammaticSkin;
import mx.controls.Label;
import mx.core.UIComponent;
import mx.charts.BarChart;
import mx.charts.series.items.BarSeriesItem;



public class LabeledRenderer extends UIComponent implements
IDataRenderer {

private var _label:Label;



public function LabeledRenderer():void
{
super();

_label = new Label();
addChild(_label);
_label.setStyle(color,getStyle(color));
}

private var _chartItem:ChartItem;



public function get data():Object{
return _chartItem;
}



public function set data(value:Object):void {

if (_chartItem == value) return;

_chartItem = ChartItem(value);

if(_chartItem != null)
_label.text = BarSeriesItem(_chartItem).xValue.toString();
}



private static var fills:Array = [];



override protected function
updateDisplayList(unscaledWidth:Number,unscaledHeight:Number):void{

super.updateDisplayList(unscaledWidth, unscaledHeight);



fills = getStyle(fills);

var fill:Number = (_chartItem == null)? 0:fills[_chartItem.index %
fills.length];
var rc:Rectangle = new Rectangle(0, 0, width , height );



var g:Graphics = graphics;
g.clear();
g.moveTo(rc.left,rc.top);
g.beginFill(fill);
g.lineTo(rc.right,rc.top);
g.lineTo(rc.right,rc.bottom);
g.lineTo(rc.left,rc.bottom);
g.lineTo(rc.left,rc.top);
g.endFill();



_label.setActualSize(_label.getExplicitOrMeasuredWidth(),_label.getExpli\
citOrMeasuredHeight());
_label.move(unscaledWidth/2 - _label.getExplicitOrMeasuredWidth()/2,
unscaledHeight/2 - _label.getExplicitOrMeasuredHeight()/2);

}



}
}


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

 --- In flexcoders@yahoogroups.com, Tim Hoff TimHoff@ wrote:
 
 
  Ok, so we're talking about a vertical axis. .
 
  * For a vertical axis, by default the labels are vertically
 aligned
  to the tick marks (center). For these, you can adjust the label
  position (up/down) slightly with the labelAlign property; on the
 axis
  tag. This still might not get you what you want though. Hard to
 tell
  without seeing an image.
  * For a horizontal axis, use the labelGap property on the axis
 tag to
  move the label down; from the axis line.
  * And, of course, you can always create your own axisRenderer.
 This
  can get a little dicey though.
 
  I'd try labelAlign before moving on to creating a custom
 axisRenderer. I
  agree, the chart framework is a substantial step in a positive
  direction. I think that Ely put it nicely here:

 No, I am talking about the labels WITHIN the bar. I've posted a
 graphic here, since the ascii art got mangled despite my best
 efforts: http://www.magnoliamultimedia.com/images/labels.jpg. This
 is the BarSeries, not the Axis. In Eli's chart explorer, he does this
 with a custom renderer, but it seems to me that it shouldn't be
 necessary...why would the team choose an ugly alignment for the
 default and give you no way to change it?

 I've seen places on people's blogs and even in the Flex 3 Cookbook
 where people used bunches of code to do something you could do with
 CSS or a property on the control, so just because there is an example
 on someone's website (no matter how respected) that solves a problem
 with a custom renderer, that doesn't mean that the custom renderer is
 the only or 

[flexcoders] Re: PropertyChangeEvent problems in ArrayCollection

2008-07-26 Thread lampei
Thanks!  I'll try typed classes next.  I had wondered (but didn't try
it) if the generic object was somehow involved.

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

 Different data objects may set the oldValue/newValue correctly.  I'm not
 sure what kind of generic object you are using for testing, but it may
 not be generating the info when some other kind of object (maybe a
 [Bindable] or [Managed] object will.  If the item is a plain old Object,
 the DG does not generate oldValue/newValue info.  You can subclass a  DG
 so it will, but if you know in production mode you'll be working with
 server objects, they are more likely to provide more information
 
  
 
 
 
 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
 Behalf Of lampei
 Sent: Friday, July 25, 2008 2:15 PM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Re: PropertyChangeEvent problems in
 ArrayCollection
 
  
 
 That's the problem I'm having...the property is dynamic and can be
 filled with whatever data they pass to the arrayCollection, such as
 filling it with a query they receive from their back end, or just
 passing in generic objects (which is what I'm using to test).
 
 They could then, perhaps, bind this arraycollection to an editable
 datagrid, and the user will edit one item in one of the rows, which
 will update the arrayCollection, but this update does not pass what
 the oldValue was, so I'm unable to get an accurate history. And this
 is where I find myself currently.
 
 If I had access to the datagrid, then I'd be able to grab the data
 before it was passed back to arraycollection, but I'm trying to make
 the arraycollection as loosely coupled as possible, as really don't
 want to put it directly into a datagrid.
 
 --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
 , Alex Harui aharui@ wrote:
 
  What is the property that is changing? I think you may need to have
  your own code generate the proper change event.
  
  
  
  
  
  From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
 [mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
 ] On
  Behalf Of lampei
  Sent: Friday, July 25, 2008 7:02 AM
  To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com 
  Subject: [flexcoders] PropertyChangeEvent problems in ArrayCollection
  
  
  
  I am trying to keep track of changes to an ArrayCollection. I have so
  far got all of the CollectionEventKind working except for UPDATE. It
  actually does add that a change was made for UPDATE, however, it
  doesn't actually save what the change was that was made.
  
  e.g. CollectionChange fires, and I store it in an ArrayCollection.
  However, when I debug what was actually stored, I get a
  CollectionEvent, with an items array of 1 PropertyChangeEvent, which
  has a source object with the new values and shows the correct property
  that was changed, however, both the newValue and oldValue properties
  of the PropertyChangeEvent are both null.
  
  I'm trying to figure out how to get at the data before it is changed.
  I capture the CollectionChange event, but at that point, the data has
  already changed (as is evidenced by the PropertyChangeEvent showing
  the new values and none of the old values).
  
  Does anyone know what I can override to capture the changes before
  they are actually made to the ArrayCollection itself. This way I
  could even use my own createUpdateEvent to store the values.
  
  Thanks.
  Gareth
 





[flexcoders] Flex overlay over HTML

2008-07-26 Thread Easow Jacob
Hi,

 I have a *HTML* page with a small *flex* app embedded into it.

When you click on the *flex* app, I want an *overlay* to come *over* page
showing my app.


Just wondering how I would go about that.

Or if there is a way to have the original small map SWF resize to show the
app.

Cheers
Mathew


-- 
Mathew Easow Jacob,
Bangalore.
+91-9886979038


[flexcoders] Re: Flex overlay over HTML

2008-07-26 Thread Tim Hoff

Hi Easow,

You could just use an IFrame.

-TH

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

 Hi,

 I have a *HTML* page with a small *flex* app embedded into it.

 When you click on the *flex* app, I want an *overlay* to come *over*
page
 showing my app.


 Just wondering how I would go about that.

 Or if there is a way to have the original small map SWF resize to show
the
 app.

 Cheers
 Mathew


 --
 Mathew Easow Jacob,
 Bangalore.
 +91-9886979038






[flexcoders] Re: LCDS data synchronisation problem

2008-07-26 Thread fkolberg
Hi Jeff,

I have got a more verbose output:

'cds-consumer-insync-null' consumer set destination to 'insync'.
New DataService for destination: insync
'D0C16D6A-7104-39A3-B839-6054DE1ED615' producer set destination to
'insync'.
Creating shared data store with id: ':true' for destination: 'insync'
Adding data service: insync to the data store: :true initialized: false
Changing channelSet of a shared data store.  It is now used also for
id: rtmp://
localhost:2037:true
'my-rtmp' channel endpoint set to rtmp://localhost:2037
Changing channelSet of a shared data store.  It is now used also for
id: my-rtmp
:true
start network monitor
handleMonitorStatus() monitor.available: true
Connecting...
'my-rtmp' channel got connect attempt status. (Object)#0
  code = NetConnection.Connect.Success
  description = Connection succeeded.
  details = (null)
  DSMessagingVersion = 1
  id = D62F3568-062C-8CD2-6151-47A42CD1D145
  level = status
  objectEncoding = 3
'my-rtmp' channel is connected.
'my-rtmp' channel sending message:
(mx.messaging.messages::CommandMessage)
  body=(Object)#0
  clientId=(null)
  correlationId=
  destination=insync
  headers=(Object)#0
  messageId=800114A8-F29F-ACD1-B922-6054DFC4CC31
  operation=client ping
  timeToLive=0
  timestamp=0
'cds-consumer-insync-null' consumer connected.
'ds-producer-insync' producer connected.
ds.connect(): success
No offline changes to apply
Filling...
DataService.fill() called for destination: insync with args: []
'ds-producer-insync' producer channel disconnected.
Error: Unable to initialize destinations on server: [insync]
at
anonymous()[C:\depot\flex\branches\enterprise_corfu_rc\frameworks\p
rojects\data\src\mx\data\DataStore.as:2347]
at
anonymous()[C:\depot\flex\branches\enterprise_corfu_rc\frameworks\p
rojects\data\src\mx\data\DataStore.as:2363]
at flash.events::EventDispatcher/dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at
mx.data::SQLDBCache/dispatchStatusEvent()[C:\depot\flex\branches\ente
rprise_corfu_rc\frameworks\projects\airfds\src\mx\data\SQLDBCache.as:540]
at Function/http://adobe.com/AS3/2006/builtin::apply()
at
mx.rpc::AsyncDispatcher/timerEventHandler()[E:\dev\3.0.x\frameworks\p
rojects\rpc\src\mx\rpc\AsyncDispatcher.as:50]
at flash.utils::Timer/_timerDispatch()
at flash.utils::Timer/tick()

the line Creating shared data store with id: ':true' for destination:
'insync' looks like an error somewhere, what is this data store :true?

Any idea?
thanks for your advice and help.
Florence




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

 This error occurs for a variety of problems that can occur when
initializing the destination.  You may not have defined that
destination in the server's configuration or there can be a problem
with that destination's configuration.   If you add the tag:
mx:TraceTarget/ it will usually provide additional information in
the flashlog.txt just before the message is shown.
 
 It will also log the destinations the client is configured with in
the flashlog.
 
 Jeff
 
 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED]
On Behalf Of fkolberg
 Sent: Friday, July 25, 2008 9:16 AM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] LCDS data synchronisation problem
 
 
 Hi,
 
 I have installed the insync app from

http://coenraets.org/blog/2008/05/insync-automatic-offline-data-synchronization-in-air-using-lcds-26
 
 and consistently get cannot fill error message.
 
 I then got the source code and compiled the files under flex builder
 3. I ran the debugger and used trace() to output the messages.
 the error occurs when the dataService invokes fill().
 
 I get the following error message:
 Error: Unable to initialize destinations on server: [insync]
 at

anonymous()[C:\depot\flex\branches\enterprise_corfu_rc\frameworks\projects\data\src\mx\data\DataStore.as:2347]
 at

anonymous()[C:\depot\flex\branches\enterprise_corfu_rc\frameworks\projects\data\src\mx\data\DataStore.as:2363]
 at flash.events::EventDispatcher/dispatchEventFunction()
 at flash.events::EventDispatcher/dispatchEvent()
 at

mx.data::SQLDBCache/dispatchStatusEvent()[C:\depot\flex\branches\enterprise_corfu_rc\frameworks\projects\airfds\src\mx\data\SQLDBCache.as:540]
 at Function/http://adobe.com/AS3/2006/builtin::apply()
 at

mx.rpc::AsyncDispatcher/timerEventHandler()[E:\dev\3.0.x\frameworks\projects\rpc\src\mx\rpc\AsyncDispatcher.as:50]
 at flash.utils::Timer/_timerDispatch()
 at flash.utils::Timer/tick()
 
 I have no idea what it means and does not really understand where the
 info related to anonymous and the Folder were taken from.
 
 Can anybody help please?
 thanks
 florence





[flexcoders] chart LineSeries.form=horizontal - how to tweek behaviour of horizontal?

2008-07-26 Thread chigwell23
Setting form=horizontal for a chart LineSeries e.g.

mx:LineSeries id =mySeries1 
  form = horizontal
/mx:LineSeries 

horizontal: Draws only the vertical line from the x-coordinate of
the first point to the x-coordinate of the second point at the
y-coordinate of the second point. Repeats this for each data point.

I want to adjust the x-coordinate starting position of the segments,
and rather than write a custom item renderer thought it would be
efficient to adjust the behaviour of horizontal However I am looking
through the code of LineSeries.as, have found 

[Style(name=form, type=String,
enumeration=segment,step,reverseStep,vertical,horizontal,curve,
inherit=no)]

and not sure where to go from here? TIA,

Mic.





RE: [flexcoders] Re: LCDS data synchronisation problem

2008-07-26 Thread Jeff Vroom
Hi Florence,

Thanks for sending that along... we are missing a clear error message for 
whatever your problem is - sorry about that.  I have tried a few things here to 
try and get that exact error and can't seem to reproduce it here myself either.

There are two ways to get configuration into the Flex client.  You can either 
compile your Flex app directly against the services-config.xml file and it 
will compile in a subset of the server's configuration into the player, or if 
you define a ChannelSet on the client you can download the config at runtime 
after the client connects.

It appears that you are getting the configuration at runtime, not compile time 
so probably if you set the option to compile against services-config.xml this 
will either start working or at least give you a clearer error message about 
some configuration that is missing for the insync destination (using the 
command line compiler, it is the -services option, or it is settable as a 
project option in flex builder).

From the logs you sent, I see it connecting successfully but it looks like it 
is getting an empty definition of the insync destination - i.e. no 
properties, no metadata and no identity attribute all of which would be 
required for a valid DMS destination.   You can see exactly what XML the 
client gets by looking at the variable:

  Import mx.messaging.config.ServerConfig

   

  trace(ServerConfig.xml);

We use that variable both to store any compiled in destinations as well as to 
populate destinations after connect time so doing that trace before and after 
you get the error would tell me exactly what the client is seeing for that 
destination.   I suspect insync is maybe getting put in there but without a 
propertiesmetadataidentity name=foo/metadata/properties construct.

Another possible thing that could cause this is that there is an error 
initializing that destination on the server at startup.   To check on that 
possibility, make sure to check your server's logs for errors and possibly add 
Message.* and Service.* targets to the services-config.xml's logging 
section and set level=Debug there to get more info.

Sorry for the difficulties getting this working.  Please let me know if you do 
find the problem so I can improve our error messages.

Jeff

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of fkolberg
Sent: Saturday, July 26, 2008 10:20 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: LCDS data synchronisation problem


Hi Jeff,

I have got a more verbose output:

'cds-consumer-insync-null' consumer set destination to 'insync'.
New DataService for destination: insync
'D0C16D6A-7104-39A3-B839-6054DE1ED615' producer set destination to
'insync'.
Creating shared data store with id: ':true' for destination: 'insync'
Adding data service: insync to the data store: :true initialized: false
Changing channelSet of a shared data store. It is now used also for
id: rtmp://
localhost:2037:true
'my-rtmp' channel endpoint set to rtmp://localhost:2037
Changing channelSet of a shared data store. It is now used also for
id: my-rtmp
:true
start network monitor
handleMonitorStatus() monitor.available: true
Connecting...
'my-rtmp' channel got connect attempt status. (Object)#0
code = NetConnection.Connect.Success
description = Connection succeeded.
details = (null)
DSMessagingVersion = 1
id = D62F3568-062C-8CD2-6151-47A42CD1D145
level = status
objectEncoding = 3
'my-rtmp' channel is connected.
'my-rtmp' channel sending message:
(mx.messaging.messages::CommandMessage)
body=(Object)#0
clientId=(null)
correlationId=
destination=insync
headers=(Object)#0
messageId=800114A8-F29F-ACD1-B922-6054DFC4CC31
operation=client ping
timeToLive=0
timestamp=0
'cds-consumer-insync-null' consumer connected.
'ds-producer-insync' producer connected.
ds.connect(): success
No offline changes to apply
Filling...
DataService.fill() called for destination: insync with args: []
'ds-producer-insync' producer channel disconnected.
Error: Unable to initialize destinations on server: [insync]
at
anonymous()[C:\depot\flex\branches\enterprise_corfu_rc\frameworks\p
rojects\data\src\mx\data\DataStore.as:2347]
at
anonymous()[C:\depot\flex\branches\enterprise_corfu_rc\frameworks\p
rojects\data\src\mx\data\DataStore.as:2363]
at flash.events::EventDispatcher/dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at
mx.data::SQLDBCache/dispatchStatusEvent()[C:\depot\flex\branches\ente
rprise_corfu_rc\frameworks\projects\airfds\src\mx\data\SQLDBCache.as:540]
at Function/http://adobe.com/AS3/2006/builtin::apply()
at
mx.rpc::AsyncDispatcher/timerEventHandler()[E:\dev\3.0.x\frameworks\p
rojects\rpc\src\mx\rpc\AsyncDispatcher.as:50]
at flash.utils::Timer/_timerDispatch()
at flash.utils::Timer/tick()

the line Creating shared data store with id: ':true' for destination:
'insync' looks like an error somewhere, what is this data store :true?

Any idea?
thanks for your advice and help.
Florence

--- In 

[flexcoders] series id of a chart item

2008-07-26 Thread hworke

  Hi, once a column chart item is clicked,
  how do I find the series that this item
  belongs to?



[flexcoders] Re: series id of a chart item

2008-07-26 Thread hworke

   Please do not worry about it. Got the answer!!!
   In any case if anyone interested here are the
   examples that you can take look at:

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




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

 
   Hi, once a column chart item is clicked,
   how do I find the series that this item
   belongs to?





[flexcoders] ArrayCollection ChangeEvent does noget get dispatched when filterFunction is set

2008-07-26 Thread dopenhagen
It appears that an arraycollection's changeEvent
(CollectionEvent.COLLECTION_CHANGE) does not get called correctly when
FilterFunction is set.
Is anyone else experiencing this behavior, and if yes: is it a feature
or a bug ?



RE: [flexcoders] Re: Flex 3 Preloader broken when using deep linking ?

2008-07-26 Thread Rick Winscot
I've used deep linking with a custom pre-loader in many apps without
problems. Can you verify your configuration?

 

*. What html template are you using

*. What are your compiler options

*. Are you using any additional JavaScript goodies like FAB?

 

Rick Winscot

 

 

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Adnan Doric
Sent: Saturday, July 26, 2008 6:17 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Flex 3 Preloader broken when using deep linking ?

 

You are absolutely right, but the preloading part is completely missing :)

Well, maybe it is Flash Player bug, I don't know, but it is very
annoying for deep linking as you can imagine.

I tried to create custom preloader but same thing is happening, there
is no progress events.

Maybe have some kind of workaround to show the progress ?

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

 I saw the initializing progress bar.
 
 
 
 
 
 From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
[mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com ]
On
 Behalf Of Adnan Doric
 Sent: Friday, July 25, 2008 12:50 PM
 To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com 
 Subject: [flexcoders] Re: Flex 3 Preloader broken when using deep
 linking ?
 
 
 
 Sorry to bump this, but... am I the only one with this issue ? :)
 
 Even the Flex 3 style explorer have same issue :
 
 1. clear the cache
 2. load
 http://examples.adobe.com/flex3/consulting/styleexplorer/Flex3StyleExplo
 rer.html
 http://examples.adobe.com/flex3/consulting/styleexplorer/Flex3StyleExpl
 orer.html 
 
 You see the preloader
 
 3. clear the cache
 4. load (note the # at the end of the URL)
 http://examples.adobe.com/flex3/consulting/styleexplorer/Flex3StyleExplo
 rer.html#
 http://examples.adobe.com/flex3/consulting/styleexplorer/Flex3StyleExpl
 orer.html 
 
 There is no preloader...
 
 Am I crazy or we have some deep linking incompatibilities ?
 
 --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
mailto:flexcoders%40yahoogroups.com
 , Adnan Doric astronaute@ wrote:
 
  Hello,
  
  I don't know if this was already discussed so sorry in advance.
  
  After few days of hard debugging, I sadly noted that Flex 3 preloader
  is completely broken while using # in the URL.
  
  It doesn't show at all.
  
  Does anyone have any workarounds as preloading 2Mb without preloader
  is actually real pain ?
  
  Thank you.
 


 



[flexcoders] Preventing Change in Focus Using Mouse

2008-07-26 Thread edlueze
Hi Folks:

I'm trying to prevent the user from prematurely changing focus away
from a control. I can use event.preventDefault() successfully when
using the keyboard, but not when using a mouse.

This is what I've got:

private function creationCompleteListener(event:Event):void {
target.addEventListener(FocusEvent.KEY_FOCUS_CHANGE,
target_keyFocusChange);
target.addEventListener(FocusEvent.MOUSE_FOCUS_CHANGE,
target_mouseFocusChange);
target.addEventListener(FocusEvent.FOCUS_IN, target_focusIn);
target.addEventListener(FocusEvent.FOCUS_OUT, target_focusOut);
}

private function target_focusChange(event:Event):void {
trace(target +  target_focusChange);
if (!okToLoseFocus) {
event.preventDefault();
}
}

And this is the trace I'm getting when I try when I try and toggle
between a TextInput and a Button (okToLoseFocus = false):

1. Main0.myTextInput target_focusIn
2. Main0.myTextInput target_keyFocusChange
3. Main0.myTextInput target_mouseFocusChange
4. Main0.myTextInput target_focusOut
5. Main0.myButton target_focusIn
6. Main0.myButton target_keyFocusChange
7. Main0.myButton target_mouseFocusChange
8. Main0.myButton target_focusOut
9. Main0.myTextInput target_focusIn

When the user attempts to change focus using a tab on the keyboard
(step2 and step6) they are prevented. But when they try to *click* on
another control (step3 and step7) they are successful??!

How can I stop the user clicking to another focus?




[flexcoders] Passing parameter to component

2008-07-26 Thread Cathal
Hi,

I'm trying to pass the selected item on a combo box in one component
to another component.

If i bind it to a label it works fine,

code: 
mx:Label text={headerComp.cbProject.selectedItem.projectname} /

but passing it into another component it doesn't work.

code:

comp:home
strProjectName={headerComp.cbProject.selectedItem.projectname} /

While in debugging mode strProjectName seems to be null, so it doesn't
see to be assigned anything.

Any suggestions?



RE: [flexcoders] ArrayCollection ChangeEvent does noget get dispatched when filterFunction is set

2008-07-26 Thread Alex Harui
AC is a view of the data so if an item changes that is not in the
current view (filtered out) I don't think it should send an event

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of dopenhagen
Sent: Saturday, July 26, 2008 4:09 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] ArrayCollection ChangeEvent does noget get
dispatched when filterFunction is set

 

It appears that an arraycollection's changeEvent
(CollectionEvent.COLLECTION_CHANGE) does not get called correctly when
FilterFunction is set.
Is anyone else experiencing this behavior, and if yes: is it a feature
or a bug ?

 



RE: [flexcoders] Passing parameter to component

2008-07-26 Thread Alex Harui
It might get assigned to null at startup and then to something else
later as the binding expression becomes valid

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Cathal
Sent: Saturday, July 26, 2008 3:36 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Passing parameter to component

 

Hi,

I'm trying to pass the selected item on a combo box in one component
to another component.

If i bind it to a label it works fine,

code: 
mx:Label text={headerComp.cbProject.selectedItem.projectname} /

but passing it into another component it doesn't work.

code:

comp:home
strProjectName={headerComp.cbProject.selectedItem.projectname} /

While in debugging mode strProjectName seems to be null, so it doesn't
see to be assigned anything.

Any suggestions?

 



RE: [flexcoders] Preventing Change in Focus Using Mouse

2008-07-26 Thread Alex Harui
FocusManager moves focus on MOUSE_DOWN.  It isn't cancelable so you may
need to use stopPropagation.

 

It might be better to simply restore focus via callLater though

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of edlueze
Sent: Saturday, July 26, 2008 3:37 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Preventing Change in Focus Using Mouse

 

Hi Folks:

I'm trying to prevent the user from prematurely changing focus away
from a control. I can use event.preventDefault() successfully when
using the keyboard, but not when using a mouse.

This is what I've got:

private function creationCompleteListener(event:Event):void {
target.addEventListener(FocusEvent.KEY_FOCUS_CHANGE,
target_keyFocusChange);
target.addEventListener(FocusEvent.MOUSE_FOCUS_CHANGE,
target_mouseFocusChange);
target.addEventListener(FocusEvent.FOCUS_IN, target_focusIn);
target.addEventListener(FocusEvent.FOCUS_OUT, target_focusOut);
}

private function target_focusChange(event:Event):void {
trace(target +  target_focusChange);
if (!okToLoseFocus) {
event.preventDefault();
}
}

And this is the trace I'm getting when I try when I try and toggle
between a TextInput and a Button (okToLoseFocus = false):

1. Main0.myTextInput target_focusIn
2. Main0.myTextInput target_keyFocusChange
3. Main0.myTextInput target_mouseFocusChange
4. Main0.myTextInput target_focusOut
5. Main0.myButton target_focusIn
6. Main0.myButton target_keyFocusChange
7. Main0.myButton target_mouseFocusChange
8. Main0.myButton target_focusOut
9. Main0.myTextInput target_focusIn

When the user attempts to change focus using a tab on the keyboard
(step2 and step6) they are prevented. But when they try to *click* on
another control (step3 and step7) they are successful??!

How can I stop the user clicking to another focus?

 



RE: [flexcoders] Re: Flex 3 Preloader broken when using deep linking ?

2008-07-26 Thread Alex Harui
My network is too fast to see the downloading portion.  I did see a
pause, it might be the deep linking javascript code getting initialized.
You could comment it out in your html wrapper and see if that makes a
difference.

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Adnan Doric
Sent: Saturday, July 26, 2008 3:17 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Flex 3 Preloader broken when using deep
linking ?

 

You are absolutely right, but the preloading part is completely missing
:)

Well, maybe it is Flash Player bug, I don't know, but it is very
annoying for deep linking as you can imagine.

I tried to create custom preloader but same thing is happening, there
is no progress events.

Maybe have some kind of workaround to show the progress ?

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

 I saw the initializing progress bar.
 
 
 
 
 
 From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
[mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
] On
 Behalf Of Adnan Doric
 Sent: Friday, July 25, 2008 12:50 PM
 To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com 
 Subject: [flexcoders] Re: Flex 3 Preloader broken when using deep
 linking ?
 
 
 
 Sorry to bump this, but... am I the only one with this issue ? :)
 
 Even the Flex 3 style explorer have same issue :
 
 1. clear the cache
 2. load

http://examples.adobe.com/flex3/consulting/styleexplorer/Flex3StyleExplo
http://examples.adobe.com/flex3/consulting/styleexplorer/Flex3StyleExpl
o 
 rer.html

http://examples.adobe.com/flex3/consulting/styleexplorer/Flex3StyleExpl
http://examples.adobe.com/flex3/consulting/styleexplorer/Flex3StyleExpl
 
 orer.html 
 
 You see the preloader
 
 3. clear the cache
 4. load (note the # at the end of the URL)

http://examples.adobe.com/flex3/consulting/styleexplorer/Flex3StyleExplo
http://examples.adobe.com/flex3/consulting/styleexplorer/Flex3StyleExpl
o 
 rer.html#

http://examples.adobe.com/flex3/consulting/styleexplorer/Flex3StyleExpl
http://examples.adobe.com/flex3/consulting/styleexplorer/Flex3StyleExpl
 
 orer.html 
 
 There is no preloader...
 
 Am I crazy or we have some deep linking incompatibilities ?
 
 --- In flexcoders@yahoogroups.com
mailto:flexcoders%40yahoogroups.com
mailto:flexcoders%40yahoogroups.com
 , Adnan Doric astronaute@ wrote:
 
  Hello,
  
  I don't know if this was already discussed so sorry in advance.
  
  After few days of hard debugging, I sadly noted that Flex 3
preloader
  is completely broken while using # in the URL.
  
  It doesn't show at all.
  
  Does anyone have any workarounds as preloading 2Mb without preloader
  is actually real pain ?
  
  Thank you.
 


 



Re: [flexcoders] Re: Flex overlay over HTML

2008-07-26 Thread Easow Jacob
Tim,

It is not about rendering of HTML page.

Here is my exact issue..
I have a PopupButton..When i click the popUpButton a TitleWindow is
appearing.But here is my problem.I embeded
this swf in an HTML but when I click the Popup,titleWindow is not
appearing,because it was not able to overlay above the HTML...
How can I achive the tilte window to appear above he HTML.

Thanks

On Sat, Jul 26, 2008 at 9:51 PM, Tim Hoff [EMAIL PROTECTED] wrote:


 Hi Easow,

 You could just use an IFrame.

 -TH


 --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Easow
 Jacob [EMAIL PROTECTED] wrote:
 
  Hi,
 
  I have a *HTML* page with a small *flex* app embedded into it.
 
  When you click on the *flex* app, I want an *overlay* to come *over*
 page
  showing my app.
 
 
  Just wondering how I would go about that.
 
  Or if there is a way to have the original small map SWF resize to show
 the
  app.
 
  Cheers
  Mathew
 
 
  --
  Mathew Easow Jacob,
  Bangalore.
  +91-9886979038
 

 




-- 
Mathew Easow Jacob,
Bangalore.
+91-9886979038