RE: [flexcoders] Re: How to remeasure itemRenderer

2008-06-03 Thread Alex Harui
How did you get into itemRendererToIndices?  Maybe we need to see more
code.

 

-Alex

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Amy
Sent: Tuesday, June 03, 2008 8:02 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: How to remeasure itemRenderer

 

--- In flexcoders@yahoogroups.com 
, "Alex Harui" <[EMAIL PROTECTED]> wrote:
>
> Could you be using the wrong source for Flex? Your findings don't 
make
> sense.
> 
> 
> 
> You are calling invalidateSize on the renderer I presume?

It didn't make any sense to me either. I think that since that is 
the first line in the function, maybe it is losing the flag as it is 
passed into the function, but I have no idea how that would happen. 
I'm stepping through line by line at that point, so I'm not sure what 
could be happening there that I'm not seeing.

I've only got one installed copy of Flex Builder 3. I uninstalled 
the last beta before installing. Is there any other action I should 
take?

And yes ;-).

Thanks!

-Amy

 



Re: [flexcoders] Does Flex 3 suport file uploading by using Web Service?

2008-06-03 Thread Josh McDonald
If you know they're going to be small files, and you need to do it through
soap, you could probably do a normal upload to a cache on your server,
re-download the file (so your flex app knows about it), and then encode it
as part of your soap request. Awfully inefficient, and may require
monkeypatching or subclassing mx:webservice or SOAPEncoder, but probably
doable if it's a requirement.

Or perhaps a custom server-side proxy that takes a file and a POST form and
forwards a SOAP request on your behalf, proxying the result for you. Also a
bit of a pain :)

-Josh

On Wed, Jun 4, 2008 at 2:00 PM, Samuel Neff <[EMAIL PROTECTED]> wrote:

>   Not with Flash Player 9.  I believe they've announced enhanced file
> functionality in FP10 that would include this functionality (although you
> might have to do more of the plumbing stuff yourself--reading the file to
> memory and packaging it into a WS call).
>
> HTH,
>
> Sam
>
>
>
> On Tue, Jun 3, 2008 at 9:15 PM, flexawesome <[EMAIL PROTECTED]> wrote:
>
>> Hey there,
>>
>> I know Flex supprts file upload by using fileReference with .NET ,
>> PHP... . My question is, can I use web service with Flex to upload
>> files?
>>
>> Thanks
>>
>>
>
> --
> -
> We're Hiring! Seeking passionate Flex, C#, or C++ (RTSP, H264) developer.
> Position is in the Washington D.C. metro area. Contact
> [EMAIL PROTECTED]
> 
>



-- 
"Therefore, send not to know For whom the bell tolls. It tolls for thee."

:: Josh 'G-Funk' McDonald
:: 0437 221 380 :: [EMAIL PROTECTED]


Re: [flexcoders] Does Flex 3 suport file uploading by using Web Service?

2008-06-03 Thread Samuel Neff
Not with Flash Player 9.  I believe they've announced enhanced file
functionality in FP10 that would include this functionality (although you
might have to do more of the plumbing stuff yourself--reading the file to
memory and packaging it into a WS call).

HTH,

Sam


On Tue, Jun 3, 2008 at 9:15 PM, flexawesome <[EMAIL PROTECTED]> wrote:

> Hey there,
>
> I know Flex supprts file upload by using fileReference with .NET ,
> PHP... . My question is, can I use web service with Flex to upload
> files?
>
> Thanks
>
>

-- 
-
We're Hiring! Seeking passionate Flex, C#, or C++ (RTSP, H264) developer.
Position is in the Washington D.C. metro area. Contact
[EMAIL PROTECTED]


[flexcoders] Re: How to remeasure itemRenderer

2008-06-03 Thread Amy
--- In flexcoders@yahoogroups.com, "Alex Harui" <[EMAIL PROTECTED]> wrote:
>
> Could you be using the wrong source for Flex?  Your findings don't 
make
> sense.
> 
>  
> 
> You are calling invalidateSize on the renderer I presume?

It didn't make any sense to me either.  I think that since that is 
the first line in the function, maybe it is losing the flag as it is 
passed into the function, but I have no idea how that would happen.  
I'm stepping through line by line at that point, so I'm not sure what 
could be happening there that I'm not seeing.

I've only got one installed copy of Flex Builder 3.  I uninstalled 
the last beta before installing.  Is there any other action I should 
take?

And yes ;-).

Thanks!

-Amy



[flexcoders] Event generation.. only after data returned from server side.

2008-06-03 Thread Manu Dhanda

Hii

How can I achieve that any event should take place only after the data is
loaded in my flex application.
I am using an Accordion with a datagrid on my first loaded page.

And if I 'll click on the other bars(of accordion) then randomly it happens
as if the control remain fluctuating between different views [screens].

So, I want that until the data for the first screen fully loaded, there
shouldn't be any other event 'n consequently, there won't be other screen's
opening and tht fluctuating situation will never happen then.[it's just my
assumption].

Any thoughts/suggestions are welcomed.

Thanks,
Manu.
-- 
View this message in context: 
http://www.nabble.com/Event-generation..-only-after-data-returned-from-server-side.-tp17637955p17637955.html
Sent from the FlexCoders mailing list archive at Nabble.com.



[flexcoders] How to convert an e4x XML object into an AS object?

2008-06-03 Thread Dave Kong
I know SimpleXMLDecoder can decode a legacy XMLNode to an object and
make good guesses at basic types such as string vs. int. But if I have
the new e4x XML object, how do I easily convert that to objects? Or
convert from E4X to XMLNode?



[flexcoders] Re: passing credentials to .NET webservices (for AD authentication)

2008-06-03 Thread barry.beattie

anyone?

seems there's a couple of us asking similar questions

I'm trying to consume/use some .NET webservices that require
authentication credentials to be passed with the calls. the Microsoft
documentation is less than helpful, abstracting what's really
happening behind the .NET libraries... 

any suggestions greatly appreciated

thanx
barry.b




-
from one of the ASPX apps I've been working on


public static string orgName = "BNITDEV";
public static Uri wsServerTarget = new Uri("http://.blah.:";);
public static string crmWebService =
"http://.blah.:/mscrmservices/2007/CrmServiceWsdl.aspx";; // the ws
public static string wsCrmUserName = "Administrator"; // test
public static string wsCrmPassword = "password"; // test 
public static string wsCrmAuthType = "NTLM";
public static int authenticationType = 0; // AD authentication

public static CredentialCache getCredentialForWebservice()
{
  CredentialCache credential = new CredentialCache();
  NetworkCredential netCred = new NetworkCredential(wsCrmUserName,
wsCrmPassword, orgName);
  credential.Add(wsServerTarget, wsCrmAuthType, netCred);
  return credential;
}

public static CrmAuthenticationToken getAuthenticationTokenForWebservice()
{
  CrmAuthenticationToken token = new CrmAuthenticationToken();
  token.AuthenticationType = authenticationType;
  token.OrganizationName = orgName;
  return token;
}

// CrmSdk is the webreference from the WSDL 
CrmSdk.CrmService myCrm = new CrmSdk.CrmService();
myCrm.Url = GetCrmServiceForOrganization(organizationName);
CrmSdk.CrmAuthenticationToken myToken = new
CrmSdk.CrmAuthenticationToken();

myCrm.CrmAuthenticationTokenValue = getAuthenticationTokenForWebservice();
myCrm.Credentials = getCredentialForWebservice();

// do work
CrmSdk.account newAccount = new CrmSdk.account();
newAccount.name = accountName;
Guid newAccountId = myCrm.Create(newAccount);
return newAccountId.ToString();













--- In flexcoders@yahoogroups.com, "barry.beattie" <[EMAIL PROTECTED]>
wrote:
>
> 
> I've got a bunch of .NET webservices that need username, password and
> domain to be sent from a Flex client for the webservice to then
> authenticate (against AD on that end). It's from the Sharepoint family
> of apps.
> 
> 
> I'm just looking for a concise example to get started, trying to adapt
> what I'm doing in ASP.NET with NetworkCredentials and tokens.
> 
> any pointers?
> 
> thanks
> b
>




[flexcoders] compile failed for chart classes

2008-06-03 Thread coder3

Hi all,

i copied the flexTasks.jar to my [ant home]/lib

but when i build it, it gave me errors for chart classes " Error: Type was
not found or was not a compile-time constant: CartesianChart."

so it doesn't organize chart classes. and they are not in flex2sdk, do i
need to get another jar to compile chart objects? where can i find that jar?

thanx

c
-- 
View this message in context: 
http://www.nabble.com/compile-failed-for-chart-classes-tp17637634p17637634.html
Sent from the FlexCoders mailing list archive at Nabble.com.



[flexcoders] Re: replacing items in an arraycollection?

2008-06-03 Thread Tim Hoff

If you're rolling your own, that's the way.

-TH

--- In flexcoders@yahoogroups.com, "blc187" <[EMAIL PROTECTED]> wrote:
>
> I have an ArrayCollection of objects that I am receiving updates on.
> On update, I get the updated item as an argument and I need to
> replace the old item in the list.
> Right now I am cycling through the ArrayCollection until i find the
> id of the item and returning the index, then replacing the item at
> that index.
> Any thoughts on a better way to do this?
>
>
> public var itemCollection:ArrayCollection;
>
> public function onUpdateReceived(newItem:Object):void {
> findIndex(newItem);
> if(index > -1)
> itemCollection.setItemAt(newItem, index);
> }
>
> public function findIndex(newItem:Object):Number {
>
> for each(var itemInCollection:Object in itemCollection){
> if(itemInCollection.id == newItem.id) return
> itemCollection.getItemIndex(itemInCollection);
> }
>
> return -1;
> }
>





[flexcoders] Does Flex 3 suport file uploading by using Web Service?

2008-06-03 Thread flexawesome
Hey there,

I know Flex supprts file upload by using fileReference with .NET , 
PHP... . My question is, can I use web service with Flex to upload 
files?

Thanks



Re: [flexcoders] Re: Calling a REST webservice from Flex

2008-06-03 Thread Josh McDonald
Thanks for those Rick!

-Josh

On Wed, Jun 4, 2008 at 10:28 AM, Rick Winscot <[EMAIL PROTECTED]>
wrote:

>This is actually a pretty tricky issue as modifications are not limited
> to the crossdomain file alone… implementing 'meta-policies' may also be
> needed.
>
>
>
>
> http://kb.adobe.com/selfservice/viewContent.do?externalId=kb403030&sliceId=2
>
>
>
> http://www.adobe.com/devnet/flashplayer/articles/fplayer9_security_02.html
>
>
>
> http://www.adobe.com/devnet/flashplayer/articles/fplayer9_security_03.html
>
>
>
>
>
> Rick Winscot
>
>
>
>
>
> *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On
> Behalf Of *Daniel Freiman
> *Sent:* Tuesday, June 03, 2008 12:00 PM
> *To:* flexcoders@yahoogroups.com
> *Subject:* Re: [flexcoders] Re: Calling a REST webservice from Flex
>
>
>
> As I understand it cross-domain files also need "site-control" and
> "allow-http-request-headers-from" tags with the newest version of the
> player.
>
> - Daniel Freiman
>
> On Mon, Jun 2, 2008 at 7:15 AM, javed786pk <[EMAIL PROTECTED]> wrote:
>
> J,
> I already have place crossdomain.xml is my root directory. Here are
> conents of crossdomain.xml
>
> 
>
>  "http://www.macromedia.com/xml/dtds/cross-domain-policy.dtd";>
>
> 
>
> 
>
> 
>
> but i am still getting the error.Any clue?
> -Muhammad
>
>
> --- In flexcoders@yahoogroups.com , "Josh
> McDonald" <[EMAIL PROTECTED]> wrote:
> >
> > If you get a security exception, it usually means you need a
> crossdomain.xml
> > file in the root directory of your server. Google knows all about
> this :)
> >
>
> > On Mon, Jun 2, 2008 at 7:05 PM, javed786pk <[EMAIL PROTECTED]> wrote:
> >
> > > J,
> > > Can you Kindly some sample Code(Flex3)that can call the webserivce.
> > > Actually i tried to use the  but i am getting security
> > > exceptions . Is there any configuration that needs to be made @ flex
> > > side to overcome these security issues?
> > >
> > >
>
> > > --- In flexcoders@yahoogroups.com 
> > >  40yahoogroups.com>,
> "Josh
> > > McDonald"  wrote:
> > > >
> > > > We use SOAP all the time from flex 3. You won't have a problem
> > > because SOAP
> > > > over http is always GET and POST
> > > >
> > > > Look at  for more info.
> > > >
> > > > -J
> > > >
> > > > On Mon, Jun 2, 2008 at 5:42 PM, javed786pk  wrote:
> > > >
> > > > > Did anyone try calling a simple SOAP service from Flex3? I will
> > > > > appreciate if some can share the code.My SOAP web service is
> deployed
> > > > > on my Local IIS server. Do we need any Flex configuration to
> run the
> > > > > service successfully?
> > > > >
> > > > >
> > > > > -Muhammad
> > > > >
> > > > > --- In flexcoders@yahoogroups.com 
>
> 
>
> > > 40yahoogroups.com>,
> > > "Josh
> > > > > McDonald"  wrote:
> > > > > >
> > > > > > Well the idea is you run a proxy on your server, make
> non-rest calls
> > > > > to it
> > > > > > with GET and POST, or Data Services, and the proxy is the
> one that
> > > > > makes the
> > > > > > GET / POST / PUT / DELETE rest calls and then returns the result
> > > to your
> > > > > > Flex program. I think LCDS / BlazeDS has some stuff in it to
> help
> > > > > with that,
> > > > > > but I don't use it because we don't use rest so I don't know the
> > > > > details.
> > > > > >
> > > > > > -J
> > > > > >
> > > > > > On Mon, Jun 2, 2008 at 4:47 PM, javed786pk  wrote:
> > > > > >
> > > > > > > J,
> > > > > > > I am sorry but i did not understand the proxy part of your
> > > > > > > response.Can you kindly elaborate it for me a little more?
> > > > > > >
> > > > > > > -Muhammad
> > > > > > >
> > > > > > > --- In flexcoders@yahoogroups.com
> 
> > >  > >
> > > > > 40yahoogroups.com>,
> > > > > "Josh
> > > > > > > McDonald"  wrote:
> > > > > > > >
> > > > > > > > It's a limitation of the browser plugin API
> unfortunately. You
> > > > > can proxy
> > > > > > > > GET/POST requests via a server that makes the correct
> requests
> > > > > on your
> > > > > > > > behalf, but that's about it.
> > > > > > > >
> > > > > > > > -J
> > > > > > > >
> > > > > > > > On Mon, Jun 2, 2008 at 4:32 PM, javed786pk 
> wrote:
> > > > > > > >
> > > > > > > > > thanks for quick response. Is there any workaround to make
> > > PUT and
> > > > > > > > > DELETE Requests or its simply limitations of Flex3?
> > > > > > > > >
> > > > > > > > > Muhammad Javed
> > > > > > > > >
> > > > > > > > > --- In
> flexcoders@yahoogroups.com  40yahoogroups.com>
> > > 
> > > > >  > > > >
> > > > > > > 40yahoogroups.com>,
> > > > > > > "Josh
> > > > > > > > > McDonald"  wrote:
> > > > > > > > > >
> > > > > > > > > > You can only make GET and POST requests from Flex.
> > > > > > > > > >
> > > > > > > > > > -J
> > > > > > > > > >
> > > > > > > > > > On Mon, Jun 2, 2008 at 4:21 PM, javed786pk 
> > > wrote:
> > > > > > > > > >
> > > > > > > > > > > I have developed a REST web service in WCF (Windows
> > > > > communication
> > > > > > > > > > > Foundation. .NET Technology). I want to use that web
> > > service
> > > > > > > in Flex
> > > > > > > > > > > 3. 

RE: [flexcoders] Re: Calling a REST webservice from Flex

2008-06-03 Thread Rick Winscot
This is actually a pretty tricky issue as modifications are not limited to
the crossdomain file alone. implementing 'meta-policies' may also be needed.

 

http://kb.adobe.com/selfservice/viewContent.do?externalId=kb403030
 &sliceId=2

 

http://www.adobe.com/devnet/flashplayer/articles/fplayer9_security_02.html

 

http://www.adobe.com/devnet/flashplayer/articles/fplayer9_security_03.html

 

 

Rick Winscot

 

 

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Daniel Freiman
Sent: Tuesday, June 03, 2008 12:00 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Re: Calling a REST webservice from Flex

 

As I understand it cross-domain files also need "site-control" and
"allow-http-request-headers-from" tags with the newest version of the
player.

- Daniel Freiman

On Mon, Jun 2, 2008 at 7:15 AM, javed786pk <[EMAIL PROTECTED]> wrote:

J,
I already have place crossdomain.xml is my root directory. Here are
conents of crossdomain.xml



http://www.macromedia.com/xml/dtds/cross-domain-policy.dtd";>







but i am still getting the error.Any clue?
-Muhammad


--- In flexcoders@yahoogroups.com  ,
"Josh McDonald" <[EMAIL PROTECTED]> wrote:
>
> If you get a security exception, it usually means you need a
crossdomain.xml
> file in the root directory of your server. Google knows all about
this :)
> 

> On Mon, Jun 2, 2008 at 7:05 PM, javed786pk <[EMAIL PROTECTED]> wrote:
> 
> > J,
> > Can you Kindly some sample Code(Flex3)that can call the webserivce.
> > Actually i tried to use the  but i am getting security
> > exceptions . Is there any configuration that needs to be made @ flex
> > side to overcome these security issues?
> >
> >

> > --- In flexcoders@yahoogroups.com 
,
"Josh
> > McDonald"  wrote:
> > >
> > > We use SOAP all the time from flex 3. You won't have a problem
> > because SOAP
> > > over http is always GET and POST
> > >
> > > Look at  for more info.
> > >
> > > -J
> > >
> > > On Mon, Jun 2, 2008 at 5:42 PM, javed786pk  wrote:
> > >
> > > > Did anyone try calling a simple SOAP service from Flex3? I will
> > > > appreciate if some can share the code.My SOAP web service is
deployed
> > > > on my Local IIS server. Do we need any Flex configuration to
run the
> > > > service successfully?
> > > >
> > > >
> > > > -Muhammad
> > > >
> > > > --- In flexcoders@yahoogroups.com
 

 > 40yahoogroups.com>,
> > "Josh
> > > > McDonald"  wrote:
> > > > >
> > > > > Well the idea is you run a proxy on your server, make
non-rest calls
> > > > to it
> > > > > with GET and POST, or Data Services, and the proxy is the
one that
> > > > makes the
> > > > > GET / POST / PUT / DELETE rest calls and then returns the result
> > to your
> > > > > Flex program. I think LCDS / BlazeDS has some stuff in it to
help
> > > > with that,
> > > > > but I don't use it because we don't use rest so I don't know the
> > > > details.
> > > > >
> > > > > -J
> > > > >
> > > > > On Mon, Jun 2, 2008 at 4:47 PM, javed786pk  wrote:
> > > > >
> > > > > > J,
> > > > > > I am sorry but i did not understand the proxy part of your
> > > > > > response.Can you kindly elaborate it for me a little more?
> > > > > >
> > > > > > -Muhammad
> > > > > >
> > > > > > --- In flexcoders@yahoogroups.com
 

> >  >
> > > > 40yahoogroups.com>,
> > > > "Josh
> > > > > > McDonald"  wrote:
> > > > > > >
> > > > > > > It's a limitation of the browser plugin API
unfortunately. You
> > > > can proxy
> > > > > > > GET/POST requests via a server that makes the correct
requests
> > > > on your
> > > > > > > behalf, but that's about it.
> > > > > > >
> > > > > > > -J
> > > > > > >
> > > > > > > On Mon, Jun 2, 2008 at 4:32 PM, javed786pk 
wrote:
> > > > > > >
> > > > > > > > thanks for quick response. Is there any workaround to make
> > PUT and
> > > > > > > > DELETE Requests or its simply limitations of Flex3?
> > > > > > > >
> > > > > > > > Muhammad Javed
> > > > > > > >
> > > > > > > > --- In
flexcoders@yahoogroups.com 

> > 
> > > >  > > >
> > > > > > 40yahoogroups.com>,
> > > > > > "Josh
> > > > > > > > McDonald"  wrote:
> > > > > > > > >
> > > > > > > > > You can only make GET and POST requests from Flex.
> > > > > > > > >
> > > > > > > > > -J
> > > > > > > > >
> > > > > > > > > On Mon, Jun 2, 2008 at 4:21 PM, javed786pk 
> > wrote:
> > > > > > > > >
> > > > > > > > > > I have developed a REST web service in WCF (Windows
> > > > communication
> > > > > > > > > > Foundation. .NET Technology). I want to use that web
> > service
> > > > > > in Flex
> > > > > > > > > > 3. Can someone let me know is REST calls in supported
> > in FLex3
> > > > > > or not?
> > > > > > > > > >
> > > > > > > > > > Muhammad
> > > > > > > > > >
> > > > > > > > > >
> > > > > > > > > >
> > > > > > > > >
> > > > 

RE: [flexcoders] Altering a textarea on certain keyboardevents...

2008-06-03 Thread Alex Harui
Yes it is, I would change the text on the CHANGE or TextInput event.

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of miltoon71
Sent: Tuesday, June 03, 2008 1:30 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Altering a textarea on certain keyboardevents...

 

Hi
Trying to insert some characters on every new row when the user hits
enter... 
The following does not work:

// Define a textarea: 


// Add a keystroke listener
myTextArea.addEventListener(KeyboardEvent.KEY_DOWN,keyHandler);

// Handle keystrokes
private function keyHandler(event:KeyboardEvent):void{
if(event.keyCode == Keyboard.ENTER){
this.myTextArea.text += "added text";
}
}

However, if you add a random alert message in the middle, it suddenly
works:

private function keyHandler(event:KeyboardEvent):void{
Alert.show("Dummy message");
if(event.keyCode == Keyboard.ENTER){
this.myTextArea.text += "added text";
}
}

Isn't this strange? 

 



RE: [flexcoders] How to remeasure itemRenderer

2008-06-03 Thread Alex Harui
Could you be using the wrong source for Flex?  Your findings don't make
sense.

 

You are calling invalidateSize on the renderer I presume?

 

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Amy
Sent: Tuesday, June 03, 2008 3:38 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] How to remeasure itemRenderer

 

I want to add something to an itemRenderer in a List that will make it 
taller. I've set the List's variableRowHeight to true.

However, when I set invalidateSize() in my click handler, the measure() 
method never happens.

I've stepped through the code in the debugger, and narrowed it down to 
line 4487 (itemRendererToIndices protected function):

if (!item || !(item.name in rowMap))

When that line runs, the invalidateSizeFlag on item (my renderer) 
suddenly goes to false.

Any idea what's happening? What is the recommended way to remeasure an 
itemRenderer?

Thanks;

Amy

 



Re: [flexcoders] Re: Calling a REST webservice from Flex

2008-06-03 Thread Josh McDonald
Ah... Where can I find a canonical example?

-J

On Wed, Jun 4, 2008 at 2:00 AM, Daniel Freiman <[EMAIL PROTECTED]> wrote:

>   As I understand it cross-domain files also need "site-control" and
> "allow-http-request-headers-from" tags with the newest version of the
> player.
>
> - Daniel Freiman
>
>
> On Mon, Jun 2, 2008 at 7:15 AM, javed786pk <[EMAIL PROTECTED]> wrote:
>
>>   J,
>> I already have place crossdomain.xml is my root directory. Here are
>> conents of crossdomain.xml
>>
>> 
>>
>> > "http://www.macromedia.com/xml/dtds/cross-domain-policy.dtd";>
>>
>> 
>>
>> 
>>
>> 
>>
>> but i am still getting the error.Any clue?
>> -Muhammad
>>
>> --- In flexcoders@yahoogroups.com , "Josh
>> McDonald" <[EMAIL PROTECTED]> wrote:
>> >
>> > If you get a security exception, it usually means you need a
>> crossdomain.xml
>> > file in the root directory of your server. Google knows all about
>> this :)
>> >
>> > On Mon, Jun 2, 2008 at 7:05 PM, javed786pk <[EMAIL PROTECTED]> wrote:
>> >
>> > > J,
>> > > Can you Kindly some sample Code(Flex3)that can call the webserivce.
>> > > Actually i tried to use the  but i am getting security
>> > > exceptions . Is there any configuration that needs to be made @ flex
>> > > side to overcome these security issues?
>> > >
>> > >
>> > > --- In flexcoders@yahoogroups.com 
>> > > > 40yahoogroups.com>,
>> "Josh
>> > > McDonald"  wrote:
>> > > >
>> > > > We use SOAP all the time from flex 3. You won't have a problem
>> > > because SOAP
>> > > > over http is always GET and POST
>> > > >
>> > > > Look at  for more info.
>> > > >
>> > > > -J
>> > > >
>> > > > On Mon, Jun 2, 2008 at 5:42 PM, javed786pk  wrote:
>> > > >
>> > > > > Did anyone try calling a simple SOAP service from Flex3? I will
>> > > > > appreciate if some can share the code.My SOAP web service is
>> deployed
>> > > > > on my Local IIS server. Do we need any Flex configuration to
>> run the
>> > > > > service successfully?
>> > > > >
>> > > > >
>> > > > > -Muhammad
>> > > > >
>> > > > > --- In flexcoders@yahoogroups.com 
>> >
>> > > 40yahoogroups.com>,
>> > > "Josh
>> > > > > McDonald"  wrote:
>> > > > > >
>> > > > > > Well the idea is you run a proxy on your server, make
>> non-rest calls
>> > > > > to it
>> > > > > > with GET and POST, or Data Services, and the proxy is the
>> one that
>> > > > > makes the
>> > > > > > GET / POST / PUT / DELETE rest calls and then returns the result
>> > > to your
>> > > > > > Flex program. I think LCDS / BlazeDS has some stuff in it to
>> help
>> > > > > with that,
>> > > > > > but I don't use it because we don't use rest so I don't know the
>> > > > > details.
>> > > > > >
>> > > > > > -J
>> > > > > >
>> > > > > > On Mon, Jun 2, 2008 at 4:47 PM, javed786pk  wrote:
>> > > > > >
>> > > > > > > J,
>> > > > > > > I am sorry but i did not understand the proxy part of your
>> > > > > > > response.Can you kindly elaborate it for me a little more?
>> > > > > > >
>> > > > > > > -Muhammad
>> > > > > > >
>> > > > > > > --- In flexcoders@yahoogroups.com
>> 
>> > > > > >
>> > > > > 40yahoogroups.com>,
>> > > > > "Josh
>> > > > > > > McDonald"  wrote:
>> > > > > > > >
>> > > > > > > > It's a limitation of the browser plugin API
>> unfortunately. You
>> > > > > can proxy
>> > > > > > > > GET/POST requests via a server that makes the correct
>> requests
>> > > > > on your
>> > > > > > > > behalf, but that's about it.
>> > > > > > > >
>> > > > > > > > -J
>> > > > > > > >
>> > > > > > > > On Mon, Jun 2, 2008 at 4:32 PM, javed786pk 
>> wrote:
>> > > > > > > >
>> > > > > > > > > thanks for quick response. Is there any workaround to make
>> > > PUT and
>> > > > > > > > > DELETE Requests or its simply limitations of Flex3?
>> > > > > > > > >
>> > > > > > > > > Muhammad Javed
>> > > > > > > > >
>> > > > > > > > > --- In
>> flexcoders@yahoogroups.com > 40yahoogroups.com>
>> > > 
>> > > > > > > > > >
>> > > > > > > 40yahoogroups.com>,
>> > > > > > > "Josh
>> > > > > > > > > McDonald"  wrote:
>> > > > > > > > > >
>> > > > > > > > > > You can only make GET and POST requests from Flex.
>> > > > > > > > > >
>> > > > > > > > > > -J
>> > > > > > > > > >
>> > > > > > > > > > On Mon, Jun 2, 2008 at 4:21 PM, javed786pk > >
>> > > wrote:
>> > > > > > > > > >
>> > > > > > > > > > > I have developed a REST web service in WCF (Windows
>> > > > > communication
>> > > > > > > > > > > Foundation. .NET Technology). I want to use that web
>> > > service
>> > > > > > > in Flex
>> > > > > > > > > > > 3. Can someone let me know is REST calls in supported
>> > > in FLex3
>> > > > > > > or not?
>> > > > > > > > > > >
>> > > > > > > > > > > Muhammad
>> > > > > > > > > > >
>> > > > > > > > > > >
>> > > > > > > > > > >
>> > > > > > > > > >
>> > > > > > > > > >
>> > > > > > > > > >
>> > > > > > > > > > --
>> > > > > > > > > > "Therefore, send not to know For whom the bell tolls. It
>> > > > > tolls for
>> > > > > > > > > thee."
>> > > > > > > > > >
>> > > > > > > > > > :: Josh 'G-Funk' McDonald
>> > > > > > > > > > :: 0437 221 380 :: jos

[flexcoders] How to remeasure itemRenderer

2008-06-03 Thread Amy
I want to add something to an itemRenderer in a List that will make it 
taller.  I've set the List's variableRowHeight to true.

However, when I set invalidateSize() in my click handler, the measure() 
method never happens.

I've stepped through the code in the debugger, and narrowed it down to 
line 4487 (itemRendererToIndices protected function):

if (!item || !(item.name in rowMap))

When that line runs, the invalidateSizeFlag on item (my renderer) 
suddenly goes to false.

Any idea what's happening?  What is the recommended way to remeasure an 
itemRenderer?

Thanks;

Amy



Re: [flexcoders] Re: SWC Encrypt 2.0 - Does it work?

2008-06-03 Thread Sherif Abdou
The local variable get changed to _loc_1, so your best best is to write some 
sort of script that changes the public/private variables to something like
__var_1, and make sure u increment by 1. you can do the same for functions 
function __test__1();. I dont think encryption will matter unless some crazy 
person wants to decipher what all they mean.


- Original Message 
From: andrewwestberg <[EMAIL PROTECTED]>
To: flexcoders@yahoogroups.com
Sent: Tuesday, June 3, 2008 4:54:14 PM
Subject: [flexcoders] Re: SWC Encrypt 2.0 - Does it work?


>- We ran SWCEncrypt on a Flex SWC and then tried decompiling a
Flex app
>created with the encrypted SWC versus the unencrypted SWC. I
could not tell
>any difference whatsoever. Both decompiled just fine, it appeared
as if
>SWCEncrypt did absolutely nothing to the SWC file. I don't know
if we were
>doing soemthing wrong (although really how can you? you just run
it on a
>SWC), or if the encryptor doesn't support Flex SWCs specifically.

I tested SWC encrypt on my flex swc today and I can also verify that
it didn't do a darn thing to the code as viewed through Sothink's
decompiler. (disclaimer: I consult for a company that does SWF and
Flex/AIR module encryption that could be considered a competitor of
these guys.  Just checkin out the competition ;) )

-Andrew




  

[flexcoders] replacing items in an arraycollection?

2008-06-03 Thread blc187
I have an ArrayCollection of objects that I am receiving updates on.
On update, I get the updated item as an argument and I need to 
replace the old item in the list.
Right now I am cycling through the ArrayCollection until i find the 
id of the item and returning the index, then replacing the item at 
that index.
Any thoughts on a better way to do this?


public var itemCollection:ArrayCollection;

public function onUpdateReceived(newItem:Object):void {
  findIndex(newItem);
  if(index > -1)
itemCollection.setItemAt(newItem, index);
}

public function findIndex(newItem:Object):Number {

  for each(var itemInCollection:Object in itemCollection){
if(itemInCollection.id == newItem.id) return 
  itemCollection.getItemIndex(itemInCollection);
  }

  return -1;
}





[flexcoders] Re: SWC Encrypt 2.0 - Does it work?

2008-06-03 Thread andrewwestberg
>- We ran SWCEncrypt on a Flex SWC and then tried decompiling a
Flex app
>created with the encrypted SWC versus the unencrypted SWC. I
could not tell
>any difference whatsoever. Both decompiled just fine, it appeared
as if
>SWCEncrypt did absolutely nothing to the SWC file. I don't know
if we were
>doing soemthing wrong (although really how can you? you just run
it on a
>SWC), or if the encryptor doesn't support Flex SWCs specifically.

I tested SWC encrypt on my flex swc today and I can also verify that
it didn't do a darn thing to the code as viewed through Sothink's
decompiler. (disclaimer: I consult for a company that does SWF and
Flex/AIR module encryption that could be considered a competitor of
these guys.  Just checkin out the competition ;) )

-Andrew



[flexcoders] fail to use ant build

2008-06-03 Thread coder3

Hi all,

i copied the flexTasks.jar to my [ant home]/lib

added this following to my build.xml


   
   
   
 
 
 
 
   

but when i build it, it gave me "Command not found: mxmlc"

can you see if anything wrong here? i am using linux machine.


-- 
View this message in context: 
http://www.nabble.com/fail-to-use-ant-build-tp17634500p17634500.html
Sent from the FlexCoders mailing list archive at Nabble.com.



[flexcoders] programmatically showing data tips on a chart

2008-06-03 Thread Ofir Shemesh
I have seen this question asked many times (Adobe guys noticed it too,
but nothing was done yet): how do I programmatically show a specific
DataTip ?

here is how:
http://shemesh.wordpress.com/2008/06/03/programmatically-showing-data-tips-on-a-chart/



[flexcoders] Re: SWC Encrypt 2.0 - Does it work?

2008-06-03 Thread Cato Paus
anyone tested this one http://www.kindisoft.com/products/



--- In flexcoders@yahoogroups.com, "jmfillman" <[EMAIL PROTECTED]> wrote:
>
> Has anyone had experience using SWC Encrypt 2.0, by Amayeta? Does it 
> work, or would I just be wasting my money? I'm trying to protect a 
> component I plan to sell, but given the prevalence of de-compilers, 
I'm 
> hesitant to release it. I don't want to see all my hard work stolen.
>




[flexcoders] Re: SWC Encrypt 2.0 - Does it work?

2008-06-03 Thread Cato Paus
Hi, Yes that is true, I stand corrected :) I tested it with SWF 
Encrypt™ 5.0 and 4.0 my self and the Sothink decompiler did show it 
almost like the code form flex builder.

Money saved there!


--- In flexcoders@yahoogroups.com, "Doug McCune" <[EMAIL PROTECTED]> wrote:
>
> That last comment isn't true. The Sothink decompiler works just 
fine on Flex
> swfs.
> 
> Here's my experience with SWF Encrypt and SWC Encrypt:
> 
>- We ran SWCEncrypt on a Flex SWC and then tried decompiling a 
Flex app
>created with the encrypted SWC versus the unencrypted SWC. I 
could not tell
>any difference whatsoever. Both decompiled just fine, it 
appeared as if
>SWCEncrypt did absolutely nothing to the SWC file. I don't know 
if we were
>doing soemthing wrong (although really how can you? you just run 
it on a
>SWC), or if the encryptor doesn't support Flex SWCs specifically.
>- SWFEncrypt, on the other hand, works. But it does not work for 
Flex
>swfs. If you try to encrypt a full Flex SWF the encryptor goes 
overboard and
>jacks up the Flex framework code and makes your SWF unrunnable.
>- What did seem to work was creating a SWF module that did not 
include
>the Flex framework code, encrypting that, and loading that 
module into a
>wrapper Flex app.
>- Neither SWCEncrypt nor SWFEncrypt seems to actually "encrypt" 
anything,
>All of it can still be decompiled with the Sothink decompiler 
(maybe the
>decompiler just knows how to decrypt whatever encryption is 
used).
>SWFEncrypt does seem to obfuscate the code though. A decompiled 
SWF that has
>been run through SWFEncrypt is harder to read than a non-
obfuscated one.
> 
> 
> On Tue, Jun 3, 2008 at 11:49 AM, Cato Paus <[EMAIL PROTECTED]> wrote:
> 
> >   right now the Flex framework is too much to decode. decoders 
only
> > hang that I know of
> >
> >
> > --- In flexcoders@yahoogroups.com , 
Tom
> > Chiverton 
> > wrote:
> > >
> > > On Monday 02 Jun 2008, jmfillman wrote:
> > > > Has anyone had experience using SWC Encrypt 2.0, by Amayeta? 
Does
> > it
> > > > work, or would I just be wasting my money?
> > >
> > > Have you tried decompiling a swfencrypt'ed SWF ?
> > >
> > > --
> > > 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: a simple question of BitmapData

2008-06-03 Thread flexawesome
I am able to display it on the stage by using Bitmap

http://www.privatepaste.com/7e0bpEZJKa


However, I can't load and any SWF file, it prompts an error msg. Is 
there anyway to convert it?


TypeError: Error #1034: Type Coercion failed: cannot convert 
flash.display::[EMAIL PROTECTED] to flash.display.Bitmap.


Thank you



[flexcoders] Re: SWC Encrypt 2.0 - Does it work?

2008-06-03 Thread jmfillman
Thank you for the information Doug! Very helpful.

JF
--- In flexcoders@yahoogroups.com, "Doug McCune" <[EMAIL PROTECTED]> wrote:
>
> That last comment isn't true. The Sothink decompiler works just 
fine on Flex
> swfs.
> 
> Here's my experience with SWF Encrypt and SWC Encrypt:
> 
>- We ran SWCEncrypt on a Flex SWC and then tried decompiling a 
Flex app
>created with the encrypted SWC versus the unencrypted SWC. I 
could not tell
>any difference whatsoever. Both decompiled just fine, it 
appeared as if
>SWCEncrypt did absolutely nothing to the SWC file. I don't know 
if we were
>doing soemthing wrong (although really how can you? you just run 
it on a
>SWC), or if the encryptor doesn't support Flex SWCs specifically.
>- SWFEncrypt, on the other hand, works. But it does not work for 
Flex
>swfs. If you try to encrypt a full Flex SWF the encryptor goes 
overboard and
>jacks up the Flex framework code and makes your SWF unrunnable.
>- What did seem to work was creating a SWF module that did not 
include
>the Flex framework code, encrypting that, and loading that 
module into a
>wrapper Flex app.
>- Neither SWCEncrypt nor SWFEncrypt seems to actually "encrypt" 
anything,
>All of it can still be decompiled with the Sothink decompiler 
(maybe the
>decompiler just knows how to decrypt whatever encryption is 
used).
>SWFEncrypt does seem to obfuscate the code though. A decompiled 
SWF that has
>been run through SWFEncrypt is harder to read than a non-
obfuscated one.
> 
> 
> On Tue, Jun 3, 2008 at 11:49 AM, Cato Paus <[EMAIL PROTECTED]> wrote:
> 
> >   right now the Flex framework is too much to decode. decoders 
only
> > hang that I know of
> >
> >
> > --- In flexcoders@yahoogroups.com , 
Tom
> > Chiverton 
> > wrote:
> > >
> > > On Monday 02 Jun 2008, jmfillman wrote:
> > > > Has anyone had experience using SWC Encrypt 2.0, by Amayeta? 
Does
> > it
> > > > work, or would I just be wasting my money?
> > >
> > > Have you tried decompiling a swfencrypt'ed SWF ?
> > >
> > > --
> > > 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] Altering a textarea on certain keyboardevents...

2008-06-03 Thread miltoon71
Hi
Trying to insert some characters on every new row when the user hits enter... 
The following does not work:

// Define a textarea: 


// Add a keystroke listener
myTextArea.addEventListener(KeyboardEvent.KEY_DOWN,keyHandler);

// Handle keystrokes
private function keyHandler(event:KeyboardEvent):void{
if(event.keyCode == Keyboard.ENTER){
this.myTextArea.text += "added text";
}
}


However, if you add a random alert message in the middle, it suddenly works:

private function keyHandler(event:KeyboardEvent):void{
Alert.show("Dummy message");
if(event.keyCode == Keyboard.ENTER){
this.myTextArea.text += "added text";
}
}


Isn't this strange? 






[flexcoders] close webbrowser window or tab

2008-06-03 Thread Ingo Stöcker
Hello Everyone,

I am developing a small web app. I use a menubar to navigation through all 
functions. One 
menu point should close the current browser window/tab where the app is 
working. Who 
knows something about it?

Greetz from Berlin,

Kobe



[flexcoders] Re: Flex + WebORB for PHP, A very strage problem

2008-06-03 Thread Uber_Nick
Manu,

Note the following.
trace(Boolean('TRUE')); // returns true
trace(Boolean('FALSE')); // also returns true

Flex is interpreting the result from your PHP call as a String.  Try
returning lower-case 'true' and 'false'.  Also, try using:
list[i].aircon as Boolean 
instead of:
Boolean(list[i].aircon)
The former will not always convert to true (but will return null if it
can't convert).  Lastly, if you can't make it work, just try this
workaround:
vo.aircon = (''+list[i].aircon).toLowerCase()=='true';

-Nick Matelli
Amentra, Inc

--- In flexcoders@yahoogroups.com, Manu Dhanda <[EMAIL PROTECTED]> wrote:
>
> 
> Code for my Responder, where I am receiving the result:
>   public function result(data:Object):void
>   {
>   //TODO: implement function
>   var objList:ArrayCollection = new ArrayCollection();
>   var list:ArrayCollection = new 
> ArrayCollection(data.result as Array);
>   var vo:FlatVO;
>   for(var i:int=0; i   vo = new FlatVO();
>   vo.userId = int(list[i].userId);
>   vo.aircon = Boolean(list[i].aircon);
>   objList.addItem(vo);
>   }
> 
> In here, I supposed to get vo.aircon as boolean[values as true/false for
> different rows/objects in FlatVO]. But, the strange thing is that I am
> receiving all the values for my boolean type as TRUE only.
> 
> I had verified on my server side PHP code, and it is returning the
> corresponding values fine [as in TRUE and FALSE accordingly].
> 
> I am using WebORB for PHP with Flex. and in there, I had verified in the
> Services as well, that my service returning this object has the right
> values. Then how come I am receiving all the values as TRUE, I can not
> understand this.
> 
> Any help will be great.
> Thanks.
> 
> Igor Costa-2 wrote:
> > 
> > If you paste a part of your code someone here in the list can
answer you
> > but
> > it's hard to get what you really need.
> > 
> > 
> > Regards
> > Igor
> > 
> > On Tue, Jun 3, 2008 at 11:45 AM, Manu Dhanda <[EMAIL PROTECTED]>
> > wrote:
> > 
> >>
> >> Hii,
> >>
> >> In short, In Weborb Mgmt Services, I can see the object having a
value of
> >> boolean type correctly.( that is it is returned correctly from
the db).
> >> But when I receive it on Flex side, all is returned as true.
> >>
> >> How should I resolve this?
> >>
> >> Appreciate your time.. to respond it.
> >>
> >> thanks.
> >>
> >> --
> >> View this message in context:
> >>
http://www.nabble.com/Flex-%2B-WebORB-for-PHP%2C-A-very-strage-problem-tp17625304p17625304.html
> >> Sent from the FlexCoders mailing list archive at Nabble.com.
> >>
> >> 
> >>
> > 
> > 
> > 
> > -- 
> > 
> > Igor Costa
> > www.igorcosta.com
> > www.igorcosta.org
> > 
> > 
> 
> -- 
> View this message in context:
http://www.nabble.com/Flex-%2B-WebORB-for-PHP%2C-A-very-strange-problem-tp17625304p17631029.html
> Sent from the FlexCoders mailing list archive at Nabble.com.
>




RE: [flexcoders] Dynamic TextArea creation

2008-06-03 Thread Gordon Smith
Make an Array instance variable

 



   public var newTexts:Array /* of TextArea */ = [];



 

After creating a new TextArea, store a reference to it in the Array:

 

var newText:TextArea = new TextArea();

...

newTexts[countObjects] = newText;

 

Access the text in the ith TextArea as

 

newTexts[i].text

 

Gordon Smith

Adobe Flex SDK Team

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Tiago Santarosa
Sent: Tuesday, June 03, 2008 12:19 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Dynamic TextArea creation

 

Hi, 

 

I'm trying to create an application that is the dynamic creation of
fields (textarea), this is okay! but I need to have access to these
textareas to get the values to write in a file. How to access these
values?

 

This is the code for creation of the field:

 

var newText:TextArea = new TextArea();

newText.styleName = "textNew";

newText.id = "newText" + countObjects;

newText.name = "newText" + countObjects;

newText.width = 150;

newText.height = 70;

newText.x = pt.x + 20;

newText.y = pt.y + 20;

 

Sorry for bad English

Thanks, Tiago. 

 



[flexcoders] website help

2008-06-03 Thread nihilism machine
Does anyone  have a website especially a gallery like website that  
they can send me the code in? Looking to see how websites get BUILT.  
Thank you to anyone in avance.

-e


Re: [flexcoders] Re: SWC Encrypt 2.0 - Does it work?

2008-06-03 Thread Doug McCune
That last comment isn't true. The Sothink decompiler works just fine on Flex
swfs.

Here's my experience with SWF Encrypt and SWC Encrypt:

   - We ran SWCEncrypt on a Flex SWC and then tried decompiling a Flex app
   created with the encrypted SWC versus the unencrypted SWC. I could not tell
   any difference whatsoever. Both decompiled just fine, it appeared as if
   SWCEncrypt did absolutely nothing to the SWC file. I don't know if we were
   doing soemthing wrong (although really how can you? you just run it on a
   SWC), or if the encryptor doesn't support Flex SWCs specifically.
   - SWFEncrypt, on the other hand, works. But it does not work for Flex
   swfs. If you try to encrypt a full Flex SWF the encryptor goes overboard and
   jacks up the Flex framework code and makes your SWF unrunnable.
   - What did seem to work was creating a SWF module that did not include
   the Flex framework code, encrypting that, and loading that module into a
   wrapper Flex app.
   - Neither SWCEncrypt nor SWFEncrypt seems to actually "encrypt" anything,
   All of it can still be decompiled with the Sothink decompiler (maybe the
   decompiler just knows how to decrypt whatever encryption is used).
   SWFEncrypt does seem to obfuscate the code though. A decompiled SWF that has
   been run through SWFEncrypt is harder to read than a non-obfuscated one.


On Tue, Jun 3, 2008 at 11:49 AM, Cato Paus <[EMAIL PROTECTED]> wrote:

>   right now the Flex framework is too much to decode. decoders only
> hang that I know of
>
>
> --- In flexcoders@yahoogroups.com , Tom
> Chiverton <[EMAIL PROTECTED]>
> wrote:
> >
> > On Monday 02 Jun 2008, jmfillman wrote:
> > > Has anyone had experience using SWC Encrypt 2.0, by Amayeta? Does
> it
> > > work, or would I just be wasting my money?
> >
> > Have you tried decompiling a swfencrypt'ed SWF ?
> >
> > --
> > 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] Dynamic TextArea creation

2008-06-03 Thread Tiago Santarosa

Hi,

I'm trying to create an application that is the dynamic creation of  
fields (textarea), this is okay! but I need to have access to these  
textareas to get the values to write in a file. How to access these  
values?


This is the code for creation of the field:

var newText:TextArea = new TextArea();
newText.styleName = "textNew";
newText.id = "newText" + countObjects;
newText.name = "newText" + countObjects;
newText.width = 150;
newText.height = 70;
newText.x = pt.x + 20;
newText.y = pt.y + 20;

Sorry for bad English
Thanks, Tiago. 

[flexcoders] Re: programmatically using RemoteObject

2008-06-03 Thread Cato Paus

Here is a part of my way to do it this is only for the connection,
you have to use "flexComRo.yourjavamethod "and you have to create a
handler for tath if you need to.

you have to put the destination in the remote-config.xml



import flash.events.Event;

import flash.events.EventDispatcher;



import mx.controls.Alert;

import mx.managers.CursorManager;

import mx.messaging.Channel;

import mx.messaging.ChannelSet;

import mx.messaging.channels.AMFChannel;

import mx.messaging.events.ChannelEvent;

import mx.messaging.events.ChannelFaultEvent;

import mx.rpc.events.FaultEvent;

import mx.rpc.events.ResultEvent;

import mx.rpc.remoting.mxml.RemoteObject;

import mx.utils.ObjectUtil;







public class RemoteObjectProxy extends EventDispatcher {



private static var _instance:RemoteObjectProxy;



private static var flexComRO:RemoteObject;

private static var channelSet:ChannelSet = new ChannelSet();

private static var channel:Channel;





public function RemoteObjectProxy(enforcer:SingletonEnforcer){}



public static function getInstance():RemoteObjectProxy

{

if(RemoteObjectProxy._instance == null)

{

RemoteObjectProxy._instance = new RemoteObjectProxy(new
SingletonEnforcer());

initFlexCom();

//trace('PopUpControl created!')

return RemoteObjectProxy._instance;

}

//trace('PopUpControl returned!')

return RemoteObjectProxy._instance;

}



private static function initFlexCom():void

{

channel = new AMFChannel('my-amf',
'http://{server.name}:{server.port}/flex/messagebroker/amf');

channel.requestTimeout = 10;

channel.connectTimeout = 10;

channelSet.addChannel(channel);



flexComRO = new RemoteObject();

flexComRO.concurrency = Concurrency.LAST;

flexComRO.destination = "FlexComRO";

flexComRO.channelSet = channelSet;

// trace('channelSet: ' + ObjectUtil.toString(channelSet));

channelSet.addEventListener(ChannelFaultEvent.FAULT,
handleChannelFault);

channelSet.addEventListener(ChannelEvent.CONNECT, handleChannelConnect);

channelSet.addEventListener(ChannelEvent.DISCONNECT,
handleChannelDisconnect);

flexComRO.addEventListener(FaultEvent.FAULT, faultHandler);// denne er
for selve objectet som er koblet mot java. men denne 'fault handleren'
er komblet kun mot loginUser.

}



// Handler for Channels and remote Object

private static function handleChannelFault(event:ChannelFaultEvent):void

{//trace('handleChannelFault: ' + event);

CursorManager.removeBusyCursor();

}



private static function handleChannelConnect(event:ChannelEvent):void

{//trace('handleChannelConnect: ' + event);

}



private static function handleChannelDisconnect(event:ChannelEvent):void

{//trace('handleChannelConnect: ' + event);

}



private static function faultHandler (event:FaultEvent):void

{

// Deal with event.fault.faultString on all FlexComRO's methods!

Alert.show(event.fault.faultString + " : " + event.fault.message,
"Server Error: " + event.fault.faultCode);

CursorManager.removeBusyCursor();

}



}//Class

}// Package



class SingletonEnforcer {}

http://www.umbrellacorp.no 




--- In flexcoders@yahoogroups.com, "blc187" <[EMAIL PROTECTED]> wrote:
>
> I'm trying to move some code out of my MXML into AS classes but having
> trouble with the RemoteObject.
> The following code:
>
> 
> 
> 
>
> How do I go about setting up the remoteObject method programmatically?
>




Re: [flexcoders] Flex + WebORB for PHP, A very strage problem

2008-06-03 Thread Manu Dhanda

Code for my Responder, where I am receiving the result:
public function result(data:Object):void
{
//TODO: implement function
var objList:ArrayCollection = new ArrayCollection();
var list:ArrayCollection = new 
ArrayCollection(data.result as Array);
var vo:FlatVO;
for(var i:int=0; i 
> If you paste a part of your code someone here in the list can answer you
> but
> it's hard to get what you really need.
> 
> 
> Regards
> Igor
> 
> On Tue, Jun 3, 2008 at 11:45 AM, Manu Dhanda <[EMAIL PROTECTED]>
> wrote:
> 
>>
>> Hii,
>>
>> In short, In Weborb Mgmt Services, I can see the object having a value of
>> boolean type correctly.( that is it is returned correctly from the db).
>> But when I receive it on Flex side, all is returned as true.
>>
>> How should I resolve this?
>>
>> Appreciate your time.. to respond it.
>>
>> thanks.
>>
>> --
>> View this message in context:
>> http://www.nabble.com/Flex-%2B-WebORB-for-PHP%2C-A-very-strage-problem-tp17625304p17625304.html
>> Sent from the FlexCoders mailing list archive at Nabble.com.
>>
>> 
>>
> 
> 
> 
> -- 
> 
> Igor Costa
> www.igorcosta.com
> www.igorcosta.org
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Flex-%2B-WebORB-for-PHP%2C-A-very-strange-problem-tp17625304p17631029.html
Sent from the FlexCoders mailing list archive at Nabble.com.



[flexcoders] Re: automated image files on a headless server with AIR?

2008-06-03 Thread netdeep

I am using the following method to save the image:

private function captureImg(comp:UIComponent, name:String):void { 
var imageSnap:ImageSnapshot = ImageSnapshot.captureImage(comp);
var imageByteArray:ByteArray = imageSnap.data as ByteArray;
imgSave.saveImage(imageByteArray, name+"-img.png");
}

imgSave is a RemoteObject java class.  The problem is that the flex app which 
runs this 
code never gets launched on the server.  When I try to launch it from java with 
a runtime 
exec and the URL, it never launches, presumably because it is running in a 
browser and 
the server is headless.  That's why I am considering reconfiguring flex to run 
headless or 
converting it into an AIR app.


--- In flexcoders@yahoogroups.com, "Igor Costa" <[EMAIL PROTECTED]> wrote:
>
> actually not need air app to do that, You can use the bytearray to encode
> the image and send to your java to save that each time or in meanwhile you
> need.
> 
> Regards
> Igor
> 
> On Mon, Jun 2, 2008 at 4:50 PM, netdeep <[EMAIL PROTECTED]> wrote:
> 
> >   I am trying to run flex as an image generator on the server. Since my
> > server is headless, the
> > feedback I am getting is that it is bad practice to run flex in the browser
> > for a background
> > app.
> >
> > Here's what the program does in a nutshell:
> >
> > The server launches my java app. It reads a list of report definitions from
> > the data base. For
> > each report, it spawns a thread. Each thread launches my Flex application
> > in the browser.
> > Flex draws the data in charts. Each time data is pushed to the flex
> > application from the java
> > server side, Flex calls a remote java method to save it's image to a file.
> > This file sits in a
> > directory where it can be viewed in a regular old html page.
> >
> > The problem is really the automated aspect. I want to have this chart
> > generated every few
> > minutes as a .png file. It works perfectly fine on my localhost machine,
> > but the server
> > deployment is so far not working. We have firefox installed on the server.
> > Is there no way to
> > launch it as a background process to draw these images? Should I turn this
> > into an AIR app
> > (I've never done anything with AIR up to this point) to make it run more
> > easily in the
> > background?
> >
> > 
> >
> 
> 
> 
> -- 
> 
> Igor Costa
> www.igorcosta.com
> www.igorcosta.org
>





[flexcoders] Re: SWC Encrypt 2.0 - Does it work?

2008-06-03 Thread Cato Paus
right now the Flex framework is too much to decode. decoders only 
hang that I know of


--- In flexcoders@yahoogroups.com, Tom Chiverton <[EMAIL PROTECTED]> 
wrote:
>
> On Monday 02 Jun 2008, jmfillman wrote:
> > Has anyone had experience using SWC Encrypt 2.0, by Amayeta? Does 
it
> > work, or would I just be wasting my money? 
> 
> Have you tried decompiling a swfencrypt'ed SWF ?
> 
> -- 
> 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: tree control incorrectly displays nodes marked as "open"

2008-06-03 Thread yanroyss
In my previous post to this list, I included a link to my Adobe forum
post which includes a simple program that reproduces the error.  For
your convenience, here's a direct link to the post in that thread that
contains the code:
http://www.adobe.com/cfusion/webforums/forum/messageview.cfm?forumid=60&catid=585&threadid=1366770&enterthread=y#4977869

I haven't found any facility for attaching a file to a posting to this
list, so I think going to that link is the best way to get the code to
you.  You'll just need to copy/paste that code into an MXML file and
compile.  Running it will demonstrate the erroneous behavior, and if
you remove the line near the bottom of the script (commented so as to
be obvious which one), the behavior will be as expected.

Thank you for your help.

--- In flexcoders@yahoogroups.com, "Alex Harui" <[EMAIL PROTECTED]> wrote:
>
> Had trouble following.  Post a small test case.
> 
>  
> 
> 
> 
> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
> Behalf Of yanroyss
> Sent: Tuesday, June 03, 2008 8:00 AM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] tree control incorrectly displays nodes marked as
> "open"
> 
>  
> 
> Hi,
> I've been having a very odd problem using the Tree control with a
> HierarchicicalCollectionView as the dataProvider. I've been to the
> Adobe Forums and #flex on irc.freenode.org looking for help and so far
> I've come up empty. I was told on IRC that Flexcoders is the right
> place to look for help :)
> 
> The problem is very simple, but somewhat difficult to describe. For
> reasons I'm still a little hazy on, the root node of the tree is
> displayed along side (on the same level) as its first-level children.
> All nodes that have children are correctly marked as expandable with
> the disclosure icon. Clicking said icon will cause the next level of
> the hierarchy to be displayed, which also suffers from the same
> problem: it will display all 2nd-level children AND their children on
> the 2nd level. I believe this problem stems from the way the Tree
> control iterates over the collection -- it uses
> ICollectionView.createCursor() instead of using the dataDescriptor
> property of the Tree control to do that operation (which the docs
> imply it does).
> 
> After much frustration and dead ends, I discovered that this bug only
> manifests when the nodes in the HierarchicalCollectionView are marked
> as "open" using openNode(). If the nodes are closed, it works as
> expected. This is very unfortunate for my application, as I'm
> creating an app that displays the organization structure of a company.
> The control I use for drawing the chart requires all the nodes in the
> tree to be "open" in the dataProvider, but the Tree control that I'd
> like to use to provide quick navigation around the organization seems
> to require just the opposite.
> 
> My questions are simple: why does this happen? Is it really a bug? 
> Should I report it? (probably, if it is a bug...) Has anyone ever see
> this before, and if so, how did they deal with it?
> 
> Thank you very much for any help you can provide.
> 
> You can find my original post on the Adobe Flex forums (along with a
> simple reproduction recipe for the problem) here:
> http://www.adobe.com/cfusion/webforums/forum/messageview.cfm?forumid=60&;
> catid=585&threadid=1366770&enterthread=y
>  &catid=585&threadid=1366770&enterthread=y>
>




[flexcoders] Re: SWC Encrypt 2.0 - Does it work?

2008-06-03 Thread Cato Paus
I have tested it the code looks like spageti!


--- In flexcoders@yahoogroups.com, Tom Chiverton <[EMAIL PROTECTED]> 
wrote:
>
> On Monday 02 Jun 2008, jmfillman wrote:
> > Has anyone had experience using SWC Encrypt 2.0, by Amayeta? Does 
it
> > work, or would I just be wasting my money? 
> 
> Have you tried decompiling a swfencrypt'ed SWF ?
> 
> -- 
> 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: confusion with events

2008-06-03 Thread Tim Hoff

Hey,

That's one way.  But, since the ModelLocator is already Bindable, you
don't need to add event listeners for data changes.  As an alternative
you can bind {} ModelLocator variables to the dataProviders in your
components.  When the data in the model variables is changed, the
binding mechanism automatically updates the view.  If you need to do
something in the view, when the data is updated, you can always use the
valueCommit event on the bound control.

Next stop; ApplicationController and Commands.

-TH

--- In flexcoders@yahoogroups.com, "fb6668" <[EMAIL PROTECTED]> wrote:
>
> Never mind, I worked it out. I used my model locator:
>
> in SmallGraph:
> model.assets.addEventListener("ASSET_DATA_CHANGE_VIEW",listen);
> public function listen(e:Event):void
> {
> Alert.show("asset event");
> }
>
> then in the model:
> public function changeAssetView()
> {
> dispatchEvent(new Event('ASSET_DATA_CHANGE_VIEW'));
> }
>
> This seems to work!
>
> --- In flexcoders@yahoogroups.com, "fb6668" fiona@ wrote:
> >
> > I have a question about how events are used.
> >
> > I have a component which has the following sub-components:
> >
> > 
> > 
> > 
> > 
> >
> > The AssetGraphPanel itself contains components:
> >
> >  > 
> >
> > 
> > 
> > 
> >
> > These graphs need to change when a button inside the AssetAccordion
is
> > clicked, by calling a function in SmallGraph called 'updateChart()'.
> > There will be other things that should also trigger this function to
> > be called, from other components.
> > So, how do I add an event listener/dispatcher so that the SmallGraph
> > can hear it whereever in the application it was fired from?
> > Seems to me I want the opposite of bubbling?
> >
> > Thanks for your patience.
> >
>





RE: [flexcoders] Re: Memory leaks in a asyncronic operation

2008-06-03 Thread Alex Harui
I don't know what books and other materials are out there.  Note that
there are filters that don't show certain classes.  Maybe they are
hiding the true leak

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of cavi21
Sent: Tuesday, June 03, 2008 5:05 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Memory leaks in a asyncronic operation

 

Hello Alex, thanks for your reply, I've been using it, and the only
thing that i found is an 
instance of "BitString" defined in the custom class i'm using to encode
, that is not leave 
memory after the method that create it ended. On the other hand, if i
use the native class, 
this instance never appears in the Profiler.

Is there any good book or guide that helps to take full profit of the
Profiler??

thanks

--- In flexcoders@yahoogroups.com 
, "Alex Harui" <[EMAIL PROTECTED]> wrote:
>
> The Flex3 Profiler can help you find memory leaks
> 
> 
> 
> 
> 
> From: flexcoders@yahoogroups.com 
[mailto:flexcoders@yahoogroups.com 
] On
> Behalf Of cavi21
> Sent: Monday, June 02, 2008 2:10 PM
> To: flexcoders@yahoogroups.com  
> Subject: [flexcoders] Memory leaks in a asyncronic operation
> 
> 
> 
> Hello, i've been searching for a while to a solution to this problem,
> and i've been trying myself, with no succeed.
> The problem is this, i'm encoding to JPEG six bitmap captures from a
> webcam stream in a video component.
> Up to here, is no problem. But if I used the native class to encode
> (mx.graphics.codec.JPEGEncoder) the AIR application hang for 2 minutes
> processing the images. In these case at the end of the process i call
> a function to free up the memory, and everything works fine.
> The problem is that i'm using a modified class to encode
>
(http://blog.paranoidferret.com/index.php/2007/12/11/flex-tutorial-an-as
 
> ynchronous-jpeg-encoder/
>
 
> ynchronous-jpeg-encoder/> )
> . The benefit is that i can show a progressbar showing the encoding
> process. But the only problem that i have is that, at the end of the
> process, i have memory hang up... i've been reading that these may
> occur without a proper care in the events listeners.
> Sory about my english, is not ma native language, and thanks in
> advance for your time and patience.
>

 



Re: [flexcoders] automated image files on a headless server with AIR?

2008-06-03 Thread Igor Costa
actually not need air app to do that, You can use the bytearray to encode
the image and send to your java to save that each time or in meanwhile you
need.

Regards
Igor

On Mon, Jun 2, 2008 at 4:50 PM, netdeep <[EMAIL PROTECTED]> wrote:

>   I am trying to run flex as an image generator on the server. Since my
> server is headless, the
> feedback I am getting is that it is bad practice to run flex in the browser
> for a background
> app.
>
> Here's what the program does in a nutshell:
>
> The server launches my java app. It reads a list of report definitions from
> the data base. For
> each report, it spawns a thread. Each thread launches my Flex application
> in the browser.
> Flex draws the data in charts. Each time data is pushed to the flex
> application from the java
> server side, Flex calls a remote java method to save it's image to a file.
> This file sits in a
> directory where it can be viewed in a regular old html page.
>
> The problem is really the automated aspect. I want to have this chart
> generated every few
> minutes as a .png file. It works perfectly fine on my localhost machine,
> but the server
> deployment is so far not working. We have firefox installed on the server.
> Is there no way to
> launch it as a background process to draw these images? Should I turn this
> into an AIR app
> (I've never done anything with AIR up to this point) to make it run more
> easily in the
> background?
>
> 
>



-- 

Igor Costa
www.igorcosta.com
www.igorcosta.org


RE: [flexcoders] tree control incorrectly displays nodes marked as "open"

2008-06-03 Thread Alex Harui
Had trouble following.  Post a small test case.

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of yanroyss
Sent: Tuesday, June 03, 2008 8:00 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] tree control incorrectly displays nodes marked as
"open"

 

Hi,
I've been having a very odd problem using the Tree control with a
HierarchicicalCollectionView as the dataProvider. I've been to the
Adobe Forums and #flex on irc.freenode.org looking for help and so far
I've come up empty. I was told on IRC that Flexcoders is the right
place to look for help :)

The problem is very simple, but somewhat difficult to describe. For
reasons I'm still a little hazy on, the root node of the tree is
displayed along side (on the same level) as its first-level children.
All nodes that have children are correctly marked as expandable with
the disclosure icon. Clicking said icon will cause the next level of
the hierarchy to be displayed, which also suffers from the same
problem: it will display all 2nd-level children AND their children on
the 2nd level. I believe this problem stems from the way the Tree
control iterates over the collection -- it uses
ICollectionView.createCursor() instead of using the dataDescriptor
property of the Tree control to do that operation (which the docs
imply it does).

After much frustration and dead ends, I discovered that this bug only
manifests when the nodes in the HierarchicalCollectionView are marked
as "open" using openNode(). If the nodes are closed, it works as
expected. This is very unfortunate for my application, as I'm
creating an app that displays the organization structure of a company.
The control I use for drawing the chart requires all the nodes in the
tree to be "open" in the dataProvider, but the Tree control that I'd
like to use to provide quick navigation around the organization seems
to require just the opposite.

My questions are simple: why does this happen? Is it really a bug? 
Should I report it? (probably, if it is a bug...) Has anyone ever see
this before, and if so, how did they deal with it?

Thank you very much for any help you can provide.

You can find my original post on the Adobe Flex forums (along with a
simple reproduction recipe for the problem) here:
http://www.adobe.com/cfusion/webforums/forum/messageview.cfm?forumid=60&;
catid=585&threadid=1366770&enterthread=y
 

 



Re: [flexcoders] configuring for a headless server

2008-06-03 Thread Igor Costa
are you deploying  with the flex-config.xml with it? If you're not deploying
(running) you have to set up.
because the flex-config.xml will need it.

Regards
Igor


On Mon, Jun 2, 2008 at 10:56 AM, netdeep <[EMAIL PROTECTED]> wrote:

>   I have seen a few posts about setting up flex to run on a headless
> server but I'm a bit
> confused about how to actually do this or even if this will fix my problem.
> This is what the
> documentation says should be done to set things up:
>
> ---
>
> define the value of the  tag in the flex-config.xml file.
> Setting this
> property to true is required to support fonts and SVG images in a
> nongraphical
> environment. The  tag is a child tag of . The
> following
> example sets  to true:
>
> true
>
> ---
>
> Seems straight forward enough, but when I deploy to the server using a war
> file, I am not
> providing the flex-config.xml file. Do I need to get my sys admin to update
> this on the
> server manually?
>
> What I am doing is launching flex from the server as a thread to run in the
> background
> and save snapshots of charts drawn in flex every time new data is sent from
> the server to
> the flex app running in the browser. So in this instance of flex, no user
> is involved. The
> server is a headless rack mounted computer.
>
> 
>



-- 

Igor Costa
www.igorcosta.com
www.igorcosta.org


Re: [flexcoders] Flex + WebORB for PHP, A very strage problem

2008-06-03 Thread Igor Costa
If you paste a part of your code someone here in the list can answer you but
it's hard to get what you really need.


Regards
Igor

On Tue, Jun 3, 2008 at 11:45 AM, Manu Dhanda <[EMAIL PROTECTED]>
wrote:

>
> Hii,
>
> In short, In Weborb Mgmt Services, I can see the object having a value of
> boolean type correctly.( that is it is returned correctly from the db).
> But when I receive it on Flex side, all is returned as true.
>
> How should I resolve this?
>
> Appreciate your time.. to respond it.
>
> thanks.
>
> --
> View this message in context:
> http://www.nabble.com/Flex-%2B-WebORB-for-PHP%2C-A-very-strage-problem-tp17625304p17625304.html
> Sent from the FlexCoders mailing list archive at Nabble.com.
>
> 
>



-- 

Igor Costa
www.igorcosta.com
www.igorcosta.org


[flexcoders] Re: Enable / Disable Flex Menu Items Programmatically using AS 3.0

2008-06-03 Thread valdhor
Here is another example that's a lot less buggy and uses an MXLList,
XMLListCollection and a MenuBar. This is taken mostly from the example
listed in the help:


http://www.adobe.com/2006/mxml";
layout="absolute"
 creationComplete="onComplete(event)">
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 





[flexcoders] Re: Enable / Disable Flex Menu Items Programmatically using AS 3.0

2008-06-03 Thread valdhor
Here is another example that's a lot less buggy and uses an MXLList,
XMLListCollection and a MenuBar. This is taken mostly from the example
listed in the help:


http://www.adobe.com/2006/mxml";
layout="absolute"
 creationComplete="onComplete(event)">
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 





[flexcoders] Re: Enable / Disable Flex Menu Items Programmatically using AS 3.0

2008-06-03 Thread bc24fl
Wow finally got this working THANK YOU
EVERYBODY!!!

Besides the syntax problems that you guys helped me with there was
another with the formatted xml data.

Since the code exists in a component the xmlns data was being (by
flex) inserted in the root of the xml data.  So below:

Source:








   
  



Trace:  









   
  



This is why I was getting a null when referencing it.  The fix is to
put xmlns="" in the root and your examples worked.

Many Thanks!

Irving

--- In flexcoders@yahoogroups.com, "Tracy Spratt" <[EMAIL PROTECTED]> wrote:
>
> Yes, it can.
> 
>  
> 
> Valdhor's example works for me.  There is something going on with the
> programmatic instantiation of the menu, it dissapears on click unless it
> gets recreated in the handler.  That is just a bug and not necessary to
> demonstrate the technique of disabling a menu item.
> 
>  
> 
> Tracy
> 
>  
> 
> 
> 
> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
> Behalf Of bc24fl
> Sent: Tuesday, June 03, 2008 12:32 PM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Re: Enable / Disable Flex Menu Items
> Programmatically using AS 3.0
> 
>  
> 
> Ok I think I'm getting closer. In your example you create the menu
> when the user clicks but in my code the menu has already been created
> globally. Can the XML data be changed dynamically once the menu has
> already been create?
> 
> --- In flexcoders@yahoogroups.com 
> , "valdhor"  wrote:
> >
> > OK, this is fairly buggy but it does show you can gray out a menu item
> > from actionscript (Check the "Down" submenu item after clicking the
> > "Lock / Unlock" menu item). I will leave the bug fixes and extras to
> you
> > :-)...
> > 
> > 
> > http://www.adobe.com/2006/mxml
>  "
> > layout="absolute"
> > creationComplete="onComplete(event)">
> > 
> > 
> > 
> > 
> > 
> > 
> >  > enabled="true"/>
> >  > enabled="true"/>
> > 
> > 
> >  > toggled="false"/>
> > 
> > 
> > 
> > 
> > 
> >
>




[flexcoders] Re: programmatically using RemoteObject

2008-06-03 Thread valdhor
import mx.rpc.remoting.RemoteObject;
import mx.rpc.events.FaultEvent;
import mx.rpc.events.ResultEvent;

private var myRemoteObject :RemoteObject = new RemoteObject();


myRemoteObject .destination = "genericDestination";
myRemoteObject .addEventListener(FaultEvent.FAULT, faultHandler);
myRemoteObject .addEventListener(ResultEvent.RESULT, gotServerData)
myRemoteObject .getOperation('myMethod').send();




--- In flexcoders@yahoogroups.com, "blc187" <[EMAIL PROTECTED]> wrote:
>
> I'm trying to move some code out of my MXML into AS classes but having
> trouble with the RemoteObject.
> The following code:
>
> 
> 
> 
>
> How do I go about setting up the remoteObject method programmatically?
>



[flexcoders] Re: programmatically using RemoteObject

2008-06-03 Thread valdhor
import mx.rpc.remoting.RemoteObject;
import mx.rpc.events.FaultEvent;
import mx.rpc.events.ResultEvent;

private var myRemoteObject :RemoteObject = new RemoteObject();


myRemoteObject .destination = "genericDestination";
myRemoteObject .addEventListener(FaultEvent.FAULT, faultHandler);
myRemoteObject .addEventListener(ResultEvent.RESULT, gotServerData)
myRemoteObject .getOperation('myMethod').send();




--- In flexcoders@yahoogroups.com, "blc187" <[EMAIL PROTECTED]> wrote:
>
> I'm trying to move some code out of my MXML into AS classes but having
> trouble with the RemoteObject.
> The following code:
>
> 
> 
> 
>
> How do I go about setting up the remoteObject method programmatically?
>



[flexcoders] Composition of bindable objects

2008-06-03 Thread Richard Rodseth
I have a chart controlled by a fairly complex set of parameters.
Within the model layer I would like to compose bindable objects, eg

Value1
  value:Number;
  units:String;

Value2
  value:Number;
  units:String;

Parameters
  value1:Value1;
  value2:Value2;

such that view controls can bind to parameters.value1.units, for
example, but an event would also be dispatched indicating that
"value1Changed" or even "parametersChanged".
Is there an approach better than having Parameters add listeners for
PropertyChangeEvents to value1 and value2? Is this a good use for
ChangeWatcher? I've yet to use that class, though I do use the Observe
tag in MXML.
Thanks.


[flexcoders] Re: A simple apps to Save data by using WebServiceSimple - Security ERROR

2008-06-03 Thread flexawesome
Fixed. :) the location is OK.


   http://www.macromedia.com/xml/dtds/cross-domain-policy.dtd";>
   
   
   


http://kb.adobe.com/selfservice/viewContent.do?
externalId=tn_14213&sliceId=1

http://www.adobe.com/devnet/flashplayer/articles/flash_player9_securit
y_update.html#policy_file


--- In flexcoders@yahoogroups.com, "Tracy Spratt" <[EMAIL PROTECTED]> wrote:
>
> Are you sure the crossdomain.xml file is in the correct location, 
and is
> correct?
> 
> Tracy
> 
>  
> 
> 
> 
> From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On
> Behalf Of flexawesome
> Sent: Tuesday, June 03, 2008 12:34 PM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Re: A simple apps to Save data by using
> WebServiceSimple - Security ERROR
> 
>  
> 
> Anyway, I added accrossdomain.xml, 
> 
> it prompts same error msg. :(
> 
> --- In flexcoders@yahoogroups.com 
> , "flexawesome"  
> wrote:
> >
> > 
> > I was trying to save my data by using WebServices, but I got the 
> > security error msg, I have no ideas about this. Both them are on 
> the 
> > same server with same domain. ( I don't need the crossdomain.xml )
> > 
> > Can you take a look of this?
> > Thank you
> > 
> > 
> > === Error Msg ===
> > http://www.privatepaste.com/4301yR9Ee9
>  
> > 
> > 
> > === Flex Code ===
> > http://www.privatepaste.com/02fFp2dQhl
>  
> >
>




Re: [flexcoders] Accordion, How to show it vertically like xx|yy|zz

2008-06-03 Thread Doug McCune
oh hai! Did u check out flexlib??

http://code.google.com/p/flexlib/
http://flexlib.googlecode.com/svn/trunk/examples/HAccordion/HAccordion_Sample.swf

zomgz! u can haz HAccordion!

kthnxbye,
Doug

On Tue, Jun 3, 2008 at 10:03 AM, Tracy Spratt <[EMAIL PROTECTED]> wrote:

>Someone has created one of these already.  Google for it.  "horizontal
> accordion" maybe.
>
> Tracy
>
>
>  --
>
> *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On
> Behalf Of *Manu Dhanda
> *Sent:* Tuesday, June 03, 2008 12:50 PM
> *To:* flexcoders@yahoogroups.com
> *Subject:* [flexcoders] Accordion, How to show it vertically like xx|yy|zz
>
>
>
>
> Hii Guyz,
>
> How can I have an accordion that will display the bars vertically as in
> xx|yy|zz...
>
> which property do I need to set in or where can I find the resources for
> that??
>
> Thanks,
> Manu.
> --
> View this message in context:
> http://www.nabble.com/Accordion%2C-How-to-show-it-vertically-like-xx%7Cyy%7Czz-tp17628206p17628206.html
> Sent from the FlexCoders mailing list archive at Nabble.com.
>
>  
>


RE: [flexcoders] passing data from a PopUp Window labelfield.text to calling main app textbox

2008-06-03 Thread Tracy Spratt
http://www.cflex.net/showFileDetails.cfm?ObjectID=558

Shows several options, but does not use events.  I mostly use events
these days.

Tracy

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of ritexcorp
Sent: Tuesday, June 03, 2008 12:33 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] passing data from a PopUp Window labelfield.text
to calling main app textbox

 

Hi guys, I am new to the group and new to Flex, my background is in 
Java, so I am going through alot of tutorials getting up to speed. I 
want to redo my website http://www.mycabservice.com
  with a Flex UI 
frontend, so heres the problem. So far I have a flex 2 application 
that has a popup window that contains 4 cascading combo boxes fed from 
an xml file, and I want the last combobox selection -"airport", to 
populate airport selection back to the opening application's textbox. 
and display the popup selection. country-state-city-"airport". 
popup.labelfield.text= mainapp.textbox.text. This is an easy one but 
it is consuming too much of my time to sort out. I have seen some 
examples using events, what is the simplest method to use.

 



[flexcoders] passing data from a PopUp Window labelfield.text to calling main app textbox

2008-06-03 Thread ritexcorp
Hi guys, I am new to the group and new to Flex, my background is in 
Java, so I am going through alot of tutorials getting up to speed. I 
want to redo my website http://www.mycabservice.com with a Flex UI 
frontend, so heres the problem. So far I have a flex 2 application 
that has a popup window that contains 4 cascading combo boxes fed from 
an xml file, and I want the last combobox selection -"airport", to 
populate airport selection back to the opening application's textbox. 
and display the popup selection.  country-state-city-"airport". 
popup.labelfield.text= mainapp.textbox.text.  This is an easy one but 
it is consuming too much of my time to sort out.  I have seen some 
examples using events, what is the simplest method to use.



RE: [flexcoders] File Changes Ignored

2008-06-03 Thread Tracy Spratt
Syntax errors will prevent the swf from being generated. Also, did you
try Project, "clean"?

Tracy

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Dan Pride
Sent: Tuesday, June 03, 2008 12:58 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] File Changes Ignored

 

OK I am stumped. I just upgraded to 10.5 and now changes I make to the
mxml file do not show when I Click the Run Button. I am totally stumped.
Dan Pride

 



RE: [flexcoders] Re: A simple apps to Save data by using WebServiceSimple - Security ERROR

2008-06-03 Thread Tracy Spratt
Are you sure the crossdomain.xml file is in the correct location, and is
correct?

Tracy

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of flexawesome
Sent: Tuesday, June 03, 2008 12:34 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: A simple apps to Save data by using
WebServiceSimple - Security ERROR

 

Anyway, I added accrossdomain.xml, 

it prompts same error msg. :(

--- In flexcoders@yahoogroups.com 
, "flexawesome" <[EMAIL PROTECTED]> 
wrote:
>
> 
> I was trying to save my data by using WebServices, but I got the 
> security error msg, I have no ideas about this. Both them are on 
the 
> same server with same domain. ( I don't need the crossdomain.xml )
> 
> Can you take a look of this?
> Thank you
> 
> 
> === Error Msg ===
> http://www.privatepaste.com/4301yR9Ee9
 
> 
> 
> === Flex Code ===
> http://www.privatepaste.com/02fFp2dQhl
 
>

 



[flexcoders] File Changes Ignored

2008-06-03 Thread Dan Pride
OK I am stumped. I just upgraded to 10.5 and now changes I make to the mxml 
file do not show when I Click the Run Button. I am totally stumped.
Dan Pride


  


Re: RES: [flexcoders] Using CSS with custom item renderers

2008-06-03 Thread Michael Schmalle
Simply put, the IDataRenderer interface.

ItemRenderers are supposed to be encapsulated, if Adobe used anything other
than the styleName of the renderer's parent, they would be breaking this
encapsulation rule.

You could try un setting the styleName in commit properties and then try
your TypeSelector again. If that dosn't work, override updateDisplayList()
and unset it after super().

Mike

On Tue, Jun 3, 2008 at 11:48 AM, Amy <[EMAIL PROTECTED]> wrote:

>   --- In flexcoders@yahoogroups.com ,
> "Michael Schmalle"
> <[EMAIL PROTECTED]> wrote:
> >
> > The solution
> >
> > 
> >  > xmlns:mx="http://www.adobe.com/2006/mxml";
> > width="200" height="50">
> >
> > 
> > 
> > 
> >
> > 
> >
> > 
>
> I meant a CSS solution. I could possibly create a classFactory and
> pass in the styleName in that, but that's not nearly as clean as just
> using the TypeSelector. I could also pass in a reference to the
> Application and/or its styles and have the component look at that to
> see if there is a style that matches the ClassName, but that's sort
> of icky too.
>
> Why is the List component set up to break this?
>
> Thanks;
>
> Amy
>
>  
>



-- 
Teoti Graphix, LLC
http://www.teotigraphix.com

Teoti Graphix Blog
http://www.blog.teotigraphix.com

You can find more by solving the problem then by 'asking the question'.


RE: [flexcoders] Accordion, How to show it vertically like xx|yy|zz

2008-06-03 Thread Tracy Spratt
Someone has created one of these already.  Google for it.  "horizontal
accordion" maybe.

Tracy

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Manu Dhanda
Sent: Tuesday, June 03, 2008 12:50 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Accordion, How to show it vertically like xx|yy|zz

 


Hii Guyz,

How can I have an accordion that will display the bars vertically as in
xx|yy|zz...

which property do I need to set in or where can I find the resources for
that??

Thanks,
Manu.
-- 
View this message in context:
http://www.nabble.com/Accordion%2C-How-to-show-it-vertically-like-xx%7Cy
y%7Czz-tp17628206p17628206.html
 
Sent from the FlexCoders mailing list archive at Nabble.com.

 



[flexcoders] Accordion, How to show it vertically like xx|yy|zz

2008-06-03 Thread Manu Dhanda

Hii Guyz,

How can I have an accordion that will display the bars vertically as in
xx|yy|zz...

which property do I need to set in or where can I find the resources for
that??

Thanks,
Manu.
-- 
View this message in context: 
http://www.nabble.com/Accordion%2C-How-to-show-it-vertically-like-xx%7Cyy%7Czz-tp17628206p17628206.html
Sent from the FlexCoders mailing list archive at Nabble.com.



RE: [flexcoders] Re: Enable / Disable Flex Menu Items Programmatically using AS 3.0

2008-06-03 Thread Tracy Spratt
Yes, it can.

 

Valdhor's example works for me.  There is something going on with the
programmatic instantiation of the menu, it dissapears on click unless it
gets recreated in the handler.  That is just a bug and not necessary to
demonstrate the technique of disabling a menu item.

 

Tracy

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of bc24fl
Sent: Tuesday, June 03, 2008 12:32 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Enable / Disable Flex Menu Items
Programmatically using AS 3.0

 

Ok I think I'm getting closer. In your example you create the menu
when the user clicks but in my code the menu has already been created
globally. Can the XML data be changed dynamically once the menu has
already been create?

--- In flexcoders@yahoogroups.com 
, "valdhor" <[EMAIL PROTECTED]> wrote:
>
> OK, this is fairly buggy but it does show you can gray out a menu item
> from actionscript (Check the "Down" submenu item after clicking the
> "Lock / Unlock" menu item). I will leave the bug fixes and extras to
you
> :-)...
> 
> 
> http://www.adobe.com/2006/mxml
 "
> layout="absolute"
> creationComplete="onComplete(event)">
> 
> 
> 
> 
> 
> 
>  enabled="true"/>
>  enabled="true"/>
> 
> 
>  toggled="false"/>
> 
> 
> 
> 
> 
>

 



Re: RES: [flexcoders] Using CSS with custom item renderers

2008-06-03 Thread Amy
--- In flexcoders@yahoogroups.com, "Amy" <[EMAIL PROTECTED]> wrote:
>
> --- In flexcoders@yahoogroups.com, "Michael Schmalle" 
>  wrote:
> >
> > The solution
> > 
> > 
> >  > xmlns:mx="http://www.adobe.com/2006/mxml";
> > width="200" height="50">
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> 
> I meant a CSS solution. I could possibly create a classFactory and 
> pass in the styleName in that, but that's not nearly as clean as 
just 
> using the TypeSelector.  I could also pass in a reference to the 
> Application and/or its styles and have the component look at that 
to 
> see if there is a style that matches the ClassName, but that's sort 
> of icky too.
> 
> Why is the List component set up to break this?

OK, I figured out how to tell my component "yes, I really want you to 
use your own style, regardless of where you are."

Here it is:

override protected function commitProperties(){
this.styleName=this.className;
}

Deceptively simple!  :-)

-Amy



[flexcoders] Re: A simple apps to Save data by using WebServiceSimple - Security ERROR

2008-06-03 Thread flexawesome
Anyway, I added accrossdomain.xml, 

it prompts same error msg. :(


--- In flexcoders@yahoogroups.com, "flexawesome" <[EMAIL PROTECTED]> 
wrote:
>
> 
> I was trying to save my data by using WebServices, but I got the 
> security error msg, I have no ideas about this. Both them are on 
the 
> same server with same domain. ( I don't need the crossdomain.xml )
> 
> Can you take a look of this?
> Thank you
> 
> 
> === Error Msg ===
> http://www.privatepaste.com/4301yR9Ee9
> 
> 
> === Flex Code ===
> http://www.privatepaste.com/02fFp2dQhl
>




[flexcoders] Re: Enable / Disable Flex Menu Items Programmatically using AS 3.0

2008-06-03 Thread bc24fl
Ok I think I'm getting closer.  In your example you create the menu
when the user clicks but in my code the menu has already been created
globally.  Can the XML data be changed dynamically once the menu has
already been create?

--- In flexcoders@yahoogroups.com, "valdhor" <[EMAIL PROTECTED]> wrote:
>
> OK, this is fairly buggy but it does show you can gray out a menu item
> from actionscript (Check the "Down" submenu item after clicking the
> "Lock / Unlock" menu item). I will leave the bug fixes and extras to you
> :-)...
> 
> 
> http://www.adobe.com/2006/mxml";
> layout="absolute"
>  creationComplete="onComplete(event)">
>  
>  
>  
>  
>  
>  
>   enabled="true"/>
>   enabled="true"/>
>  
>  
>   toggled="false"/>
>  
>  
>  
>  
> 
>




RE: [flexcoders] Synchronous HTTPService possible?

2008-06-03 Thread Tracy Spratt
Synchronous HTTPService is not possible, but you could simply disable
the table on send and enable it again on result.

Tracy

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Chilcoat, Dee
Sent: Tuesday, June 03, 2008 12:28 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Synchronous HTTPService possible?

 

I need to know how to handle the other events generated by the datagrid
component while an update is being performed.  For example, I have an
editable datagrid into which numeric values can be entered.  When the
user edits a cell and presses enter, or otherwise clicks off the line, a
database table is updated with the data (via a remote object call) on
the line on which the cell was edited.  During the update, I want to
prevent the user from inputting any data into other cells.  I have found
that, by repeatedly hitting enter after editing a cell, and before the
update is complete, the screen freezes.  Worse yet, if I repeatedly edit
a cell and hit enter before the update is complete, the screen freezes
and data on a line that has an error will be updated.  Can you give me
an example of how to handle this situation?  

 

I will appreciate any help.

 

Dee A. Chilcoat

Enterprise Web Application Development

University of California San Diego

[EMAIL PROTECTED]

(858) 534-0719

 



[flexcoders] Re: Enable / Disable Flex Menu Items Programmatically using AS 3.0

2008-06-03 Thread bc24fl
Jesus, what on earth.  I get an error when using:

myMenuData..menuitem.(attribute("id")=="menuDown")[EMAIL PROTECTED] = false;

Error: A term is undefined and has no properties

Can someone post a complete basic example plz that works with flex3 sdk?





--- In flexcoders@yahoogroups.com, "valdhor" <[EMAIL PROTECTED]> wrote:
>
> I just tried this:
> 
> myMenuData..menuitem.(attribute("id")=="menuDown")[EMAIL PROTECTED] = false;
> 
> and it worked - The sub menu item "Down" was grayed out; So Tracy is
> correct.
> 
> 
> --- In flexcoders@yahoogroups.com, "Tracy Spratt"  wrote:
> >
> > This won't work:
> > 
> > myMenuData.menuitem.(@id=="menuDown")[EMAIL PROTECTED] = "false";
> > 
> > You need to use the attribute syntax as in my example.
> > 
> >  
> > 
> > Tract
> > 
> > 
> > 
> > From: flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] On
> > Behalf Of bc24fl
> > Sent: Tuesday, June 03, 2008 10:52 AM
> > To: flexcoders@yahoogroups.com
> > Subject: [flexcoders] Re: Enable / Disable Flex Menu Items
> > Programmatically using AS 3.0
> > 
> >  
> > 
> > Fair enough. Here is the code:
> > 
> > The menu is created using:
> > 
> > 
> > public var myMenu:Menu;
> > //myMenu is globally created
> > 
> > var pt:Point = new Point(event.localX, event.localY);
> > 
> > myMenu = Menu.createMenu(null, myMenuData, false); 
> > 
> > pt = event.target.localToGlobal(pt);
> > 
> > myMenu.labelField="@label";
> > 
> > myMenu.show(pt.x, pt.y);
> > 
> > =
> > 
> > After this I add a few event handlers specific to the menu 
> > 
> > Then I add a switch statement to test what item was clicked. When the
> > item "Lock / Unlock" is selected I ouput an Alert to make sure It is
> > working correctly. Directly after the Alert I run the following:
> > 
> > ===
> > myMenuData.menuitem.(@id=="menuDown")[EMAIL PROTECTED] = "false";
> > 
> > // I ALSO TRIED
> > 
> >
myMenu.dataDescriptor.setEnabled(myMenuData.menuDrill.menuDown[0],false)
> > ;
> > 
> > ===
> > 
> > The data is statically defined in mxml like so:
> > =
> > 
> > 
> > 
> > 
> >  > enabled="true"/>
> >  > enabled="true"/>
> > 
> > 
> > 
> >  
> >  
> > 
> > 
> > ===
> > 
> > I hope this is enough info. 
> > 
> > If someone has another example using a different data source please
> > post. I don't have to use an XML formatted data. 
> > 
> > Thanks for the help.
> > 
> > 
> > 
> > --- In flexcoders@yahoogroups.com

> > , "Michael Schmalle"
> >  wrote:
> > >
> > > Hi,
> > > 
> > > Without looking at your exact dataProvider with a simple
Application,
> > I
> > > can't help much.
> > > 
> > > I got this to work yesterday using @enabled = false on the node.
> > > 
> > > But the ex4 implementation various on 'WHERE' you are trying to set
> > the
> > > enabled of the node.
> > > 
> > > Can you post a simple mxml Application?
> > > 
> > > Mike
> > > 
> > > On Tue, Jun 3, 2008 at 10:21 AM, Andrew Price <
> > > andrew.price@> wrote:
> > > 
> > > > I am new to flex myself but is it not just.
> > > >
> > > >
> > > >
> > > >
> > > >
> > > > menuDown.enabled="true"
> > > >
> > > >
> > > >
> > > > or
> > > >
> > > >
> > > >
> > > > menuDown.enabled="fasle"
> > > >
> > > >
> > > >
> > > >
> > > >
> > > > -Original Message-
> > > > *From:* flexcoders@yahoogroups.com
> >  
> > [mailto:flexcoders@yahoogroups.com

> > ] *On
> > > > Behalf Of *bc24fl
> > > > *Sent:* 03 June 2008 14:56
> > > > *To:* flexcoders@yahoogroups.com
> >  
> > > > *Subject:* [flexcoders] Re: Enable / Disable Flex Menu Items
> > > > Programmatically using AS 3.0
> > > >
> > > >
> > > >
> > > > I'm really struggling for help. We have done everything to try and
> > > > get a solution to this problem including:
> > > >
> > > > 1. Posting on public forums / mailing lists
> > > > 2. Purchased books on AS3 and Flex
> > > > 3. Signed up for a year subscription to Lynda.com
> > > > 4. Purchased support from experts-exchange.com
> > > > 5. Purchased support directly from Adobe where supposedly it's
3 day
> > > > response (no resolution) and we have received no response for
a week
> > > > (business days).
> > > >
> > > > What in the world am I doing wrong? This question doesn't
appear to
> > > > be rocket science as I've done this (enable/disable menu items) in
> > > > many other programming languages.
> > > >
> > > > As you can see I have exhausted every (that I know of) resource.
> > What
> > > > else am I to do? My employer is upset and now considering dropping
> > > > the language altogether and I don't want that.
> > > >
> > > > Any advice would BE MUCH APPRECIATED.
> > > >
> > > > End rant.
> > > >
> > > > --- In flexcoders@yahoogroups.com
> >   ,
> > "bc24fl"
> > > >  wrote:
> > > > >

[flexcoders] Synchronous HTTPService possible?

2008-06-03 Thread Chilcoat, Dee
I need to know how to handle the other events generated by the datagrid
component while an update is being performed.  For example, I have an
editable datagrid into which numeric values can be entered.  When the
user edits a cell and presses enter, or otherwise clicks off the line, a
database table is updated with the data (via a remote object call) on
the line on which the cell was edited.  During the update, I want to
prevent the user from inputting any data into other cells.  I have found
that, by repeatedly hitting enter after editing a cell, and before the
update is complete, the screen freezes.  Worse yet, if I repeatedly edit
a cell and hit enter before the update is complete, the screen freezes
and data on a line that has an error will be updated.  Can you give me
an example of how to handle this situation?  

 

I will appreciate any help.

 

Dee A. Chilcoat

Enterprise Web Application Development

University of California San Diego

[EMAIL PROTECTED]

(858) 534-0719



[flexcoders] Re: Enable / Disable Flex Menu Items Programmatically using AS 3.0

2008-06-03 Thread valdhor
OK, this is fairly buggy but it does show you can gray out a menu item
from actionscript (Check the "Down" submenu item after clicking the
"Lock / Unlock" menu item). I will leave the bug fixes and extras to you
:-)...


http://www.adobe.com/2006/mxml";
layout="absolute"
 creationComplete="onComplete(event)">
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 








[flexcoders] Re: Enable / Disable Flex Menu Items Programmatically using AS 3.0

2008-06-03 Thread valdhor
OK, this is fairly buggy but it does show you can gray out a menu item
from actionscript (Check the "Down" submenu item after clicking the
"Lock / Unlock" menu item). I will leave the bug fixes and extras to you
:-)...


http://www.adobe.com/2006/mxml";
layout="absolute"
 creationComplete="onComplete(event)">
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 








[flexcoders] Re: Enable / Disable Flex Menu Items Programmatically using AS 3.0

2008-06-03 Thread bc24fl
No it doesn't work.  I don't get an error but when I trace to look at
the myMenuData enabled attribute is still set to "true".


--- In flexcoders@yahoogroups.com, "Tracy Spratt" <[EMAIL PROTECTED]> wrote:
>
> This won't work:
> 
> myMenuData.menuitem.(@id=="menuDown")[EMAIL PROTECTED] = "false";
> 
> You need to use the attribute syntax as in my example.
> 
>  
> 
> Tract
> 
> 
> 
> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
> Behalf Of bc24fl
> Sent: Tuesday, June 03, 2008 10:52 AM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Re: Enable / Disable Flex Menu Items
> Programmatically using AS 3.0
> 
>  
> 
> Fair enough. Here is the code:
> 
> The menu is created using:
> 
> 
> public var myMenu:Menu;
> //myMenu is globally created
> 
> var pt:Point = new Point(event.localX, event.localY);
> 
> myMenu = Menu.createMenu(null, myMenuData, false); 
> 
> pt = event.target.localToGlobal(pt);
> 
> myMenu.labelField="@label";
> 
> myMenu.show(pt.x, pt.y);
> 
> =
> 
> After this I add a few event handlers specific to the menu 
> 
> Then I add a switch statement to test what item was clicked. When the
> item "Lock / Unlock" is selected I ouput an Alert to make sure It is
> working correctly. Directly after the Alert I run the following:
> 
> ===
> myMenuData.menuitem.(@id=="menuDown")[EMAIL PROTECTED] = "false";
> 
> // I ALSO TRIED
> 
> myMenu.dataDescriptor.setEnabled(myMenuData.menuDrill.menuDown[0],false)
> ;
> 
> ===
> 
> The data is statically defined in mxml like so:
> =
> 
> 
> 
> 
>  enabled="true"/>
>  enabled="true"/>
> 
> 
> 
>  
>  
> 
> 
> ===
> 
> I hope this is enough info. 
> 
> If someone has another example using a different data source please
> post. I don't have to use an XML formatted data. 
> 
> Thanks for the help.
> 
> 
> 
> --- In flexcoders@yahoogroups.com 
> , "Michael Schmalle"
>  wrote:
> >
> > Hi,
> > 
> > Without looking at your exact dataProvider with a simple Application,
> I
> > can't help much.
> > 
> > I got this to work yesterday using @enabled = false on the node.
> > 
> > But the ex4 implementation various on 'WHERE' you are trying to set
> the
> > enabled of the node.
> > 
> > Can you post a simple mxml Application?
> > 
> > Mike
> > 
> > On Tue, Jun 3, 2008 at 10:21 AM, Andrew Price <
> > andrew.price@> wrote:
> > 
> > > I am new to flex myself but is it not just.
> > >
> > >
> > >
> > >
> > >
> > > menuDown.enabled="true"
> > >
> > >
> > >
> > > or
> > >
> > >
> > >
> > > menuDown.enabled="fasle"
> > >
> > >
> > >
> > >
> > >
> > > -Original Message-
> > > *From:* flexcoders@yahoogroups.com
>  
> [mailto:flexcoders@yahoogroups.com 
> ] *On
> > > Behalf Of *bc24fl
> > > *Sent:* 03 June 2008 14:56
> > > *To:* flexcoders@yahoogroups.com
>  
> > > *Subject:* [flexcoders] Re: Enable / Disable Flex Menu Items
> > > Programmatically using AS 3.0
> > >
> > >
> > >
> > > I'm really struggling for help. We have done everything to try and
> > > get a solution to this problem including:
> > >
> > > 1. Posting on public forums / mailing lists
> > > 2. Purchased books on AS3 and Flex
> > > 3. Signed up for a year subscription to Lynda.com
> > > 4. Purchased support from experts-exchange.com
> > > 5. Purchased support directly from Adobe where supposedly it's 3 day
> > > response (no resolution) and we have received no response for a week
> > > (business days).
> > >
> > > What in the world am I doing wrong? This question doesn't appear to
> > > be rocket science as I've done this (enable/disable menu items) in
> > > many other programming languages.
> > >
> > > As you can see I have exhausted every (that I know of) resource.
> What
> > > else am I to do? My employer is upset and now considering dropping
> > > the language altogether and I don't want that.
> > >
> > > Any advice would BE MUCH APPRECIATED.
> > >
> > > End rant.
> > >
> > > --- In flexcoders@yahoogroups.com
>   ,
> "bc24fl"
> > >  wrote:
> > > >
> > > > I have the following XML data defined in my app:
> > > >
> > > > =
> > > > 
> > > > 
> > > > 
> > > > 
> > > >  > > > enabled="true"/>
> > > >  > > > enabled="true"/>
> > > > 
> > > > 
> > > >  > > toggled="false"/>
> > > > 
> > > > 
> > > > 
> > > > 
> > > > ===
> > > >
> > > > I can statically disable one of the items by setting
> enabled="false",
> > > > however I need to disable the item by using Action Script 3.0.
> > > >
> > > > I've tried using dataDescriptor like so but it does not work:
> > > >
> > > > ===
> > > >
> myMenu.dataDescriptor.setEnabled(myMenuData.menuDrill.menuDown,false);
> > > > ===
> > > >
> > > > I've posted this on a few forums and haven't received

[flexcoders] Re: Enable / Disable Flex Menu Items Programmatically using AS 3.0

2008-06-03 Thread valdhor
I just tried this:

myMenuData..menuitem.(attribute("id")=="menuDown")[EMAIL PROTECTED] = false;

and it worked - The sub menu item "Down" was grayed out; So Tracy is
correct.


--- In flexcoders@yahoogroups.com, "Tracy Spratt" <[EMAIL PROTECTED]> wrote:
>
> This won't work:
> 
> myMenuData.menuitem.(@id=="menuDown")[EMAIL PROTECTED] = "false";
> 
> You need to use the attribute syntax as in my example.
> 
>  
> 
> Tract
> 
> 
> 
> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
> Behalf Of bc24fl
> Sent: Tuesday, June 03, 2008 10:52 AM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Re: Enable / Disable Flex Menu Items
> Programmatically using AS 3.0
> 
>  
> 
> Fair enough. Here is the code:
> 
> The menu is created using:
> 
> 
> public var myMenu:Menu;
> //myMenu is globally created
> 
> var pt:Point = new Point(event.localX, event.localY);
> 
> myMenu = Menu.createMenu(null, myMenuData, false); 
> 
> pt = event.target.localToGlobal(pt);
> 
> myMenu.labelField="@label";
> 
> myMenu.show(pt.x, pt.y);
> 
> =
> 
> After this I add a few event handlers specific to the menu 
> 
> Then I add a switch statement to test what item was clicked. When the
> item "Lock / Unlock" is selected I ouput an Alert to make sure It is
> working correctly. Directly after the Alert I run the following:
> 
> ===
> myMenuData.menuitem.(@id=="menuDown")[EMAIL PROTECTED] = "false";
> 
> // I ALSO TRIED
> 
> myMenu.dataDescriptor.setEnabled(myMenuData.menuDrill.menuDown[0],false)
> ;
> 
> ===
> 
> The data is statically defined in mxml like so:
> =
> 
> 
> 
> 
>  enabled="true"/>
>  enabled="true"/>
> 
> 
> 
>  
>  
> 
> 
> ===
> 
> I hope this is enough info. 
> 
> If someone has another example using a different data source please
> post. I don't have to use an XML formatted data. 
> 
> Thanks for the help.
> 
> 
> 
> --- In flexcoders@yahoogroups.com 
> , "Michael Schmalle"
>  wrote:
> >
> > Hi,
> > 
> > Without looking at your exact dataProvider with a simple Application,
> I
> > can't help much.
> > 
> > I got this to work yesterday using @enabled = false on the node.
> > 
> > But the ex4 implementation various on 'WHERE' you are trying to set
> the
> > enabled of the node.
> > 
> > Can you post a simple mxml Application?
> > 
> > Mike
> > 
> > On Tue, Jun 3, 2008 at 10:21 AM, Andrew Price <
> > andrew.price@> wrote:
> > 
> > > I am new to flex myself but is it not just.
> > >
> > >
> > >
> > >
> > >
> > > menuDown.enabled="true"
> > >
> > >
> > >
> > > or
> > >
> > >
> > >
> > > menuDown.enabled="fasle"
> > >
> > >
> > >
> > >
> > >
> > > -Original Message-
> > > *From:* flexcoders@yahoogroups.com
>  
> [mailto:flexcoders@yahoogroups.com 
> ] *On
> > > Behalf Of *bc24fl
> > > *Sent:* 03 June 2008 14:56
> > > *To:* flexcoders@yahoogroups.com
>  
> > > *Subject:* [flexcoders] Re: Enable / Disable Flex Menu Items
> > > Programmatically using AS 3.0
> > >
> > >
> > >
> > > I'm really struggling for help. We have done everything to try and
> > > get a solution to this problem including:
> > >
> > > 1. Posting on public forums / mailing lists
> > > 2. Purchased books on AS3 and Flex
> > > 3. Signed up for a year subscription to Lynda.com
> > > 4. Purchased support from experts-exchange.com
> > > 5. Purchased support directly from Adobe where supposedly it's 3 day
> > > response (no resolution) and we have received no response for a week
> > > (business days).
> > >
> > > What in the world am I doing wrong? This question doesn't appear to
> > > be rocket science as I've done this (enable/disable menu items) in
> > > many other programming languages.
> > >
> > > As you can see I have exhausted every (that I know of) resource.
> What
> > > else am I to do? My employer is upset and now considering dropping
> > > the language altogether and I don't want that.
> > >
> > > Any advice would BE MUCH APPRECIATED.
> > >
> > > End rant.
> > >
> > > --- In flexcoders@yahoogroups.com
>   ,
> "bc24fl"
> > >  wrote:
> > > >
> > > > I have the following XML data defined in my app:
> > > >
> > > > =
> > > > 
> > > > 
> > > > 
> > > > 
> > > >  > > > enabled="true"/>
> > > >  > > > enabled="true"/>
> > > > 
> > > > 
> > > >  > > toggled="false"/>
> > > > 
> > > > 
> > > > 
> > > > 
> > > > ===
> > > >
> > > > I can statically disable one of the items by setting
> enabled="false",
> > > > however I need to disable the item by using Action Script 3.0.
> > > >
> > > > I've tried using dataDescriptor like so but it does not work:
> > > >
> > > > ===
> > > >
> myMenu.dataDescriptor.setEnabled(myMenuData.menuDrill.menuDown,false);
> > > > ===
> > > >
> > > > I've

[flexcoders] Re: Enable / Disable Flex Menu Items Programmatically using AS 3.0

2008-06-03 Thread bc24fl
Ok just fixed that and tried all 3 examples provided by users and
still doesn't work  =( .

Does anyone have an example using flex3/as3?  

--- In flexcoders@yahoogroups.com, "valdhor" <[EMAIL PROTECTED]> wrote:
>
> Well, something pops out at me immediately as I look at your XML - it
> is not well formed. You cannot have stray < or > symbols inside your
> XML tags - these have to be encoded (See
> http://articles.techrepublic.com.com/5100-10878_11-5032714.html). In
> your case you have:
> 
> 
> 
> This should be:
> 
> 
> 
> --- In flexcoders@yahoogroups.com, "bc24fl"  wrote:
> >
> > Fair enough.  Here is the code:
> > 
> > The menu is created using:
> > 
> > 
> > public  var myMenu:Menu;
> > //myMenu is globally created
> > 
> > 
> > var pt:Point = new Point(event.localX, event.localY);
> > 
> > myMenu = Menu.createMenu(null, myMenuData, false); 
> >   
> > pt = event.target.localToGlobal(pt);
> > 
> > myMenu.labelField="@label";
> > 
> > myMenu.show(pt.x, pt.y);
> > 
> > =
> > 
> > After this I add a few event handlers specific to the menu 
> > 
> > 
> > Then I add a switch statement to test what item was clicked.  When the
> > item "Lock / Unlock" is selected I ouput an Alert to make sure It is
> > working correctly.  Directly after the Alert I run the following:
> > 
> > ===
> > myMenuData.menuitem.(@id=="menuDown")[EMAIL PROTECTED] = "false";
> > 
> > // I ALSO TRIED
> > 
> >
>
myMenu.dataDescriptor.setEnabled(myMenuData.menuDrill.menuDown[0],false);
> > 
> > ===
> > 
> > 
> > The data is statically defined in mxml like so:
> > =
> > 
> > 
> > 
> > 
> >  > enabled="true"/>
> >  > enabled="true"/>
> > 
> > 
> >  toggled="false"/>
> >
> >   
> > 
> > 
> > ===
> > 
> > I hope this is enough info.  
> > 
> > If someone has another example using a different data source please
> > post.  I don't have to use an XML formatted data.  
> > 
> > Thanks for the help.
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > --- In flexcoders@yahoogroups.com, "Michael Schmalle"
> >  wrote:
> > >
> > > Hi,
> > > 
> > > Without looking at your exact dataProvider with a simple
> Application, I
> > > can't help much.
> > > 
> > > I got this to work yesterday using @enabled = false on the node.
> > > 
> > > But the ex4 implementation various on 'WHERE' you are trying to
> set the
> > > enabled of the node.
> > > 
> > > Can you post a simple mxml Application?
> > > 
> > > Mike
> > > 
> > > On Tue, Jun 3, 2008 at 10:21 AM, Andrew Price <
> > > andrew.price@> wrote:
> > > 
> > > >I am new to flex myself but is it not just.
> > > >
> > > >
> > > >
> > > >
> > > >
> > > > menuDown.enabled="true"
> > > >
> > > >
> > > >
> > > > or
> > > >
> > > >
> > > >
> > > > menuDown.enabled="fasle"
> > > >
> > > >
> > > >
> > > >
> > > >
> > > > -Original Message-
> > > > *From:* flexcoders@yahoogroups.com
> > [mailto:[EMAIL PROTECTED] *On
> > > > Behalf Of *bc24fl
> > > > *Sent:* 03 June 2008 14:56
> > > > *To:* flexcoders@yahoogroups.com
> > > > *Subject:* [flexcoders] Re: Enable / Disable Flex Menu Items
> > > > Programmatically using AS 3.0
> > > >
> > > >
> > > >
> > > > I'm really struggling for help. We have done everything to try and
> > > > get a solution to this problem including:
> > > >
> > > > 1. Posting on public forums / mailing lists
> > > > 2. Purchased books on AS3 and Flex
> > > > 3. Signed up for a year subscription to Lynda.com
> > > > 4. Purchased support from experts-exchange.com
> > > > 5. Purchased support directly from Adobe where supposedly it's
3 day
> > > > response (no resolution) and we have received no response for
a week
> > > > (business days).
> > > >
> > > > What in the world am I doing wrong? This question doesn't
appear to
> > > > be rocket science as I've done this (enable/disable menu items) in
> > > > many other programming languages.
> > > >
> > > > As you can see I have exhausted every (that I know of) resource.
> What
> > > > else am I to do? My employer is upset and now considering dropping
> > > > the language altogether and I don't want that.
> > > >
> > > > Any advice would BE MUCH APPRECIATED.
> > > >
> > > > End rant.
> > > >
> > > > --- In flexcoders@yahoogroups.com ,
> > "bc24fl"
> > > >  wrote:
> > > > >
> > > > > I have the following XML data defined in my app:
> > > > >
> > > > > =
> > > > > 
> > > > > 
> > > > > 
> > > > > 
> > > > >  > > > > enabled="true"/>
> > > > >  > > > > enabled="true"/>
> > > > > 
> > > > > 
> > > > >  > > > toggled="false"/>
> > > > > 
> > > > > 
> > > > > 
> > > > > 
> > > > > ===
> > > > >
> > > > > I can statically disable

Re: [flexcoders] Anyone know how to reveal the functions in namespaces like c++?

2008-06-03 Thread Daniel Freiman
I'm not sure about the Flex 4 part, but here's how you get Flex Builder to
recognize Flash Player 10.  I imagine it should be a similar edit for flex
4.

http://opensource.adobe.com/wiki/display/flexsdk/Targeting+Flash+Player+10+Beta+with+Flex+SDK+3.0.x

- Daniel Freiman

On Tue, Jun 3, 2008 at 11:14 AM, Sherif Abdou <[EMAIL PROTECTED]> wrote:

>
> I am using the Flex 4 sdk and Flash Player 10 and almost all the new api
> has a flash10 namespace. in C++ you could do std::(get code hints)
> In flex is there a way to do flash10:: and see everything instead of having
> to read the api?
>
>  
>


[flexcoders] Saving BMPs

2008-06-03 Thread cavi21
Hello, like Isaid in another post, I'm doing a test application that capture an 
Bitmap with a 
Webcam, and then store it in the disk. But the JPEGEncoder takes so long to 
encode, so i 
made a C# mini-program to do it. The problem now is how can I save de image in 
a BMP file 
format (1600x1200) in the disk??

thanks for your time, and attention



Re: [flexcoders] Re: Calling a REST webservice from Flex

2008-06-03 Thread Daniel Freiman
As I understand it cross-domain files also need "site-control" and
"allow-http-request-headers-from" tags with the newest version of the
player.

- Daniel Freiman

On Mon, Jun 2, 2008 at 7:15 AM, javed786pk <[EMAIL PROTECTED]> wrote:

>   J,
> I already have place crossdomain.xml is my root directory. Here are
> conents of crossdomain.xml
>
> 
>
>  "http://www.macromedia.com/xml/dtds/cross-domain-policy.dtd";>
>
> 
>
> 
>
> 
>
> but i am still getting the error.Any clue?
> -Muhammad
>
> --- In flexcoders@yahoogroups.com , "Josh
> McDonald" <[EMAIL PROTECTED]> wrote:
> >
> > If you get a security exception, it usually means you need a
> crossdomain.xml
> > file in the root directory of your server. Google knows all about
> this :)
> >
> > On Mon, Jun 2, 2008 at 7:05 PM, javed786pk <[EMAIL PROTECTED]> wrote:
> >
> > > J,
> > > Can you Kindly some sample Code(Flex3)that can call the webserivce.
> > > Actually i tried to use the  but i am getting security
> > > exceptions . Is there any configuration that needs to be made @ flex
> > > side to overcome these security issues?
> > >
> > >
> > > --- In flexcoders@yahoogroups.com 
> > >  40yahoogroups.com>,
> "Josh
> > > McDonald"  wrote:
> > > >
> > > > We use SOAP all the time from flex 3. You won't have a problem
> > > because SOAP
> > > > over http is always GET and POST
> > > >
> > > > Look at  for more info.
> > > >
> > > > -J
> > > >
> > > > On Mon, Jun 2, 2008 at 5:42 PM, javed786pk  wrote:
> > > >
> > > > > Did anyone try calling a simple SOAP service from Flex3? I will
> > > > > appreciate if some can share the code.My SOAP web service is
> deployed
> > > > > on my Local IIS server. Do we need any Flex configuration to
> run the
> > > > > service successfully?
> > > > >
> > > > >
> > > > > -Muhammad
> > > > >
> > > > > --- In flexcoders@yahoogroups.com 
> 
> > > 40yahoogroups.com>,
> > > "Josh
> > > > > McDonald"  wrote:
> > > > > >
> > > > > > Well the idea is you run a proxy on your server, make
> non-rest calls
> > > > > to it
> > > > > > with GET and POST, or Data Services, and the proxy is the
> one that
> > > > > makes the
> > > > > > GET / POST / PUT / DELETE rest calls and then returns the result
> > > to your
> > > > > > Flex program. I think LCDS / BlazeDS has some stuff in it to
> help
> > > > > with that,
> > > > > > but I don't use it because we don't use rest so I don't know the
> > > > > details.
> > > > > >
> > > > > > -J
> > > > > >
> > > > > > On Mon, Jun 2, 2008 at 4:47 PM, javed786pk  wrote:
> > > > > >
> > > > > > > J,
> > > > > > > I am sorry but i did not understand the proxy part of your
> > > > > > > response.Can you kindly elaborate it for me a little more?
> > > > > > >
> > > > > > > -Muhammad
> > > > > > >
> > > > > > > --- In flexcoders@yahoogroups.com
> 
> > >  > >
> > > > > 40yahoogroups.com>,
> > > > > "Josh
> > > > > > > McDonald"  wrote:
> > > > > > > >
> > > > > > > > It's a limitation of the browser plugin API
> unfortunately. You
> > > > > can proxy
> > > > > > > > GET/POST requests via a server that makes the correct
> requests
> > > > > on your
> > > > > > > > behalf, but that's about it.
> > > > > > > >
> > > > > > > > -J
> > > > > > > >
> > > > > > > > On Mon, Jun 2, 2008 at 4:32 PM, javed786pk 
> wrote:
> > > > > > > >
> > > > > > > > > thanks for quick response. Is there any workaround to make
> > > PUT and
> > > > > > > > > DELETE Requests or its simply limitations of Flex3?
> > > > > > > > >
> > > > > > > > > Muhammad Javed
> > > > > > > > >
> > > > > > > > > --- In
> flexcoders@yahoogroups.com  40yahoogroups.com>
> > > 
> > > > >  > > > >
> > > > > > > 40yahoogroups.com>,
> > > > > > > "Josh
> > > > > > > > > McDonald"  wrote:
> > > > > > > > > >
> > > > > > > > > > You can only make GET and POST requests from Flex.
> > > > > > > > > >
> > > > > > > > > > -J
> > > > > > > > > >
> > > > > > > > > > On Mon, Jun 2, 2008 at 4:21 PM, javed786pk 
> > > wrote:
> > > > > > > > > >
> > > > > > > > > > > I have developed a REST web service in WCF (Windows
> > > > > communication
> > > > > > > > > > > Foundation. .NET Technology). I want to use that web
> > > service
> > > > > > > in Flex
> > > > > > > > > > > 3. Can someone let me know is REST calls in supported
> > > in FLex3
> > > > > > > or not?
> > > > > > > > > > >
> > > > > > > > > > > Muhammad
> > > > > > > > > > >
> > > > > > > > > > >
> > > > > > > > > > >
> > > > > > > > > >
> > > > > > > > > >
> > > > > > > > > >
> > > > > > > > > > --
> > > > > > > > > > "Therefore, send not to know For whom the bell tolls. It
> > > > > tolls for
> > > > > > > > > thee."
> > > > > > > > > >
> > > > > > > > > > :: Josh 'G-Funk' McDonald
> > > > > > > > > > :: 0437 221 380 :: josh@
> > > > > > > > > >
> > > > > > > > >
> > > > > > > > >
> > > > > > > > >
> > > > > > > >
> > > > > > > >
> > > > > > > >
> > > > > > > > --
> > > > > > > > "Therefore, send not to know For whom the bell tolls. It
> > > tolls for
> > > > > > > thee."
> > > > > > > >
> > > > > > > > :: Josh 'G-Funk' 

RE: [flexcoders] Re: Enable / Disable Flex Menu Items Programmatically using AS 3.0

2008-06-03 Thread Tracy Spratt
This won't work:

myMenuData.menuitem.(@id=="menuDown")[EMAIL PROTECTED] = "false";

You need to use the attribute syntax as in my example.

 

Tract



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of bc24fl
Sent: Tuesday, June 03, 2008 10:52 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Enable / Disable Flex Menu Items
Programmatically using AS 3.0

 

Fair enough. Here is the code:

The menu is created using:


public var myMenu:Menu;
//myMenu is globally created

var pt:Point = new Point(event.localX, event.localY);

myMenu = Menu.createMenu(null, myMenuData, false); 

pt = event.target.localToGlobal(pt);

myMenu.labelField="@label";

myMenu.show(pt.x, pt.y);

=

After this I add a few event handlers specific to the menu 

Then I add a switch statement to test what item was clicked. When the
item "Lock / Unlock" is selected I ouput an Alert to make sure It is
working correctly. Directly after the Alert I run the following:

===
myMenuData.menuitem.(@id=="menuDown")[EMAIL PROTECTED] = "false";

// I ALSO TRIED

myMenu.dataDescriptor.setEnabled(myMenuData.menuDrill.menuDown[0],false)
;

===

The data is statically defined in mxml like so:
=









 
 


===

I hope this is enough info. 

If someone has another example using a different data source please
post. I don't have to use an XML formatted data. 

Thanks for the help.



--- In flexcoders@yahoogroups.com 
, "Michael Schmalle"
<[EMAIL PROTECTED]> wrote:
>
> Hi,
> 
> Without looking at your exact dataProvider with a simple Application,
I
> can't help much.
> 
> I got this to work yesterday using @enabled = false on the node.
> 
> But the ex4 implementation various on 'WHERE' you are trying to set
the
> enabled of the node.
> 
> Can you post a simple mxml Application?
> 
> Mike
> 
> On Tue, Jun 3, 2008 at 10:21 AM, Andrew Price <
> [EMAIL PROTECTED]> wrote:
> 
> > I am new to flex myself but is it not just.
> >
> >
> >
> >
> >
> > menuDown.enabled="true"
> >
> >
> >
> > or
> >
> >
> >
> > menuDown.enabled="fasle"
> >
> >
> >
> >
> >
> > -Original Message-
> > *From:* flexcoders@yahoogroups.com
 
[mailto:flexcoders@yahoogroups.com 
] *On
> > Behalf Of *bc24fl
> > *Sent:* 03 June 2008 14:56
> > *To:* flexcoders@yahoogroups.com
 
> > *Subject:* [flexcoders] Re: Enable / Disable Flex Menu Items
> > Programmatically using AS 3.0
> >
> >
> >
> > I'm really struggling for help. We have done everything to try and
> > get a solution to this problem including:
> >
> > 1. Posting on public forums / mailing lists
> > 2. Purchased books on AS3 and Flex
> > 3. Signed up for a year subscription to Lynda.com
> > 4. Purchased support from experts-exchange.com
> > 5. Purchased support directly from Adobe where supposedly it's 3 day
> > response (no resolution) and we have received no response for a week
> > (business days).
> >
> > What in the world am I doing wrong? This question doesn't appear to
> > be rocket science as I've done this (enable/disable menu items) in
> > many other programming languages.
> >
> > As you can see I have exhausted every (that I know of) resource.
What
> > else am I to do? My employer is upset and now considering dropping
> > the language altogether and I don't want that.
> >
> > Any advice would BE MUCH APPRECIATED.
> >
> > End rant.
> >
> > --- In flexcoders@yahoogroups.com
  ,
"bc24fl"
> >  wrote:
> > >
> > > I have the following XML data defined in my app:
> > >
> > > =
> > > 
> > > 
> > > 
> > > 
> > >  > > enabled="true"/>
> > >  > > enabled="true"/>
> > > 
> > > 
> > >  > toggled="false"/>
> > > 
> > > 
> > > 
> > > 
> > > ===
> > >
> > > I can statically disable one of the items by setting
enabled="false",
> > > however I need to disable the item by using Action Script 3.0.
> > >
> > > I've tried using dataDescriptor like so but it does not work:
> > >
> > > ===
> > >
myMenu.dataDescriptor.setEnabled(myMenuData.menuDrill.menuDown,false);
> > > ===
> > >
> > > I've posted this on a few forums and haven't received a solution.
I
> > > hope I can find one here.
> > >
> > > Any help would be much appreciated.
> > >
> > > Thanks.
> > >
> >
> > 
> >
> 
> 
> 
> -- 
> Teoti Graphix, LLC
> http://www.teotigraphix.com  
> 
> Teoti Graphix Blog
> http://www.blog.teotigraphix.com  
> 
> You can find more by solving the problem then by 'asking the
question'.
>

 



Re: [flexcoders] programmatically using RemoteObject

2008-06-03 Thread Douglas Knudsen
dunno why you'd want to, using a framework you wouldn't have very many
instances of RO around, eh?  Anyhoo, you will need to use the non-mxml
version
http://livedocs.adobe.com/flex/3/langref/mx/rpc/remoting/RemoteObject.html

DK

On Tue, Jun 3, 2008 at 11:42 AM, blc187 <[EMAIL PROTECTED]> wrote:

>   I'm trying to move some code out of my MXML into AS classes but having
> trouble with the RemoteObject.
> The following code:
>
> 
> 
> 
>
> How do I go about setting up the remoteObject method programmatically?
>
>  
>



-- 
Douglas Knudsen
http://www.cubicleman.com
this is my signature, like it?


Re: [flexcoders] States - what's under the hood?

2008-06-03 Thread Daniel Freiman
I am by no means a states expert, but if you ever want to know what's going
on within an MXML you can add the compiler flag
"-keep-generated-actionscript=true" and look at the source code itself that
placed in the "generated" folder.  It helped me a lot on understanding one
project where I used states.

- Daniel Freiman

On Mon, Jun 2, 2008 at 7:20 PM, Josh McDonald <[EMAIL PROTECTED]> wrote:

>   Hey guys,
>
> Just wondering if somebody can give me some info or a pointer to an article
> or two about what's really going on under the hood with Flex's state system?
> What's created at createChildren(), how things are built on state change,
> stuff like that?
>
> Cheers,
> -J
>
> --
> "Therefore, send not to know For whom the bell tolls. It tolls for thee."
>
> :: Josh 'G-Funk' McDonald
> :: 0437 221 380 :: [EMAIL PROTECTED]
>  
>


[flexcoders] Re: confusion with events

2008-06-03 Thread fb6668
Never mind, I worked it out. I used my model locator:

in SmallGraph:
model.assets.addEventListener("ASSET_DATA_CHANGE_VIEW",listen);
public function listen(e:Event):void
{
Alert.show("asset event");
}

then in the model:
public function changeAssetView()
{
dispatchEvent(new Event('ASSET_DATA_CHANGE_VIEW'));
}

This seems to work!

--- In flexcoders@yahoogroups.com, "fb6668" <[EMAIL PROTECTED]> wrote:
>
> I have a question about how events are used.
> 
> I have a component which has the following sub-components:
> 
> 
>   
>   
> 
> 
> The AssetGraphPanel itself contains components:
> 
>  
>   
> 
> 
> 
> 
> These graphs need to change when a button inside the AssetAccordion is
> clicked, by calling a function in SmallGraph called 'updateChart()'.
> There will be other things that should also trigger this function to
> be called, from other components.
> So, how do I add an event listener/dispatcher so that the SmallGraph
> can hear it whereever in the application it was fired from?
> Seems to me I want the opposite of bubbling?
> 
> Thanks for your patience.
>




Re: RES: [flexcoders] Using CSS with custom item renderers

2008-06-03 Thread Amy
--- In flexcoders@yahoogroups.com, "Michael Schmalle" 
<[EMAIL PROTECTED]> wrote:
>
> The solution
> 
> 
>  xmlns:mx="http://www.adobe.com/2006/mxml";
> width="200" height="50">
> 
> 
> 
> 
> 
> 
> 
> 

I meant a CSS solution. I could possibly create a classFactory and 
pass in the styleName in that, but that's not nearly as clean as just 
using the TypeSelector.  I could also pass in a reference to the 
Application and/or its styles and have the component look at that to 
see if there is a style that matches the ClassName, but that's sort 
of icky too.

Why is the List component set up to break this?

Thanks;

Amy



RE: [flexcoders] Re: Enable / Disable Flex Menu Items Programmatically using AS 3.0

2008-06-03 Thread Tracy Spratt
What is null?

Tracy

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of bc24fl
Sent: Tuesday, June 03, 2008 11:15 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Enable / Disable Flex Menu Items
Programmatically using AS 3.0

 

I just tried that and get an error:

"Cannot access a property or method of a null object reference"

Thanks for helping.

--- In flexcoders@yahoogroups.com 
, "Tracy Spratt" <[EMAIL PROTECTED]> wrote:
>
> Ah, no I looked at the history and that was a different thread,
probably
> confused others as well.
> 
> 
> 
> Ok, try this:
> 
> var xmlMenuItem:XML =
> myMenuData..menuItem.(attribute("id")=="menuDown")[0];
> 
> [EMAIL PROTECTED] = false;
> 
> 
> 
> Tracy
> 
> 
> 
> 
> 
> From: flexcoders@yahoogroups.com 
[mailto:flexcoders@yahoogroups.com 
] On
> Behalf Of bc24fl
> Sent: Tuesday, June 03, 2008 9:56 AM
> To: flexcoders@yahoogroups.com  
> Subject: [flexcoders] Re: Enable / Disable Flex Menu Items
> Programmatically using AS 3.0
> 
> 
> 
> I'm really struggling for help. We have done everything to try and
> get a solution to this problem including:
> 
> 1. Posting on public forums / mailing lists
> 2. Purchased books on AS3 and Flex
> 3. Signed up for a year subscription to Lynda.com
> 4. Purchased support from experts-exchange.com
> 5. Purchased support directly from Adobe where supposedly it's 3 day
> response (no resolution) and we have received no response for a week
> (business days).
> 
> What in the world am I doing wrong? This question doesn't appear to
> be rocket science as I've done this (enable/disable menu items) in
> many other programming languages. 
> 
> As you can see I have exhausted every (that I know of) resource. What
> else am I to do? My employer is upset and now considering dropping
> the language altogether and I don't want that. 
> 
> Any advice would BE MUCH APPRECIATED. 
> 
> End rant.
> 
> --- In flexcoders@yahoogroups.com


> , "bc24fl"  wrote:
> >
> > I have the following XML data defined in my app:
> > 
> > =
> > 
> > 
> > 
> > 
> >  > enabled="true"/>
> >  > enabled="true"/>
> > 
> > 
> >  toggled="false"/>
> >  
> >  
> > 
> > 
> > ===
> > 
> > I can statically disable one of the items by setting
enabled="false",
> > however I need to disable the item by using Action Script 3.0. 
> > 
> > I've tried using dataDescriptor like so but it does not work:
> > 
> > ===
> >
myMenu.dataDescriptor.setEnabled(myMenuData.menuDrill.menuDown,false);
> > ===
> > 
> > I've posted this on a few forums and haven't received a solution. I
> > hope I can find one here.
> > 
> > Any help would be much appreciated.
> > 
> > Thanks.
> >
>

 



Re: [flexcoders] Accessing the sub-items of a Menu command

2008-06-03 Thread Daniel Freiman
First, does the sub menu exist when you are trying to access it?  I don't
think they're created until they are needed.  Otherwise, it looks the like
the best way is to get access to the item renderer which has a menu
property, although i'm not 100% sure that it's the correct menu that you are
looking for. We'll see.

- Daniel Freiman

On Mon, Jun 2, 2008 at 10:53 AM, Marty Pitt <[EMAIL PROTECTED]> wrote:

>   Hi Tracy
>
> Thanks for the reply.
>
> I'm not trying to access the XML of the data provider for the Menu, rather
> generated Menu instance itself.
>
> I can access the Menu instance of the top level object (the "file" menu),
> but not the sub-menu's beneath, also of type Menu.
>
> Anyone have any ideas?
>
>
> - Original Message 
> From: Tracy Spratt <[EMAIL PROTECTED]>
> To: flexcoders@yahoogroups.com
> Sent: Monday, June 2, 2008 3:44:14 PM
> Subject: RE: [flexcoders] Accessing the sub-items of a Menu command
>
>   var xmlMenuItem: XML = xml..menuItem. (attribute("label") == "Do
> Something")[0];
>
> Tracy
>  --
>
> *From:* [EMAIL PROTECTED] ups.com [mailto: [EMAIL PROTECTED] ups.com ]
> *On Behalf Of *Marty Pitt
> *Sent:* Monday, June 02, 2008 6:11 AM
> *To:* [EMAIL PROTECTED] ups.com
> *Subject:* [flexcoders] Accessing the sub-items of a Menu command
>
>
>
> Hi all.
>
> This is a stupid question, but I can't work it out!
>
> Given the following XML and code, how am I supposed to access the "Do
> Something" menu item that is created?
>
> var xml:XML = new XML(
> 
>  
>
>   
> 
> );
>
> var menuBar:MenuBar = new MenuBar();
> menuBar.dataProvide r = xml;
> menuBar.showRoot = false;
> menuBar.labelField = "@label"
>
>
>
> By making a call to menuBar.getMenuAt( 0) I get a reference to the "File"
> menu, returned as type Menu.
>
> Menu doesn't seem to expose either a collection of sub-items, or a
> getMenuAt() method.
>
> I'm stumped!
>
> Any help greatly appreciated.
>
> Cheers
>
> Marty
>
>
>
>
>  
>


[flexcoders] programmatically using RemoteObject

2008-06-03 Thread blc187
I'm trying to move some code out of my MXML into AS classes but having 
trouble with the RemoteObject.
The following code:





How do I go about setting up the remoteObject method programmatically?




[flexcoders] Re: Enable / Disable Flex Menu Items Programmatically using AS 3.0

2008-06-03 Thread valdhor
Well, something pops out at me immediately as I look at your XML - it
is not well formed. You cannot have stray < or > symbols inside your
XML tags - these have to be encoded (See
http://articles.techrepublic.com.com/5100-10878_11-5032714.html). In
your case you have:



This should be:



--- In flexcoders@yahoogroups.com, "bc24fl" <[EMAIL PROTECTED]> wrote:
>
> Fair enough.  Here is the code:
> 
> The menu is created using:
> 
> 
> public  var myMenu:Menu;
> //myMenu is globally created
> 
> 
> var pt:Point = new Point(event.localX, event.localY);
> 
> myMenu = Menu.createMenu(null, myMenuData, false); 
>   
> pt = event.target.localToGlobal(pt);
> 
> myMenu.labelField="@label";
> 
> myMenu.show(pt.x, pt.y);
> 
> =
> 
> After this I add a few event handlers specific to the menu 
> 
> 
> Then I add a switch statement to test what item was clicked.  When the
> item "Lock / Unlock" is selected I ouput an Alert to make sure It is
> working correctly.  Directly after the Alert I run the following:
> 
> ===
> myMenuData.menuitem.(@id=="menuDown")[EMAIL PROTECTED] = "false";
> 
> // I ALSO TRIED
>   
>
myMenu.dataDescriptor.setEnabled(myMenuData.menuDrill.menuDown[0],false);
>   
> ===
> 
> 
> The data is statically defined in mxml like so:
> =
> 
> 
> 
> 
>  enabled="true"/>
>  enabled="true"/>
> 
> 
> 
>
>   
> 
> 
> ===
> 
> I hope this is enough info.  
> 
> If someone has another example using a different data source please
> post.  I don't have to use an XML formatted data.  
> 
> Thanks for the help.
> 
> 
> 
> 
> 
> 
> 
> 
> 
> --- In flexcoders@yahoogroups.com, "Michael Schmalle"
>  wrote:
> >
> > Hi,
> > 
> > Without looking at your exact dataProvider with a simple
Application, I
> > can't help much.
> > 
> > I got this to work yesterday using @enabled = false on the node.
> > 
> > But the ex4 implementation various on 'WHERE' you are trying to
set the
> > enabled of the node.
> > 
> > Can you post a simple mxml Application?
> > 
> > Mike
> > 
> > On Tue, Jun 3, 2008 at 10:21 AM, Andrew Price <
> > andrew.price@> wrote:
> > 
> > >I am new to flex myself but is it not just.
> > >
> > >
> > >
> > >
> > >
> > > menuDown.enabled="true"
> > >
> > >
> > >
> > > or
> > >
> > >
> > >
> > > menuDown.enabled="fasle"
> > >
> > >
> > >
> > >
> > >
> > > -Original Message-
> > > *From:* flexcoders@yahoogroups.com
> [mailto:[EMAIL PROTECTED] *On
> > > Behalf Of *bc24fl
> > > *Sent:* 03 June 2008 14:56
> > > *To:* flexcoders@yahoogroups.com
> > > *Subject:* [flexcoders] Re: Enable / Disable Flex Menu Items
> > > Programmatically using AS 3.0
> > >
> > >
> > >
> > > I'm really struggling for help. We have done everything to try and
> > > get a solution to this problem including:
> > >
> > > 1. Posting on public forums / mailing lists
> > > 2. Purchased books on AS3 and Flex
> > > 3. Signed up for a year subscription to Lynda.com
> > > 4. Purchased support from experts-exchange.com
> > > 5. Purchased support directly from Adobe where supposedly it's 3 day
> > > response (no resolution) and we have received no response for a week
> > > (business days).
> > >
> > > What in the world am I doing wrong? This question doesn't appear to
> > > be rocket science as I've done this (enable/disable menu items) in
> > > many other programming languages.
> > >
> > > As you can see I have exhausted every (that I know of) resource.
What
> > > else am I to do? My employer is upset and now considering dropping
> > > the language altogether and I don't want that.
> > >
> > > Any advice would BE MUCH APPRECIATED.
> > >
> > > End rant.
> > >
> > > --- In flexcoders@yahoogroups.com ,
> "bc24fl"
> > >  wrote:
> > > >
> > > > I have the following XML data defined in my app:
> > > >
> > > > =
> > > > 
> > > > 
> > > > 
> > > > 
> > > >  > > > enabled="true"/>
> > > >  > > > enabled="true"/>
> > > > 
> > > > 
> > > >  > > toggled="false"/>
> > > > 
> > > > 
> > > > 
> > > > 
> > > > ===
> > > >
> > > > I can statically disable one of the items by setting
> enabled="false",
> > > > however I need to disable the item by using Action Script 3.0.
> > > >
> > > > I've tried using dataDescriptor like so but it does not work:
> > > >
> > > > ===
> > > >
> myMenu.dataDescriptor.setEnabled(myMenuData.menuDrill.menuDown,false);
> > > > ===
> > > >
> > > > I've posted this on a few forums and haven't received a
solution. I
> > > > hope I can find one here.
> > > >
> > > > Any help would be much appreciated.
> > > >
> > > > Thanks.
> > > >
> > >
> > >  
> > >
> > 
> > 
> > 
> > -- 
> > Teoti Graphix,

Re: [flexcoders] Anyone know how to reveal the functions in namespaces like c++?

2008-06-03 Thread Tom Chiverton
On Tuesday 03 Jun 2008, Sherif Abdou wrote:
>  I am using the Flex 4 sdk and Flash Player 10 and almost all the new api
> has a flash10 namespace. in C++ you could do std::(get code hints) In flex
> is there a way to do flash10:: and see everything instead of having to read
> the api?

I'm not sure Flex Builder has code hinting for the Flex 4 API.
You could see what xsd4mxml made of it...

-- 
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] confusion with events

2008-06-03 Thread fb6668
I have a question about how events are used.

I have a component which has the following sub-components:


  
  


The AssetGraphPanel itself contains components:







These graphs need to change when a button inside the AssetAccordion is
clicked, by calling a function in SmallGraph called 'updateChart()'.
There will be other things that should also trigger this function to
be called, from other components.
So, how do I add an event listener/dispatcher so that the SmallGraph
can hear it whereever in the application it was fired from?
Seems to me I want the opposite of bubbling?

Thanks for your patience.



[flexcoders] A simple apps to Save data by using WebServiceSimple - Security ERROR

2008-06-03 Thread flexawesome

I was trying to save my data by using WebServices, but I got the 
security error msg, I have no ideas about this. Both them are on the 
same server with same domain. ( I don't need the crossdomain.xml )

Can you take a look of this?
Thank you


=== Error Msg ===
http://www.privatepaste.com/4301yR9Ee9


=== Flex Code ===
http://www.privatepaste.com/02fFp2dQhl





[flexcoders] Re: Getting PropertyChangeEvent to work properly

2008-06-03 Thread valdhor
I had the same sort of problem and found that I forgot to set the
"bubbles" property of my custom event to true (It is false by default).


--- In flexcoders@yahoogroups.com, "superbokbok" <[EMAIL PROTECTED]> wrote:
>
> I'm building a simple app and trying to get the PropertyChangeEvent to
> work properly as an alternative to using an explicit eventDispatch call.
> I can't seem to get the updated variable to be recognized by the main
> apps component.
> 
> In my AS3 class I have set the class to [Bindable] so that all the
> properties can be bound to the appropriate controls in the main.mxml
> file. I've used this import to bring in the PropertyChangeEvent:
> import mx.events.PropertyChangeEvent;
> A timer fires from the main.mxml file and calls the setLastChecked
> function passing in a new Date object(new Date()) to trigger the update
> of the variable like this:
> 
> private function setLastChecked(value:Date):void
>  {
>  var oldValue:Object = _lastChecked;
>  _lastChecked = value;
> 
>  notifyPropertyChange("lastChecked", oldValue, value);
>  }
> 
> 
>  private function
> notifyPropertyChange(name:String,oldValue:Object,value:Object):void
>  {
>  if (value !== oldValue)
>  {
> 
> dispatchEvent(PropertyChangeEvent.createUpdateEvent(this, name,
> oldValue, value));
>  }
>  }
> 
> The variable "lastChecked" is bound to a textfield in the main.mxml file
> like so:
> 
>  text="{formatDate(subscriptionsList.selectedItem.lastChecked)}"/>
> which formats the data as a string to display the date.
> 
> The problem is that the variable is never updated on screen. I've been
> able to confirm that the event from the timer fires, triggers the
> notifyPropertyChange event but that event is never received from the
> Text component or received within the main.mxml app.
> Is there something I'm missing throughout this process or need to add to
> get the event recognized in the main app??!!
>




Re: [flexcoders] Using AdvancedDataGridRendererProvider for AdvancedDatagrid

2008-06-03 Thread Tom Chiverton
On Monday 02 Jun 2008, Adrian Gillette wrote:
> But I having a problem with trying to determine whether a cell in the
> advanced datagrid is the 1st child.  Does anyone know of a good solution?

You mean it's rendering the first row's first column ?


-- 
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: Enable / Disable Flex Menu Items Programmatically using AS 3.0

2008-06-03 Thread bc24fl
I just tried that and get an error:

"Cannot access a property or method of a null object reference"

Thanks for helping.

--- In flexcoders@yahoogroups.com, "Tracy Spratt" <[EMAIL PROTECTED]> wrote:
>
> Ah, no I looked at the history and that was a different thread, probably
> confused others as well.
> 
>  
> 
> Ok, try this:
> 
> var xmlMenuItem:XML =
> myMenuData..menuItem.(attribute("id")=="menuDown")[0];
> 
> [EMAIL PROTECTED] = false;
> 
>  
> 
> Tracy
> 
>  
> 
> 
> 
> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
> Behalf Of bc24fl
> Sent: Tuesday, June 03, 2008 9:56 AM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Re: Enable / Disable Flex Menu Items
> Programmatically using AS 3.0
> 
>  
> 
> I'm really struggling for help. We have done everything to try and
> get a solution to this problem including:
> 
> 1. Posting on public forums / mailing lists
> 2. Purchased books on AS3 and Flex
> 3. Signed up for a year subscription to Lynda.com
> 4. Purchased support from experts-exchange.com
> 5. Purchased support directly from Adobe where supposedly it's 3 day
> response (no resolution) and we have received no response for a week
> (business days).
> 
> What in the world am I doing wrong? This question doesn't appear to
> be rocket science as I've done this (enable/disable menu items) in
> many other programming languages. 
> 
> As you can see I have exhausted every (that I know of) resource. What
> else am I to do? My employer is upset and now considering dropping
> the language altogether and I don't want that. 
> 
> Any advice would BE MUCH APPRECIATED. 
> 
> End rant.
> 
> --- In flexcoders@yahoogroups.com 
> , "bc24fl"  wrote:
> >
> > I have the following XML data defined in my app:
> > 
> > =
> > 
> > 
> > 
> > 
> >  > enabled="true"/>
> >  > enabled="true"/>
> > 
> > 
> >  toggled="false"/>
> >  
> >  
> > 
> > 
> > ===
> > 
> > I can statically disable one of the items by setting enabled="false",
> > however I need to disable the item by using Action Script 3.0. 
> > 
> > I've tried using dataDescriptor like so but it does not work:
> > 
> > ===
> > myMenu.dataDescriptor.setEnabled(myMenuData.menuDrill.menuDown,false);
> > ===
> > 
> > I've posted this on a few forums and haven't received a solution. I
> > hope I can find one here.
> > 
> > Any help would be much appreciated.
> > 
> > Thanks.
> >
>




[flexcoders] Re: Enable / Disable Flex Menu Items Programmatically using AS 3.0

2008-06-03 Thread bc24fl
I posted a more detailed example with comments (plz see). BTW, I'm
using Flex 3 SDK.  I googled a solution for Flex 2 but it doesn't work
with Flex 3.  

Hey I don't want to be anonymous =).  My name is Irving.

Thanks.

--- In flexcoders@yahoogroups.com, "Andriy Panas" <[EMAIL PROTECTED]> wrote:
>
> Hi stranger bc24fl,
> 
>   Mike Schmalle had proposed you the exact solution, that we are
currently
> using within our project based on Flex 2 SDK to enable/ disable menu
items
> in MenuBar component.
> 
>I do not understand without looking at your code, what is going
on wrong
> with your MenuBar. Can you post a dummy sample of the code online to
> illustrate your problem?
> 
>   SWF with View source option enabled would be nice.
> 
> ps
>   Why do you post anonymously to this list, BTW? I would like to
reference
> you by your name ;)
> -- 
> --
> Med venlig hilsen / Best regards
> Andriy Panas
> [EMAIL PROTECTED]
> 
> On 03/06/2008, bc24fl <[EMAIL PROTECTED]> wrote:
> >
> >   I'm really struggling for help. We have done everything to try and
> > get a solution to this problem including:
> >
> > 1. Posting on public forums / mailing lists
> > 2. Purchased books on AS3 and Flex
> > 3. Signed up for a year subscription to Lynda.com
> > 4. Purchased support from experts-exchange.com
> > 5. Purchased support directly from Adobe where supposedly it's 3 day
> > response (no resolution) and we have received no response for a week
> > (business days).
> >
> > What in the world am I doing wrong? This question doesn't appear to
> > be rocket science as I've done this (enable/disable menu items) in
> > many other programming languages.
> >
> > As you can see I have exhausted every (that I know of) resource. What
> > else am I to do? My employer is upset and now considering dropping
> > the language altogether and I don't want that.
> >
> > Any advice would BE MUCH APPRECIATED.
> >
> > End rant.
> >
> >
> > --- In flexcoders@yahoogroups.com ,
"bc24fl"
> >  wrote:
> > >
> > > I have the following XML data defined in my app:
> > >
> > > =
> > > 
> > > 
> > > 
> > > 
> > >  > > enabled="true"/>
> > >  > > enabled="true"/>
> > > 
> > > 
> > >  > toggled="false"/>
> > > 
> > > 
> > > 
> > > 
> > > ===
> > >
> > > I can statically disable one of the items by setting
enabled="false",
> > > however I need to disable the item by using Action Script 3.0.
> > >
> > > I've tried using dataDescriptor like so but it does not work:
> > >
> > > ===
> > >
myMenu.dataDescriptor.setEnabled(myMenuData.menuDrill.menuDown,false);
> > > ===
> > >
> > > I've posted this on a few forums and haven't received a solution. I
> > > hope I can find one here.
> > >
> > > Any help would be much appreciated.
> > >
> > > Thanks.
> > >
> >
> >  
> >
>




[flexcoders] Re: Enable / Disable Flex Menu Items Programmatically using AS 3.0

2008-06-03 Thread bc24fl
No I can use any method.  If you can provide an example or link to a
documented example I'd really appreciate it.  The only requirements I
have is to display a menu to the user and be able to turn on and off
menu items using AS3.  

Any help much appreciated.

--- In flexcoders@yahoogroups.com, "Tracy Spratt" <[EMAIL PROTECTED]> wrote:
>
> Is this the thread where you are not able to use the normal method of
> doing this via the dataProvider, but must have some way to do it via the
> instantiated elements?  Because you are trying to automate unit testing
> or something?
> 
>  
> 
> Because programatically disabling a particular menu item is easy.  Just
> get a reference to the menu item node and set the enabled attribute.  Is
> that not acceptable to you?
> 
>  
> 
> Tracy
> 
>  
> 
> 
> 
> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
> Behalf Of bc24fl
> Sent: Tuesday, June 03, 2008 9:56 AM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Re: Enable / Disable Flex Menu Items
> Programmatically using AS 3.0
> 
>  
> 
> I'm really struggling for help. We have done everything to try and
> get a solution to this problem including:
> 
> 1. Posting on public forums / mailing lists
> 2. Purchased books on AS3 and Flex
> 3. Signed up for a year subscription to Lynda.com
> 4. Purchased support from experts-exchange.com
> 5. Purchased support directly from Adobe where supposedly it's 3 day
> response (no resolution) and we have received no response for a week
> (business days).
> 
> What in the world am I doing wrong? This question doesn't appear to
> be rocket science as I've done this (enable/disable menu items) in
> many other programming languages. 
> 
> As you can see I have exhausted every (that I know of) resource. What
> else am I to do? My employer is upset and now considering dropping
> the language altogether and I don't want that. 
> 
> Any advice would BE MUCH APPRECIATED. 
> 
> End rant.
> 
> --- In flexcoders@yahoogroups.com 
> , "bc24fl"  wrote:
> >
> > I have the following XML data defined in my app:
> > 
> > =
> > 
> > 
> > 
> > 
> >  > enabled="true"/>
> >  > enabled="true"/>
> > 
> > 
> >  toggled="false"/>
> >  
> >  
> > 
> > 
> > ===
> > 
> > I can statically disable one of the items by setting enabled="false",
> > however I need to disable the item by using Action Script 3.0. 
> > 
> > I've tried using dataDescriptor like so but it does not work:
> > 
> > ===
> > myMenu.dataDescriptor.setEnabled(myMenuData.menuDrill.menuDown,false);
> > ===
> > 
> > I've posted this on a few forums and haven't received a solution. I
> > hope I can find one here.
> > 
> > Any help would be much appreciated.
> > 
> > Thanks.
> >
>




[flexcoders] tree control incorrectly displays nodes marked as "open"

2008-06-03 Thread yanroyss
Hi,
I've been having a very odd problem using the Tree control with a
HierarchicicalCollectionView as the dataProvider.  I've been to the
Adobe Forums and #flex on irc.freenode.org looking for help and so far
I've come up empty.  I was told on IRC that Flexcoders is the right
place to look for help :)

The problem is very simple, but somewhat difficult to describe.  For
reasons I'm still a little hazy on, the root node of the tree is
displayed along side (on the same level) as its first-level children.
 All nodes that have children are correctly marked as expandable with
the disclosure icon.  Clicking said icon will cause the next level of
the hierarchy to be displayed, which also suffers from the same
problem: it will display all 2nd-level children AND their children on
the 2nd level.  I believe this problem stems from the way the Tree
control iterates over the collection -- it uses
ICollectionView.createCursor() instead of using the dataDescriptor
property of the Tree control to do that operation (which the docs
imply it does).

After much frustration and dead ends, I discovered that this bug only
manifests when the nodes in the HierarchicalCollectionView are marked
as "open" using openNode().  If the nodes are closed, it works as
expected.  This is very unfortunate for my application, as I'm
creating an app that displays the organization structure of a company.
 The control I use for drawing the chart requires all the nodes in the
tree to be "open" in the dataProvider, but the Tree control that I'd
like to use to provide quick navigation around the organization seems
to require just the opposite.

My questions are simple: why does this happen?  Is it really a bug? 
Should I report it? (probably, if it is a bug...)  Has anyone ever see
this before, and if so, how did they deal with it?

Thank you very much for any help you can provide.

You can find my original post on the Adobe Flex forums (along with a
simple reproduction recipe for the problem) here:
http://www.adobe.com/cfusion/webforums/forum/messageview.cfm?forumid=60&catid=585&threadid=1366770&enterthread=y



[flexcoders] Re: Enable / Disable Flex Menu Items Programmatically using AS 3.0

2008-06-03 Thread bc24fl
Fair enough.  Here is the code:

The menu is created using:


public  var myMenu:Menu;
//myMenu is globally created


var pt:Point = new Point(event.localX, event.localY);

myMenu = Menu.createMenu(null, myMenuData, false); 
  
pt = event.target.localToGlobal(pt);

myMenu.labelField="@label";

myMenu.show(pt.x, pt.y);

=

After this I add a few event handlers specific to the menu 


Then I add a switch statement to test what item was clicked.  When the
item "Lock / Unlock" is selected I ouput an Alert to make sure It is
working correctly.  Directly after the Alert I run the following:

===
myMenuData.menuitem.(@id=="menuDown")[EMAIL PROTECTED] = "false";

// I ALSO TRIED

myMenu.dataDescriptor.setEnabled(myMenuData.menuDrill.menuDown[0],false);

===


The data is statically defined in mxml like so:
=









   
  


===

I hope this is enough info.  

If someone has another example using a different data source please
post.  I don't have to use an XML formatted data.  

Thanks for the help.









--- In flexcoders@yahoogroups.com, "Michael Schmalle"
<[EMAIL PROTECTED]> wrote:
>
> Hi,
> 
> Without looking at your exact dataProvider with a simple Application, I
> can't help much.
> 
> I got this to work yesterday using @enabled = false on the node.
> 
> But the ex4 implementation various on 'WHERE' you are trying to set the
> enabled of the node.
> 
> Can you post a simple mxml Application?
> 
> Mike
> 
> On Tue, Jun 3, 2008 at 10:21 AM, Andrew Price <
> [EMAIL PROTECTED]> wrote:
> 
> >I am new to flex myself but is it not just.
> >
> >
> >
> >
> >
> > menuDown.enabled="true"
> >
> >
> >
> > or
> >
> >
> >
> > menuDown.enabled="fasle"
> >
> >
> >
> >
> >
> > -Original Message-
> > *From:* flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] *On
> > Behalf Of *bc24fl
> > *Sent:* 03 June 2008 14:56
> > *To:* flexcoders@yahoogroups.com
> > *Subject:* [flexcoders] Re: Enable / Disable Flex Menu Items
> > Programmatically using AS 3.0
> >
> >
> >
> > I'm really struggling for help. We have done everything to try and
> > get a solution to this problem including:
> >
> > 1. Posting on public forums / mailing lists
> > 2. Purchased books on AS3 and Flex
> > 3. Signed up for a year subscription to Lynda.com
> > 4. Purchased support from experts-exchange.com
> > 5. Purchased support directly from Adobe where supposedly it's 3 day
> > response (no resolution) and we have received no response for a week
> > (business days).
> >
> > What in the world am I doing wrong? This question doesn't appear to
> > be rocket science as I've done this (enable/disable menu items) in
> > many other programming languages.
> >
> > As you can see I have exhausted every (that I know of) resource. What
> > else am I to do? My employer is upset and now considering dropping
> > the language altogether and I don't want that.
> >
> > Any advice would BE MUCH APPRECIATED.
> >
> > End rant.
> >
> > --- In flexcoders@yahoogroups.com ,
"bc24fl"
> >  wrote:
> > >
> > > I have the following XML data defined in my app:
> > >
> > > =
> > > 
> > > 
> > > 
> > > 
> > >  > > enabled="true"/>
> > >  > > enabled="true"/>
> > > 
> > > 
> > >  > toggled="false"/>
> > > 
> > > 
> > > 
> > > 
> > > ===
> > >
> > > I can statically disable one of the items by setting
enabled="false",
> > > however I need to disable the item by using Action Script 3.0.
> > >
> > > I've tried using dataDescriptor like so but it does not work:
> > >
> > > ===
> > >
myMenu.dataDescriptor.setEnabled(myMenuData.menuDrill.menuDown,false);
> > > ===
> > >
> > > I've posted this on a few forums and haven't received a solution. I
> > > hope I can find one here.
> > >
> > > Any help would be much appreciated.
> > >
> > > Thanks.
> > >
> >
> >  
> >
> 
> 
> 
> -- 
> Teoti Graphix, LLC
> http://www.teotigraphix.com
> 
> Teoti Graphix Blog
> http://www.blog.teotigraphix.com
> 
> You can find more by solving the problem then by 'asking the question'.
>




Re: RES: [flexcoders] Using CSS with custom item renderers

2008-06-03 Thread Michael Schmalle
The solution


http://www.adobe.com/2006/mxml";
width="200" height="50">










Mike


On Tue, Jun 3, 2008 at 10:36 AM, Michael Schmalle <[EMAIL PROTECTED]>
wrote:

> Hi,
>
> The reason this is not working with TypeSelectors is because the styleName
> property of the item renderer is getting set to the LisContentHolder
> instance (it's parent).
>
> Mike
>
>
> On Tue, Jun 3, 2008 at 9:49 AM, Amy <[EMAIL PROTECTED]> wrote:
>
>>   --- In flexcoders@yahoogroups.com , "Josh
>> McDonald" <[EMAIL PROTECTED]> wrote:
>> >
>> > Can you post the code for TestRenderer?
>>
>> Are you sure? It's very complicated ;-)
>>
>> 
>> http://www.adobe.com/2006/mxml"; width="200"
>> height="50">
>> 
>>
>> 
>>
>>  
>>
>
>
>
> --
> Teoti Graphix, LLC
> http://www.teotigraphix.com
>
> Teoti Graphix Blog
>
> http://www.blog.teotigraphix.com
>
> You can find more by solving the problem then by 'asking the question'.
>



-- 
Teoti Graphix, LLC
http://www.teotigraphix.com

Teoti Graphix Blog
http://www.blog.teotigraphix.com

You can find more by solving the problem then by 'asking the question'.


[flexcoders] Anyone know how to reveal the functions in namespaces like c++?

2008-06-03 Thread Sherif Abdou


 I am using the Flex 4 sdk and Flash Player 10 and almost all the new api has a 
flash10 namespace. in C++ you could do std::(get code hints)
In flex is there a way to do flash10:: and see everything instead of having to 
read the api?


  

RE: [flexcoders] Re: Enable / Disable Flex Menu Items Programmatically using AS 3.0

2008-06-03 Thread Tracy Spratt
Ah, no I looked at the history and that was a different thread, probably
confused others as well.

 

Ok, try this:

var xmlMenuItem:XML =
myMenuData..menuItem.(attribute("id")=="menuDown")[0];

[EMAIL PROTECTED] = false;

 

Tracy

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of bc24fl
Sent: Tuesday, June 03, 2008 9:56 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Enable / Disable Flex Menu Items
Programmatically using AS 3.0

 

I'm really struggling for help. We have done everything to try and
get a solution to this problem including:

1. Posting on public forums / mailing lists
2. Purchased books on AS3 and Flex
3. Signed up for a year subscription to Lynda.com
4. Purchased support from experts-exchange.com
5. Purchased support directly from Adobe where supposedly it's 3 day
response (no resolution) and we have received no response for a week
(business days).

What in the world am I doing wrong? This question doesn't appear to
be rocket science as I've done this (enable/disable menu items) in
many other programming languages. 

As you can see I have exhausted every (that I know of) resource. What
else am I to do? My employer is upset and now considering dropping
the language altogether and I don't want that. 

Any advice would BE MUCH APPRECIATED. 

End rant.

--- In flexcoders@yahoogroups.com 
, "bc24fl" <[EMAIL PROTECTED]> wrote:
>
> I have the following XML data defined in my app:
> 
> =
> 
> 
> 
> 
>  enabled="true"/>
>  enabled="true"/>
> 
> 
> 
>  
>  
> 
> 
> ===
> 
> I can statically disable one of the items by setting enabled="false",
> however I need to disable the item by using Action Script 3.0. 
> 
> I've tried using dataDescriptor like so but it does not work:
> 
> ===
> myMenu.dataDescriptor.setEnabled(myMenuData.menuDrill.menuDown,false);
> ===
> 
> I've posted this on a few forums and haven't received a solution. I
> hope I can find one here.
> 
> Any help would be much appreciated.
> 
> Thanks.
>

 



Re: [flexcoders] Re: Enable / Disable Flex Menu Items Programmatically using AS 3.0

2008-06-03 Thread Andriy Panas
Hi stranger bc24fl,

  Mike Schmalle had proposed you the exact solution, that we are currently
using within our project based on Flex 2 SDK to enable/ disable menu items
in MenuBar component.

   I do not understand without looking at your code, what is going on wrong
with your MenuBar. Can you post a dummy sample of the code online to
illustrate your problem?

  SWF with View source option enabled would be nice.

ps
  Why do you post anonymously to this list, BTW? I would like to reference
you by your name ;)
-- 
--
Med venlig hilsen / Best regards
Andriy Panas
[EMAIL PROTECTED]

On 03/06/2008, bc24fl <[EMAIL PROTECTED]> wrote:
>
>   I'm really struggling for help. We have done everything to try and
> get a solution to this problem including:
>
> 1. Posting on public forums / mailing lists
> 2. Purchased books on AS3 and Flex
> 3. Signed up for a year subscription to Lynda.com
> 4. Purchased support from experts-exchange.com
> 5. Purchased support directly from Adobe where supposedly it's 3 day
> response (no resolution) and we have received no response for a week
> (business days).
>
> What in the world am I doing wrong? This question doesn't appear to
> be rocket science as I've done this (enable/disable menu items) in
> many other programming languages.
>
> As you can see I have exhausted every (that I know of) resource. What
> else am I to do? My employer is upset and now considering dropping
> the language altogether and I don't want that.
>
> Any advice would BE MUCH APPRECIATED.
>
> End rant.
>
>
> --- In flexcoders@yahoogroups.com , "bc24fl"
> <[EMAIL PROTECTED]> wrote:
> >
> > I have the following XML data defined in my app:
> >
> > =
> > 
> > 
> > 
> > 
> >  > enabled="true"/>
> >  > enabled="true"/>
> > 
> > 
> >  toggled="false"/>
> > 
> > 
> > 
> > 
> > ===
> >
> > I can statically disable one of the items by setting enabled="false",
> > however I need to disable the item by using Action Script 3.0.
> >
> > I've tried using dataDescriptor like so but it does not work:
> >
> > ===
> > myMenu.dataDescriptor.setEnabled(myMenuData.menuDrill.menuDown,false);
> > ===
> >
> > I've posted this on a few forums and haven't received a solution. I
> > hope I can find one here.
> >
> > Any help would be much appreciated.
> >
> > Thanks.
> >
>
>  
>


RE: [flexcoders] Re: Enable / Disable Flex Menu Items Programmatically using AS 3.0

2008-06-03 Thread Tracy Spratt
Is this the thread where you are not able to use the normal method of
doing this via the dataProvider, but must have some way to do it via the
instantiated elements?  Because you are trying to automate unit testing
or something?

 

Because programatically disabling a particular menu item is easy.  Just
get a reference to the menu item node and set the enabled attribute.  Is
that not acceptable to you?

 

Tracy

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of bc24fl
Sent: Tuesday, June 03, 2008 9:56 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Enable / Disable Flex Menu Items
Programmatically using AS 3.0

 

I'm really struggling for help. We have done everything to try and
get a solution to this problem including:

1. Posting on public forums / mailing lists
2. Purchased books on AS3 and Flex
3. Signed up for a year subscription to Lynda.com
4. Purchased support from experts-exchange.com
5. Purchased support directly from Adobe where supposedly it's 3 day
response (no resolution) and we have received no response for a week
(business days).

What in the world am I doing wrong? This question doesn't appear to
be rocket science as I've done this (enable/disable menu items) in
many other programming languages. 

As you can see I have exhausted every (that I know of) resource. What
else am I to do? My employer is upset and now considering dropping
the language altogether and I don't want that. 

Any advice would BE MUCH APPRECIATED. 

End rant.

--- In flexcoders@yahoogroups.com 
, "bc24fl" <[EMAIL PROTECTED]> wrote:
>
> I have the following XML data defined in my app:
> 
> =
> 
> 
> 
> 
>  enabled="true"/>
>  enabled="true"/>
> 
> 
> 
>  
>  
> 
> 
> ===
> 
> I can statically disable one of the items by setting enabled="false",
> however I need to disable the item by using Action Script 3.0. 
> 
> I've tried using dataDescriptor like so but it does not work:
> 
> ===
> myMenu.dataDescriptor.setEnabled(myMenuData.menuDrill.menuDown,false);
> ===
> 
> I've posted this on a few forums and haven't received a solution. I
> hope I can find one here.
> 
> Any help would be much appreciated.
> 
> Thanks.
>

 



[flexcoders] Re: Questions regarding updating dataProviders after a drag & drop

2008-06-03 Thread Amy
--- In flexcoders@yahoogroups.com, "bredwards358" <[EMAIL PROTECTED]> 
wrote:
>
> Ok, going with the idea of creating a class called Product, since it
> seems to be referencing the first index of the draggedItems array,
> would this be an object type class? Or an array since we're adding to
> the dataProvider which is an arrayCollection?

The Flex 2/3 Training from the Sourcce books will walk you through the 
process of creating pretty much the type of application you seem to be 
going for.

HTH;

Amy



  1   2   >