[flexcoders] HTTP request sending from IDE(Flex Builder) ERROR

2008-06-04 Thread hworke


  Hello,

  I understand that when a HTTPService request is made to
  a machine which in not the local machine then I will need
  to setup the crossdomain policy. But when I am running
  the application on flex builder it should not have any
  problem to get the data from other server. But my
  application is giving error message. How do I setup the
  project so that I do not get the error message and my
  HTTPservice requests go through.

  Regards,

  Viv



[flexcoders] make image sepia in flex

2008-06-04 Thread amigo_fd
Hello, we are building an image editing tool in flex. Any suggestions
or ideas on how to build a filter to make an image sepia ?

Thanks a lot!



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

2008-06-04 Thread Cato Paus

Hello again everyone, how can we protect our code?

How should we go forward in order to protect the methods used to change
the senistive information on user data, some blogs on this?

I found one at a remote-finfig.xml and the use of session id

http://www.flexpasta.com/index.php/2008/03/18/flex-using-blazeds-with-ja\
va-do-you-care-about-security/
http://www.flexpasta.com/index.php/2008/03/18/flex-using-blazeds-with-j\
ava-do-you-care-about-security/
this is good to have this thread hope we can work together to find out
of this :)

--- 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.





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

2008-06-04 Thread Josh McDonald
I still can't see what you hope to achieve with these solutions? Anybody
willing to copy and paste your code, is just as willing to copy your
encrypted .SWC file.

Source code is like love - it only has value if you give it out.

-Josh

On Wed, Jun 4, 2008 at 5:45 PM, Cato Paus [EMAIL PROTECTED] wrote:

   Hello again everyone, how can we protect our code?

 How should we go forward in order to protect the methods used to change the
 senistive information on user data, some blogs on this?

 I found one at a remote-finfig.xml and the use of session id


 http://www.flexpasta.com/index.php/2008/03/18/flex-using-blazeds-with-java-do-you-care-about-security/
 this is good to have this thread hope we can work together to find out of
 this :)


 --- 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.
 
  




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

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


[flexcoders] DataGrid What is the limit?

2008-06-04 Thread Nadeem Manzoor
Hello Flex Gurus

What is the maximum row count that a DataGrid Component can display at a
time?

Same Question is for Column so DataGrid

-- 
Thanks

Nadeem Manzoor


Re: [flexcoders] DataGrid What is the limit?

2008-06-04 Thread Fidel Viegas
On Wed, Jun 4, 2008 at 10:20 AM, Nadeem Manzoor [EMAIL PROTECTED] wrote:
 Hello Flex Gurus

 What is the maximum row count that a DataGrid Component can display at a
 time?

 Same Question is for Column so DataGrid

Hi Nadeem,

This topic has been discussed several times. Just do a search on the
group and you will find quite a lot of answers to that.

Fidel.


[flexcoders] Re: DataGrid What is the limit?

2008-06-04 Thread Cato Paus
According to the flex doc Maximum size 5000 by 5000. 


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

 Hello Flex Gurus
 
 What is the maximum row count that a DataGrid Component can display 
at a
 time?
 
 Same Question is for Column so DataGrid
 
 -- 
 Thanks
 
 Nadeem Manzoor





[flexcoders] How to deal with a java.util.HashMap in flex

2008-06-04 Thread Baljeet singh
Hi all;

I am returning a java.util.HashMap from a java class using remote
object in flex. How can i handle this map on flex side in action
script ? I want to find out the KeySet of the Map. How can i get the
keyset of map ?

   Any help/pointers will be highly appreciated.
   Thanks a lot in advance !!
 
Regards,
Baljeet



Re: [flexcoders] HTTP request sending from IDE(Flex Builder) ERROR

2008-06-04 Thread Anirudh Sasikumar
Hi,

FlexBuilder automatically trusts the swf file generated by it. So you
shouldn't have any problem accessing urls with HTTPService.

You can do this manually by right clicking (control-click on mac) on
the swf, clicking on Settings, Privacy tab, click on Advanced, Global
Security Settings, click on Edit Locations popup, Add Location and add
the swf file so that it is trusted by flash player.

Cheers,
-- 
Anirudh Sasikumar
http://anirudhs.chaosnet.org/


Re: [flexcoders] How to deal with a java.util.HashMap in flex

2008-06-04 Thread Anirudh Sasikumar
Hi Baljeet,

On the flex side you'll get the result as an object with keys the same
as that of your server side HashMap's.

You can look at the keys and values in the object by putting the
following code in your result event handler:

for ( var key:String in event.result )
{
   Alert.show(key is  + key +  val is  + event.result[key]);
}

Cheers,
-- 
Anirudh Sasikumar
http://anirudhs.chaosnet.org/


[flexcoders] Creating SWF playlist

2008-06-04 Thread frenz_gj
Hi,

I need to create a playlist of SWF files, running one after the other 
and repeating again after it ends.

Can anyone help me on this?

Thanks in advance.
Gaurav




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

2008-06-04 Thread Manu Dhanda

Hii Nick,

None of these techniques/workarounds working for boolean.
I am really thinking that how other people dealing with boolean types?

Any other possible solution in your store??

Also, I am debugging this application in Flex builder and there it displays
that the returned object[in result] itself has a value of true, so there is
no use of trying to resolve it on Flex side. As it is receiving the boolean
value as true always.

Now it comes to WebORB, like how they are missing this bug[looks like that],
for such a long time.

Thanks,
Manu.


Uber_Nick wrote:
 
 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; ilist.length; 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.

 
 
 
 

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



RE: [flexcoders] make image sepia in flex

2008-06-04 Thread Rick Winscot
Use the Matrix neo. er. ColorMatrixFilter.

 

http://livedocs.adobe.com/flex/201/langref/flash/filters/ColorMatrixFilter.h
tml 

 

Rick Winscot

 

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of amigo_fd
Sent: Wednesday, June 04, 2008 3:08 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] make image sepia in flex

 

Hello, we are building an image editing tool in flex. Any suggestions
or ideas on how to build a filter to make an image sepia ?

Thanks a lot!

 



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

2008-06-04 Thread Michel Scoz
My experiences with Flash + AS2 and SWFEncrypt are very positive, even with 
Sothink trying to decompile and not being able to...

 

On the other hand, never tried with Flex. Maybe you/we should try the newer 
version, since changelog states: Updated for Flash 9, Flex 2/3 and ActionScript 
1/2/3.

 



De: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] Em nome de Doug McCune
Enviada em: terça-feira, 3 de junho de 2008 16:53
Para: flexcoders@yahoogroups.com
Assunto: Re: [flexcoders] Re: SWC Encrypt 2.0 - Does it work?

 

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] mailto:[EMAIL 
PROTECTED]  wrote:

right now the Flex framework is too much to decode. decoders only 
hang that I know of



--- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.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 
 http://www.halliwells.com .


 

 



Re: [flexcoders] DataGrid What is the limit?

2008-06-04 Thread Nadeem Manzoor
Hello *Fidel *

I tried searching the group for this topic but couldn't find anything on
it.  And *Cato Paus* says its 5000 by 5000, I need to show almost 50,000
records at a time in an application, How can i do that?

And Fidel can you please give me the link for this already discussed topic

Thanks
Nadeem

On Wed, Jun 4, 2008 at 2:25 PM, Fidel Viegas [EMAIL PROTECTED] wrote:

 On Wed, Jun 4, 2008 at 10:20 AM, Nadeem Manzoor [EMAIL PROTECTED]
 wrote:
  Hello Flex Gurus
 
  What is the maximum row count that a DataGrid Component can display at a
  time?
 
  Same Question is for Column so DataGrid

 Hi Nadeem,

 This topic has been discussed several times. Just do a search on the
 group and you will find quite a lot of answers to that.

 Fidel.

 

 --
 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






-- 
Thanks

Nadeem Manzoor


Re: [flexcoders] HTTP request sending from IDE(Flex Builder) ERROR

2008-06-04 Thread spradeep palabhathina
Hi
nbsp;
can any one tell how to implement flex with java in eclipse,am able to run 
applications through .mxml files,Please help in this
nbsp;
thanks
pradeep

--- On Wed, 4/6/08, Anirudh Sasikumar lt;[EMAIL PROTECTED]gt; wrote:

From: Anirudh Sasikumar lt;[EMAIL PROTECTED]gt;
Subject: Re: [flexcoders] HTTP request sending from IDE(Flex Builder) ERROR
To: flexcoders@yahoogroups.com
Date: Wednesday, 4 June, 2008, 4:06 PM






Hi,

FlexBuilder automatically trusts the swf file generated by it. So you
shouldn't have any problem accessing urls with HTTPService.

You can do this manually by right clicking (control-click on mac) on
the swf, clicking on Settings, Privacy tab, click on Advanced, Global
Security Settings, click on Edit Locations popup, Add Location and add
the swf file so that it is trusted by flash player.

Cheers,
-- 
Anirudh Sasikumar
http://anirudhs. chaosnet. org/
 













Send free SMS to your Friends on Mobile from your Yahoo! Messenger. Download 
Now! http://messenger.yahoo.com/download.php

[flexcoders] Hi

2008-06-04 Thread spradeep palabhathina
Hi ,
nbsp;
pls send me examples on flex with java
nbsp;
thanks
pradeep


  Explore your hobbies and interests. Go to 
http://in.promos.yahoo.com/groups/

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

2008-06-04 Thread Michael Schmalle
I'll Chime in on this since.. I could call myself a professional component
developer.

I had the same worries about source and intellectual property (2 years ago).
What I have found in the real component market,
developers will buy your component without code IF you have a site and
support backing up your claim of a purely 'encapsulated' API.

Now what I have learned; Mind you I have been developing components since
Flash 5 :)

- Source code IS love but, they are going to pay a lot more for it. I'm
talking about my frameworks coming up that are definite jewels for the
professional/enterprise flex developer.

I will have to options SWC or SWC/with source. You can't stop people from
riping off your stuff. There are ticks and leaches in the REAL world as
well. The trick, is to be the leader and innovator. I have survived 2 years
without selling source. I have created a brand new framework that I am very
proud of, documented great and I will be selling my components with source.

Anyway, ramble but... you will always get decompiled and don't kid yourself.

Peace,
Mike

On Wed, Jun 4, 2008 at 3:57 AM, Josh McDonald [EMAIL PROTECTED] wrote:

   I still can't see what you hope to achieve with these solutions? Anybody
 willing to copy and paste your code, is just as willing to copy your
 encrypted .SWC file.

 Source code is like love - it only has value if you give it out.

 -Josh


 On Wed, Jun 4, 2008 at 5:45 PM, Cato Paus [EMAIL PROTECTED] wrote:

   Hello again everyone, how can we protect our code?

 How should we go forward in order to protect the methods used to change
 the senistive information on user data, some blogs on this?

 I found one at a remote-finfig.xml and the use of session id


 http://www.flexpasta.com/index.php/2008/03/18/flex-using-blazeds-with-java-do-you-care-about-security/
 this is good to have this thread hope we can work together to find out of
 this :)


 --- 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.
 




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

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




-- 
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] Re: SWC Encrypt 2.0 - Does it work?

2008-06-04 Thread andrewwestberg
shameless_product_plug
nitrolm.com has a new feature I'm working on that allows you to
encrypt flex/AIR mx:ModuleLoader swfs using public/private keys. 
You write a modular application (or just put most everything in one
module). After that, encrypt using NitroLM's AssetEncrypter tool and
change your tags to nitrolm:EncryptedModuleLoader.  

The code in the module is protected from decompiling because the
decryption key is stored on the nitrolm server cluster and only
delivered to the client after a valid NitroLM authentication.

I will be at 360 flex in San Jose, so if you want to see it in action,
stop by the Simplified Logic booth.
/shameless_product_plug

The advantage I see in doing true encryption over obfuscation is that
the code the user runs is the same that you developed.  With
obfuscation, you have to worry about bugs introduced by the obfuscator
and cryptic stack traces to figure out when runtime errors do happen
to occur.

-Andrew

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

 
 Hello again everyone, how can we protect our code?
 
 How should we go forward in order to protect the methods used to change
 the senistive information on user data, some blogs on this?
 
 I found one at a remote-finfig.xml and the use of session id
 

http://www.flexpasta.com/index.php/2008/03/18/flex-using-blazeds-with-ja\
 va-do-you-care-about-security/

http://www.flexpasta.com/index.php/2008/03/18/flex-using-blazeds-with-j\
 ava-do-you-care-about-security/
 this is good to have this thread hope we can work together to find out
 of this :)
 
 --- In flexcoders@yahoogroups.com, jmfillman jmfillman@ 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: Getting PropertyChangeEvent to work properly

2008-06-04 Thread superbokbok
Yes I thought that would fix the problem so I tried implementing this
within the
function notifyPropertyChange method
 private function
notifyPropertyChange(name:String,oldValue:Object,value:Object):void
 {
 if (value !== oldValue)
 {
 var event:PropertyChangeEvent = new
PropertyChangeEvent(PropertyChangeEvent.PROPERTY_CHANGE,
 true,false,update,name,oldValue,value,this);
 dispatchEvent(event);
 }
 }

Now in the main.mxml file, I've set the listener like this:
this.addEventListener(PropertyChangeEvent.PROPERTY_CHANGE,testTrace,true\
);

I can never seem to get this event to be recognized by the application.

For reference, this notifyPropertyChange method is contained within an
AS class that fires the event when a Timer event fires after 1 minute.
At this point, a new Date object is created, compared with the old date
value and fires the notifyPropertyChange method, to update the onscreen
time display.
If I register a listener with the target, then I can receive the event.
But I cannot seem to get any event, particularly the PROPERTY_CHANGE
event, which is what I want.

I'd love to be able to use the propertychangeevent cuz it seems like a
nice, subtle way to be alerted of changes to an instance's variable. Any
suggestions on how to use the PropertyChangeEvent properly?? :)
regards
erick
--- In flexcoders@yahoogroups.com, valdhor [EMAIL PROTECTED] wrote:

 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 superbokbok@ 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:
 
  mx:Text
  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??!!
 






[flexcoders] Keep combobox open to allow multiselect

2008-06-04 Thread rviswanathan

Hi 

I have created a combo box with a checkbox renderer on each of its items.
When I select an entry in the combobox, the box closes automatically.

I want to prevent his so that I can multiselect elements in the combobox.

Is there a way to do this? Even if I extend the ComboBox and override its
close method, the combobox still closes (and I realized that there is a
private method in ComboBox.as called destroyDropdown() which gets called
when the collection that the combobox holds changes.

Thanks
Ram
-- 
View this message in context: 
http://www.nabble.com/Keep-combobox-open-to-allow-multiselect-tp17644507p17644507.html
Sent from the FlexCoders mailing list archive at Nabble.com.



[flexcoders] How to expose Hibernate 'non' conventional beans into flex apps via remoting

2008-06-04 Thread Mehdi
I am relatively new to the flex world. I am from the Spring/Hibernate
world.
In Hibernate, the POJO object or domain object , or simply beans that
you use to persist you object into the database does not have to
follow the bean definition/contract, i.e: public default constructor
with getter/setters. There are good reasons behind creating those kind
of 'hibernate beans' (I will call them that way for lack of a better
name). In fact, only defining a one-parameter constructor (i.e.
omitting the default one) guaranties you that your client cannot
invoke your API without that needed parameter. Likewise, exposing only
the getters for some private member variables (without the setters)
makes sense when you don't want that variable to ever change,
etchibernate manage to access these fields using cglib, and other
tricks.

Now, my understanding of Flex and how remote services work (from what
I could see in all the samples around about hibernate/spring), is that
your java server bean get proxied 'dynamically' or 'statically' (via
an Actionscript class object) according to the rule: Only values
found in public bean properties with get/set methods and public
variables  are being copied over to the client proxy object. Which
means that if I dont have a default constructor I am toast. It also
means that my public getVar() (without a setVar()) from my 'hibernate'
bean/POJO will never make it into my client proxy. An example of
getVar(), is simply getdbID(), where the dbID is an
autocincrement/sequence for example? 

This is creating me tons of problems, because we arlready have a well
rounded/tested server API and we already have a JSF implementation
using itRe-writing a new one using flex is more something I am
pushing for to prove that we can get better UI,etc

What is flex/BlazeDS solution for fixing this case?
One solution that comes to mind (not very bright, but should work) is
to build a whole slew of plain java bean objects ( 1 for each of
the'hibernate' bean) to ensure the translation on both side between
the 'hibernate bean' and the 'expected' bean from flex. From the
server to the client, the new bean would copy the content of the
hibernate bean and return that 'proper' beans back to flex. On the way
out (from the client to the server), it would have to recreate the
hibernate bean before feeding it to the API and hibernate) It's
probably not the best solution, especially considering that eventually
as some point, I will need to define another set of those
objects(beans) on the flex side, using actionscript (I think these are
what you guys call VOs) in order to do strong typing in flex
I must be missing something! can't be that complicated 

Another possible solution (is it? not sure anymore) I believe is to
play with the java/flex Externalizable/IExternalizable, but that means
changing all my beans on the server (as I will need to implement
Externalizable as per what I understood from the readings).

Isn't there something that I can do on the client only??? How do you
guys handle that?

Any input would be valuable.
Thank you,



[flexcoders] How do I find a row in a datagrid, then cause it to be clicked?

2008-06-04 Thread gbkpicasso
I have a list box of items that can be found in a datagrid. When a 
user clicks on an item in the list box I would like to find the row in 
the datagrid that contains that same data.

Then I would like to scroll to that row in the datagrid so it is 
visible to the user - myDataGrid.scrollToIndex(rowNumFoundAbove)

Then cause that row to be clicked programmatically so the current code 
for the click event of the datagrid is triggered.

Do I need to search every row of the datagrid to look for the row I 
need?

How do I force a row in a datagrid to be clicked programattically?

Thanks
Greg



[flexcoders] Thinking about going to the dark side....Apple Mac Book

2008-06-04 Thread scottyale2008
How many Flex developers here are using a Mac for development?  I've 
been a die hard Microsoft guy since ... well, since Microsoft first 
started.   I went from CPM on a Morrow Meadows to Microsoft DOS (on 
computers with a Turbo button!), then Windows, now Vista.  I do have an 
iPhone and it is an incredible device and the GUI is extremely well 
done.   I've never used a Mac, but many of my friends have taken the 
plunge.  Is it time to make the switch?   I'm thinking about a Mac Book 
Pro.  Is a Mac Book even worth considering for a Flex dev machine or is 
a Mac Book Pro the way to go?   Anybody else make the switch recently 
from Windows to Mac?  




[flexcoders] dragMoveEnabled: sometimes move/sometimes copy?

2008-06-04 Thread bjorn
I have a TileList which contains draggable elements and has dragMoveEnabled.
This works fine, however, I have one problem. The thing is that I need to be
able to remove them from the drag source in some cases and not remove them
in some cases, based on the drop target (and not user keyboard interaction).

How do I accomplish this behaviour?
-- 


http://www.juicability.com - flex blog
http://www.43min.com - funny movies


Re: [flexcoders] Thinking about going to the dark side....Apple Mac Book

2008-06-04 Thread Josh McDonald
I'm a Mac guy, have been since I bought a 12 ibook a few years ago. I do
flex on my 15 mbp, and on a 24 imac at work, it's the envy of the office
;-)

Flex works a treat, especially now the license keys are cross-platform :D

-Josh

On Wed, Jun 4, 2008 at 1:12 PM, scottyale2008 [EMAIL PROTECTED]
wrote:

   How many Flex developers here are using a Mac for development? I've
 been a die hard Microsoft guy since ... well, since Microsoft first
 started. I went from CPM on a Morrow Meadows to Microsoft DOS (on
 computers with a Turbo button!), then Windows, now Vista. I do have an
 iPhone and it is an incredible device and the GUI is extremely well
 done. I've never used a Mac, but many of my friends have taken the
 plunge. Is it time to make the switch? I'm thinking about a Mac Book
 Pro. Is a Mac Book even worth considering for a Flex dev machine or is
 a Mac Book Pro the way to go? Anybody else make the switch recently
 from Windows to Mac?

  




-- 
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: Memory leaks in a asyncronic operation

2008-06-04 Thread cavi21
I couldn't resolve my problem with the memory leak, but instead I
resolve the problem of encoding to JPEG far much faster than with the
JPGEncoding Class.

Thanks anyway, cheers.



[flexcoders] Re: Saving BMPs

2008-06-04 Thread cavi21
SOLVED, with a class custom made.

Thanks.

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

 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] DataGrid What is the limit?

2008-06-04 Thread Felipe Fernandes
Nadeem,

I think you are confusing datagrid row count with datagrid´s
dataProvider length.
When you ask:
What is the maximum row count that a DataGrid Component can display at a time?
You are asking the size a datagrid can get in the screen, that´s why
Cato Paus said 5000 X 5000 (5000 pixel of width and 5000 pixel of
heigth).
About the size of a datagrid dataProvider I don´t know if there is a
real limit, I would say that the limit depends of the user machine
since most of the processing is done in the user machine. One thing I
can tell you if you are going to show that much of data I shouldn´t
use any kind of itemRenderer, labelfunction or any other thing that
add data management to each row. And if you are gonig to show that
much of data you should consider to add a pagging funcionality to your
grid.

Felipe

On Wed, Jun 4, 2008 at 9:13 AM, Nadeem Manzoor [EMAIL PROTECTED] wrote:
 Hello Fidel

 I tried searching the group for this topic but couldn't find anything on
 it.  And Cato Paus says its 5000 by 5000, I need to show almost 50,000
 records at a time in an application, How can i do that?

 And Fidel can you please give me the link for this already discussed topic

 Thanks
 Nadeem

 On Wed, Jun 4, 2008 at 2:25 PM, Fidel Viegas [EMAIL PROTECTED] wrote:

 On Wed, Jun 4, 2008 at 10:20 AM, Nadeem Manzoor [EMAIL PROTECTED]
 wrote:
  Hello Flex Gurus
 
  What is the maximum row count that a DataGrid Component can display at a
  time?
 
  Same Question is for Column so DataGrid

 Hi Nadeem,

 This topic has been discussed several times. Just do a search on the
 group and you will find quite a lot of answers to that.

 Fidel.

 

 --
 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






 --
 Thanks

 Nadeem Manzoor
 



-- 
Felipe - http://bobfernandes.wordpress.com


[flexcoders] Re: Thinking about going to the dark side....Apple Mac Book

2008-06-04 Thread Jimmy Neutron
1) gripes about flash 9 in ffox for osx seem to be my biggest bone of contention

2) ask yourself questions regarding ram - the java alone will soak up quite a 
bit of your background resources

3) - its even possible on a G3 - but it might take some time(see 2)

IMHO the platform/OS is an irrelevance





  __
Sent from Yahoo! Mail.
A Smarter Email http://uk.docs.yahoo.com/nowyoucan.html

[flexcoders] Re: Thinking about going to the dark side....Apple Mac Book

2008-06-04 Thread jbaileyadam
I took the plunge when the new Mac Book Pros came out a few months ago
and couldn't be happier.  I expected the switch to be somewhat
painful, but was surprised how quickly I was productive again.  My
FlexBuilder projects just copied right over and I was up and running.

The bottom line is that its just a much better overall experience as
long as you don't mind the extra initial $$$ compared to a windoze laptop.

Jeff




[flexcoders] Please, help: the release player displays a blank page in all browsers.

2008-06-04 Thread andrea bianchi
I'm experiencing a strange issue: I'm not able to run my Flex app using the
release player (I tried Firefox2/player 9.0.124, IE5.5/player 9.0.47 and
IE7/player 9.0.124). The page contains a blank swf (when I right click I can
see the Flash player menu). The same application works in all browsers using
a debug player. The swf doesn't work even if I try to access it directly,
while I'm able to run other Flex applications both standalone and using the
HTML wrapper.
I'm using the Flex 2 SDK hotfix 2 command line compiler.
I actually don't know what has caused this behaviour since I use a debug
player 99% of time... a colleague discovered this while testing the
application. A possibile hint: this morning, using the debug player,  I saw
a popup window prompting me for the location of the debugger or the
profiler: this happens occasionally and, until now, I didn't pay much
attention to it (don't know exactly why it appears, I'm compiling using the
same options since many months). When I switched to the runtime player the
swf seemed to freeze at the same point, though in this case I didn't see the
popup window. Maybe this window and the blank page issue are related?
Obviously I cannot force my customers to install a debug player ;-)

Any help appreciated.

Bye,

Andrea


[flexcoders] Webservice implementation switched to e4x after Flex 2.0.1 hotfix 2

2008-06-04 Thread mgrayfmr
Hi there:

We've run into some webservice issues here when switching from Flex 
2.0.1 (not the hotfix version) to Flex 3. We are retrieving data from 
a .NET backend using a SOAP/wsdl format. When we switched to Flex 
3.0, the structures returned on the repsonse were sometimes a little 
different. 

For example, we had a data structure returned that was like this: 
data.result.UserProfileResponse.snapshots.Calendars
Where Calendars was an ArrayCollection.

Now the struture comes back without the Calendars part, and the data 
is in an ArrayCollection under the 
data.result.UserProfileResponse.snapshots structure.

The wsdl loks like this:
![CDATA[

s:complexType name=UserProfileResponse
  s:sequence
s:element minOccurs=0 maxOccurs=1 name=userProfileDAO 
type=tns:UserProfileDAO /
s:element minOccurs=0 maxOccurs=1 name=snapshots 
type=tns:ArrayOfCalendars /
  /s:sequence
/s:complexType

s:complexType name=ArrayOfCalendars
  s:sequence
s:element minOccurs=0 maxOccurs=unbounded name=Calendars 
nillable=true type=tns:Calendar /
  /s:sequence
/s:complexType
]]

Is this a result of the changes to implement e4x on webservices?
Has anyone else run into this issue?

Thanks in advance,
Mike




Re: [flexcoders] programmatically showing data tips on a chart

2008-06-04 Thread Deeptika Gottipati
New property 'showAllDataTips' added to chart in Flex 3 helps in this case.

Setting 'showAllDataTips' to true shows non-interactive data tips of all
items in the chart.

 Instead, if we want to show tips only for some items, we can do that by
setting dataTipItems of each series to an array of chart items that you want
to show tips for. The datatips thus shown are non-interactive meaning that
they are not based on mouse events. So, mouseMove will not remove the
datatip shown.

Thanks,
Deeptika

On Wed, Jun 4, 2008 at 2:54 AM, Ofir Shemesh [EMAIL PROTECTED] wrote:

   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/

  



Re: [flexcoders] Does anyone know a way to show percentages as LinearAxis label?

2008-06-04 Thread Deeptika Gottipati
'labelFunction' on AxisRenderer should be able to help in this case.

private function myLabelFunction(axisRenderer:IAxisRenderer,
label:String):String
{
 return label+%;
}

...
mx:AxisRenderer labelFunction=myLabelFunction axis={verticalAxis1} .../
...

Thanks,
Deeptika

On Fri, May 30, 2008 at 10:54 PM, Body Works Studio [EMAIL PROTECTED]
wrote:

   Hi all

 We have a dashboard chart with two series being displayed one is the
 number of docs, and the second series shows the percentage of relevance.

 I have the min and max set to 0 and 100 respectively and interval is
 set to 25. is there a way to make the scale show as 25% 50% 75% etc...

 Thanks

 Jeff

  



[flexcoders] Re: How to remeasure itemRenderer

2008-06-04 Thread Amy
--- In flexcoders@yahoogroups.com, Alex Harui [EMAIL PROTECTED] wrote:

 How did you get into itemRendererToIndices?  Maybe we need to see 
more
 code.

ListBase mouseClickHandler line 9019.

My function looks like this:

private function handleLabelClick(e:Event):void{
addChild(childObject);
childObject.x=0;
childObject.y=0;
childObject.width = 
childObject.explicitWidth;
childObject.height = 
childObject.explicitHeight;

invalidateSize();
}

Thanks :-)

-Amy



[flexcoders] ModuleLoader

2008-06-04 Thread ANDREW_PRICE_1999
i am have problem with ModuleLoader is will not load any swf???

It a simple form with two button on to open dayl and the second to 
open dayl1 ?

It just looks at me.

Please Help
Andrew



?xml version=1.0 encoding=utf-8?
mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; 
layout=absolute
mx:Script
![CDATA[
import mx.events.ItemClickEvent;
import mx.modules.*;
private function clickHandler(event:ItemClickEvent):void {
myModule.url = event.label + .swf;
myModule.loadModule();
}
]]
/mx:Script

mx:Panel width=100% height=100%
layout=vertical
title=Choose a Form to fill
horizontalAlign=center
mx:ModuleLoader id=myModule  url=dayl.swf/
mx:ControlBar
mx:ToggleButtonBar
id=myTB
borderStyle=solid
horizontalGap=1
itemClick=clickHandler(event);
mx:dataProvider
mx:Stringdayl/mx:String
mx:Stringdayl1/mx:String
/mx:dataProvider
/mx:ToggleButtonBar
/mx:ControlBar
/mx:Panel
/mx:Application



Re: [flexcoders] Thinking about going to the dark side....Apple Mac Book

2008-06-04 Thread Ernesto Casasín
I have a mac book pro (15, 2,33 GHz,, 3 GB ram) and it's a fair  
developing machine. When attached to an external 23 monitor (so I  
have two screens) and external keyboard and mouse, I can't see the  
difference from a desktop machine. The Flex IDE works fine, and with  
Parallels you can have both worlds in the same machine



El 04/06/2008, a las 5:12, scottyale2008 escribió:

 How many Flex developers here are using a Mac for development? I've
 been a die hard Microsoft guy since ... well, since Microsoft first
 started. I went from CPM on a Morrow Meadows to Microsoft DOS (on
 computers with a Turbo button!), then Windows, now Vista. I do have an
 iPhone and it is an incredible device and the GUI is extremely well
 done. I've never used a Mac, but many of my friends have taken the
 plunge. Is it time to make the switch? I'm thinking about a Mac Book
 Pro. Is a Mac Book even worth considering for a Flex dev machine or is
 a Mac Book Pro the way to go? Anybody else make the switch recently
 from Windows to Mac?


 

––
Ernesto Casasín
Abaco Digital, SL
José Pardo Sastrón, 7, 1
50001 Zaragoza
Tel: 34 976 29 79 80
Fax: 34 976 20 48 50






--
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: How do I find a row in a datagrid, then cause it to be clicked?

2008-06-04 Thread Dominic Pazula
Greg,
Are the items in your list box the same objects that are in the 
datagrid?  If so and your dataprovider is an ArrayCollection, then 
use myDataGrid.dataProvider.getItemIndex(obj:Object).  If not, then 
you have to come up with a way to efficiently search the dataProvider.

As for the programatic click; why not just call the event handler 
directly?  If you must have the click event, you will have to build 
it yourself and use myDataGrid.dispatchEvent(evt:Event).

Hope that helps.
Dom

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

 I have a list box of items that can be found in a datagrid. When a 
 user clicks on an item in the list box I would like to find the row 
in 
 the datagrid that contains that same data.
 
 Then I would like to scroll to that row in the datagrid so it is 
 visible to the user - myDataGrid.scrollToIndex(rowNumFoundAbove)
 
 Then cause that row to be clicked programmatically so the current 
code 
 for the click event of the datagrid is triggered.
 
 Do I need to search every row of the datagrid to look for the row I 
 need?
 
 How do I force a row in a datagrid to be clicked programattically?
 
 Thanks
 Greg





[flexcoders] Retrieving instence name?

2008-06-04 Thread flexawesome
Hey, is that possible to retrieve the instence name for imgLoad ?

# in this example, it calls init2 from init1 and know the instence name 
is test but I would like to retrieve it from event or other ways, is 
that possible?


http://www.privatepaste.com/e4RWWrMIAW

Thank you



[flexcoders] Re: Getting PropertyChangeEvent to work properly

2008-06-04 Thread Amy
--- In flexcoders@yahoogroups.com, superbokbok [EMAIL PROTECTED] 
wrote:

 Yes I thought that would fix the problem so I tried implementing 
this
 within the
 function notifyPropertyChange method
  private function
 notifyPropertyChange(name:String,oldValue:Object,value:Object):void
  {
  if (value !== oldValue)
  {
  var event:PropertyChangeEvent = new
 PropertyChangeEvent(PropertyChangeEvent.PROPERTY_CHANGE,
  true,false,update,name,oldValue,value,this);
  dispatchEvent(event);
  }
  }
 
 Now in the main.mxml file, I've set the listener like this:
 this.addEventListener
(PropertyChangeEvent.PROPERTY_CHANGE,testTrace,true\
 );
 
 I can never seem to get this event to be recognized by the 
application.
 
 For reference, this notifyPropertyChange method is contained within 
an
 AS class that fires the event when a Timer event fires after 1 
minute.
 At this point, a new Date object is created, compared with the old 
date
 value and fires the notifyPropertyChange method, to update the 
onscreen
 time display.
 If I register a listener with the target, then I can receive the 
event.
 But I cannot seem to get any event, particularly the PROPERTY_CHANGE
 event, which is what I want.
 
 I'd love to be able to use the propertychangeevent cuz it seems 
like a
 nice, subtle way to be alerted of changes to an instance's 
variable. Any
 suggestions on how to use the PropertyChangeEvent properly?? :)
 regards

What class is your class extending?
-Amy



RE: [flexcoders] ModuleLoader

2008-06-04 Thread Alex Harui
Is there enough room for your form to show up?  Are the form SWFs in the
right place?

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of ANDREW_PRICE_1999
Sent: Wednesday, June 04, 2008 8:15 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] ModuleLoader

 

i am have problem with ModuleLoader is will not load any swf???

It a simple form with two button on to open dayl and the second to 
open dayl1 ?

It just looks at me.

Please Help
Andrew

?xml version=1.0 encoding=utf-8?
mx:Application xmlns:mx=http://www.adobe.com/2006/mxml
http://www.adobe.com/2006/mxml  
layout=absolute
mx:Script
![CDATA[
import mx.events.ItemClickEvent;
import mx.modules.*;
private function clickHandler(event:ItemClickEvent):void {
myModule.url = event.label + .swf;
myModule.loadModule();
}
]]
/mx:Script

mx:Panel width=100% height=100%
layout=vertical
title=Choose a Form to fill
horizontalAlign=center
mx:ModuleLoader id=myModule url=dayl.swf/
mx:ControlBar
mx:ToggleButtonBar
id=myTB
borderStyle=solid
horizontalGap=1
itemClick=clickHandler(event);
mx:dataProvider
mx:Stringdayl/mx:String
mx:Stringdayl1/mx:String
/mx:dataProvider
/mx:ToggleButtonBar
/mx:ControlBar
/mx:Panel
/mx:Application

 



RE: [flexcoders] Re: How to remeasure itemRenderer

2008-06-04 Thread Alex Harui
Is that verbatim from the renderer code or somewhere else?  How does
handleLabelClick get called?

 

I would check to see if the validation of the size causes renderers to
be recycled, defeating your addChild.  Normally, you need to change a
property somewhere so that any renderer that is recycled in for that
data item will know to have that new child.

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Amy
Sent: Wednesday, June 04, 2008 8:09 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: How to remeasure itemRenderer

 

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

 How did you get into itemRendererToIndices? Maybe we need to see 
more
 code.

ListBase mouseClickHandler line 9019.

My function looks like this:

private function handleLabelClick(e:Event):void{
addChild(childObject);
childObject.x=0;
childObject.y=0;
childObject.width = 
childObject.explicitWidth;
childObject.height = 
childObject.explicitHeight;

invalidateSize();
}

Thanks :-)

-Amy

 



[flexcoders] date in dataGrid wrong GMT? Dates sometimes one day off?

2008-06-04 Thread Don Kerr
User selects date from date field. Saves. Date reflected in dataGrid
displays GMT-05.  Server time zone is GMT-06. Why?

PROBLEM
The user is scheduling lessons on one day in the future, only to
return later to see the date slipped back one day automatically.
Trying to diagnose the problem. Thought it might have something to do
with how Flex handles the date in the dataGrid?

Any ideas as to why dates would change by one day without user
intervention?

Thanks,
Don Kerr



RE: [flexcoders] Please, help: the release player displays a blank page in all browsers.

2008-06-04 Thread Alex Harui
If you deploy a release SWF, it won't ask for the debugger.  If you
deploy a debug swf and run it on a release player, it should work just
fine and not wait to hook to a debugger.  So, that shouldn't be the
problem.

 

One thing to try would be to write another release SWF that loads your
SWF and build some UI in the loading SWF so you can inspect the loaded
SWF.

 

 

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of andrea bianchi
Sent: Wednesday, June 04, 2008 7:23 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Please, help: the release player displays a blank
page in all browsers.

 

I'm experiencing a strange issue: I'm not able to run my Flex app using
the release player (I tried Firefox2/player 9.0.124, IE5.5/player 9.0.47
and IE7/player 9.0.124). The page contains a blank swf (when I right
click I can see the Flash player menu). The same application works in
all browsers using a debug player. The swf doesn't work even if I try to
access it directly, while I'm able to run other Flex applications both
standalone and using the HTML wrapper. 
I'm using the Flex 2 SDK hotfix 2 command line compiler.
I actually don't know what has caused this behaviour since I use a debug
player 99% of time... a colleague discovered this while testing the
application. A possibile hint: this morning, using the debug player,  I
saw a popup window prompting me for the location of the debugger or the
profiler: this happens occasionally and, until now, I didn't pay much
attention to it (don't know exactly why it appears, I'm compiling using
the same options since many months). When I switched to the runtime
player the swf seemed to freeze at the same point, though in this case I
didn't see the popup window. Maybe this window and the blank page issue
are related?
Obviously I cannot force my customers to install a debug player ;-)

Any help appreciated.

Bye,

Andrea 

 



RE: [flexcoders] dragMoveEnabled: sometimes move/sometimes copy?

2008-06-04 Thread Alex Harui
Get dragOver events, call preventDefault() on the event, call
DragManager.acceptDragDrop with the right information

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of bjorn
Sent: Wednesday, June 04, 2008 5:54 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] dragMoveEnabled: sometimes move/sometimes copy?

 

I have a TileList which contains draggable elements and has
dragMoveEnabled. This works fine, however, I have one problem. The thing
is that I need to be able to remove them from the drag source in some
cases and not remove them in some cases, based on the drop target (and
not user keyboard interaction).

 

How do I accomplish this behaviour?
-- 


http://www.juicability.com http://www.juicability.com  - flex blog
http://www.43min.com http://www.43min.com  - funny movies 

 



RE: [flexcoders] Keep combobox open to allow multiselect

2008-06-04 Thread Alex Harui
I'd just use a button and a Popup list

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of rviswanathan
Sent: Wednesday, June 04, 2008 4:28 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Keep combobox open to allow multiselect

 


Hi 

I have created a combo box with a checkbox renderer on each of its
items.
When I select an entry in the combobox, the box closes automatically.

I want to prevent his so that I can multiselect elements in the
combobox.

Is there a way to do this? Even if I extend the ComboBox and override
its
close method, the combobox still closes (and I realized that there is a
private method in ComboBox.as called destroyDropdown() which gets called
when the collection that the combobox holds changes.

Thanks
Ram
-- 
View this message in context:
http://www.nabble.com/Keep-combobox-open-to-allow-multiselect-tp17644507
p17644507.html
http://www.nabble.com/Keep-combobox-open-to-allow-multiselect-tp1764450
7p17644507.html 
Sent from the FlexCoders mailing list archive at Nabble.com.

 



RE: [flexcoders] Please, help: the release player displays a blank page in all browsers.

2008-06-04 Thread Tracy Spratt
Does your app do a data service call on start-up?  Perhaps you have a
security problem that is causing an error on the non-development system,
and the release player is not displaying the error.

 

Try to run the app on a non-dev system, but use the debug player.

 

Tracy

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of andrea bianchi
Sent: Wednesday, June 04, 2008 10:23 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Please, help: the release player displays a blank
page in all browsers.

 

I'm experiencing a strange issue: I'm not able to run my Flex app using
the release player (I tried Firefox2/player 9.0.124, IE5.5/player 9.0.47
and IE7/player 9.0.124). The page contains a blank swf (when I right
click I can see the Flash player menu). The same application works in
all browsers using a debug player. The swf doesn't work even if I try to
access it directly, while I'm able to run other Flex applications both
standalone and using the HTML wrapper. 
I'm using the Flex 2 SDK hotfix 2 command line compiler.
I actually don't know what has caused this behaviour since I use a debug
player 99% of time... a colleague discovered this while testing the
application. A possibile hint: this morning, using the debug player,  I
saw a popup window prompting me for the location of the debugger or the
profiler: this happens occasionally and, until now, I didn't pay much
attention to it (don't know exactly why it appears, I'm compiling using
the same options since many months). When I switched to the runtime
player the swf seemed to freeze at the same point, though in this case I
didn't see the popup window. Maybe this window and the blank page issue
are related?
Obviously I cannot force my customers to install a debug player ;-)

Any help appreciated.

Bye,

Andrea 

 



RE: [flexcoders] HTTP request sending from IDE(Flex Builder) ERROR

2008-06-04 Thread Tracy Spratt
Yes, you should not have to do anything special for this to work under
FB.  Are you saying you have tried and are having problems?

Tracy

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Anirudh Sasikumar
Sent: Wednesday, June 04, 2008 6:36 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] HTTP request sending from IDE(Flex Builder)
ERROR

 

Hi,

FlexBuilder automatically trusts the swf file generated by it. So you
shouldn't have any problem accessing urls with HTTPService.

You can do this manually by right clicking (control-click on mac) on
the swf, clicking on Settings, Privacy tab, click on Advanced, Global
Security Settings, click on Edit Locations popup, Add Location and add
the swf file so that it is trusted by flash player.

Cheers,
-- 
Anirudh Sasikumar
http://anirudhs.chaosnet.org/ http://anirudhs.chaosnet.org/ 

 



[flexcoders] Re: How to remeasure itemRenderer

2008-06-04 Thread Amy
--- In flexcoders@yahoogroups.com, Alex Harui [EMAIL PROTECTED] wrote:

 Is that verbatim from the renderer code or somewhere else?  How does
 handleLabelClick get called?

That is from my renderer code.  It's just a click handler on a canvas 
that contains a label.
 
 I would check to see if the validation of the size causes renderers to
 be recycled, defeating your addChild.  Normally, you need to change a
 property somewhere so that any renderer that is recycled in for that
 data item will know to have that new child.
 

Would the recycling be happening in the itemRendererToIndices call?  

Before the item.invalidateSizeFlag switches to false in that call, the 
item variable is com.magnoliamultimedia.views.TestRenderer (@4873479).  
After the flag switches, it is still 
com.magnoliamultimedia.views.TestRenderer (@4873479).  Wouldn't that 
mean that this is still the same renderer?  If not, how would I detect 
that recycling is happening?

The flag seems to be switching to false without going into any code 
that checks it.  However, I don't wholly know what might be happening 
in some compiled code the debugger might not be showing me, which is 
part of why I asked the question.

If I uploaded my code, would you have time/interest to look at it?

Thanks;

Amy



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

2008-06-04 Thread Tracy Spratt
If you leave the resultFormat as the default object, then Flex will
convert the xml into a nested object tree automatically.  But this is
not a very good way to do this.

 

If you are sure you do not want to work directly with XML and
XMLListCollection (there are pros and cons), then your best bet will be
to:

1) Define a class with strongly typed public properties to hold your
item data (VO)

2) Set resultFormat=e4x to prevent Flex from converting your data.

3) In the handler, convert event.result to xml:var myXML:XML =
XML(event.result);

3) Using an e4x expression on the xmlResult, get your items in an
XMLList.

4) for-loop over the XMLList, instanitating a new VO, and assigning the
values from the XMLnode to the appropriate VO property

5) Push that onto a temporary array

6) Create a new ArrayCollection() from the temporary array.

 

Tracy

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Dave Kong
Sent: Tuesday, June 03, 2008 10:20 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] How to convert an e4x XML object into an AS
object?

 

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?

 



RE: [flexcoders] Re: replacing items in an arraycollection?

2008-06-04 Thread Tracy Spratt
Depending on how you will use this, you might consider extending
ArrayCollection and adding getItemByKey support.

 

I have not done this, but would probably try maintaining an associative
array in the extended AC.

 

Come to think of it one of our component gurus might already have done
such a thing, or know why not to try!  Do a search.

 

Tracy

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Tim Hoff
Sent: Tuesday, June 03, 2008 9:42 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: replacing items in an arraycollection?

 


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

-TH

--- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.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] RemoteObject vs NetConnection features

2008-06-04 Thread [p e r c e p t i c o n]
Hi All,

Using RemoteObject in AS# (as opposed to MXML) I can specify a destination..
In my case I connect to an EJB.
Can I do the same using NetConnection?
If so, how?

thanks

p


Re[flexcoders] ndering Google Maps in Flex

2008-06-04 Thread Manu Dhanda

Hii,

I was just following the example given at Google Maps Flash API to render a
MAP.

Although I can display that MAP if I 'll put that code in my main
mx:Application /. But if I put that same code in my some other component,
say a panel, it doesn't display anything.

Can someone explain me the reasons and correction to my code.

mx:Applicaion code is:

?xml version=1.0 encoding=utf-8?
!-- Copyright 2007 Google Inc. --
!-- All Rights Reserved. --
mx:Application xmlns:mx=http://www.adobe.com/2006/mxml;  layout=absolute
width=100% height=100%
  mx:Panel title=Google Maps API for Flash - Simple Map width=100%
height=100%
mx:UIComponent id=mapContainer 
initialize=startMap(event); 
resize=resizeMap(event) 
width=100% height=100%/
  /mx:Panel
  mx:Script
![CDATA[
import flash.events.Event;
import com.google.maps.MapEvent;
import com.google.maps.Map;
import com.google.maps.MapType;
import com.google.maps.LatLng;

  private var map:Map;

  public function startMap(event:Event):void {
map = new Map();
map.key =
ABQIongH9f4ZHP4IeJgCw10zYxRB2v-9WbAcHLHG39_-iKQOKR3-FBQvCpW-uuLBEvOa5wZW0dlG0GdBEw;
map.addEventListener(MapEvent.MAP_READY, onMapReady);
mapContainer.addChild(map);
  }
  
  public function resizeMap(event:Event):void {
map.setSize(new Point(mapContainer.width, mapContainer.height));
  }
  
  private function onMapReady(event:Event):void {
map.setCenter(new LatLng(40.736072,-73.992062), 14,
MapType.NORMAL_MAP_TYPE);
  }
]]
  /mx:Script
/mx:Application

And my other component code is:

?xml version=1.0 encoding=utf-8?
mx:Panel xmlns:mx=http://www.adobe.com/2006/mxml;
width=100% height=100%
mx:Script
![CDATA[
import flash.events.Event;
import com.google.maps.MapEvent;
import com.google.maps.Map;
import com.google.maps.MapType;
import com.google.maps.LatLng;

private var map:Map;

public function startMap(event:Event):void {
map = new Map();
map.key =
ABQIongH9f4ZHP4IeJgCw10zYxSVtLU3SHysfyQPtFeyjAmupT0j-BQhpynA6DTRLzKcUHMHEsTzg7nZeA;
map.addEventListener(MapEvent.MAP_READY, onMapReady);
mapContainer.addChild(map);
}
  
public function resizeMap(event:Event):void {
map.setSize(new Point(mapContainer.width, 
mapContainer.height));
}
  
private function onMapReady(event:MapEvent):void {
map.setCenter(new LatLng(40.736072,-73.992062), 14,
MapType.NORMAL_MAP_TYPE);
}
]]
/mx:Script
mx:UIComponent id=mapContainer 
initialize=startMap(event); 
resize=resizeMap(event) 
width=100% height=100%/
mx:Button label=Refresh/
/mx:Panel


Anyone with a reason and suggestion??

Thanks,
Manu.
-- 
View this message in context: 
http://www.nabble.com/Rendering-Google-Maps-in-Flex-tp17651222p17651222.html
Sent from the FlexCoders mailing list archive at Nabble.com.



[flexcoders] How to set minimum interval on a chart

2008-06-04 Thread scottyale2008
I can see how to set the vertical axis interval, but what I really 
need is to set the minimum interval.   This basic chart below shows  
alerts, but when there are less  than 10 alerts, my vertical axis 
will show numbers such as .8, 2.8, etc).  I just want whole 
numbers.  I'm afraid if I set the lineralaxis interval to 1, and then 
when I have a couple hundred alerts I won't get the desired effect.



  mx:ColumnChart x=226 y=15 id=alertSummaryChart
height=131 width=100%
showDataTips=true 
dataTipFunction=myDataTipFunction
dataProvider={alertsAC}

mx:horizontalAxis
mx:CategoryAxis categoryField=AlertType/
/mx:horizontalAxis
mx:verticalAxis
  mx:LinearAxis interval=1/
 /mx:verticalAxis

mx:series
mx:ColumnSeries 
xField=AlertType 
yField=data 
displayName=AlertDesc
fill={sc1}
stroke={s1}
fillFunction=columnFill
color=#135D6E
/
/mx:series
  /mx:ColumnChart




[flexcoders] non-transparent cube in flash 10

2008-06-04 Thread Sherif Abdou


 does anyone know how to make this cube solid? i have been trying to figure it 
out
http://sherifabdou.com/?p=33


  

Re: [flexcoders] HTTP request sending from IDE(Flex Builder) ERROR

2008-06-04 Thread Vivian Richard
   Thanks Tracy and all.

   Actually it worked for me all the time. But now as I copied
   one of my project's source code and created a new project (with exactly
   the same code) - this error is occurring but the old project works fine.
   That is why I was thinking may be the way the old project was set up,
   it does not have any problem reading from old destination. I remember
   I had this kind of problem before but it was gone after few times the
error
   occurred but this time it is not going away!!! Oh by the way the very
   first time I ran the new project it did work though but then I cleaned
the
   whole project - that is when it started to show the error message.

   Regards



On Wed, Jun 4, 2008 at 8:42 AM, Tracy Spratt [EMAIL PROTECTED] wrote:

Yes, you should not have to do anything special for this to work under
 FB.  Are you saying you have tried and are having problems?

 Tracy


  --

 *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On
 Behalf Of *Anirudh Sasikumar
 *Sent:* Wednesday, June 04, 2008 6:36 AM
 *To:* flexcoders@yahoogroups.com
 *Subject:* Re: [flexcoders] HTTP request sending from IDE(Flex Builder)
 ERROR



 Hi,

 FlexBuilder automatically trusts the swf file generated by it. So you
 shouldn't have any problem accessing urls with HTTPService.

 You can do this manually by right clicking (control-click on mac) on
 the swf, clicking on Settings, Privacy tab, click on Advanced, Global
 Security Settings, click on Edit Locations popup, Add Location and add
 the swf file so that it is trusted by flash player.

 Cheers,
 --
 Anirudh Sasikumar
 http://anirudhs.chaosnet.org/

  



[flexcoders] Re: HTTP request sending from IDE(Flex Builder) ERROR

2008-06-04 Thread valdhor
Have you checked the compiler settings for each project? Are they
different?


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

Thanks Tracy and all.
 
Actually it worked for me all the time. But now as I copied
one of my project's source code and created a new project (with
exactly
the same code) - this error is occurring but the old project
works fine.
That is why I was thinking may be the way the old project was set up,
it does not have any problem reading from old destination. I remember
I had this kind of problem before but it was gone after few times the
 error
occurred but this time it is not going away!!! Oh by the way the very
first time I ran the new project it did work though but then I
cleaned
 the
whole project - that is when it started to show the error message.
 
Regards
 
 
 
 On Wed, Jun 4, 2008 at 8:42 AM, Tracy Spratt [EMAIL PROTECTED] wrote:
 
 Yes, you should not have to do anything special for this to
work under
  FB.  Are you saying you have tried and are having problems?
 
  Tracy
 
 
   --
 
  *From:* flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] *On
  Behalf Of *Anirudh Sasikumar
  *Sent:* Wednesday, June 04, 2008 6:36 AM
  *To:* flexcoders@yahoogroups.com
  *Subject:* Re: [flexcoders] HTTP request sending from IDE(Flex
Builder)
  ERROR
 
 
 
  Hi,
 
  FlexBuilder automatically trusts the swf file generated by it. So you
  shouldn't have any problem accessing urls with HTTPService.
 
  You can do this manually by right clicking (control-click on mac) on
  the swf, clicking on Settings, Privacy tab, click on Advanced, Global
  Security Settings, click on Edit Locations popup, Add Location and add
  the swf file so that it is trusted by flash player.
 
  Cheers,
  --
  Anirudh Sasikumar
  http://anirudhs.chaosnet.org/
 
   
 





[flexcoders] Get new questions for coding

2008-06-04 Thread g.amit39
Hi Friends,

Moderator, this is not a spam and is one and only mail which i am
sending out of context. So please approve it.

We are a small group and have just launched a new website which
provides tutorial and questions for practice and learning.

So please have a look at it http://www.coderwords.com

If you like it, then maybe just the sake of it, please register at it.
We will not be spamming you in any way so please be assured of that.

Thanks for your cooperation,
Amit



RE: [flexcoders] HTTP request sending from IDE(Flex Builder) ERROR

2008-06-04 Thread Tracy Spratt
Precisely what is the error?

Tracy

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Vivian Richard
Sent: Wednesday, June 04, 2008 1:17 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] HTTP request sending from IDE(Flex Builder)
ERROR

 



   Thanks Tracy and all.

   Actually it worked for me all the time. But now as I copied
   one of my project's source code and created a new project (with
exactly
   the same code) - this error is occurring but the old project works
fine.
   That is why I was thinking may be the way the old project was set up,
   it does not have any problem reading from old destination. I remember
   I had this kind of problem before but it was gone after few times the
error
   occurred but this time it is not going away!!! Oh by the way the very
   first time I ran the new project it did work though but then I
cleaned the 
   whole project - that is when it started to show the error message.

   Regards




On Wed, Jun 4, 2008 at 8:42 AM, Tracy Spratt [EMAIL PROTECTED]
mailto:[EMAIL PROTECTED]  wrote:

Yes, you should not have to do anything special for this to work under
FB.  Are you saying you have tried and are having problems?

Tracy

 



From: flexcoders@yahoogroups.com mailto:flexcoders@yahoogroups.com
[mailto:flexcoders@yahoogroups.com mailto:flexcoders@yahoogroups.com ]
On Behalf Of Anirudh Sasikumar
Sent: Wednesday, June 04, 2008 6:36 AM
To: flexcoders@yahoogroups.com mailto:flexcoders@yahoogroups.com 


Subject: Re: [flexcoders] HTTP request sending from IDE(Flex Builder)
ERROR

 

Hi,



FlexBuilder automatically trusts the swf file generated by it. So you
shouldn't have any problem accessing urls with HTTPService.

You can do this manually by right clicking (control-click on mac) on
the swf, clicking on Settings, Privacy tab, click on Advanced, Global
Security Settings, click on Edit Locations popup, Add Location and add
the swf file so that it is trusted by flash player.

Cheers,
-- 
Anirudh Sasikumar
http://anirudhs.chaosnet.org/ http://anirudhs.chaosnet.org/ 

 

 



Re: [flexcoders] HTTP request sending from IDE(Flex Builder) ERROR

2008-06-04 Thread Vivian Richard
The error is :

 HTTP FAILED Destination: DefaultHTTP Security error accessing url



On Wed, Jun 4, 2008 at 9:57 AM, Tracy Spratt [EMAIL PROTECTED] wrote:

Precisely what is the error?

 Tracy


  --

 *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On
 Behalf Of *Vivian Richard
 *Sent:* Wednesday, June 04, 2008 1:17 PM
 *To:* flexcoders@yahoogroups.com
 *Subject:* Re: [flexcoders] HTTP request sending from IDE(Flex Builder)
 ERROR





Thanks Tracy and all.

Actually it worked for me all the time. But now as I copied
one of my project's source code and created a new project (with exactly
the same code) - this error is occurring but the old project works fine.
That is why I was thinking may be the way the old project was set up,
it does not have any problem reading from old destination. I remember
I had this kind of problem before but it was gone after few times the
 error
occurred but this time it is not going away!!! Oh by the way the very
first time I ran the new project it did work though but then I cleaned
 the
whole project - that is when it started to show the error message.

Regards


  On Wed, Jun 4, 2008 at 8:42 AM, Tracy Spratt [EMAIL PROTECTED]
 wrote:

 Yes, you should not have to do anything special for this to work under FB.
 Are you saying you have tried and are having problems?

 Tracy


  --

 *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On
 Behalf Of *Anirudh Sasikumar
 *Sent:* Wednesday, June 04, 2008 6:36 AM
 *To:* flexcoders@yahoogroups.com


 *Subject:* Re: [flexcoders] HTTP request sending from IDE(Flex Builder)
 ERROR



 Hi,



 FlexBuilder automatically trusts the swf file generated by it. So you
 shouldn't have any problem accessing urls with HTTPService.

 You can do this manually by right clicking (control-click on mac) on
 the swf, clicking on Settings, Privacy tab, click on Advanced, Global
 Security Settings, click on Edit Locations popup, Add Location and add
 the swf file so that it is trusted by flash player.

 Cheers,
 --
 Anirudh Sasikumar
 http://anirudhs.chaosnet.org/



  



Re: [flexcoders] Re: HTTP request sending from IDE(Flex Builder) ERROR

2008-06-04 Thread Vivian Richard
In project properties' Flex compiler section all the parameters
are as same for the both projects.



On Wed, Jun 4, 2008 at 9:28 AM, valdhor [EMAIL PROTECTED] wrote:

   Have you checked the compiler settings for each project? Are they
 different?


 --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Vivian
 Richard [EMAIL PROTECTED] wrote:
 
  Thanks Tracy and all.
 
  Actually it worked for me all the time. But now as I copied
  one of my project's source code and created a new project (with
 exactly
  the same code) - this error is occurring but the old project
 works fine.
  That is why I was thinking may be the way the old project was set up,
  it does not have any problem reading from old destination. I remember
  I had this kind of problem before but it was gone after few times the
  error
  occurred but this time it is not going away!!! Oh by the way the very
  first time I ran the new project it did work though but then I
 cleaned
  the
  whole project - that is when it started to show the error message.
 
  Regards
 
 
 
  On Wed, Jun 4, 2008 at 8:42 AM, Tracy Spratt [EMAIL PROTECTED] wrote:
 
   Yes, you should not have to do anything special for this to
 work under
   FB. Are you saying you have tried and are having problems?
  
   Tracy
  
  
   --
  
   *From:* flexcoders@yahoogroups.com flexcoders%40yahoogroups.com
 [mailto:flexcoders@yahoogroups.com flexcoders%40yahoogroups.com] *On
   Behalf Of *Anirudh Sasikumar
   *Sent:* Wednesday, June 04, 2008 6:36 AM
   *To:* flexcoders@yahoogroups.com flexcoders%40yahoogroups.com
   *Subject:* Re: [flexcoders] HTTP request sending from IDE(Flex
 Builder)
   ERROR
  
  
  
   Hi,
  
   FlexBuilder automatically trusts the swf file generated by it. So you
   shouldn't have any problem accessing urls with HTTPService.
  
   You can do this manually by right clicking (control-click on mac) on
   the swf, clicking on Settings, Privacy tab, click on Advanced, Global
   Security Settings, click on Edit Locations popup, Add Location and add
   the swf file so that it is trusted by flash player.
  
   Cheers,
   --
   Anirudh Sasikumar
   http://anirudhs.chaosnet.org/
  
  
  
 

  



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

2008-06-04 Thread jmfillman
I understand that you can't ever protect your code from everyone. If 
someone really wants to get the code they will figure it out, 
eventually. I'm looking to make it hard enough that most people won't 
bother. I have looked at nitrolm.com, and for me, I'm hesitant to use 
it for a variety of reasons, but it's an intriguing approach.

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

 shameless_product_plug
 nitrolm.com has a new feature I'm working on that allows you to
 encrypt flex/AIR mx:ModuleLoader swfs using public/private keys. 
 You write a modular application (or just put most everything in one
 module). After that, encrypt using NitroLM's AssetEncrypter tool and
 change your tags to nitrolm:EncryptedModuleLoader.  
 
 The code in the module is protected from decompiling because the
 decryption key is stored on the nitrolm server cluster and only
 delivered to the client after a valid NitroLM authentication.
 
 I will be at 360 flex in San Jose, so if you want to see it in 
action,
 stop by the Simplified Logic booth.
 /shameless_product_plug
 
 The advantage I see in doing true encryption over obfuscation is 
that
 the code the user runs is the same that you developed.  With
 obfuscation, you have to worry about bugs introduced by the 
obfuscator
 and cryptic stack traces to figure out when runtime errors do happen
 to occur.
 
 -Andrew
 
 --- In flexcoders@yahoogroups.com, Cato Paus cato1@ wrote:
 
  
  Hello again everyone, how can we protect our code?
  
  How should we go forward in order to protect the methods used to 
change
  the senistive information on user data, some blogs on this?
  
  I found one at a remote-finfig.xml and the use of session id
  
 
 http://www.flexpasta.com/index.php/2008/03/18/flex-using-blazeds-
with-ja\
  va-do-you-care-about-security/
 
 http://www.flexpasta.com/index.php/2008/03/18/flex-using-blazeds-
with-j\
  ava-do-you-care-about-security/
  this is good to have this thread hope we can work together to 
find out
  of this :)
  
  --- In flexcoders@yahoogroups.com, jmfillman jmfillman@ 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: automated image files on a headless server with AIR?

2008-06-04 Thread netdeep

Java programmers all seem to think that running an image generating process in 
a web 
browser window on the server is bad practice.  So I think I might just go 
ahead and 
compile it as an AIR app.  I'm not sure though how to deploy AIR apps though.  
Can they 
go in a .war file?  

If someone has any ideas about this or if there is an aircoders list that 
might better 
answer this question or if going AIR is the wrong approach here please let me 
know.  
Thanks!


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

 
 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 igorcosta@ 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 deepnet@ 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: HTTP request sending from IDE(Flex Builder) ERROR

2008-06-04 Thread Amy
Doesn't HTTPRequest need the compile flag use-network=false set to 
run locally?  URLRequest will work both ways without any special 
flags set.

HTH;

Amy

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

 Precisely what is the error?
 
 Tracy
 
  
 
 
 
 From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On
 Behalf Of Vivian Richard
 Sent: Wednesday, June 04, 2008 1:17 PM
 To: flexcoders@yahoogroups.com
 Subject: Re: [flexcoders] HTTP request sending from IDE(Flex 
Builder)
 ERROR
 
  
 
 
 
Thanks Tracy and all.
 
Actually it worked for me all the time. But now as I copied
one of my project's source code and created a new project (with
 exactly
the same code) - this error is occurring but the old project 
works
 fine.
That is why I was thinking may be the way the old project was 
set up,
it does not have any problem reading from old destination. I 
remember
I had this kind of problem before but it was gone after few 
times the
 error
occurred but this time it is not going away!!! Oh by the way the 
very
first time I ran the new project it did work though but then I
 cleaned the 
whole project - that is when it started to show the error 
message.
 
Regards
 
 
 
 
 On Wed, Jun 4, 2008 at 8:42 AM, Tracy Spratt [EMAIL PROTECTED]
 mailto:[EMAIL PROTECTED]  wrote:
 
 Yes, you should not have to do anything special for this to work 
under
 FB.  Are you saying you have tried and are having problems?
 
 Tracy
 



[flexcoders] Some Characters on Dynamically Loaded Fonts Show Incorrectly

2008-06-04 Thread hawkfansixty
I'm having an issue with dynamically loaded fonts not showing up
correctly.  The fonts are loaded using
StyleManager.loadStyleDeclarations(fonts.swf, true).  As you can see
on the attached image, some characters do not render correctly.  In the
image, the top is Verdana and the bottom is Arial.  Both fonts have
problems with some characters.

The displayed text is from a TextArea with an htmlText of TEXTFORMAT
LEADING='2'P ALIGN='LEFT'FONT FACE='Verdana' SIZE='127'
COLOR='#00' LETTERSPACING='0' KERNING='0'The quick brown fox jumps
over the lazy dog/P/TEXTFORMAT

Anyone have any thoughts as to what might be causing this or what could
be done to resolve the issue?




Re: [flexcoders] Re: HTTP request sending from IDE(Flex Builder) ERROR

2008-06-04 Thread Vivian Richard
 Amy where do I set this? In project property -- Flex compiler
 window I do not see this.

 Thanks..

 Viv



On Wed, Jun 4, 2008 at 10:17 AM, Amy [EMAIL PROTECTED] wrote:

   Doesn't HTTPRequest need the compile flag use-network=false set to
 run locally? URLRequest will work both ways without any special
 flags set.

 HTH;

 Amy


 --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Tracy
 Spratt [EMAIL PROTECTED] wrote:
 
  Precisely what is the error?
 
  Tracy
 
 
 
  
 
  From: flexcoders@yahoogroups.com flexcoders%40yahoogroups.com
 [mailto:flexcoders@yahoogroups.com flexcoders%40yahoogroups.com] On
  Behalf Of Vivian Richard
  Sent: Wednesday, June 04, 2008 1:17 PM
  To: flexcoders@yahoogroups.com flexcoders%40yahoogroups.com
  Subject: Re: [flexcoders] HTTP request sending from IDE(Flex
 Builder)
  ERROR
 
 
 
 
 
  Thanks Tracy and all.
 
  Actually it worked for me all the time. But now as I copied
  one of my project's source code and created a new project (with
  exactly
  the same code) - this error is occurring but the old project
 works
  fine.
  That is why I was thinking may be the way the old project was
 set up,
  it does not have any problem reading from old destination. I
 remember
  I had this kind of problem before but it was gone after few
 times the
  error
  occurred but this time it is not going away!!! Oh by the way the
 very
  first time I ran the new project it did work though but then I
  cleaned the
  whole project - that is when it started to show the error
 message.
 
  Regards
 
 
 
 
  On Wed, Jun 4, 2008 at 8:42 AM, Tracy Spratt [EMAIL PROTECTED]
  mailto:[EMAIL PROTECTED]  wrote:
 
  Yes, you should not have to do anything special for this to work
 under
  FB. Are you saying you have tried and are having problems?
 
  Tracy
 

  



[flexcoders] Re: programmatically showing data tips on a chart

2008-06-04 Thread Don Kerr

I like using a dataTipFunction to control exactly what shows in my
chart's dataTips. See dataTipFunction and HitData .

Here is an example that programatically displays the datatip in the
format I wanted. You set dataTipFunction=dtf in your chart.

public function dtf(hd:HitData):String {
return b+(hd.item.crgDate.getMonth()+1).toString() +
'/'+ hd.item.crgDate.getDate()+/b + br+
hd.item.docNumber + br
+hd.item.type + br 
+hd.item.opr + br;
 }


Don Kerr


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

 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] OLAP

2008-06-04 Thread Dominic Pazula
Has anyone seen or done an integration of with a MDX compliant OLAP 
server?  If so, would you be willing to share your experience?

Thanks
Dom



[flexcoders] custom preloader

2008-06-04 Thread nihilismmachine
does anyone have any code examples of skinning the preloader? I just  
want a textbox with my site name, and a super thin bar with a bar  
holder. anyone? please?

--e


[flexcoders] resizin button with the container Tile

2008-06-04 Thread hworke


   Hi I have a set of buttons that I add
   to a Tile. The Tile is resize able and
   the buttons' width are a % of the Tile's width. But
   When the Tile resizes the child buttons
   do not resize automatically which I thought
   it should since buttons' width is a % of
   tile's width. How do I solve this?

   Thanks...



[flexcoders] #2038: File I/O Error only in firefox

2008-06-04 Thread Dennis Falling
I searched the web and the group and found a thread going about this without
a resolution (started with msg. 88102).  Does anyone know a way around
this?  I need to allow the user to upload files over SSL, which works fine
from IE but explodes in Firefox.

Code:
var url:String =
Services.getCommandServiceURL(FileDelegate.UPLOAD_FILE_COMMAND);
var request:URLRequest = new URLRequest(url);
request.method = URLRequestMethod.POST;
_file.upload(request,fileData,false);

When run in Firefox, I get a flash exception:
Error #2044: Unhandled IOErrorEvent:. text=Error #2038: File I/O Error.

Watching it in Wireshark I see the initial post, then a number of subsequent
lines Continuation or non-HTTP traffic.

Thanks!


Re: [flexcoders] custom preloader

2008-06-04 Thread Jim Cheng

Take a look at the documentation:  Adobe provides a handful of examples 
for hiding, customizing and replacing the preloader's default download 
progress bar.  See:

   http://livedocs.adobe.com/flex/3/html/app_container_4.html


Jim Cheng
EffectiveUI

[EMAIL PROTECTED] wrote:
 
 does anyone have any code examples of skinning the preloader? I just
 want a textbox with my site name, and a super thin bar with a bar
 holder. anyone? please?


Re: [flexcoders] Re: HTTP request sending from IDE(Flex Builder) ERROR

2008-06-04 Thread Sherif Abdou
Flex Compiler
under Additional compiler Argument
do   (include the - sign  that is before use)   
-use-network= false


- Original Message 
From: Vivian Richard [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Wednesday, June 4, 2008 1:22:03 PM
Subject: Re: [flexcoders] Re: HTTP request sending from IDE(Flex Builder) ERROR



 Amy where do I set this? In project property -- Flex compiler
 window I do not see this. 

 Thanks..

 Viv




On Wed, Jun 4, 2008 at 10:17 AM, Amy amyblankenship@ bellsouth. net wrote:

Doesn't HTTPRequest need the compile flag use-network= false set to 
run locally?  URLRequest will work both ways without any special 
flags set.

HTH;

Amy


--- In [EMAIL PROTECTED] ups.com, Tracy Spratt [EMAIL PROTECTED] wrote:

 Precisely what is the error?
 
 Tracy
 
 
 
  _ _ __
 
 From: [EMAIL PROTECTED] ups.com 
[mailto:[EMAIL PROTECTED] ups.com] On
 Behalf Of Vivian Richard
 Sent: Wednesday, June 04, 2008 1:17 PM
 To: [EMAIL PROTECTED] ups.com
 Subject: Re: [flexcoders] HTTP request sending from IDE(Flex 
Builder)
 ERROR
 
 
 
 
 
Thanks Tracy and all.
 
Actually it worked for me all the time. But now as I copied
one of my project's source code and created a new project (with
 exactly
the same code) - this error is occurring but the old project 
works
 fine.
That is why I was thinking may be the way the old project was 
set up,
it does not have any problem reading from old destination. I 
remember
I had this kind of problem before but it was gone after few 
times the
 error
occurred but this time it is not going away!!! Oh by the way the 
very
first time I ran the new project it did work though but then I
 cleaned the 
whole project - that is when it started to show the error 
message.
 
Regards
 
 
 
 

 On Wed, Jun 4, 2008 at 8:42 AM, Tracy Spratt [EMAIL PROTECTED]
 mailto:[EMAIL PROTECTED]  wrote:
 
 Yes, you should not have to do anything special for this to work 
under
 FB.  Are you saying you have tried and are having problems?
 
 Tracy
 

 



  

[flexcoders] Flexbuilder 3 Out of Memory Error

2008-06-04 Thread Jason

I have a co-worker that I am trying to help troubleshoot a 
Flexbuilder 3 issue with on Windows XP.  When she builds the project, 
she gets random crashes in Flexbuilder 3.  Sometimes the project 
builds fine, sometimes it doesn't.

The error is, An out of memory error has occured. Consult 
the Running Eclipse documentation in the readme file etc. 
etc.  

The log file has the error detailed as:
==
!SESSION 2008-06-04 14:39:10.991 
---
eclipse.buildId=unknown
java.version=1.5.0_11
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US
Command-line arguments:  -os win32 -ws win32 -arch x86

!ENTRY org.eclipse.core.jobs 4 2 2008-06-04 14:46:29.455
!MESSAGE An internal error occurred during: Launching Venice (3).
!STACK 0
java.lang.OutOfMemoryError: Java heap space
==

She has 2GB of memory and is not running any other applications in 
her task bar.  She's also tried messing with the XP paging size, to 
no avail. 
 
Any ideas?  Google and Adobe wasn't much help.  Thanks.

Jason Merrill
Bank of America




Re: [flexcoders] Flexbuilder 3 Out of Memory Error

2008-06-04 Thread Sherif Abdou
go in the eclipse.ini file and increase all the numbers there and see if it 
helps

-vmargs
-Xms60m
-Xmx512m
-Djava.net.preferIPv4Stack=true
-Djava.net.preferIPv4Stack=true


- Original Message 
From: Jason [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Wednesday, June 4, 2008 2:00:04 PM
Subject: [flexcoders] Flexbuilder 3 Out of Memory Error



I have a co-worker that I am trying to help troubleshoot a 
Flexbuilder 3 issue with on Windows XP.  When she builds the project, 
she gets random crashes in Flexbuilder 3.  Sometimes the project 
builds fine, sometimes it doesn't.

The error is, An out of memory error has occured. Consult 
the Running Eclipse documentation in the readme file etc. 
etc. 

The log file has the error detailed as:
 = = = = = = 
!SESSION 2008-06-04 14:39:10.991  - - --
---
eclipse.buildId= unknown
java.version= 1.5.0_11
java.vendor= Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US
Command-line arguments:  -os win32 -ws win32 -arch x86

!ENTRY org.eclipse. core.jobs 4 2 2008-06-04 14:46:29.455
!MESSAGE An internal error occurred during: Launching Venice (3).
!STACK 0
java.lang.OutOfMemo ryError: Java heap space
 = = = = = = 

She has 2GB of memory and is not running any other applications in 
her task bar.  She's also tried messing with the XP paging size, to 
no avail. 

Any ideas? Google and Adobe wasn't much help.  Thanks.

Jason Merrill
Bank of America




  

Re: [flexcoders] Thinking about going to the dark side....Apple Mac Book

2008-06-04 Thread Troy Gilbert
 How many Flex developers here are using a Mac for development?

I, too, was a diehard MS guy (not a fanboy, just used many of their
products) up until I got a MBP in June 2006 (first generation with
Intel chips). I used Parallels because many of my tools were Windows
licenses -- actually, it was just my Adobe tools, Flex 2 and CS2, and
I used them at home on a desktop machine.

But now, I basically do all of my dev work on my laptop and, with Flex
3 and CS3, moved all of my licenses to the Mac (which for Flex is
included, but for CS required some *very* painful steps). I couldn't
be happier.

Of course, I still play games on my desktop PC... I messed with
Bootcamp originally but haven't touched it in its final form
(Leopard), where I'm sure it works better.

I'd go with the MBP for any kind of dev machine: the faster hard drive
and additional memory are the two resources that will most benefit
your build times. I sometimes wish Flex Builder was more Mac-like on
the Mac, but I guess it's useful that it's virtually identical to
working under Windows (both the good and bad).

Troy.


[flexcoders] dragDrop function working, but not properly

2008-06-04 Thread bredwards358
I finished a working dragDrop function today, but ran into a bit of a
problem, this is what I have so far, my problem is highlighted in the
comments

private function dragToOrders(event:DragEvent):void
{
 try
 {
 var draggedItems:Object = new Object();
 draggedItems =  event.dragSource.dataForFormat(items);
 var n:int = orderDetailArray.length;

for (var i:int = 0; i  n; i++)
{
//The UnigueID of the dragged items will always remain the
same
//but after the first item is added to the dataProvider of
the dragTarget,
//the variables i and n will always start incremented from
the last insert,
//allowing for duplicate items and not incrementing the Qty
column
  if (orderDetailArray[i].UniqueID == draggedItems.UniqueID)
   {
 orderDetailArray[i].Qty ++;
 event.preventDefault();
 return;
   }
}
 }
 catch(ex:Error)
 {
 trace(ex);
 trace(ex.getStackTrace());
 }
}

As you can see, and as I can see while in the debugger, after the first
item is in the drag target's provider, if I try to add the same item it
will put in a duplicate entry since while the UniqueID of the item I'm
dragging will remain the same, variables i and n will start incremented
from the previous insert. For example, if i and n were 0, after the
first item, they will begin at 1. Of course this means I'm not getting
the correct index being checked when I insert a new item, my question is
how to fix it as I'm not exactly sure at this time. Thanks in advance.

Brian Ross Edwards
Tech-Connect LLC


[flexcoders] List rollOver event item

2008-06-04 Thread jmfillman
How do I identify the item in the list that the mouse rollOver event 
triggers? The selectedItem and selectedIndex fields won't contain the 
correct value, so what do I use?

Thanks...JF



RE: [flexcoders] Re: HTTP request sending from IDE(Flex Builder) ERROR

2008-06-04 Thread Tracy Spratt
Viv, ARE you using a local url?

 

Post the application url and the data service url.

 

Tracy

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Sherif Abdou
Sent: Wednesday, June 04, 2008 3:00 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Re: HTTP request sending from IDE(Flex
Builder) ERROR

 

Flex Compiler
under Additional compiler Argument
do   (include the - sign  that is before use)
-use-network= false

- Original Message 
From: Vivian Richard [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Wednesday, June 4, 2008 1:22:03 PM
Subject: Re: [flexcoders] Re: HTTP request sending from IDE(Flex
Builder) ERROR


 Amy where do I set this? In project property -- Flex compiler
 window I do not see this. 

 Thanks..

 Viv




On Wed, Jun 4, 2008 at 10:17 AM, Amy amyblankenship@ bellsouth. net
mailto:[EMAIL PROTECTED]  wrote:

Doesn't HTTPRequest need the compile flag use-network= false set to 
run locally? URLRequest will work both ways without any special 
flags set.

HTH;

Amy



--- In [EMAIL PROTECTED] ups.com mailto:flexcoders%40yahoogroups.com
, Tracy Spratt [EMAIL PROTECTED] wrote:

 Precisely what is the error?
 
 Tracy
 
 
 
  _ _ __
 
 From: [EMAIL PROTECTED] ups.com
mailto:flexcoders%40yahoogroups.com  
[mailto:[EMAIL PROTECTED] ups.com
mailto:flexcoders%40yahoogroups.com ] On
 Behalf Of Vivian Richard
 Sent: Wednesday, June 04, 2008 1:17 PM
 To: [EMAIL PROTECTED] ups.com mailto:flexcoders%40yahoogroups.com 
 Subject: Re: [flexcoders] HTTP request sending from IDE(Flex 
Builder)
 ERROR
 
 
 
 
 
 Thanks Tracy and all.
 
 Actually it worked for me all the time. But now as I copied
 one of my project's source code and created a new project (with
 exactly
 the same code) - this error is occurring but the old project 
works
 fine.
 That is why I was thinking may be the way the old project was 
set up,
 it does not have any problem reading from old destination. I 
remember
 I had this kind of problem before but it was gone after few 
times the
 error
 occurred but this time it is not going away!!! Oh by the way the 
very
 first time I ran the new project it did work though but then I
 cleaned the 
 whole project - that is when it started to show the error 
message.
 
 Regards
 
 
 
 

 On Wed, Jun 4, 2008 at 8:42 AM, Tracy Spratt [EMAIL PROTECTED]
 mailto:[EMAIL PROTECTED]  wrote:
 
 Yes, you should not have to do anything special for this to work 
under
 FB. Are you saying you have tried and are having problems?
 
 Tracy
 

 

 

 



[flexcoders] how to keep slide thumb in hslide can not be dragged

2008-06-04 Thread markflex2007
Hi

I did this but it just move back and I need set the hslide value from
code and do not allow it draggable.I need the hslide just show the result.

mx:Application xmlns:mx=http://www.adobe.com/2006/mxml;
layout=absolute
mx:HSlider  id=h1 x=89 y=173 minimum=0  maximum=10
value=4 width=260  
 thumbPress=getvalue() allowTrackClick=false
liveDragging=false   change =keepvalue()/
mx:Script
![CDATA[
import mx.controls.Alert;
 
private var temp:Number;


private function keepvalue():void{
  
  
   h1.value = temp;
}

private function getvalue():void{
  
  temp = h1.value;
   
}
]]
/mx:Script
/mx:Application

Please give me a idea

Thanks

Mark



Re: [flexcoders] Re: HTTP request sending from IDE(Flex Builder) ERROR

2008-06-04 Thread Vivian Richard
This is HTTPService URL:

mx:HTTPService id=copy
url=
http://localhost:8080/Main/WebSearchRss?xpage=rdfamp;space=Projectsamp;text=project

resultFormat=e4x showBusyCursor=true/

Since I did not deploy the application, I do not have an application URL.
I am sending and handling the result using Cairngorm.


On Wed, Jun 4, 2008 at 11:32 AM, Tracy Spratt [EMAIL PROTECTED] wrote:

Viv, ARE you using a local url?



 Post the application url and the data service url.



 Tracy


  --

 *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On
 Behalf Of *Sherif Abdou
 *Sent:* Wednesday, June 04, 2008 3:00 PM
 *To:* flexcoders@yahoogroups.com

 *Subject:* Re: [flexcoders] Re: HTTP request sending from IDE(Flex
 Builder) ERROR



 Flex Compiler
 under Additional compiler Argument
 do   (include the - sign  that is before use)
 -use-network= false

 - Original Message 
 From: Vivian Richard [EMAIL PROTECTED]
 To: flexcoders@yahoogroups.com
 Sent: Wednesday, June 4, 2008 1:22:03 PM
 Subject: Re: [flexcoders] Re: HTTP request sending from IDE(Flex Builder)
 ERROR


  Amy where do I set this? In project property -- Flex compiler
  window I do not see this.

  Thanks..

  Viv


  On Wed, Jun 4, 2008 at 10:17 AM, Amy amyblankenship@ bellsouth. net[EMAIL 
 PROTECTED]
 wrote:

 Doesn't HTTPRequest need the compile flag use-network= false set to
 run locally? URLRequest will work both ways without any special
 flags set.

 HTH;

 Amy



 --- In [EMAIL PROTECTED] ups.com flexcoders%40yahoogroups.com, Tracy
 Spratt [EMAIL PROTECTED] wrote:
 
  Precisely what is the error?
 
  Tracy
 
 
 
   _ _ __
 
  From: [EMAIL PROTECTED] ups.com flexcoders%40yahoogroups.com
 [mailto:[EMAIL PROTECTED] ups.com flexcoders%40yahoogroups.com] On
  Behalf Of Vivian Richard
  Sent: Wednesday, June 04, 2008 1:17 PM
  To: [EMAIL PROTECTED] ups.com flexcoders%40yahoogroups.com
  Subject: Re: [flexcoders] HTTP request sending from IDE(Flex
 Builder)
  ERROR
 
 
 
 
 
  Thanks Tracy and all.
 
  Actually it worked for me all the time. But now as I copied
  one of my project's source code and created a new project (with
  exactly
  the same code) - this error is occurring but the old project
 works
  fine.
  That is why I was thinking may be the way the old project was
 set up,
  it does not have any problem reading from old destination. I
 remember
  I had this kind of problem before but it was gone after few
 times the
  error
  occurred but this time it is not going away!!! Oh by the way the
 very
  first time I ran the new project it did work though but then I
  cleaned the
  whole project - that is when it started to show the error
 message.
 
  Regards
 
 
 
 

  On Wed, Jun 4, 2008 at 8:42 AM, Tracy Spratt [EMAIL PROTECTED]
  mailto:[EMAIL PROTECTED]  wrote:
 
  Yes, you should not have to do anything special for this to work
 under
  FB. Are you saying you have tried and are having problems?
 
  Tracy
 





  



[flexcoders] Re: date in dataGrid wrong GMT? Dates sometimes one day off?

2008-06-04 Thread flash.media
Don, Have you accounted for the difference in day formats between AS and CF?
AS 0-6 CF 1-7? Just a thought.
Cheers,
Craig

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

 User selects date from date field. Saves. Date reflected in dataGrid
 displays GMT-05.  Server time zone is GMT-06. Why?
 
 PROBLEM
 The user is scheduling lessons on one day in the future, only to
 return later to see the date slipped back one day automatically.
 Trying to diagnose the problem. Thought it might have something to do
 with how Flex handles the date in the dataGrid?
 
 Any ideas as to why dates would change by one day without user
 intervention?
 
 Thanks,
 Don Kerr






RE: [flexcoders] Re: date in dataGrid wrong GMT? Dates sometimes one day off?

2008-06-04 Thread Kyle Quevillon
http://flexblog.faratasystems.com/?p=289

 

-Kyle

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of flash.media
Sent: Wednesday, June 04, 2008 2:24 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: date in dataGrid wrong GMT? Dates sometimes
one day off?

 

Don, Have you accounted for the difference in day formats between AS and
CF?
AS 0-6 CF 1-7? Just a thought.
Cheers,
Craig

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

 User selects date from date field. Saves. Date reflected in dataGrid
 displays GMT-05. Server time zone is GMT-06. Why?
 
 PROBLEM
 The user is scheduling lessons on one day in the future, only to
 return later to see the date slipped back one day automatically.
 Trying to diagnose the problem. Thought it might have something to do
 with how Flex handles the date in the dataGrid?
 
 Any ideas as to why dates would change by one day without user
 intervention?
 
 Thanks,
 Don Kerr


 



[flexcoders] How can we bring the larger radius bubble in front in the bubble chart?

2008-06-04 Thread amywongwy
Hi,

I know the behavior in the bubble chart is always placed the larger
radius bubble at the back and the small radius bubble in the front.
Is there a way that we can bring a selected bubble in the front?

Thanks.

Cheers,
Amy



[flexcoders] preloader customization (great docs)

2008-06-04 Thread nihilismmachine
Whoever sent me the link for the preloader docs, awsome. One question,  
no what type of preloader I use, it says downloading, then  
initaliazting, then the progress bar only gets to about 65% and then  
my site loads. why is that?




// code

package com.preloader {

import mx.preloaders.*;
import flash.events.ProgressEvent;

public class DownloadProgressBarSubClassMin extends  
DownloadProgressBar {


public function DownloadProgressBarSubClassMin() {
super();
// Set the download label.
downloadingLabel=Downloading Portfolio...
// Set the initialization label.
initializingLabel=Initializing Portfolio...
// Set the minimum display time to 2.5 seconds.
MINIMUM_DISPLAY_TIME=2500;
}

// Override to return true so progress bar appears
// during initialization.
override protected function  
showDisplayForInit(elapsedTime:int, count:int):Boolean {

return true;
}

// Override to return true so progress bar appears during  
download.
override protected function  
showDisplayForDownloading(elapsedTime:int,  
event:ProgressEvent):Boolean {

return true;
}
}

}



[flexcoders] Re: Thinking about going to the dark side....Apple Mac Book

2008-06-04 Thread george_w_canada
I bought my first Macbook last November for home projects.

If you need dual-monitor for development, and has big monitor larger than 
1280X800, buy a 
MBP.


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

 How many Flex developers here are using a Mac for development?  I've 
 been a die hard Microsoft guy since ... well, since Microsoft first 
 started.   I went from CPM on a Morrow Meadows to Microsoft DOS (on 
 computers with a Turbo button!), then Windows, now Vista.  I do have an 
 iPhone and it is an incredible device and the GUI is extremely well 
 done.   I've never used a Mac, but many of my friends have taken the 
 plunge.  Is it time to make the switch?   I'm thinking about a Mac Book 
 Pro.  Is a Mac Book even worth considering for a Flex dev machine or is 
 a Mac Book Pro the way to go?   Anybody else make the switch recently 
 from Windows to Mac?






Re: [flexcoders] SWFLoader doesn't fire complete event

2008-06-04 Thread Joseph Balderson
It shouldn't. @Embed compiles any assets into the application SWF at 
compiletime, so there's no runtime loading, so no complete event.

___

Joseph Balderson | http://joeflash.ca
Flex  Flash Platform Developer | Abobe Certified Developer  Trainer
Author, Professional Flex 3 (coming Winter 2008)
Staff Writer, Community MX | http://communitymx.com/author.cfm?cid=4674



Alex Harui wrote:
 I’d have to double-check, but I don’t think @Embed’s generate a complete 
 event since it isn’t an external asynchronous load.
 
  
 
 
 
 *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] 
 *On Behalf Of *Joan Lafferty
 *Sent:* Sunday, June 01, 2008 8:28 PM
 *To:* flexcoders@yahoogroups.com
 *Subject:* RE: [flexcoders] SWFLoader doesn't fire complete event
 
  
 
 You could also try adding a listener to the SWFLoader for the “complete” 
 event in the initialize or preinitialize event. Since both your complete 
 event and source are defined in mxml, if the source loads really 
 quickly, you probably will miss the event. Try:
 
  
 
  
 
 mx:SWFLoader id=”thisSWF” source='@Embed(source=deleteme.swf)' 
 preinitialize=”thisSWF.addEventListener(‘complete', onComplete)” /
 
 
 
 
 
 *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] 
 *On Behalf Of *Pete Miller
 *Sent:* Sunday, June 01, 2008 7:17 PM
 *To:* flexcoders@yahoogroups.com
 *Subject:* [flexcoders] SWFLoader doesn't fire complete event
 
  
 
 I have problems with getting the 'complete' event to occur in an 
 application I'm working on, so I wrote this:
 
 ?xml version=1.0 encoding=utf-8?
 mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=absolute
 
 mx:Script
 ![CDATA[
 import mx.events.*;
 import mx.controls.Alert;
 
 public function onComplete():void {
 Alert.show('Complete!', '', Alert.OK, this);
 }
 ]]
 /mx:Script
 
 mx:SWFLoader source='@Embed(source=deleteme.swf)' 
 complete='onComplete()' /
 
 /mx:Application
 
 
 This doesn't work either.  If I can see the swf on the screen, then why 
 don't I get the 'complete' event?
 
 P.
 
 
 
 Keep your kids safer online with Windows Live Family Safety. Help 
 protect your kids. 
 http://www.windowslive.com/family_safety/overview.html?ocid=TXT_TAGLM_WL_Refresh_family_safety_052008
  
 
 
 



--
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: Retrieving instence name?

2008-06-04 Thread flexawesome
event.currentTarget.name seem doesn't work. :(




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

 Hey, is that possible to retrieve the instence name for imgLoad ?
 
 # in this example, it calls init2 from init1 and know the instence 
name 
 is test but I would like to retrieve it from event or other ways, 
is 
 that possible?
 
 
 http://www.privatepaste.com/e4RWWrMIAW
 
 Thank you





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

2008-06-04 Thread Joseph Balderson
What you both just described is obfuscation, not encryption. And there 
are varying levels of obfuscation. The barest level is replacing all 
props with _loc_1, whcih is child's play. I think what Andrew is 
referring to is strong obfuscation, that will replace vars with a 
meaningless string of characters which include illegal characters. The 
SWF will still play fine, but the moment you try and decompile into 
classes and recompile, you get a zillion compiler errors from all the 
illegal characters, and the code is completely intelligible, cause all 
custom class members have been replaced by goobledygook. That is what I 
call strong obfuscation.

True SWF encryption is only possible with code injection decrypted at 
runtime, using either encrypted data or preferably over a secure 
streaming connection (RTMPE or the like) as far as I know, though I've 
never actually seen anyone go to the trouble.


___

Joseph Balderson | http://joeflash.ca
Flex  Flash Platform Developer | Abobe Certified Developer  Trainer
Author, Professional Flex 3 (coming Winter 2008)
Staff Writer, Community MX | http://communitymx.com/author.cfm?cid=4674



Sherif Abdou wrote:
 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
 
 
 


RE: [flexcoders] Re: HTTP request sending from IDE(Flex Builder) ERROR

2008-06-04 Thread Tracy Spratt
Ok, that is not a local (filesystem) url so the use-network default
should be fine.  It really should not be an issue under FB anyway.

 

You are running the app from within FB, by clicking the Run button
correct?  And *not* doubleclicking on the app.html file in the Windows
Explorer, correct?

 

Tracy

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Vivian Richard
Sent: Wednesday, June 04, 2008 3:26 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Re: HTTP request sending from IDE(Flex
Builder) ERROR

 


This is HTTPService URL:

mx:HTTPService id=copy
 
url=http://localhost:8080/Main/WebSearchRss?xpage=rdfamp;space=Project
samp;text=project
http://localhost:8080/Main/WebSearchRss?xpage=rdfamp;space=Projectsam
p;text=project 
resultFormat=e4x showBusyCursor=true/

Since I did not deploy the application, I do not have an application
URL.
I am sending and handling the result using Cairngorm.



On Wed, Jun 4, 2008 at 11:32 AM, Tracy Spratt [EMAIL PROTECTED]
mailto:[EMAIL PROTECTED]  wrote:

Viv, ARE you using a local url?

 

Post the application url and the data service url.

 

Tracy

 



From: flexcoders@yahoogroups.com mailto:flexcoders@yahoogroups.com
[mailto:flexcoders@yahoogroups.com mailto:flexcoders@yahoogroups.com ]
On Behalf Of Sherif Abdou
Sent: Wednesday, June 04, 2008 3:00 PM
To: flexcoders@yahoogroups.com mailto:flexcoders@yahoogroups.com 


Subject: Re: [flexcoders] Re: HTTP request sending from IDE(Flex
Builder) ERROR

 

Flex Compiler
under Additional compiler Argument
do   (include the - sign  that is before use)
-use-network= false

- Original Message 
From: Vivian Richard [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] 
To: flexcoders@yahoogroups.com mailto:flexcoders@yahoogroups.com 
Sent: Wednesday, June 4, 2008 1:22:03 PM
Subject: Re: [flexcoders] Re: HTTP request sending from IDE(Flex
Builder) ERROR


 Amy where do I set this? In project property -- Flex compiler
 window I do not see this. 

 Thanks..

 Viv



On Wed, Jun 4, 2008 at 10:17 AM, Amy amyblankenship@ bellsouth. net
mailto:[EMAIL PROTECTED]  wrote:

Doesn't HTTPRequest need the compile flag use-network= false set to 
run locally? URLRequest will work both ways without any special 
flags set.

HTH;

Amy



--- In [EMAIL PROTECTED] ups.com mailto:flexcoders%40yahoogroups.com
, Tracy Spratt [EMAIL PROTECTED] wrote:

 Precisely what is the error?
 
 Tracy
 
 
 
  _ _ __
 
 From: [EMAIL PROTECTED] ups.com
mailto:flexcoders%40yahoogroups.com  
[mailto:[EMAIL PROTECTED] ups.com
mailto:flexcoders%40yahoogroups.com ] On
 Behalf Of Vivian Richard
 Sent: Wednesday, June 04, 2008 1:17 PM
 To: [EMAIL PROTECTED] ups.com mailto:flexcoders%40yahoogroups.com 
 Subject: Re: [flexcoders] HTTP request sending from IDE(Flex 
Builder)
 ERROR
 
 
 
 
 
 Thanks Tracy and all.
 
 Actually it worked for me all the time. But now as I copied
 one of my project's source code and created a new project (with
 exactly
 the same code) - this error is occurring but the old project 
works
 fine.
 That is why I was thinking may be the way the old project was 
set up,
 it does not have any problem reading from old destination. I 
remember
 I had this kind of problem before but it was gone after few 
times the
 error
 occurred but this time it is not going away!!! Oh by the way the 
very
 first time I ran the new project it did work though but then I
 cleaned the 
 whole project - that is when it started to show the error 
message.
 
 Regards
 
 
 
 

 On Wed, Jun 4, 2008 at 8:42 AM, Tracy Spratt [EMAIL PROTECTED]
 mailto:[EMAIL PROTECTED]  wrote:
 
 Yes, you should not have to do anything special for this to work 
under
 FB. Are you saying you have tried and are having problems?
 
 Tracy
 

 

 

 

 



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

2008-06-04 Thread Joseph Balderson
I meant to say ...and the code is completely _un_intelligible...
___

Joseph Balderson | http://joeflash.ca
Flex  Flash Platform Developer | Abobe Certified Developer  Trainer
Author, Professional Flex 3 (coming Winter 2008)
Staff Writer, Community MX | http://communitymx.com/author.cfm?cid=4674



Joseph Balderson wrote:
 What you both just described is obfuscation, not encryption. And there 
 are varying levels of obfuscation. The barest level is replacing all 
 props with _loc_1, whcih is child's play. I think what Andrew is 
 referring to is strong obfuscation, that will replace vars with a 
 meaningless string of characters which include illegal characters. The 
 SWF will still play fine, but the moment you try and decompile into 
 classes and recompile, you get a zillion compiler errors from all the 
 illegal characters, and the code is completely intelligible, cause all 
 custom class members have been replaced by goobledygook. That is what I 
 call strong obfuscation.
 
 True SWF encryption is only possible with code injection decrypted at 
 runtime, using either encrypted data or preferably over a secure 
 streaming connection (RTMPE or the like) as far as I know, though I've 
 never actually seen anyone go to the trouble.
 
 
 ___
 
 Joseph Balderson | http://joeflash.ca
 Flex  Flash Platform Developer | Abobe Certified Developer  Trainer
 Author, Professional Flex 3 (coming Winter 2008)
 Staff Writer, Community MX | http://communitymx.com/author.cfm?cid=4674
 
 
 
 Sherif Abdou wrote:
 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 Mailing List
 FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
 Search Archives: 
 http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links
 
 
 
 


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

2008-06-04 Thread Joseph Balderson
Either your file is corrupted, or the path to the file cannot be found, 
and you've not created an IOError event handler to catch the event.
___

Joseph Balderson | http://joeflash.ca
Flex  Flash Platform Developer | Abobe Certified Developer  Trainer
Author, Professional Flex 3 (coming Winter 2008)
Staff Writer, Community MX | http://communitymx.com/author.cfm?cid=4674



Dennis Falling wrote:
 I searched the web and the group and found a thread going about this 
 without a resolution (started with msg. 88102).  Does anyone know a way 
 around this?  I need to allow the user to upload files over SSL, which 
 works fine from IE but explodes in Firefox.
 
 Code:
 var url:String = 
 Services.getCommandServiceURL(FileDelegate.UPLOAD_FILE_COMMAND);
 var request:URLRequest = new URLRequest(url);
 request.method = URLRequestMethod.POST;
 _file.upload(request,fileData,false);
 
 When run in Firefox, I get a flash exception:
 Error #2044: Unhandled IOErrorEvent:. text=Error #2038: File I/O Error.
 
 Watching it in Wireshark I see the initial post, then a number of 
 subsequent lines Continuation or non-HTTP traffic.
 
 Thanks!
 


Re: [flexcoders] Dynamic TextArea creation

2008-06-04 Thread Tiago Santarosa

thanks.
solved one of my problems...

see you!


On Jun 3, 2008, at 4:54 PM, Gordon Smith wrote:



Make an Array instance variable



mx:Script

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

/mx:Script



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 = newTextArea();

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.







Re: [flexcoders] Re: HTTP request sending from IDE(Flex Builder) ERROR

2008-06-04 Thread Vivian Richard
   Yes correct. This exact application works fine but when
   I copied it to another project()the source folder) it started
   giving this error. Still the original works fine.




On Wed, Jun 4, 2008 at 12:47 PM, Tracy Spratt [EMAIL PROTECTED] wrote:

Ok, that is not a local (filesystem) url so the use-network default
 should be fine.  It really should not be an issue under FB anyway.



 You are running the app from within FB, by clicking the Run button
 correct?  And **not** doubleclicking on the app.html file in the Windows
 Explorer, correct?



 Tracy


  --

 *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On
 Behalf Of *Vivian Richard
 *Sent:* Wednesday, June 04, 2008 3:26 PM

 *To:* flexcoders@yahoogroups.com
 *Subject:* Re: [flexcoders] Re: HTTP request sending from IDE(Flex
 Builder) ERROR




 This is HTTPService URL:

 mx:HTTPService id=copy
 url=
 http://localhost:8080/Main/WebSearchRss?xpage=rdfamp;space=Projectsamp;text=projecthttp://localhost:8080/Main/WebSearchRss?xpage=rdfspace=Projectstext=project
 
 resultFormat=e4x showBusyCursor=true/

 Since I did not deploy the application, I do not have an application URL.
 I am sending and handling the result using Cairngorm.

  On Wed, Jun 4, 2008 at 11:32 AM, Tracy Spratt [EMAIL PROTECTED]
 wrote:

 Viv, ARE you using a local url?



 Post the application url and the data service url.



 Tracy


  --

 *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On
 Behalf Of *Sherif Abdou
 *Sent:* Wednesday, June 04, 2008 3:00 PM
 *To:* flexcoders@yahoogroups.com


 *Subject:* Re: [flexcoders] Re: HTTP request sending from IDE(Flex
 Builder) ERROR



 Flex Compiler
 under Additional compiler Argument
 do   (include the - sign  that is before use)
 -use-network= false

 - Original Message 
 From: Vivian Richard [EMAIL PROTECTED]
 To: flexcoders@yahoogroups.com
 Sent: Wednesday, June 4, 2008 1:22:03 PM
 Subject: Re: [flexcoders] Re: HTTP request sending from IDE(Flex Builder)
 ERROR


  Amy where do I set this? In project property -- Flex compiler
  window I do not see this.

  Thanks..

  Viv

  On Wed, Jun 4, 2008 at 10:17 AM, Amy amyblankenship@ bellsouth. net[EMAIL 
 PROTECTED]
 wrote:

 Doesn't HTTPRequest need the compile flag use-network= false set to
 run locally? URLRequest will work both ways without any special
 flags set.

 HTH;

 Amy



 --- In [EMAIL PROTECTED] ups.com flexcoders%40yahoogroups.com, Tracy
 Spratt [EMAIL PROTECTED] wrote:
 
  Precisely what is the error?
 
  Tracy
 
 
 
   _ _ __
 
  From: [EMAIL PROTECTED] ups.com flexcoders%40yahoogroups.com
 [mailto:[EMAIL PROTECTED] ups.com flexcoders%40yahoogroups.com] On
  Behalf Of Vivian Richard
  Sent: Wednesday, June 04, 2008 1:17 PM
  To: [EMAIL PROTECTED] ups.com flexcoders%40yahoogroups.com
  Subject: Re: [flexcoders] HTTP request sending from IDE(Flex
 Builder)
  ERROR
 
 
 
 
 
  Thanks Tracy and all.
 
  Actually it worked for me all the time. But now as I copied
  one of my project's source code and created a new project (with
  exactly
  the same code) - this error is occurring but the old project
 works
  fine.
  That is why I was thinking may be the way the old project was
 set up,
  it does not have any problem reading from old destination. I
 remember
  I had this kind of problem before but it was gone after few
 times the
  error
  occurred but this time it is not going away!!! Oh by the way the
 very
  first time I ran the new project it did work though but then I
  cleaned the
  whole project - that is when it started to show the error
 message.
 
  Regards
 
 
 
 

  On Wed, Jun 4, 2008 at 8:42 AM, Tracy Spratt [EMAIL PROTECTED]
  mailto:[EMAIL PROTECTED]  wrote:
 
  Yes, you should not have to do anything special for this to work
 under
  FB. Are you saying you have tried and are having problems?
 
  Tracy
 







  



RE: [flexcoders] Re: HTTP request sending from IDE(Flex Builder) ERROR

2008-06-04 Thread Tracy Spratt
Strange.

 

Suppose you imported the old project into a new one instead of manually
doing it?  Point to the old project and uncheck use default, and brows
to new location, it will copy the files.

 

Tracy

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Vivian Richard
Sent: Wednesday, June 04, 2008 4:53 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Re: HTTP request sending from IDE(Flex
Builder) ERROR

 



   Yes correct. This exact application works fine but when
   I copied it to another project()the source folder) it started 
   giving this error. Still the original works fine.





On Wed, Jun 4, 2008 at 12:47 PM, Tracy Spratt [EMAIL PROTECTED]
mailto:[EMAIL PROTECTED]  wrote:

Ok, that is not a local (filesystem) url so the use-network default
should be fine.  It really should not be an issue under FB anyway.

 

You are running the app from within FB, by clicking the Run button
correct?  And *not* doubleclicking on the app.html file in the Windows
Explorer, correct?

 

Tracy

 



From: flexcoders@yahoogroups.com mailto:flexcoders@yahoogroups.com
[mailto:flexcoders@yahoogroups.com mailto:flexcoders@yahoogroups.com ]
On Behalf Of Vivian Richard
Sent: Wednesday, June 04, 2008 3:26 PM


To: flexcoders@yahoogroups.com mailto:flexcoders@yahoogroups.com 
Subject: Re: [flexcoders] Re: HTTP request sending from IDE(Flex
Builder) ERROR

 


This is HTTPService URL:

mx:HTTPService id=copy
 
url=http://localhost:8080/Main/WebSearchRss?xpage=rdfamp;space=Project
samp;text=project
http://localhost:8080/Main/WebSearchRss?xpage=rdfspace=Projectstext=p
roject 
resultFormat=e4x showBusyCursor=true/

Since I did not deploy the application, I do not have an application
URL.
I am sending and handling the result using Cairngorm.

On Wed, Jun 4, 2008 at 11:32 AM, Tracy Spratt [EMAIL PROTECTED]
mailto:[EMAIL PROTECTED]  wrote:

Viv, ARE you using a local url?

 

Post the application url and the data service url.

 

Tracy

 



From: flexcoders@yahoogroups.com mailto:flexcoders@yahoogroups.com
[mailto:flexcoders@yahoogroups.com mailto:flexcoders@yahoogroups.com ]
On Behalf Of Sherif Abdou
Sent: Wednesday, June 04, 2008 3:00 PM
To: flexcoders@yahoogroups.com mailto:flexcoders@yahoogroups.com 


Subject: Re: [flexcoders] Re: HTTP request sending from IDE(Flex
Builder) ERROR

 

Flex Compiler
under Additional compiler Argument
do   (include the - sign  that is before use)
-use-network= false

- Original Message 
From: Vivian Richard [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] 
To: flexcoders@yahoogroups.com mailto:flexcoders@yahoogroups.com 
Sent: Wednesday, June 4, 2008 1:22:03 PM
Subject: Re: [flexcoders] Re: HTTP request sending from IDE(Flex
Builder) ERROR


 Amy where do I set this? In project property -- Flex compiler
 window I do not see this. 

 Thanks..

 Viv

On Wed, Jun 4, 2008 at 10:17 AM, Amy amyblankenship@ bellsouth. net
mailto:[EMAIL PROTECTED]  wrote:

Doesn't HTTPRequest need the compile flag use-network= false set to 
run locally? URLRequest will work both ways without any special 
flags set.

HTH;

Amy



--- In [EMAIL PROTECTED] ups.com mailto:flexcoders%40yahoogroups.com
, Tracy Spratt [EMAIL PROTECTED] wrote:

 Precisely what is the error?
 
 Tracy
 
 
 
  _ _ __
 
 From: [EMAIL PROTECTED] ups.com
mailto:flexcoders%40yahoogroups.com  
[mailto:[EMAIL PROTECTED] ups.com
mailto:flexcoders%40yahoogroups.com ] On
 Behalf Of Vivian Richard
 Sent: Wednesday, June 04, 2008 1:17 PM
 To: [EMAIL PROTECTED] ups.com mailto:flexcoders%40yahoogroups.com 
 Subject: Re: [flexcoders] HTTP request sending from IDE(Flex 
Builder)
 ERROR
 
 
 
 
 
 Thanks Tracy and all.
 
 Actually it worked for me all the time. But now as I copied
 one of my project's source code and created a new project (with
 exactly
 the same code) - this error is occurring but the old project 
works
 fine.
 That is why I was thinking may be the way the old project was 
set up,
 it does not have any problem reading from old destination. I 
remember
 I had this kind of problem before but it was gone after few 
times the
 error
 occurred but this time it is not going away!!! Oh by the way the 
very
 first time I ran the new project it did work though but then I
 cleaned the 
 whole project - that is when it started to show the error 
message.
 
 Regards
 
 
 
 

 On Wed, Jun 4, 2008 at 8:42 AM, Tracy Spratt [EMAIL PROTECTED]
 mailto:[EMAIL PROTECTED]  wrote:
 
 Yes, you should not have to do anything special for this to work 
under
 FB. Are you saying you have tried and are having problems?
 
 Tracy
 

 

 

 

 

 



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

2008-06-04 Thread Doug McCune
Just to clarify, Andrew is in fact talking about encryption, not
obfuscation. The NitroLM product (which I have not used) actually does raw
byte encryption on your swf, which then gets loaded by a wrapper swf and
decrypted at runtime based on a secret key that gets sent over a secure
connection after valid credentials are passed to the server. You would have
to be able to crack the swf encryption before a decompiler would even be
able to give you any decompiled code.

Doug

On Wed, Jun 4, 2008 at 1:35 PM, Joseph Balderson [EMAIL PROTECTED] wrote:

   I meant to say ...and the code is completely _un_intelligible...

 __

 Joseph Balderson | http://joeflash.ca
 Flex  Flash Platform Developer | Abobe Certified Developer  Trainer
 Author, Professional Flex 3 (coming Winter 2008)
 Staff Writer, Community MX | http://communitymx.com/author.cfm?cid=4674

 Joseph Balderson wrote:
  What you both just described is obfuscation, not encryption. And there
  are varying levels of obfuscation. The barest level is replacing all
  props with _loc_1, whcih is child's play. I think what Andrew is
  referring to is strong obfuscation, that will replace vars with a
  meaningless string of characters which include illegal characters. The
  SWF will still play fine, but the moment you try and decompile into
  classes and recompile, you get a zillion compiler errors from all the
  illegal characters, and the code is completely intelligible, cause all
  custom class members have been replaced by goobledygook. That is what I
  call strong obfuscation.
 
  True SWF encryption is only possible with code injection decrypted at
  runtime, using either encrypted data or preferably over a secure
  streaming connection (RTMPE or the like) as far as I know, though I've
  never actually seen anyone go to the trouble.
 
 
  __
 
  Joseph Balderson | http://joeflash.ca
  Flex  Flash Platform Developer | Abobe Certified Developer  Trainer
  Author, Professional Flex 3 (coming Winter 2008)
  Staff Writer, Community MX | http://communitymx.com/author.cfm?cid=4674
 
 
 
  Sherif Abdou wrote:
  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]andrewwestberg%40gmail.com
 
  To: flexcoders@yahoogroups.com flexcoders%40yahoogroups.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 Mailing List
  FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
  Search Archives:
 http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups
 Links
 
 
 
 
  



RE: [flexcoders] dragDrop function working, but not properly

2008-06-04 Thread Alex Harui
I'd double check.  The for loop must be starting with I == 0.  It can't
be starting at 1.

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of bredwards358
Sent: Wednesday, June 04, 2008 12:09 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] dragDrop function working, but not properly

 

I finished a working dragDrop function today, but ran into a bit of a
problem, this is what I have so far, my problem is highlighted in the
comments

private function dragToOrders(event:DragEvent):void
{
try
{
var draggedItems:Object = new Object();
draggedItems =  event.dragSource.dataForFormat(items);
var n:int = orderDetailArray.length;

   for (var i:int = 0; i  n; i++)
   {
   //The UnigueID of the dragg! ed items will always remain the
same
   //but after the first item is added to the dataProvider of
the dragTarget,
   //the variables i and n will always start incremented from
the last insert,
   //allowing for duplicate items and not incrementing the Qty
column
 if (orderDetailArray[i].UniqueID == draggedItems.UniqueID)
  {
orderDetailArray[i].Qty ++;
event.preventDefault();
return;
nbs! p; } nbs! p; 
   }
}
catch(ex:Error)
{
trace(ex);
trace(ex.getStackTrace());
}
}

As you can see, and as I can see while in the debugger, after the first
item is in the drag target's provider, if I try to add the same item it
will put in a duplicate entry since while the UniqueID of the item I'm
dragging will remain the same, variables i and n will start incremented
from the previous insert. For example, if i and n were 0, after the
first item, they will begin at 1. Of course this means I'm not getting
the correct index being checked when I insert a new item, my question is
how to fix it as I'm not exactly sure at this time. Thanks in advance.

Brian Ross Edwards
Tech-Conne! ct LLC 

 



RE: [flexcoders] Re: How to remeasure itemRenderer

2008-06-04 Thread Alex Harui
I can try to take a look over the weekend.  I would break on
makeRowsAndColumns in the DataGrid.  If it gets hit, then recycling is
underway.

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Amy
Sent: Wednesday, June 04, 2008 9:36 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: How to remeasure itemRenderer

 

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

 Is that verbatim from the renderer code or somewhere else? How does
 handleLabelClick get called?

That is from my renderer code. It's just a click handler on a canvas 
that contains a label.

 I would check to see if the validation of the size causes renderers to
 be recycled, defeating your addChild. Normally, you need to change a
 property somewhere so that any renderer that is recycled in for that
 data item will know to have that new child.
 

Would the recycling be happening in the itemRendererToIndices call? 

Before the item.invalidateSizeFlag switches to false in that call, the 
item variable is com.magnoliamultimedia.views.TestRenderer (@4873479). 
After the flag switches, it is still 
com.magnoliamultimedia.views.TestRenderer (@4873479). Wouldn't that 
mean that this is still the same renderer? If not, how would I detect 
that recycling is happening?

The flag seems to be switching to false without going into any code 
that checks it. However, I don't wholly know what might be happening 
in some compiled code the debugger might not be showing me, which is 
part of why I asked the question.

If I uploaded my code, would you have time/interest to look at it?

Thanks;

Amy

 



RE: [flexcoders] Re: Retrieving instence name?

2008-06-04 Thread Alex Harui
Try event.currentTarget.toString()

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of flexawesome
Sent: Wednesday, June 04, 2008 1:25 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Retrieving instence name?

 

event.currentTarget.name seem doesn't work. :(

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

 Hey, is that possible to retrieve the instence name for imgLoad ?
 
 # in this example, it calls init2 from init1 and know the instence 
name 
 is test but I would like to retrieve it from event or other ways, 
is 
 that possible?
 
 
 http://www.privatepaste.com/e4RWWrMIAW
http://www.privatepaste.com/e4RWWrMIAW 
 
 Thank you


 



  1   2   >