Re: [flexcoders] Re: Runtime Error 1007 on a simple ProgressBar in Flex 4

2010-09-09 Thread Alex Harui
It should, but somehow the styles and skins are not being added.  In Flex 4, 
styles are per-module so if you have multpile SWFs you may have to be more 
careful.


On 9/9/10 5:52 AM, "PicSnapr"  wrote:






Oh, is it mandatory to be used?
I thought, by not providing a skin it'd use the default mx skins for 
ProgressBar component!

--- In flexcoders@yahoogroups.com  , Alex 
Harui  wrote:
>
> Default styles/skins for ProgressBar are missing.
>
>
> On 9/8/10 12:37 AM, "PicSnapr"  wrote:
>
>
>
>
>
>
> This is such a simple code that compiles correctly, but I'm getting the error 
> below when running it :(
>
> TypeError: Error #1007: Instantiation attempted on a non-constructor.
>  at mx.controls::ProgressBar/createChildren()[E:\dev\4.0.0\frameworks\pro 
> jects\framework\src\mx\controls\ProgressBar.as:1110]
>  at mx.core::UIComponent/initialize()[E:\dev\4.0.0\frameworks\projects\fr 
> amework\src\mx\core\UIComponent.as:7250]
> ..
>
> Here's the code that gives this error:
>
> 
> .
> .
>
>
> 
>  icon="{addIcon}"
>  skinClass="com.skins.IconButtonSkin" width="20"/>
>  icon="{removeIcon}"
>  skinClass="com.skins.IconButtonSkin" width="20"/>
> 
>  click="onUploadCanceled()"
>  skinClass="com.skins.IconButtonSkin" width="20"/>
>  icon="{uploadIcon}" click="uploadFiles()"
>  skinClass="com.skins.IconButtonSkin" width="20"/>
>   icon.full="{viewIconFull}" icon.mini="{viewIconMini}"
>  skinClass="com.skins.IconButtonSkin" width="20"/>
> 
> 
>
> If I remove the progressbar code from here, it runs fine. But with that one 
> line, I get above error during runtime. With this line in, even the Design 
> mode doesn't show-up in Flash Builder 4 :(
>
> Any idea what could be the issue here?
>
> PS: I've tried with the normal s:Button as well, before the skinned button 
> component. So obviously those can't be the problem.
>
>
>
>
>
>
> --
> Alex Harui
> Flex SDK Team
> Adobe System, Inc.
> http://blogs.adobe.com/aharui
>






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


[flexcoders] Re: I don't know if I need Flex (please help me to decide)

2010-09-09 Thread enridp


I didn't know it, thanks! 
I will see it in details, also I was thinking in MinimalComps (for my problem 
with SWF size how I said) 
What do you think about it respect to ASwing?

--- In flexcoders@yahoogroups.com, Haykel BEN JEMIA  wrote:
>
> Fo the UI, you can try AsWing: http://www.aswing.org/
> 
> Haykel Ben Jemia
> 
> Allmas
> Web & RIA Development
> http://www.allmas-tn.com
> 
> 
> 




[flexcoders] Re: I don't know if I need Flex (please help me to decide)

2010-09-09 Thread enridp


You can see in his forum valdhor:
http://www.themidnightcoders.com/forum/Default.aspx?g=posts&t=3773
In fact, is really comprehensive, I love Open Source, I think the WORLD (I 
mean, economy, politics, etc not just sofware) should be open source.
But we need a way to make money to live too, they said that there's no time for 
PHP because they are not selling it (I think the last update was in 2008).
The forum is also with poor feedback, I made two questions 5 days ago and no 
body replied it.
There's only one advantage of WebOrb (PHP) over AMFPHP, it supports Flex 
Messaging. But AMFPHP is faster* and they are working in 2.0 now.

*You can see this tests of performance:
http://www.marcordo.com/2010/03/25/cual-usaras-amfphp-zend-weborb/
and
http://www.idsklijnsma.nl/weborb3amftest/

I don't know much about WebOrb, but I think it needs RemoteObject so we can't 
use it without the flex framework.
Also I don't know if it supports Sessions (transparently like AMFPHP does)



--- In flexcoders@yahoogroups.com, "valdhor"  wrote:
>
> Where did you see that WebORB for PHP is discontinued? I did a Google search 
> and the only thing I could find was your post.
> 
> 
> > I also prefer AMFPHP over WebOrb, is faster (even faster than Zend_AMF) and 
> > webOrb for PHP is discontinued
>




Re: [flexcoders] Cold fusion and Flex Remoting setup driving me nuts

2010-09-09 Thread Brendan Meutzner
OK... lots to answer here...

1) You can verify your gateway by simply browsing to the URL you
specified... if the page is blank, you're good to go... if you got an error,
you're not.

2) You need to place your cfc files beneath your CF webroot folder... this
is the default location for the gateway to look.

3) You need to confirm that you have a /flex folder under your
ColdFusion/wwwroot/WEB-INF/ directory... if not, then you need to look into
how to get that setup... I can't remember off the top of my head, but
there's plenty of information on setting up ColdFusion for Flex.

4) Once you get your /flex directory setup properly, there are a few files
in there you'll need to configure... a) services-config.xml, b)
remoting-config.xml.  There is also information out there on setting these
up.  Essentially, you'll need to reference an EndPoint which is defined in
these files.  There is a default one setup called ColdFusion which has a
channel setup for it already.  You really should be able to utilize the
ColdFusion endpoint automatically as soon as you have things setup, and your
CFC located within the webroot folder.


I can provide some examples for each of these areas if you still need help,
but don't have access to them on the current machine I'm writing this from.
 Let me know, and good luck!


Brendan

On Thu, Sep 9, 2010 at 11:18 AM, Joshua  wrote:

>
>
> Hello,
>
> I've been searching and searching for some consistent info regarding the
> complete setup required to get flex 3 to talk directly to a cfc on a REMOTE
> coldfusion server.
>
> I've got access to the coldfusion server admin.
>
> My problems.
>
> 1. Where is the flex gateway specified (or flash)? I see all these articles
> saying it's at www.mydomain.com/flex2gateway. I have no idea how to verify
> that and when I do a remote call to it in flex it says
>
> MessagingError message='Destination 'http://www.mydomain.com/flex2gateway/'
> either does not exist or the destination has no channels defined (and the
> application does not define any default channels.)']
>
> 2. So, I couldn't find the default flex gateway so I created my own under
> the events gateway tab. I gave it an id of flexRMS a type of CFML and
> pointed the cfc path to the cfc I want to call and set the config file to
> Coldfusion8/gateway/config/flex-data/management/gateway.cfg
>
> I can't connect to that either
>
> 3. If I could connect, which I can't, I need to point to a different
> components folder on the server that holds all the cfcs that I really need
> to invoke.
>
> 4. So, I thought well maybe I need to configure my flex project and specify
> that I'm using Coldfusion as the server type. I check Use Remote Object
> Access Service, then specify Coldfusion Flash Remoting Then I get to the
> page where I'm supposed to check between Coldfusion installation type,
> Standalone or Deployed to J2EE (I've got no idea what to do here) anything I
> check or fill out tells me that I've got no config files in the WEB-INF
> folder under flex when I click the validate Configuration.
>
> Can somebody throw me a bone here. Jeez
>
>  
>


[flexcoders] Cold fusion and Flex Remoting setup driving me nuts

2010-09-09 Thread Joshua
Hello,

I've been searching and searching for some consistent info regarding the 
complete setup required to get flex 3 to talk directly to a cfc on a REMOTE 
coldfusion server.  

I've got access to the coldfusion server admin.  

My problems.

1.  Where is the flex gateway specified (or flash)?  I see all these articles 
saying it's at www.mydomain.com/flex2gateway.  I have no idea how to verify 
that and when I do a remote call to it in flex it says

MessagingError message='Destination 'http://www.mydomain.com/flex2gateway/' 
either does not exist or the destination has no channels defined (and the 
application does not define any default channels.)']

2.  So, I couldn't find the default flex gateway so I created my own under the 
events gateway tab.  I gave it an id of flexRMS a type of CFML and pointed the 
cfc path to the cfc I want to call and set the config file to 
Coldfusion8/gateway/config/flex-data/management/gateway.cfg

I can't connect to that either

3.  If I could connect, which I can't, I need to point to a different 
components folder on the server that holds all the cfcs that I really need to 
invoke.

4.  So, I thought well maybe I need to configure my flex project and specify 
that I'm using Coldfusion as the server type.  I check Use Remote Object Access 
Service, then specify Coldfusion Flash Remoting Then I get to the page where 
I'm supposed to check between Coldfusion installation type, Standalone or 
Deployed to J2EE (I've got no idea what to do here) anything I check or fill 
out tells me that I've got no config files in the WEB-INF folder under flex 
when I click the validate Configuration.

Can somebody throw me a bone here.  Jeez




[flexcoders] Re: DataGrid | itemEditor | focus does not go to first row first column

2010-09-09 Thread Rajan
I got the answer

add eventlistenet on the button keyFocusChange event and do the following

event.preventDefault();
grid.invalidateDisplayList();
editGrid.editedItemPosition = {rowIndex: 0, columnIndex:1}

Thanks
ilikeflex

--- In flexcoders@yahoogroups.com, "Rajan"  wrote:
>
> Hi
> 
> I am sure most of the devlopers must have seen this sample
> 
> http://blogs.adobe.com/aharui/DataGridMultiFieldEditor/DataGridMultiFieldEditorTest.swf
> 
> Challenge:
> n the sample, use keyboard to tab the complete swf. After all the cell 
> editors and button have recieved the focus atleast once then i noticed then 
> focus goes only on buttons and one cell editor (location: last row + last 
> column). Why does it not goes to first cell editor( location: first row + 
> first column). Can you give any pointer how to make focus work??
> 
> I tried couple of options like
> 1.
> grid.editedItemPosition = {rowIndex: 1, columnIndex: 1};
> 
> 2.
> this.focusManager.setFocus(editGrid);
> editGrid.editedItemPosition = {rowIndex: 1, columnIndex: 1};
> 
> But none of them works..Any pointer will be highly apprecaited.
>




[flexcoders] DataGrid | itemEditor | focus does not go to first row first column

2010-09-09 Thread Rajan
Hi

I am sure most of the devlopers must have seen this sample

http://blogs.adobe.com/aharui/DataGridMultiFieldEditor/DataGridMultiFieldEditorTest.swf

Challenge:
n the sample, use keyboard to tab the complete swf. After all the cell editors 
and button have recieved the focus atleast once then i noticed then focus goes 
only on buttons and one cell editor (location: last row + last column). Why 
does it not goes to first cell editor( location: first row + first column). Can 
you give any pointer how to make focus work??

I tried couple of options like
1.
grid.editedItemPosition = {rowIndex: 1, columnIndex: 1};

2.
this.focusManager.setFocus(editGrid);
editGrid.editedItemPosition = {rowIndex: 1, columnIndex: 1};

But none of them works..Any pointer will be highly apprecaited.



[flexcoders] Flash to iPhone now?

2010-09-09 Thread grimmwerks
http://www.tuaw.com/2010/09/09/apple-loosens-reigns-allows-3rd-party-ios-dev-tools-with-caveat/


Garry Schafer
grimmwerks
gr...@grimmwerks.com
portfolio: www.grimmwerks.com/







[flexcoders] Stacked ColumnChart DataTip [1 Attachment]

2010-09-09 Thread Angelo Anolin
I have the following data:

IDBasePriceBasisTotalNetPriceCreatedDate
2210.33012.330198.000Aug 5 2010 1:41PM
3200.2200.000200.220Aug 5 2010 1:41PM
14412.5300.000412.530Aug 26 2010 1:16PM
15412.53095.260317.270Aug 26 2010 1:17PM
22421.74089.710332.030Sep 8 2010 2:38PM

Below is the MXML for the chart I created

















When I hover the mouse over the stack representation for the BasisTotal, I am 
getting a number where the decimal place is 18, although in the data that I 
have,  I only have 3.

I am attaching a screenshot of the chart, with my datatip for the Basis 
displayed to provide more clarity to this problem I have.

Anyone encountered this before?

Thanks.


  

[flexcoders] Re: Runtime Error 1007 on a simple ProgressBar in Flex 4

2010-09-09 Thread PicSnapr
Oh, is it mandatory to be used?
I thought, by not providing a skin it'd use the default mx skins for 
ProgressBar component!

--- In flexcoders@yahoogroups.com, Alex Harui  wrote:
>
> Default styles/skins for ProgressBar are missing.
> 
> 
> On 9/8/10 12:37 AM, "PicSnapr"  wrote:
> 
> 
> 
> 
> 
> 
> This is such a simple code that compiles correctly, but I'm getting the error 
> below when running it :(
> 
> TypeError: Error #1007: Instantiation attempted on a non-constructor.
>  at mx.controls::ProgressBar/createChildren()[E:\dev\4.0.0\frameworks\pro 
> jects\framework\src\mx\controls\ProgressBar.as:1110]
>  at mx.core::UIComponent/initialize()[E:\dev\4.0.0\frameworks\projects\fr 
> amework\src\mx\core\UIComponent.as:7250]
> ..
> 
> Here's the code that gives this error:
> 
> 
> .
> .
> 
> 
> 
>  icon="{addIcon}"
>  skinClass="com.skins.IconButtonSkin" width="20"/>
>  icon="{removeIcon}"
>  skinClass="com.skins.IconButtonSkin" width="20"/>
> 
>  click="onUploadCanceled()"
>  skinClass="com.skins.IconButtonSkin" width="20"/>
>  icon="{uploadIcon}" click="uploadFiles()"
>  skinClass="com.skins.IconButtonSkin" width="20"/>
>   icon.full="{viewIconFull}" icon.mini="{viewIconMini}"
>  skinClass="com.skins.IconButtonSkin" width="20"/>
> 
> 
> 
> If I remove the progressbar code from here, it runs fine. But with that one 
> line, I get above error during runtime. With this line in, even the Design 
> mode doesn't show-up in Flash Builder 4 :(
> 
> Any idea what could be the issue here?
> 
> PS: I've tried with the normal s:Button as well, before the skinned button 
> component. So obviously those can't be the problem.
> 
> 
> 
> 
> 
> 
> --
> Alex Harui
> Flex SDK Team
> Adobe System, Inc.
> http://blogs.adobe.com/aharui
>




[flexcoders] Re: I don't know if I need Flex (please help me to decide)

2010-09-09 Thread valdhor
Where did you see that WebORB for PHP is discontinued? I did a Google search 
and the only thing I could find was your post.


> I also prefer AMFPHP over WebOrb, is faster (even faster than Zend_AMF) and 
> webOrb for PHP is discontinued



Re: [flexcoders] actionscript + library

2010-09-09 Thread Haykel BEN JEMIA
I think you can just create a Flex Library Project and if you don't use any
Flex components then nothing from Flex will be added to the SWC.

Haykel Ben Jemia

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




On Wed, Sep 8, 2010 at 9:42 PM, Ariel J  wrote:

>
>
> is there a way to configure a project in Flash Builder natively (as in, not
> using a custom builder) to create a pure actionscript project that compiles
> into a SWC not a SWF?
>
>  
>


Re: [flexcoders] Re: I don't know if I need Flex (please help me to decide)

2010-09-09 Thread Haykel BEN JEMIA
Fo the UI, you can try AsWing: http://www.aswing.org/

Haykel Ben Jemia

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




On Wed, Sep 8, 2010 at 7:53 AM, enridp  wrote:

>
>
> mmm... I was attracted by ColdFusion a few months ago because it was from
> Adobe and I thought it will work better with Flash, but I think there are
> many downsides.
> First, I don't know ColdFusion ^_^
> Is not Free
> And I have a lot of API's for PHP
> Anyway, I don't think in PHP like a problem, Facebook is working with PHP.
>
>
> --- In flexcoders@yahoogroups.com , "Bill
> Brutzman"  wrote:
> >
> > Consider also Adobe's ColdFusion. I have found ColdFusion to be easier to
> > use and more robust than PHP.
> >
> >
> >
> > --Bill
> >
> >
> >
> > From: flexcoders@yahoogroups.com  [mailto:
> flexcoders@yahoogroups.com ] On
> > Behalf Of enridp
> > Sent: Tuesday, September 07, 2010 11:10 AM
> > To: flexcoders@yahoogroups.com 
> > Subject: [flexcoders] Re: I don't know if I need Flex (please help me to
> > decide)
> >
> >
> >
> >
> >
> > Yes, there's a lot of data.
> > But I was thinking in AMFPHP for that.
> > I think the alternatives are:
> > 1) Adapting the Flex code that I need to a pure AS3 project (I'm not sure
> if
> > this is possible in all the casses)
> > 2) Using RSL's
> >
> > Because I can't start my project with 200Kb, the size is a really big
> > problem.
> > Can you (or someone) help me with some of the 2 options?
> > I have not experience in it, so I can't think in possible problems with
> > those solutions (Flex->AS3 and RSL's), can you see the problems?
> >
> > --- In flexcoders@yahoogroups.com  flexcoders%40yahoogroups.com > ,
>
> > "Bill Brutzman"  wrote:
> > >
> > > My rule of thumb is that if there is data. like a database. then yes.
> Flex
> > > is the way to go.
> > >
> > >
> > >
> > > --Bill
> > >
> >
>
>  
>


Re: [flexcoders] DataGroup and XML problem

2010-09-09 Thread Craig McLeod
SOLVED thanks to a...@adobe

 

I changed my resultType="E4X" and then used {new
XMLListCollection(XMLList(getSpeedDialList.lastResult).chartlist)}

 

This solved the problem perfectly.

 

It's important to remember that when using E4X the first node is ignored in
your xml.

But with out the list conversion (since datagroups support Ilists and so on)
I would have been lost.

 

So all credit to Alex Harui from the Flex SDK Team

 

Craig McLeod

Phone:   086 111 4512
Fax:033 343 2265

Email: cr...@sumitsolutions.co.za
Website:
http://www.sumitsolutions.co.za

sumit_solutions_logo.jpg

 

This is an email from SUMIT Solutions. The contents are confidential to the
intended recipient at the email address to which it has been addressed. It
may not be disclosed copied or used by anyone other than this addressee. If
you receive this email in error please contact SUMIT Solutions on +27 33 343
2888 quoting the name of the sender and the addressee then delete it from
your system. Note that neither SUMIT Solutions nor the sender accepts
responsibility for viruses and you are advised to scan attachments before
opening or saving them

 

<>

Re: [flexcoders] DataGroup and XML problem

2010-09-09 Thread Craig McLeod
Hi Alex,

 

Firstly thank you so much for your reply.

 

When I try the first option you suggested:  "{new
XMLListCollection(XMLList(getSpeedDialList.lastResult).SDLIST.charlist)} I
stop getting errors, but the item renderer shows nothing.

 

The second option pulls errors 1119 and 1118.

 

I have been searching desperately for a working example of Datagroup with
item renderers using XML as the provider, but just have not been able to
find one.

 

I welcome any advice you have.

 

Warmest regards and many thanks.

Craig