[flexcoders] How do I pause

2007-10-29 Thread [EMAIL PROTECTED]
My movie changes states when the user hits a button, but I want it to 
pause for 5 seconds. How do I do that ? I see something about pausing a 
sequence in the documentation. do I have to create a sequence first ?


Re: [flexcoders] Error with htmlText property of TextArea - Error #2044: Unhandled IOErrorEvent:. text=Error #2124: Loaded file is an unknown type?

2007-10-29 Thread arpan srivastava

Thanks Dan, i am now able to get rid of this error. what i am doing is, 
when IOErrorEvent is fired i am removing the images from the htmlText and just 
displaying the text.

- Original Message 
From: Daniel Freiman [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Sunday, October 28, 2007 10:39:49 PM
Subject: Re: [flexcoders] Error with htmlText property of TextArea - Error 
#2044: Unhandled IOErrorEvent:. text=Error #2124: Loaded file is an unknown 
type?










  



Ok, if you're getting this from an rss feed then you're not going 
to like this.  Also this solution uses mx_internal.  If you don't know what 
that is, it's a set of methods/properties, that adobe says may change so they 
should be used with extreme care because your code might break on updates.  
However, in this case we're using it once to avoid creating a subclass so I 
think it's a fair trade.



import mx.core.mx_internal ;
use namespace mx_internal; // this line should be right after the import 
statements.
...
textArea.htmlText = rssText;
textArea.validatePr operties( ); // initializes image loaders

var textField:UITextFie ld = textArea.getTextFie ld(); // mx_internal line to 
get textField of TextArea

for (each imageID in rssText) { // how you actually implement this psuedo code 
line depends on the rssText you already have
   var loader:Loader = textField.getImageR eference( imageID) as Loader;
  var loaderInfo:LoaderIn fo = 
loader.contentLoade rInfo;
  if (loaderInfo. bytesLoaded != loaderInfo.bytesTot al) {  // it would be 
pointless to add listeners to loaders that have completed
 loaderInfo.addEvent Listener( IOErrorEvent. IO_ERROR, imageLoaderErrorLis 
tener); // you might want to use weakReference here for memory management if it 
works.

   }
}

public function imageLoaderErrorLis tener(event: IOErrorEvent) :void {
   // inform user if you want.
}

- Dan Freiman


On 10/28/07, 
arpan srivastava [EMAIL PROTECTED] com wrote:













  




Hi Dan,

There is no stacktrace, this is the only thing i get. 


- Original Message 
From: Daniel Freiman 
[EMAIL PROTECTED] com
To: [EMAIL PROTECTED] ups.com
Sent: Saturday, October 27, 2007 9:02:27 PM

Subject: Re: [flexcoders] Error with htmlText property of TextArea - Error 
#2044: Unhandled IOErrorEvent: . text=Error #2124: Loaded file is an unknown 
type?











Can you post the stack trace from the error?

- Dan Freiman


On 10/27/07, arpan srivastava 
[EMAIL PROTECTED] com
 wrote:












  




Hi All,

 i am creating a rss reader for which i am using
TextArea to display RSS description which is simple html text.
Sometimes i am getting this error:

Error #2044: Unhandled IOErrorEvent: . text=Error #2124: Loaded file is an 
unknown type


I have also put a try and catch but it is not getting caught. Also, TextArea 
does not have any IOErrorEvent event. I think it is due to loading of images 
from img, it comes very randomly. Can anyone help me with this problem?


-- 
Thanks,
Arpan


 _ _ _ _ __
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 


http://mail. yahoo.com 


  


























  








 _ _ _ _ __
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 

http://mail. yahoo.com 


  


























  







!--

#ygrp-mkp{
border:1px solid #d8d8d8;font-family:Arial;margin:14px 0px;padding:0px 14px;}
#ygrp-mkp hr{
border:1px solid #d8d8d8;}
#ygrp-mkp #hd{
color:#628c2a;font-size:85%;font-weight:bold;line-height:122%;margin:10px 0px;}
#ygrp-mkp #ads{
margin-bottom:10px;}
#ygrp-mkp .ad{
padding:0 0;}
#ygrp-mkp .ad a{
color:#ff;text-decoration:none;}
--



!--

#ygrp-sponsor #ygrp-lc{
font-family:Arial;}
#ygrp-sponsor #ygrp-lc #hd{
margin:10px 0px;font-weight:bold;font-size:78%;line-height:122%;}
#ygrp-sponsor #ygrp-lc .ad{
margin-bottom:10px;padding:0 0;}
--



!--

#ygrp-mlmsg {font-size:13px;font-family:arial, helvetica, clean, sans-serif;}
#ygrp-mlmsg table {font-size:inherit;font:100%;}
#ygrp-mlmsg select, input, textarea {font:99% arial, helvetica, clean, 
sans-serif;}
#ygrp-mlmsg pre, code {font:115% monospace;}
#ygrp-mlmsg * {line-height:1.22em;}
#ygrp-text{
font-family:Georgia;
}
#ygrp-text p{
margin:0 0 1em 0;}
#ygrp-tpmsgs{
font-family:Arial;
clear:both;}
#ygrp-vitnav{
padding-top:10px;font-family:Verdana;font-size:77%;margin:0;}
#ygrp-vitnav a{
padding:0 1px;}
#ygrp-actbar{
clear:both;margin:25px 0;white-space:nowrap;color:#666;text-align:right;}
#ygrp-actbar .left{
float:left;white-space:nowrap;}
.bld{font-weight:bold;}
#ygrp-grft{
font-family:Verdana;font-size:77%;padding:15px 0;}
#ygrp-ft{
font-family:verdana;font-size:77%;border-top:1px solid #666;
padding:5px 0;
}
#ygrp-mlmsg #logo{
padding-bottom:10px;}

#ygrp-vital{

[flexcoders]Simple method to separate the textarea from the control toolbar in the rich text editor

2007-10-29 Thread dorkie dork from dorktown
Is there a simple method to separate the Textarea from the control toolbar
in the Rich Text Editor control?


[flexcoders] load an image inside a UIComponent

2007-10-29 Thread flashcrow2000
Hello,

I have the following situation: I have an AS class which extends
UIComponent, and based on some settings read from an xml, I must load
an image, a movie or display a text inside that class.

When I'm creating the image, and adding it with addChild(imageObject),
if I don't set some values for width and height, it will not display.
Can I find out the original width and height of the picture after it
has been displayed this way?

As a quick remark, if I use parent.addChild(imageObject) (where parent
is Application), the image displays without any width and height set
(i'm using Flex 2), but i would like to have each picture displayed
inside the corresponding class.

Thanks!



Re: [flexcoders] Re: removechild and addchild cause flickering , help~

2007-10-29 Thread Sebastian Zarzycki
Abdul Qabiz wrote:
 Yup! To avoid that you can load the image in other loader and swap it 
 once it's loaded...Something like double-buffering..

Also play with creationPolicy=all or queued on container.


-- 
| Sebastian Zarzycki / rat[tkin]
| [EMAIL PROTECTED]
| i'm a little lost in this postmodern space
| gg:#2692696 / icq:#264185739 irc :#tool #ot-oa / skype:rattkin


--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! 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] dynamic images and copy protection

2007-10-29 Thread flashcrow2000
Another crazy idea from my clients :).

I need to load images from xml, and also the client wants some
protection for the images. The only protection I can think of is to
embed them, but how can i do that if i have an xml which defines the
whole layout and content?

Encrypting them us not an option. Also, they have to run locally, so
loading the images from a server is also not an option.

Any ideas?

Can I embed images with dynamic paths? If so, maybe I can use MTASC
and recompile the SWF every time a picture or something changes.

Thanks



RE: [flexcoders] List change event to BubbleChart

2007-10-29 Thread Sunil Bannur
Flex 3 Charts has selection capabilities, and it has APIs to specify
what items should be selected, which does exactly what you have
described. 

 

Thanks

-Sunil

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of picklzzz
Sent: Sunday, October 28, 2007 4:44 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] List change event to BubbleChart

 

I'm a newbie and have, what I think is, a simple task:

I have a BubbleChart populated from an ArrayCollection consisting
of fields name, x, y, and size. I populate an adjoining List
with the name field. I would like to be able to select on, possibly
multiple, names in the List and have the bubble in the bubblechart get
highlighted (perhaps by glowing or having the other bubbles alpha value
increase so they aren't as prominent)

I can't figure out whether a filter is necessary (I already have another
filter for my arraycollection) or there's another way.

Any help would be greatly appreciated.

 



[flexcoders] Multiple File Uploads and OSX Leopard

2007-10-29 Thread Mike Krotscheck
I'm seeing blog reports that Multiple File Uploads are borked on Flash
Player 9 and OSX Leopard. Unfortunately I don't have my own Leopard
environment yet, so can't confirm this, nor can I find any official
acknowledgement from either Apple or Adobe.

 

Can anyone out there confirm this for me? And if it's verifiable, who
would I have to poke to get an official statement from either company as
to when this might be fixed?

 

Michael Krotscheck

Senior Developer

 
RESOURCE INTERACTIVE

http://www.resource.com/ www.resource.com http://www.resource.com 

[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] 

 



This email and any of its attachments may contain Resource Interactive
proprietary information, which is privileged, confidential and may be
subject to copyright or other intellectual property rights belonging to
Resource Interactive. This email is intended solely for the use of the
individual or entity to which it is addressed. If you are not the
intended recipient of this email, you are hereby notified that any
dissemination, distribution, copying or action taken in relation to the
contents of and attachments to this email is strictly prohibited and may
be unlawful. If you have received this email in error, please notify the
sender immediately and permanently delete the original and any copy of
this email and any printout.




Re: [flexcoders] HTTP Cookie via ActionScript

2007-10-29 Thread Abdul Qabiz
Hi,

I am also confirming this is an issue with current beta player on labs. Not
sure if it is intentional or a bug?

-abdul

On 10/27/07, Abdul Qabiz [EMAIL PROTECTED] wrote:

 It seems to be Flash Player changes, what player version are you using?

 -abdul

 On 10/25/07, Sandeep Malik  [EMAIL PROTECTED] wrote:
 
Guys,
 
  We're using flex 3 beta 2 for some project and we're seeing this
  message:
 
  Error #2096: The HTTP request header Cookie cannot be set via
  ActionScript.
  ArgumentError: Error #2096: The HTTP request header Cookie cannot be
  set via ActionScript.
  at flash.net::URLStream/load()
  at flash.net::URLLoader/load()
 
  Is it true that Flex 3 will not allow to set HTTP Cookies via
  actionscript? This used to work with Flex 2. This will be really bad
  for backward compatibility as we have a framework written which sets
  HTTP Cookies.
 
  Can Adobe really be doing this?
 
  -Sandeep
 
   
 



 --
 -abdul
 ---
 http://abdulqabiz.com/blog/
 ---




-- 
-abdul
---
http://abdulqabiz.com/blog/
---


Re: [flexcoders] dynamic images and copy protection

2007-10-29 Thread Abdul Qabiz
You can load images over URLStream or load images via server-side script
that sets expire headers... You can load images over socket, it wouldn't go
to browser cache at all :)

-abdul

On 10/29/07, flashcrow2000 [EMAIL PROTECTED] wrote:

   Another crazy idea from my clients :).

 I need to load images from xml, and also the client wants some
 protection for the images. The only protection I can think of is to
 embed them, but how can i do that if i have an xml which defines the
 whole layout and content?

 Encrypting them us not an option. Also, they have to run locally, so
 loading the images from a server is also not an option.

 Any ideas?

 Can I embed images with dynamic paths? If so, maybe I can use MTASC
 and recompile the SWF every time a picture or something changes.

 Thanks

  




-- 
-abdul
---
http://abdulqabiz.com/blog/
---


[flexcoders] How to know when TextArea has updated

2007-10-29 Thread jamalwally
Hi,

I am extending the TextArea class (call it MyTextArea) and want to get
information about the text in the textField.  I wait for the
CREATION_COMPLETE event before accessing the textField, but the
textField.getLineIndexOfChar() method returns -1 directly after an
update of this.text.  Is there an event to listen to that will ensure
the text has been updated and rendered so that getLineIndexOfChar()
and other similar methods will give the expected results?
I include my code below.

By the way, I have a click listener and after the SWF loads and I
click on the TextArea, I get the expected values of getLineIndexOfChar().

Thanks for your help,
James

public class MyTextArea extends TextArea {

public function MyTextArea():void {
  super();

  // have to wait until CREATION_COMPLETE fires otherwise
  // this.textField is null
  addEventListener(FlexEvent.CREATION_COMPLETE, onCreationComplete);
}

private function onCreationComplete(e:FlexEvent):void {
  // looks like the text gets set but info about the text
  // layout in the TextField is not yet known...
  this.text = 'this is a long string\n of multiline text';

  // these both return -1
  trace(this.textField.getLineIndexOfChar(1));
  trace(this.textField.getLineIndexOfChar(25));
}
}




Re: [flexcoders] Re: Trigger a function in the main applicatoin mxml from a popup window.

2007-10-29 Thread Bailey
Hi Kal,
I believe BJorn is talking about listening within your flex application for
the closeEvent generated from your popup window upon the event.
When your listener picks up the closeEvent,
within your mxml application you may make your function call to do your
state changing work

For Example:

mx:Script
![CDATA[
import mx.managers.PopUpManager
import mx.containers.TitleWindow;
import mx.events.CloseEvent;


private var myWindow:TitleWindow;

private function showWindow(event:Event):void {
myWindow = TitleWindow(PopUpManager.createPopUp(this, TitleWindow));
myWindow.addEventListener(CloseEvent.CLOSE, closeHandler);
myWindow.showCloseButton = true;

}
private function closeHandler(event:CloseEvent):void
{
//do your application state changing
}
]]
/mx:Script


This creates a popup window instance, and then assigns a event listener to
actively listen for that specific closeEvent..
When it detects the event occurred it will execute the closeHandler
function, which you can control to do your bidding..

You probably won't be wanting to create your initial popup from within flex
actionscript anyways...
hopefully this helps some

On 10/28/07, kalpkat9 [EMAIL PROTECTED] wrote:

   Thanks for taking your time to respond, Bjorn.

 I am triggering a function called submitData() from the click event of
 my button inside the popup window.

 private function submitData():void{
 mainApp.currentState.name = secondState;
 }

 This doesnt seem to accomplish what I wish for (of changing the state
 of my mainApp.mxml)

 How is that I can access a function from my main application mxml,
 for example: changeState().

 private function changeState():void{
 currentState = secondState;
 }

 Please excuse my ignorance. Could you let me know what I am missing?

 Thank you.

 --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Bjorn
 Schultheiss

 [EMAIL PROTECTED] wrote:
 
  Listen to the closeEvent from the popup and call the function from
  the handler.
 
  Bjorn
 
 
  On 29/10/2007, at 12:10 PM, kalpkat9 wrote:
 
   Hi,
  
   This might be a really petty question to ask, but I will greatly
   appreciate if someone can answer.
  
   How can I trigger a function in my main application mxml, from a popup
   window(title window/panel) after a submit button click. (I am
   trying to
   change the state of my main application by clicking the submit button)
  
   Thank you,
   Kal.
  
  
  
 

  



[flexcoders] custom container layout woes

2007-10-29 Thread Bailey
Hello,
after some tossing and turning with my .fla and my flex app I just can't
seem to figure out how to fix this problem,
though I did come up with a semi fix but its more or less ghetto...

I have made a custom container in flash and have exported it successfully to
flex and can put components in it fine,
though it experiences some crazy resizing on the flex layout when undergoing
some animations within flash.

Basically I have it fade in (fine), and then when I go to have it close
via a button trigger it does a slide out animation,
where there is two layers of the background and a mask for each, anyhow
these move up and down and such to create the
effect...
What I get in the browser when the slide out animation is triggered,
depending if I used absolute or vertical, (I played around with all sorts of
schemes)
is some massive scrollbars in each direction...

and naturally the container will reposition to center itself on the
page(moves left)ー this tells me that the container has gotten invisibly
wider due to the animation,

but I have to rule this out because my masks and layers within flash only
move generally up, in the end of animation my rectangle of a container
is only 10% visible on the flash cs3 canvas, the rest of its' body exists
above (since it slid up during the animation woohaa)..

So to slap a band aid on this I just stuck the container within a canvas
with all scrolling policy's off and I am able to position all my other
components around without having to use absolute..
though for some reason just my vertical scrollbar will still grow 3x in size
even though it is happening within a canvas..


So I have two questions,
Is my .swc that I exported for use in flex, causing my layout to break with
its invisible masks even though that it is breaking horizontally while there
is nothing in my .swc moving horizontally??

Or since I have my container resizing itself, should I have to override some
kind of updateDisplayList()for flex?

I don't really know what's going on so if you managed to read all of that
I'd appreciate if you could point me in the right direction! =)

Thanks,
Bailey


[flexcoders] Custom container layout woes

2007-10-29 Thread moyosa
Hello,
after some tossing and turning with my .fla and my flex app I just
can't seem to figure out how to fix this problem,
though I did come up with a semi fix but its more or less ghetto...

I have made a custom container in flash and have exported it
to flex and can put components in it fine,
though it experiences some crazy resizing on the flex layout when
undergoing some animations within flash.

Basically I have it fade in (fine), and then when I go to have it
close via a button trigger it does a slide out animation,
where there is two layers of the background and a mask for each,
anyhow these move up and down and such to create the
effect...
What I get in the browser when the slide out animation is triggered,
depending if I used absolute or vertical, (I played around with all
sorts of schemes)
is some massive scrollbars in each direction...

and naturally the container will reposition to center itself on the
page(moves left)#12540; this tells me that the container has gotten 
invisibly wider due to the animation,

but I have to rule this out because my masks and layers within flash
only move generally up, in the end of animation my rectangle of a
container is only 10% visible on the flash cs3 canvas, the rest of
its' body exists above (since it slid up during the animation woohaa)..

So to slap a band aid on this I just stuck the container within a
canvas with all scrolling policy's off and I am able to position all
my other components around without having to use absolute..
though for some reason just my vertical scrollbar will still grow 3x
in size even though it is happening within a canvas..


So I have two questions,
Is my .swc that I exported for use in flex, causing my layout to break
with its invisible masks even though that it is breaking horizontally
while there is nothing in my .swc moving horizontally??

Or since I have my container resizing itself, should I have to
override some kind of updateDisplayList()for flex?

I don't really know what's going on so if you managed to read all of
that I'd appreciate if you could point me in the right direction! =)

Thanks,
Bailey



[flexcoders] Measuring TextField properties in TextArea subclass

2007-10-29 Thread jamalwally
Hi, 

I can't get the correct information about line numbers in the text of
a custom class that extends TextArea (call it MyTextArea).

If I set the text property of the TextArea in onCreationComplete()
then getLineIndexAtPoint() returns -1.

I imagine that after I update the text property, I must wait for the
display to update before getLineIndexAtPoint() will return anything
other than -1.  So my questions are:

  1. Can you force the display to update immediately?
  e.g. 
 this.text = a new line of text;
 // this will return -1 (not what I want)
 trace(this.textField.getLineIndexAtPoint(2));

 forceUpdate();

 // this will return 0 (good)
 trace(this.textField.getLineIndexAtPoint(2));

  2. If you cannot force an update, is there an event to
 listen for so that I know when the getLineIndexAtPoint()
 method will return useful information?


Here is my example code that does not give me what I want:

public class MyTextArea extends TextArea {
   public function MyTextArea() {
  super();
  // wait for creationComplete otherwise this.textField = null
  addEventListener(FlexEvent.CREATION_COMPLETE, onCreationComplete);
  }

   private function onCreationComplete(evt:FlexEvent):void {
  this.text = 'a long line of text \n with a line break ...';

  // these both return -1
  // but I want them to return 0 and 1, repectively
  // because char 1 is on line 1 and char 25 is on line 2
  trace(this.textField.getLineIndexOfChar(1));
  trace(this.textField.getLineIndexOfChar(25));
   }

}

(by the way, in my application, I unfortunately don't have the option
of setting this.text in the constructor).

Thanks in advance for your help,
James



[flexcoders] dataGrid

2007-10-29 Thread niamath basha
Can we get the values of datagrid to an array or arraycollection


[flexcoders] Maven and SWC namespaces

2007-10-29 Thread Leftie Friele

I am trying to make the Israfil Maven plugin work in such a way that I can
have MXML components in a SWC project and reference those in my SWF projects
using a simple namespace.

Getting this to work in Flex Builder is fairly easy so I know I've got the
Namespace thing correct, my problems is to get the Israfil plugin to build
using with the compiler settings required to make this work. My questions is
if anyone out there has done this and if so could you please enlighten me as
to how I can accomplish this?

SWF project:
xmlns:commonComponents=http://mycompany.com/common;

commonComponents:SomeComponent id=comp/

SWC project:
?xml version=1.0?
componentPackage
component id=SomeComponent  class=com.mycomapny.common.SomeComponent
/
/componentPackage

In the POM I have not done any special configuration from what I normally do
for SWC dependencies.
-- 
View this message in context: 
http://www.nabble.com/Maven-and-SWC-namespaces-tf4711308.html#a13466309
Sent from the FlexCoders mailing list archive at Nabble.com.



[flexcoders] Re: Deep binding with Cairngorm question

2007-10-29 Thread dbronk
This seems like a very dangerous design decision by Adobe.  If
somewhere in my application someone as set a listener on an object,
and then in another place it is simply reinitialized should NOT cause
a memory leak.  I'm saying it will not, I'm saying that is a dangerous
design for Flex.

In this case, I was certainly going to reinitialize it.  In my case
the product list was based on a search service call.  Once the user
grabs a list of products, they are free to maintain those products
(change desicriptions, status, etc.).  I wanted the other views to
update against this list.  But, if the user now wants to do another
search against a different set of products I was simply going to
reinitialize productList to the new search results.  Could be 100's of
thousands products which is why I don't simply load all products.

So, how is a developer suppose to know that an object they are about
to reinitialize may cause a memory leak because someone set a listener
on it?

Thanks,
Dale


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

 Hi,
 
 ben.clinkinbeard wrote:
  Glad you got it working. Yea, its unfortunate (but unavoidable) that
  reinitializing a var kills the listeners. (Actually, I think
  reassigning like that could cause a memory leak, can someone confirm?)
  If its feasible you may want to replace those lines with
  prodList.removeAll() and then you should be able to get rid of
Binding.
  
  Ben
 
  dbronk dbronk@ wrote:
 Second, swapping my mx:Binding with adding a listener on
 CollectionEvent.COLLECTION_CHANGE definitely did the trick, but with
 one bad consequence.  If somewhere along the way code was written
 prodList = new ArrayCollection, it broke.  My solution to that was to
 add back the mx:Binding, but when that fires, it simply runs a
 function that reestablishes the event listener on
 CollectionEvent.COLLECTION_CHANGE.  Now it seems to work no matter how
 I set the list.
 
 I would have thought the old array collection would have been garbage 
 collected because the arraycollection itself would no longer have any 
 references to it. It would reference the handler function and the 
 handler fucntion would reference the object it was declared in, but
 the array collection itself would be unreachable AFAIK.
 
 However, reading the docs for EventDispatcher it seems as though 
 creating a new ArrayCollection could result in a memory leak.
 
 ---
 /langref/flash/events/EventDispatcher.html#addEventListener()
 
 If you no longer need an event listener, remove it by calling 
 removeEventListener(), or memory problems could result. Objects with 
 registered event listeners are not automatically removed from memory 
 because the garbage collector does not remove objects that still have 
 references.
 ---
 
 Probably the easiest thing to do would be to make the listener
reference 
 weak. Or, create an accessor function for the arraycollection and
remove 
 the listener from the old arraycollection and add a listener to the new 
 arraycollection if they are not the same object.
 
 cheers,
- shaun





[flexcoders] compile error with beta 2 sdk

2007-10-29 Thread Scott Melby
Can anybody shed light on this compiler error I am getting after 
upgrading to the beta 2 sdk?

[mxmlc] Error: Unable to resolve resource bundle datamanagement for 
locale en_US.

In case it helps... My app uses only HttpService to retrieve data from a 
back end web service.  Any help is appreciated.

Thanks
Scott


[flexcoders] Re: FileReference upload passing parameters in URLRequest

2007-10-29 Thread letterpigeon
Hi,

I've tried both method, GET and POST, but still couldn't get the 
parameters to be passed correctly.

Thanks.
Ban

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

 Note sure, but you might need to set the method in URLRequest.
 
 request.method = URLRequestMethod.POST;
 
 -abdul
 
 On 10/29/07, letterpigeon [EMAIL PROTECTED] wrote:
 
Hi all,
 
  I'm having this strange problem while uploading file in flex 
using
  FileReference, that even though I set the the request attribute 
on the
  flex side, and I verified that before I call fileRef.upload, the
  URLRequest object has all the attributes I set in its data 
property.
  But when the request arrived on the java servlet side, the
  httprequest contains no attributes at all. Below is the code 
snippet
  that I'm using to perform the upload, this processUpload 
method is
  called after the user has browsed for a file, then hit upload so 
I'm
  only registering the COMPLETE event here. fileRef is a global
  variable of type FileReference in the enclosing file.
  private function processUpload(func:Function):void
 
  {
 
  fileRef.addEventListener(Event.COMPLETE, func);
 
  var request:URLRequest = new
  URLRequest(FileImportConfigurationSource.HOST_PORT_CONTEXT +
  /FileUploadServlet);
 
  var params:URLVariables = new URLVariables();
 
  //Read file header data from UI input
 
  var client:FIClient = clientList.selectedItem as FIClient;
 
  var mnemonic:String = mnemonicList.selectedLabel;
 
  uploadFileId = UIDUtil.createUID().toString();
 
  params.uploadFileId = uploadFileId;
 
  params.transmissionId = testing;
 
  request.data = params;
 
  fileRef.upload(request);
 
  }
 
  Anyone spot any wrongdoing in the above code? Thanks.
 
  Ban
 
   
 
 
 
 
 -- 
 -abdul
 ---
 http://abdulqabiz.com/blog/
 ---





RE: [flexcoders] How do I convert an object to an arrayCollection?

2007-10-29 Thread Samuel R. Neff
Paul,

I don't think you should have to do any conversion, recent versions of
Fluorine support sending DataSet and DataTable objects to Flex and are
normally received as an ArrayCollection of Objects (optionally it can
specify typed objects).  

The object structure you're seeing is what I've seen .NET send for web
services.. are you using Fluorine to talk to an assembly directly or are you
talking to a web service?  If web service then change your call to use the
assembly directly (it's more efficient).

If that's not the problem then I'd suggest posting on the Fluorine mailing
list as there are many people there that can answer your question (I haven't
worked with DataSet/DataTable integration in Fluorine personally).

http://fluorine.thesilentgroup.com/fluorine/index.html

HTH,

Sam



---
We're Hiring! Seeking a passionate developer to join our team building Flex
based products. Position is in the Washington D.C. metro area. If interested
contact [EMAIL PROTECTED]
 
-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of aceoohay
Sent: Saturday, October 27, 2007 11:48 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] How do I convert an object to an arrayCollection?

I am testing fluorine by accessing an Oracle database using ASP.NET 
(VB). In flex builder I have done a breakpoint to look at the object 
returned. Below is the debug info about the object;

= 
this = main (@35050a1)
event = Object (@3444d81)
PERSON = Object (@3444f21)
serverInfo = Object (@34449a1)
columnNames = Array (@3617a91)
[0] = PERSON_NUMBER
...

Paul




[flexcoders] Re: Deep binding with Cairngorm question

2007-10-29 Thread ben.clinkinbeard
 This seems like a very dangerous design decision by Adobe.
I don't know how its really avoidable. I suppose you could argue for
automatic cleanup or something but I could see that causing problems
as well, and it honestly falls outside the responsibility of a
language/runtime IMO.

Why can't you just use removeAll()? There is also a hasEventListener()
method that allows you to check for the existence of a listener.

HTH,
Ben


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

 This seems like a very dangerous design decision by Adobe.  If
 somewhere in my application someone as set a listener on an object,
 and then in another place it is simply reinitialized should NOT cause
 a memory leak.  I'm saying it will not, I'm saying that is a dangerous
 design for Flex.
 
 In this case, I was certainly going to reinitialize it.  In my case
 the product list was based on a search service call.  Once the user
 grabs a list of products, they are free to maintain those products
 (change desicriptions, status, etc.).  I wanted the other views to
 update against this list.  But, if the user now wants to do another
 search against a different set of products I was simply going to
 reinitialize productList to the new search results.  Could be 100's of
 thousands products which is why I don't simply load all products.
 
 So, how is a developer suppose to know that an object they are about
 to reinitialize may cause a memory leak because someone set a listener
 on it?
 
 Thanks,
 Dale
 
 
 --- In flexcoders@yahoogroups.com, shaun shaun@ wrote:
 
  Hi,
  
  ben.clinkinbeard wrote:
   Glad you got it working. Yea, its unfortunate (but unavoidable) that
   reinitializing a var kills the listeners. (Actually, I think
   reassigning like that could cause a memory leak, can someone
confirm?)
   If its feasible you may want to replace those lines with
   prodList.removeAll() and then you should be able to get rid of
 Binding.
   
   Ben
  
   dbronk dbronk@ wrote:
  Second, swapping my mx:Binding with adding a listener on
  CollectionEvent.COLLECTION_CHANGE definitely did the trick, but with
  one bad consequence.  If somewhere along the way code was written
  prodList = new ArrayCollection, it broke.  My solution to that
was to
  add back the mx:Binding, but when that fires, it simply runs a
  function that reestablishes the event listener on
  CollectionEvent.COLLECTION_CHANGE.  Now it seems to work no
matter how
  I set the list.
  
  I would have thought the old array collection would have been garbage 
  collected because the arraycollection itself would no longer have any 
  references to it. It would reference the handler function and the 
  handler fucntion would reference the object it was declared in, but
  the array collection itself would be unreachable AFAIK.
  
  However, reading the docs for EventDispatcher it seems as though 
  creating a new ArrayCollection could result in a memory leak.
  
  ---
  /langref/flash/events/EventDispatcher.html#addEventListener()
  
  If you no longer need an event listener, remove it by calling 
  removeEventListener(), or memory problems could result. Objects with 
  registered event listeners are not automatically removed from memory 
  because the garbage collector does not remove objects that still have 
  references.
  ---
  
  Probably the easiest thing to do would be to make the listener
 reference 
  weak. Or, create an accessor function for the arraycollection and
 remove 
  the listener from the old arraycollection and add a listener to
the new 
  arraycollection if they are not the same object.
  
  cheers,
 - shaun
 





RE: [flexcoders] dynamic images and copy protection

2007-10-29 Thread Jim Hayes
 also the client wants some protection for the images.
That old chestnut! 
You can point out that pressing the printscreen key normally overrides
any encryption that you have on images ...
Sometimes that works :-)
 
Last time I had that (years back, in fact) , I built a script that
called ming to embed each image in a swf wrapper that had a small
actionscript that detected it's environment (I just used a global
variable) and if that was not right, drew a black square over the image.
It's only trivial protection, but the client was happy that just opening
the files from explorer didn't show the pictures.
Apart from that, really all I had to do was to load a swf rather than a
bitmap, so the application was almost unchanged.
 
Just an idea!
 
Jim.
 
-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of flashcrow2000
Sent: 29 October 2007 10:38
To: flexcoders@yahoogroups.com
Subject: [flexcoders] dynamic images and copy protection
 
Another crazy idea from my clients :).

I need to load images from xml, and also the client wants some
protection for the images. The only protection I can think of is to
embed them, but how can i do that if i have an xml which defines the
whole layout and content?

Encrypting them us not an option. Also, they have to run locally, so
loading the images from a server is also not an option.

Any ideas?

Can I embed images with dynamic paths? If so, maybe I can use MTASC
and recompile the SWF every time a picture or something changes.

Thanks
 

__
This communication is from Primal Pictures Ltd., a company registered in 
England and Wales with registration No. 02622298 and registered office: 4th 
Floor, Tennyson House, 159-165 Great Portland Street, London, W1W 5PA, UK. VAT 
registration No. 648874577.

This e-mail is confidential and may be privileged. It may be read, copied and 
used only by the intended recipient. If you have received it in error, please 
contact the sender immediately by return e-mail or by telephoning +44(0)20 7637 
1010. Please then delete the e-mail and do not disclose its contents to any 
person.
This email has been scanned for Primal Pictures by the MessageLabs Email 
Security System.
__

[flexcoders] Re: Pulling in a webpage

2007-10-29 Thread essuark
BUMP? Anyone. I have run out of ideas with this

thanks all

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

 Anyone have any hints on how to do something like this? I need to be 
 able to pull in a webpage to my flex application. I need the ability 
to 
 place a flex component (button, graph, whatever) on top of it. I have 
 seen some iframe solutions but can't place a that component over it. 
I 
 was thinking of getting the bytes and creating a dynamic bitmap but 
 then I dont how do get the btyes. 
 
 anyone?
 
 thanks
 Ralph





Re: [flexcoders] compile error with beta 2 sdk *** SOLVED ***

2007-10-29 Thread Scott Melby
It looks like I have resolved this.  In the past, in order to compile an 
app that uses AdvancedDataGrid I needed to include only the 
datavisualtion.swc file in my compiler.library-path.  But, now I need to 
include the datavisualization_rb.swc as well to get the resource bundles.


Scott

Scott Melby
Founder, Fast Lane Software LLC
http://www.fastlanesw.com



Scott Melby wrote:


Can anybody shed light on this compiler error I am getting after
upgrading to the beta 2 sdk?

[mxmlc] Error: Unable to resolve resource bundle datamanagement for
locale en_US.

In case it helps... My app uses only HttpService to retrieve data from a
back end web service. Any help is appreciated.

Thanks
Scott

 




[flexcoders] asdocs does not generate html files if the script tag is having the source tag

2007-10-29 Thread ilikeflex
Hi Team

I am trying to generate the help files from the source code(mxml + 
as ). the mxml tag has the code and it has script tag

mx:Script source=Sales.as / 

This Sales.as has all the action script code. When i run the asdoc 
tool 

P:\asdoc -source-path C:\sandbox\client2\src -doc-sources 
C:\sandbox\client2\src -output C:\temp\testasdocs

It gives me error in the Sales.as.

Error: The
public attribute can only be used inside a package.
override public function set width(value:Number):void


My Sales.as does not include any of the package statement because it 
does not require.The Sales.as files is being used in the mxml file.

Can anybody help?

Thanks
ilikeflex





[flexcoders] ComboBox ItemRenderer Selected Value

2007-10-29 Thread riaengineer
I'm familiar with using itemRenderer for a combobox, pretty straight
forward.  My question is IS IT POSSIBLE to have the 'selected' value
displayed trough an itemRenderer as well.  I have a combobox whose
itemRenderer show an image per item in the drop down.  HOWEVER when
the user selects an item (image) the drop down will collapse and show
a string only no image. Is is possible to show an image instead?

Thanks



[flexcoders] Re: Deep binding with Cairngorm question

2007-10-29 Thread dbronk
Well, Java takes care of it for you just fine with it's gc.  But I
realize its not fair to compare against another language, Flex is it's
own and makes it's own decisions.

But, hasEventListener means I have to check for all types of events
individually since there is not a hasAnyEventListener (at least I
can't see a method for that).  So now the developer is still left
having to know what the other code is listening for.  Also, doesn't
this also pertain to objects other than just ArrayCollections?  I
could have a custom object, value objects, all sorts of other objects
that someone is listening to.  So for those also I can not just
reassign?  Instead of just codeing:
someObj = someOtherObj;

I now need to code:

if ( someObj.hasEventListener(someEvent) )
someObj.removeEventListener(someEvent);
if ( someObj.hasEventListener(someOtherEvent) )
someObj.removeEventListener(someOtherEvent);
...
someObj.removeAll();  // or someObj.clear(), etc.
someObj.addItem(anotherList);  // or someObj.setXxxx(), etc.

Am I wrong or is this just begging for memory leaks?  But, to respond
to your argue point, yes, I believe it is up to the language to clear
listeners on a dereferenced object along with gc.  But, I understand
that you differ from that opinion and that is fine.

I suppose setting the variable final would cause this to be okay, but
that is then saying that the variable knows how it is being used which
isn't okay with me.

Also, someone posted to just do a weak reference or do an accessor. 
Please expand on this.  I just know that somewhere along the way
someone (me included) is going to simply do someObj = someOtherObj and
to say that could cause a memory leak is absolutely absurd in my book.
 Unless someObj is a resource of some sort.  What about simple
Strings, same thing for those?

Dale

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

  This seems like a very dangerous design decision by Adobe.
 I don't know how its really avoidable. I suppose you could argue for
 automatic cleanup or something but I could see that causing problems
 as well, and it honestly falls outside the responsibility of a
 language/runtime IMO.
 
 Why can't you just use removeAll()? There is also a hasEventListener()
 method that allows you to check for the existence of a listener.
 
 HTH,
 Ben
 
 
 --- In flexcoders@yahoogroups.com, dbronk dbronk@ wrote:
 
  This seems like a very dangerous design decision by Adobe.  If
  somewhere in my application someone as set a listener on an object,
  and then in another place it is simply reinitialized should NOT cause
  a memory leak.  I'm saying it will not, I'm saying that is a dangerous
  design for Flex.
  
  In this case, I was certainly going to reinitialize it.  In my case
  the product list was based on a search service call.  Once the user
  grabs a list of products, they are free to maintain those products
  (change desicriptions, status, etc.).  I wanted the other views to
  update against this list.  But, if the user now wants to do another
  search against a different set of products I was simply going to
  reinitialize productList to the new search results.  Could be 100's of
  thousands products which is why I don't simply load all products.
  
  So, how is a developer suppose to know that an object they are about
  to reinitialize may cause a memory leak because someone set a listener
  on it?
  
  Thanks,
  Dale
  
  
  --- In flexcoders@yahoogroups.com, shaun shaun@ wrote:
  
   Hi,
   
   ben.clinkinbeard wrote:
Glad you got it working. Yea, its unfortunate (but
unavoidable) that
reinitializing a var kills the listeners. (Actually, I think
reassigning like that could cause a memory leak, can someone
 confirm?)
If its feasible you may want to replace those lines with
prodList.removeAll() and then you should be able to get rid of
  Binding.

Ben
   
dbronk dbronk@ wrote:
   Second, swapping my mx:Binding with adding a listener on
   CollectionEvent.COLLECTION_CHANGE definitely did the trick,
but with
   one bad consequence.  If somewhere along the way code was written
   prodList = new ArrayCollection, it broke.  My solution to that
 was to
   add back the mx:Binding, but when that fires, it simply runs a
   function that reestablishes the event listener on
   CollectionEvent.COLLECTION_CHANGE.  Now it seems to work no
 matter how
   I set the list.
   
   I would have thought the old array collection would have been
garbage 
   collected because the arraycollection itself would no longer
have any 
   references to it. It would reference the handler function and the 
   handler fucntion would reference the object it was declared in, but
   the array collection itself would be unreachable AFAIK.
   
   However, reading the docs for EventDispatcher it seems as though 
   creating a new ArrayCollection could result in a memory leak.
   
   ---
   /langref/flash/events/EventDispatcher.html#addEventListener()
   
   If 

[flexcoders] Re: JS - How to send a byteArray using HTTPService??

2007-10-29 Thread Jeff Schuenke
Hello Abdul,

I have looked at URLLoader and see how to send.  On the server side, 
I see the data in a byte array but am not sure how to pull this inot 
a variable.  Any samples from either php or java?
Thanks,

Jeff

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

 Note sure, if HTTPService allows anything beyond text You can 
use
 URLLoader to send the data to server..
 
 -abdul
 
 On 10/25/07, Jeff Schuenke [EMAIL PROTECTED] wrote:
 
Hello All,
 
  I need to do a screen capture of a UIComponenet and allow the 
user to save
  this to their local drive.  I understand thsi will need to go 
throu the
  server.  I have read about the ImageSnapshot and PNGEncode 
methods in SDK 3
  so I can get the BitmapData ( this example is using SDK 2).  What 
I don't
  see how to do is send this to the server.  I am trying this:
 
  //get the data
  var exportImage:BitmapData =  new BitmapData(100,100);
  exportImage.draw(UIComponenet_name);
 
  var outData:ByteArray = new ByteArray();
  outData.readBytes(exportImage.getPixels(new Rectangle
(0,0,100,100)));
 
  var sendImage:HTTPService = new HTTPService();
  sendImage.method = POST;
  sendImage.url = http://www.host.com/serverSave.php;;
  sendImage.send({HTTP_RAW_POST_DATA:outData.writeBytes(outData), 
name:'
  image.png'});
 
 
   This is not working and it is only a guess.  How can I send the 
data or
  is it possibile to do this as a POST??
 
  Thanks,
 
 
 
  Jeff
 
   
 
 
 
 
 -- 
 -abdul
 ---
 http://abdulqabiz.com/blog/
 ---





Re: [flexcoders] Measuring TextField properties in TextArea subclass

2007-10-29 Thread Daniel Freiman
It looks like the force update method you need for TextArea is
validateProperties().  I forget if you're going to need to do more to get
the internal textField to update.  We'll cross the bridge later if we need
to.

- Dan Freiman

On 10/28/07, jamalwally [EMAIL PROTECTED] wrote:

   Hi,

 I can't get the correct information about line numbers in the text of
 a custom class that extends TextArea (call it MyTextArea).

 If I set the text property of the TextArea in onCreationComplete()
 then getLineIndexAtPoint() returns -1.

 I imagine that after I update the text property, I must wait for the
 display to update before getLineIndexAtPoint() will return anything
 other than -1. So my questions are:

 1. Can you force the display to update immediately?
 e.g.
 this.text = a new line of text;
 // this will return -1 (not what I want)
 trace(this.textField.getLineIndexAtPoint(2));

 forceUpdate();

 // this will return 0 (good)
 trace(this.textField.getLineIndexAtPoint(2));

 2. If you cannot force an update, is there an event to
 listen for so that I know when the getLineIndexAtPoint()
 method will return useful information?

 Here is my example code that does not give me what I want:

 public class MyTextArea extends TextArea {
 public function MyTextArea() {
 super();
 // wait for creationComplete otherwise this.textField = null
 addEventListener(FlexEvent.CREATION_COMPLETE, onCreationComplete);
 }

 private function onCreationComplete(evt:FlexEvent):void {
 this.text = 'a long line of text \n with a line break ...';

 // these both return -1
 // but I want them to return 0 and 1, repectively
 // because char 1 is on line 1 and char 25 is on line 2
 trace(this.textField.getLineIndexOfChar(1));
 trace(this.textField.getLineIndexOfChar(25));
 }

 }

 (by the way, in my application, I unfortunately don't have the option
 of setting this.text in the constructor).

 Thanks in advance for your help,
 James

  



[flexcoders] Re: VerifyError: Error #1025: An invalid register 5 was accessed.

2007-10-29 Thread lrdvadersith
I had seen sortCompareFunction, but I hadn't seen labelFunction.  Much
nicer than using an ItemRenderer.  It still left me with the
uncomfortable situation where I would have to write a lot of display
and sort functions to get the various behavior I want.

Then I ran across your blog posting about extending DataGridColumn.
That's a brilliant idea.  I created a custom DataGridColumn, defined a
complexDataField property, and set the labelFunction and
sortCompareFunction to functions in my custom class that do their
thing based off of the complexDataField property.  The result is that
I can now specify complex properties like role.application.code in
my MXML code, and the custom DataGridColumn uses that to walk the
object graph to get what I need.  

The MXML got a lot simpler, and I only needed one labelFunction and
one sortCompareFunction that genericly works on any object.

Sound like a reasonable approach?

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

 Typically, one uses labelFunction to pull role.application.code and
 display it, and provides a custom sortCompareFunction that pulls the
 same and sorts it.
 
  
 




[flexcoders] Re: dynamic images and copy protection

2007-10-29 Thread flashcrow2000
Embedding the images in swfs might do the trick. the problem is that
the application will be used on some scales in supermarkets, so there
is no chance in hell i will be able to install a server or something
on those machines. Also, the application will start inside a canvas
from another application (to which i don't have access) so there is no
internet browser either.

If you have any other ideas, please do share. And thank you :)



[flexcoders] Re: Measuring TextField properties in TextArea subclass

2007-10-29 Thread kramus0
I think it's nearly the the same issue that I dicussed in message
91764 Number of lines in mx:text/. 
But I didn't get an answer yet.

Markus


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

 It looks like the force update method you need for TextArea is
 validateProperties().  I forget if you're going to need to do more
to get
 the internal textField to update.  We'll cross the bridge later if
we need
 to.
 
 - Dan Freiman
 
 On 10/28/07, jamalwally [EMAIL PROTECTED] wrote:
 
Hi,
 
  I can't get the correct information about line numbers in the text of
  a custom class that extends TextArea (call it MyTextArea).
 
  If I set the text property of the TextArea in onCreationComplete()
  then getLineIndexAtPoint() returns -1.
 
  I imagine that after I update the text property, I must wait for the
  display to update before getLineIndexAtPoint() will return anything
  other than -1. So my questions are:
 
  1. Can you force the display to update immediately?
  e.g.
  this.text = a new line of text;
  // this will return -1 (not what I want)
  trace(this.textField.getLineIndexAtPoint(2));
 
  forceUpdate();
 
  // this will return 0 (good)
  trace(this.textField.getLineIndexAtPoint(2));
 
  2. If you cannot force an update, is there an event to
  listen for so that I know when the getLineIndexAtPoint()
  method will return useful information?
 
  Here is my example code that does not give me what I want:
 
  public class MyTextArea extends TextArea {
  public function MyTextArea() {
  super();
  // wait for creationComplete otherwise this.textField = null
  addEventListener(FlexEvent.CREATION_COMPLETE, onCreationComplete);
  }
 
  private function onCreationComplete(evt:FlexEvent):void {
  this.text = 'a long line of text \n with a line break ...';
 
  // these both return -1
  // but I want them to return 0 and 1, repectively
  // because char 1 is on line 1 and char 25 is on line 2
  trace(this.textField.getLineIndexOfChar(1));
  trace(this.textField.getLineIndexOfChar(25));
  }
 
  }
 
  (by the way, in my application, I unfortunately don't have the option
  of setting this.text in the constructor).
 
  Thanks in advance for your help,
  James
 
   
 





[flexcoders] Carousel component

2007-10-29 Thread Anzer
Where can I get a good implementation of Carousel component in Flex 2 ?



[flexcoders] Project

2007-10-29 Thread Christopher Olsen
Hello,

I'm working on a sort of VOD project however after a movie has queue 
into your buffer it gets a little jittery.

The test app can be seen at www.ubixonline.com I'm not sure if anyone 
has any feedback on why it would do that.

-Christopher


[flexcoders] Tree: Removing expand triangle from select nodes

2007-10-29 Thread djdyland
Hello,

I'm building a scripting reference app that is populated from an XML 
file. The structure is something like this.

groupOfAssociatedClasses name=name of container
   class name=className
  property name=propertyName
  typetheType/type
  /property
  method name=methodName
  inputTypetype/inputType
  returnValuevalue/returnValue
  /method
   /class
   class name=className
  property name=propertyName
  typetheType/type
  /property
  method name=methodName
  inputTypetype/inputType
  returnValuevalue/returnValue
  /method
   /class
/groupOfAssociatedClasses
groupOfAssociatedClasses name=name of container
   class name=className
  property name=propertyName
  typetheType/type
  /property
  method name=methodName
  inputTypetype/inputType
  returnValuevalue/returnValue
  /method
   /class
/groupOfAssociatedClasses

I created a tree discriptor to filter out all the children on each 
class so it doesn't display them in the tree. All I want to see in 
the tree is the names of the containers and the names of the classes.

My proplem is that beucase the classes have children flex is 
displaying the expand node triangle beside the icon which ends up 
doing nothing becuase of the filter. How can I get rid of the expand 
node triangle?

I tried to turn it off but it ended up turning it off for the parent 
container nodes as well.

Any Help is much appreciated :)



Re: [flexcoders] Carousel component

2007-10-29 Thread Doug McCune
For 3D: http://theflashblog.com/?p=293
For 2D:
http://blogs.digitalprimates.net/codeSlinger/index.cfm/2007/10/28/Max-Presentation

Doug

On 10/29/07, Anzer [EMAIL PROTECTED] wrote:

Where can I get a good implementation of Carousel component in Flex 2 ?

  



[flexcoders] Drop down combo box via AS?

2007-10-29 Thread candysmate
How can I get a combobox to drop down (open) with AS3 please?



[flexcoders] Re: How to set Script time limit in Flex 2 (or 3)?

2007-10-29 Thread droponrcll
--- In flexcoders@yahoogroups.com, icykorpio [EMAIL PROTECTED] wrote:

 give ppl a real case,
 
 before i wrote a software which contain the swf by c++.
 
 and people can click button in flex to command c++ wrapper pop up a 
 windows system file dialog. but if user doesn't choose a file in 15 
 seconds. flex consider the script time out!
 
 any thing through ExternalInterface all the same fate!
 
 
 Adobe really needs to change this bad idea.


I use a different program to contain my swfs.  What I do in 
situations like this is to send a call out to the main application 
that starts whatever process, but it isn't expecting any return.  
When the main application _has_ a return, it calls a callback in the 
file that then takes the return and does whatever with it.

It may not be the most wonderful system in the world, but it works.

-Amy



RE: [flexcoders] Drop down combo box via AS?

2007-10-29 Thread Alex Harui
open()

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of candysmate
Sent: Monday, October 29, 2007 9:09 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Drop down combo box via AS?

 

How can I get a combobox to drop down (open) with AS3 please?

 



RE: [flexcoders] Re: dynamic images and copy protection

2007-10-29 Thread Jim Hayes
 
-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of flashcrow2000
Sent: 29 October 2007 14:43
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: dynamic images and copy protection
 
Embedding the images in swfs might do the trick. the problem is that
the application will be used on some scales in supermarkets, so there
is no chance in hell i will be able to install a server or something
on those machines. Also, the application will start inside a canvas
from another application (to which i don't have access) so there is no
internet browser either.

If you have any other ideas, please do share. And thank you :)
 
What I did didn't use a server or internet access, in fact. The script
ran through directories of images, embedded each one in it's swf wrapper
and saved that out as [originalfilename].swf.
So it was all just plain ordinary local file access (I think that's what
you want?). I used php command line and the ming library (presumably
that's still documented at php.net), but there are probably other ways
to do the same sort of thing.
 
Another thing you could do is to munge the actual bytes in the file,
even something as simple as reading the image as a bytearray, reversing
that byteArray and saving it back out to file would probably work. Then
read in the reversed image file, re-reverse the bytearray and convert it
to an image with loader (as per ordinary image bytearray).
Again, this is just making it harder for the casual observer to read the
images, not really any protection against someone who is really
interested in reading them.
 
Another thing I've done recently is to store images as bytearray blobs
in sqlite, worth a thought if you are using AIR?
Again not really protection, but the user will only see a database file
rather than a very obvious directory full of images.
I had other reasons to do this, but it was a nice side effect.
 
Or ... I think theres a .zip library available to flex? Check and see if
it by any chance supports password protected files, I can't recall
seeing that but maybe worth a look?
 
Jim.
 

__
This communication is from Primal Pictures Ltd., a company registered in 
England and Wales with registration No. 02622298 and registered office: 4th 
Floor, Tennyson House, 159-165 Great Portland Street, London, W1W 5PA, UK. VAT 
registration No. 648874577.

This e-mail is confidential and may be privileged. It may be read, copied and 
used only by the intended recipient. If you have received it in error, please 
contact the sender immediately by return e-mail or by telephoning +44(0)20 7637 
1010. Please then delete the e-mail and do not disclose its contents to any 
person.
This email has been scanned for Primal Pictures by the MessageLabs Email 
Security System.
__

RE: [flexcoders] How do I pause

2007-10-29 Thread Alex Harui
Pause effect?

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of [EMAIL PROTECTED]
Sent: Monday, October 29, 2007 12:23 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] How do I pause

 

My movie changes states when the user hits a button, but I want it to 
pause for 5 seconds. How do I do that ? I see something about pausing a 
sequence in the documentation. do I have to create a sequence first ?

 



RE: [flexcoders]Simple method to separate the textarea from the control toolbar in the rich text editor

2007-10-29 Thread Alex Harui
The source is mxml.  Copy  edit

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of dorkie dork from dorktown
Sent: Monday, October 29, 2007 1:33 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders]Simple method to separate the textarea from the
control toolbar in the rich text editor

 

Is there a simple method to separate the Textarea from the control
toolbar in the Rich Text Editor control? 

 



RE: [flexcoders] ComboBox ItemRenderer Selected Value

2007-10-29 Thread Alex Harui
http://blogs.adobe.com/aharui/2007/04/icons_in_combobox.html

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of riaengineer
Sent: Monday, October 29, 2007 7:07 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] ComboBox ItemRenderer Selected Value

 

I'm familiar with using itemRenderer for a combobox, pretty straight
forward. My question is IS IT POSSIBLE to have the 'selected' value
displayed trough an itemRenderer as well. I have a combobox whose
itemRenderer show an image per item in the drop down. HOWEVER when
the user selects an item (image) the drop down will collapse and show
a string only no image. Is is possible to show an image instead?

Thanks

 



RE: [flexcoders] Re: dynamic images and copy protection

2007-10-29 Thread Jim Hayes
Eh? Don't know what happened there ... sorry !



What I did didn't use a server or internet access, in fact. The script
ran through directories of images, embedded each one in it's swf wrapper
and saved that out as [originalfilename].swf.
So it was all just plain ordinary local file access (I think that's what
you want?). I used php command line and the ming library (presumably
that's still documented at php.net), but there are probably other ways
to do the same sort of thing.

Another thing you could do is to munge the actual bytes in the file,
even something as simple as reading the image as a bytearray, reversing
that byteArray and saving it back out to file would probably work. Then
read in the reversed image file, re-reverse the bytearray and convert it
to an image with loader (as per ordinary image bytearray).
Again, this is just making it harder for the casual observer to read the
images, not really any protection against someone who is really
interested in reading them.

Another thing I've done recently is to store images as bytearray blobs
in sqlite, worth a thought if you are using AIR?
Again not really protection, but the user will only see a database file
rather than a very obvious directory full of images.
I had other reasons to do this, but it was a nice side effect.

Or ... I think theres a .zip library available to flex? Check and see if
it by any chance supports password protected files, I can't recall
seeing that but maybe worth a look?

Jim.



 

__
This communication is from Primal Pictures Ltd., a company registered in 
England and Wales with registration No. 02622298 and registered office: 4th 
Floor, Tennyson House, 159-165 Great Portland Street, London, W1W 5PA, UK. VAT 
registration No. 648874577.

This e-mail is confidential and may be privileged. It may be read, copied and 
used only by the intended recipient. If you have received it in error, please 
contact the sender immediately by return e-mail or by telephoning +44(0)20 7637 
1010. Please then delete the e-mail and do not disclose its contents to any 
person.
This email has been scanned for Primal Pictures by the MessageLabs Email 
Security System.
__


RE: [flexcoders] Tree: Removing expand triangle from select nodes

2007-10-29 Thread Alex Harui
Custom ITreeDataDescriptor

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of djdyland
Sent: Monday, October 29, 2007 8:41 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Tree: Removing expand triangle from select nodes

 

Hello,

I'm building a scripting reference app that is populated from an XML 
file. The structure is something like this.

groupOfAssociatedClasses name=name of container
class name=className
property name=propertyName
typetheType/type
/property
method name=methodName
inputTypetype/inputType
returnValuevalue/returnValue
/method
/class
class name=className
property name=propertyName
typetheType/type
/property
method name=methodName
inputTypetype/inputType
returnValuevalue/returnValue
/method
/class
/groupOfAssociatedClasses
groupOfAssociatedClasses name=name of container
class name=className
property name=propertyName
typetheType/type
/property
method name=methodName
inputTypetype/inputType
returnValuevalue/returnValue
/method
/class
/groupOfAssociatedClasses

I created a tree discriptor to filter out all the children on each 
class so it doesn't display them in the tree. All I want to see in 
the tree is the names of the containers and the names of the classes.

My proplem is that beucase the classes have children flex is 
displaying the expand node triangle beside the icon which ends up 
doing nothing becuase of the filter. How can I get rid of the expand 
node triangle?

I tried to turn it off but it ended up turning it off for the parent 
container nodes as well.

Any Help is much appreciated :)

 



[flexcoders] KB-001: base64 under flex doesn't work with non-ascii code.

2007-10-29 Thread icykorpio
hi,

I find this problem. because flex use utf-16 internally to represent 
string. so operator [] will fetch a very big int(non ascii) for 
base64. so it failed.

just share with guys.

regards
icykorpio



Re: [flexcoders] Multiple File Uploads and OSX Leopard

2007-10-29 Thread Paul Decoursey
What do you mean borked and what do you mean multiple file  
uploads?  Don't you do one at a time?  I don't have Leopard yet, but  
in a few days I will.


Paul

On Oct 29, 2007, at 6:37 AM, Mike Krotscheck wrote:

I’m seeing blog reports that Multiple File Uploads are borked on  
Flash Player 9 and OSX Leopard. Unfortunately I don’t have my own  
Leopard environment yet, so can’t confirm this, nor can I find any  
official acknowledgement from either Apple or Adobe.




Can anyone out there confirm this for me? And if it’s verifiable,  
who would I have to poke to get an official statement from either  
company as to when this might be fixed?




Michael Krotscheck

Senior Developer



RESOURCE INTERACTIVE

www.resource.com

[EMAIL PROTECTED]




__ 
__
This email and any of its attachments may contain Resource  
Interactive proprietary information, which is privileged,  
confidential and may be subject to copyright or other intellectual  
property rights belonging to Resource Interactive. This email is  
intended solely for the use of the individual or entity to which it  
is addressed. If you are not the intended recipient of this email,  
you are hereby notified that any dissemination, distribution,  
copying or action taken in relation to the contents of and  
attachments to this email is strictly prohibited and may be  
unlawful. If you have received this email in error, please notify  
the sender immediately and permanently delete the original and any  
copy of this email and any printout.







[flexcoders] Re: removechild and addchild cause flickering , help~

2007-10-29 Thread icykorpio
I don't think the async is the reason, look,  the button click cause 
the change. all images are well loaded.

//Also play with creationPolicy=all or queued on container.

I think this makes sense. let me try and thanks all!



RE: [flexcoders] load an image inside a UIComponent

2007-10-29 Thread Alex Harui
Use swfloader?

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of flashcrow2000
Sent: Monday, October 29, 2007 2:15 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] load an image inside a UIComponent

 

Hello,

I have the following situation: I have an AS class which extends
UIComponent, and based on some settings read from an xml, I must load
an image, a movie or display a text inside that class.

When I'm creating the image, and adding it with addChild(imageObject),
if I don't set some values for width and height, it will not display.
Can I find out the original width and height of the picture after it
has been displayed this way?

As a quick remark, if I use parent.addChild(imageObject) (where parent
is Application), the image displays without any width and height set
(i'm using Flex 2), but i would like to have each picture displayed
inside the corresponding class.

Thanks!

 



RE: [flexcoders] Re: transient properties of an object using RemoteClass

2007-10-29 Thread Dimitrios Gianninas
I believe so, first time I see it myself, never seen anything like this for 
Flex 2.
 
Dimitrios Gianninas
RIA Developer and Team Lead
Optimal Payments Inc.
 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of 
simonjpalmer
Sent: Monday, October 29, 2007 10:48 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: transient properties of an object using RemoteClass



Wait... this is 3, I am on 2...

I can't find a reference to this in Flex 2, is it a new feature of 3?

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


http://livedocs.adobe.com/labs/flex/3/html/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Book_Partsfile=metadata_066_15.html
 
http://livedocs.adobe.com/labs/flex/3/html/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Book_Partsfile=metadata_066_15.html
 
 
 
 
 --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , 
 simonjpalmer simonjpalmer@
 wrote:
 
  I have a situation where I have a deliberate mismatch between my AS3
  and Java objects.
  
  I have a Java object
  
  package com.java
  class X
  {
  private String name;
  public String getName(){return name;}
  public void setName(String name){this.name=name;}
  }
  
  and an ActionScript object
  
  package com.as3
  {
  [Managed]
  [RemoteClass(alias=com.java.X)]
  public class X
  {
  private var name:String;
  private var age:Number;
  }
  }
  
  this all works great and my X.name gets transported back and forth
  reliably, however when data is transmitted from client to server I get
  a warning message from the framework on the server which says...
  
  Ignoring set property age for type com.as3.X as a setter could not be
  found.
  
  This means that the age property was transmitted unnecessarily. Not a
  problem for a primitive like a Number, but a real problem if age
  contained an array of objects.
  
  What I think I need is something like the transient keyword in Java
  object persistence which causes a property not to be considered for
  persistence, or in this case transmission. 
  
  Does any such thing exist, or is there another way of doing this? 
  
  Thanks
 




 

-- 
WARNING
---
This electronic message and its attachments may contain confidential, 
proprietary or legally privileged information, which is solely for the use of 
the intended recipient.  No privilege or other rights are waived by any 
unintended transmission or unauthorized retransmission of this message.  If you 
are not the intended recipient of this message, or if you have received it in 
error, you should immediately stop reading this message and delete it and all 
attachments from your system.  The reading, distribution, copying or other use 
of this message or its attachments by unintended recipients is unauthorized and 
may be unlawful.  If you have received this e-mail in error, please notify the 
sender.

AVIS IMPORTANT
--
Ce message électronique et ses pièces jointes peuvent contenir des 
renseignements confidentiels, exclusifs ou légalement privilégiés destinés au 
seul usage du destinataire visé.  L'expéditeur original ne renonce à aucun 
privilège ou à aucun autre droit si le présent message a été transmis 
involontairement ou s'il est retransmis sans son autorisation.  Si vous n'êtes 
pas le destinataire visé du présent message ou si vous l'avez reçu par erreur, 
veuillez cesser immédiatement de le lire et le supprimer, ainsi que toutes ses 
pièces jointes, de votre système.  La lecture, la distribution, la copie ou 
tout autre usage du présent message ou de ses pièces jointes par des personnes 
autres que le destinataire visé ne sont pas autorisés et pourraient être 
illégaux.  Si vous avez reçu ce courrier électronique par erreur, veuillez en 
aviser l'expéditeur.



[flexcoders] Re: transient properties of an object using RemoteClass

2007-10-29 Thread simonjpalmer
Wait... this is 3, I am on 2...

I can't find a reference to this in Flex 2, is it a new feature of 3?

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


http://livedocs.adobe.com/labs/flex/3/html/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Book_Partsfile=metadata_066_15.html
 
 
 
 --- In flexcoders@yahoogroups.com, simonjpalmer simonjpalmer@
 wrote:
 
  I have a situation where I have a deliberate mismatch between my AS3
  and Java objects.
  
  I have a Java object
  
  package com.java
  class X
  {
  private String name;
  public String getName(){return name;}
  public void setName(String name){this.name=name;}
  }
  
  and an ActionScript object
  
  package com.as3
  {
  [Managed]
  [RemoteClass(alias=com.java.X)]
  public class X
  {
  private var name:String;
  private var age:Number;
  }
  }
  
  this all works great and my X.name gets transported back and forth
  reliably, however when data is transmitted from client to server I get
  a warning message from the framework on the server which says...
  
  Ignoring set property age for type com.as3.X as a setter could not be
  found.
  
  This means that the age property was transmitted unnecessarily.  Not a
  problem for a primitive like a Number, but a real problem if age
  contained an array of objects.
  
  What I think I need is something like the transient keyword in Java
  object persistence which causes a property not to be considered for
  persistence, or in this case transmission.  
  
  Does any such thing exist, or is there another way of doing this?  
  
  Thanks
 





Re: [flexcoders]Simple method to separate the textarea from the control toolbar

2007-10-29 Thread squillets
Here is one example:
http://flexarena.blogspot.com/2006/05/richtexteditor-with-floating-toolb\
ar.html

--- In flexcoders@yahoogroups.com, dorkie dork from dorktown
[EMAIL PROTECTED] wrote:

 Is there a simple method to separate the Textarea from the control
toolbar
 in the Rich Text Editor control?





RE: [flexcoders] Re: Trigger a function in the main applicatoin mxml from a popup window.

2007-10-29 Thread Tracy Spratt
Here is an example that shows several ways to pass data between a popup
and the main app.  It does not show using events.

http://www.cflex.net/showFileDetails.cfm?ObjectID=558

Tracy

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of kalpkat9
Sent: Sunday, October 28, 2007 11:26 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Trigger a function in the main applicatoin
mxml from a popup window.

 

ok, I guess this will suffice if the popup was just an alert. but the
popup window i am working on is a component by itself with datagrids
and states, so i have to trigger the with button click from this
titlewindow/popup window component. how is that i could access a
function in the mainApp.mxml from my popup custom component mxml?.
Thank you again.
(sincerely appreciate your responses).

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

 Try from in the mainApp scope.
 
 
 http://livedocs.adobe.com/labs/flex3/html/help.html?
http://livedocs.adobe.com/labs/flex3/html/help.html?  
 content=controls_22.html
 
 ?xml version=1.0?
 !-- controls\alert\AlertIcon.mxml --
 mx:Application xmlns:mx=http://www.adobe.com/2006/mxml
http://www.adobe.com/2006/mxml 
 
 mx:Script
 ![CDATA[
 import mx.controls.Alert;
 import mx.events.CloseEvent;
 
 [Embed(source=assets/alertIcon.jpg)]
 [Bindable]
 public var iconSymbol:Class;
 
 private function alertListener(eventObj:CloseEvent):void {
 // Check to see if the OK button was pressed.
 if (eventObj.detail==Alert.OK) {
 myText.text = myInput.text;
 }
 }
 ]]
 /mx:Script
 
 mx:TextInput id=myInput
 width=150
 text=/
 mx:Button id=myButton
 label=Copy Text
 click='Alert.show(Copy Text?, Alert,
 Alert.OK | Alert.CANCEL, this,
 alertListener, iconSymbol, Alert.OK );'/
 mx:TextInput id=myText/
 /mx:Application
 
 
 
 On 29/10/2007, at 1:56 PM, kalpkat9 wrote:
 
  Thanks for taking your time to respond, Bjorn.
 
  I am triggering a function called submitData() from the click event
of
  my button inside the popup window.
 
  private function submitData():void{
  mainApp.currentState.name = secondState;
  }
 
  This doesnt seem to accomplish what I wish for (of changing the
state
  of my mainApp.mxml)
 
  How is that I can access a function from my main application mxml,
  for example: changeState().
 
  private function changeState():void{
  currentState = secondState;
  }
 
  Please excuse my ignorance. Could you let me know what I am missing?
 
  Thank you.
 
  --- In flexcoders@yahoogroups.com
mailto:flexcoders%40yahoogroups.com , Bjorn Schultheiss
  bjorn.mailinglists@ wrote:
  
   Listen to the closeEvent from the popup and call the function from
   the handler.
  
   Bjorn
  
  
   On 29/10/2007, at 12:10 PM, kalpkat9 wrote:
  
Hi,
   
This might be a really petty question to ask, but I will greatly
appreciate if someone can answer.
   
How can I trigger a function in my main application mxml, from 
  a popup
window(title window/panel) after a submit button click. (I am
trying to
change the state of my main application by clicking the submit 
  button)
   
Thank you,
Kal.
   
   
   
  
 
 
 


 



RE: [flexcoders] Re: removechild and addchild cause flickering , help~

2007-10-29 Thread Alex Harui
Ok, I tried to help...

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of icykorpio
Sent: Monday, October 29, 2007 9:40 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: removechild and addchild cause flickering ,
help~

 

I don't think the async is the reason, look, the button click cause 
the change. all images are well loaded.

//Also play with creationPolicy=all or queued on container.

I think this makes sense. let me try and thanks all!

 



RE: [flexcoders] Multiple File Uploads and OSX Leopard

2007-10-29 Thread Mike Krotscheck
Initial testing shows that using FileReference to upload an image just
doesn't work. I'll have leopard tonight, so will be able to give more
detailed information. For the time being, this link from flickr
corroborates the testing (which Nicholas Mercer was kind enough to help
me with): http://flickr.com/help/forum/en-us/58019/

 

Michael Krotscheck

Senior Developer

 
RESOURCE INTERACTIVE

http://www.resource.com/ www.resource.com http://www.resource.com 

[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] 



This email and any of its attachments may contain Resource Interactive
proprietary information, which is privileged, confidential and may be
subject to copyright or other intellectual property rights belonging to
Resource Interactive. This email is intended solely for the use of the
individual or entity to which it is addressed. If you are not the
intended recipient of this email, you are hereby notified that any
dissemination, distribution, copying or action taken in relation to the
contents of and attachments to this email is strictly prohibited and may
be unlawful. If you have received this email in error, please notify the
sender immediately and permanently delete the original and any copy of
this email and any printout.




From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Paul Decoursey
Sent: Monday, October 29, 2007 12:42 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Multiple File Uploads and OSX Leopard

 

What do you mean borked and what do you mean multiple file uploads?
Don't you do one at a time?  I don't have Leopard yet, but in a few days
I will.

 

Paul

 

On Oct 29, 2007, at 6:37 AM, Mike Krotscheck wrote:





I'm seeing blog reports that Multiple File Uploads are borked on Flash
Player 9 and OSX Leopard. Unfortunately I don't have my own Leopard
environment yet, so can't confirm this, nor can I find any official
acknowledgement from either Apple or Adobe.

 

Can anyone out there confirm this for me? And if it's verifiable, who
would I have to poke to get an official statement from either company as
to when this might be fixed?

 

Michael Krotscheck

Senior Developer

 
RESOURCE INTERACTIVE

http://www.resource.com/ www.resource.com http://www.resource.com 

[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] 

 



This email and any of its attachments may contain Resource Interactive
proprietary information, which is privileged, confidential and may be
subject to copyright or other intellectual property rights belonging to
Resource Interactive. This email is intended solely for the use of the
individual or entity to which it is addressed. If you are not the
intended recipient of this email, you are hereby notified that any
dissemination, distribution, copying or action taken in relation to the
contents of and attachments to this email is strictly prohibited and may
be unlawful. If you have received this email in error, please notify the
sender immediately and permanently delete the original and any copy of
this email and any printout.





 

 



[flexcoders] Re: Tree: Removing expand triangle from select nodes

2007-10-29 Thread djdyland
Hi, Thanks for the reply.

Like I said I have a ITreeDataDescriptor.

But I don't see how I can use that to disable the expand triagle for 
certain nodes.

Thanks
Dylan

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

 Custom ITreeDataDescriptor
 
  
 
 
 
 From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On
 Behalf Of djdyland
 Sent: Monday, October 29, 2007 8:41 AM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Tree: Removing expand triangle from select 
nodes
 
  
 
 Hello,
 
 I'm building a scripting reference app that is populated from an 
XML 
 file. The structure is something like this.
 
 groupOfAssociatedClasses name=name of container
 class name=className
 property name=propertyName
 typetheType/type
 /property
 method name=methodName
 inputTypetype/inputType
 returnValuevalue/returnValue
 /method
 /class
 class name=className
 property name=propertyName
 typetheType/type
 /property
 method name=methodName
 inputTypetype/inputType
 returnValuevalue/returnValue
 /method
 /class
 /groupOfAssociatedClasses
 groupOfAssociatedClasses name=name of container
 class name=className
 property name=propertyName
 typetheType/type
 /property
 method name=methodName
 inputTypetype/inputType
 returnValuevalue/returnValue
 /method
 /class
 /groupOfAssociatedClasses
 
 I created a tree discriptor to filter out all the children on each 
 class so it doesn't display them in the tree. All I want to see in 
 the tree is the names of the containers and the names of the 
classes.
 
 My proplem is that beucase the classes have children flex is 
 displaying the expand node triangle beside the icon which ends up 
 doing nothing becuase of the filter. How can I get rid of the 
expand 
 node triangle?
 
 I tried to turn it off but it ended up turning it off for the 
parent 
 container nodes as well.
 
 Any Help is much appreciated :)





[flexcoders] Flex 3 release date

2007-10-29 Thread simonjpalmer
What is the latest statement of intent from Adobe regarding the full
Flex 3 release date?



[flexcoders] debugger problems

2007-10-29 Thread Scott Melby
I have recently setup a new development machine (Vista) and in the 
process upgraded to Flex Builder 3 Beta 2.  On my old machine the 
debugger always used firefox... and all was good :)  Now, on this new 
machine it is using IE and all is not nearly as good.  I am only able to 
open the debugger once per reboot of the machine.  After that, no matter 
how I stopped the debugging session, I am told that another debugger may 
be running and that i should close it.  I saw an open item for this in 
JIRA, and it all seems to be related to IE (I think).  So, I decided to 
switch to debugging in FF.  No luck, I can't find anything in the 
builder preferences that allows me to tell it which browser to invoke 
for debugging.  I tried removing the IE debug flash player, but now it 
just says no debug player can be found and the launches IE without debug 
if I choose to continue.
So... can anybody tell me how to force it to debug in FF?

Any help is appreciated.

Thanks
Scott


[flexcoders] application not expanding to fit content

2007-10-29 Thread davidch204
I have an issue with my application's height. I have the height and
width of my application set to 100%. In testing the application will
fill the browser window.

However in production the height of the application seems to be fixed,
it doesn't fill the div container, but the width of the application
will fill the div.

the layout attribute for application is set to vertical. Any clues as
to why the height of the application seems to be fixed?



[flexcoders] Re: transient properties of an object using RemoteClass

2007-10-29 Thread ben.clinkinbeard
Nah, looks like it was just undocumented in 2:

http://nondocs.blogspot.com/2007/04/metadatatransient.html
http://www.darronschall.com/weblog/archives/000271.cfm

HTH,
Ben


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

 Wait... this is 3, I am on 2...
 
 I can't find a reference to this in Flex 2, is it a new feature of 3?
 
 --- In flexcoders@yahoogroups.com, ben.clinkinbeard
 ben.clinkinbeard@ wrote:
 
 

http://livedocs.adobe.com/labs/flex/3/html/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Book_Partsfile=metadata_066_15.html
  
  
  
  --- In flexcoders@yahoogroups.com, simonjpalmer simonjpalmer@
  wrote:
  
   I have a situation where I have a deliberate mismatch between my AS3
   and Java objects.
   
   I have a Java object
   
   package com.java
   class X
   {
   private String name;
   public String getName(){return name;}
   public void setName(String name){this.name=name;}
   }
   
   and an ActionScript object
   
   package com.as3
   {
   [Managed]
   [RemoteClass(alias=com.java.X)]
   public class X
   {
   private var name:String;
   private var age:Number;
   }
   }
   
   this all works great and my X.name gets transported back and forth
   reliably, however when data is transmitted from client to server
I get
   a warning message from the framework on the server which says...
   
   Ignoring set property age for type com.as3.X as a setter could
not be
   found.
   
   This means that the age property was transmitted unnecessarily.
 Not a
   problem for a primitive like a Number, but a real problem if age
   contained an array of objects.
   
   What I think I need is something like the transient keyword in
Java
   object persistence which causes a property not to be considered for
   persistence, or in this case transmission.  
   
   Does any such thing exist, or is there another way of doing this?  
   
   Thanks
  
 





[flexcoders] API that encapsulates both Native DnD andDragEvents?

2007-10-29 Thread ivo
Hey all,

I am trying to get Drag and Drop deals with both Drag and Drop from the local 
filesystem as well as within the application itself. I see there are two APIs 
for Drag and Drop, each with its own DragManager and distinct events. Has 
anyone worked on encapsulating these two on a single API? My app should be used 
both on the web and as an air app with little modifications so I am about to 
start looking into this.

Thanks,

- Ivo




[flexcoders] htmlText in text that originates in XML

2007-10-29 Thread droponrcll
I have an XML file that looks like this:
[!CDATA[
pageContent
txt x=10 y=10 w=120 h=100
The quick brown fox jumped over the 
blazy/b kitten. 
/txt
txt x=430 y=60 w=150 h=100The quick brown 
fox jumped over the 

stripey kitten./txt
txt x=100 y=420 w=200 h=50The quick brown 
fox jumped over the 

rotten tomato./txt
img x=10 y=60img.jpg/img
swf x=430 y=160 w=200 h=200swf.swf/swf
/pageContent
]]

This XML is passed in through ExternalInterface, hence the CDATA 
tags.  I have a repeater that displays all the objects described in 
the XML.  However, I can't seem to get it to respect the b tag.  
I've tried wrapping the contents of that tag in CDATA, but all that 
gets me is CDATA on the screen.  When I don't wrap it in CDATA, the 
entire XML tag appears as a result of this expression: 
contentItem.valueOf().toString(), rather than just the bit in the 
middle.

Can anyone point me to something that tells me how you wrap html text 
in the XML file to make it actually work properly inside a textArea?

TIA;

Amy



Re: [flexcoders] MXML vs. pure ActionScript

2007-10-29 Thread George
MXML is for visual components or views/screens/states that will be 
changed/repositioned/skinned now and then in the future. If that's the 
case, go MXML only.

The downside of MXML is it won't support Outline for scripts, you need 
to write script externally.

If not case above, pure actionscript class of course.

George

lrdvadersith wrote:
 I am new to the Flex world, and I am trying to figure out if I should
 use MXML to lay out visual components, or go with a pure ActionScript
 approach.

 Google searches reveal pros and cons of each, but no real consensus on
 which is a better general approach.  Even within our organization (all
 of whom are also new to Flex), there is no real strong opinions on
 this issue.

 I would like to see what the thoughts are from some of the more
 experienced Flex coders in this group.

 Do you prefer using MXML or pure ActionScript, and why?

 Thanks in advance,

 Steve
   


Re: [flexcoders] MXML vs. pure ActionScript

2007-10-29 Thread Paul Decoursey
I like both.  For some things, like components I prefer AS only.  But  
for larger apps I prefer mxml simply because I can visualize the app  
better.  I don't think that there is any one better way to do it, it  
depends on your strengths and your needs.

Paul


On Oct 29, 2007, at 1:02 PM, lrdvadersith wrote:

 I am new to the Flex world, and I am trying to figure out if I should
 use MXML to lay out visual components, or go with a pure ActionScript
 approach.

 Google searches reveal pros and cons of each, but no real consensus on
 which is a better general approach.  Even within our organization (all
 of whom are also new to Flex), there is no real strong opinions on
 this issue.

 I would like to see what the thoughts are from some of the more
 experienced Flex coders in this group.

 Do you prefer using MXML or pure ActionScript, and why?

 Thanks in advance,

 Steve





 --
 Flexcoders Mailing List
 FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
 Search Archives: http://www.mail-archive.com/flexcoders% 
 40yahoogroups.com
 Yahoo! Groups Links






RE: [flexcoders] Flex 3 release date

2007-10-29 Thread Matt Chotin
Early 2008.  Where January is considered very early and April would be
considered closer to mid.

 

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of simonjpalmer
Sent: Monday, October 29, 2007 10:57 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Flex 3 release date

 

What is the latest statement of intent from Adobe regarding the full
Flex 3 release date?

 



Re: [flexcoders] application not expanding to fit content

2007-10-29 Thread Paul Decoursey
100% height in html rarely works.   the height of the div is the  
problem.  It has been my experience the it will not expand to what it  
could.  I have seen some workarounds out there where if you set the  
body to 100% height and all parent tags also to a height then it  
works, but I have now be successful with that.  I have usually  
resorted to javascript setting the height after it's loaded.

Paul



On Oct 29, 2007, at 1:14 PM, davidch204 wrote:

 I have an issue with my application's height. I have the height and
 width of my application set to 100%. In testing the application will
 fill the browser window.

 However in production the height of the application seems to be fixed,
 it doesn't fill the div container, but the width of the application
 will fill the div.

 the layout attribute for application is set to vertical. Any clues as
 to why the height of the application seems to be fixed?



 --
 Flexcoders Mailing List
 FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
 Search Archives: http://www.mail-archive.com/flexcoders% 
 40yahoogroups.com
 Yahoo! Groups Links






[flexcoders] MXML vs. pure ActionScript

2007-10-29 Thread lrdvadersith
I am new to the Flex world, and I am trying to figure out if I should
use MXML to lay out visual components, or go with a pure ActionScript
approach.

Google searches reveal pros and cons of each, but no real consensus on
which is a better general approach.  Even within our organization (all
of whom are also new to Flex), there is no real strong opinions on
this issue.

I would like to see what the thoughts are from some of the more
experienced Flex coders in this group.

Do you prefer using MXML or pure ActionScript, and why?

Thanks in advance,

Steve





Re: [flexcoders] How do I pause

2007-10-29 Thread [EMAIL PROTECTED]
There no example of how to make a pause effect in actionscript here
http://livedocs.adobe.com/flex/201/langref/mx/effects/Pause.html
so I am pretty much at a loss on how to proceed.

I guess I have to make a custom effect trigger like this, but I'm having 
a really hard time with it.
http://livedocs.adobe.com/flex/201/html/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Book_Partsfile=createeffects_154_15.html






Alex Harui wrote:

 Pause effect?

  

 

 *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] 
 *On Behalf Of [EMAIL PROTECTED]
 *Sent:* Monday, October 29, 2007 12:23 AM
 *To:* flexcoders@yahoogroups.com
 *Subject:* [flexcoders] How do I pause

  

 My movie changes states when the user hits a button, but I want it to
 pause for 5 seconds. How do I do that ? I see something about pausing a
 sequence in the documentation. do I have to create a sequence first ?

  



[flexcoders] Re: Getting Debugger window when running flex application

2007-10-29 Thread Mike Morearty
If this is happening, then you didn't install the new beta Flash
player that shipped with Flex Builder (in Flex Builder's installer,
you probably un-checked the box to install the player).  Please
install it from the Player subdir of Flex Builder.  That will fix
the problem.

- Mike Morearty, Adobe Flex Builder team


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

 I just installed the latest beta. When I run (clicking the play button 
 NOT the debug button), I get the dialog box that says Where is the 
 debugger or host application running? with radio buttons saying 
 localhost or other machine. Actually debugging in debugging mode works 
 fine, just not normally running the application through the IDE. Has 
 anyone seen this? 
 
 thanks
 Ralph





RE: [flexcoders] MXML vs. pure ActionScript

2007-10-29 Thread Mike Krotscheck
I'm with Paul on this one. MXML is wonderful for layout, because I'm
familiar with the HTML world and the metaphors are all the same (which
means you can get someone less experienced to do layout tweaks :-). But
when it comes to a standalone and fairly complex component, pure
actionscript enables all the fancy outline and collapse features that
MXML just doesn't.

 

Basically, ask yourself this question: Is what you're building visual
(MXML)? Or functional (AS)?

 

Michael Krotscheck

Senior Developer

 
RESOURCE INTERACTIVE

http://www.resource.com/ www.resource.com http://www.resource.com 

[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] 



This email and any of its attachments may contain Resource Interactive
proprietary information, which is privileged, confidential and may be
subject to copyright or other intellectual property rights belonging to
Resource Interactive. This email is intended solely for the use of the
individual or entity to which it is addressed. If you are not the
intended recipient of this email, you are hereby notified that any
dissemination, distribution, copying or action taken in relation to the
contents of and attachments to this email is strictly prohibited and may
be unlawful. If you have received this email in error, please notify the
sender immediately and permanently delete the original and any copy of
this email and any printout.




From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Paul Decoursey
Sent: Monday, October 29, 2007 2:31 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] MXML vs. pure ActionScript

 

I like both. For some things, like components I prefer AS only. But 
for larger apps I prefer mxml simply because I can visualize the app 
better. I don't think that there is any one better way to do it, it 
depends on your strengths and your needs.

Paul

On Oct 29, 2007, at 1:02 PM, lrdvadersith wrote:

 I am new to the Flex world, and I am trying to figure out if I should
 use MXML to lay out visual components, or go with a pure ActionScript
 approach.

 Google searches reveal pros and cons of each, but no real consensus on
 which is a better general approach. Even within our organization (all
 of whom are also new to Flex), there is no real strong opinions on
 this issue.

 I would like to see what the thoughts are from some of the more
 experienced Flex coders in this group.

 Do you prefer using MXML or pure ActionScript, and why?

 Thanks in advance,

 Steve





 --
 Flexcoders Mailing List
 FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt 
 Search Archives: http://www.mail-archive.com/flexcoders%
http://www.mail-archive.com/flexcoders%25  
 40yahoogroups.com
 Yahoo! Groups Links




 



[flexcoders] Re: transient properties of an object using RemoteClass

2007-10-29 Thread simonjpalmer
Thanks!  

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


http://livedocs.adobe.com/labs/flex/3/html/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Book_Partsfile=metadata_066_15.html
 
 
 
 --- In flexcoders@yahoogroups.com, simonjpalmer simonjpalmer@
 wrote:
 
  I have a situation where I have a deliberate mismatch between my AS3
  and Java objects.
  
  I have a Java object
  
  package com.java
  class X
  {
  private String name;
  public String getName(){return name;}
  public void setName(String name){this.name=name;}
  }
  
  and an ActionScript object
  
  package com.as3
  {
  [Managed]
  [RemoteClass(alias=com.java.X)]
  public class X
  {
  private var name:String;
  private var age:Number;
  }
  }
  
  this all works great and my X.name gets transported back and forth
  reliably, however when data is transmitted from client to server I get
  a warning message from the framework on the server which says...
  
  Ignoring set property age for type com.as3.X as a setter could not be
  found.
  
  This means that the age property was transmitted unnecessarily.  Not a
  problem for a primitive like a Number, but a real problem if age
  contained an array of objects.
  
  What I think I need is something like the transient keyword in Java
  object persistence which causes a property not to be considered for
  persistence, or in this case transmission.  
  
  Does any such thing exist, or is there another way of doing this?  
  
  Thanks
 





[flexcoders] Re: application not expanding to fit content

2007-10-29 Thread davidch204
Yea I feared as much. It looks like I'll have to set the height after
its loaded. 

There's also some issues with the height in Safari where it will
expand beyond the content of the application by at least another 100%.

Thanks for the response.

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

 100% height in html rarely works.   the height of the div is the  
 problem.  It has been my experience the it will not expand to what it  
 could.  I have seen some workarounds out there where if you set the  
 body to 100% height and all parent tags also to a height then it  
 works, but I have now be successful with that.  I have usually  
 resorted to javascript setting the height after it's loaded.
 
 Paul
 
 
 
 On Oct 29, 2007, at 1:14 PM, davidch204 wrote:
 
  I have an issue with my application's height. I have the height and
  width of my application set to 100%. In testing the application will
  fill the browser window.
 
  However in production the height of the application seems to be fixed,
  it doesn't fill the div container, but the width of the application
  will fill the div.
 
  the layout attribute for application is set to vertical. Any clues as
  to why the height of the application seems to be fixed?
 
 
 
  --
  Flexcoders Mailing List
  FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
  Search Archives: http://www.mail-archive.com/flexcoders% 
  40yahoogroups.com
  Yahoo! Groups Links
 
 
 





[flexcoders] Re: Tree: Removing expand triangle from select nodes

2007-10-29 Thread djdyland
So I guess to simplify my question... how do I apply

myTree.setStyle(disclosureOpenIcon, null);
myTree.setStyle(disclosureCloseIcon, null);

to individual nodes instead if the whole tree?

Anyone have any idea

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

 Hi, Thanks for the reply.
 
 Like I said I have a ITreeDataDescriptor.
 
 But I don't see how I can use that to disable the expand triagle 
for 
 certain nodes.
 
 Thanks
 Dylan
 
 --- In flexcoders@yahoogroups.com, Alex Harui aharui@ wrote:
 
  Custom ITreeDataDescriptor
  
   
  
  
  
  From: flexcoders@yahoogroups.com 
 [mailto:[EMAIL PROTECTED] On
  Behalf Of djdyland
  Sent: Monday, October 29, 2007 8:41 AM
  To: flexcoders@yahoogroups.com
  Subject: [flexcoders] Tree: Removing expand triangle from select 
 nodes
  
   
  
  Hello,
  
  I'm building a scripting reference app that is populated from an 
 XML 
  file. The structure is something like this.
  
  groupOfAssociatedClasses name=name of container
  class name=className
  property name=propertyName
  typetheType/type
  /property
  method name=methodName
  inputTypetype/inputType
  returnValuevalue/returnValue
  /method
  /class
  class name=className
  property name=propertyName
  typetheType/type
  /property
  method name=methodName
  inputTypetype/inputType
  returnValuevalue/returnValue
  /method
  /class
  /groupOfAssociatedClasses
  groupOfAssociatedClasses name=name of container
  class name=className
  property name=propertyName
  typetheType/type
  /property
  method name=methodName
  inputTypetype/inputType
  returnValuevalue/returnValue
  /method
  /class
  /groupOfAssociatedClasses
  
  I created a tree discriptor to filter out all the children on 
each 
  class so it doesn't display them in the tree. All I want to see 
in 
  the tree is the names of the containers and the names of the 
 classes.
  
  My proplem is that beucase the classes have children flex is 
  displaying the expand node triangle beside the icon which ends 
up 
  doing nothing becuase of the filter. How can I get rid of the 
 expand 
  node triangle?
  
  I tried to turn it off but it ended up turning it off for the 
 parent 
  container nodes as well.
  
  Any Help is much appreciated :)
 





RE: [flexcoders] MXML vs. pure ActionScript

2007-10-29 Thread Seth Caldwell
I prefer to write components that use actionscript classes - and then use
mxml that use these components. It makes use and reuse quite simple. Also
combining this component into larger components seems easier this way as
well.

Often my development cycle is like this

1)  Write actionscript to get things working the way I want them to

2)  Refactor this actionscript to make it readable and optimized

3)  Create a component and move this actionscript into their own
reusable classes, or into that component.

4)  Replace original code with instantiation of that component and
consider what variables will need to be set at the mxml level.

 

So my application xml really doesn't have much actionscript in it. Its
more of a straight outline of components. It has some actionscript like a
creationcomplete function, etc. but .. well here's an example:

You have an accordion with some UI elements and one of the accordion members
should allow file upload. You could add a button with label browse and in
the script section of the application have a function you call on click that
pops up the file selector. This is Step 1. After you test it and see its
working, you recode it a bit, maybe you want a text field to show the name
of the file selected, or a list to show the files selected in the multi-file
upload case. So you get that working, you clean the code so its somewhat
reusable. That is step 2. Now you create a component called the
FileUploader, perhaps another one called MultiFileUploader, they both use an
actionscript class you create that contains most of the logic you previously
wrote. This is step 3. 

Then in your application mxml you now have an instantiation of a
FileUploader instead of an hbox, a text field, and a button. And all the
actionscript that controls how that thing behaves is contained in the
component or in classes it uses, so at the application level all you see is
mxml. You test out this mxml, and realize you want to change the component
so at the mxml level you can specify the filetypes it accepts, so you create
a member on a class that you decide both FileUploader and MultiFileUploader
will inherit from - called GenericFileUploader. The members name is
fileFilterString, lets say, so that you can do something like FileUploader
fileFilterType=images /.. and the generic class will create the
FileFilter class each of its children uses in its constructor, actually
using Images (*.jpg,*.jpeg, *.gif, *.png) as the string to pass in. 

 

So the general tendency is to push actionscript further and further down
away from where you will ever have to touch it again, if possible - I doubt
you would ever instantiate a GenericFileUploader using mxml, but much of the
actionscript that both the FileUploader and MultiFileUploader use would be
in that class (which could be mxml component or just actionscript).

Then these components become building blocks that are easily used across
your application and even future applications.

 

How does this approach jive with the other ppl on this list? Sound about
right?

 

Seth

 

 

 

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of lrdvadersith
Sent: Monday, October 29, 2007 11:03 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] MXML vs. pure ActionScript

 

I am new to the Flex world, and I am trying to figure out if I should
use MXML to lay out visual components, or go with a pure ActionScript
approach.

Google searches reveal pros and cons of each, but no real consensus on
which is a better general approach. Even within our organization (all
of whom are also new to Flex), there is no real strong opinions on
this issue.

I would like to see what the thoughts are from some of the more
experienced Flex coders in this group.

Do you prefer using MXML or pure ActionScript, and why?

Thanks in advance,

Steve

 



RE: [flexcoders] Re: Tree: Removing expand triangle from select nodes

2007-10-29 Thread Jim Hayes

-Original Message-
From: flexcoders@yahoogroups.com on behalf of djdyland
Sent: Mon 29/10/2007 19:43
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Tree: Removing expand triangle from select nodes
 
So I guess to simplify my question... how do I apply

myTree.setStyle(disclosureOpenIcon, null);
myTree.setStyle(disclosureCloseIcon, null);

to individual nodes instead if the whole tree?

-

I think that may be exactly what you need to do :
Recurse through the tree and set each individual node icon according to it's 
number of children.
At least thats what I used to do in the old flash component tree:
If there's a smarter way to do it in Flex then someone please do let us know -
Something fairly similar is rising towards the top of my todo list ...

__
This communication is from Primal Pictures Ltd., a company registered in 
England and Wales with registration No. 02622298 and registered office: 4th 
Floor, Tennyson House, 159-165 Great Portland Street, London, W1W 5PA, UK. VAT 
registration No. 648874577.

This e-mail is confidential and may be privileged. It may be read, copied and 
used only by the intended recipient. If you have received it in error, please 
contact the sender immediately by return e-mail or by telephoning +44(0)20 7637 
1010. Please then delete the e-mail and do not disclose its contents to any 
person.
This email has been scanned for Primal Pictures by the MessageLabs Email 
Security System.
__winmail.dat

RE: [flexcoders] Controlling MenuBar Submenus via Code frustrations

2007-10-29 Thread Alex Harui
The menudatadescriptor has methods isToggled/get/setToggled, IIRC.
Usually that maps to toggled properties or attributes in the
dataprovider you sent to the MenuBar.

 

Manipulating the data in the dataprovider is the recommended way of
changing the state of the buttons.  It is not recommended that you do it
from the Menu instances as they can be created and destroyed
dynamically.

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Mike Anderson
Sent: Monday, October 29, 2007 1:15 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Controlling MenuBar Submenus via Code frustrations

 

Greetings All,

I've burned an entire DAY searching the web for examples of how to
control sub-menus in a MenuBar control, via code. The main types of
things I need to accomplish, is toggling Checkboxes and Radio Buttons,
when certain application variables change.

My MenuBar has 6 primary menus across the top, and each primary menu,
could have any number of additional sub-menus (which have several
variations of menu types - Checkboxes, Radio Buttons, etc.)

My MenuBar is being populated via an external XML File.

Per the docs, each top level menu is considered a 'MenuBarItem', but
there is very little helpful information after that. All the help docs
focus primarily on listening for MenuBar events and writing functions to
respond - but there is NOTHING on how to do the reverse.

I consider myself to be a fairly seasoned Flex Programmer, but this
MenuBar stuff has got me stumped, and quite frustrated.

If anybody has any examples on this topic, I would be VERY grateful.

Thanks in advance for any help,

Mike

 



RE: [flexcoders] How do I pause

2007-10-29 Thread Alex Harui
If you really want to lock up your app for 5 seconds, do this:

 

Var t:int = getTimer() + 5000;

While (getTimer  t);

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of [EMAIL PROTECTED]
Sent: Monday, October 29, 2007 11:48 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] How do I pause

 

There no example of how to make a pause effect in actionscript here
http://livedocs.adobe.com/flex/201/langref/mx/effects/Pause.html
http://livedocs.adobe.com/flex/201/langref/mx/effects/Pause.html 
so I am pretty much at a loss on how to proceed.

I guess I have to make a custom effect trigger like this, but I'm having

a really hard time with it.
http://livedocs.adobe.com/flex/201/html/wwhelp/wwhimpl/common/html/wwhel
p.htm?context=LiveDocs_Book_Partsfile=createeffects_154_15.html
http://livedocs.adobe.com/flex/201/html/wwhelp/wwhimpl/common/html/wwhe
lp.htm?context=LiveDocs_Book_Partsfile=createeffects_154_15.html 

Alex Harui wrote:

 Pause effect?

 

 --

 *From:* flexcoders@yahoogroups.com
mailto:flexcoders%40yahoogroups.com
[mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
] 
 *On Behalf Of [EMAIL PROTECTED] mailto:%2Ainfo1%40reenie.org 
 *Sent:* Monday, October 29, 2007 12:23 AM
 *To:* flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com

 *Subject:* [flexcoders] How do I pause

 

 My movie changes states when the user hits a button, but I want it to
 pause for 5 seconds. How do I do that ? I see something about pausing
a
 sequence in the documentation. do I have to create a sequence first ?

 

 



[flexcoders] Re: crossdomain.xml... real or not-so-real security?

2007-10-29 Thread geoffreymina
You guys misunderstood what I was talking about.  Here is the 
landscape:


Server 1: (www.foo.com) Owned by me and I have a crossdomain.xml 
which allows access to *.foo.com.  This server is NOT compromised and 
nobody is modifying any files.

Server 2: (www.evil.com) Owned by malicious user.  A Flash file is 
loaded on this server.  The flash file makes calls to www.foo.com 
which under normal circumstances would NOT be allowed to access data 
on my server because of the crossdomain only allowing access from 
*.foo.com.

Workstate 1: Owned by malicious user.  The user makes a local host 
entry for evil.foo.com which points to the same IP as www.evil.com.  
the malicious flash file is loaded under the evil.foo.com host header 
which then gives it access to my server at www.foo.com.

As you can see, no computers are compromised, yet the crossdomain.xml 
model fails under VERY simple circumstances.  

Basically what I am getting at is that crossdomain.xml really 
provides very little security at any layer.

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

  If that same evil person can get to your hosts file, that's the 
fault of
 the OS and not Flash.
 
 Yup! Machine is already compromised and that guy can do lots of 
other things
 :)
 
 -abdul
 
 On 10/27/07, Alex Harui [EMAIL PROTECTED] wrote:
 
 That's right.  The goal of crossdomain.xml is to limit what an 
evil
  person can do in a SWF served over the web so that the 
unsuspecting Web
  citizen isn't burned.  It does not block access to the contents 
from someone
  who has the desire to see the content on their machine.  If that 
same evil
  person can get to your hosts file, that's the fault of the OS and 
not Flash.
 
 
   --
 
  *From:* flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] *On
  Behalf Of *Abdul Qabiz
  *Sent:* Friday, October 26, 2007 1:40 PM
  *To:* flexcoders@yahoogroups.com
  *Subject:* Re: [flexcoders] crossdomain.xml... real or not-so-real
  security?
 
 
 
  Isn't it like running a standalone SWF which can access network 
and local
  data (provided u have right trust config)? Why to run a internal 
server and
  create host entry? SWF in AIR/Standalone can access data from 
foo.com.
 
  Can you put (give an example) this use-case in context of internet
  (public)?
 
  -abdul
 
  On 10/26/07, *geoffreymina*  [EMAIL PROTECTED] wrote:
 
  Say there is a site which has a crossdomain.xml defined:
 
  http://www.foo.com/crossdomain.xml
 
  with
 
  allow-access-from domain=*.foo.com/
 
  If I were to load an SWF file on my internal webserver and create 
a
  local host file which contained an entry for fake.foo.com could I 
then
  load the SWF file from fake.foo.com and access data on 
www.foo.com?
 
  If this is the case, then it seems to me that crossdomain.xml is 
really
  just something to make people feel warm and fuzzy... and not at 
all a
  real security measure.
 
  Thanks,
  Geoff
 
 
 
 
  --
  -abdul
  ---
  http://abdulqabiz.com/blog/
  ---
 
   
 
 
 
 
 -- 
 -abdul
 ---
 http://abdulqabiz.com/blog/
 ---





[flexcoders] Re: htmlText in text that originates in XML

2007-10-29 Thread droponrcll
--- In flexcoders@yahoogroups.com, Alex Harui [EMAIL PROTECTED] wrote:

 How much of that are you assigning to the htmlText property?
 

That's what I am trying to figure out.  I can't find anything in the 
XML properties or methods that gives me exactly the stuff between the 
beginning and ending tags and nothing else.  valueOf() does it if there 
are no html tags in there, but so far I haven't found anything useful 
for this.

Thanks!

Amy



Re: SPAM-LOW: [flexcoders] component visibility question

2007-10-29 Thread Jeffry Houser

  includeInLayout .

George Georgiou wrote:
 
 
 Hi there,
  
 I am wondering whether there is an alternative to the 'visible' property 
 of a component - which really 'removes' the component from the scene.
  
 I am having two panels and I want to be able to resize the first one to 
 100% when I 'hide' the second. Property visible works but I have to 
 manually (and dynamically) change the width of my first panel to 100% 
 whereas in the same time set the 2nd panel into 0%.
  
 Is there any workaround for this? Or is my resizing the only solution?
  
 thanks,
 George
  
 

-- 
Jeffry Houser, Technical Entrepreneur, Software Developer, Author, 
Recording Engineer
AIM: Reboog711  | Phone: 1-203-379-0773
--
My Company: http://www.dot-com-it.com
My Podcast: http://www.theflexshow.com
My Blog: http://www.jeffryhouser.com



[flexcoders] Re: FileReference upload passing parameters in URLRequest

2007-10-29 Thread letterpigeon
Can someone please help?  Thanks in advance.

Ban

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

 Hi,
 
 I've tried both method, GET and POST, but still couldn't get the 
 parameters to be passed correctly.
 
 Thanks.
 Ban
 
 --- In flexcoders@yahoogroups.com, Abdul Qabiz abdul.qabiz@ 
 wrote:
 
  Note sure, but you might need to set the method in URLRequest.
  
  request.method = URLRequestMethod.POST;
  
  -abdul
  
  On 10/29/07, letterpigeon ban.luc@ wrote:
  
 Hi all,
  
   I'm having this strange problem while uploading file in flex 
 using
   FileReference, that even though I set the the request 
attribute 
 on the
   flex side, and I verified that before I call fileRef.upload, 
the
   URLRequest object has all the attributes I set in its data 
 property.
   But when the request arrived on the java servlet side, the
   httprequest contains no attributes at all. Below is the code 
 snippet
   that I'm using to perform the upload, this processUpload 
 method is
   called after the user has browsed for a file, then hit upload 
so 
 I'm
   only registering the COMPLETE event here. fileRef is a global
   variable of type FileReference in the enclosing file.
   private function processUpload(func:Function):void
  
   {
  
   fileRef.addEventListener(Event.COMPLETE, func);
  
   var request:URLRequest = new
   URLRequest(FileImportConfigurationSource.HOST_PORT_CONTEXT +
   /FileUploadServlet);
  
   var params:URLVariables = new URLVariables();
  
   //Read file header data from UI input
  
   var client:FIClient = clientList.selectedItem as FIClient;
  
   var mnemonic:String = mnemonicList.selectedLabel;
  
   uploadFileId = UIDUtil.createUID().toString();
  
   params.uploadFileId = uploadFileId;
  
   params.transmissionId = testing;
  
   request.data = params;
  
   fileRef.upload(request);
  
   }
  
   Anyone spot any wrongdoing in the above code? Thanks.
  
   Ban
  

  
  
  
  
  -- 
  -abdul
  ---
  http://abdulqabiz.com/blog/
  ---
 





RE: [flexcoders] Re: Tree: Removing expand triangle from select nodes

2007-10-29 Thread Alex Harui
hasChildren() should return false.

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of djdyland
Sent: Monday, October 29, 2007 10:18 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Tree: Removing expand triangle from select
nodes

 

Hi, Thanks for the reply.

Like I said I have a ITreeDataDescriptor.

But I don't see how I can use that to disable the expand triagle for 
certain nodes.

Thanks
Dylan

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

 Custom ITreeDataDescriptor
 
 
 
 
 
 From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com

[mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
] On
 Behalf Of djdyland
 Sent: Monday, October 29, 2007 8:41 AM
 To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com 
 Subject: [flexcoders] Tree: Removing expand triangle from select 
nodes
 
 
 
 Hello,
 
 I'm building a scripting reference app that is populated from an 
XML 
 file. The structure is something like this.
 
 groupOfAssociatedClasses name=name of container
 class name=className
 property name=propertyName
 typetheType/type
 /property
 method name=methodName
 inputTypetype/inputType
 returnValuevalue/returnValue
 /method
 /class
 class name=className
 property name=propertyName
 typetheType/type
 /property
 method name=methodName
 inputTypetype/inputType
 returnValuevalue/returnValue
 /method
 /class
 /groupOfAssociatedClasses
 groupOfAssociatedClasses name=name of container
 class name=className
 property name=propertyName
 typetheType/type
 /property
 method name=methodName
 inputTypetype/inputType
 returnValuevalue/returnValue
 /method
 /class
 /groupOfAssociatedClasses
 
 I created a tree discriptor to filter out all the children on each 
 class so it doesn't display them in the tree. All I want to see in 
 the tree is the names of the containers and the names of the 
classes.
 
 My proplem is that beucase the classes have children flex is 
 displaying the expand node triangle beside the icon which ends up 
 doing nothing becuase of the filter. How can I get rid of the 
expand 
 node triangle?
 
 I tried to turn it off but it ended up turning it off for the 
parent 
 container nodes as well.
 
 Any Help is much appreciated :)


 



[flexcoders] Re: debugger problems

2007-10-29 Thread Mike Morearty
To use Firefox for debugging, you set the Eclipse-wide preference that
controls which browser to use for any context where Eclipse needs a
browser.  It is not a Flex Builder-specific setting.

To change it, go to preferences, General, Web Browser.

As for the IE problems, I am pretty sure this is caused by changes in
IE's security model when Vista's UAC (User Account Control) is turned
on.  After finishing a debugging session, look for a process called
ieuser.exe, and if it exists, kill it, and see if that allows Flex
Builder to once again debug.  Or, turn off UAC.  This is an issue we
are aware of; I don't have the bug number handy.

  - Mike Morearty


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

 I have recently setup a new development machine (Vista) and in the 
 process upgraded to Flex Builder 3 Beta 2.  On my old machine the 
 debugger always used firefox... and all was good :)  Now, on this new 
 machine it is using IE and all is not nearly as good.  I am only
able to 
 open the debugger once per reboot of the machine.  After that, no
matter 
 how I stopped the debugging session, I am told that another debugger
may 
 be running and that i should close it.  I saw an open item for this in 
 JIRA, and it all seems to be related to IE (I think).  So, I decided to 
 switch to debugging in FF.  No luck, I can't find anything in the 
 builder preferences that allows me to tell it which browser to invoke 
 for debugging.  I tried removing the IE debug flash player, but now it 
 just says no debug player can be found and the launches IE without
debug 
 if I choose to continue.
 So... can anybody tell me how to force it to debug in FF?
 
 Any help is appreciated.
 
 Thanks
 Scott





[flexcoders] component visibility question

2007-10-29 Thread George Georgiou
Hi there,

I am wondering whether there is an alternative to the 'visible' property of
a component - which really 'removes' the component from the scene.

I am having two panels and I want to be able to resize the first one to 100%
when I 'hide' the second. Property visible works but I have to manually (and
dynamically) change the width of my first panel to 100% whereas in the same
time set the 2nd panel into 0%.

Is there any workaround for this? Or is my resizing the only solution?

thanks,
George


[flexcoders] Controlling MenuBar Submenus via Code frustrations

2007-10-29 Thread Mike Anderson
Greetings All,

I've burned an entire DAY searching the web for examples of how to
control sub-menus in a MenuBar control, via code.  The main types of
things I need to accomplish, is toggling Checkboxes and Radio Buttons,
when certain application variables change.

My MenuBar has 6 primary menus across the top, and each primary menu,
could have any number of additional sub-menus (which have several
variations of menu types - Checkboxes, Radio Buttons, etc.)

My MenuBar is being populated via an external XML File.

Per the docs, each top level menu is considered a 'MenuBarItem', but
there is very little helpful information after that.  All the help docs
focus primarily on listening for MenuBar events and writing functions to
respond - but there is NOTHING on how to do the reverse.

I consider myself to be a fairly seasoned Flex Programmer, but this
MenuBar stuff has got me stumped, and quite frustrated.

If anybody has any examples on this topic, I would be VERY grateful.

Thanks in advance for any help,

Mike


RE: [flexcoders] Re: Tree: Removing expand triangle from select nodes

2007-10-29 Thread Tracy Spratt
Here is one that draws lines between siblings, perhaps it will help you
see what to do.

http://www.cflex.net/showFileDetails.cfm?ObjectID=575

Tracy

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Tracy Spratt
Sent: Monday, October 29, 2007 4:10 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Re: Tree: Removing expand triangle from select
nodes

 

A custom TreeItemRenderer?

Tracy

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of djdyland
Sent: Monday, October 29, 2007 3:43 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Tree: Removing expand triangle from select
nodes

 

So I guess to simplify my question... how do I apply

myTree.setStyle(disclosureOpenIcon, null);
myTree.setStyle(disclosureCloseIcon, null);

to individual nodes instead if the whole tree?

Anyone have any idea

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

 Hi, Thanks for the reply.
 
 Like I said I have a ITreeDataDescriptor.
 
 But I don't see how I can use that to disable the expand triagle 
for 
 certain nodes.
 
 Thanks
 Dylan
 
 --- In flexcoders@yahoogroups.com
mailto:flexcoders%40yahoogroups.com , Alex Harui aharui@ wrote:
 
  Custom ITreeDataDescriptor
  
  
  
  
  
  From: flexcoders@yahoogroups.com
mailto:flexcoders%40yahoogroups.com  
 [mailto:flexcoders@yahoogroups.com
mailto:flexcoders%40yahoogroups.com ] On
  Behalf Of djdyland
  Sent: Monday, October 29, 2007 8:41 AM
  To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com

  Subject: [flexcoders] Tree: Removing expand triangle from select 
 nodes
  
  
  
  Hello,
  
  I'm building a scripting reference app that is populated from an 
 XML 
  file. The structure is something like this.
  
  groupOfAssociatedClasses name=name of container
  class name=className
  property name=propertyName
  typetheType/type
  /property
  method name=methodName
  inputTypetype/inputType
  returnValuevalue/returnValue
  /method
  /class
  class name=className
  property name=propertyName
  typetheType/type
  /property
  method name=methodName
  inputTypetype/inputType
  returnValuevalue/returnValue
  /method
  /class
  /groupOfAssociatedClasses
  groupOfAssociatedClasses name=name of container
  class name=className
  property name=propertyName
  typetheType/type
  /property
  method name=methodName
  inputTypetype/inputType
  returnValuevalue/returnValue
  /method
  /class
  /groupOfAssociatedClasses
  
  I created a tree discriptor to filter out all the children on 
each 
  class so it doesn't display them in the tree. All I want to see 
in 
  the tree is the names of the containers and the names of the 
 classes.
  
  My proplem is that beucase the classes have children flex is 
  displaying the expand node triangle beside the icon which ends 
up 
  doing nothing becuase of the filter. How can I get rid of the 
 expand 
  node triangle?
  
  I tried to turn it off but it ended up turning it off for the 
 parent 
  container nodes as well.
  
  Any Help is much appreciated :)
 


 



Re: [flexcoders] Re: Flex2Gateway Security Question

2007-10-29 Thread João Fernandes
that property that defines remote / remote  public is for CF Server 
only. It will say if public methods can be invoked remotly through the 
flex2gateway or not.
Even if you compile with a local version of your remoting-config.xml 
which has public methods enabled, if the remote server only allows 
remote, you won't be able to invoke those public functions.

-- 

João Fernandes

http://www.onflexwithcf.org
http://www.riapt.org



[flexcoders] Re: Flex2Gateway Security Question

2007-10-29 Thread geoffreymina
Well my current [local] services-config.xml is set to allow public 
invocations and the file on my remote server contains the following:

[C:\CFusionMX7\wwwroot\WEB-INF\flex\services-config.xml]
method-access-levelremote/method-access-level

Now, all my Flex applications that I am compiling locally are able to 
access public methods on my remote server... is this not the 
instance of the file I should be configuring?  If this is the file 
which is _supposed_ to control access, it certainly isn't doing a 
very good job.

thanks,
Geoff







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

  Anyone who is compiling Flex applications with a local services-
 config.xml can control whether THEY want to access MY remote or
 public methods... that can't be right.
 
 no, it's not- the settings that are in the file you use to compile 
against
 are not hard-wired into the compiled app, if your server file has 
settings
 that say not to allow execution of public methods, that's what 
happens,
 regardless of the services-config.xml that was used in compiling.  
That's
 how i understand it to work anyway- anybody who knows different 
feel free to
 correct me.
 
 what seems to be important though is the 'path' to the services-
config file
 used in your compiler arguments.  it looks at that path on the 
server to see
 where the services-config file is, then whatever you have set in
 method-access-level is what is used.
 
 i don't even have CF installed on my development box, only a copy of
 services-config.xml in the same path as it is on the server, so 
that when i
 compile and send it to the server it all works.
 
 i agree that it's confusing and there must be a better way or some 
much
 better documentation for how all that stuff works.
 
 On 10/29/07, geoffreymina [EMAIL PROTECTED] wrote:
 
OK, I am not using FDS or CFMX8 so I guess the config is all 
done in
  the services-config.xml file. The problem I have with that is the
  fact that we are talking about a client side compiler file which 
is
  supposed to control server side security... seems like an 
extremely
  flawed model!
 
  Anyone who is compiling Flex applications with a local services-
  config.xml can control whether THEY want to access MY remote or
  public methods... that can't be right. The crossdomain.xml is
  certainly not a solution because of the ability to spoof DNS...
 
  So basically what this comes down to is that if I want to run my
  Flex2Gateway, every public method on my system is exposed to the
  world. Or am I missing something much larger...
 
  Thanks,
  Geoff
 
  --- In flexcoders@yahoogroups.com flexcoders%
40yahoogroups.com, Derrick
  Anderson
  no.way.this.is.in.use@ wrote:
  
   services-config.xml is the right file, i think remoting-config 
is
  for when
   using LCDS but i'm not really sure on that, look for
  
   method-access-levelremote/method-access-level
  
   in your destination definition.
  
   On 10/26/07, geoffreymina geoffreymina@ wrote:
   
Thanks for the answer. I only have the services-config.xml
  where is
the remoting-config.xml file? Is this server side, or client 
side?
   
Thanks,
Geoff
   
--- In flexcoders@yahoogroups.com flexcoders%
40yahoogroups.comflexcoders%40yahoogroups.com,
 
  João
Fernandes
joaopedromartinsfernandes@ wrote:

 by default you can only invoke remote functions, not public
  ones. To
 allow public functions to be called from a flex front-end 
you
  need to
 change de configuration of the ColdFusion destination.
 Check the remoting-config.xml if you have the method-access-
  level
 property set to remote. To allow both public and remote this
  value is
 set to 'public and remote'.
 --

 João Fernandes

 http://www.onflexwithcf.org
 http://www.riapt.org

   
   
   
  
 
   
 





Re: [flexcoders] Re: crossdomain.xml... real or not-so-real security?

2007-10-29 Thread Derrick Anderson
yeah there are some security holes and i don't think crossdomain.xml is a
'catch-all', read the following article from adobe on the subject- they have
some suggestions for such vulnerabilities

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



On 10/29/07, geoffreymina [EMAIL PROTECTED] wrote:

   You guys misunderstood what I was talking about. Here is the
 landscape:

 Server 1: (www.foo.com) Owned by me and I have a crossdomain.xml
 which allows access to *.foo.com. This server is NOT compromised and
 nobody is modifying any files.

 Server 2: (www.evil.com) Owned by malicious user. A Flash file is
 loaded on this server. The flash file makes calls to www.foo.com
 which under normal circumstances would NOT be allowed to access data
 on my server because of the crossdomain only allowing access from
 *.foo.com.

 Workstate 1: Owned by malicious user. The user makes a local host
 entry for evil.foo.com which points to the same IP as www.evil.com.
 the malicious flash file is loaded under the evil.foo.com host header
 which then gives it access to my server at www.foo.com.

 As you can see, no computers are compromised, yet the crossdomain.xml
 model fails under VERY simple circumstances.

 Basically what I am getting at is that crossdomain.xml really
 provides very little security at any layer.

 --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Abdul
 Qabiz [EMAIL PROTECTED]
 wrote:
 
   If that same evil person can get to your hosts file, that's the
 fault of
  the OS and not Flash.
 
  Yup! Machine is already compromised and that guy can do lots of
 other things
  :)
 
  -abdul
 
  On 10/27/07, Alex Harui [EMAIL PROTECTED] wrote:
  
   That's right. The goal of crossdomain.xml is to limit what an
 evil
   person can do in a SWF served over the web so that the
 unsuspecting Web
   citizen isn't burned. It does not block access to the contents
 from someone
   who has the desire to see the content on their machine. If that
 same evil
   person can get to your hosts file, that's the fault of the OS and
 not Flash.
  
  
   --
  
   *From:* flexcoders@yahoogroups.com flexcoders%40yahoogroups.com
 [mailto:flexcoders@yahoogroups.com flexcoders%40yahoogroups.com] *On
   Behalf Of *Abdul Qabiz
   *Sent:* Friday, October 26, 2007 1:40 PM
   *To:* flexcoders@yahoogroups.com flexcoders%40yahoogroups.com
   *Subject:* Re: [flexcoders] crossdomain.xml... real or not-so-real
   security?
  
  
  
   Isn't it like running a standalone SWF which can access network
 and local
   data (provided u have right trust config)? Why to run a internal
 server and
   create host entry? SWF in AIR/Standalone can access data from
 foo.com.
  
   Can you put (give an example) this use-case in context of internet
   (public)?
  
   -abdul
  
   On 10/26/07, *geoffreymina*  [EMAIL PROTECTED] wrote:
  
   Say there is a site which has a crossdomain.xml defined:
  
   http://www.foo.com/crossdomain.xml
  
   with
  
   allow-access-from domain=*.foo.com/
  
   If I were to load an SWF file on my internal webserver and create
 a
   local host file which contained an entry for fake.foo.com could I
 then
   load the SWF file from fake.foo.com and access data on
 www.foo.com?
  
   If this is the case, then it seems to me that crossdomain.xml is
 really
   just something to make people feel warm and fuzzy... and not at
 all a
   real security measure.
  
   Thanks,
   Geoff
  
  
  
  
   --
   -abdul
   ---
   http://abdulqabiz.com/blog/
   ---
  
  
  
 
 
 
  --
  -abdul
  ---
  http://abdulqabiz.com/blog/
  ---
 

  



RE: [flexcoders] htmlText in text that originates in XML

2007-10-29 Thread Alex Harui
How much of that are you assigning to the htmlText property?

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of droponrcll
Sent: Monday, October 29, 2007 11:29 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] htmlText in text that originates in XML

 

I have an XML file that looks like this:
[!CDATA[
pageContent
txt x=10 y=10 w=120 h=100
The quick brown fox jumped over the 
blazy/b kitten. 
/txt
txt x=430 y=60 w=150 h=100The quick brown 
fox jumped over the 

stripey kitten./txt
txt x=100 y=420 w=200 h=50The quick brown 
fox jumped over the 

rotten tomato./txt
img x=10 y=60img.jpg/img
swf x=430 y=160 w=200 h=200swf.swf/swf
/pageContent
]]

This XML is passed in through ExternalInterface, hence the CDATA 
tags. I have a repeater that displays all the objects described in 
the XML. However, I can't seem to get it to respect the b tag. 
I've tried wrapping the contents of that tag in CDATA, but all that 
gets me is CDATA on the screen. When I don't wrap it in CDATA, the 
entire XML tag appears as a result of this expression: 
contentItem.valueOf().toString(), rather than just the bit in the 
middle.

Can anyone point me to something that tells me how you wrap html text 
in the XML file to make it actually work properly inside a textArea?

TIA;

Amy

 



Re: [flexcoders] Re: Flex2Gateway Security Question

2007-10-29 Thread Derrick Anderson
 Anyone who is compiling Flex applications with a local services-
config.xml can control whether THEY want to access MY remote or
public methods... that can't be right.

no, it's not- the settings that are in the file you use to compile against
are not hard-wired into the compiled app, if your server file has settings
that say not to allow execution of public methods, that's what happens,
regardless of the services-config.xml that was used in compiling.  That's
how i understand it to work anyway- anybody who knows different feel free to
correct me.

what seems to be important though is the 'path' to the services-config file
used in your compiler arguments.  it looks at that path on the server to see
where the services-config file is, then whatever you have set in
method-access-level is what is used.

i don't even have CF installed on my development box, only a copy of
services-config.xml in the same path as it is on the server, so that when i
compile and send it to the server it all works.

i agree that it's confusing and there must be a better way or some much
better documentation for how all that stuff works.

On 10/29/07, geoffreymina [EMAIL PROTECTED] wrote:

   OK, I am not using FDS or CFMX8 so I guess the config is all done in
 the services-config.xml file. The problem I have with that is the
 fact that we are talking about a client side compiler file which is
 supposed to control server side security... seems like an extremely
 flawed model!

 Anyone who is compiling Flex applications with a local services-
 config.xml can control whether THEY want to access MY remote or
 public methods... that can't be right. The crossdomain.xml is
 certainly not a solution because of the ability to spoof DNS...

 So basically what this comes down to is that if I want to run my
 Flex2Gateway, every public method on my system is exposed to the
 world. Or am I missing something much larger...

 Thanks,
 Geoff

 --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Derrick
 Anderson
 [EMAIL PROTECTED] wrote:
 
  services-config.xml is the right file, i think remoting-config is
 for when
  using LCDS but i'm not really sure on that, look for
 
  method-access-levelremote/method-access-level
 
  in your destination definition.
 
  On 10/26/07, geoffreymina [EMAIL PROTECTED] wrote:
  
   Thanks for the answer. I only have the services-config.xml
 where is
   the remoting-config.xml file? Is this server side, or client side?
  
   Thanks,
   Geoff
  
   --- In flexcoders@yahoogroups.com 
   flexcoders%40yahoogroups.comflexcoders%40yahoogroups.com,

 João
   Fernandes
   joaopedromartinsfernandes@ wrote:
   
by default you can only invoke remote functions, not public
 ones. To
allow public functions to be called from a flex front-end you
 need to
change de configuration of the ColdFusion destination.
Check the remoting-config.xml if you have the method-access-
 level
property set to remote. To allow both public and remote this
 value is
set to 'public and remote'.
--
   
João Fernandes
   
http://www.onflexwithcf.org
http://www.riapt.org
   
  
  
  
 

  



[flexcoders] Re: Flex2Gateway Security Question

2007-10-29 Thread geoffreymina
OK, I am not using FDS or CFMX8 so I guess the config is all done in 
the services-config.xml file.  The problem I have with that is the 
fact that we are talking about a client side compiler file which is 
supposed to control server side security... seems like an extremely 
flawed model!

Anyone who is compiling Flex applications with a local services-
config.xml can control whether THEY want to access MY remote or 
public methods... that can't be right.  The crossdomain.xml is 
certainly not a solution because of the ability to spoof DNS... 

So basically what this comes down to is that if I want to run my 
Flex2Gateway, every public method on my system is exposed to the 
world.  Or am I missing something much larger...

Thanks,
Geoff

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

 services-config.xml is the right file, i think remoting-config is 
for when
 using LCDS but i'm not really sure on that,  look for
 
 method-access-levelremote/method-access-level
 
 in your destination definition.
 
 On 10/26/07, geoffreymina [EMAIL PROTECTED] wrote:
 
Thanks for the answer. I only have the services-config.xml 
where is
  the remoting-config.xml file? Is this server side, or client side?
 
  Thanks,
  Geoff
 
  --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, 
João
  Fernandes
  joaopedromartinsfernandes@ wrote:
  
   by default you can only invoke remote functions, not public 
ones. To
   allow public functions to be called from a flex front-end you 
need to
   change de configuration of the ColdFusion destination.
   Check the remoting-config.xml if you have the method-access-
level
   property set to remote. To allow both public and remote this 
value is
   set to 'public and remote'.
   --
  
   João Fernandes
  
   http://www.onflexwithcf.org
   http://www.riapt.org
  
 
   
 





Re: [flexcoders] Re: debugger problems

2007-10-29 Thread Scott Melby

Mike -

Thanks so much... you have saved me a ton of rebooting.  I was so 
focused on flex builder specific settings related to debug that I didn't 
notice that setting under general.


Thanks again
Scott

Mike Morearty wrote:


To use Firefox for debugging, you set the Eclipse-wide preference that
controls which browser to use for any context where Eclipse needs a
browser. It is not a Flex Builder-specific setting.

To change it, go to preferences, General, Web Browser.

As for the IE problems, I am pretty sure this is caused by changes in
IE's security model when Vista's UAC (User Account Control) is turned
on. After finishing a debugging session, look for a process called
ieuser.exe, and if it exists, kill it, and see if that allows Flex
Builder to once again debug. Or, turn off UAC. This is an issue we
are aware of; I don't have the bug number handy.

- Mike Morearty

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


 I have recently setup a new development machine (Vista) and in the
 process upgraded to Flex Builder 3 Beta 2. On my old machine the
 debugger always used firefox... and all was good :) Now, on this new
 machine it is using IE and all is not nearly as good. I am only
able to
 open the debugger once per reboot of the machine. After that, no
matter
 how I stopped the debugging session, I am told that another debugger
may
 be running and that i should close it. I saw an open item for this in
 JIRA, and it all seems to be related to IE (I think). So, I decided to
 switch to debugging in FF. No luck, I can't find anything in the
 builder preferences that allows me to tell it which browser to invoke
 for debugging. I tried removing the IE debug flash player, but now it
 just says no debug player can be found and the launches IE without
debug
 if I choose to continue.
 So... can anybody tell me how to force it to debug in FF?

 Any help is appreciated.

 Thanks
 Scott


 




Re: [flexcoders] Changing the width to 100%

2007-10-29 Thread George Georgiou
Hi all there, thanks for your help.

Indeed, the percentWidth is what i was looking for, thanks a lot!

However, still I have this problem.

I have an HBox with two panels, side by side. My mainPanel and my helpPanel.
I have a 'hide helpPanel button' which does the obvious. This is my
actionscript behind this:


 public function showHideHelp():void {
 if (helpPanel.visible == true) {
  mainPanel.percentWidth = 100;
  helpPanel.visible = false;

 } else {
  mainPanel.percentWidth = 85;
  helpPanel.visible = true;
 }
For some reason, this does not works :-( My mainPanel does not resize to
100% as one would expect. Instead, it resizes just a bit more from it's
initial width (that is 85% and 15%).

Am I doing something wrong here?

thanks again,
George






On 10/28/07, Bailey [EMAIL PROTECTED] wrote:

   Hi George,
 yeah the width property will only take an integer so you must use the
 percentProperty to set a percent.
 So something like this would be fine~

 public function changeWidth():void
 {
  mainPanel.percentWidth = 100;
 }



 On 10/28/07, George Georgiou [EMAIL PROTECTED]  wrote:
 
 Hi there,
 
  This is a very simple but I can't get it work. I have a panel and I want
  to change it's with to 100% by means of ActionScript. Here's what I do:
 
   public function changeWidth():void {
   mainPanel.width = 100%;
  }
 
  where mainPanel if of course the ID of my panel.
 
  I get an error like:  semicolon is unexpected. I have tried using
  mainPanel.width=100%; but this does not work also because .width is of
  type integer.
 
  Any ideas on how to achieve this?
 
  thanks,
  George
 
 
 
 



Re: [flexcoders] Changing the width to 100%

2007-10-29 Thread Daniel Freiman
This should work.

public function showHideHelp():void {
 if (helpPanel.visible == true) {
  mainPanel.percentWidth = 100;
  helpPanel.includeInLayout = false;
  helpPanel.visible = false;

 } else {
  mainPanel.percentWidth = 85;
  helpPanel.includeInLayout = true;
  helpPanel.visible = true;
 }

- Dan Freiman

On 10/29/07, George Georgiou [EMAIL PROTECTED] wrote:

   Hi all there, thanks for your help.

 Indeed, the percentWidth is what i was looking for, thanks a lot!

 However, still I have this problem.

 I have an HBox with two panels, side by side. My mainPanel and my
 helpPanel. I have a 'hide helpPanel button' which does the obvious. This is
 my actionscript behind this:


  public function showHideHelp():void {
  if (helpPanel.visible == true) {
   mainPanel.percentWidth = 100;
   helpPanel.visible = false;

  } else {
   mainPanel.percentWidth = 85;
   helpPanel.visible = true;
  }
 For some reason, this does not works :-( My mainPanel does not resize to
 100% as one would expect. Instead, it resizes just a bit more from it's
 initial width (that is 85% and 15%).

 Am I doing something wrong here?

 thanks again,
 George






 On 10/28/07, Bailey [EMAIL PROTECTED] wrote:
 
Hi George,
  yeah the width property will only take an integer so you must use the
  percentProperty to set a percent.
  So something like this would be fine~
 
  public function changeWidth():void
  {
   mainPanel.percentWidth = 100;
  }
 
 
 
  On 10/28/07, George Georgiou  [EMAIL PROTECTED]  wrote:
  
  Hi there,
  
   This is a very simple but I can't get it work. I have a panel and I
   want to change it's with to 100% by means of ActionScript. Here's what I 
   do:
  
public function changeWidth():void {
mainPanel.width = 100%;
   }
  
   where mainPanel if of course the ID of my panel.
  
   I get an error like:  semicolon is unexpected. I have tried using
   mainPanel.width=100%; but this does not work also because .width is
   of type integer.
  
   Any ideas on how to achieve this?
  
   thanks,
   George
  
  
  
 
  



[flexcoders] Re: htmlText in text that originates in XML

2007-10-29 Thread droponrcll
--- In flexcoders@yahoogroups.com, droponrcll [EMAIL PROTECTED] 
wrote:

 --- In flexcoders@yahoogroups.com, Alex Harui aharui@ wrote:
 
  How much of that are you assigning to the htmlText property?
  
 
 That's what I am trying to figure out.  I can't find anything in 
the 
 XML properties or methods that gives me exactly the stuff between 
the 
 beginning and ending tags and nothing else.  valueOf() does it if 
there 
 are no html tags in there, but so far I haven't found anything 
useful 
 for this.

I forgot to mention.  

If the string contains this:
txt x=10 y=10 w=120 h=300[!CDATA[[The quick brown fox 
jumped over the blazy/b kitten.]]/txt

The XML node contains:

txt x=10 y=10 w=120 h=300
  [!CDATA[
  The quick brown fox jumped over the
  blazy/b
  kitten.
]]
/txt

What you see on the screen is
[!CDATA[
  The quick brown fox jumped over the
  lazy
  kitten.
]]

So it looks like when I use the XML() function on the string, it adds 
line breaks around the b tags, CDATA or not.  And of course, I'd 
rather not see the CDATA tags either.

Thanks!

-Amy



RE: [flexcoders] Re: Tree: Removing expand triangle from select nodes

2007-10-29 Thread Tracy Spratt
A custom TreeItemRenderer?

Tracy

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of djdyland
Sent: Monday, October 29, 2007 3:43 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Tree: Removing expand triangle from select
nodes

 

So I guess to simplify my question... how do I apply

myTree.setStyle(disclosureOpenIcon, null);
myTree.setStyle(disclosureCloseIcon, null);

to individual nodes instead if the whole tree?

Anyone have any idea

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

 Hi, Thanks for the reply.
 
 Like I said I have a ITreeDataDescriptor.
 
 But I don't see how I can use that to disable the expand triagle 
for 
 certain nodes.
 
 Thanks
 Dylan
 
 --- In flexcoders@yahoogroups.com
mailto:flexcoders%40yahoogroups.com , Alex Harui aharui@ wrote:
 
  Custom ITreeDataDescriptor
  
  
  
  
  
  From: flexcoders@yahoogroups.com
mailto:flexcoders%40yahoogroups.com  
 [mailto:flexcoders@yahoogroups.com
mailto:flexcoders%40yahoogroups.com ] On
  Behalf Of djdyland
  Sent: Monday, October 29, 2007 8:41 AM
  To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com

  Subject: [flexcoders] Tree: Removing expand triangle from select 
 nodes
  
  
  
  Hello,
  
  I'm building a scripting reference app that is populated from an 
 XML 
  file. The structure is something like this.
  
  groupOfAssociatedClasses name=name of container
  class name=className
  property name=propertyName
  typetheType/type
  /property
  method name=methodName
  inputTypetype/inputType
  returnValuevalue/returnValue
  /method
  /class
  class name=className
  property name=propertyName
  typetheType/type
  /property
  method name=methodName
  inputTypetype/inputType
  returnValuevalue/returnValue
  /method
  /class
  /groupOfAssociatedClasses
  groupOfAssociatedClasses name=name of container
  class name=className
  property name=propertyName
  typetheType/type
  /property
  method name=methodName
  inputTypetype/inputType
  returnValuevalue/returnValue
  /method
  /class
  /groupOfAssociatedClasses
  
  I created a tree discriptor to filter out all the children on 
each 
  class so it doesn't display them in the tree. All I want to see 
in 
  the tree is the names of the containers and the names of the 
 classes.
  
  My proplem is that beucase the classes have children flex is 
  displaying the expand node triangle beside the icon which ends 
up 
  doing nothing becuase of the filter. How can I get rid of the 
 expand 
  node triangle?
  
  I tried to turn it off but it ended up turning it off for the 
 parent 
  container nodes as well.
  
  Any Help is much appreciated :)
 


 



[flexcoders] Re: Flex2Gateway Security Question

2007-10-29 Thread geoffreymina
I am using CFMX7... no remoting-config.xml file present.  Just 
services-config.xml

--- In flexcoders@yahoogroups.com, João Fernandes 
[EMAIL PROTECTED] wrote:

 that property that defines remote / remote  public is for CF 
Server 
 only. It will say if public methods can be invoked remotly through 
the 
 flex2gateway or not.
 Even if you compile with a local version of your remoting-
config.xml 
 which has public methods enabled, if the remote server only allows 
 remote, you won't be able to invoke those public functions.
 
 -- 
 
 João Fernandes
 
 http://www.onflexwithcf.org
 http://www.riapt.org





[flexcoders] Re: JS - How to send a byteArray using HTTPService??

2007-10-29 Thread andrewrbateman
HTTPService only allows text. You can however convert the ByteArray
into Base64 and then transfer it via HTTPService.

Note that this can be quite large, so you may want to encode it as
JPEG first. There are two advantages to doing this...reduced network
traffic, and you also then have the data in an appropriate format for
users to download and save to their hard drive.

There is a JPEG converter available here:
http://code.google.com/p/as3corelib and an easy to understand tutorial
here: http://mxdj.sys-con.com/read/370795.htm 

For an example of this in production, go here
http://www.lookfamous.com.au/

Happy coding,

Andrew



 Note sure, if HTTPService allows anything beyond text You can use
 URLLoader to send the data to server..
 
 -abdul




  1   2   >