Re: [flexcoders] Re: excluding symbols from sub swf

2010-06-06 Thread Alex Harui
I don’t know.  I haven’t used those configurations.


On 6/5/10 10:15 PM, "mattgarland2000"  wrote:






Thanks Alex,

Is there a way to use compiler options in CS5--or Flash Builder--with a fla? 
That sounds awesome. I'm in CS4/Flex Builder 3 now.

Are other people using this? I googled this I don't see any examples of it. It 
would be great to:

-externs "com.site.Dog"

whether using the Flash Builder, Flash, or the new jsfl API.

--- In flexcoders@yahoogroups.com  , Alex 
Harui  wrote:
>
> -externs option
>
>
> On 6/4/10 6:09 PM, "mattgarland2000"  wrote:
>
>
>
>
>
>
> In my main swf, I have a (CS4) library item with the class of Dog. It's just 
> a movie clip with a picture of a dog inside it.
>
> In the sub swf, there is a also a dog on the stage.
>
> It's necessary that the item in the sub swf be in the library or components 
> panel, because my designer likes dogs. He likes to place them on the stage, 
> rotate them, and play with them all day.
>
> It's a big Dog. And there are many sub swfs. Is there a way to exclude Dog 
> from the sub swfs?
>
> Runtime Shared Libraries is not an option--too flaky. And runtime loading of 
> assets is not an option either, unless it can be made compatible with WYSIWYG.
>
> I tried this:
>
> 1. Creating a dog.swc component, using it, and then putting it in the 
> external library path of the sub swf.
> 2. Putting the dog swc in the folder with main.fla.
> These did not work. The big Dog remained either way.
>
> I looked into this:
> Using -load-externs and -link-report compiler options for an actionscript 
> project. But there is not link report for .flas, and no compiler options 
> either, and jsfl does not seem to provide workarounds.
>
> Is it even possible (without using Runtime Shared Libraries) to exclude 
> symbols from compiled flas?
>
> Thanks!
>
> Matt
>
>
>
>
>
>
> --
> Alex Harui
> Flex SDK Team
> Adobe System, Inc.
> http://blogs.adobe.com/aharui
>






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


Re: [flexcoders] Button in dataGrid (Flashbuilder 4)

2010-06-06 Thread Alex Harui
Spark components do not carry the weight of being potential item renderers.  
You can place the Button in a MXDataGridItemRenderer.


On 6/6/10 8:53 PM, "Scott"  wrote:






Ok, it appears that placing buttons in datagrids have changed in Flash Builder 
4…

Typically I’d do something like this:

 

 
   



However these components have changed, but they do not work…


 

 
   



Gives me the error:

TypeError: Error #1034: Type Coercion failed: cannot convert 
yourinfoinnercla...@133490a1 to mx.controls.listClasses.IListItemRenderer.

Moreover; I’m trying to figure out how to either place a text label “PAID” or a 
button if the item has not been paid. Any ideas on how this is done?

 Thanks
Scott





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


[flexcoders] Button in dataGrid (Flashbuilder 4)

2010-06-06 Thread Scott
Ok, it appears that placing buttons in datagrids have changed in Flash
Builder 4...

 

Typically I'd do something like this:



   



  







 

However these components have changed, but they do not work...

 



   



  







 

Gives me the error:

 

TypeError: Error #1034: Type Coercion failed: cannot convert
yourinfoinnercla...@133490a1 to
mx.controls.listClasses.IListItemRenderer.

 

Moreover; I'm trying to figure out how to either place a text label
"PAID" or a button if the item has not been paid. Any ideas on how this
is done?

 

 Thanks

Scott



[flexcoders] How to populate itemeditor with popup value

2010-06-06 Thread ilikeflex
Hi

I am trying to create editable datagrid. I have also implemented itemEditEnd 
event because i have nested datafield. I have custom itemeditor. In the custom 
itemeditor, i have textInput and button to open the popup. I click to open open 
pop up.I write some text in the pop up but that that text does not appear in 
itemeditor after close popup.

I have attached sample test code.I have added snippets but if you required i 
can add complete test case.

PopUp

http://www.adobe.com/2006/mxml";
xmlns:prgbar="com.vzw.framework.prgbar.*"
width="100%"
height="100%"
verticalScrollPolicy="off"
styleName="popupStyle">





 
  




ItemEditor

http://www.adobe.com/2006/mxml";
 width="100%"
 height="200"
 horizontalAlign="center"
 implements="customComponents.datagrid.IEditorValue">










Method

private function onitemEditEnd(event:DataGridEvent):void
{
var datGrid:DataGrid=(event.currentTarget as  DataGrid);
if (event.reason == DataGridEventReason.CANCELLED)
return;

var selectedObject:Object=datGrid.dataProvider[event.rowIndex];
var field:String=datGrid.columns[event.columnIndex].dataField;
var array:Array=field.split(".");
if (array!= null && array.length >= 2)
{
event.preventDefault();

var object:Object=selectedObject[array[0]];
var textEnteredByUser:String;
if(datGrid.itemEditorInstance is IEditorValue)
{

textEnteredByUser=IEditorValue(datGrid.itemEditorInstance).editValue;
object[array[1]]=textEnteredByUser;
}
else
{
textEnteredByUser = 
TextInput(datGrid.itemEditorInstance).text;
object[array[1]]= textEnteredByUser;
}

//datGrid.destroyItemEditor();
datGrid.dataProvider.itemUpdated(event.itemRenderer.data);
}
}


package customComponents.datagrid
{
import mx.controls.listClasses.IDropInListItemRenderer;
import mx.controls.listClasses.BaseListData;

public interface IEditorValue extends IDropInListItemRenderer
{
function get editValue():String;
}
}

Thanks
ilikeflex




[flexcoders] Job opportunity in Atlanta

2010-06-06 Thread Tracy Spratt
Flexcoders,

 

My employer, the Atlanta engineering division of an American manufacturer of
international consumer products, is looking for help with a Flex development
project.

 

We want a contractor that can start immediately, and the project is long
term, with serious potential for permanent hire.

 

I would prefer someone with a strong animation and effects background (a
Flash guy would be ideal), to complement my data-flow orientation, but any
experienced Flex developer will be able to do the job.

 

This is not an entry level opportunity.  We need someone who can be
immediately productive.  I'd say four years of full-time Flex experience is
the minimum, but if you got to that proficiency level in three years, I'd be
ok with that. 

 

If you are interested, do NOT respond to this message.  This is a technical
forum, and has enough traffic already, but I doubt anyone will object to
this single posting of a real opportunity.  Instead, reply to the email
address below.  It is the company HR person, not me, but if you are a
serious candidate, your response will get to me. Note, the physical location
is actually in Alpharetta, just off exit 12 on 400.

 

Fellow flexcoders who might have noted my absence, this is why, I am crazy
busy!

 

Tracy Spratt

 

Contact:

David Holley

dhol...@johnsonoutdoors.com

 

 



[flexcoders] DropDownList & Data Services

2010-06-06 Thread Stephen
I am populating a datagrid with data from database using Zend Data Services, I 
then select to amend a line of the datagrid using a master detail form. One of 
the fields is an index to another table and thus I need to use a DropDownList 
how do I set the drop down list to what the current setting is so I can then 
present the form for change.







This is how I believe I would read the data for the drop down list, how would I 
set it to default to a specific setting?

- Cryptopus



[flexcoders] HTTPService

2010-06-06 Thread Akila
I am having difficult in sending an XML request from flex application.
The request sent in the server log replace all <, >, and &  with <, > and 
& , respectively, in an XML before passing it as parameter to a HTTPservice 
call


Here is sample code
 http://ccqasvr2001:8080/CCRestAPI_1_0/cc/getInstitution/v1"; 
method="POST" contentType="application/xml"  >
   
 {input.text}
   


Can anybody help me? I am new to flex. I just need this call to work that is 
all.



[flexcoders] Picassa, Photobucket t Flex mashups

2010-06-06 Thread Christophe
Hello, 

There are examples on the web of Mashups with Flex and Flickr.

I am searching other examples with Photobuckett and Picassa.

Thank you,
Christophe,