Re: [flexcoders] blazeds-turnkey doen't work?

2008-07-03 Thread shaun
markflex2007 wrote:
> Hi,
> 
> I have installed blazeds-turnkey and set JAVA_HOME path to D:\Program 
> Files\Java\jdk1.5.0_15\bin. but I can not start tomcat. the error said 
> JDK path error.why.
> 
> Please helpme if you know.
> 

Possibly because you have a space in the path. ie) Program Files

HTH.

cheers,
  - shaun


Re: [flexcoders] blazeds-turnkey doen't work?

2008-07-03 Thread jitendra jain
set JAVA_HOME= D:\Program Files\Java\jdk1. 5.0_15
 Thanks,

with Regards,
Jitendra Jain
Software Engineer
91-9979960798



- Original Message 
From: markflex2007 <[EMAIL PROTECTED]>
To: flexcoders@yahoogroups.com
Sent: Friday, July 4, 2008 10:50:18 AM
Subject: [flexcoders] blazeds-turnkey doen't work?


Hi,

I have installed blazeds-turnkey and set JAVA_HOME path to D:\Program 
Files\Java\jdk1. 5.0_15\bin. but I can not start tomcat. the error said 
JDK path error.why.

Please helpme if you know.

Thanks

Mk




  

[flexcoders] I am looking for flex property file?

2008-07-03 Thread Hasan Maqbool
Hey techies,
Actually, I need to set some global urls which are subject to change. So, I
can't hard code them in the application. I want to get these urls from some
property file just like the standard procedure in other frameworks like
.net. But I can't find any property file for flex yet. Let me tell you the
exact problem,
I have some database connection string, and obviously I can't put it in the
code as it is subject to change. So, how can I manage my database connection
string. I am using flex as front end and my backend is ruby on rails. My DAL
(Data access layer is tatally xml based). Can anybody tell me how to
incarporate this connection string in a global project property file and
then retrieve that string from action script?

Thanks in advance.

-- 
Muhammad Hasan Maqbool
Software Engineer
Techlogix Pakistan (Pvt) Limited
+92-321-6690881


[flexcoders] Re: Simple text vs htmlText length question

2008-07-03 Thread Sid Maskit
Interesting. I didn't look at the documentation before I posted, but I
did run a test case. Having played around a bit more, things are
somewhat convoluted. Here is what I have found:

Whether I use \r or \n, if I assign to the text property, and read
from the text property, the result is a blank line separating the line
with 1 from the line with 2 like this:

1

2

If I use \r to assign to the htmlText property, and read from the text
property, the result is both numbers on the same line like this:

12

If I use \n to assign to the htmlText property, and read from the text
property, the result is what I would actually expect, which is the 1
on its own line, with the number two on the line immediately below it,
like this:

1
2

No matter whether I use \r or \n, and whether I assign to the text or
the htmlText property, if I read from the htmlText property, I get the
same result, which is the HTML equivalent of what I get if I both
assign and read from the text property, like this:

'12'

(Note that I have simplified the HTML by removing things like font tags.)

So I no longer think my explanation makes sense, but I'm not really
sure what does.

Here's the code I used to get these results:

var text:String = "1\r\r2"

var textField:TextField = new TextField()
textField.htmlText = text

var textField1:TextField = new TextField()
textField1.text = text

text = "1\n\r2"

var textField2:TextField = new TextField()
textField2.htmlText = text

var textField3:TextField = new TextField()
textField3.text = text

trace("textField.text : '" + textField.text + "'")
trace("textField1.text : '" + textField1.text + "'")
trace("textField2.text : '" + textField2.text + "'")
trace("textField3.text : '" + textField3.text + "'")
trace("textField.htmlText : '" + textField.htmlText + "'")
trace("textField1.htmlText : '" + textField1.htmlText + "'")
trace("textField2.htmlText : '" + textField2.htmlText + "'")
trace("textField3.htmlText : '" + textField3.htmlText + "'")

Sid Maskit
CraftySpace.com

--- In flexcoders@yahoogroups.com, "Rick Winscot" <[EMAIL PROTECTED]>
wrote:
>
> Smaskit - In ActionScript CDATA sections the \n is permitted and is
parsed
> in htmlText as if it were a  - the particular behavior of
htmlText is
> worth a skim - see: Using the htmlText property in FlexDocs.
> 
>  
> 
> Rick Winscot
> 
>  
> 
>  
> 
> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
> Behalf Of smaskit
> Sent: Wednesday, July 02, 2008 11:13 PM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Re: Simple text vs htmlText length question
> 
>  
> 
> If you replace this:
> 
> textField.htmlText = text
> 
> with this:
> 
> textField.text = text
> 
> you will get the result you seek. By setting htmlText, you declare
> that the input should be parsed as html. In html \n and \r are
> ignored. You need to use html tags like  and .
> 
> --- In flexcoders@yahoogroups.com
 ,
> "Gordon Smith"  wrote:
> >
> > Try using \n instead of \r.
> > 
> > 
> > 
> > Also try seeing whether setting textField.condenseWhite to true or
false
> > before setting textField.htmlText affects it.
> > 
> > 
> > 
> > Gordon Smith
> > 
> > Adobe Flex SDK Team
> > 
> > 
> > 
> > 
> > 
> > From: flexcoders@yahoogroups.com 
> [mailto:flexcoders@yahoogroups.com
 ]
> On
> > Behalf Of cmalartre
> > Sent: Wednesday, July 02, 2008 1:33 PM
> > To: flexcoders@yahoogroups.com  
> > Subject: [flexcoders] Simple text vs htmlText length question
> > 
> > 
> > 
> > Why does the simple code below output:
> > 
> > -
> > text.length : 4
> > textField.length : 4
> > text : '1
> > 
> > 2'
> > textField.text : '12'
> > -
> > 
> > and not:
> > -
> > textField.text : '1
> > 
> > 2'
> > -
> > 
> > 
> > http://www.adobe.com/2006/mxml
> >  "
> > layout="absolute">
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> >
>




[flexcoders] Re: Anyone familiar with CF-Flex remoting?

2008-07-03 Thread Sid Maskit
This definitely works. Just did it using CFC's.

In MXML:

http://domain.com/flex2gateway/]"; 
destination="ColdFusion" 
source="[path to your CFC here: e.g. folder.folder.file" 
>   




Inside script within same MXML:

this.dataManager.requestAddressChange(this.address0.text,
this.password.text);


Within cfc on server:










You'd need to declare the arguments differently, I think as parameters
within a cfm file, but it should still work.

Hope that helps.

Sid Maskit
CraftySpace.com



[flexcoders] blazeds-turnkey doen't work?

2008-07-03 Thread markflex2007
Hi,

I have installed blazeds-turnkey and set JAVA_HOME path to D:\Program 
Files\Java\jdk1.5.0_15\bin. but I can not start tomcat. the error said 
JDK path error.why.

Please helpme if you know.

Thanks

Mk



[flexcoders] (unknown)

2008-07-03 Thread venkat eswar
hi 
 have any one tried integrating XIFF with GTalk .I was trying to connect to 
GTalk since it implements Jabber.if anyone please help me



  

Re: [flexcoders] Re: Saving or Exporting application charts as images?

2008-07-03 Thread Sean Clark Hess
Very cool... Didn't look like doug was using air to me

On Thu, Jul 3, 2008 at 11:17 AM, cox.blair <[EMAIL PROTECTED]> wrote:

>   Hmm, yup that sucks. I'll be using PHP5 and MySQL 4.1, any tips on
> where I could look for some tips on accomplishing this? New territory
> for me.
>
> Cheers,
>
>
> --- In flexcoders@yahoogroups.com , "Sean
> Clark Hess" <[EMAIL PROTECTED]> wrote:
> >
> > I've tried things like this before, and it never works. I can't
> remember if
> > there's some way to do this natively with as3, or if I was doing it
> with a
> > swf2exe tool, but either way, it sucks.
> >
> > Send the data serverside and regenerate it there. Your serverside
> language
> > should have some packages to create images or pdfs or something. It's
> > annoying to generate the report in two places, but it's the only way
> I know
> > how to do it.
>
>  
>


RE: [flexcoders] Custom component and clipping

2008-07-03 Thread Alex Harui
I'd use mask or scrollrect

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Weyert de Boer
Sent: Thursday, July 03, 2008 4:31 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Custom component and clipping

 

Hello!

The last few eeks I have been working on my own custom component for 
Flex. Now the component itself is inherited from the UIComponent class,
and
then basically some child IComponents which draws different "layers". 
For example, if I have seperate layer for the interaction such as the 
handling of clicks, and the drawing of the selection area.
Other layers are responsible for drawing the lines between items, and 
the latter for drawing the items itself.

The problem I am now having is that when I move around the drawn items 
they happen to get clipped to my custom component. For example, I can 
move the item out of the current specified dimensions of the component 
and have it show up on a different part of my application window.

I have the feeling Flex doesn't automatically clip children to the 
parent control (UIComponent), is this correct? My second question, would

be what is the best way to fix this?
My current ideas are:

1. Implement clipping by disabling dragging outside the dimensions 
of the control (e.g. if mouseX < control.width then stop)
2. Create a Shape instance and set this as mask on the control

Anyone able to help me out with this? I suppose it's something common, 
though.

Yours,
Weyert de Boer

 



RE: [flexcoders] Re: x positioning of DataTip for List control

2008-07-03 Thread Alex Harui
If you look in mx.controls.listClasses.ListItemRenderer.as, you'll see
how the dataTIp is positioned.  It should be easy to change.

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of bryanpoopbartow
Sent: Thursday, July 03, 2008 6:48 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: x positioning of DataTip for List control

 

Alex, do you know of any code samples of custom list renderers? I'm
having trouble 
figuring out where to start.

--- In flexcoders@yahoogroups.com 
, "Alex Harui" <[EMAIL PROTECTED]> wrote:
>
> A custom renderer should be able to catch the
ToolTipEvent.TOOL_TIP_SHOW
> event and change position of the datatip.
> 
> 
> 
> 
> 
> From: flexcoders@yahoogroups.com 
[mailto:flexcoders@yahoogroups.com 
] On
> Behalf Of pfkellogg
> Sent: Monday, October 15, 2007 12:15 PM
> To: flexcoders@yahoogroups.com  
> Subject: [flexcoders] x positioning of DataTip for List control
> 
> 
> 
> I have a List with a dataTipFunction assigned. I need to move the
> rendered dataTip x position over to the right so I can click in my
> list easily. Does anyone have any ideas or code sample? thanks.
>

 



[flexcoders] Re: x positioning of DataTip for List control

2008-07-03 Thread bryanpoopbartow
Alex, do you know of any code samples of custom list renderers?  I'm having 
trouble 
figuring out where to start.

--- In flexcoders@yahoogroups.com, "Alex Harui" <[EMAIL PROTECTED]> wrote:
>
> A custom renderer should be able to catch the ToolTipEvent.TOOL_TIP_SHOW
> event and change position of the datatip.
> 
>  
> 
> 
> 
> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
> Behalf Of pfkellogg
> Sent: Monday, October 15, 2007 12:15 PM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] x positioning of DataTip for List control
> 
>  
> 
> I have a List with a dataTipFunction assigned. I need to move the
> rendered dataTip x position over to the right so I can click in my
> list easily. Does anyone have any ideas or code sample? thanks.
>





[flexcoders] Does anyone know how to optimize Adobe Autocomplete picker?

2008-07-03 Thread jovialrandor
When I use the adobe autocomplete component with an ArrayCollection 
with 2 items, it runs very slow.  (apparently)

But is there any technique that can optimize the results so it's fast?





[flexcoders] Custom component and clipping

2008-07-03 Thread Weyert de Boer
Hello!

The last few eeks I have been working on my own custom component for 
Flex. Now the component itself is inherited from the UIComponent class, and
then basically some child IComponents which draws different "layers". 
For example, if I have seperate layer for the interaction such as the 
handling of clicks, and the drawing of the selection area.
Other layers are responsible for drawing the lines between items, and 
the latter for drawing the items itself.

The problem I am now having is that when I move around the drawn items 
they happen to get clipped to my custom component. For example, I can 
move the item out of the current specified dimensions of the component 
and have it show up on a different part of my application window.

I have the feeling Flex doesn't automatically clip children to the 
parent control (UIComponent), is this correct? My second question, would 
be what is the best way to fix this?
My current ideas are:

1. Implement clipping by disabling dragging outside the dimensions 
of the control (e.g. if mouseX < control.width then stop)
2. Create a Shape instance and set this as mask on the control

Anyone able to help me out with this? I suppose it's something common, 
though.

Yours,
Weyert de Boer


Re: [flexcoders] MXML component with multiple controls as an itemRenderer

2008-07-03 Thread Keith
Thanks

Alex Harui wrote:
>
> Read up on renderers on my blog.
>
>  
>
> To have a multiple field editor, you have to implement 
> IFocusManagerComponent and handle setFocus, then handle keyFocusChange 
> and call preventDefault() when you want to switch fields.  Search the 
> internet for examples.
>
>  
>
> 
>
> *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] 
> *On Behalf Of *Keith
> *Sent:* Wednesday, July 02, 2008 8:12 PM
> *To:* flexcoders@yahoogroups.com
> *Subject:* [flexcoders] MXML component with multiple controls as an 
> itemRenderer
>
>  
>
> *QUESTION:
> Can anyone send a good link explaining how to build a MXML component
> with mulitple input controls
> using it as an itemRenderer in a List?
>
> **My controls of the list items reset and do not update when I scroll
> them outside the length of the List.*
> *
>
> EXAMPLE:
> Here is my failed attempt but it shows what I'm trying to do:
> http://tinyurl.com/46rjmk 
>
> Thanks,
>
> -- Keith H --
> *
>
>  



RE: [flexcoders] Re: override updateDisplayList

2008-07-03 Thread Alex Harui
Use clear() to make the rowbackground go away

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of markgoldin_2000
Sent: Thursday, July 03, 2008 1:39 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: override updateDisplayList

 

I got everything working with row highlighting on demand. Here is 
mine (mostly yours) code:
override protected function drawRowBackground(s:Sprite, rowIndex:int, 
y:Number, height:Number, color:uint, dataIndex:int):void
{
if (selectedItem != null && rowIndex <= dataProvider.length - 1 && 
dataProvider[rowIndex].trainplan == true)
{ 
color = 0xFF;
super.drawRowBackground(s,rowIndex,y,height,color,dataIndex);
}
}

override protected function updateDisplayList(unscaledWidth:Number, 
unscaledHeight:Number):void 
{
super.updateDisplayList(unscaledWidth, unscaledHeight);
var rowBGs:DisplayObject = listContent.getChildByName("rowBGs");
var colBGs:DisplayObject = listContent.getChildByName("colBGs");
if (rowBGs != null && colBGs != null) 
{
var rowBGIndex:int = listContent.getChildIndex
(listContent.getChildByName("rowBGs"));
var colBGIndex:int = listContent.getChildIndex
(listContent.getChildByName("colBGs"));
if (colBGIndex > rowBGIndex) 
{ 
listContent.swapChildrenAt(rowBGIndex, colBGIndex);
}
} 
}
Using that code I can highlight any row I need.
Now, the fun part. How can I restore all original colors for columns 
that were thee before row color change?

Thanks for your help.

 



RE: [flexcoders] LCDS: Problem with destination inheritance

2008-07-03 Thread Jeff Vroom
Hi Greg,

Yeah, thanks for sending this as it did uncover an LC DS bug.  It occurs with 
the combination of the "deleteItem" and the commit(item) or commit([item]) 
case.  The code is trying to look up the DataService associated with the item 
in the argument... to do that we look in the cache for each item.  We can't 
find it (since it has been deleted) and the code is improperly returning the 
last data service in the list.  So when it works, it is because the list of 
data services is generated in some particularly lucky order.

If you can commit everything - not just that item, that would be an easy 
workaround though most likely you are using that variant of commit for a reason.

I'll contact you off-list to get you a patched fds.swc to try out the fix.   
For your reference, the bug number I filed is:

https://bugs.adobe.com/jira/browse/LCDS-351

Jeff


From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of 
gordon_greg
Sent: Thursday, July 03, 2008 12:53 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] LCDS: Problem with destination inheritance


Hello,

I'm using the latest LCDS 2.6.RC1 with the HibernateAssembler and a
non-trivial data model that relies upon destination inheritance in a
few places.

In general everything works great, but occasionally, when I remove an
element from a collection using dataService.deleteItem, when I then
call dataService.commit, I end up with an exception that indicates
that the wrong destination is being invoked...

For our purposes, let's just deal with 4 destinations:

Folder
ResourceFolder (extends folder)
Meeting
MeetingParticipant (is a many-to-one child of Meeting)

Now, if I call:

meetingParticipantDataService.deleteItem(meetingParticipant);

meetingParticipantDataService.commit([meetingParticipant],true);

I end up with the following exception:

== begin exception 

Error: Destination: spring.folder received an instance of class:
demo.model.meetings::MeetingParticipant but we could not find a
destination in the list of sub-types: spring.resourceFolder which
extends this destination.
at
mx.data::ConcreteDataService/http://www.adobe.com/2006/flex/mx/internal::getDestinationForInstance()[C:\depot\flex\branches\enterprise_corfu_rc\frameworks\projects\data\src\mx\data\ConcreteDataService.as:5309]
at
mx.data::ConcreteDataService/http://www.adobe.com/2006/flex/mx/internal::getItemDestination()[C:\depot\flex\branches\enterprise_corfu_rc\frameworks\projects\data\src\mx\data\ConcreteDataService.as:5290]
at
mx.data::ConcreteDataService/http://www.adobe.com/2006/flex/mx/internal::getItemMetadata()[C:\depot\flex\branches\enterprise_corfu_rc\frameworks\projects\data\src\mx\data\ConcreteDataService.as:5275]
at
mx.data::MessageBatch/addMessageIdsForItem()[C:\depot\flex\branches\enterprise_corfu_rc\frameworks\projects\data\src\mx\data\MessageBatch.as:591]
at
mx.data::MessageBatch/extractMessages()[C:\depot\flex\branches\enterprise_corfu_rc\frameworks\projects\data\src\mx\data\MessageBatch.as:456]
at
mx.data::DataStore/http://www.adobe.com/2006/flex/mx/internal::doCommit()[C:\depot\flex\branches\enterprise_corfu_rc\frameworks\projects\data\src\mx\data\DataStore.as:1807]
at
mx.data::DataStore/http://www.adobe.com/2006/flex/mx/internal::internalCommit()[C:\depot\flex\branches\enterprise_corfu_rc\frameworks\projects\data\src\mx\data\DataStore.as:818]
at
mx.data::ConcreteDataService/commit()[C:\depot\flex\branches\enterprise_corfu_rc\frameworks\projects\data\src\mx\data\ConcreteDataService.as:337]
at
mx.data.mxml::DataService/commit()[C:\depot\flex\branches\enterprise_corfu_rc\frameworks\projects\data\src\mx\data\mxml\DataService.as:433]
at [my code here]

== end exception 

Note that there is no relationship at all between MeetingParticipant
and Folder - they are completely independent of each other.

This feels like a bug to me, because it doesn't always happen, is not
reliable reproduced, and once it does happen it keeps happening until
I clean out my browser's cache.

Somehow, something gets the DataService layer in an unstable state,
possibly as a side effect of some exception being thrown somewhere in
my application (although this isn't clear either), and once it is in
that state, it doesn't recover.

Is anyone else seeing this? Should I be reporting this as a bug?

I'd be happy to provide more information as necessary.

Thanks.

<><><>

RE: [flexcoders] Dynamically Set Controls to be Required

2008-07-03 Thread Alex Harui
Because the control name isn't a Label but a String?

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of gregariousgregmi
Sent: Thursday, July 03, 2008 1:03 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Dynamically Set Controls to be Required

 

I have several comboboxes that I want to set to be required based on 
a login id. I have an array of objects; each object contains a 
string variable that is the label name of the combo box that I want 
to be required. The line that sets the styleName to required returns 
a "Error #1009: Cannot access a property or method of a null object 
reference." 
required is defined in the css file.

Any ideas?

private function getFormControlProperties_Result(evt:ResultEvent):void
{
if( evt.result == null )
return;
tArray = evt.result as Array;
for( var i:int=0; i

RE: [flexcoders] Re: Drag-n-Drop problem in DataGrid with custom ItemRenderer ...

2008-07-03 Thread Alex Harui
Please be specific.  Do you mean that when you drag, the cursor does not
change and there is no dragImage?  I would debug into the
mouseDownHandler and see why

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Md. Ariful Islam
Sent: Thursday, July 03, 2008 1:41 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Re: Drag-n-Drop problem in DataGrid with
custom ItemRenderer ...

 

Hi Alex,

Thanks for reading my problem. The problem is, if I set the itemRenderer
with a custom renderer, I can't drag at all.  While drag-n-drop works
quite fine when I set dataField normally with a property name.

ERRORSOME CODE, DOESN'T WORK:





Regards,
~ Arif

 

 



Re: [flexcoders] Re: #2038: File I/O Error

2008-07-03 Thread Tomas Lin
have you tried appending a JsessionId with your session id at the end?

http://bugs.adobe.com/jira/browse/FP-78

On Thu, Jul 3, 2008 at 10:56 AM, lytvynyuk <[EMAIL PROTECTED]> wrote:
> Update:
> I works under IE7 doesn't work with Rirefox 2.0.0.15!
> Doesn't work with Opera as well! I suspect this is not browser issue,
> this is FlashPlayer issue, because Firefox and Opera uses same Flash
> Player binaries!
>
> --- In flexcoders@yahoogroups.com, "lytvynyuk" <[EMAIL PROTECTED]> wrote:
>>
>> I getting this error, but when I put breakpoint at my server side code
>> nothing coming through!! When I created little HTML page with file
>> upload filed to same servlet location - IT WORKS!
>>
>> I used "Live HTTP headers" to see activity on HTTP requests -
>> nothing nothing going through, also I used Wireshark - same effect.
>>
>> So what is going on ? any Ideas?
>>
>> AS code is extremely simple:
>>
>> var request:URLRequest = new URLRequest();
>> request.url = UPLOAD_URL;
>> fr.upload(request);
>> fileNameLabel.text = fr.name;
>>
>
> 


[flexcoders] Cairngorm Result and Fault Handlers not called

2008-07-03 Thread jfournet
I have one command in my application in which the result and fault 
handlers are not called.  All other work fine.  The webservice that 
is tied to it gets executed and data is returned, as I can see it in 
the flex log file.  Does anyone know what might cause this???



Command File:


package com.bmc.rem.command.learning
{

import com.adobe.cairngorm.business.Responder;
import com.adobe.cairngorm.commands.Command;
import com.adobe.cairngorm.control.CairngormEvent;
import com.bmc.rem.common.eventBroadcaster.REMEventBroadcaster;
import com.bmc.rem.controller.REMControl;
import com.bmc.rem.delegate.probe.ProbeServicesDelegate;
import com.bmc.rem.vo.learning.*;
import mx.utils.ObjectUtil;

import mx.collections.ArrayCollection;

public class GetLearningResultsCommand implements Command, Responder
{

   public function execute( event:CairngormEvent ) : void
   {
trace("*** executing get learning results ***");
   var delegate: ProbeServicesDelegate = new 
ProbeServicesDelegate( this ); 
   delegate.getLearningResults(event.data);
trace("** after delegate.getLearningResults *");

   }

   /**
* The onResult method is called when the server side method 
completes successfully.
* @param event The event containing the information returned by 
the server.
* 
*/
   public function onResult( event : *=null ) : void
   {   
   
   trace("***learning data format = 
**" + ObjectUtil.toString(event.result));
   REMEventBroadcaster.getInstance().dispatchEvent
(REMControl.EVENT_GET_LEARNING_RESULTS_SUCCESSFUL, null);
   }

   /**
* The onFault method is called when the server side method call 
returns an exception.
* @param event The event containing the exception returned by the 
server.
* 
*/
   public function onFault( event : *=null ) : void
   {
trace("** on fault learning restults");
REMEventBroadcaster.getInstance().dispatchEvent
(REMControl.EVENT_SHOW_SERVER_ERROR, event.fault.message);
REMEventBroadcaster.getInstance().dispatchEvent( 
REMControl.EVENT_GET_LEARNING_RESULTS_FAILURE );
   }
}
}

Delegate:

package com.bmc.rem.delegate.probe
{

import com.adobe.cairngorm.business.Responder;
import com.adobe.cairngorm.business.ServiceLocator;
import com.bmc.rem.model.ModelLocator;
import com.bmc.rem.vo.probe.LearningCriteriaVO;

import mx.rpc.AsyncToken;
import mx.rpc.soap.mxml.WebService;

 
public class ProbeServicesDelegate
{

/**
* The responder to the server side service calls
*/
private var responder:Responder;


private var service:Object;

private var probeServicesFacade:Object;

public function ProbeServicesDelegate( responder : Responder )
{

this.probeServicesFacade = ServiceLocator.getInstance
().getService("probeServicesFacade") as WebService;
if( !ModelLocator.getInstance().isProbeWSDLLoaded)
{
ModelLocator.getInstance().isProbeWSDLLoaded = 
true;
this.probeServicesFacade.loadWSDL();

}

this.responder = responder;
}

public function startLearning
(learningSession:LearningCriteriaVO):void
{

var startLearningString:String = 

 "http://tmremprobe.bmc.com/datamodel/common\"; 
xmlns:q1=\"http://tmremprobe.bmc.com/ws/ProbeService\";>" +

 "Active" +
 "" +
 "" +

 "" + 
 
learningSession.fromIpAddress +

 "" +
 "" +
 
learningSession.toIpAddress +
 "" 
+
 "" + 
 "" +
 
learningSession.urlPatternFilter +
 "" +
 "" +
 
learningSession.learningDuration +
 "" +
 "" +
 
learningSession.learningCount +
 "" +
 "
";
trace("startLearningString = " + 
startLearningString);
var startLearnin

[flexcoders] Re: Flex Application will not refresh properly

2008-07-03 Thread Brian Raymes
Ah! That is a good idea, thank you.



Brian

--- In flexcoders@yahoogroups.com, Joseph Balderson <[EMAIL PROTECTED]> wrote:
>
> Load a proxy SWF which checks/sets a LocalSharedObject for a
cookie/timestamp. 
> If timestamp reached, lead main app swf with getTime() string on the
filename; 
> if not then load just the SWF filename, so the browser takes the SWF
from the 
> cache. You can set the timestamp artificially short for debugging so
that it 
> always takes it form the server.
> 
> I've seen this done for login proxies which autofill the user/pass
fields, then 
> refresh them with blank ones after a certain time, or which query
the server for 
> whether an update to the app has been issued, which resets the
timestamp/cookie.
> 
> ___
> 
> Joseph Balderson, Flash Platform Developer | http://joeflash.ca
> 
> 
> Brian Raymes wrote:
> > Ah! That's a better approach, if you want a new swf loaded every time.
> >  Though, there should be a way to only load the swf if it has been
> > updated.
> > 
> > Obviously, we don't want the user to download the swf to determine
> > whether or not a time stamp has changed, but how about some other
> > server-side check, lets say, through the html file? Is it possible?
> > 
> > 
> > --- In flexcoders@yahoogroups.com, Joseph Balderson  wrote:
> >> if you use SWFObject in your index.template.html or in your final
> > HTML, and 
> >> append the following js, the browser will never get the swf from the
> > browser cache:
> >> ... "mySwf.swf?"+(new Date()).getTime() ...
> >>
> >> This will append a unique number at the end of the swf filename,
> > making the 
> >> browser think it's always a new file.
> >>
> >> or you could just clear the cache before every in-browser test.
> >> ___
> >>
> >> Joseph Balderson, Flash Platform Developer | http://joeflash.ca
> >>
> >>
> >> Brian Raymes wrote:
> >>> I have had similar problems when using I.E. 7/8.  Firefox has been
> >>> more consistent, but Safari (my least favorite browser) seems to be
> >>> working the best.
> >>>
> >>> It appears to me that swfs are cached inconsistently.  If I update a
> >>> swf, I expect my browser to load the new version.  I have had to
> >>> delete my browser cache way too often to remedy this.
> >>>
> >>> If you are using ColdFusion as a mediator, add this to the top
of your
> >>> index.cfm (or whatever name yours) to help force a re-load the swfs
> >>> every time.  You might be able to accomplish this without ColdFusion
> >>> in the basic html template as well.
> >>>
> >>> 
> >>> 
> >>>  
> >>>
> >>> I would rather my browser detect new versions of swfs... I don't
like
> >>> having to re-download every page visit.  The software I am
working on
> >>> must be loaded consistently if a change is made on my end.  It is
> >>> important for my customers to see everything up-to-date.
> >>>
> >>> Let me know if you find a better solution.
> >>>
> >>>
> >>> Brian
> >>>
> >>> --- In flexcoders@yahoogroups.com, "Ryan Schlig" 
wrote:
>  I am having problems viewing the changes in my application on
> > refresh.
>  I have to actually close my browser and open up a new session
> > before my
>  changes will be seen.  This is not only a local problem, it also
> > happens
>  when I push out new versions of my application to our servers. 
> > It seems
>  as though IIS is not detecting a change in the html or swf. 
> > Anyone else
>  ran into this and found a solution?
> 
>   
> 
>  Ryan Schlig
> 
> >>>
> >>>
> >>> 
> >>>
> >>> --
> >>> Flexcoders Mailing List
> >>> FAQ:
http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> >>> Search Archives:
> > http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups
> > Links
> >>>
> >>>
> >>>
> > 
> > 
> > 
> > 
> > 
> > --
> > Flexcoders Mailing List
> > FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> > Search Archives:
http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups
Links
> > 
> > 
> > 
> >
>




[flexcoders] BSOD Crashes (in Windows) while debugging in Flex - Is this a known problem?

2008-07-03 Thread pbrendanc
I'm Running XP (SP3) and have had several BSOD crashes while starting
a debug session(Driver IRQL_Not_Less_OR_EQual error). On restart I get
a windows message that system has recovered from serious error. 

(I may have had a run time Null Object Ref error in my code - not sure
if that would be a factor)

FWIW - my system is otherwise very stable.

Anyone else experienced this?

Patrick



RE: [flexcoders] WebService Issue

2008-07-03 Thread Tracy Spratt
To be clear, the crossdomain.xml file must go on the server that is
serving the *WebService*.  Is that the case?

 

And hmm, you may be missing the most important part of the crossdomain
file, let mw look Yes, you need a line like this:



 

Tracy

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of shameer.forflex
Sent: Thursday, July 03, 2008 3:13 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] WebService Issue

 

My flex application is calling a webservice. It runs fine locally.
When put on the server, I am getting an error.

The fault string looks like

message faultCode:Channel.Security.Error
faultString:'Security error accessing url'
faultDetail:'Unable to load WSDL. If currently online, please verify
the URI and/or format of the WSDL (http://myshec103077d:8080/Check/
 
addint?wsdl)'

I tried putting crossdomain.xml in the root of the application server
and I am able to access the cross domain file by typing
http://myshec103077d:8080/crossdomain.xml
 

The cross domain file which I had put is of the form







Still I am getting the same error, when I run the flex app on the
server.
Any pointers will be appreciated.

Thanks,
Shameer. 

 



RE: [flexcoders] Dynamically Set Controls to be Required

2008-07-03 Thread Tracy Spratt
Are you expecting this to return a reference to a Label instance?

tArray[i].ControlName as Label

 

It will not.  "as" is a cast, and requires that an reference to an
instance of Label be contained in a variable.

 

If ControlName contains the id of a control instantiated using an mxml
tag, then do:

this[tArray[i].ControlName].styleName="required";

 

If you have instantiated the label components dynamically, then that
won't work.

 

Tracy



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of gregariousgregmi
Sent: Thursday, July 03, 2008 4:03 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Dynamically Set Controls to be Required

 

I have several comboboxes that I want to set to be required based on 
a login id. I have an array of objects; each object contains a 
string variable that is the label name of the combo box that I want 
to be required. The line that sets the styleName to required returns 
a "Error #1009: Cannot access a property or method of a null object 
reference." 
required is defined in the css file.

Any ideas?

private function getFormControlProperties_Result(evt:ResultEvent):void
{
if( evt.result == null )
return;
tArray = evt.result as Array;
for( var i:int=0; i

RE: [flexcoders] Re: Drag-n-Drop problem in DataGrid with custom ItemRenderer ...

2008-07-03 Thread Md. Ariful Islam
Hi Alex,

Thanks for reading my problem. The problem is, if I set the itemRenderer with a 
custom renderer, I can't drag at all.  While drag-n-drop works quite fine when 
I set dataField normally with a property name.

ERRORSOME CODE, DOESN'T WORK:





Regards,
~ Arif

 

















  

[flexcoders] Re: override updateDisplayList

2008-07-03 Thread markgoldin_2000
I got everything working with row highlighting on demand. Here is 
mine (mostly yours) code:
override protected function drawRowBackground(s:Sprite, rowIndex:int, 
y:Number, height:Number, color:uint, dataIndex:int):void
{
if (selectedItem != null && rowIndex <= dataProvider.length - 1 && 
dataProvider[rowIndex].trainplan == true)
{ 
color = 0xFF;
super.drawRowBackground(s,rowIndex,y,height,color,dataIndex);
}
}

override protected function updateDisplayList(unscaledWidth:Number, 
unscaledHeight:Number):void 
{
super.updateDisplayList(unscaledWidth, unscaledHeight);
var rowBGs:DisplayObject = listContent.getChildByName("rowBGs");
var colBGs:DisplayObject = listContent.getChildByName("colBGs");
if (rowBGs != null && colBGs != null) 
{
var rowBGIndex:int = listContent.getChildIndex
(listContent.getChildByName("rowBGs"));
var colBGIndex:int = listContent.getChildIndex
(listContent.getChildByName("colBGs"));
if (colBGIndex > rowBGIndex) 
{   
listContent.swapChildrenAt(rowBGIndex, colBGIndex);
}
}
}
Using that code I can highlight any row I need.
Now, the fun part. How can I restore all original colors for columns 
that were thee before row color change?

Thanks for your help.




[flexcoders] Printing Column Chart

2008-07-03 Thread ghus32
Is it possible to print a column chart in Flex?

Thanks





[flexcoders] Re: Tree corruption when adding leaves

2008-07-03 Thread davidyoungbloodipog
Just loaded Flex 3 and got the same results.
As before, when I drop on closed branches, all is OK. Dropping on open
branches leads to corruption. It appears that the list rendering is
suffering. The underlying XML code structure is fine though!

Ideas?

--- In flexcoders@yahoogroups.com, "Alex Harui" <[EMAIL PROTECTED]> wrote:
>
> That sounds like a Flex 2 issue.  Is this running on Flex 3?
> 
>  
> 
> 
> 
> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
> Behalf Of davidyoungbloodipog
> Sent: Thursday, July 03, 2008 11:14 AM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Tree corruption when adding leaves
> 
>  
> 
> I have a tree that I can DND leaves to nodes. This works fine so long
> as I don't drop on an open node! When I drop on an open node, the
> leaves are accepted and the XML looks fine, but the visual tree
> becomes corrupt (folders and contents get all jumbled up).
> I have tried various ways to overcome this (including closing the tree
> before the drop) but none have worked.
> 
> Can anyone help me?
>




[flexcoders] Load Balancing RTMPT question.

2008-07-03 Thread bererton
Hello, I have a load balancing problem.  I'm using HAProxy to load
balance RTMPT connections to multiple backend servers. HAProxy does
the load balancing by inserting a cookie called SERVERID into the HTTP
traffic (which is what RTMPT uses).

I have successfully gotten flash clients to load balance properly but
only on windows based machines. 

The reason for this is that (at least on Mac OSX based machines),
every RTMPT request put out by a client on a Mac (any browser) adds a
cookie called "Connection: Close", which causes HAProxy to close the
HTTP 1.1 connection, and RTMPT doesn't remember the SERVERID cookie
for the next HTTP request. So each HTTP Post sent by RTMPT ends up
going to a different backend server and no RTMPT connection can be made.

Is there a way to call netConnection.addHeader(), to properly set a
cookie ID? Alternatively, is there a way to stop a flash client in a
mac browser from putting in the "Connection: Close" cookie?

Any thoughts? Has anyone tried other methods of RTMPT balancing?




[flexcoders] Dynamically Set Controls to be Required

2008-07-03 Thread gregariousgregmi
I have several comboboxes that I want to set to be required based on 
a login id.  I have an array of objects; each object contains a 
string variable that is the label name of the combo box that I want 
to be required. The line that sets the styleName to required returns 
a "Error #1009: Cannot access a property or method of a null object 
reference." 
required is defined in the css file.

Any ideas?


private function getFormControlProperties_Result(evt:ResultEvent):void
{
if( evt.result == null )
   return;
tArray = evt.result as Array;
for( var i:int=0; i

[flexcoders] Re: Problem with run time tracing

2008-07-03 Thread markgoldin_2000
Ah, will check. Thanks 
--- In flexcoders@yahoogroups.com, "Alex Harui" <[EMAIL PROTECTED]> wrote:
>
> Does your production box have a debugger player?  The release player
> doesn't output traces
> 
>  
> 
> 
> 
> From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On
> Behalf Of markgoldin_2000
> Sent: Thursday, July 03, 2008 11:55 AM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Problem with run time tracing
> 
>  
> 
> My production box is Server 2003 R2.
> I am expecting to have a logs folder in c:\Documents and 
> Settings\mgoldin\Application Data\Macromedia\Flash Player.
> But it's not there, nor anywhere.
> 
> Any idea, what's wrong?
> 
> my mm.cfg looks like this:
> ErrorReportingEnable=1
> TraceOutputFileEnable=1
> and it is in here:
> c:\Documents and Settings\myname
> 
> Thanks
>




[flexcoders] LCDS: Problem with destination inheritance

2008-07-03 Thread gordon_greg
Hello,

I'm using the latest LCDS 2.6.RC1 with the HibernateAssembler and a
non-trivial data model that relies upon destination inheritance in a
few places.

In general everything works great, but occasionally, when I remove an
element from a collection using dataService.deleteItem, when I then
call dataService.commit, I end up with an exception that indicates
that the wrong destination is being invoked...

For our purposes, let's just deal with 4 destinations:

Folder
ResourceFolder (extends folder)
Meeting
MeetingParticipant (is a many-to-one child of Meeting)

Now, if I call:

   meetingParticipantDataService.deleteItem(meetingParticipant);
   
   meetingParticipantDataService.commit([meetingParticipant],true);

I end up with the following exception:

== begin exception 

Error: Destination: spring.folder received an instance of class:
demo.model.meetings::MeetingParticipant but we could not find a
destination in the list of sub-types: spring.resourceFolder which
extends this destination.
at
mx.data::ConcreteDataService/http://www.adobe.com/2006/flex/mx/internal::getDestinationForInstance()[C:\depot\flex\branches\enterprise_corfu_rc\frameworks\projects\data\src\mx\data\ConcreteDataService.as:5309]
at
mx.data::ConcreteDataService/http://www.adobe.com/2006/flex/mx/internal::getItemDestination()[C:\depot\flex\branches\enterprise_corfu_rc\frameworks\projects\data\src\mx\data\ConcreteDataService.as:5290]
at
mx.data::ConcreteDataService/http://www.adobe.com/2006/flex/mx/internal::getItemMetadata()[C:\depot\flex\branches\enterprise_corfu_rc\frameworks\projects\data\src\mx\data\ConcreteDataService.as:5275]
at
mx.data::MessageBatch/addMessageIdsForItem()[C:\depot\flex\branches\enterprise_corfu_rc\frameworks\projects\data\src\mx\data\MessageBatch.as:591]
at
mx.data::MessageBatch/extractMessages()[C:\depot\flex\branches\enterprise_corfu_rc\frameworks\projects\data\src\mx\data\MessageBatch.as:456]
at
mx.data::DataStore/http://www.adobe.com/2006/flex/mx/internal::doCommit()[C:\depot\flex\branches\enterprise_corfu_rc\frameworks\projects\data\src\mx\data\DataStore.as:1807]
at
mx.data::DataStore/http://www.adobe.com/2006/flex/mx/internal::internalCommit()[C:\depot\flex\branches\enterprise_corfu_rc\frameworks\projects\data\src\mx\data\DataStore.as:818]
at
mx.data::ConcreteDataService/commit()[C:\depot\flex\branches\enterprise_corfu_rc\frameworks\projects\data\src\mx\data\ConcreteDataService.as:337]
at
mx.data.mxml::DataService/commit()[C:\depot\flex\branches\enterprise_corfu_rc\frameworks\projects\data\src\mx\data\mxml\DataService.as:433]
at [my code here]

== end exception 

Note that there is no relationship at all between MeetingParticipant
and Folder - they are completely independent of each other.

This feels like a bug to me, because it doesn't always happen, is not
reliable reproduced, and once it does happen it keeps happening until
I clean out my browser's cache.

Somehow, something gets the DataService layer in an unstable state,
possibly as a side effect of some exception being thrown somewhere in
my application (although this isn't clear either), and once it is in
that state, it doesn't recover.

Is anyone else seeing this? Should I be reporting this as a bug?

I'd be happy to provide more information as necessary.

Thanks.




RE: [flexcoders] Problem with run time tracing

2008-07-03 Thread Alex Harui
Does your production box have a debugger player?  The release player
doesn't output traces

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of markgoldin_2000
Sent: Thursday, July 03, 2008 11:55 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Problem with run time tracing

 

My production box is Server 2003 R2.
I am expecting to have a logs folder in c:\Documents and 
Settings\mgoldin\Application Data\Macromedia\Flash Player.
But it's not there, nor anywhere.

Any idea, what's wrong?

my mm.cfg looks like this:
ErrorReportingEnable=1
TraceOutputFileEnable=1
and it is in here:
c:\Documents and Settings\myname

Thanks

 



RE: [flexcoders] Re: Drag-n-Drop problem in DataGrid with custom ItemRenderer ...

2008-07-03 Thread Alex Harui
I didn't see anything obvious.  What are the specifics of the problem?

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Muhammad Ariful Islam
Sent: Thursday, July 03, 2008 11:47 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Drag-n-Drop problem in DataGrid with custom
ItemRenderer ...

 

Here is the code for GridImageRenderer which I'm using. The code is a
little messy because of its complex use, sorry for that.


http://www.adobe.com/2006/mxml
 " width="100"
height="115"
creationComplete="initCanvus()">


[Event(name="imagePreview",type="desktopclient.PreviewEvent")]










Regards,
~ Arif

 



Re: [flexcoders] Re: Problems with SWFLoader

2008-07-03 Thread Simon Bailey
From what I recall another point is that if your gonna dispatch an  
event from any frame other than the first, the Event type when  
declared i.e. var lastF:String; needs to be declared on the first  
frame!  I may stand to be corrected here?


Cheers,

Simon

newtriks.com

On 3 Jul 2008, at 18:48, Sean Clark Hess wrote:

Oh, i know what to do.  On the last frame of your animation, put the  
following in.


dispatchEvent(new Event('lastFrame'));

Then, you can listen for that event to know when to start the next  
one, using the idea I wrote before



On Thu, Jul 3, 2008 at 11:47 AM, Sean Clark Hess  
<[EMAIL PROTECTED]> wrote:

I'm not sure how to detect when it finished playing.  Anyone?


On Thu, Jul 3, 2008 at 11:35 AM, carloveparade <[EMAIL PROTECTED] 
> wrote:


--- In flexcoders@yahoogroups.com, "Sean Clark Hess" <[EMAIL PROTECTED]>
wrote:
>OKOKOKOK, Im using flex and i need to put a swf publicity on my
panel, im using swfloader and after publicity is on the end i need
to go to another panel or canvas using a viewstack. but i need to go
to the other canvas after the publicity ends and do ti
automatically.
im using a viewstack an i was thinking in goto another selected
index when the publicity end but how i know on my code if the
movieclip ended? what do you thing about not to use a viewstack
and use a panel and when the publicity end load the next swf on the
same panel? i dont know what to do , maybe some event when the swf
ends. could you help me?

> SWFLoader has a content property. As soon as it is fully loaded
and content
> is defined, try something like this.
>
> var movie:MovieClip = mySwfLoader.content as MovieClip;
> movie.addEventListener( ... uhhh
>
> Actually, I've never worked with flash movieclips in as3 (I've
only used
> flex stuff). Why doesn't movieclip have an "end" or "stop"
event???
>
> I guess you could always use enterFrame as the event handler, and
check for
> the last frame in good old as2 style
>
> On Thu, Jul 3, 2008 at 9:18 AM, carloveparade <[EMAIL PROTECTED]>
> wrote:
>
> > --- In flexcoders@yahoogroups.com , "Sean

> > Clark Hess" 
> > wrote:
> >
> > >
> > > Is the loaded swf written the same version of actionscript as
the
> > loader?
> > >
> > > On Thu, Jul 3, 2008 at 8:21 AM, carloveparade

> > > wrote:
> > >
> > > > I had been working with the SWFLoader to embed external swf
> > > > aplications on my flex application. Now I need to start a
second
> > embed
> > > > swf when the first one ( a movieclip) is on the end of the
> > movie. In
> > > > other words I need to star a new movie when the first is
endes,
> > but i
> > > > cant put a next button so i need start the second one
> > automatically.
> > > > Could you help me?
> > > >
> > > >
> > > >
> > >ys its actionscript 3
> >
> >
> >
>










Re: [flexcoders] Flex Builder Debug Issue

2008-07-03 Thread jonese
Tom.

Thank i'm aware that they use separate players, i just figured i'd
head off those who say to "try another browser" by pointing out that
both the FF and IE players fail to connect to the debugger in Flex
Builder 3.

Still looking for anyone who can help fix this issue

jonese
http://www.jonese.us
http://twitter.com/jonese


On Thu, Jul 3, 2008 at 10:17 AM, Tom Chiverton
<[EMAIL PROTECTED]> wrote:
> On Thursday 03 Jul 2008, jonese wrote:
>> It fails in both Firefox 3 & IE7
>
> FF and IE use totally separate Flash players.
>
> --
> Tom Chiverton
>
> 
>
> 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. Any 
> reference to a partner in relation to Halliwells LLP means a member of 
> Halliwells LLP.  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 Mailing List
> FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> Search Archives: 
> http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links
>
>
>
>


[flexcoders] Dynamic Data Grid Problem

2008-07-03 Thread e_r_i_s_e_d
I'm creating a datagrid that gets all its information for an xml.  I've
got the column headers to work but for some reason I must be missing how
to get the data to load.

Here's the code:


private function dataHandler(event:ResultEvent):void
 {

 m_data = XML(event.result);


 for each(var l_item:XML in m_data.columns.column){

 var l_newDataGridColumn:DataGridColumn = new
DataGridColumn();
 l_newDataGridColumn.headerText = l_item.name;
 l_newDataGridColumn.dataField =
"columns.column.data.item";
 var l_cols:Array = m_dataGrid.columns;
 l_cols.push(l_newDataGridColumn);
 m_dataGrid.columns = l_cols;


 }

 

 



And here's the XML:



 
 
 Column 4
 
 1
 2
 3
 4
 
 
 
 Column 5
 
 1
 2
 3
 4
 
 
 
 Columns  6
 
 1
 2
 3
 4
 
 
 



[flexcoders] Problem with run time tracing

2008-07-03 Thread markgoldin_2000
My production box is Server 2003 R2.
I am expecting to have a logs folder in c:\Documents and 
Settings\mgoldin\Application Data\Macromedia\Flash Player.
But it's not there, nor anywhere.

Any idea, what's wrong?

my mm.cfg looks like this:
ErrorReportingEnable=1
TraceOutputFileEnable=1
and it is in here:
c:\Documents and Settings\myname

Thanks



RE: [flexcoders] Framework Caching Affecting Security Settings?

2008-07-03 Thread Alex Harui
Can you put together a mini-example of the issue so we can see more
specifics?

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Jamie S
Sent: Thursday, July 03, 2008 11:48 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Framework Caching Affecting Security Settings?

 

Does Framework Caching affect the security settings?

I was banging my head against a wall because my app was throwing
security violations all over the place when an outside swf ( or
JavaScript ) tried to access the main app. I was using
Security.allowDomain("*") but it was being ignored completely. I
turned framework caching off and everything worked again.

What is the connection? How can I use framework caching and still keep
my security settings intact?

Jamie

 



[flexcoders] Framework Caching Affecting Security Settings?

2008-07-03 Thread Jamie S
Does Framework Caching affect the security settings?

I was banging my head against a wall because my app was throwing
security violations all over the place when an outside swf ( or
JavaScript ) tried to access the main app. I was using
Security.allowDomain("*") but it was being ignored completely. I
turned framework caching off and everything worked again.

What is the connection? How can I use framework caching and still keep
my security settings intact?

Jamie


[flexcoders] Re: Drag-n-Drop problem in DataGrid with custom ItemRenderer ...

2008-07-03 Thread Muhammad Ariful Islam
Here is the code for GridImageRenderer which I'm using.  The code is a
little messy because of its complex use, sorry for that.



http://www.adobe.com/2006/mxml"; width="100"
height="115"
 creationComplete="initCanvus()">

 
   [Event(name="imagePreview",type="desktopclient.PreviewEvent")]
 
 
 
 
 
 
 





Regards,
~ Arif




[flexcoders] SWF Object?

2008-07-03 Thread odiel_leon
Hi.

I want to make some characters on Flash an latter use in a Flex 
project. The chacarters have some animations (Movie clips).

I know how to import a swf using swfloader.

The problem is that i want to know how to tell the character to play 
some animations.

Can help me?





[flexcoders] referencing style classes in css

2008-07-03 Thread Aaron Miller
Hello,

Sorry if this is kind of off topic but I had a question about using css
styles to skin my app. I have one application that is deployed on many
different sites, all of which have different skins loaded at run time. I
want to make it quick and easy to update the skins by setting basic options
and referencing them in the other styles. Is this possible to do? If so,
what would the correct syntax be?

As an example of what I mean:


.defaultLightColor {
  color: #005290;
}

.mediumLightFont {
fontFamily: MYFont;
fontWeight: normal;
fontSize: 14;
color: 'defaultLightColor.color';
}

.someDataGrid {
fontStyle: 'mediumLightFont';
}


I tried the above which obviously didn't work. Any suggestions?


Thanks!
~Aaron


[flexcoders] Re: #2038: File I/O Error

2008-07-03 Thread lytvynyuk
Absolutely same code. Looks like there is some issue with flash player
version for Firefox/Opera, which doesn't work properly while uploading
via HTTPS. Or may be I'm doing something wrong.

--- In flexcoders@yahoogroups.com, "Sean Clark Hess" <[EMAIL PROTECTED]> wrote:
>
> Do you have different versions running in IE and firefox?
> 
> On Thu, Jul 3, 2008 at 8:56 AM, lytvynyuk <[EMAIL PROTECTED]> wrote:
>



[flexcoders] Re: DataGrid

2008-07-03 Thread Niraj
Hey Rob:
I looked at the code for DataGrid.as and DataGridBase.as

i am still confused which method I should be overriding.

Can you provide me a little more insight?

Thanks
Niraj.

--- In flexcoders@yahoogroups.com, "Rob Rusher" <[EMAIL PROTECTED]> wrote:
>
> You are going to have to pull out your coding hat on this one.
> 
> Open the source to DataGrid.as and DataGridBase, examine the way the
columns
> are rendered. Then extend either the appropriate classes and
override the
> methods that layout the header and columns.
> 
> If I can find the time, I'll try it, but that is how you would start.
> 
> Good luck.
> 
> Rob
> 
> On Wed, Jul 2, 2008 at 7:46 AM, Niraj <[EMAIL PROTECTED]> wrote:
> 
> >   Hi:
> > I want to have the column headers on the left, rather than on the top
> > on a datagrid. Is there some way i can modify the datagrid to have
> > this kind of structure
> >
> > Header1 DataColumn11 DataColumn12 DataColumn13 DataColumn14
> > Header2 DataColumn21 DataColumn22 DataColumn23 DataColumn24
> > Header3 DataColumn31 DataColumn32 DataColumn33 DataColumn34
> > Header4 DataColumn41 DataColumn42 DataColumn43 DataColumn44
> >
> > Thanks
> >
> >  
> >
> 
> 
> 
> -- 
> -- 
> Regards,
> Rob Rusher
> 
> Adobe Certified AIR, Connect, ColdFusion MX and Flex Instructor
> m: 303-885-7044
> im: robrusher
>




RE: [flexcoders] Tree corruption when adding leaves

2008-07-03 Thread Alex Harui
That sounds like a Flex 2 issue.  Is this running on Flex 3?

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of davidyoungbloodipog
Sent: Thursday, July 03, 2008 11:14 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Tree corruption when adding leaves

 

I have a tree that I can DND leaves to nodes. This works fine so long
as I don't drop on an open node! When I drop on an open node, the
leaves are accepted and the XML looks fine, but the visual tree
becomes corrupt (folders and contents get all jumbled up).
I have tried various ways to overcome this (including closing the tree
before the drop) but none have worked.

Can anyone help me?

 



[flexcoders] Tree corruption when adding leaves

2008-07-03 Thread davidyoungbloodipog
I have a tree that I can DND leaves to nodes. This works fine so long
as I don't drop on an open node! When I drop on an open node, the
leaves are accepted and the XML looks fine, but the visual tree
becomes corrupt (folders and contents get all jumbled up).
I have tried various ways to overcome this (including closing the tree
before the drop) but none have worked.

Can anyone help me?



[flexcoders] Re: How to access properties of symbols in loaded SWF?

2008-07-03 Thread scalenine
Actually, you could translate the artwork you created in Illustrator to Degrafa 
Path data 
and make a full Illustrator-like authoring tool. Here's some simple examples:

http://samples.degrafa.com/BindingSample/BindingSample.html

http://samples.degrafa.com/CapacityIndicator/CapacityIndicator.html

If you're just looking to change colors in static artwork then maybe the SWF 
route may be 
be more suitable. 

--- In flexcoders@yahoogroups.com, "daddyo_buckeye" <[EMAIL PROTECTED]> wrote:
>
> Upon further review...
> 
> Looks like the only thing Degrafa offers (in my case) is to use CSS
> styling on my artwork. 
> 
> I don't need Flex or the AS3 drawing capabilities to create any
> artwork, all the (fairly complex) art is already done in Illustrator.
> 
> I may include Degrafa for other parts of the app, tho...
> 
> Thanks again.
> 
> 
> 
> 
> --- In flexcoders@yahoogroups.com, Flex Frenzy  wrote:
> >
> > Correct me if I'm wrong, but wouldn't Degrafa be the best tool for that?
>





[flexcoders] Re: Can I work with charting components with a team that has only FB Standard?

2008-07-03 Thread João
Thanks Matt.

JS



Re: [flexcoders] Re: Problems with SWFLoader

2008-07-03 Thread Sean Clark Hess
Oh, i know what to do.  On the last frame of your animation, put the
following in.

dispatchEvent(new Event('lastFrame'));

Then, you can listen for that event to know when to start the next one,
using the idea I wrote before

On Thu, Jul 3, 2008 at 11:47 AM, Sean Clark Hess <[EMAIL PROTECTED]> wrote:

> I'm not sure how to detect when it finished playing.  Anyone?
>
>
> On Thu, Jul 3, 2008 at 11:35 AM, carloveparade <[EMAIL PROTECTED]>
> wrote:
>
>>   --- In flexcoders@yahoogroups.com , "Sean
>> Clark Hess" <[EMAIL PROTECTED]>
>> wrote:
>> >OKOKOKOK, Im using flex and i need to put a swf publicity on my
>> panel, im using swfloader and after publicity is on the end i need
>> to go to another panel or canvas using a viewstack. but i need to go
>> to the other canvas after the publicity ends and do ti
>> automatically.
>> im using a viewstack an i was thinking in goto another selected
>> index when the publicity end but how i know on my code if the
>> movieclip ended? what do you thing about not to use a viewstack
>> and use a panel and when the publicity end load the next swf on the
>> same panel? i dont know what to do , maybe some event when the swf
>> ends. could you help me?
>> > SWFLoader has a content property. As soon as it is fully loaded
>> and content
>> > is defined, try something like this.
>> >
>> > var movie:MovieClip = mySwfLoader.content as MovieClip;
>> > movie.addEventListener( ... uhhh
>> >
>> > Actually, I've never worked with flash movieclips in as3 (I've
>> only used
>> > flex stuff). Why doesn't movieclip have an "end" or "stop"
>> event???
>> >
>> > I guess you could always use enterFrame as the event handler, and
>> check for
>> > the last frame in good old as2 style
>> >
>> > On Thu, Jul 3, 2008 at 9:18 AM, carloveparade <[EMAIL PROTECTED]>
>> > wrote:
>> >
>> > > --- In flexcoders@yahoogroups.com 
>> > > > 40yahoogroups.com>, "Sean
>> > > Clark Hess" 
>> > > wrote:
>> > >
>> > > >
>> > > > Is the loaded swf written the same version of actionscript as
>> the
>> > > loader?
>> > > >
>> > > > On Thu, Jul 3, 2008 at 8:21 AM, carloveparade
>> 
>> > > > wrote:
>> > > >
>> > > > > I had been working with the SWFLoader to embed external swf
>> > > > > aplications on my flex application. Now I need to start a
>> second
>> > > embed
>> > > > > swf when the first one ( a movieclip) is on the end of the
>> > > movie. In
>> > > > > other words I need to star a new movie when the first is
>> endes,
>> > > but i
>> > > > > cant put a next button so i need start the second one
>> > > automatically.
>> > > > > Could you help me?
>> > > > >
>> > > > >
>> > > > >
>> > > >ys its actionscript 3
>> > >
>> > >
>> > >
>> >
>>
>>  
>>
>
>


Re: [flexcoders] Re: Problems with SWFLoader

2008-07-03 Thread Sean Clark Hess
I'm not sure how to detect when it finished playing.  Anyone?

On Thu, Jul 3, 2008 at 11:35 AM, carloveparade <[EMAIL PROTECTED]>
wrote:

>   --- In flexcoders@yahoogroups.com , "Sean
> Clark Hess" <[EMAIL PROTECTED]>
> wrote:
> >OKOKOKOK, Im using flex and i need to put a swf publicity on my
> panel, im using swfloader and after publicity is on the end i need
> to go to another panel or canvas using a viewstack. but i need to go
> to the other canvas after the publicity ends and do ti
> automatically.
> im using a viewstack an i was thinking in goto another selected
> index when the publicity end but how i know on my code if the
> movieclip ended? what do you thing about not to use a viewstack
> and use a panel and when the publicity end load the next swf on the
> same panel? i dont know what to do , maybe some event when the swf
> ends. could you help me?
> > SWFLoader has a content property. As soon as it is fully loaded
> and content
> > is defined, try something like this.
> >
> > var movie:MovieClip = mySwfLoader.content as MovieClip;
> > movie.addEventListener( ... uhhh
> >
> > Actually, I've never worked with flash movieclips in as3 (I've
> only used
> > flex stuff). Why doesn't movieclip have an "end" or "stop"
> event???
> >
> > I guess you could always use enterFrame as the event handler, and
> check for
> > the last frame in good old as2 style
> >
> > On Thu, Jul 3, 2008 at 9:18 AM, carloveparade <[EMAIL PROTECTED]>
> > wrote:
> >
> > > --- In flexcoders@yahoogroups.com 
> > >  40yahoogroups.com>, "Sean
> > > Clark Hess" 
> > > wrote:
> > >
> > > >
> > > > Is the loaded swf written the same version of actionscript as
> the
> > > loader?
> > > >
> > > > On Thu, Jul 3, 2008 at 8:21 AM, carloveparade
> 
> > > > wrote:
> > > >
> > > > > I had been working with the SWFLoader to embed external swf
> > > > > aplications on my flex application. Now I need to start a
> second
> > > embed
> > > > > swf when the first one ( a movieclip) is on the end of the
> > > movie. In
> > > > > other words I need to star a new movie when the first is
> endes,
> > > but i
> > > > > cant put a next button so i need start the second one
> > > automatically.
> > > > > Could you help me?
> > > > >
> > > > >
> > > > >
> > > >ys its actionscript 3
> > >
> > >
> > >
> >
>
>  
>


[flexcoders] Re: Problems with SWFLoader

2008-07-03 Thread carloveparade
--- In flexcoders@yahoogroups.com, "Sean Clark Hess" <[EMAIL PROTECTED]> 
wrote:
>OKOKOKOK, Im using flex and i need to put a swf publicity on my 
panel, im using swfloader and after publicity is on the end i need 
to go to another panel or canvas using a viewstack. but i need to go 
to the other canvas after the publicity ends and do ti 
automatically. 
im using a viewstack an i was thinking in goto another selected 
index when the publicity end but how i know on my code if the 
movieclip ended? what do you thing about not to use a viewstack 
and use a panel and when the publicity end load the next swf on the 
same panel? i dont know what to do , maybe some event when the swf 
ends. could you help me?
> SWFLoader has a content property.  As soon as it is fully loaded 
and content
> is defined, try something like this.
> 
> var movie:MovieClip = mySwfLoader.content as MovieClip;
> movie.addEventListener( ... uhhh
> 
> Actually, I've never worked with flash movieclips in as3 (I've 
only used
> flex stuff).  Why doesn't movieclip have an "end" or "stop" 
event???
> 
> I guess you could always use enterFrame as the event handler, and 
check for
> the last frame in good old as2 style
> 
> On Thu, Jul 3, 2008 at 9:18 AM, carloveparade <[EMAIL PROTECTED]>
> wrote:
> 
> >   --- In flexcoders@yahoogroups.com , "Sean
> > Clark Hess" 
> > wrote:
> >
> > >
> > > Is the loaded swf written the same version of actionscript as 
the
> > loader?
> > >
> > > On Thu, Jul 3, 2008 at 8:21 AM, carloveparade 

> > > wrote:
> > >
> > > > I had been working with the SWFLoader to embed external swf
> > > > aplications on my flex application. Now I need to start a 
second
> > embed
> > > > swf when the first one ( a movieclip) is on the end of the
> > movie. In
> > > > other words I need to star a new movie when the first is 
endes,
> > but i
> > > > cant put a next button so i need start the second one
> > automatically.
> > > > Could you help me?
> > > >
> > > >
> > > >
> > >ys its actionscript 3
> >
> >  
> >
>




Re: [flexcoders] XML to Array Collection

2008-07-03 Thread Simon Bailey

Here is a simple example ripped from an old app which should help:




Krome

		Dr Krome on the scratch using 2 turntables from the  
boogie down bristol...



D-Styles

Sick video from D-Styles cliffords 
mustache



private function onComplete( event:Event ):void
{
var media:XML = new XML( urlLoader.data );

for each(var item:XML in media..content)
{
// Custom playlist Value Object
var pl:PlaylistVO = new PlaylistVO();

pl.title = String(item..title);
pl.url = String(item..url);
pl.description = String(item..description);
playlist_ac.addItem( pl );

}
}

Cheers,

Simon

newtriks.com

On 3 Jul 2008, at 17:07, kirilminevgroups wrote:


I need to fill an ArrayCollection from XML object.

I have my result event which returns string with xml structure:


- 
000Y
6/10/2008 6:25:00 AM
xx.xxx.xx.xx
CBOT-A
Add
xxx
15
15
0



For example this is how I am filling my XML object:

var xml:XML = new XML(event.result);

Then I need to fill my array collection and even though I tried
everything possible I could think of no success.

I tried that with no success: var tmpData:ArrayCollection =  
xml.NFS.Trade;


Anyone who can help???

Thanks in advance.







[flexcoders] Re: Flex Builder Issues

2008-07-03 Thread steve.baney
Helped, still didn't fix the syntax error checking...



[flexcoders] Re: Saving or Exporting application charts as images?

2008-07-03 Thread cox.blair
Hmm, yup that sucks. I'll be using PHP5 and MySQL 4.1, any tips on
where I could look for some tips on accomplishing this? New territory
for me.

Cheers,


--- In flexcoders@yahoogroups.com, "Sean Clark Hess" <[EMAIL PROTECTED]> wrote:
>
> I've tried things like this before, and it never works.  I can't
remember if
> there's some way to do this natively with as3, or if I was doing it
with a
> swf2exe tool, but either way, it sucks.
> 
> Send the data serverside and regenerate it there.  Your serverside
language
> should have some packages to create images or pdfs or something.  It's
> annoying to generate the report in two places, but it's the only way
I know
> how to do it.





[flexcoders] Re: Flex Builder Issues

2008-07-03 Thread steve.baney

Here's the jinx:

Disabling Symantec Anti-Virus seems to have fixed it.  Can't believe I
didn't think of this earlier...

Thanks a bunch for the good ideas!

Steve

--- In flexcoders@yahoogroups.com, "steve.baney" <[EMAIL PROTECTED]> wrote:
>
> I thought I had this figured out, but apparently the issues run deeper
> than I thought.
> 
> I'm running:
> 
> Eclipse Platform
> Version: 3.3.2
> Build id: M20080221-1800
> 
> Flex Builder Plug-In Version 3.0 (build 3.0.194161)
> 
> Flex 3.0 SDK
> or
> Flex 3.0.0.477 SDK
> 
> When I pull a fresh copy of my program from my CVS repository
> everything seems to be fine, but as I work on it several Eclipse/Flex
> Builder features stop working.
> 
> Syntax checking breaks just as it was in my earlier post (
> http://tech.groups.yahoo.com/group/flexcoders/message/117968 )
> 
> The 'References' option in the right-click menu only finds the first
> couple of instances, then ignores the rest.
> 
> I'm sure this is an issue with my program, as I've reproduced it
> across several installs from fresh downloads and on two different
> computers, as well as in the standalone Flex Builder.
> 
> I'm not changing anything other than adding lines of code to a freshly
> checked out copy of my project (which works fine when I first check it
> out) when this occurs.  It doesn't seem to matter what code I'm
> entering, as I fixed this issue the first time by reverting to an
> older version, and then adding the code from the broken copy, testing
> it after each line I added, and then making a new branch once I got
> the project updated and functioning with the new code.  Now when I
> check that branch out it works, until I start coding again.
> 
> The only related issue I could find (and it's a bit of a stretch) is
this
> 
> http://tech.groups.yahoo.com/group/flexcoders/message/105055
> 
> So I tried deleting any unnecessary files in /bin to no avail.  I'm
> not positive on what I can and can't delete from /bin tho, so I may be
> leaving whatever is messing me up.
> 
> I'm pretty stumped here, and my last post didn't get much response, so
> I'm thinking this is a really obscure issue.  This is killing my
> production schedule though, so if anyone has any ideas, thoughts,
> reflections, comments, commiseration, or whatever over the weekend
> please drop me a line.
> 
> Thank You!
> Steve
>




Re: [flexcoders] Re: Can I work with charting components with a team that has only FB Standard?

2008-07-03 Thread Matt Chotin
It's all about whether they're building the modules.  Honestly I can't really 
provide the legal advice, the license we put out has to be the "definitive" 
word as far as our lawyers are concerned, they really don't want me 
interpreting.

Matt


On 7/3/08 10:03 AM, "João" <[EMAIL PROTECTED]> wrote:




What if I work in a module that uses the charting components, and the
others work in other modules that don't use charting components? Will
that create licensing problems?

I wish I could pass that costs to the clients but this is Portugal ...
even banks discuss every little cent when it comes to pay... :)

João Saleiro





[flexcoders] Re: Can I work with charting components with a team that has only FB Standard?

2008-07-03 Thread João
What if I work in a module that uses the charting components, and the
others work in other modules that don't use charting components? Will
that create licensing problems?

I wish I could pass that costs to the clients but this is Portugal ...
even banks discuss every little cent when it comes to pay... :)

João Saleiro



RE: [flexcoders] Extending the PromptArrayCollection Class (brain freeze)

2008-07-03 Thread Alex Harui
It is probably easiest just to reset the CB's dp when the data is
available.

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of nwebb
Sent: Thursday, July 03, 2008 1:45 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Extending the PromptArrayCollection Class (brain
freeze)

 

Hi, 

The Adobe technote provides a class for getting around the problem of
having a re-selectable prompt for a combo box:
(http://kb.adobe.com/selfservice/viewContent.do?externalId=1fecccba&slic
eId=1
 )

I've mainly been using it like this:



At the time of setting it, model.suppliers is still an empty
ArrayCollection. When it gets updated I'd like my supplierComp ComboBox
to update appropriately. I've been going round in circles. Could someone
point me in the right direction?

 



RE: [flexcoders] Passing Initialization Parameter to a Popup Form ?

2008-07-03 Thread Alex Harui
Instead of calling createPopUp, do new MyPopUp(), set some properties
and call addPopUp

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of pbrendanc
Sent: Thursday, July 03, 2008 1:51 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Passing Initialization Parameter to a Popup Form ?

 

Is there a way to pass/initialize a parameter when it is initially 
created - based on the value passed I plan to render the popup
differently as part of my create complete processing in the popup.

I don't want to set/pass the variables after I've created the popup
since that is too late.

Any ideas,

TIA,
Patrick

 



Re: [flexcoders] split mxml files

2008-07-03 Thread Simon Bailey
Create 10 new mxml components, create a new name space in your  
Application Tag as below and then instantiate them as new components:


http://www.adobe.com/2006/mxml";
xmlns:view="components.*"
layout="absolute">










Cheers,

Simon

newtriks.com

On 3 Jul 2008, at 16:30, Tiago Santarosa wrote:



Hi, I have 10 states in the application main.mxml, I would divide  
the code in 10 other files mxml being included by main.mxml.


I would thank any help!

tks, Tiago






RE: [flexcoders] Drag-n-Drop problem in DataGrid with custom ItemRenderer ...

2008-07-03 Thread Alex Harui
If the renderer is causing problem, you should probably show the
renderer code.

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Muhammad Ariful Islam
Sent: Thursday, July 03, 2008 1:37 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Drag-n-Drop problem in DataGrid with custom
ItemRenderer ...

 

Hi,

I am trying to use a DataGrid to set the ordering of a group of images. 
I want to do this with a DataGrid which will show me some properties of
the images in different columns including a thumbnail of the image. The
problem is when I use any custom renderer for any column, the draging is
not working. It works fine when I don't use any ItemRenderer.

My code looks something like this:













Can anyone please give me any clue how to fix this?

Regards,
~ Arif

 



RE: [flexcoders] Row border thickness

2008-07-03 Thread Alex Harui
Yes, should be possible.  I'd subclass DG.  There are protected methods
you might find useful.

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of markgoldin_2000
Sent: Thursday, July 03, 2008 5:45 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Row border thickness

 

If I know a rowIndex in DG can I change a border of that row or 
border's color?

Thanks

 



RE: [flexcoders] How to prevent selecting List item while clicking button in itemrenderer ?

2008-07-03 Thread Alex Harui
stopImmediatePropagation

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Adnan Doric
Sent: Thursday, July 03, 2008 5:56 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] How to prevent selecting List item while clicking
button in itemrenderer ?

 

Hello,

I have a List and an itemRenderer with a button in it.

Actually, each time I click the button, the item is selected in the
list and the change event is triggered (normal).

I would like to be able to click that button inside itemRenderer
without selecting that item in the list.

Basically, when clicking on the button, I just want to remove that
item from the list, without changing the currently selected item in
the list.

Can anyone help me with this ?

 



[flexcoders] Manipulating child panels of a tabnavigator

2008-07-03 Thread Adrian Williams
Hi guys,

   Am having a doozy of a time figuring this out.  I am using the
flexlib SuperTabNavigator to create tabbed containers.  Then I am
creating individual SuperPanelPlus panels within the containers for
each tab. Basically creating a dashboard with the tabs acting as the
switch to change from on dashboard to another.  The panels are widgets
that while they can be duplicated between the tabs, the data contained
in the widget is unique to the tab.  

   Put another way, the dashboard is for a PM who has a project. If a
PM has multiple projects, they have multiple tabs.  Each tab contains
widgets that allow the PM to manipulate data specific to the project.

   The problem I am having is in controlling the properties, layout
and constraints of the panels.  The controls that are available to the
panel if I code it in the "body" of the page are not available if I
script them out in the mx:Script section.  They are valid attributes
for the container but are being unrecognized.  

   In case you aren't familiar with the flexlib, SuperTabNavigator
extends TabNavigator which extends ViewStack.  SuperPanelPlus extends
CollapsiblePanel (a custom conatiner) which extends TitleWindow.  

   Keep in mind that when I code it straight out in the body, it works
beautifully.  The challenge is in scripting it.

   Here is the code as it works in the "body":




   Because the tab creation is dynamic, I have to add the panels in
the script section. Here is the code that creates the tabbed navigator:

private function initTabs():void 
{
addTab("Project1", nav, "Project1 Administrator Dashboard", "Click to
swith to Project1", home_icon);
addTab("Project2", nav, "Project2 Administrator Dashboard", "Click to
swith to Project2");
addTab("Project3", nav, "Project3 Administrator Dashboard", "Click to
swith to Project3");
}

   Here is the code for the addTab() method. It is within this method
that I am trying to create the panels using the same arguments/options
as I have available in the "body" code.  

private function addTab(lbl:String, navigator:SuperTabNavigator,
contentString:String=null, toolTip:String=null, icon:Class=null):void 
{
if(lbl=="") lbl = "(Untitled)";

var curNum:Number = nav.numChildren + 1;

var child:VBox = new VBox();
child.setStyle("closable", false);
child.label = lbl;
child.toolTip = toolTip;

// determine which icon to place on the tab
if(icon) {
child.icon = icon;
}
else {
child.icon = document_icon;
}

//layout the quicklinks above the panels, but for each tab
var tabCanvas:Canvas = new Canvas();
child.addChild(tabCanvas);
tabCanvas.percentWidth = 100;
tabCanvas.height = 35;

var label:Label = new Label();
label.text = contentString + " - Index Number: " + curNum ;
tabCanvas.addChild(label);

// main container to hold the vboxes and panels
var mainBox:HBox = new HBox();
child.addChild(mainBox);
mainBox.percentWidth = 100;
mainBox.percentHeight = 100;

// configure column 1
var column1:VBox = new VBox();
mainBox.addChild(column1);
column1.percentWidth = 33;
column1.percentHeight = 100;
var panelCalendar:SuperPanelPlus = new SuperPanelPlus();
column1.addChild(panelCalendar);
panelCalendar.id = "calendar";
panelCalendar.title = "Calendar " + curNum;
panelCalendar.percentWidth = 98;
panelCalendar.percentHeight = 30;
panelCalendar.setStyle("fontfamily","Arial");
panelCalendar.setStyle("fontSize",14);
panelCalendar.setStyle("left",10);
panelCalendar.setStyle("color",0xB8E569);
panelCalendar.showControls = true;
panelCalendar.resizeHeightEnabled = true;

   Now the problems that I am encountering are:

   1.)  The setStyle commands are not working at all. 
   2.)  Some of the attributes that work cleanly in the "body" coding
are not available in the script.  For example dragEnter and
dragComplete.  These are just two of the many that are not available.
  Using Flex Builder, using the intellisense, when I type
"panelCalendar." these properties are not shown in the list of
possible actions.  

   I would GREATLY appreciate any help I can get with this...it's got
me stumped.

Thanks,
Adrian



[flexcoders] XML to Array Collection

2008-07-03 Thread kirilminevgroups
I need to fill an ArrayCollection from XML object.

I have my result event which returns string with xml structure:


- 
  000Y 
  6/10/2008 6:25:00 AM 
  xx.xxx.xx.xx 
  CBOT-A 
  Add 
  xxx 
  15 
  15 
  0 
  


For example this is how I am filling my XML object:

var xml:XML = new XML(event.result);

Then I need to fill my array collection and even though I tried
everything possible I could think of no success.

I tried that with no success: var tmpData:ArrayCollection = xml.NFS.Trade;

Anyone who can help??? 

Thanks in advance.



RE: [flexcoders] Security and ExternalInterface

2008-07-03 Thread Alex Harui
I think there is a recent bug on this issue.

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Jamie S
Sent: Thursday, July 03, 2008 8:23 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Security and ExternalInterface

 

I'm having a problem with getting Security Sandbox Violations while
trying to allow a JavaScript file ( specifically the history.js file
used for deep linking ) to call in to my swf when the swf is loaded in
from a different domain. Even though I used Security.allowDomain("*")
in my swf, I still get a security violation any time the JavaScript
tries to make contact with the swf. The interesting thing is that the
reverse seems to be ok, the swf can call the JavaScript functions
without a problem.

All the documentation I've read around Security.allowDomain allways
refers to allowing an external swf access but is it suppose to be the
same for JavaScript? Is there an extra limitation when using
JavaScript and ExternalInterface that prevents JavaScript on another
domain from accessing the swf?

Jamie

 



[flexcoders] SWFObject example

2008-07-03 Thread Richard Rodseth
Can anyone please point me at a SWFObject 2 example wrapper with a
header, footer, and Flex app that resizes to fill the browser window
(except for the header/footer of course). No browser scrollbars.

Thanks.


[flexcoders] Re: Caringorm Event

2008-07-03 Thread Tim Hoff

What, you've foresaken ESP? :))

-TH

--- In flexcoders@yahoogroups.com, Tom Chiverton <[EMAIL PROTECTED]>
wrote:
>
> On Wednesday 02 Jul 2008, [EMAIL PROTECTED] wrote:
> > hi every i facing problem while re-dispatching Caringorm event. i
have
> ...
> > problem here is code for my event class..
>
> You forgot to say what the problem was.
>
> --
> Tom Chiverton
>
> 
>
> 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. Any reference to a partner in relation to Halliwells
LLP means a member of Halliwells LLP. 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: AdvancedDataGrid scrolling

2008-07-03 Thread Tim Hoff

Hi,

The only way to get smooth scrolling, with any of the list based
components, is to place them in a container (like canvas) and set the
list's height explicitly; to render all of the items 
(valueCommit="myList.height = myList.measureHeightOfItems").  This will
give you a performance hit, but the scroll will be more natural.  This
however, will negate the ability to scrollToIndex.

-TH

--- In flexcoders@yahoogroups.com, "michal.sustr" <[EMAIL PROTECTED]>
wrote:
>
> Hi,
>
> is there a way how to enable AdvancedDataGrid scrolling not on rows,
> but on parts of rows? If some rows are too long (and others short),
> you can see "jumping" which is not very pleasant and is quite
> confusing. Sometimes it is even not possible to scroll down to last
row.
>




Re: [flexcoders] Can I work with charting components with a team that has only FB Standard?

2008-07-03 Thread Matt Chotin
>From a technology perspective everything will be fine, just users without the 
>charts license will see the watermark.  From a licensing perspective, if you 
>all are working on the same application and that application uses charts, you 
>all should have an FB Pro license.  Just pass the cost on to your client :-)

Matt


On 7/3/08 8:21 AM, "Richard Rodseth" <[EMAIL PROTECTED]> wrote:




The others will see the charts with watermarks on them. If you have a
centralized build machine, it will need a copy of the license
installed so that the deployed SWF doesn't have the watermarks. I'm
not sure of the legal details (i.e. whether you need to purchase a
separate license for your build machine).

On Thu, Jul 3, 2008 at 7:15 AM, João <[EMAIL PROTECTED] 
 > wrote:
> Hello,
>
> I have a question that might be a common problem.
>
> Imagine a team of 8 people, each of them with a copy of FB 3 standard,
> working on the same project using source control to synchronize code.
>
> Now imagine a client that wants a sales chart on a specific view of
> the project. I will be the only guy working on that chart, so I have
> to buy at least one FB Professional license.
>
> Now, what I am afraid of is... what will happen when I synchronize my
> code with the rest of the team? Will they have their code broken ? Is
> it necessary that everyone has FB Professional in a situation like
> this, where only one guy will be coding with the charting components?
>
> Thanks,
>
> João Saleiro
>
>




RE: [flexcoders] LCDS Performance (hibernate cascade)

2008-07-03 Thread Jeff Vroom
Hi Shailesh,

Answers inline:

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of 
Shailesh Mangal
Sent: Thursday, July 03, 2008 9:15 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] LCDS Performance (hibernate cascade)


We are using LCDS 2.5.1 and have a bit of a strange need. Here is a simplistic 
Object model.
Object A
--- Object B Collection [One-TO-Many]

Object B collection can be really huge and the relation between A and B is not 
need on the client but is needed on server so that we can take advantage of 
hibernate cascade for bulk operations. Here are my queries:


1. Is there any way that I can ask LCDS to ignore Object B collection 
completely e.g. some configuration in meta of data-management-config.xml

In LC DS 2.6, you can either set load-on-demand="true" or page-size on the 
association tags (one-to-many in this case).   With either of these attributes 
set, DMS will not touch that collection when the parent object is returned.   
The client gets back an empty collection which is fetched on-demand.   With 
page-size set, only the requested page is fetched.

On the server side, if you set paged-collection="true" on the association tag, 
a new assembler method called getPagedCollectionProperty is called to fetch the 
collection one page at a time so this approach supports very large association 
properties.


2. We are thinking of writing a AOP interceptor where we will manually 
nullify Object B collection whenever assembler get involked. While this option 
doesnt sound very clean, is it even feasible? It will surely add more 
complexity in code.

If your client never needs the collection, this would be possible.  If it does 
need the collection you'd have to define two destinations one with and one 
without.


3. Should this be a Managed relation or Hierarchical in 
data-management-config.xml?

Managed associations will be required to use the LC DS 2.6 paging features.

BTW, a stable LC DS 2.6 release candidate is available now from the prelease 
site (which requires you to be on the beta list)... the official release is 
coming "real soon now".   Contact me off list if you need early access to that 
release.

Jeff


<><><>

[flexcoders] LCDS Performance (hibernate cascade)

2008-07-03 Thread Shailesh Mangal
We are using LCDS 2.5.1 and have a bit of a strange need. Here is a
simplistic Object model.Object A --- Object B Collection
[One-TO-Many]
Object B collection can be really huge and the relation between A and B
is not need on the client but is needed on server so that we can take
advantage of hibernate cascade for bulk operations. Here are my
queries:
1. Is there any way that I can ask LCDS to ignore Object B collection
completely e.g. some configuration in meta of
data-management-config.xml 2. We are thinking of writing a AOP
interceptor where we will manually nullify Object B collection whenever
assembler get involked. While this option doesnt sound very clean, is it
even feasible? It will surely add more complexity in code.3. Should this
be a Managed relation or Hierarchical in
data-management-config.xml?4. Any other techniques?
-sxm


[flexcoders] Re: Flex Builder Issues

2008-07-03 Thread steve.baney

Thanks for the response!  That gave me a few avenues to pursue.

I'm running 1.6.0_05 JRE, I'm not sure if the JVM would be different

WinXP SP3, I also tried it on a pretty fresh install of the same OS on
a different machine

We're running Symantec in a Client-Server setup, I'll putz around with
disabling it and see how it goes.

I am checking it out over our network, our repository resides on the
production server that hosts my project.

--- In flexcoders@yahoogroups.com, Tom Chiverton <[EMAIL PROTECTED]>
wrote:
>
> On Thursday 03 Jul 2008, steve.baney wrote:
> > Eclipse Platform
> > Version: 3.3.2
> > Build id: M20080221-1800
> > I'm thinking this is a really obscure issue. 
> 
> Yeah, not seen anyone else with it.
> Are you using a recent JVM ? 
> Is this Windows, Mac or Linux ?
> Do you have on-access virus scanning (or similar) running ?
> Is the project checkout on a network drive ?
> 
> -- 
> Tom Chiverton
> 
> 
> 
> 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. Any reference to a partner in relation to
Halliwells LLP means a member of Halliwells LLP.  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] split mxml files

2008-07-03 Thread Tiago Santarosa
Hi, I have 10 states in the application main.mxml, I would divide the code in 
10 other files mxml being included by main.mxml. 

I would thank any help!

tks, Tiago

Re: [flexcoders] Flex Builder Issues

2008-07-03 Thread Tom Chiverton
On Thursday 03 Jul 2008, steve.baney wrote:
> Eclipse Platform
> Version: 3.3.2
> Build id: M20080221-1800
> I'm thinking this is a really obscure issue. 

Yeah, not seen anyone else with it.
Are you using a recent JVM ? 
Is this Windows, Mac or Linux ?
Do you have on-access virus scanning (or similar) running ?
Is the project checkout on a network drive ?

-- 
Tom Chiverton



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. Any reference 
to a partner in relation to Halliwells LLP means a member of Halliwells LLP.  
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 Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! 
Groups Links

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

<*> Your email settings:
Individual Email | Traditional

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

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

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

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



[flexcoders] Re: Anyone familiar with CF-Flex remoting?

2008-07-03 Thread valdhor
Of course you can send multiple arguments to a remoting method
(Disclaimer: I know it works with WebORB because I just tried it). You
just need to make sure the method can take multiple parameters and you
are sure of the order in which they arrive.


--- In flexcoders@yahoogroups.com, nwebb <[EMAIL PROTECTED]> wrote:
>
> Thanks yeah that's the solution we're using, but I'm interested to know,
> should that be necessary or should we be able to send 2 arguments in
to a
> remoting method?
> 
> On Thu, Jul 3, 2008 at 2:34 PM, valdhor <[EMAIL PROTECTED]> wrote:
> 
> >   var objectToSend:Object;
> > objectToSend.userId = userId;
> > objectToSend.filterObj = filterObj;
> > var token:AsyncToken = ro.returnOrders(objectToSend);
> >
> >
> > --- In flexcoders@yahoogroups.com ,
nwebb
> >  wrote:
> > >
> > > Hi,
> > >
> > > I'd like to pass 2 arguments to a remote method called
"returnOrders".
> > > Something like:
> > >
> > > //Flex
> > > var token:AsyncToken = ro.returnOrders(userId, filterObj);
> > >
> > > The first argument is a String called "id" and the second is an
> > Object (see
> > > below for full code).
> > >
> > > The CF guy I'm working with says that if I just send a single object
> > he can
> > > pull it apart and get to the individual properties, but when I send
> > him two
> > > arguments, he can't "break apart" the object (excuse the terminology
> > - his
> > > not mine)
> > >
> > > Any hints and tips much appreciated!
> > >
> > >
> > > Oh, and here is the AS3 filter DTO I'm using.
> > >
> > > package net.quadratek.po.dto
> > > {
> > > [Bindable]
> > > [RemoteClass(alias="qnet2.cfc.remote.purchaseOrder")]
> > > public class FilterDto
> > > {
> > > public var poId:String = "";
> > > public var supplierId:String = "";
> > > public var monthId:String = "";
> > > public var yearId:String = "";
> > > public var projectId:String = "";
> > > public var employeeId:String = "";
> > >
> > > public function FilterDto()
> > > {
> > > }
> > >
> > > }
> > > }
> > >
> >
> >  
> >
>




Re: [flexcoders] Re: Problems with SWFLoader

2008-07-03 Thread Sean Clark Hess
SWFLoader has a content property.  As soon as it is fully loaded and content
is defined, try something like this.

var movie:MovieClip = mySwfLoader.content as MovieClip;
movie.addEventListener( ... uhhh

Actually, I've never worked with flash movieclips in as3 (I've only used
flex stuff).  Why doesn't movieclip have an "end" or "stop" event???

I guess you could always use enterFrame as the event handler, and check for
the last frame in good old as2 style

On Thu, Jul 3, 2008 at 9:18 AM, carloveparade <[EMAIL PROTECTED]>
wrote:

>   --- In flexcoders@yahoogroups.com , "Sean
> Clark Hess" <[EMAIL PROTECTED]>
> wrote:
>
> >
> > Is the loaded swf written the same version of actionscript as the
> loader?
> >
> > On Thu, Jul 3, 2008 at 8:21 AM, carloveparade <[EMAIL PROTECTED]>
> > wrote:
> >
> > > I had been working with the SWFLoader to embed external swf
> > > aplications on my flex application. Now I need to start a second
> embed
> > > swf when the first one ( a movieclip) is on the end of the
> movie. In
> > > other words I need to star a new movie when the first is endes,
> but i
> > > cant put a next button so i need start the second one
> automatically.
> > > Could you help me?
> > >
> > >
> > >
> >ys its actionscript 3
>
>  
>


[flexcoders] Re: Problems with SWFLoader

2008-07-03 Thread carloveparade
--- In flexcoders@yahoogroups.com, "Sean Clark Hess" <[EMAIL PROTECTED]> 
wrote:
>
> Is the loaded swf written the same version of actionscript as the 
loader?
> 
> On Thu, Jul 3, 2008 at 8:21 AM, carloveparade <[EMAIL PROTECTED]>
> wrote:
> 
> >   I had been working with the SWFLoader to embed external swf
> > aplications on my flex application. Now I need to start a second 
embed
> > swf when the first one ( a movieclip) is on the end of the 
movie. In
> > other words I need to star a new movie when the first is endes, 
but i
> > cant put a next button so i need start the second one 
automatically.
> > Could you help me?
> >
> >  
> >
>ys its actionscript 3




[flexcoders] Re: Problems with SWFLoader

2008-07-03 Thread carloveparade
--- In flexcoders@yahoogroups.com, "Sean Clark Hess" <[EMAIL PROTECTED]> 
wrote:
>yes, both as3
> Is the loaded swf written the same version of actionscript as the 
loader?
> 
> On Thu, Jul 3, 2008 at 8:21 AM, carloveparade <[EMAIL PROTECTED]>
> wrote:
> 
> >   I had been working with the SWFLoader to embed external swf
> > aplications on my flex application. Now I need to start a second 
embed
> > swf when the first one ( a movieclip) is on the end of the 
movie. In
> > other words I need to star a new movie when the first is endes, 
but i
> > cant put a next button so i need start the second one 
automatically.
> > Could you help me?
> >
> >  
> >
>




[flexcoders] Security and ExternalInterface

2008-07-03 Thread Jamie S
I'm having a problem with getting Security Sandbox Violations while
trying to allow a JavaScript file ( specifically the history.js file
used for deep linking ) to call in to my swf when the swf is loaded in
from a different domain. Even though I used Security.allowDomain("*")
in my swf, I still get a security violation any time the JavaScript
tries to make contact with the swf. The interesting thing is that the
reverse seems to be ok, the swf can call the JavaScript functions
without a problem.

All the documentation I've read around Security.allowDomain allways
refers to allowing an external swf access but is it suppose to be the
same for JavaScript? Is there an extra limitation when using
JavaScript and ExternalInterface that prevents JavaScript on another
domain from accessing the swf?

Jamie


Re: [flexcoders] Can I work with charting components with a team that has only FB Standard?

2008-07-03 Thread Richard Rodseth
The others will see the charts with watermarks on them. If you have a
centralized build machine, it will need a copy of the license
installed so that the deployed SWF doesn't have the watermarks. I'm
not sure of the legal details (i.e. whether you need to purchase a
separate license for your build machine).

On Thu, Jul 3, 2008 at 7:15 AM, João <[EMAIL PROTECTED]> wrote:
> Hello,
>
> I have a question that might be a common problem.
>
> Imagine a team of 8 people, each of them with a copy of FB 3 standard,
> working on the same project using source control to synchronize code.
>
> Now imagine a client that wants a sales chart on a specific view of
> the project. I will be the only guy working on that chart, so I have
> to buy at least one FB Professional license.
>
> Now, what I am afraid of is... what will happen when I synchronize my
> code with the rest of the team? Will they have their code broken ? Is
> it necessary that everyone has FB Professional in a situation like
> this, where only one guy will be coding with the charting components?
>
> Thanks,
>
> João Saleiro
>
> 


Re: [flexcoders] Saving or Exporting application charts as images?

2008-07-03 Thread Sean Clark Hess
I've tried things like this before, and it never works.  I can't remember if
there's some way to do this natively with as3, or if I was doing it with a
swf2exe tool, but either way, it sucks.

Send the data serverside and regenerate it there.  Your serverside language
should have some packages to create images or pdfs or something.  It's
annoying to generate the report in two places, but it's the only way I know
how to do it.

On Thu, Jul 3, 2008 at 6:04 AM, cox.blair <[EMAIL PROTECTED]> wrote:

>   Hi everyone,
>
> Our application will have charts and it will be required that the user
> be able to save these charts as an image suitable for use in MS Office
> products - ie. Word & PowerPoint. The user shouldn't have to perform
> any editing or cropping.
>
> Any ideas on how this could be accomplished - from within the application?
>
> Thanks,
>
>  
>


Re: [flexcoders] Problems with SWFLoader

2008-07-03 Thread Sean Clark Hess
Is the loaded swf written the same version of actionscript as the loader?

On Thu, Jul 3, 2008 at 8:21 AM, carloveparade <[EMAIL PROTECTED]>
wrote:

>   I had been working with the SWFLoader to embed external swf
> aplications on my flex application. Now I need to start a second embed
> swf when the first one ( a movieclip) is on the end of the movie. In
> other words I need to star a new movie when the first is endes, but i
> cant put a next button so i need start the second one automatically.
> Could you help me?
>
>  
>


[flexcoders] Flex Builder Issues

2008-07-03 Thread steve.baney
I thought I had this figured out, but apparently the issues run deeper
than I thought.

I'm running:

Eclipse Platform
Version: 3.3.2
Build id: M20080221-1800

Flex Builder Plug-In Version 3.0 (build 3.0.194161)

Flex 3.0 SDK
or
Flex 3.0.0.477 SDK

When I pull a fresh copy of my program from my CVS repository
everything seems to be fine, but as I work on it several Eclipse/Flex
Builder features stop working.

Syntax checking breaks just as it was in my earlier post (
http://tech.groups.yahoo.com/group/flexcoders/message/117968 )

The 'References' option in the right-click menu only finds the first
couple of instances, then ignores the rest.

I'm sure this is an issue with my program, as I've reproduced it
across several installs from fresh downloads and on two different
computers, as well as in the standalone Flex Builder.

I'm not changing anything other than adding lines of code to a freshly
checked out copy of my project (which works fine when I first check it
out) when this occurs.  It doesn't seem to matter what code I'm
entering, as I fixed this issue the first time by reverting to an
older version, and then adding the code from the broken copy, testing
it after each line I added, and then making a new branch once I got
the project updated and functioning with the new code.  Now when I
check that branch out it works, until I start coding again.

The only related issue I could find (and it's a bit of a stretch) is this

http://tech.groups.yahoo.com/group/flexcoders/message/105055

So I tried deleting any unnecessary files in /bin to no avail.  I'm
not positive on what I can and can't delete from /bin tho, so I may be
leaving whatever is messing me up.

I'm pretty stumped here, and my last post didn't get much response, so
I'm thinking this is a really obscure issue.  This is killing my
production schedule though, so if anyone has any ideas, thoughts,
reflections, comments, commiseration, or whatever over the weekend
please drop me a line.

Thank You!
Steve



Re: [flexcoders] Re: #2038: File I/O Error

2008-07-03 Thread Sean Clark Hess
Do you have different versions running in IE and firefox?

On Thu, Jul 3, 2008 at 8:56 AM, lytvynyuk <[EMAIL PROTECTED]> wrote:

>   Update:
> I works under IE7 doesn't work with Rirefox 2.0.0.15!
> Doesn't work with Opera as well! I suspect this is not browser issue,
> this is FlashPlayer issue, because Firefox and Opera uses same Flash
> Player binaries!
>
>
> --- In flexcoders@yahoogroups.com ,
> "lytvynyuk" <[EMAIL PROTECTED]> wrote:
> >
> > I getting this error, but when I put breakpoint at my server side code
> > nothing coming through!! When I created little HTML page with file
> > upload filed to same servlet location - IT WORKS!
> >
> > I used "Live HTTP headers" to see activity on HTTP requests -
> > nothing nothing going through, also I used Wireshark - same effect.
> >
> > So what is going on ? any Ideas?
> >
> > AS code is extremely simple:
> >
> > var request:URLRequest = new URLRequest();
> > request.url = UPLOAD_URL;
> > fr.upload(request);
> > fileNameLabel.text = fr.name;
> >
>
>  
>


[flexcoders] Re: #2038: File I/O Error

2008-07-03 Thread lytvynyuk
Update:
I works under IE7 doesn't work with Rirefox 2.0.0.15!
Doesn't work with Opera as well! I suspect this is not browser issue,
this is FlashPlayer issue, because Firefox and Opera uses same Flash
Player binaries!


--- In flexcoders@yahoogroups.com, "lytvynyuk" <[EMAIL PROTECTED]> wrote:
>
> I getting this error, but when I put breakpoint at my server side code
> nothing coming through!! When I created little HTML page with file
> upload filed to same servlet location - IT WORKS!
> 
> I used "Live HTTP headers" to see activity on HTTP requests -
> nothing nothing going through, also I used Wireshark - same effect.
> 
> So what is going on ? any Ideas?
> 
> AS code is extremely simple:
> 
> var request:URLRequest = new URLRequest();
> request.url = UPLOAD_URL;
> fr.upload(request);
> fileNameLabel.text = fr.name;
>




Re: [flexcoders] Re: #2038: File I/O Error

2008-07-03 Thread Sean Clark Hess
Yeah, sorry, I'm not sure

On Thu, Jul 3, 2008 at 8:50 AM, lytvynyuk <[EMAIL PROTECTED]> wrote:

>   Well, I've picked file by browsing using FileReference's browse()
> method, and my file is simple *.png
>
>
> --- In flexcoders@yahoogroups.com , "Sean
> Clark Hess" <[EMAIL PROTECTED]> wrote:
> >
> > The other thing is that the file may be corrupted, or doesn't exist...
> >
> > On Wed, Jul 2, 2008 at 1:43 PM, lytvynyuk <[EMAIL PROTECTED]> wrote:
> >
> > > I did. I all cases request can reach server, in my case no. Just an
> > > exception, no network activity I'm puzzled.
> > >
> > >
> > > --- In flexcoders@yahoogroups.com 
> > >  40yahoogroups.com>,
> "Sean
> > > Clark Hess"  wrote:
> > > >
> > > > You have to do it serverside -- for example, if you're using PHP,
> > > you have
> > > > to change Apache's maximum upload size for that domain.
> > > >
> > > > Do a search for error 2038 in these forums though, I thought I saw
> > > another
> > > > couple of threads about it.
> > > >
> > > > ~sean
> > > >
> > >
> > >
> > >
> >
>
>  
>


[flexcoders] Re: #2038: File I/O Error

2008-07-03 Thread lytvynyuk
Well, I've picked file by browsing using FileReference's browse()
method, and my file is simple *.png

--- In flexcoders@yahoogroups.com, "Sean Clark Hess" <[EMAIL PROTECTED]> wrote:
>
> The other thing is that the file may be corrupted, or doesn't exist...
> 
> On Wed, Jul 2, 2008 at 1:43 PM, lytvynyuk <[EMAIL PROTECTED]> wrote:
> 
> >   I did. I all cases request can reach server, in my case no. Just an
> > exception, no network activity I'm puzzled.
> >
> >
> > --- In flexcoders@yahoogroups.com ,
"Sean
> > Clark Hess"  wrote:
> > >
> > > You have to do it serverside -- for example, if you're using PHP,
> > you have
> > > to change Apache's maximum upload size for that domain.
> > >
> > > Do a search for error 2038 in these forums though, I thought I saw
> > another
> > > couple of threads about it.
> > >
> > > ~sean
> > >
> >
> >  
> >
>




Re: [flexcoders] Best practices for a data driven game

2008-07-03 Thread Tom Chiverton
On Sunday 29 Jun 2008, jason.maskell wrote:
> Is there a nice way to do this? I can think of a potential hack like
> embedding the assets in some class but then how do I reference the
> embedded classes from XML?

Load then using a style SWF- you could give that filename in the XML.

-- 
Tom Chiverton



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. Any reference 
to a partner in relation to Halliwells LLP means a member of Halliwells LLP.  
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 Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! 
Groups Links

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

<*> Your email settings:
Individual Email | Traditional

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

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

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

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



Re: [flexcoders] Re: Anyone familiar with CF-Flex remoting?

2008-07-03 Thread Tom McNeer
I could be very wrong, because I'm pretty new to Flex. But it's my
understanding that a method called on a RemoteObject needs to send multiple
arguments as an array. You actually are sending multiple arguments. You just
can't pass them as a usual list of arguments, one after another.

On Thu, Jul 3, 2008 at 10:24 AM, nwebb <[EMAIL PROTECTED]> wrote:

>   Thanks yeah that's the solution we're using, but I'm interested to know,
> should that be necessary or should we be able to send 2 arguments in to a
> remoting method?
>
>
> On Thu, Jul 3, 2008 at 2:34 PM, valdhor <[EMAIL PROTECTED]> wrote:
>
>>   var objectToSend:Object;
>> objectToSend.userId = userId;
>> objectToSend.filterObj = filterObj;
>> var token:AsyncToken = ro.returnOrders(objectToSend);
>>
>>
>> --- In flexcoders@yahoogroups.com , nwebb
>> <[EMAIL PROTECTED]> wrote:
>> >
>> > Hi,
>> >
>> > I'd like to pass 2 arguments to a remote method called "returnOrders".
>> > Something like:
>> >
>> > //Flex
>> > var token:AsyncToken = ro.returnOrders(userId, filterObj);
>> >
>> > The first argument is a String called "id" and the second is an
>> Object (see
>> > below for full code).
>> >
>> > The CF guy I'm working with says that if I just send a single object
>> he can
>> > pull it apart and get to the individual properties, but when I send
>> him two
>> > arguments, he can't "break apart" the object (excuse the terminology
>> - his
>> > not mine)
>> >
>> > Any hints and tips much appreciated!
>> >
>> >
>> > Oh, and here is the AS3 filter DTO I'm using.
>> >
>> > package net.quadratek.po.dto
>> > {
>> > [Bindable]
>> > [RemoteClass(alias="qnet2.cfc.remote.purchaseOrder")]
>> > public class FilterDto
>> > {
>> > public var poId:String = "";
>> > public var supplierId:String = "";
>> > public var monthId:String = "";
>> > public var yearId:String = "";
>> > public var projectId:String = "";
>> > public var employeeId:String = "";
>> >
>> > public function FilterDto()
>> > {
>> > }
>> >
>> > }
>> > }
>> >
>>
>>
>  
>



-- 
Thanks,

Tom

Tom McNeer
MediumCool
http://www.mediumcool.com
1735 Johnson Road NE
Atlanta, GA 30306
404.589.0560


[flexcoders] Re: legend setstyle not working properly

2008-07-03 Thread netdeep
That did it!  

Thanks!


--- In flexcoders@yahoogroups.com, "Tim Hoff" <[EMAIL PROTECTED]> wrote:
>
> 
> Looks like direction is a property; not a style.  Try
> genericLegend.direction = "horizontal";
> 
> -TH
> 
> --- In flexcoders@yahoogroups.com, "netdeep"  wrote:
> >
> >
> > I am trying to change the formatting for a Legend in Actionscript:
> >
> > genericLegend.setStyle("direction", "horizontal");
> >
> > But this does nothing, instead it lists the items vertically. What is
> the proper way to do this in
> > Actionscipt?
> >
>





Re: [flexcoders] Refreshing array inside a DataGrid itemRenderer

2008-07-03 Thread Tom McNeer
Hi Alex,

Thanks for the response.

On Wed, Jul 2, 2008 at 9:00 PM, Alex Harui <[EMAIL PROTECTED]> wrote:

>You can pass an array into a List or ComboBox and it will display it.
>



But since it is simply an array, and not a collection object, the List won't
be able to detect a change in the array's contents, right?

That's what I'm struggling with.

As I said, I've tried placing a dataChange listener inside the itemRenderer
-- I just tried this:

(within the DG):














When the contents of the array represented by data.options changes, the
processor pegs. So I assume I'm creating some sort of infinite loop.


-- 
Thanks,

Tom

Tom McNeer
MediumCool
http://www.mediumcool.com
1735 Johnson Road NE
Atlanta, GA 30306
404.589.0560


[flexcoders] Problems with SWFLoader

2008-07-03 Thread carloveparade
I had been working with the SWFLoader to embed external swf 
aplications on my flex application. Now I need to start a second embed 
swf when the first one ( a movieclip) is on the end of the movie. In 
other words I need to star a new movie when the first is endes, but i 
cant put a next button so i need start the second one automatically. 
Could you help me?



Re: [flexcoders] Re: Anyone familiar with CF-Flex remoting?

2008-07-03 Thread nwebb
Thanks yeah that's the solution we're using, but I'm interested to know,
should that be necessary or should we be able to send 2 arguments in to a
remoting method?

On Thu, Jul 3, 2008 at 2:34 PM, valdhor <[EMAIL PROTECTED]> wrote:

>   var objectToSend:Object;
> objectToSend.userId = userId;
> objectToSend.filterObj = filterObj;
> var token:AsyncToken = ro.returnOrders(objectToSend);
>
>
> --- In flexcoders@yahoogroups.com , nwebb
> <[EMAIL PROTECTED]> wrote:
> >
> > Hi,
> >
> > I'd like to pass 2 arguments to a remote method called "returnOrders".
> > Something like:
> >
> > //Flex
> > var token:AsyncToken = ro.returnOrders(userId, filterObj);
> >
> > The first argument is a String called "id" and the second is an
> Object (see
> > below for full code).
> >
> > The CF guy I'm working with says that if I just send a single object
> he can
> > pull it apart and get to the individual properties, but when I send
> him two
> > arguments, he can't "break apart" the object (excuse the terminology
> - his
> > not mine)
> >
> > Any hints and tips much appreciated!
> >
> >
> > Oh, and here is the AS3 filter DTO I'm using.
> >
> > package net.quadratek.po.dto
> > {
> > [Bindable]
> > [RemoteClass(alias="qnet2.cfc.remote.purchaseOrder")]
> > public class FilterDto
> > {
> > public var poId:String = "";
> > public var supplierId:String = "";
> > public var monthId:String = "";
> > public var yearId:String = "";
> > public var projectId:String = "";
> > public var employeeId:String = "";
> >
> > public function FilterDto()
> > {
> > }
> >
> > }
> > }
> >
>
>  
>


[flexcoders] Re: remover water mark from Trial version

2008-07-03 Thread Merrill, Jason
The OP needs to buy a license to the charting components if they want to 
compile them.  Compiliing them for someone else is illegal.  The license is for 
single-use only.  You could argue, "well, I compiled some source code with a 
legal copy, so it's legal",- I don't think Adobe's lawyers would see it that 
way.  You're compiling somene else's project so they can get around the license 
issue, and I think that gets pretty dicey.   Imagine if someone setup a 
business, "Hey, I'll compile your flex project for you for $9.95, so you never 
have to buy the full Pro version with charting."  Hmph.  Even if you could get 
away with  it legally, I think it's fairly unethical.  But then there are the 
types who don't buy music or movies either.  


Jason Merrill 
Bank of America 
Global Technology & Operations & Global Risk L&LD 
eTools & Multimedia 

Join the Bank of America Flash Platform Developer Community  
http://sharepoint.bankofamerica.com/sites/tlc/flash/default.aspx> 

Are you a Bank of America associate interested in innovative learning ideas and 
technologies?
Check out our internal  GT&O Innovative Learning Blog 
http://sharepoint.bankofamerica.com/sites/ddc/rd/blog/default.aspx>  
& subscribe 
http://sharepoint.bankofamerica.com/sites/ddc/rd/blog/_layouts/SubNew.aspx?List=\{41BD3FC9-BB07-4763-B3AB-A6C7C99C5B8D\}&Source=http://sharepoint.bankofamerica.com/sites/ddc/rd/blog/Lists/Posts/Archive.aspx>
 . 




Re: [flexcoders] Flex Builder Debug Issue

2008-07-03 Thread Tom Chiverton
On Thursday 03 Jul 2008, jonese wrote:
> It fails in both Firefox 3 & IE7 

FF and IE use totally separate Flash players.

-- 
Tom Chiverton



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. Any reference 
to a partner in relation to Halliwells LLP means a member of Halliwells LLP.  
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 Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! 
Groups Links

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

<*> Your email settings:
Individual Email | Traditional

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

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

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

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



[flexcoders] Can I work with charting components with a team that has only FB Standard?

2008-07-03 Thread João
Hello,

I have a question that might be a common problem.
 
Imagine a team of 8 people, each of them with a copy of FB 3 standard,
working on the same project using source control to synchronize code. 

Now imagine a client that wants a sales chart on a specific view of
the project. I will be the only guy working on that chart, so I have
to buy at least one FB Professional license. 

Now, what I am afraid of is... what will happen when I synchronize my
code with the rest of the team? Will they have their code broken ? Is
it necessary that everyone has FB Professional in a situation like
this, where only one guy will be coding with the charting components?


Thanks,

João Saleiro



Re: [flexcoders] Flex Builder Debug Issue

2008-07-03 Thread jonese
It fails in both Firefox 3 & IE7 so i'm pretty sure it's not related
to plug-ins. my IE is VERY vanilla.

jonese
http://www.jonese.us
http://twitter.com/jonese


On Wed, Jul 2, 2008 at 9:56 PM, Tracy Spratt <[EMAIL PROTECTED]> wrote:
> Are you running Firefox with any add-ins, like "GreaseMonkey"?  This is a
> known issue.
>
> Tracy
>
>
>
> 
>
> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
> Behalf Of jonese
> Sent: Wednesday, July 02, 2008 5:30 PM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Flex Builder Debug Issue
>
>
>
> Hey all my flex debugger has stopped working. I've done the following
> trying to fix it
>
> * I've uninstalled flash using the adobe uninstaller.
> * Rebooted my machine.
> * Downloaded the latest debugger from adobe's website.
> * Install latest flash debug player.
> * Verified via Adobe KB that i have the latest version and it is a
> debugger version.
> * Tried to run debug for a basic flex applicaiton in both FF3 and IE7
> both failed.
>
> Any thoughts what could be wrong?
>
> jonese
> http://www.jonese.us
> http://twitter.com/jonese
>
> 


[flexcoders] Re: Saving or Exporting application charts as images?

2008-07-03 Thread cox.blair
Isn't the Internet just nifty!

Answered my own question. For anyone reading this, hopefully this link
still exists and will answer your question :)

http://dougmccune.com/blog/2007/06/03/save-a-snapshot-image-of-a-flex-app-without-a-server/




  1   2   >