RE: [flexcoders] Grab the Current State of a Button

2009-06-08 Thread Ryan Graham

Set toggle to true on the buttons and then you can check the selected
property.

 

btn.toggle = true;

trace(btn.selected);

 

HTH, 

Ryan

 

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of ericmaslowski
Sent: Monday, June 08, 2009 9:58 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Grab the Current State of a Button

 






Hello,
I have been trying to do something very simple here with Flex but have
hit a wall. I have several toggle buttons throughout the UI that when
one is activated others change their states depending on the states of
others. So, if button one is pressed button 1 looks at what other
buttons are pressed and makes a decision on what to do. Sometimes this
involves resetting another button's state to UP or DOWN. The problem is
that I can't find out how to query the state of any of these buttons. I
would think it would be a simple member of the Button class that one can
test like:

if(button.getState() == ButtonStates.DOWN) {...}

I looked into what Flex refers to as states, ButtonPhase (although there
doesn't seem to be any documentation on this), and a few other methods.
I would really hate to resort to creating over a dozen functions and
event handlers to get this very simple query to work. Does anyone have
any pointers or advice?

Thanks!

E.





This message is private and confidential. If you have received it in error, 
please notify the sender and remove it from your system.

[flexcoders] Microphone soundTransform and SPEEX codec bug

2009-06-05 Thread Ryan Graham

Hi All,

 

Can anyone else confirm the following bug? When using a SoundTransform
to set the Microphone volume to 0 (to avoid feedback), you get the
expected silent behavior with the default Nellymoser codec, while still
seeing microphone activity. If you switch the Microphone's codec to
SPEEX, the soundTransform volume setting of 0 is ignored. I tried sdks
3.2 and 3.3, and players 10.0.12.36 and 10.0.22.87.  If there's already
a JIRA bug, I'd like to vote for it, otherwise I'll create one.

 

?xml version=1.0 encoding=utf-8?

mx:Application xmlns:mx=http://www.adobe.com/2006/mxml;
layout=absolute creationComplete=init()

mx:Script

![CDATA[



private var
_mic:Microphone = Microphone.getMicrophone();



private function
init():void

{

 
addEventListener(Event.ENTER_FRAME, onEnterFrame);

 
_mic.setLoopBack(true);

 
_mic.soundTransform = new SoundTransform(0, 0);

 
_mic.codec = SoundCodec.SPEEX;

}



private function
onEnterFrame(event:Event):void

{

 
micActivity.text = _mic.activityLevel.toString();

}

]]

/mx:Script

mx:Label id=micActivity/

/mx:Application

 

Thanks,

Ryan

 



This message is private and confidential. If you have received it in error, 
please notify the sender and remove it from your system.

RE: [flexcoders] Microphone soundTransform and SPEEX codec bug

2009-06-05 Thread Ryan Graham

I couldn't find a bug related to this in JIRA so I went ahead and
created one, in case anyone would like to vote for it:

 

https://bugs.adobe.com/jira/browse/FP-2161

 

Thanks,

Ryan

 

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of Ryan Graham
Sent: Friday, June 05, 2009 1:02 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Microphone soundTransform and SPEEX codec bug

 






Hi All,

 

Can anyone else confirm the following bug? When using a SoundTransform
to set the Microphone volume to 0 (to avoid feedback), you get the
expected silent behavior with the default Nellymoser codec, while still
seeing microphone activity. If you switch the Microphone's codec to
SPEEX, the soundTransform volume setting of 0 is ignored. I tried sdks
3.2 and 3.3, and players 10.0.12.36 and 10.0.22.87.  If there's already
a JIRA bug, I'd like to vote for it, otherwise I'll create one.

 

?xml version=1.0 encoding=utf-8?

mx:Application xmlns:mx=http://www.adobe.com/2006/mxml;
layout=absolute creationComplete=init()

mx:Script

![CDATA[



private var
_mic:Microphone = Microphone.getMicrophone();



private function
init():void

{

 
addEventListener(Event.ENTER_FRAME, onEnterFrame);

 
_mic.setLoopBack(true);

 
_mic.soundTransform = new SoundTransform(0, 0);

 
_mic.codec = SoundCodec.SPEEX;

}



private function
onEnterFrame(event:Event):void

{

 
micActivity.text = _mic.activityLevel.toString();

}

]]

/mx:Script

mx:Label id=micActivity/

/mx:Application

 

Thanks,

Ryan

 

This message is private and confidential. If you have received it in
error, please notify the sender and remove it from your system.





This message is private and confidential. If you have received it in error, 
please notify the sender and remove it from your system.

RE: [flexcoders] Re: how to close a titlewindow that was not created as a popup

2009-03-09 Thread Ryan Graham

Post some code and we'll take it from there...

 

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of stinasius
Sent: Friday, March 06, 2009 10:50 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: how to close a titlewindow that was not
created as a popup

 

am calling it from with the titlewindow i would like to close. i also
tried calling it from the parent page that calls the custom titlewindow.





This message is private and confidential. If you have received it in error, 
please notify the sender and remove it from your system.

RE: [flexcoders] Re: how to close a titlewindow that was not created as a popup

2009-03-06 Thread Ryan Graham

Sure:

 

?xml version=1.0 encoding=utf-8?

mx:Application xmlns:mx=http://www.adobe.com/2006/mxml;
layout=absolute

  mx:Script

![CDATA[

  import mx.containers.TitleWindow;

  private function onClose(event:Event):void

  {

removeChild(event.target as TitleWindow);

  }

]]

  /mx:Script

  mx:TitleWindow showCloseButton=true close=onClose(event)/

/mx:Application

 

HTH,

Ryan

 

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of stinasius
Sent: Thursday, March 05, 2009 10:08 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: how to close a titlewindow that was not
created as a popup

 

care to share how?





This message is private and confidential. If you have received it in error, 
please notify the sender and remove it from your system.

RE: [flexcoders] Preventing HSlider from moving forward

2009-03-05 Thread Ryan Graham

How are your users interacting with the slider? Be sure to cover all
interactions - i.e. clicking on the track to move the slider, dragging
the thumb, etc.

 

You can listen for the change, thumbPress, thumbRelease, and thumbDrag
events and provide your functionality there. In the thumbDrag handler
you could check the value against the one you are limiting the position
to, and kill the event there.

 

HTH,

Ryan

 

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of Tom Chiverton
Sent: Thursday, March 05, 2009 9:13 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Preventing HSlider from moving forward

 

On Friday 27 Feb 2009, Daman Dogra wrote:
 I have this requirement in a project where I need to block a slider
 from moving forward after it reaches a certain value. The user should
 still be able to move the slider backwards though.

Just set the maximum property ?

-- 
Tom Chiverton
Helping to economically utilize dynamic intuitive interactive niches
as part of the IT team of the year, '09 and '08

 


This email is sent for and on behalf of Halliwells LLP.

Halliwells LLP is a limited liability partnership registered in England
and Wales under registered number OC307980 whose registered office
address is at Halliwells LLP, 3 Hardman Square, Spinningfields,
Manchester, M3 3EB. A list of members is available for inspection at the
registered office together with a list of those non members who are
referred to as partners. We use the word ?partner? to refer to a member
of the LLP, or an employee or consultant with equivalent standing and
qualifications. Regulated by the Solicitors Regulation Authority.

CONFIDENTIALITY

This email is intended only for the use of the addressee named above and
may be confidential or legally privileged. If you are not the addressee
you must not read it and must not use any information contained in nor
copy it nor inform any person other than Halliwells LLP or the addressee
of its existence or contents. If you have received this email in error
please delete it and notify Halliwells LLP IT Department on 0870 365
2500.

For more information about Halliwells LLP visit www.halliwells.com
http://www.halliwells.com/ .





This message is private and confidential. If you have received it in error, 
please notify the sender and remove it from your system.

RE: [flexcoders] how to close a titlewindow that was not created as a popup

2009-03-05 Thread Ryan Graham

Listen for the close event, then removeChild().

 

HTH,

Ryan

 

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of stinasius
Sent: Thursday, March 05, 2009 8:41 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] how to close a titlewindow that was not created as
a popup

 

hi how can one how to close a titlewindow that was not created as a
popup?





This message is private and confidential. If you have received it in error, 
please notify the sender and remove it from your system.

RE: [flexcoders] help with httpService Error

2009-03-05 Thread Ryan Graham

It's probably something to do with policy file changes in FP9 and 10.
Here's some links that explain the changes that may be of help:

 

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

 

http://www.adobe.com/devnet/articles/crossdomain_policy_file_spec.html

 

You may want to start troubleshooting with an open crossdomain.xml and
start tightening up from there:

 

cross-domain-policy

site-control
permitted-cross-domain-policies=master-only/

allow-access-from domain=*/

allow-http-request-headers-from domain=*
headers=*/

/cross-domain-policy

 

HTH,

Ryan

 

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of Ramsey, Robert L
Sent: Thursday, March 05, 2009 11:13 AM
To: 'flexcoders@yahoogroups.com'
Subject: [flexcoders] help with httpService Error

 

Hi, 

 

I am using FlexBuilder 3.0.2 and am getting a new error on new projects
when using the httpService feature.  Here is my httpService control, as
copied from an older project which still works:

 

mx:HTTPService id=getmeta method=POST 

  result=gotmeta()
contentType=application/x-www-form-urlencoded  

  url=https://www.someserver.edu/myfiles/flexfile.php;
useProxy=false

  fault=show_fault(event.fault)

  mx:request xmlns=

  commandgetmetainformation/command

  idme/id

  /mx:request

/mx:HTTPService

 

When I run the app locally, ctrl+f11 or clicking the run button in
eclipse, I get the following error:

 

[RPC Fault faultString=Security error accessing url
faultCode=Channel.Security.Error faultDetail=Destination:
DefaultHTTP]

 

If I copy the swf file up to the server, it does run correctly there.

 

That exact same httpService control works fine in a project I finished
last fall when run locally.

 

The weird thing is that older projects, ones I did as little as a month
ago, run just fine when run locally.  It's only the new one I started
this week.

 

I tried adding site-control permitted-cross-domain-policies=all/ to
my crossdomain.xml file, but no go.  I am using Flash version 10,0,22,87
within Firefox 3.05 on windows Vista, fully patched.  

 

The only thing that I can think that would have changed from a few
months ago is that I have a newer version of Flash.

 

Any ideas what might be causing this and how to fix it?

 

Thanks,

 

Bob





This message is private and confidential. If you have received it in error, 
please notify the sender and remove it from your system.

RE: [flexcoders] HTTPService vs URLRequest

2009-03-05 Thread Ryan Graham

I suppose if you Base64 encode it for transfer it would, but that adds
roughly 30% to size of the binary data being transferred.

 

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of Guy Morton
Sent: Thursday, March 05, 2009 2:55 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] HTTPService vs URLRequest

 

One good thing about URLLoader is that you can load binary data with it.
HTTPService doesn't seem to allow this, though I could be wrong about
that.

 

On 06/03/2009, at 2:56 AM, Osman Ullah wrote:





Surprisingly, I am having a very difficult time finding any discussion
on the advantages of using HTTPService instead of URLRequest. I've
always used URLRequest to handle my web API calls. What are some of the
benefits of using the HTTPService instead? I like URLLoader because my
network libraries aren't dependant on flex, but I don't quite understand
why Adobe makes very little mention of URLLoader in their Flex
documentation, and also doesn't have any articles comparing HTTPService
to URLLoader.

 





This message is private and confidential. If you have received it in error, 
please notify the sender and remove it from your system.

[flexcoders] Breaking up large array processing

2009-02-27 Thread Ryan Graham

Hi All,

 

I currently have 2 separate collections that I need to sync up based on
ids. One has 25000 elements and the other has 4000. A typical nested for
loop structure gives me the 1502 script time limit exception after 60
seconds. I've tried all the performance optimizations on Alex's blog,
but it's still taking too long. Does anyone have a sample or tips on how
to break up this type of processing? Maybe do 4 passes, each processing
1000 of my 4000 input elements?  Any help is much appreciated!

 

Thanks,

Ryan



This message is private and confidential. If you have received it in error, 
please notify the sender and remove it from your system.

RE: [flexcoders] RE: Breaking up large array processing

2009-02-27 Thread Ryan Graham

Ahh... I had just tuned my loops that were iterating over the
collections. 

 

The pseudo-threading example is exactly what I need, thanks!

 

For the archives:

 

http://blogs.adobe.com/aharui/2008/01/threads_in_actionscript_3.html

 

Thanks,

Ryan

 

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of Alex Harui
Sent: Friday, February 27, 2009 2:11 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] RE: Breaking up large array processing

 

The pseudo-threading example should prevent the script time out.  You
sure you coded it correctly?

 

Alex Harui

Flex SDK Developer

Adobe Systems Inc. http://www.adobe.com/ 

Blog: http://blogs.adobe.com/aharui

 

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of Ryan Graham
Sent: Friday, February 27, 2009 12:22 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Breaking up large array processing

 

Hi All,

 

I currently have 2 separate collections that I need to sync up based on
ids. One has 25000 elements and the other has 4000. A typical nested for
loop structure gives me the 1502 script time limit exception after 60
seconds. I've tried all the performance optimizations on Alex's blog,
but it's still taking too long. Does anyone have a sample or tips on how
to break up this type of processing? Maybe do 4 passes, each processing
1000 of my 4000 input elements?  Any help is much appreciated!

 

Thanks,

Ryan

This message is private and confidential. If you have received it in
error, please notify the sender and remove it from your system.





This message is private and confidential. If you have received it in error, 
please notify the sender and remove it from your system.

RE: [flexcoders] RE: Breaking up large array processing

2009-02-27 Thread Ryan Graham

Nice, this looks like a good approach too. I'll give it a shot as well.

 

Thank you much,

Ryan

 

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of Jonathon Stierman
Sent: Friday, February 27, 2009 2:34 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] RE: Breaking up large array processing

 

Only process a certain number of indexes per ENTER_FRAME event.  I
usually set a getTimer() at the start of my processing function, and
loop until the difference is greater than my threshold:

 

Function onEnterFrame(event:Event):void

{

 var startTime:int = getTimer();

 while( getTimer() - startTime  THRESHOLD  !done)

 {

  /* Process data */

 }

 

 If (done)

 {

  this.removeEventListener(Event.ENTER_FRAME, onEnterFrame,
false); // Stop processing data

  this.dispatchEvent(new Event(Event.COMPLETE, false, false));
// Tell listeners that we're done

 }

}

 

Jonathon

 

 

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of Ryan Graham
Sent: Friday, February 27, 2009 2:22 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Breaking up large array processing

 

Hi All,

 

I currently have 2 separate collections that I need to sync up based on
ids. One has 25000 elements and the other has 4000. A typical nested for
loop structure gives me the 1502 script time limit exception after 60
seconds. I've tried all the performance optimizations on Alex's blog,
but it's still taking too long. Does anyone have a sample or tips on how
to break up this type of processing? Maybe do 4 passes, each processing
1000 of my 4000 input elements?  Any help is much appreciated!

 

Thanks,

Ryan

This message is private and confidential. If you have received it in
error, please notify the sender and remove it from your system.





This message is private and confidential. If you have received it in error, 
please notify the sender and remove it from your system.

RE: [flexcoders] labelFunction on BarSeries not firing

2009-02-26 Thread Ryan Graham

Hey Bob,

 

Good meeting you at the AZFPUG meeting last night.

 

Looks like labelPosition defaults to none on a BarSeries. Try setting
that to something else:

 

mx:BarSeries labelFunction=myLabelFunction labelPosition=outside
yField=Month xField=Profit/

 

HTH,

Ryan

 

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of Bob Wohl
Sent: Thursday, February 26, 2009 11:57 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] labelFunction on BarSeries not firing

 

Hello all, 

 

I'm not to sure why this isn't firing. I've broke this down to the
simplest of forms and even used some very basic examples to reproduce.
For some reason the labelfunctiojn never gets hit, maybe I'm missing
something very simple. My stacked charts and pie charts fire just fine,
seems to only be the bar chart that I'm having this issue with. Any
Ideas would be much appreciated.

 

code :

mx:Application xmlns:mx=http://www.adobe.com/2006/mxml;

  mx:Script![CDATA[

import mx.charts.ChartItem;

import mx.charts.chartClasses.Series;

import mx.collections.ArrayCollection;

[Bindable]

public var expenses:ArrayCollection = new
ArrayCollection([

   {Month:Jan, Profit:2000, Expenses:1500},

   {Month:Feb, Profit:1000, Expenses:200},

   {Month:Mar, Profit:1500, Expenses:500}

]);

private function
myLabelFunction(element:ChartItem, series:Series):String {

trace(should fire)

   var str:String = hello!

   return str;

}

]]/mx:Script

mx:BarChart id=theChart dataProvider={expenses}
showDataTips=true width=780

mx:verticalAxis

mx:CategoryAxis categoryField=Month /

/mx:verticalAxis

mx:series

mx:BarSeries labelFunction=myLabelFunction yField=Month
xField=Profit/

/mx:series

/mx:BarChart

/mx:Application

 

 

 

Thanks in Advance!

B.

 

 





This message is private and confidential. If you have received it in error, 
please notify the sender and remove it from your system.

RE: [flexcoders] Who have YOU used for outsourcing mid to large Flex/CF projects?

2009-02-26 Thread Ryan Graham

Yeah, I've seen some of John's work and heard him speak at meetings here
in Phoenix as well. His client list and work are impressive to say the
least.

 

+1

 

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of Alan Rother
Sent: Thursday, February 26, 2009 5:50 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Who have YOU used for outsourcing mid to large
Flex/CF projects?

 

Three words

 

John C Bland

 

http://www.johncblandii.com/

 

He's a friggin Flash / Flex / CF / .net genius. 

 

Also a former Flash Platform User Group Manager here in Phoenix and now
an Adobe Community Expert. My company has used him many times on big
important projects.

 

 

=]
-- 
Alan Rother
Adobe Certified Advanced ColdFusion MX 7 Developer
Manager, Phoenix Cold Fusion User Group, AZCFUG.org





This message is private and confidential. If you have received it in error, 
please notify the sender and remove it from your system.

RE: [flexcoders] How to stop Flex from compiling my Java source files

2009-02-18 Thread Ryan Graham

 Java source files are in C:\Tomcat5\webapps\FlexApp\WEB-INF\src. When
 I build my Flex application, it tries to recompile the Java source
 files. Is there a way I can tell Flex Builder to leave my Java source
 files alone? It's causing me servlet errors.

 

Switch to ANT for more granular builds?

 

HTH,

Ryan

 



This message is private and confidential. If you have received it in error, 
please notify the sender and remove it from your system.

RE: [flexcoders] Re: is it possible to track visitors / the page an swf is embedded on

2009-02-18 Thread Ryan Graham

If possible, you could look into Google Analytics to do the tracking for
you:

 

http://code.google.com/apis/analytics/docs/flashTrackingIntro.html

 

Worth a look, but might not meet your requirements.

 

HTH,

Ryan

 

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of Laurent Cozic
Sent: Wednesday, February 18, 2009 6:08 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Re: is it possible to track visitors / the
page an swf is embedded on

 

Application.application.url will give you the url of the *swf file*, not
the url of the document within which the app is embedded. For that, the
only way is to use Javascript and ExternalInterface. I think the syntax
is:

var docURL = ExternalInterface.call(location.href);

or it might be document.location.href - not sure which one is right.

--
Laurent Cozic

Flash, Flex and Web Application development
http://pogopixels.com

--- On Wed, 2/18/09, kuntamayu kuntam...@yahoo.com wrote:

From: kuntamayu kuntam...@yahoo.com
Subject: [flexcoders] Re: is it possible to track visitors / the page an
swf is embedded on
To: flexcoders@yahoogroups.com
Date: Wednesday, February 18, 2009, 12:31 PM


Try to track

Application. application. url

This may help you. :)

--- In flexcod...@yahoogro ups.com mailto:flexcoders%40yahoogroups.com
, Tracy Spratt tspr...@...  wrote:

 Look into the BrowserManager, perhaps it will help.
 
 
 
 Tracy Spratt 
 Lariat Services 
 
 Flex development bandwidth available 
 
  _ _ __
 
 From: flexcod...@yahoogro ups.com
mailto:flexcoders%40yahoogroups.com  [mailto:flexcod...@yahoogro
ups.com mailto:flexcoders%40yahoogroups.com ] 
On
 Behalf Of uclamerrick
 Sent: Wednesday, February 18, 2009 12:24 AM
 To: flexcod...@yahoogro ups.com mailto:flexcoders%40yahoogroups.com 
 Subject: [flexcoders] is it possible to track visitors / the page an 
swf
 is embedded on
 
 
 
 Lets say I run a video site like youtube, how can I capture the url 
of
 the page where my swf object is embedded.
 
 For example someone takes the embed code from
 http://youtube. com/videoid123 http://youtube.com/videoid123
http://youtube. com/videoid123 http://youtube.com/videoid123  and
 places it onto the page at
 http://myblog. wordpress. com/this_ video_rocks
http://myblog.wordpress.com/this_video_rocks 
 http://myblog. wordpress. com/this_ video_rocks
http://myblog.wordpress.com/this_video_rocks  
 
 I know how to use HTTPService to report this information back to my
 server and store it in the database, but I don't know how to use 
Flex
 3 / Actionscript 3 to determine the URL of the page that embeds an
 swf. In the example above I would want to capture:
 
 http://myblog. wordpress. com/this_ video_rocks
http://myblog.wordpress.com/this_video_rocks 
 http://myblog. wordpress. com/this_ video_rocks
http://myblog.wordpress.com/this_video_rocks  
 
 Thanks.


 





This message is private and confidential. If you have received it in error, 
please notify the sender and remove it from your system.

RE: [flexcoders] event passing when source/destination are on different parent bubbling chains?

2009-02-18 Thread Ryan Graham

 In an app that has many parent and child components, how does one
 communicate across bubbling chains? I need to go up from a buried
 child component source to its parent, across to another of the
 parent's children, and down that chain to a child destination. Can
 this be done in Flex, or do I create my own event subscription
 component where anybody from anywhere can subscribe with a
 self.reference?

 

Sounds like you're describing the controller's function in MVC
architecture. Usually an event is triggered by some sort of user
interaction in hopes of changing the state of the application in some
way.  If you store the state in some sort of centralized model
somewhere, the controller can react to user events, update the model's
state properties accordingly, and let any part of the view that is bound
to the model update itself on property change. Is that the setup you are
running right now? Are you passing data with this event that other
components need?

 

HTH,

Ryan



This message is private and confidential. If you have received it in error, 
please notify the sender and remove it from your system.

RE: [flexcoders] Air application and local hardware

2009-02-13 Thread Ryan Graham

Nate B has mentioned before that the Merapi project is aimed at
providing this functionality:

 

http://www.merapiproject.net/

 

HTH,

Ryan

 

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of markgoldin_2000
Sent: Friday, February 13, 2009 9:33 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Air application and local hardware

 

Can an AIR application access a serial port? Can an AIR application 
read/get data from a scanner attached to a serial port?

Thanks





This message is private and confidential. If you have received it in error, 
please notify the sender and remove it from your system.

RE: [flexcoders] DYNAMIC LINKBUTTONS styleNames.

2009-02-13 Thread Ryan Graham

Hey now, you knew this was in the docs... :D

 

http://livedocs.adobe.com/flex/3/html/help.html?content=03_Language_and_
Syntax_16.html

 

HTH,

Ryan

 

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of - -
Sent: Friday, February 13, 2009 2:28 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] DYNAMIC LINKBUTTONS styleNames.

 

Hi Tracy, I created an array of all the IDs of my linkButtons, can you
show me an example how to loop in the array?

 

Thanks.

 



From: Tracy Spratt tspr...@lariatinc.com
To: flexcoders@yahoogroups.com
Sent: Friday, February 13, 2009 4:11:05 PM
Subject: RE: [flexcoders] DYNAMIC LINKBUTTONS styleNames.

Store references to each in an Array, then loop over the array.

 

Tracy Spratt 
Lariat Services 

Flex development bandwidth available 



From: flexcod...@yahoogro ups.com http://ups.com/  [mailto:flexcoders@
yahoogroups. com] On Behalf Of sailorsea21
Sent: Friday, February 13, 2009 4:01 PM
To: flexcod...@yahoogro ups.com
Subject: [flexcoders] DYNAMIC LINKBUTTONS styleNames.

 

I have a series of 3 linkButtons.
I am able to switch the styleName of a linkButton when I click on it 
as follows:

[Bindable]
private var linkButton:String = 'linkButton' ;

[Bindable]
private var linkButtonOff: String = 'linkButtonOff' ;

mx:LinkButton id=test001 label=001 styleName={ linkButton}  
buttonMode= true click=setType( event)/

mx:LinkButton id=test002 label=002 styleName={ linkButton}  
buttonMode= true click=setType( event)/

mx:LinkButton id=test003 label=003 styleName={ linkButton}  
buttonMode= true click=setType( event)/

private function setType(result: Event):void
{
result.currentTarge t.styleName = linkButtonOff;
}

How can I automatically reset all the other linkButtons styleNames 
to {linkButton}  when a linkButton is clicked?

Thank you.

 





This message is private and confidential. If you have received it in error, 
please notify the sender and remove it from your system.

RE: [flexcoders] Is there a 'token' equivalent to use with the URLLoader class?

2009-02-13 Thread Ryan Graham

 var myloader:URLLoader = new URLLoader();
 myloader.addEventListener(Event.COMPLETE, loadHandler);
 var token:AsyncToken = myloader.load(new URLRequest(getdata.com)); 
 token.artist = artist;

 

Maybe use a global dictionary with each instance of the loader as the
key:

 

public var dic:Dictionary = new Dictionary();

...

dic[myLoader] = artist;

 

then in the COMPLETE handler, look it up:

 

var token:String = dic[URLLoader(event.target)];

 

HTH,

Ryan_._,___



This message is private and confidential. If you have received it in error, 
please notify the sender and remove it from your system.

RE: [flexcoders] 3D flip effect

2009-02-12 Thread Ryan Graham

Yeah, it's possible with 3.2. As long as you are targeting FP10, check
out the x, y, z, rotationX, rotationY, and rotationZ on DisplayObject in
the docs...

 

If you're targeting FP9, it's a much more manual process to organize the
math and such...

 

HTH,

Ryan

 

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of Russ Ferguson
Sent: Thursday, February 12, 2009 12:55 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] 3D flip effect

 

Hi,

 Im looking to rotate a canvas in 3d space.
 I know you can do this with gumbo but I wanted to see if you can do it
with the 3.2 sdk.

 

All the examples I have found rotate on a slider. Im looking to rotate
during a transition.

Thanks.

...russ





This message is private and confidential. If you have received it in error, 
please notify the sender and remove it from your system.

RE: [flexcoders] 15 seconds timeout will a progress bar help?

2009-02-12 Thread Ryan Graham

In Flex it's Application.scriptTimeLimit. If you're doing an AS3 only
project, try checking out the -default-script-limits compiler argument
to set a higher time.

 

HTH,

Ryan

 

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of flexaustin
Sent: Thursday, February 12, 2009 12:21 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] 15 seconds timeout will a progress bar help?

 

So I have a project that needs to build 1000 sprites on stage that
contain some tiny bitmap's but this is happening on startup in an all
AS3 project.

When the app starts and tries creating and rendering all 1000 items
nothing is shown and I get the application hasn't responded in 15
seconds exception.

Is there a way to make the app build all 1000 and not get the timeout?

TIA





This message is private and confidential. If you have received it in error, 
please notify the sender and remove it from your system.

RE: [flexcoders] Re: Loader URLRequest and reuse

2009-02-12 Thread Ryan Graham

Yep - load the image with a  loader, then dump it to a BitmapData
object. Create 100 Bitmap objects that reference the single BitmapData
object. From the docs:

 

A Bitmap object can share its BitmapData reference among several Bitmap
objects, independent of translation or rotation properties. Because you
can create multiple Bitmap objects that reference the same BitmapData
object, multiple display objects can use the same complex BitmapData
object without incurring the memory overhead of a BitmapData object for
each display object instance.

 

HTH,

Ryan

 

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of flexaustin
Sent: Thursday, February 12, 2009 9:10 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Loader URLRequest and reuse

 

Or maybe their is a different way to achieve the same end result by
importing the image via a loader and creating a bitmapdata copy of it?

TIA

--- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
, flexaustin flexaus...@... wrote:

 Have a stumper question. Is there a way in a AS project to load an
 image (my.jpg) via a Loader/ URLRequest then store this returned
 my.jpg in a var and use it several times, say I wanted to create 100
 of my.jpg? 
 
 And if so will it save on memory? 
 
 Or if I create 100 Loader objects and each one load in a jpg from a
 URL will this use the same amount of memory as the above way?
 
 Right now I am doing the second way and its killing my memory and I
 didn't know if their is a way to bring an image and use it as if it
 was an object in a Flash CS library. 
 
 Again even if I achieved it the first way would it save me any memory?






This message is private and confidential. If you have received it in error, 
please notify the sender and remove it from your system.

RE: [flexcoders] 3D flip effect

2009-02-12 Thread Ryan Graham
I believe so... the docs suggest you have to hack it since the registration 
point is always top left. Do a translation in the negative by half the 
component's width and height (this will get you centered), rotate it, then do 
the reverse translation to put it back in it's original spot.  This was working 
fairly reasonably for me in an ENTER_FRAME handler with an image:

img.transform.matrix3D.appendTranslation(-1 * img.width / 2, -1 * img.height / 
2, 0);
img.transform.matrix3D.appendRotation(1, Vector3D.Y_AXIS);
img.transform.matrix3D.appendTranslation(img.width / 2, img.height / 2, 0);

That'll just rotate infinitely -- it would be up to you to turn this into a 
reusable effect...

HTH,
Ryan


-Original Message-
From: flexcoders@yahoogroups.com on behalf of Russ Ferguson
Sent: Thu 2/12/2009 4:46 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] 3D flip effect
 
Thanks. Im targeting air 1.5. it seems to be working but I want to
rotate from center and not from the top left hand corner.

I think it has to do with matrix3D

 

Any thoughts?

Thanks

...russ

 

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of Ryan Graham
Sent: Thursday, February 12, 2009 3:09 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] 3D flip effect

 

Yeah, it's possible with 3.2. As long as you are targeting FP10, check
out the x, y, z, rotationX, rotationY, and rotationZ on DisplayObject in
the docs...

 

If you're targeting FP9, it's a much more manual process to organize the
math and such...

 

HTH,

Ryan

 

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of Russ Ferguson
Sent: Thursday, February 12, 2009 12:55 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] 3D flip effect

 

Hi,

 Im looking to rotate a canvas in 3d space.
 I know you can do this with gumbo but I wanted to see if you can do it
with the 3.2 sdk.

 

All the examples I have found rotate on a slider. Im looking to rotate
during a transition.

Thanks.

...russ

This message is private and confidential. If you have received it in
error, please notify the sender and remove it from your system.




winmail.datThis message is private and confidential. If you have received it in error, 
please notify the sender and remove it from your system.

RE: [flexcoders] XML attributes

2009-02-10 Thread Ryan Graham

It doesn't like the final keyword in there I believe. When you need to
add attributes or properties that use actionscript keywords, drop back
to string keys for access:

 

m_xml[@final-note] = 8;

 

HTH,

Ryan

 

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of mihksoft
Sent: Tuesday, February 10, 2009 5:58 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] XML attributes

 

Hi!

I have an XML
var m_xml:XML = note/note;
I want to add the attribute final-note to this XML to result
note final-note=8/note.

I didn't find how to add attributes like this.
I tried m_x...@final-note = 8 but is not working.

Any idea?

Thanks,
Mihai





This message is private and confidential. If you have received it in error, 
please notify the sender and remove it from your system.

RE: [flexcoders] how to localize pageTitle

2009-02-10 Thread Ryan Graham

You may also be able to use BrowserManager depending on your setup…

 

HTH,

Ryan

 

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of Haykel BEN JEMIA
Sent: Tuesday, February 10, 2009 9:59 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] how to localize pageTitle

 

If I'm right, the pageTitle property is set during compilation in the html 
wrapper and it has no effect when set on runtime. You will have to use 
JavaScript for this. Override the resourcesChanged() method and call a 
JavaScript function which will set the window's title. Here you will find an 
example how to do it:

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

Haykel Ben Jemia

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





On Tue, Feb 10, 2009 at 3:08 PM, Gautam P p.gau...@gmail.com wrote:

Hi,

Following is the code I tried out:

mx:Application pageTitle={resourceManager.getString('AppMessages', 
'GREETING')} xmlns:mx=http://www.adobe.com/2006/mxml;
mx:Metadata
[ResourceBundle(AppMessages)]
/mx:Metadata


I am not able to localize the application's pageTitle property string. Also the 
documentation says we can't use actionscript to update this property. Any idea 
what I am doing wrong...

Thanks,
Gautam.

 




This message is private and confidential. If you have received it in error, 
please notify the sender and remove it from your system.


RE: [flexcoders] Can I debug my Flex applications on 64 bit windows?

2009-02-10 Thread Ryan Graham

Did you change your compiler options to target FP10?

 

HTH,

Ryan

 

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of Todd
Sent: Tuesday, February 10, 2009 10:27 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Can I debug my Flex applications on 64 bit
windows?

 

Hello All,
I'm trying to get my Flex Builder to debug, but I keep getting a
variety of errors:

I've installed both debug versions of flashplayer_10_plugin_debug,
and flashplayer_10_ActiveX:

I keep getting the following error:
C:\Windows\SysWOW64\Macromed\Flash\Flash10a.ocx

Flex Builder cannot locate the required debugger version of Flash
Player. You might need to install the debugger version of Flash Player
9 or reinstall Flex Builder.

Do you want to try to debug with the current version?





This message is private and confidential. If you have received it in error, 
please notify the sender and remove it from your system.

RE: [flexcoders] XML attributes

2009-02-10 Thread Ryan Graham

Ah, good call Tracy... thanks for clearing that up.

 

-Ryan

 

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of Tracy Spratt
Sent: Tuesday, February 10, 2009 2:13 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] XML attributes

 

I think it is the -.  But either way, if you can't change the
attribute name, then Ryan's approach is good.

 

Tracy Spratt 
Lariat Services 

Flex development bandwidth available 



From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of Ryan Graham
Sent: Tuesday, February 10, 2009 11:55 AM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] XML attributes

 

It doesn't like the final keyword in there I believe. When you need to
add attributes or properties that use actionscript keywords, drop back
to string keys for access:

 

m_xml[@final-note] = 8;

 

HTH,

Ryan

 

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of mihksoft
Sent: Tuesday, February 10, 2009 5:58 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] XML attributes

 

Hi!

I have an XML
var m_xml:XML = note/note;
I want to add the attribute final-note to this XML to result
note final-note=8/note.

I didn't find how to add attributes like this.
I tried m_x...@final-note = 8 but is not working.

Any idea?

Thanks,
Mihai

This message is private and confidential. If you have received it in
error, please notify the sender and remove it from your system.





This message is private and confidential. If you have received it in error, 
please notify the sender and remove it from your system.

RE: [flexcoders] Memory consumption by the browser

2009-02-09 Thread Ryan Graham

Is this in all browsers? I know IE 6 (maybe even 7?) has issues with
memory management. I consistently see memory leak-like behavior with IE
6, for example: 

 

Start debug session for basic app - IE reports 60+ MB memory usage with
a value that steadily climbs as I use the app.

Minimize the browser, then bring it back to view - IE memory usage drops
to ~13 MB.

Use the app for a few more minutes, memory footprint grows in size a few
MB.

Minimize, then restore - IE footprint back down to ~13 MB or so.

 

I don't see the same behavior in FF, which is good. The issue might be
with memory management within that particular browser, and not the Flash
Player. 

 

HTH,

Ryan

 

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of Dmitri Girski
Sent: Sunday, February 08, 2009 11:33 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Memory consumption by the browser

 

Hi everybody,

I am trying to solve the problem when my application consumes a lot of
memory.
When application starts in the browser, Windows/Mac reports the size
of browser process around 150Mb.
Then, if you start opening/closing the same popup window (which is
actually being cached by application), the browser starts to grow. 
Each appearance of popup consumes around 1.5Mb [sic!] (the consumer is
childConstraintInfo, around 256 instances)
When you close the pop up, memory sometimes goes down, but never to
the original value. Never ever. At least 100-200kb more at a time.

OK, when I use a profiler, it shows that application consumes 42Mb. 
Profiler shows no leaks, even if the number of instances are growing,
when I click on GarbageCollector icon it always goes to the original
figures, including childConstraintInfo instances. Total Memory stays
at 42Mb mark. Good.
But the problem is that browser's footprint is still growing. After a
couple of hours of work with application it grows to 500-600Mb.

In profiler everything looks perfect. In reality - 600Mb app on 1Gb
system makes it dead.

The question is, what makes browser to be so memory hungry? Why it
consumes more  more memory without any attempt to release it? 

The simplest action with panel instance addPopUp/removePopUp consumes
1.5Mb of memory - I don't believe it. Well, the panels has 3 states
and complex layout with ~100 elements. But what makes it so different
to the Hello, World popup, which seems to be right?

Thank you for any thought in advance.

Regards,
Dmitri.







This message is private and confidential. If you have received it in error, 
please notify the sender and remove it from your system.

RE: [flexcoders] Re: Some material for flex 3 Certification

2009-02-09 Thread Ryan Graham

I found the Attest quiz software good for the Flex 2 cert.  The content
should still mostly apply to give you a feel for what the cert exam is
like. Study up on LCDS, RPC, and of course all the new AIR features. As
mentioned, it really helps if you've been in the trenches for a while
before taking the exam.

 

HTH,

Ryan 

 

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of nathanpdaniel
Sent: Monday, February 09, 2009 7:54 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Some material for flex 3 Certification

 

Flex from the Source (from Adobe Press) is a really good one to get 
your head wrapped around Flex - if you would consider that 
book basic or easy, you'll do fine on the Flex portion. Or you can 
try the online Flex training 
(http://www.adobe.com/devnet/flex/learn/designer/learningpath.html).
Then, make sure to study AIR - the main areas you should focus on are 
the differences between Flex  AIR (like the file system stuff, HTML, 
etc. - things you can do in an AIR app you can't do in a web app).
Get those 2 things - and you should be good to go. That's what I 
did - of course it DOES help significantly if you are a full time 
Flex developer... But if you can't do that, there's really enough 
material out there to understand it...

--- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
, Amplify Mindware 
projectonf...@... wrote:

 Hello All,
 Can any one provide some resource(links / ebooks / etc) for 
Flex 3  Certification. 
 Any tips,on how I should prepare for the certification.
 
  Awaiting for prompt reply.
 
 Regards...
   Amplify






This message is private and confidential. If you have received it in error, 
please notify the sender and remove it from your system.

RE: [flexcoders] Re: Memory consumption by the browser

2009-02-09 Thread Ryan Graham

Hmm... at this point I suppose it depends on what you are doing with
your popup component. We'd have to see some code to try and pinpoint
memory-leaks.

 

Are you creating a new popup everytime the user requests it, or do you
create one instance and use the popup manager to show and hide that
instance, setting data properties accordingly? Are you adding listeners
to descendant components in the popup? If so are you using weak
references? For example:

 

addEventListener(MouseEvent.CLICK, onClick, false, 0, true);

 

and not

 

addEventListener(MouseEvent.CLICK, onClick)

 

HTH,

Ryan

 

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of Dmitri Girski
Sent: Monday, February 09, 2009 5:37 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Memory consumption by the browser

 

Hi Ryan,

I tested it on IE7, Chrome, Firefox3, Safari (Mac). They all perform
in consistent manner, Safari is less greedy, IE  FF are the most
hungry ones.

But as I said before, I can't see this footprint shrink when I
minimise browsers. I even set this secret variable for FF -
trim_on_minimise - no effect. How come?

Cheers,
Dmitri.

--- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
, Ryan Graham ryan.gra...@... wrote:

 
 Is this in all browsers? I know IE 6 (maybe even 7?) has issues with
 memory management. I consistently see memory leak-like behavior with
IE
 6, for example: 
 
 
 
 Start debug session for basic app - IE reports 60+ MB memory usage
with
 a value that steadily climbs as I use the app.
 
 Minimize the browser, then bring it back to view - IE memory usage
drops
 to ~13 MB.
 
 Use the app for a few more minutes, memory footprint grows in size a
few
 MB.
 
 Minimize, then restore - IE footprint back down to ~13 MB or so.
 
 
 
 I don't see the same behavior in FF, which is good. The issue might be
 with memory management within that particular browser, and not the
Flash
 Player. 
 
 
 
 HTH,
 
 Ryan
 
 
 
 From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
[mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
] On
 Behalf Of Dmitri Girski
 Sent: Sunday, February 08, 2009 11:33 PM
 To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com 
 Subject: [flexcoders] Memory consumption by the browser
 
 
 
 Hi everybody,
 
 I am trying to solve the problem when my application consumes a lot of
 memory.
 When application starts in the browser, Windows/Mac reports the size
 of browser process around 150Mb.
 Then, if you start opening/closing the same popup window (which is
 actually being cached by application), the browser starts to grow. 
 Each appearance of popup consumes around 1.5Mb [sic!] (the consumer is
 childConstraintInfo, around 256 instances)
 When you close the pop up, memory sometimes goes down, but never to
 the original value. Never ever. At least 100-200kb more at a time.
 
 OK, when I use a profiler, it shows that application consumes 42Mb. 
 Profiler shows no leaks, even if the number of instances are growing,
 when I click on GarbageCollector icon it always goes to the original
 figures, including childConstraintInfo instances. Total Memory stays
 at 42Mb mark. Good.
 But the problem is that browser's footprint is still growing. After a
 couple of hours of work with application it grows to 500-600Mb.
 
 In profiler everything looks perfect. In reality - 600Mb app on 1Gb
 system makes it dead.
 
 The question is, what makes browser to be so memory hungry? Why it
 consumes more  more memory without any attempt to release it? 
 
 The simplest action with panel instance addPopUp/removePopUp consumes
 1.5Mb of memory - I don't believe it. Well, the panels has 3 states
 and complex layout with ~100 elements. But what makes it so different
 to the Hello, World popup, which seems to be right?
 
 Thank you for any thought in advance.
 
 Regards,
 Dmitri.
 
 
 
 
 
 
 
 This message is private and confidential. If you have received it in
error, please notify the sender and remove it from your system.






This message is private and confidential. If you have received it in error, 
please notify the sender and remove it from your system.

RE: [flexcoders] Re: Problem in Streaming Live data using Flash Media Server

2009-02-06 Thread Ryan Graham

It depends on how you have FMS setup... if you are using the default
setup, you probably connect to your app instance with something like
rtmp://server/yourAppName.

 

I think the default setup expects streams in a streams folder. On the
FMS, try putting your flv file in
%FMS-Root%/applications/yourAppName/streams

 

HTH,

Ryan

 

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of akila_ksri
Sent: Thursday, February 05, 2009 9:40 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Problem in Streaming Live data using Flash
Media Server

 

Yes, you are right it resides in the same directory as my application

--- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
, Nate Beck n...@... wrote:

 When you say... present in the same directory.. which directory 
are you
 referring to? The FLV file resides in the same directory as your
 application?
 It's been a while since I've used FMS... but in Wowza Media Server 
there is
 an audio folder where all of the stream FLV files are located.
 
 On Thu, Feb 5, 2009 at 4:47 AM, akila_ksri akila_k...@... wrote:
 
  I have the client application and the FMS running on the same 
machine,
  the client app connects to the server successfully but fails to 
play
  any content(Pre-recorded flv/swf) which is also present in the 
same
  directory using NetStream.play(contentPath); and i always get
  NetStream.Play.StreamNotFound
  Could anyone tell me if i am doing anything wrong?
 
  Any help would be greatly appreciated.
 
  Thanks in advance,
  Akila
 
  
 
 
 
 
 -- 
 
 Cheers,
 Nate
 
 http://blog.natebeck.net






This message is private and confidential. If you have received it in error, 
please notify the sender and remove it from your system.

RE: [flexcoders] XML walkdown Help

2009-02-03 Thread Ryan Graham

Yeah, notice the 2 distinct namespaces being used here:

 

The reponse/result wrapper uses
http://www.newatlanta.com/bluedragon/cfc/prmc/PRMCProjects/edu/umich/se
curity.

The columnList and data use http://www.newatlanta.com/bluedragon;

 

If you do as Tracy said, and set the default namespace to
http://www.newatlanta.com/bluedragon/cfc/prmc/PRMCProjects/edu/umich/se
curity, you would need to use the other namespace technique to let e4x
know you are looking for nodes in a different namespace than the default
as already defined. Something like:

 

default xml namespace =
http://www.newatlanta.com/bluedragon/cfc/prmc/PRMCProjects/edu/umich/se
curity; 

 

var ns1:Namespace = new
Namespace(http://www.newatlanta.com/bluedragon;);

trace(xmlResult.loginResult.ns1::columnList.toXMLString());

 

Even though the namespaces share the same base URL
(http://www.newatlanta.com/bluedragon;), the XML processing model is
unaware and doesn't care - all it sees is unique strings, each of which
defines a separate namespace using the xmlns attribute declaration.

 

HTH,

Ryan

 

 

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of Tracy Spratt
Sent: Tuesday, February 03, 2009 9:35 AM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] XML walkdown Help

 

columnList will need to be prefixed with the ns:: also.  As will all
nodes.  I'd advise setting the default namespace as I posted, to make
the expressions easier.

 

Tracy Spratt 
Lariat Services 

Flex development bandwidth available 



From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of Wally Kolcz
Sent: Tuesday, February 03, 2009 10:23 AM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] XML walkdown Help

 

Thanks for being patient and helping me. I really need to read more
about XML and Flex/AS3. I am so used to RemoteObjects.

Based on what was posted from Ryan:

var ns:Namespace = new
Namespace(http://www.newatlanta.com/bluedragon/cfc/prmc/PRMCProjects/ed
u/umich/security);

trace(xmlResult.ns::loginResult.toXMLString());

How can I step down to the columnList?

I tried var xlNames:XMLList = xmlResult.ns::loginResult.columnList;

but it came up blank too...



From: Tracy Spratt tspr...@lariatinc.com
Sent: Tuesday, February 03, 2009 6:28 AM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] XML walkdown Help

Good, you are on the way. You are only one step from your columnList.

 

Tracy Spratt
Lariat Services

Flex development bandwidth available



From:flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of Wally Kolcz
Sent: Tuesday, February 03, 2009 7:54 AM
To:flexcoders@yahoogroups.com
Subject: RE: [flexcoders] XML walkdown Help

 

Ok, I tried both approaches and they gave me this.

loginResult
xmlns=http://www.newatlanta.com/bluedragon/cfc/prmc/PRMCProjects/edu/um
ich/security xmlns:soap=http://schemas.xmlsoap.org/soap/envelope/;
xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
xmlns:xsd=http://www.w3.org/2001/XMLSchema;
  columnList xmlns=http://www.newatlanta.com/bluedragon;
stringuniqname/string
stringrole/string
stringfirstName/string
stringlastName/string
  /columnList
  data xmlns=http://www.newatlanta.com/bluedragon;
ArrayOfAnyType
  anyType xsi:type=xsd:stringwkolcz/anyType
  anyType xsi:type=xsd:stringadmin/anyType
  anyType xsi:type=xsd:stringWally/anyType
  anyType xsi:type=xsd:stringKolcz/anyType
/ArrayOfAnyType
  /data
/loginResult



From: Tracy Spratt tspr...@lariatinc.com
Sent: Monday, February 02, 2009 1:44 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] XML walkdown Help

Yes, darn it,  missed that,  Ryan is correct, there will a namespace
problem.  

 

You can define a default namespace, and not have to use the prefix in
all of the expressions.

default xml namespace =
http://www.newatlanta.com/bluedragon/cfc/prmc/PRMCProjects/edu/umich/se
curity ; 

 

But you will still need to get the expression right.  Look close at your
expression and at your xml.

Tracy Spratt
Lariat Services

Flex development bandwidth available



From:flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of Ryan Graham
Sent: Monday, February 02, 2009 4:01 PM
To:flexcoders@yahoogroups.com
Subject: RE: [flexcoders] XML walkdown Help

 

Looks like you're having namespace issues. The default namespace is
http://www.newatlanta.com/bluedragon/cfc/prmc/PRMCProjects/edu/umich/sec
urity, so you need to use this when drilling down.

 

Something like:

 

var ns:Namespace = new
Namespace(http://www.newatlanta.com/bluedragon/cfc/prmc/PRMCProjects/ed
u/umich/security);

trace(xmlResult.ns::loginResult.toXMLString());

 

You can do this for all nodes with a namespace defined.

 

HTH, 

Ryan

 

From:flexcoders@yahoogroups.com

RE: [flexcoders] Can you put a UIComponent in a Sprite

2009-02-03 Thread Ryan Graham

Sure it's possible... Sprite.addChild() takes a DisplayObject as a
parameter, and both Sprite and UIComponent are DisplayObjects:

 

UIComponent  FlexSprite
http://livedocs.adobe.com/flex/3/langref/mx/core/FlexSprite.html  
Sprite
http://livedocs.adobe.com/flex/3/langref/flash/display/Sprite.html  
DisplayObjectContainer
http://livedocs.adobe.com/flex/3/langref/flash/display/DisplayObjectCon
tainer.html  InteractiveObject
http://livedocs.adobe.com/flex/3/langref/flash/display/InteractiveObjec
t.html  DisplayObject
http://livedocs.adobe.com/flex/3/langref/flash/display/DisplayObject.ht
ml  EventDispatcher
http://livedocs.adobe.com/flex/3/langref/flash/events/EventDispatcher.h
tml  Object http://livedocs.adobe.com/flex/3/langref/Object.html 

 

Can't say flex will like it so much though. What are you trying to do?

 

HTH,

Ryan

 

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of Jason Ervin
Sent: Tuesday, February 03, 2009 4:26 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Can you put a UIComponent in a Sprite

 

Is it possible to put a UIComponent in a Sprite? I assume not since
Sprite is lower on the chain and since it doesn't contain the timeline.

Yes? No?

 



This message is private and confidential. If you have received it in error, 
please notify the sender and remove it from your system.image001.gif

RE: [flexcoders] Another 1034 - events and event types

2009-02-03 Thread Ryan Graham

Check out the docs for the activate event - it goes all the way up the
chain to EventDispatcher/DisplayObject and is a broadcast event, which
means:

 

The DisplayObject class contains several broadcast events. Normally, the
target of any particular event is a specific DisplayObject instance. For
example, the target of an added event is the specific DisplayObject
instance that was added to the display list. Having a single target
restricts the placement of event listeners to that target and in some
cases the target's ancestors on the display list. With broadcast events,
however, the target is not a specific DisplayObject instance, but rather
all DisplayObject instances, including those that are not on the display
list. This means that you can add a listener to any DisplayObject
instance to listen for broadcast events. In addition to the broadcast
events listed in the DisplayObject class's Events table, the
DisplayObject class also inherits two broadcast events from the
EventDispatcher class: activate and deactivate .

 

I'd take that to mean that you shouldn't use activate or deactivate
(or any broadcast event names) for your custom events.  I was able to
replicate the 1034 using a custom activate event -- other names seemed
safe though, depending on what component your DateRangePicker is being
extended from.

 

HTH,

Ryan

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of Richard Rodseth
Sent: Tuesday, February 03, 2009 5:59 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Another 1034 - events and event types

 

Hi Jeff. Yes, my event classes do descend from Event. I've also run in
debug mode, but you don't get a 
stack crawl on the 1034. It just says main thread. 

On Tue, Feb 3, 2009 at 4:54 PM, Jeffry Houser j...@farcryfly.com
wrote:


 A single event class being used for multiple events is common within
the Flex Framework; why recommend not re-using the same type?  

Back to the problem: 
 Are you sure that your event class extends flash.events.Event ?  I
might expect odd errors if not.  
 Have you tried running the code in debug mode to see what is going on;
maybe isolate the line which causing the error.  

Tracy Spratt wrote: 

I would not use the same type name.

 

Tracy Spratt 
Lariat Services 

Flex development bandwidth available 



From: flexcoders@yahoogroups.com
[mailto:flexcod...@yahoogroups.com] On Behalf Of Richard Rodseth
Sent: Tuesday, February 03, 2009 6:11 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Another 1034 - events and event types

 

I have a few MXML components that provide reusable pickers for
things like date ranges. I also nest these components.
Is it OK to reuse event types like change and activate, but
associated with different event classes?
For that matter must an event type always be associated with one
class? 

I dispatching non-bubbling events from these components, and set
up the meta-info as expected:

mx:Metadata

[Event(name=activate,type=com.companyname.appname.event.picker.DateRa
ngePickerEvent)]
/mx:Metadata

and use them like this:

picker:DateRangePicker 
activate=onActivateDateRangePicker(event)
/

I'm occasionally getting an error  like this:

TypeError: Error #1034: Type Coercion failed: cannot convert
flash.events::ev...@f4130d1 to
com.companyname.appname.event.picker.DateRangePickerEvent.

Who would be trying to cast an event to my type? Changing the
event type to activatePicker seems to be helping, but I'd rather not
have a proliferation.




--

Flexcoders Mailing List






-- 
Jeffry Houser, Technical Entrepreneur
Adobe Community Expert: http://tinyurl.com/684b5h
http://www.twitter.com/reboog711  | Phone: 203-379-0773
--
Easy to use Interface Components for Flex Developers
http://www.flextras.com.com?c=104
--
http://www.theflexshow.com
http://www.jeffryhouser.com
--
Part of the DotComIt Brain Trust

 

 



This message is private and confidential. If you have received it in error, 
please notify the sender and remove it from your system.

RE: [flexcoders] XML walkdown Help

2009-02-03 Thread Ryan Graham
I just ran the code snippet below, and everything shows up in the Alert boxes 
as expected. The xml is a copy and paste from yesterday's posts. I noticed 
before you posted this you had a significantly different XML snippet. Perhaps 
the server is returning something different than what you think you're getting? 
 Regardless, this code works -- the second alert shows the XMLList for the 
column names that you are probably trying to get at.

I'd say start tracing at e.result again to double check the XML returned by the 
server.

var x:XML = loginResponse 
xmlns=http://www.newatlanta.com/bluedragon/cfc/prmc/PRMCProjects/edu/umich/security;
 xmlns:soap=http://schemas.xmlsoap.org/soap/envelope/; 
xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; 
xmlns:xsd=http://www.w3.org/2001/XMLSchema;
  loginResult
columnList xmlns=http://www.newatlanta.com/bluedragon;
  stringuniqname/string
  stringrole/string
  stringfirstName/string
  stringlastName/string
/columnList
data xmlns=http://www.newatlanta.com/bluedragon;
  ArrayOfAnyType
anyType xsi:type=xsd:stringwkolcz/anyType
anyType xsi:type=xsd:stringadmin/anyType
anyType xsi:type=xsd:stringWally/anyType
anyType xsi:type=xsd:stringKolcz/anyType
  /ArrayOfAnyType
/data
  /loginResult
/loginResponse;

default xml namespace = 
http://www.newatlanta.com/bluedragon/cfc/prmc/PRMCProjects/edu/umich/security;;
var ns1:Namespace = new Namespace(http://www.newatlanta.com/bluedragon;);
Alert.show(x.loginResult.ns1::columnList.toXMLString());
var xlColumns:XMLList = x.loginResult.ns1::columnList.ns1::string;
Alert.show(xlColumns.toXMLString());

HTH,
Ryan


-Original Message-
From: flexcoders@yahoogroups.com on behalf of Wally Kolcz
Sent: Tue 2/3/2009 10:32 AM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] XML walkdown Help
 
This is the code i am using. I tried this since I have to be on the test server 
(remote) to use the BD version since i am running Adobe locally. I dont think 
trace will work. Its coming up blank:



var xmlResult:XML = XML(e.result);

default xml namespace = 
http://www.newatlanta.com/bluedragon/cfc/prmc/PRMCProjects/edu/umich/security 
; 

var ns1:Namespace = new Namespace(http://www.newatlanta.com/bluedragon;);

Alert.show(xmlResult.loginResult.ns1::columnList.toXMLString(),xlNames);





From: Ryan Graham ryan.gra...@phoenix.edu

Sent: Tuesday, February 03, 2009 9:03 AM

To: flexcoders@yahoogroups.com

Subject: RE: [flexcoders] XML walkdown Help 



Yeah, notice the 2 distinct namespaces being used here: The reponse/result 
wrapper uses 
http://www.newatlanta.com/bluedragon/cfc/prmc/PRMCProjects/edu/umich/security.The
 columnList and data use http://www.newatlanta.com/bluedragon; If you do as 
Tracy said, and set the default namespace to 
http://www.newatlanta.com/bluedragon/cfc/prmc/PRMCProjects/edu/umich/security;,

you would need to use the other namespace technique to let e4x know you are

looking for nodes in a different namespace than the default as already defined.

Something like: default xml namespace =

http://www.newatlanta.com/bluedragon/cfc/prmc/PRMCProjects/edu/umich/security;;

 var ns1:Namespace = new

Namespace(http://www.newatlanta.com/bluedragon;);trace(xmlResult.loginResult.ns1::columnList.toXMLString());
 Even though the namespaces share the same base URL 
(http://www.newatlanta.com/bluedragon;),

the XML processing model is unaware and doesn't care - all it sees

is unique strings, each of which defines a separate namespace using the xmlns

attribute declaration. HTH,Ryan  From: flexcoders@yahoogroups.com

[mailto:flexcod...@yahoogroups.com] On Behalf Of Tracy Spratt

Sent: Tuesday, February 03, 2009 9:35 AM

To: flexcoders@yahoogroups.com

Subject: RE: [flexcoders] XML walkdown Help columnList

will need to be prefixed with the ns:: also.  As will all nodes. 

I'd advise setting the default namespace as I posted, to make the

expressions easier. 



Tracy

Spratt

Lariat Services



Flex

development bandwidth available



From: flexcoders@yahoogroups.com

[mailto:flexcod...@yahoogroups.com] On Behalf Of Wally Kolcz

Sent: Tuesday, February 03, 2009 10:23 AM

To: flexcoders@yahoogroups.com

Subject: RE: [flexcoders] XML walkdown Help 



Thanks for being patient and helping me. I really need to read more about

XML and Flex/AS3. I am so used to RemoteObjects.



Based on what was posted from Ryan:var ns:Namespace = new

Namespace(http://www.newatlanta.com/bluedragon/cfc/prmc/PRMCProjects/edu/umich/security;);trace(xmlResult.ns::loginResult.toXMLString());



How can I step down to the columnList?



I tried var xlNames:XMLList = xmlResult.ns::loginResult.columnList;



but it came up blank too...



From: Tracy

Spratt tspr...@lariatinc.com

Sent: Tuesday, February 03, 2009 6:28 AM

To: flexcoders@yahoogroups.com

RE: [flexcoders] Re: Need Details Creating Custom UIComponents with AS3

2009-02-03 Thread Ryan Graham

The html for that site suggests you only need 9.0.28. It played fine in 10 for 
me. Think I'll stick around and watch it too. :)

HTH,
Ryan

-Original Message-
From: flexcoders@yahoogroups.com on behalf of Jason
Sent: Tue 2/3/2009 8:05 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Need Details Creating Custom UIComponents with AS3
 
Hmmm - thanks - however, the video does not play.  Does it require 
Flash player 10?

 Try Deepa's talk from MAX, it was really good on creating components 
in
 Flex 3.
 
 http://tv.adobe.com/#vi+f15384v1002
 
 I think that's the right link...
 
  
 
 Gk.
 
 Gregor Kiddie



winmail.datThis message is private and confidential. If you have received it in error, 
please notify the sender and remove it from your system.

RE: [flexcoders] mimicking UIComponent's addChild and addChildAt, how to properly handle nested

2009-02-03 Thread Ryan Graham

Sounds like you need to look into the flex component lifecycle. Usually 
children are created and addChild() is called for them during the 
createChildren() method.  Then you move on to commitProperties(), measure(), 
etc.

A pretty concise explanation can be found here: 
http://flexcomps.wordpress.com/2008/05/09/flex-component-life-cycle/

Beyond that, you can dig through the flex developer's guide at Adobe to get the 
finer details.

HTH,
Ryan

-Original Message-
From: flexcoders@yahoogroups.com on behalf of djhatrick
Sent: Tue 2/3/2009 7:00 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] mimicking UIComponent's addChild and addChildAt, how to 
properly handle nested
 
I was working with the Window class, extending it in actionscript so I
could tween inner containers outside etc. and i am tryig to add 

I've overrode addChildAt and addChild so I could add my uiComponents
to child container.  All works well, with adding objects by
actionscript, but when I try to do MXML components, nested inside
another mxml component I get an error.  I noticed that UIComponent
does some internal stuff, like addingChild, and such.  

Right now I am storing an array of children and then adding them back
on creationComplete.

Does the nestLevel property give me any information on how to do this
correctly?  Any suggestions, please...

thanks,
Patrick




winmail.datThis message is private and confidential. If you have received it in error, 
please notify the sender and remove it from your system.

RE: [flexcoders] XML walkdown Help

2009-02-02 Thread Ryan Graham

Looks like you're having namespace issues. The default namespace is
http://www.newatlanta.com/bluedragon/cfc/prmc/PRMCProjects/edu/umich/sec
urity, so you need to use this when drilling down...

 

Something like:

 

var ns:Namespace = new
Namespace(http://www.newatlanta.com/bluedragon/cfc/prmc/PRMCProjects/ed
u/umich/security);

trace(xmlResult.ns::loginResult.toXMLString());

 

You can do this for all nodes with a namespace defined...

 

HTH, 

Ryan

 

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of Wally Kolcz
Sent: Monday, February 02, 2009 1:42 PM
To: flexcoders@yahoogroups.com
Subject: re: [flexcoders] XML walkdown Help

 

Here is a more accurate output on the Blue Dragon server: 

loginResponse
xmlns=http://www.newatlanta.com/bluedragon/cfc/prmc/PRMCProjects/edu/um
ich/security xmlns:soap=http://schemas.xmlsoap.org/soap/envelope/;
xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
xmlns:xsd=http://www.w3.org/2001/XMLSchema;
  loginResult
columnList xmlns=http://www.newatlanta.com/bluedragon;
  stringuniqname/string
  stringrole/string
  stringfirstName/string
  stringlastName/string
/columnList
data xmlns=http://www.newatlanta.com/bluedragon;
  ArrayOfAnyType
anyType xsi:type=xsd:stringwkolcz/anyType
anyType xsi:type=xsd:stringadmin/anyType
anyType xsi:type=xsd:stringWally/anyType
anyType xsi:type=xsd:stringKolcz/anyType
  /ArrayOfAnyType
/data
  /loginResult
/loginResponse

I tried var xmlResult:XML = XML(e.result); which gives me the above.
var xlColumns:XMLList = xmlResult.loginResponse; which comes up blank.



From: Wally Kolcz wko...@isavepets.com
Sent: Monday, February 02, 2009 11:08 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] XML walkdown Help 

I am getting a weird return from Blue Dragon's CFC wsdl as my e.result.
I need to set this to 2 local XMLList variables but am having a devil of
a time walking down this path to the core nodes. Any ideas on how to
make this usable?

Tracy has been trying to help me, but this return item is impossible to
work with. I tried xmlColumns =
loginReponse.loginReturn.columnList.columnList but it doesn't work.
Neither does the same for data.

Here is the result that is returned from Blue Dragon:

ns1:loginResponse
soapenv:encodingStyle=http://schemas.xmlsoap.org/soap/encoding/;
xmlns:ns1=http://security.umich.edu.prmcprojects;
xmlns:soapenv=http://schemas.xmlsoap.org/soap/envelope/;
xmlns:xsd=http://www.w3.org/2001/XMLSchema;
xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
  loginReturn xsi:type=ns2:QueryBean
xmlns:ns2=http://rpc.xml.coldfusion;
columnList soapenc:arrayType=xsd:string[8]
xsi:type=soapenc:Array
xmlns:soapenc=http://schemas.xmlsoap.org/soap/encoding/;
  columnList xsi:type=xsd:string
UNIQNAME
  /columnList
  columnList xsi:type=xsd:string
PASSWORD
  /columnList
  columnList xsi:type=xsd:string
LASTNAME
  /columnList
  columnList xsi:type=xsd:string
FIRSTNAME
  /columnList
  columnList xsi:type=xsd:string
POSITION
  /columnList
  columnList xsi:type=xsd:string
DEPARTMENT
  /columnList
  columnList xsi:type=xsd:string
ROLE
  /columnList
  columnList xsi:type=xsd:string
ISACTIVE
  /columnList
/columnList

data soapenc:arrayType=xsd:anyType[][1] xsi:type=soapenc:Array
xmlns:soapenc=http://schemas.xmlsoap.org/soap/encoding/;
  data soapenc:arrayType=xsd:anyType[8] xsi:type=soapenc:Array
data xsi:type=soapenc:string
  wkolcz
/data
data xsi:type=soapenc:string
  2113
/data
data xsi:type=soapenc:string
  Kolcz
/data
data xsi:type=soapenc:string
  Wally
/data
data xsi:type=soapenc:string
  Senior ColdFusion Architect
/data
data xsi:type=soapenc:string
  PRMC
/data
data xsi:type=soapenc:string
  admin
/data
data xsi:type=soapenc:int
  1
/data
  /data
/data
  /loginReturn
/ns1:loginResponse



 

 



This message is private and confidential. If you have received it in error, 
please notify the sender and remove it from your system.

RE: [flexcoders] MouseOver Event Not Firing

2009-02-02 Thread Ryan Graham

You need to define handlers for those components in the HBox if you want
them to listen for those specific mouse events. Right now the button in
the HBox is only listening for click events. Try writing handler
functions for those additional events to start debugging:

 

mx:Button id=backButton click=onClick(event)
mouseOver=onMouseOver(event) mouseOut=onMouseOut(event) width=24
height=20/

 

...

 

private function onMouseOver(event:MouseEvent):void

{

 
trace(mouseOver);

}



private function
onMouseOut(event:MouseEvent):void

{

 
trace(mouseOut);

}



HTH, 

Ryan

 

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of Geoffrey
Sent: Monday, February 02, 2009 3:16 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] MouseOver Event Not Firing

 

I have a Button that doesn't seem to know the mouse is over it. It 
doesn't dispatch MouseOver/Out/click events.

I have a Panel that has an HBox(Label/Spacer/Button) and a Canvas. 
the Canvas gets stuff added to it dynamically via Actionscript.

pre
mx:Panel xmlns:mx=http://www.adobe.com/2006/mxml; width=100% 
height=100%

mx:HBox id=titleBox verticalAlign=middle width=100% 
height=24
mx:Label text=Your Tasks/
mx:Spacer width=100%/
mx:Button id=backButton click=onClick(event) width=24 
height=20/
/mx:HBox

mx:Canvas id=dynamicContainer width=100% height=100%/

/mx:Panel
/pre

This component is displayed after a transition effect that 'swishes' 
it in from the right. I've done some debugging and it seems that 
everything is getting mouseOver events except everything within the 
HBox.

Any ideas? Because I have run out of ideas.

Thanks,
Geoff

 



This message is private and confidential. If you have received it in error, 
please notify the sender and remove it from your system.

RE: [flexcoders] How to assign html tag to text property

2009-01-27 Thread Ryan Graham

Not sure what you are trying to do. If you want the html rendered in the
text area, set the htmlText property:

 

mx:TextArea x=170 y=147 height=229 width=248 id=ta

mx:htmlText 

![CDATA[html

body

Hello

/body

/html]]

/mx:htmlText

/mx:TextArea

 

If you want to actually display the markup as a string, set the text
property:

 

mx:TextArea x=170 y=147 height=229 width=248 id=ta

mx:text 

![CDATA[html

body

Hello

/body

/html]]

/mx:text

/mx:TextArea

 

HTH,

Ryan

 

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of markflex2007
Sent: Tuesday, January 27, 2009 2:23 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] How to assign html tag to text property

 

Hi,

I try the following code but I get error,please give me a idea to fix
it.
Thanks

Mark

mx:TextArea x=170 y=147 height=229 width=248 id=ta
mx:text = 
html
body
Hello
/body
/html 

/mx:TextArea

 



This message is private and confidential. If you have received it in error, 
please notify the sender and remove it from your system.

RE: [flexcoders] flex date and timezone

2009-01-27 Thread Ryan Graham

If you have access to the GMT offsets, sure. Otherwise, if you have just
the strings, I don't see an easy way...

 

HTH,

Ryan

 

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of coder3
Sent: Tuesday, January 27, 2009 3:13 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] flex date and timezone

 


Hi All

i have 3 timezone strings, for example, America/Thule,
Indian/Maldives,
and Europe/Luxembourg. is there a way to sort them from east to west?

thanks!!
c
-- 
View this message in context:
http://www.nabble.com/flex-date-and-timezone-tp21695609p21695609.html
Sent from the FlexCoders mailing list archive at Nabble.com.

 



This message is private and confidential. If you have received it in error, 
please notify the sender and remove it from your system.

RE: [flexcoders] Adding the same mask to several Sprites

2009-01-21 Thread Ryan Graham

That is the standard behavior for masks in the framework.  Can you
provide a little more info on what type of display object your mask is?
That would help us make suggestions for replicating the mask, or an
object close enough (e.g. a rectangular display object would be much
easier to clone/fake than an object with a more organic shape).

 

HTH,

Ryan

 

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of ACasualObserver
Sent: Wednesday, January 21, 2009 3:54 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Adding the same mask to several Sprites

 

In AS3, I created 3 sprites (S1, S2, and S3). I would like to do the
following:

S1.mask = S3;
S2.mask = S3;

The result is that mask is only applied to S2. If I remove the second
line, it is applied to S1. It seems that setting the mask of S2 to S3
removes S3 as mask of S1. Is there a solution for this?

Recreating S3 from scratch is not possible in my app but if there was
a way to copy/clone it, it would work.

Thanks in advance.

 



This message is private and confidential. If you have received it in error, 
please notify the sender and remove it from your system.

RE: [flexcoders] Re: Speex codec

2009-01-20 Thread Ryan Graham

Ah, great... Thanks for confirming!

 

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of steve.klee
Sent: Friday, January 16, 2009 3:28 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Speex codec

 



 I was reading the docs and they seem to suggest that the Speex codec
for
 streaming to a media server is a feature exclusive to AIR 1.5. Is that
 true? If I am targeting FP10, can I stream with Speex from a web-based
 flex app, or am I limited to using NellyMoser?

It is not limited to AIR, you can do this with your flex app as long
as you set the codec property on the Microphone properly AND you
compile your app for FP10. We have been doing this successfully with
out flex app that uses Adobe's Cocomo SDK.

 



This message is private and confidential. If you have received it in error, 
please notify the sender and remove it from your system.

[flexcoders] FMS attaching custom metadata to recorded streams

2009-01-20 Thread Ryan Graham

Hi All,

 

Can anyone point me to some resources showing how to attach custom
metadata properties to streams that are recorded via FMS? I've been
wrestling with it for a while and think I am just missing something
obvious somewhere.

 

I was trying the following sequence of events with no luck:

 

Start publishing:

 

myNetstream.publish(teststream, record);

 

Set the metadata on the NetStream.Publish.Start or
NetStream.Record.Start events:

 

var myMetaData:Object = new Object();

myMetaData.author = some author;

myNetstream.send(@setDataFrame, onMetaData, myMetaData);

 

Everything records fine, and then when I playback the stream and
enumerate the metadata properties in the onMetaData callback, I only see
the default properties that FMS attaches, like duration, audiocodecid,
etc.  The author property assigned above returns as undefined.

 

Any help is much appreciated.

 

Thanks

Ryan



This message is private and confidential. If you have received it in error, 
please notify the sender and remove it from your system.

RE: [flexcoders] Playing Mp4 audio with Sound class?

2009-01-20 Thread Ryan Graham

Sorry for the delay on this one... The closest I could find in JIRA was
FP-5, which is related mostly to the video portion of netstreams.  Does
anyone know the issue number for this one? I'd like to vote it up too.

http://bugs.adobe.com/jira/browse/FP-5

Thanks,
Ryan

-Original Message-
From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of Charlie Hubbard
Sent: Thursday, January 15, 2009 2:45 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Playing Mp4 audio with Sound class?

No can do.  I'm in an AIR app so I'm trying not to rely on the server
for this type of operation.

Uggg.  Adobe...

Any chance you know what's the Jira Issue number?  I'd like to bump up
the vote on it.

Charlie

On Thu, Jan 15, 2009 at 3:46 PM, Ryan Graham ryan.gra...@phoenix.edu
wrote:
 I believe that is the case. You can only use extract on mp3 files with
the
 Sound object and not on  streams with Netstream - unfortunately this
feature
 didn't make it into FP10 (hopefully FP11?). Depending on your setup,
one
 option might be to use a tool like ffmpeg to convert the mp4 to an mp3
 server-side, and then load that into a Sound object to do the
extraction.



 HTH,

 Ryan



 From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com]
On
 Behalf Of Charlie Hubbard
 Sent: Thursday, January 15, 2009 1:14 PM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Playing Mp4 audio with Sound class?



 So I'm trying to play Mp4 audio files with Sound, but it doesn't seem
 to work. I have gotten it working with NetStream class, but I'd
 really like to use the extract() method to get the underlying samples
 form the mp4 files just as I can with mp3. Am I correct in that Sound
 class doesn't support mp4, but only mp3?

 What's the deal with that? Is Sound a wrapper around NetStream? If
 so how could I get the samples?

 Charlie

 This message is private and confidential. If you have received it in
error,
 please notify the sender and remove it from your system.

 



--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Alternative FAQ location:
https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-
1e62079f6847
Search Archives:
http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups
Links




This message is private and confidential. If you have received it in error, 
please notify the sender and remove it from your system.


RE: [flexcoders] FMS attaching custom metadata to recorded streams

2009-01-20 Thread Ryan Graham

Ahh... nevermind this one. I accidentally had the onMetaData handler set
as private instead of public. Everything is working as expected now.

 

-Ryan

 

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of Ryan Graham
Sent: Tuesday, January 20, 2009 4:57 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] FMS attaching custom metadata to recorded streams

 

Hi All,

 

Can anyone point me to some resources showing how to attach custom
metadata properties to streams that are recorded via FMS? I've been
wrestling with it for a while and think I am just missing something
obvious somewhere.

 

I was trying the following sequence of events with no luck:

 

Start publishing:

 

myNetstream.publish(teststream, record);

 

Set the metadata on the NetStream.Publish.Start or
NetStream.Record.Start events:

 

var myMetaData:Object = new Object();

myMetaData.author = some author;

myNetstream.send(@setDataFrame, onMetaData, myMetaData);

 

Everything records fine, and then when I playback the stream and
enumerate the metadata properties in the onMetaData callback, I only see
the default properties that FMS attaches, like duration, audiocodecid,
etc.  The author property assigned above returns as undefined.

 

Any help is much appreciated.

 

Thanks

Ryan

This message is private and confidential. If you have received it in
error, please notify the sender and remove it from your system.

 



This message is private and confidential. If you have received it in error, 
please notify the sender and remove it from your system.

[flexcoders] Speex codec

2009-01-16 Thread Ryan Graham

Hi All,

 

I was reading the docs and they seem to suggest that the Speex codec for
streaming to a media server is a feature exclusive to AIR 1.5. Is that
true? If I am targeting FP10, can I stream with Speex from a web-based
flex app, or am I limited to using NellyMoser?

 

Thanks,

Ryan



This message is private and confidential. If you have received it in error, 
please notify the sender and remove it from your system.

RE: [flexcoders] Microphone BlazeDS (Red5?)

2009-01-15 Thread Ryan Graham

Also, depending on what server technology you're comfortable developing
in, you may want to check out WebORB - the .Net version is free, and
they also provide versions for Java, PHP, CF, and Rails. I've only
played with it a little bit, but what I saw seemed pretty solid.

 

HTH, 

Ryan

 

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of Sceneshift
Sent: Thursday, January 15, 2009 11:59 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Microphone  BlazeDS (Red5?)

 


Ah I see, in that case I shall scrub BlazeDS off my list!

Even though Wowza is moderately priced in comparison to FMS, looks like
Red5
is my only option within my budget. It's a shame there is barely any
documentation online for this kind of thing!

Thanks again Nate.

Nate Beck wrote:
 
 I haven't used BlazeDS on anything other than some of my small pet
 projects.
 However, I'm pretty sure that BlazeDS (Data Service) doesn't have an
RTMP
 end-point.
 Meaning you can't make a NetConnection and NetStream call to it, which
 also
 means you can't use attachMicrophone to send your audio to the server.
 
 In my opinion there are only three options when it comes to Flash
Media
 (camera  microphone) solutions:
 
 - Adobe Flash Media Server (
 http://www.adobe.com/products/flashmediaserver/) was Flash
 Communication
 Server
 - Wowza Media Server (http://wowzamedia.com)
 - Red5 ( http://osflash.org/red5)
 
 Cheers,
 Nate
 
 
 On Thu, Jan 15, 2009 at 10:35 AM, Sceneshift j...@sceneshift.com
mailto:jon%40sceneshift.com  wrote:
 

 Thanks for the replace Nate, I didn't consider Wowza but I'll
certainly
 check
 it out.

 Just wondering if you had any thoughts on BlazeDS?

 Nate Beck wrote:
 
  Red5 is a great open source project, and a great solution for your
 needs.
  However, if you want support on your project, I've found Red5 to be
a
  bit... lacking.
  If you have the funds... my recommendation would be to use Wowza
Media
  Server (http://www.wowzamedia.com/). A single license will run you
 around
  $1,000. Which in my experience is well worth it for the level of
 support
  you get on their forums.
 
  I recommend Wowza over Adobe FMS for two reasons.
 
  - You extend Wowza with Java... which makes life a lot easier
instead
  of
  using Server-Side Actionscript.
  - It's much less expensive.
 
  Cheers,
  Nate
 
 
  On Thu, Jan 15, 2009 at 2:05 AM, Sceneshift
 j...@sceneshift.com mailto:jon%40sceneshift.com
jon%40sceneshift.com
 wrote:
 
 
  Hey guys,
 
  I have a project coming up where I need to capture the Microphone
 input
  and
  then push it to a byteArray. I know this isn't possible without
first
  recording the input and analyzing it afterward, which is fine.
 
  I was wondering which is the best flash server to push and send
the
 data,
  I
  was thinking about using Red5 and sending back the data as a sound
 only
  FLV
  for analyzing, but perhaps Red5 would be a better solution?
 
  Can anyone offer me any recommendations or experiences as to which
 method
  they would employ?
  --
  View this message in context:
 

http://www.nabble.com/Microphone---BlazeDS-%28Red5-%29-tp21474622p214746
22.html
  Sent from the FlexCoders mailing list archive at Nabble.com.
 
 
 
 
 
 
  --
 
  Cheers,
  Nate
  
  http://blog.natebeck.net
 
 

 --
 View this message in context:

http://www.nabble.com/Microphone---BlazeDS-%28Red5-%29-tp21474622p214840
68.html
 Sent from the FlexCoders mailing list archive at Nabble.com.

 

 
 
 
 -- 
 
 Cheers,
 Nate
 
 http://blog.natebeck.net
 
 

-- 
View this message in context:
http://www.nabble.com/Microphone---BlazeDS-%28Red5-%29-tp21474622p214845
44.html
Sent from the FlexCoders mailing list archive at Nabble.com.

 



This message is private and confidential. If you have received it in error, 
please notify the sender and remove it from your system.

RE: [flexcoders] Microphone BlazeDS (Red5?)

2009-01-15 Thread Ryan Graham

I'm not sure when they added it, maybe as recent as version 3.4, but it
should support video streaming and recording.  The datasheet suggests
this as well:

 

Video Streaming

streaming flash video, video

broadcast, server initiated video,

video recording, video chat

 

Not sure if the process is the same with Red5, but wouldn't you just
record a video without a camera attached? Just attach the microphone, to
record an audio-only flv?

 

HTH,

Ryan

 

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of Nate Beck
Sent: Thursday, January 15, 2009 12:11 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Microphone  BlazeDS (Red5?)

 

WebORB is great, but it's not a media server. 

 

Also Jon, you can email me off list if you need any help with the
recording of microphone input.  There are a whole bunch of common
pitfalls you can run into.

On Thu, Jan 15, 2009 at 11:08 AM, Sceneshift j...@sceneshift.com wrote:


I use WebOrb currently for PHP remoting, I had no idea it supports RMTP?
Bare
in mind I want to record live microphone input, does WebOrb really
support
that?



Ryan Graham-3 wrote:
 
 
 Also, depending on what server technology you're comfortable
developing
 in, you may want to check out WebORB - the .Net version is free, and
 they also provide versions for Java, PHP, CF, and Rails. I've only
 played with it a little bit, but what I saw seemed pretty solid.
 
 
 
 HTH, 
 
 Ryan
 
 
 
 From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
[mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
] On
 Behalf Of Sceneshift
 Sent: Thursday, January 15, 2009 11:59 AM
 To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com 
 Subject: Re: [flexcoders] Microphone  BlazeDS (Red5?)
 
 
 
 
 Ah I see, in that case I shall scrub BlazeDS off my list!
 
 Even though Wowza is moderately priced in comparison to FMS, looks
like
 Red5
 is my only option within my budget. It's a shame there is barely any
 documentation online for this kind of thing!
 
 Thanks again Nate.
 
 Nate Beck wrote:
 
 I haven't used BlazeDS on anything other than some of my small pet
 projects.
 However, I'm pretty sure that BlazeDS (Data Service) doesn't have an
 RTMP
 end-point.
 Meaning you can't make a NetConnection and NetStream call to it,
which
 also
 means you can't use attachMicrophone to send your audio to the
server.
 
 In my opinion there are only three options when it comes to Flash
 Media
 (camera  microphone) solutions:
 
 - Adobe Flash Media Server (
 http://www.adobe.com/products/flashmediaserver/) was Flash
 Communication
 Server
 - Wowza Media Server (http://wowzamedia.com)
 - Red5 ( http://osflash.org/red5)
 
 Cheers,
 Nate
 
 
 On Thu, Jan 15, 2009 at 10:35 AM, Sceneshift j...@sceneshift.com
mailto:jon%40sceneshift.com 

 mailto:jon%40sceneshift.com mailto:jon%2540sceneshift.com  
wrote:
 

 Thanks for the replace Nate, I didn't consider Wowza but I'll
 certainly
 check
 it out.

 Just wondering if you had any thoughts on BlazeDS?

 Nate Beck wrote:
 
  Red5 is a great open source project, and a great solution for your
 needs.
  However, if you want support on your project, I've found Red5 to
be
 a
  bit... lacking.
  If you have the funds... my recommendation would be to use Wowza
 Media
  Server (http://www.wowzamedia.com/). A single license will run you
 around
  $1,000. Which in my experience is well worth it for the level of
 support
  you get on their forums.
 
  I recommend Wowza over Adobe FMS for two reasons.
 
  - You extend Wowza with Java... which makes life a lot easier
 instead
  of
  using Server-Side Actionscript.
  - It's much less expensive.
 
  Cheers,
  Nate
 
 
  On Thu, Jan 15, 2009 at 2:05 AM, Sceneshift

 j...@sceneshift.com mailto:jon%40sceneshift.com
mailto:jon%40sceneshift.com mailto:jon%2540sceneshift.com 


 jon%40sceneshift.com
 wrote:
 
 
  Hey guys,
 
  I have a project coming up where I need to capture the Microphone
 input
  and
  then push it to a byteArray. I know this isn't possible without
 first
  recording the input and analyzing it afterward, which is fine.
 
  I was wondering which is the best flash server to push and send
 the
 data,
  I
  was thinking about using Red5 and sending back the data as a
sound
 only
  FLV
  for analyzing, but perhaps Red5 would be a better solution?
 
  Can anyone offer me any recommendations or experiences as to
which
 method
  they would employ?
  --
  View this message in context:
 


http://www.nabble.com/Microphone---BlazeDS-%28Red5-%29-tp21474622p214746
 22.html
  Sent from the FlexCoders mailing list archive at Nabble.com.
 
 
 
 
 
 
  --
 
  Cheers,
  Nate
  
  http://blog.natebeck.net
 
 

 --
 View this message in context:


http://www.nabble.com/Microphone---BlazeDS-%28Red5-%29-tp21474622p214840

 68.html


 Sent from the FlexCoders mailing list archive at Nabble.com.

 

 
 
 
 -- 
 
 Cheers,
 Nate

RE: [flexcoders] Microphone BlazeDS (Red5?)

2009-01-15 Thread Ryan Graham

Oh, there it is... In the RTMP section in the datasheet, it says client
stream recording is supported in the .Net, Java, and CF versions of the
product.

 

www.themidnightcoders.com/fileadmin/downloads/WebORBDatasheet.pdf

 

HTH,

Ryan

 

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of Ryan Graham
Sent: Thursday, January 15, 2009 12:36 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Microphone  BlazeDS (Red5?)

 

I'm not sure when they added it, maybe as recent as version 3.4, but it
should support video streaming and recording.  The datasheet suggests
this as well:

 

Video Streaming

streaming flash video, video

broadcast, server initiated video,

video recording, video chat

 

Not sure if the process is the same with Red5, but wouldn't you just
record a video without a camera attached? Just attach the microphone, to
record an audio-only flv?

 

HTH,

Ryan

 

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of Nate Beck
Sent: Thursday, January 15, 2009 12:11 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Microphone  BlazeDS (Red5?)

 

WebORB is great, but it's not a media server. 

 

Also Jon, you can email me off list if you need any help with the
recording of microphone input.  There are a whole bunch of common
pitfalls you can run into.

On Thu, Jan 15, 2009 at 11:08 AM, Sceneshift j...@sceneshift.com wrote:


I use WebOrb currently for PHP remoting, I had no idea it supports RMTP?
Bare
in mind I want to record live microphone input, does WebOrb really
support
that?



Ryan Graham-3 wrote:
 
 
 Also, depending on what server technology you're comfortable
developing
 in, you may want to check out WebORB - the .Net version is free, and
 they also provide versions for Java, PHP, CF, and Rails. I've only
 played with it a little bit, but what I saw seemed pretty solid.
 
 
 
 HTH, 
 
 Ryan
 
 
 
 From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
[mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
] On
 Behalf Of Sceneshift
 Sent: Thursday, January 15, 2009 11:59 AM
 To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com 
 Subject: Re: [flexcoders] Microphone  BlazeDS (Red5?)
 
 
 
 
 Ah I see, in that case I shall scrub BlazeDS off my list!
 
 Even though Wowza is moderately priced in comparison to FMS, looks
like
 Red5
 is my only option within my budget. It's a shame there is barely any
 documentation online for this kind of thing!
 
 Thanks again Nate.
 
 Nate Beck wrote:
 
 I haven't used BlazeDS on anything other than some of my small pet
 projects.
 However, I'm pretty sure that BlazeDS (Data Service) doesn't have an
 RTMP
 end-point.
 Meaning you can't make a NetConnection and NetStream call to it,
which
 also
 means you can't use attachMicrophone to send your audio to the
server.
 
 In my opinion there are only three options when it comes to Flash
 Media
 (camera  microphone) solutions:
 
 - Adobe Flash Media Server (
 http://www.adobe.com/products/flashmediaserver/) was Flash
 Communication
 Server
 - Wowza Media Server (http://wowzamedia.com)
 - Red5 ( http://osflash.org/red5)
 
 Cheers,
 Nate
 
 
 On Thu, Jan 15, 2009 at 10:35 AM, Sceneshift j...@sceneshift.com
mailto:jon%40sceneshift.com 

 mailto:jon%40sceneshift.com mailto:jon%2540sceneshift.com  
wrote:
 

 Thanks for the replace Nate, I didn't consider Wowza but I'll
 certainly
 check
 it out.

 Just wondering if you had any thoughts on BlazeDS?

 Nate Beck wrote:
 
  Red5 is a great open source project, and a great solution for your
 needs.
  However, if you want support on your project, I've found Red5 to
be
 a
  bit... lacking.
  If you have the funds... my recommendation would be to use Wowza
 Media
  Server (http://www.wowzamedia.com/). A single license will run you
 around
  $1,000. Which in my experience is well worth it for the level of
 support
  you get on their forums.
 
  I recommend Wowza over Adobe FMS for two reasons.
 
  - You extend Wowza with Java... which makes life a lot easier
 instead
  of
  using Server-Side Actionscript.
  - It's much less expensive.
 
  Cheers,
  Nate
 
 
  On Thu, Jan 15, 2009 at 2:05 AM, Sceneshift

 j...@sceneshift.com mailto:jon%40sceneshift.com
mailto:jon%40sceneshift.com mailto:jon%2540sceneshift.com 


 jon%40sceneshift.com
 wrote:
 
 
  Hey guys,
 
  I have a project coming up where I need to capture the Microphone
 input
  and
  then push it to a byteArray. I know this isn't possible without
 first
  recording the input and analyzing it afterward, which is fine.
 
  I was wondering which is the best flash server to push and send
 the
 data,
  I
  was thinking about using Red5 and sending back the data as a
sound
 only
  FLV
  for analyzing, but perhaps Red5 would be a better solution?
 
  Can anyone offer me any recommendations or experiences as to
which
 method
  they would employ?
  --
  View this message in context:
 


http

RE: [flexcoders] Microphone BlazeDS (Red5?)

2009-01-15 Thread Ryan Graham

I'd be very interested to see that. Most of our projects are rooted in
FMS due to ease of setup, but that server-side actionscript has left me
scratching my head more than a few times. It would be nice to switch to
a free solution that can be coded in a language I'm more comfortable
with if the performance specs are up to par. J

 

Thanks,

Ryan

 

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of Nate Beck
Sent: Thursday, January 15, 2009 12:45 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Microphone  BlazeDS (Red5?)

 

Well I'll be darned, didn't know they added support for RTMP.  I just
recently met Mark Piller and the Midnight Coders guys at their booth at
MAX.  I'll have to try it out, and put it through it's paces. :D

 

I'm planning on testing all the different Media Servers and posting my
results on my blog (blog.natebeck.net). I'll respond to this thread when
I have posted my results.

 

Cheers,

Nate

 

On Thu, Jan 15, 2009 at 11:41 AM, Ryan Graham ryan.gra...@phoenix.edu
wrote:

Oh, there it is... In the RTMP section in the datasheet, it says client
stream recording is supported in the .Net, Java, and CF versions of the
product.

 

www.themidnightcoders.com/fileadmin/downloads/WebORBDatasheet.pdf

 

HTH,

Ryan

 

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of Ryan Graham
Sent: Thursday, January 15, 2009 12:36 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Microphone  BlazeDS (Red5?)

 

I'm not sure when they added it, maybe as recent as version 3.4, but it
should support video streaming and recording.  The datasheet suggests
this as well:

 

Video Streaming

streaming flash video, video

broadcast, server initiated video,

video recording, video chat

 

Not sure if the process is the same with Red5, but wouldn't you just
record a video without a camera attached? Just attach the microphone, to
record an audio-only flv?

 

HTH,

Ryan

 

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of Nate Beck
Sent: Thursday, January 15, 2009 12:11 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Microphone  BlazeDS (Red5?)

 

WebORB is great, but it's not a media server. 

 

Also Jon, you can email me off list if you need any help with the
recording of microphone input.  There are a whole bunch of common
pitfalls you can run into.

On Thu, Jan 15, 2009 at 11:08 AM, Sceneshift j...@sceneshift.com wrote:


I use WebOrb currently for PHP remoting, I had no idea it supports RMTP?
Bare
in mind I want to record live microphone input, does WebOrb really
support
that?



Ryan Graham-3 wrote:
 
 
 Also, depending on what server technology you're comfortable
developing
 in, you may want to check out WebORB - the .Net version is free, and
 they also provide versions for Java, PHP, CF, and Rails. I've only
 played with it a little bit, but what I saw seemed pretty solid.
 
 
 
 HTH, 
 
 Ryan
 
 
 
 From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
[mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
] On
 Behalf Of Sceneshift
 Sent: Thursday, January 15, 2009 11:59 AM
 To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com 
 Subject: Re: [flexcoders] Microphone  BlazeDS (Red5?)
 
 
 
 
 Ah I see, in that case I shall scrub BlazeDS off my list!
 
 Even though Wowza is moderately priced in comparison to FMS, looks
like
 Red5
 is my only option within my budget. It's a shame there is barely any
 documentation online for this kind of thing!
 
 Thanks again Nate.
 
 Nate Beck wrote:
 
 I haven't used BlazeDS on anything other than some of my small pet
 projects.
 However, I'm pretty sure that BlazeDS (Data Service) doesn't have an
 RTMP
 end-point.
 Meaning you can't make a NetConnection and NetStream call to it,
which
 also
 means you can't use attachMicrophone to send your audio to the
server.
 
 In my opinion there are only three options when it comes to Flash
 Media
 (camera  microphone) solutions:
 
 - Adobe Flash Media Server (
 http://www.adobe.com/products/flashmediaserver/) was Flash
 Communication
 Server
 - Wowza Media Server (http://wowzamedia.com)
 - Red5 ( http://osflash.org/red5)
 
 Cheers,
 Nate
 
 
 On Thu, Jan 15, 2009 at 10:35 AM, Sceneshift j...@sceneshift.com
mailto:jon%40sceneshift.com 

 mailto:jon%40sceneshift.com mailto:jon%2540sceneshift.com  
wrote:
 

 Thanks for the replace Nate, I didn't consider Wowza but I'll
 certainly
 check
 it out.

 Just wondering if you had any thoughts on BlazeDS?

 Nate Beck wrote:
 
  Red5 is a great open source project, and a great solution for your
 needs.
  However, if you want support on your project, I've found Red5 to
be
 a
  bit... lacking.
  If you have the funds... my recommendation would be to use Wowza
 Media
  Server (http://www.wowzamedia.com/). A single license will run you
 around
  $1,000. Which in my experience is well worth it for the level of
 support

RE: [flexcoders] Playing Mp4 audio with Sound class?

2009-01-15 Thread Ryan Graham

I believe that is the case. You can only use extract on mp3 files with
the Sound object and not on  streams with Netstream - unfortunately this
feature didn't make it into FP10 (hopefully FP11?). Depending on your
setup, one option might be to use a tool like ffmpeg to convert the mp4
to an mp3 server-side, and then load that into a Sound object to do the
extraction.

 

HTH,

Ryan

 

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of Charlie Hubbard
Sent: Thursday, January 15, 2009 1:14 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Playing Mp4 audio with Sound class?

 

So I'm trying to play Mp4 audio files with Sound, but it doesn't seem
to work. I have gotten it working with NetStream class, but I'd
really like to use the extract() method to get the underlying samples
form the mp4 files just as I can with mp3. Am I correct in that Sound
class doesn't support mp4, but only mp3?

What's the deal with that? Is Sound a wrapper around NetStream? If
so how could I get the samples?

Charlie

 



This message is private and confidential. If you have received it in error, 
please notify the sender and remove it from your system.

RE: [flexcoders] Re: Binding and the Model

2009-01-13 Thread Ryan Graham

You could take control of the situation by updating the summary property
inside the setter of each property that makes up the summary itself.
Forgive the quick code, but something along the lines of:

 

public function set repeat(value:int):void

{

_repeat = value;

generateSummary();

}

 

public function set repeat(value:int):void

{

_duration = value;

generateSummary();

}

 

 

private function generateSummary():void

{

var smry:String = ;

if (repeat)

smry += Repeat:  + _repeat.toString() + \n;

if (duration)

smry += Duration +
_duration.toString() + \n;

//etc for all properties to generate summary



//set the summary property to fire change event for
components that are bound to it

summary = smry;

}

 

HTH,

Ryan

 

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of stldvd
Sent: Tuesday, January 13, 2009 1:02 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Binding and the Model

 

I don't think there's an mx:string tag. But even if I do this:

mx:Text id=summary text=Start Time: {model.start}\nRepeat: 
{model.repeat} / etc. I don't think it will work. If there is no value
for model.repeat then 
I want to leave it out of the summary description. This means I need a
function which 
says, if (model.repeat) !=''
{
summary += Repeat:  + model.repeat;
}

If I create such a function, how would it automatically update? Even if
the bindings work, 
such that the values in the function are automatically updating
(model.whatever), how 
would I assure that the function itself is called each time there's a
change, so that the 
correct summary is returned to the Text control?

--- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
, Wesley Acheson wesley.ache...@... wrote:

 I think you can add something like.
 
 mx:string id=summary{model.duration + model.start}/mx:string
 
 Regards,
 
 Wesley
 
 On Tue, Jan 13, 2009 at 8:37 PM, stldvd stl...@... wrote:
 
  Hi guys,
 
  I'm trying to concatenate a series of string literals and bound
variables
  into a model
  variable called 'summary', which will be displayed in a 'summary'
textarea
  or text control.
 
  The variables come from various control settings -- numeric steppers
etc.
  I can bind the variables to UI controls, for example
  mx:NumericStepper id=durStep value={model.duration}
  change=model.duration =
  durStep.value/
  mx:NumericStepper id=startStep value={model.start}
  change=model.start = startStep.value/
 
  But I'm not sure how or where to create this concatenated summary
variable.
  I declare it in
  the model, but then where do I do the concatenating such that
binding will
  actually work?
  Each time the steppers and combo boxes values change, I need to have
the
  entire
  summary update.
 
  Ideally I just have a bindable variable in the model and then my
textarea
  looks like this: mx:Text id=ruleSummary text= {model.summary}
/
 
  Can someone help?
 
  Thanks,
 
  David
 
 
 
 
  
 
  --
  Flexcoders Mailing List
  FAQ:
http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
  Alternative FAQ location:
 
https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-
1e62079f6847
  Search Archives:
  http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo!
Groups
  Links
 
 
 
 


 



This message is private and confidential. If you have received it in error, 
please notify the sender and remove it from your system.

[flexcoders] Binding to a Vector object

2009-01-13 Thread Ryan Graham

Hi All,

 

I really like the thought of typed collections, but it looks like new
Vector class is dynamic, and descends directly from Object, so that
makes it useless for data binding, right?  Has anyone worked around this
by doing something like subclassing and implementing IEventDispatcher or
something similar?  Should I just forget about it and stick with
ICollectionView classes?

 

Thanks,

Ryan



This message is private and confidential. If you have received it in error, 
please notify the sender and remove it from your system.

RE: [flexcoders] Cairngorm ServiceLocator.getInstance(); compile error

2008-12-29 Thread Ryan Graham

getInstance() should be a static method, so you don't need to use new
when calling it:

 

private var __locator:ServiceLocator = ServiceLocator.getInstance();

 

HTH,

Ryan

 

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of jeremysavoy
Sent: Monday, December 29, 2008 10:39 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Cairngorm ServiceLocator.getInstance(); compile
error

 

In one delegate I have the following:

private var __locator:ServiceLocator = new ServiceLocator.getInstance();

And it compiles just fine, and in fact this delegate and remoteobject
service work as expected. I then add the same exact command to another
identical delegate (other than names, generated using Cairngen), using
the same import statement as below ...

import com.adobe.cairngorm.business.ServiceLocator;

But in the second delegate I get the following error...

1048: Method cannot be used as a constructor.

If I remove the .getInstance() from the __locator instantiation, I get
no error.

I can not find any references to such an error anywhere, any help
would be greatly appreciated.

 



This message is private and confidential. If you have received it in error, 
please notify the sender and remove it from your system.

[flexcoders] Application dependencies

2008-12-29 Thread Ryan Graham

Hi All,

 

I have an application I'm refactoring, and it looks like there are a ton
of classes that aren't being used. Does anyone have any tricks for
finding unused objects in the code base aside from cross-referencing the
dependencies list in the linking report that the compiler generates? Any
tips are much appreciated...

 

Thanks,

Ryan



This message is private and confidential. If you have received it in error, 
please notify the sender and remove it from your system.

RE: [flexcoders] clearing out mx:DateField

2008-12-09 Thread Ryan Graham

 effective.selectedDate = null;

 

This should clear it.  Perhaps the actionscript function containing this
code isn't getting called.

 

HTH,

Ryan

 

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Stephen More
Sent: Tuesday, December 09, 2008 12:18 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] clearing out mx:DateField

 

Within flex I have:
mx:DateField id=effective /

Once a user selects a date, I can not clear it out using actionscript.

I have tried:
effective.selectedDate = null;
effective.selectedDate = undefined;
neither one has worked.

How can one clear out the mx:DateField ?

-Thanks

 



This message is private and confidential. If you have received it in error, 
please notify the sender and remove it from your system.

RE: [flexcoders] getBitmapData from a scaled display object

2008-12-09 Thread Ryan Graham

You may have to play with some of the positioning, but use the second
parameter of the bitmapData.draw() function to pass in the object's
transform matrix as a start. This should get you closer...

 

bitmapdata.draw( displayObject2, displayObject2.transform.matrix );

 

HTH,

Ryan

 

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Kyle
Sent: Tuesday, December 09, 2008 12:21 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] getBitmapData from a scaled display object

 


I'm trying to figure out the easiest way to get bitmapdata from a
displayobject that has had its scalex/scaley altered. In the test
example I have listed below, I have a canvas container that has 3
children (swfLoader components). I set the scalex/scaley of the canvas
container to 2 and its' children are scaled up proportionally;
however, when I try to get bitmapdata from the canvas, it does not
recognize the scaled size of the canvas container and as such when I
create a new bitmap using the data it is still at the original size.
Any ideas on how I can get bitmapdata that will match the width/height
of the scaled canvas would be greatly appreciated!

?xml version=1.0 encoding=utf-8?
mx:Application xmlns:mx=http://www.adobe.com/2006/mxml;
layout=absolute creationComplete=createImage()

mx:Script
![CDATA[
import mx.controls.SWFLoader;
import mx.utils.ObjectUtil;
import mx.graphics.codec.PNGEncoder;

var displayObject2:Canvas;

private function createImage():void
{ 
displayObject2 = new Canvas();
displayObject2.setStyle(backgroundColor,0xc0c0c0);
displayObject2.width = myCanvas.width;
displayObject2.height = myCanvas.height;
for( var x=0; xmyCanvas.numChildren; x++ )
{
var curChild:SWFLoader = myCanvas.getChildAt( x ) as SWFLoader;
var newChild:SWFLoader = new SWFLoader();
newChild.source = curChild.source;
newChild.x = curChild.x;
newChild.y = curChild.y;

displayObject2.addChild( newChild );
}

displayObject2.scaleX = displayObject2.scaleY = 2;
displayObject2.y = 300;
addChild( displayObject2 );
}

private function scaleChild( e:Event ):void
{
e.target.width = e.target.contentWidth * 2;
e.target.height = e.target.contentHeight * 2;
}

private function createBitmap( e:Event ):void
{
var w = displayObject2.width;
var h = displayObject2.height;
var bitmapdata:BitmapData = new BitmapData( w, h, true, 0x00C0C0C0 );
bitmapdata.draw( displayObject2 );

var bytearray:ByteArray;
var encoder:PNGEncoder = new PNGEncoder();
bytearray = encoder.encode( bitmapdata );
myImage.source = bytearray;
}
]]
/mx:Script
mx:Canvas x=10 y=10 width=200 height=200
backgroundColor=#FF id=myCanvas
mx:SWFLoader x=10 y=30

mx:sourcehttp://media.dev.freakatars.com.s3.amazonaws.com/2/0/2d78ad53
630bb25563ab28da6c9a3968.swf/mx:source
/mx:SWFLoader
mx:SWFLoader x=60 y=53

mx:sourcehttp://media.dev.freakatars.com.s3.amazonaws.com/2/0/5a97b188
8731df7c766a4e274d766b20.swf/mx:source
/mx:SWFLoader
mx:SWFLoader x=122 y=76

mx:sourcehttp://media.dev.freakatars.com.s3.amazonaws.com/2/0/605299b9
2bc3993319ceb9490eb52b0f.swf/mx:source
/mx:SWFLoader
/mx:Canvas
mx:Button x=119 y=218 label=Create PNG
click=createBitmap(event);/
mx:Image x=460 y=10 id=myImage/
/mx:Application

 



This message is private and confidential. If you have received it in error, 
please notify the sender and remove it from your system.

RE: [flexcoders] Re: getBitmapData from a scaled display object

2008-12-09 Thread Ryan Graham

Oh, I see... This seems like a bit of a hack, and could probably be
coded a bit cleaner, but maybe do the drawing from a parent container
and just set a clipping rectangle equal to the location and size of the
scaled object? If it works, I'd be curious to know.  Here, the stage was
used:

 

bitmapdata.draw( Application.application.stage, null, null, null, new
Rectangle(displayObject2.x, displayObject2.y, displayObject2.width,
displayObject2.height));

 

HTH,

Ryan

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Kyle
Sent: Tuesday, December 09, 2008 2:18 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: getBitmapData from a scaled display object

 

Hey Ryan,

Thanks for the thought; however, this doesn't solve my problem. The
problem is this: The children of the canvas that I want to scale up
are all vector (swf files). If I use a matrix or any other method to
scale up the graphics after they are in raster format (bitmapdata)
then the quality will be decreased severely. So what I am trying to
accomplish is to scale up canvas container, and all of its' children,
prior to getting the bitmapdata. This way the resulting bitmap will
not be pixelated or otherwise lose quality. 

The issues that I am experiencing when using scalex/scaley on the
canvas container is that the scale of the container and its' children
is apparently ignored by getBitmapData as the resulting output is at
the original size of the canvas (prior to it being scaled up). The
example app that I pasted below should illustrate this issue.

Any other ideas appreciated.

Thanks!

-Kyle

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

 
 You may have to play with some of the positioning, but use the second
 parameter of the bitmapData.draw() function to pass in the object's
 transform matrix as a start. This should get you closer...
 
 
 
 bitmapdata.draw( displayObject2, displayObject2.transform.matrix );
 
 
 
 HTH,
 
 Ryan
 
 
 
 From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
[mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
] On
 Behalf Of Kyle
 Sent: Tuesday, December 09, 2008 12:21 PM
 To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com 
 Subject: [flexcoders] getBitmapData from a scaled display object
 
 
 
 
 I'm trying to figure out the easiest way to get bitmapdata from a
 displayobject that has had its scalex/scaley altered. In the test
 example I have listed below, I have a canvas container that has 3
 children (swfLoader components). I set the scalex/scaley of the canvas
 container to 2 and its' children are scaled up proportionally;
 however, when I try to get bitmapdata from the canvas, it does not
 recognize the scaled size of the canvas container and as such when I
 create a new bitmap using the data it is still at the original size.
 Any ideas on how I can get bitmapdata that will match the width/height
 of the scaled canvas would be greatly appreciated!
 
 ?xml version=1.0 encoding=utf-8?
 mx:Application xmlns:mx=http://www.adobe.com/2006/mxml;
 layout=absolute creationComplete=createImage()
 
 mx:Script
 ![CDATA[
 import mx.controls.SWFLoader;
 import mx.utils.ObjectUtil;
 import mx.graphics.codec.PNGEncoder;
 
 var displayObject2:Canvas;
 
 private function createImage():void
 { 
 displayObject2 = new Canvas();
 displayObject2.setStyle(backgroundColor,0xc0c0c0);
 displayObject2.width = myCanvas.width;
 displayObject2.height = myCanvas.height;
 for( var x=0; xmyCanvas.numChildren; x++ )
 {
 var curChild:SWFLoader = myCanvas.getChildAt( x ) as SWFLoader;
 var newChild:SWFLoader = new SWFLoader();
 newChild.source = curChild.source;
 newChild.x = curChild.x;
 newChild.y = curChild.y;
 
 displayObject2.addChild( newChild );
 }
 
 displayObject2.scaleX = displayObject2.scaleY = 2;
 displayObject2.y = 300;
 addChild( displayObject2 );
 }
 
 private function scaleChild( e:Event ):void
 {
 e.target.width = e.target.contentWidth * 2;
 e.target.height = e.target.contentHeight * 2;
 }
 
 private function createBitmap( e:Event ):void
 {
 var w = displayObject2.width;
 var h = displayObject2.height;
 var bitmapdata:BitmapData = new BitmapData( w, h, true, 0x00C0C0C0 );
 bitmapdata.draw( displayObject2 );
 
 var bytearray:ByteArray;
 var encoder:PNGEncoder = new PNGEncoder();
 bytearray = encoder.encode( bitmapdata );
 myImage.source = bytearray;
 }
 ]]
 /mx:Script
 mx:Canvas x=10 y=10 width=200 height=200
 backgroundColor=#FF id=myCanvas
 mx:SWFLoader x=10 y=30
 

mx:sourcehttp://media.dev.freakatars.com.s3.amazonaws.com/2/0/2d78ad53
 630bb25563ab28da6c9a3968.swf/mx:source
 /mx:SWFLoader
 mx:SWFLoader x=60 y=53
 

mx:sourcehttp://media.dev.freakatars.com.s3.amazonaws.com/2/0/5a97b188
 8731df7c766a4e274d766b20.swf/mx:source
 /mx:SWFLoader
 mx:SWFLoader x=122 y=76
 

mx:sourcehttp://media.dev.freakatars.com.s3.amazonaws.com/2/0/605299b9
 2bc3993319ceb9490eb52b0f.swf/mx:source

RE: [flexcoders] Re: getBitmapData from a scaled display object

2008-12-09 Thread Ryan Graham

That's weird - the code I posted below looks like it produced the 400 x
400 PNG at near identical quality to the original. In theory, drawing
the 400 x 400 pixel area of the stage that the child has been drawn at
should produce the correct result.  You sure you drew the
application.stage object, and didn't just re-reference the
displayObject2?  Not that you would, but I would like to see if this
technique actually works like it appears to over here. J

 

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Kyle
Sent: Tuesday, December 09, 2008 3:25 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: getBitmapData from a scaled display object

 

Hey Ryan,
That was a great idea, something I definately had not tried yet.
Unfortunately, referencing the child from a parent did not seem to
produce any better results. The issue still stands that the
getBitmapData method (as well as bitmapdata produced by using the
ImageSnapshot class) do not respect the current scale of the
displayobject. So even though the displayObject appears at 400x400 on
the stage (which is scaled up by 2 from 200x200 ), the bitmapdata
copies it at it's original size of 200x200. I just can't figure out
how to get it to respect the scaled size. I would think that there
would be some sort of apply method, but I haven't found anything
yet. THERE HAS TO BE AN ANSWER!!! haha.. Thanks again for the help!

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

 
 Oh, I see... This seems like a bit of a hack, and could probably be
 coded a bit cleaner, but maybe do the drawing from a parent container
 and just set a clipping rectangle equal to the location and size of
the
 scaled object? If it works, I'd be curious to know. Here, the stage
was
 used:
 
 
 
 bitmapdata.draw( Application.application.stage, null, null, null, new
 Rectangle(displayObject2.x, displayObject2.y, displayObject2.width,
 displayObject2.height));
 
 
 
 HTH,
 
 Ryan
 
 From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
[mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
] On
 Behalf Of Kyle
 Sent: Tuesday, December 09, 2008 2:18 PM
 To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com 
 Subject: [flexcoders] Re: getBitmapData from a scaled display object
 
 
 
 Hey Ryan,
 
 Thanks for the thought; however, this doesn't solve my problem. The
 problem is this: The children of the canvas that I want to scale up
 are all vector (swf files). If I use a matrix or any other method to
 scale up the graphics after they are in raster format (bitmapdata)
 then the quality will be decreased severely. So what I am trying to
 accomplish is to scale up canvas container, and all of its' children,
 prior to getting the bitmapdata. This way the resulting bitmap will
 not be pixelated or otherwise lose quality. 
 
 The issues that I am experiencing when using scalex/scaley on the
 canvas container is that the scale of the container and its' children
 is apparently ignored by getBitmapData as the resulting output is at
 the original size of the canvas (prior to it being scaled up). The
 example app that I pasted below should illustrate this issue.
 
 Any other ideas appreciated.
 
 Thanks!
 
 -Kyle
 
 --- In flexcoders@yahoogroups.com
mailto:flexcoders%40yahoogroups.com
mailto:flexcoders%40yahoogroups.com
 , Ryan Graham Ryan.Graham@ wrote:
 
  
  You may have to play with some of the positioning, but use the
second
  parameter of the bitmapData.draw() function to pass in the object's
  transform matrix as a start. This should get you closer...
  
  
  
  bitmapdata.draw( displayObject2, displayObject2.transform.matrix );
  
  
  
  HTH,
  
  Ryan
  
  
  
  From: flexcoders@yahoogroups.com
mailto:flexcoders%40yahoogroups.com
mailto:flexcoders%40yahoogroups.com
 [mailto:flexcoders@yahoogroups.com
mailto:flexcoders%40yahoogroups.com
mailto:flexcoders%40yahoogroups.com
 ] On
  Behalf Of Kyle
  Sent: Tuesday, December 09, 2008 12:21 PM
  To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
mailto:flexcoders%40yahoogroups.com 
  Subject: [flexcoders] getBitmapData from a scaled display object
  
  
  
  
  I'm trying to figure out the easiest way to get bitmapdata from a
  displayobject that has had its scalex/scaley altered. In the test
  example I have listed below, I have a canvas container that has 3
  children (swfLoader components). I set the scalex/scaley of the
canvas
  container to 2 and its' children are scaled up proportionally;
  however, when I try to get bitmapdata from the canvas, it does not
  recognize the scaled size of the canvas container and as such when I
  create a new bitmap using the data it is still at the original size.
  Any ideas on how I can get bitmapdata that will match the
width/height
  of the scaled canvas would be greatly appreciated!
  
  ?xml version=1.0 encoding=utf-8?
  mx:Application xmlns:mx=http://www.adobe.com

RE: [flexcoders] Re: getBitmapData from a scaled display object

2008-12-09 Thread Ryan Graham

Ah, good deal. Glad it worked out!

 

-Ryan

 

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Kyle
Sent: Tuesday, December 09, 2008 3:43 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: getBitmapData from a scaled display object

 

Ryan I could kiss you right now (thankfully for my sake of my
masculinity the internet will prevent this from happening)! I kep
thinking on what you posted about grabbing the data by referencing the
parent, and then it hit me.. I placed the entire canvas inside of
another container, then called getBitmapData on the parent container
and VOILA! 

THE ANSWER: It appears that in order to grab bitmapdata from a scaled
object and have the scaled size be respected, the object from which
you wish to get the bitmapdata must be the child of another container
object, and you must call getBitmapData on the parent (referencing the
parents width/height/etc in the getBitmapData method). 

Many Thanks!

-Kyle

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

 
 Oh, I see... This seems like a bit of a hack, and could probably be
 coded a bit cleaner, but maybe do the drawing from a parent container
 and just set a clipping rectangle equal to the location and size of
the
 scaled object? If it works, I'd be curious to know. Here, the stage
was
 used:
 
 
 
 bitmapdata.draw( Application.application.stage, null, null, null, new
 Rectangle(displayObject2.x, displayObject2.y, displayObject2.width,
 displayObject2.height));
 
 
 
 HTH,
 
 Ryan
 
 From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
[mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
] On
 Behalf Of Kyle
 Sent: Tuesday, December 09, 2008 2:18 PM
 To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com 
 Subject: [flexcoders] Re: getBitmapData from a scaled display object
 
 
 
 Hey Ryan,
 
 Thanks for the thought; however, this doesn't solve my problem. The
 problem is this: The children of the canvas that I want to scale up
 are all vector (swf files). If I use a matrix or any other method to
 scale up the graphics after they are in raster format (bitmapdata)
 then the quality will be decreased severely. So what I am trying to
 accomplish is to scale up canvas container, and all of its' children,
 prior to getting the bitmapdata. This way the resulting bitmap will
 not be pixelated or otherwise lose quality. 
 
 The issues that I am experiencing when using scalex/scaley on the
 canvas container is that the scale of the container and its' children
 is apparently ignored by getBitmapData as the resulting output is at
 the original size of the canvas (prior to it being scaled up). The
 example app that I pasted below should illustrate this issue.
 
 Any other ideas appreciated.
 
 Thanks!
 
 -Kyle
 
 --- In flexcoders@yahoogroups.com
mailto:flexcoders%40yahoogroups.com
mailto:flexcoders%40yahoogroups.com
 , Ryan Graham Ryan.Graham@ wrote:
 
  
  You may have to play with some of the positioning, but use the
second
  parameter of the bitmapData.draw() function to pass in the object's
  transform matrix as a start. This should get you closer...
  
  
  
  bitmapdata.draw( displayObject2, displayObject2.transform.matrix );
  
  
  
  HTH,
  
  Ryan
  
  
  
  From: flexcoders@yahoogroups.com
mailto:flexcoders%40yahoogroups.com
mailto:flexcoders%40yahoogroups.com
 [mailto:flexcoders@yahoogroups.com
mailto:flexcoders%40yahoogroups.com
mailto:flexcoders%40yahoogroups.com
 ] On
  Behalf Of Kyle
  Sent: Tuesday, December 09, 2008 12:21 PM
  To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
mailto:flexcoders%40yahoogroups.com 
  Subject: [flexcoders] getBitmapData from a scaled display object
  
  
  
  
  I'm trying to figure out the easiest way to get bitmapdata from a
  displayobject that has had its scalex/scaley altered. In the test
  example I have listed below, I have a canvas container that has 3
  children (swfLoader components). I set the scalex/scaley of the
canvas
  container to 2 and its' children are scaled up proportionally;
  however, when I try to get bitmapdata from the canvas, it does not
  recognize the scaled size of the canvas container and as such when I
  create a new bitmap using the data it is still at the original size.
  Any ideas on how I can get bitmapdata that will match the
width/height
  of the scaled canvas would be greatly appreciated!
  
  ?xml version=1.0 encoding=utf-8?
  mx:Application xmlns:mx=http://www.adobe.com/2006/mxml;
  layout=absolute creationComplete=createImage()
  
  mx:Script
  ![CDATA[
  import mx.controls.SWFLoader;
  import mx.utils.ObjectUtil;
  import mx.graphics.codec.PNGEncoder;
  
  var displayObject2:Canvas;
  
  private function createImage():void
  { 
  displayObject2 = new Canvas();
  displayObject2.setStyle(backgroundColor,0xc0c0c0);
  displayObject2.width = myCanvas.width;
  displayObject2.height = myCanvas.height

RE: [flexcoders] Tricky one...adding attachments to an email generated from the app

2008-12-04 Thread Ryan Graham

Perhaps you could gather the attachments in flex, add  a parameter to
your webservice for them, base64 encode them for transfer via that
parameter, then base64 decode them back to binary files on the server
when sending the email?  Note, base64 encoding binary data increases its
size roughly 30% for the transfer to the server. Not sure if bandwidth
is an issue in your scenario.

 

HTH,

Ryan

 

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Adrian Williams
Sent: Thursday, December 04, 2008 2:12 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Tricky one...adding attachments to an email
generated from the app

 

Hi guys,

And yet another one that I haven't seen...

Part of our app allows a user to send an email to one or more folks
in their view.  We simply provide a state that has a simple email form
they fill out and then we pass that information back through our web
service (.NET) that actually has the procedure to send the email.  

What I need to be able to do is allow the user to add attachments to
the email they want to send out.  Is there any way to do this and is
there a better method to the email solution?  We briefly toyed with the
idea of just creating the hyperlink to use their own email client, but a
user can literally send a bulk email to several thousand people and a
hyperlink would die a slow, miserable death trying to handle that.

Thanks!
Adrian

 



This message is private and confidential. If you have received it in error, 
please notify the sender and remove it from your system.

RE: [flexcoders] Re: How do they do that (Flex video)

2008-11-19 Thread Ryan Graham

I have to second that this seems like a niche usage.  Most SWFs provide
an interactive experience through the event model, and are not just
timeline animations designed to be played from start to finish with a
set duration. Such a tool would have to ignore the user interactions,
and on something like a flex app with a login (or any swf where a user
has to interact with the movie by clicking a button or other UI element
to continue), you would simply be left with an FLV of unknown length
playing a shot of the login form.  Best to leave these specialized tools
up to the individual developer or community at large to develop if the
need arises.

 

-Ryan

 

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Paul Andrews
Sent: Wednesday, November 19, 2008 1:22 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Re: How do they do that (Flex  video)

 

comfederation,

You have a niche usage of the tools and while we would all love Adobe to

provide a solution to your problem, few would regard it as essential.

Beating a drum about this particular feature omission is unlikely to
result 
in a mad clamour of support, as is dismissing respondents to the thread.

Paul

- Original Message - 
From: comfederation [EMAIL PROTECTED]
mailto:comfederation%40yahoo.com 
To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com 
Sent: Wednesday, November 19, 2008 5:22 AM
Subject: [flexcoders] Re: How do they do that (Flex  video)

 No it's not OK ;)

 When a company has different file formats then it's really sad and
 unfortunate to have to rely on third party tools for conversion
 between those formats - if for no other reason then integration and
 overall better experience.

 My laymen understanding is that FLV is a streamable video format and
 like you said SWF is like an exe. Well actually it's more like Java
 byte code in that it is a stream of byte code that is only
 understandable by the Flash Player.

 If you look back through some of the responses or maybe they are on my
 other post, you will see that at least one person on this forum has
 suggested using SnagIt or some other screen capturing tools. No,
 indeed it is not OK if folks who are evidently at least dabbling with
 Flex and there they are suggesting third party screen capture tools.

 Not only is it not OK but it is quite sad that Adobe, who is smack
 deep in this space, has left even one developer thinking of resorting
 to such band aids. I for one am disgusted by it and only because they
 know the best how to play a SWF file and how to capture the video
 stream that comes out of it.

 Enough said on my part.

 P.S. However, your reply is not only OK but it's also much appreciated
 as well.


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

 flex and video are different things...

 Flex can play video easily, the same applies to Silverlight.

 Silverlight is not video , it can play video...

 Trying to convert an swf to flv is similar to converting an exe to
flv

 ok?



 

 --
 Flexcoders Mailing List
 FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
 Alternative FAQ location: 

https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-
1e62079f6847
 Search Archives: 
 http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups 
 Links




 



This message is private and confidential. If you have received it in error, 
please notify the sender and remove it from your system.

RE: [flexcoders] Code completion and syntax colors not working

2008-11-19 Thread Ryan Graham

Did you switch to the Flex Development perspective? Eclipse may default
to the Java Development perspective.

 

HTH,

Ryan

 

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of gabriela.perry
Sent: Wednesday, November 19, 2008 2:38 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Code completion and syntax colors not working

 

Hi.
I had to switch from my Flex builder to Flex builder plugin. We're
using ganymede 3.4
I had no problem installing the plugin, but I cant get code completion
nor syntax colors nor anything 
No debug either...
It compiles fine...
I couldnt find anything about that on the web, so I suppose Im doing
something reaaly wrong :0(
Tanx
Gabi

 



This message is private and confidential. If you have received it in error, 
please notify the sender and remove it from your system.

RE: [flexcoders] Re: Regular Expressions?

2008-11-17 Thread Ryan Graham

I agree - XML is the way to go on this one... Perhaps something along
these lines is what you are looking for. Process each node you are
expecting in a switch - I externalized the parsing of the attributes
because they appeared to be the same across elements, but you could just
inline that for each loop in your switch to apply specific processing to
each type of node you are expecting.

 

var input:XML = rootname color=ff size=20 /address
color=ff size=16 //root;

for each (var node:XML in input.children())

{

  switch (node.localName())

  {

case name:

  trace(Some specific name processing);

  parseAttributes(node);

  break;

case address:

  trace(Some specific address processing);

  parseAttributes(node);

  break;

default:

  throw new Error(Unidentified element:  +
node.localName());

  }

}

 

private function parseAttributes(node:XML):void

  {

for each (var att:XML in node.attributes())

{

  trace(att.localName() + :  + att.valueOf());

}

  }

 

HTH,

Ryan

 

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Maciek Sakrejda
Sent: Monday, November 17, 2008 12:13 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Re: Regular Expressions?

 

As a String? You *should* be able to use the top-level XMLList()
function to turn it into an XMLList (note, untested; should be close):

var foo:String = name color=ff size=16 /address
color=00 size=20 align=left /phone ... etc /;
var fooList:XMLList = new XMLList(foo);

Then just iterate over it. I would investigate the XML/XMLList API docs,
because your data will be much easier to work with as XML (since it is
XML) than using regular expressions, especially in terms of maintenance
and robustness.

-- 
Maciek Sakrejda
Truviso, Inc.
http://www.truviso.com
-Original Message-
From: tchredeemed [EMAIL PROTECTED] mailto:apthorp%40liberty.edu 
Reply-To: flexcoders@yahoogroups.com
mailto:flexcoders%40yahoogroups.com 
To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com 
Subject: [flexcoders] Re: Regular Expressions?
Date: Mon, 17 Nov 2008 17:30:41 -

one problem:

It comes back like this:

name color=ff size=16 /address color=00 size=20
align=left /phone ... etc /

So, how would I separate them by the node that I am currently working
with?

 



This message is private and confidential. If you have received it in error, 
please notify the sender and remove it from your system.

RE: [flexcoders] mxml implements actionscript interface

2008-11-07 Thread Ryan Graham

Sure... you can use the implements property on the root tag of your
component:
 
mx:Canvas implements=someInterface
...
 
HTH,
Ryan
 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Romain de Wolff
Sent: Friday, November 07, 2008 2:30 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] mxml implements actionscript interface



Hello all,

Is there a way to implement an interface within an MXML file?

Thanks for any info!


 


This message is private and confidential. If you have received it in error, 
please notify the sender and remove it from your system.

RE: [flexcoders] Having trouble with XMLList

2008-11-07 Thread Ryan Graham

//In my script block
var comboProvider:XMLList = incomingXML..MGGenre;

Where in your script block? This looks like it is executing in your
result handler function, but since you are instantiating the
comboProvider inside this function, it only has a local scope to the
function. In order for the genreBox to see it, it should be a public var
in your script block.
 
HTH,
Ryan
 


From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of jeremy.carter_mg
Sent: Friday, November 07, 2008 2:31 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Having trouble with XMLList



I am calling a webservice with Flex3.0, the result format is 
specified as e4x.

the event.result shows up as a XMLList when I try and debugg the app.
Beyond this I am having a hell of a time parsing this thing. Anyone 
have some insite?

How would I set the dataprovider to these results for a combobox and 
have the labelField = MGGenre.Name and the value = MGGenre.GenreID

Iv'e tried:
//In my script block
var comboProvider:XMLList = incomingXML..MGGenre;

//In MXML
mx:ComboBox id=genreBox dataProvider={comboProvider} 
labelField=Name/

//Then to use the selected value
value = XML(genreBox.selectedItem).GenreID;

But I get the error:
1120: Access of undefined property comboProvider

I can't figure out what I'm doing wrong, please help...
Here is a sample of my data:
GetAudioGenresResponse 
xmlns=http://MyWebSite.com/Webservices/Serrano2
http://MyWebSite.com/Webservices/Serrano2  
xmlns:soap=http://schemas.xmlsoap.org/soap/envelope/
http://schemas.xmlsoap.org/soap/envelope/  
xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance
http://www.w3.org/2001/XMLSchema-instance  
xmlns:xsd=http://www.w3.org/2001/XMLSchema
http://www.w3.org/2001/XMLSchema 
GetAudioGenresResult
MGGenre
GenreID7/GenreID
NameBLUES/Name
Preferredtrue/Preferred
Styles
MGStyle
GenreID7/GenreID
NameACOUSTIC BLUES/Name
Preferredtrue/Preferred
StyleID120/StyleID
/MGStyle
MGStyle
GenreID7/GenreID
NameBRITISH BLUES/Name
Preferredtrue/Preferred
StyleID121/StyleID
/MGStyle
/Styles
/MGGenre
MGGenre
GenreID12/GenreID
NameCHILDREN'S/Name
Preferredtrue/Preferred
Styles
MGStyle
GenreID12/GenreID
NameCHILDREN'S FOLK/Name
Preferredtrue/Preferred
StyleID202/StyleID
/MGStyle
MGStyle
GenreID12/GenreID
NameEDUCATIONAL/Name
Preferredtrue/Preferred
StyleID203/StyleID
/MGStyle
MGStyle
GenreID12/GenreID
NameFAIRY TALES/Name
Preferredtrue/Preferred
StyleID204/StyleID
/MGStyle
/Styles
/MGGenre
/GetAudioGenresResult
ResultCodeSuccess/ResultCode
/GetAudioGenresResponse



 


This message is private and confidential. If you have received it in error, 
please notify the sender and remove it from your system.

RE: [flexcoders] Re: Get id of dynamic validator

2008-11-06 Thread Ryan Graham

Another almost identical option to Fotis' is the Dictionary object. I
like that it uses object references for look-up. A great way to manage
run-time generated components...
 
//true parameter is to use weak references in the dictionary, so you
can throw objects away and still have them eligible for GC
var globalValidators:Dictionary = new Dictionary(true);
 
//when creating the validator, add it to the dictionary, with the form
item as its key
//note validateString is the name of your validator instance here
globalValidators[formItem[o]] = validateString;
 
//when you need to find formItem[o]'s validator again, for example in
your UpdateItem FOCUS_OUT handler from your earlier code:
 
private function UpdateItem(event:FocusEvent):void
{
//get validator reference
var sv:StringValidator = globalValidators[event.target] as
StringValidator;
...
}
 
HTH,
Ryan



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of timgerr
Sent: Thursday, November 06, 2008 8:44 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Get id of dynamic validator



No I am again lost. Sorry for the confusion, but I might need a code
example,
globalValidators[validatorID_ + formItem[0].id] = validateString ;
What is an example of validateString . 

Thanks for the help, I am trying to learn a more advanced way to doing
things. 

Thanks again,
timgerr

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

 Hi timgerr,
 
 try the following:
 
 var globalValidators:Object = new Object() ;
 
 inside the dynamically validators function do the following:
 
 globalValidators[validatorID_ + formItem[0].id] = validateString ;
 
 now when you need the validator (and you know the component (and its
id) you
 can get the validator:
 
 StringValidator sv = globalValidators[validatorID_ +
knownFormItem.id] as
 StringValidator
 
 
 On Thu, Nov 6, 2008 at 6:38 AM, timgerr [EMAIL PROTECTED] wrote:
 
  Not sure how to do that. If the validators are created dynamically:
 
  var c:UIComponent = formItem[0];
  c.addEventListener(FocusEvent.FOCUS_OUT,UpdateItem);
  var validateString:StringValidator = new
  StringValidator();
  validateString.source = c;
  validateString.property = text;
  validateString.required = formItem[0].parent.required;
  validateString.maxLength = formItem[0].maxChars - 10;
 
  How do I make an an associative array? Not sure what the id of the
  validator is.
 
  Thanks for the help,
  timgerr
 
  FYI, c is a UIComponent
 
 
  --- In flexcoders@yahoogroups.com
mailto:flexcoders%40yahoogroups.com  flexcoders%40yahoogroups.com,
Tracy
  Spratt tspratt@ wrote:
  
   Perhaps create an associative array of references to the
validators?
  
   Tracy
  
  
  
   
  
   From: flexcoders@yahoogroups.com
mailto:flexcoders%40yahoogroups.com  flexcoders%40yahoogroups.com
[mailto:
  flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
flexcoders%40yahoogroups.com] On
   Behalf Of timgerr
   Sent: Wednesday, November 05, 2008 7:12 PM
   To: flexcoders@yahoogroups.com
mailto:flexcoders%40yahoogroups.com  flexcoders%40yahoogroups.com
   Subject: [flexcoders] Get id of dynamic validator
  
  
  
   Hello, I have this form and I am createin dynamic validators for
each
   textinput. I cannot see how to get the validators id when I try
and
   validate the textinput boxes, here is my code:
   mx:Form width=370 id=userInfoForm
   mx:FormItem label=First Name required=true
   id=fname_25_string
   mx:TextInput id=firstName toolTip=First Name: Max Length 25
   Characters
   maxChars=35 text=James/
   /mx:FormItem
   mx:FormItem label=Last Name required=true
id=lname_25_string
   mx:TextInput id=lastName toolTip=Last Name: Max Length 25
   Characters
   maxChars=35/
   /mx:FormItem
   mx:FormItem label=Email required=true id=Email__
   mx:TextInput id=email editable=false toolTip=Cannot edit
   this field/
   /mx:FormItem
   mx:FormItem label=Title id=tit_25_string
   mx:TextInput id=title maxChars=35 toolTip=Title: Max
   Length 25 Characters/
   /mx:FormItem
   /mx:Form
  
   So I do a creationcomplete to run a function to get a list of
all the
   textboxes:
   private function GetChild(item:Object):void
   {
   var formItems:Array = item.getChildren();
   // loop items and add values
   for (var i:int = 0; i  formItems.length; i++)
   {
   // formItem
   var formItem:Array = formItems[i].getChildren();
   var c:UIComponent = formItem[0];
   if(c.className.toString() == 'TextInput'){
   var rtnID:String = c.id;
   formItem[0].text = _performaReturnUsersData[rtnID];
   /* adding an eventlistener (focuseEvent) to all textinput
   */
   c.addEventListener(FocusEvent.FOCUS_OUT,UpdateItem);
   var validateString:StringValidator = new
   StringValidator();
   validateString.source = c;
   validateString.property = text;
   validateString.required = formItem[0].parent.required;
   

RE: [flexcoders] Re: IFrame: open new browser window from

2008-11-06 Thread Ryan Graham

Whenever I've worked with mixing content like this, I find it helpful to
point my Flex Builder project properties to put the output in a folder
that is actually served by a local instance of a server. That way during
debugging, you can get the page exactly as it would behave when in a
similar production environment.
 
Check out Project  Properties  Flex Build Path.  You'll see a few
options at the bottom of which 2 are important:
 
Output folder - set this to the path of the folder that your local
server is serving it's content from, e.g. in IIS something like
[Root]:\inetpup\wwwroot\someappname
Output folder URL - set this to the URL of the application on your
server, e.g. http://localhost/someappname http://localhost/someappname

 
When you debug from flex builder, it will place the build output in that
first folder path, then when the browser launches it will actually serve
the build contents from the local server, and not the file system.
 
HTH,
Ryan



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of markgoldin_2000
Sent: Thursday, November 06, 2008 12:00 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: IFrame: open new browser window from



Well, I have run it in different browsers. Same.
But just now I have published it to a web site and it is actually 
working. Having it not working from the Builder is not a big of a 
deal. I should have removed my cry baby message :)

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

 On Wednesday 05 Nov 2008, markgoldin_2000 wrote:
  Can someone help, please?
 
 What debugging have you done so far ?
 
 -- 
 Tom Chiverton
 Helping to advantageously orchestrate customized fine-grained 
corporate 
 networks
 
 
 
 
 
 This email is sent for and on behalf of Halliwells LLP.
 
 Halliwells LLP is a limited liability partnership registered in 
England and Wales under registered number OC307980 whose registered 
office address is at Halliwells LLP, 3 Hardman Square, 
Spinningfields, Manchester, M3 3EB. A list of members is available 
for inspection at the registered office. Any reference to a partner 
in relation to Halliwells LLP means a member of Halliwells LLP. 
Regulated by The Solicitors Regulation Authority.
 
 CONFIDENTIALITY
 
 This email is intended only for the use of the addressee named 
above and may be confidential or legally privileged. If you are not 
the addressee you must not read it and must not use any information 
contained in nor copy it nor inform any person other than Halliwells 
LLP or the addressee of its existence or contents. If you have 
received this email in error please delete it and notify Halliwells 
LLP IT Department on 0870 365 2500.
 
 For more information about Halliwells LLP visit www.halliwells.com.




 


This message is private and confidential. If you have received it in error, 
please notify the sender and remove it from your system.

RE: [flexcoders] E4X equivalent to SQL where 'like %' expression ?

2008-11-06 Thread Ryan Graham

The child nodes can be accessed like properties. For a starts-with
effect, you would use a similar expression that compares the what you
want to search for with the equivalent substring of the name nodes in
that list. You can get more complex and robust searches using string
functions like toLowerCase or RegExps, but this will return the 2 emp
nodes for Johnson and Jones given your input list:
 
var input:String = Jo;
trace(emplist.(name.substring(0, input.length) == input));
 
HTH,
Ryan



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of pbrendanc
Sent: Thursday, November 06, 2008 12:03 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] E4X equivalent to SQL where 'like %' expression ?



I'd like to extract the list of emps from the following XML where name
starts with 'Jo' (returns Jones, Johnson). In SQL I can use the
expression 'where name like 'Jo%'.

Anyone have examples of how this be done via an E4X expression 
(I could not find any examples of this in the docs).

TIA,
Patrick

mx:XMLList id=emplist
emp
id1/id
nameSmith/name
mrn1000/mrn
dob1/1/1964/dob
/emp
emp
id2/id
nameJones/name
mrn1001/mrn
dob11/11/1951/dob
/emp
emp
id3/id
nameJohnson/name
mrn1003/mrn
dob3/3/1953/dob
/emp
/mx:XMLList



 


This message is private and confidential. If you have received it in error, 
please notify the sender and remove it from your system.

RE: [flexcoders] E4X equivalent to SQL where 'like %' expression ?

2008-11-06 Thread Ryan Graham

Haha, looking at that, a more intuitive option would probably use the
indexOf() function instead of substring, that way 
 
indexOf(input) == 0; //starts-with behavior
indexOf(input)  -1; //contains behavior
 
HTH,
Ryan



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Ryan Graham
Sent: Thursday, November 06, 2008 3:00 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] E4X equivalent to SQL where 'like %'
expression ?



The child nodes can be accessed like properties. For a starts-with
effect, you would use a similar expression that compares the what you
want to search for with the equivalent substring of the name nodes in
that list. You can get more complex and robust searches using string
functions like toLowerCase or RegExps, but this will return the 2 emp
nodes for Johnson and Jones given your input list:
 
var input:String = Jo;
trace(emplist.(name.substring(0, input.length) == input));
 
HTH,
Ryan



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of pbrendanc
Sent: Thursday, November 06, 2008 12:03 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] E4X equivalent to SQL where 'like %' expression ?



I'd like to extract the list of emps from the following XML where name
starts with 'Jo' (returns Jones, Johnson). In SQL I can use the
expression 'where name like 'Jo%'.

Anyone have examples of how this be done via an E4X expression 
(I could not find any examples of this in the docs).

TIA,
Patrick

mx:XMLList id=emplist
emp
id1/id
nameSmith/name
mrn1000/mrn
dob1/1/1964/dob
/emp
emp
id2/id
nameJones/name
mrn1001/mrn
dob11/11/1951/dob
/emp
emp
id3/id
nameJohnson/name
mrn1003/mrn
dob3/3/1953/dob
/emp
/mx:XMLList



This message is private and confidential. If you have received it in
error, please notify the sender and remove it from your system.


 


This message is private and confidential. If you have received it in error, 
please notify the sender and remove it from your system.

RE: [flexcoders] E4X equivalent to SQL where 'like %' expression ?

2008-11-06 Thread Ryan Graham

Ah, like a true lambda expression -- good tip!



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Tracy Spratt
Sent: Thursday, November 06, 2008 3:46 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] E4X equivalent to SQL where 'like %'
expression ?



If you need complex calculations within an e4x expression, you can call
out to a function of your own.  The () just requires a boolean value, so
you can do something like below, where I wanted to a bit of string
manipulation within the expression:

xlFilteredItems =
_xmlData..item.(itemContains(attribute(item),sFilterString))

and the function:

  private function itemContains(sItem:String, sMatch:String):Boolean  {

sItem = sItem.toLowerCase();

sMatch = sMatch.toLowerCase();

return (sItem.indexOf(sMatch) != -1);

  }//itemContains

Obviously you can do just about anything inside such a function
including traversing the xml, and looping etc.

Tracy



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Ryan Graham
Sent: Thursday, November 06, 2008 5:07 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] E4X equivalent to SQL where 'like %'
expression ?

Haha, looking at that, a more intuitive option would probably use the
indexOf() function instead of substring, that way 

indexOf(input) == 0; //starts-with behavior

indexOf(input)  -1; //contains behavior

HTH,

Ryan



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Ryan Graham
Sent: Thursday, November 06, 2008 3:00 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] E4X equivalent to SQL where 'like %'
expression ?

The child nodes can be accessed like properties. For a starts-with
effect, you would use a similar expression that compares the what you
want to search for with the equivalent substring of the name nodes in
that list. You can get more complex and robust searches using string
functions like toLowerCase or RegExps, but this will return the 2 emp
nodes for Johnson and Jones given your input list:

var input:String = Jo;
trace(emplist.(name.substring(0, input.length) == input));

HTH,

Ryan



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of pbrendanc
Sent: Thursday, November 06, 2008 12:03 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] E4X equivalent to SQL where 'like %' expression ?

I'd like to extract the list of emps from the following XML where name
starts with 'Jo' (returns Jones, Johnson). In SQL I can use the
expression 'where name like 'Jo%'.

Anyone have examples of how this be done via an E4X expression 
(I could not find any examples of this in the docs).

TIA,
Patrick

mx:XMLList id=emplist
emp
id1/id
nameSmith/name
mrn1000/mrn
dob1/1/1964/dob
/emp
emp
id2/id
nameJones/name
mrn1001/mrn
dob11/11/1951/dob
/emp
emp
id3/id
nameJohnson/name
mrn1003/mrn
dob3/3/1953/dob
/emp
/mx:XMLList

This message is private and confidential. If you have received it in
error, please notify the sender and remove it from your system.

This message is private and confidential. If you have received it in
error, please notify the sender and remove it from your system.

 


This message is private and confidential. If you have received it in error, 
please notify the sender and remove it from your system.

RE: [flexcoders] E4X equivalent to SQL where 'like %' expression ?

2008-11-06 Thread Ryan Graham

That would be a great feature. Maybe in FB4? The addition of typed
collections through Vectors seems like it would allow this as well as:

*   
 the ability to have some good type code hinting while writing
loops that iterate Vectors
*   
standard aggregate functions like sum, group, etc through an
interface named something like IEnumerable

Wait a minute, this is starting to sound a little too much like C#. :)
Would still be some awesome features though! I'm all for it.



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Josh McDonald
Sent: Thursday, November 06, 2008 3:46 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] E4X equivalent to SQL where 'like %'
expression ?



It's a great syntax. The real question now becomes: When are we going
to get to run .() on Array, Proxy, and IList?



On Fri, Nov 7, 2008 at 8:32 AM, Ryan Graham [EMAIL PROTECTED]
mailto:[EMAIL PROTECTED]  wrote:


Ah, like a true lambda expression -- good tip!



From: flexcoders@yahoogroups.com
mailto:flexcoders@yahoogroups.com  [mailto:flexcoders@yahoogroups.com
mailto:flexcoders@yahoogroups.com ] On Behalf Of Tracy Spratt
Sent: Thursday, November 06, 2008 3:46 PM 

To: flexcoders@yahoogroups.com
mailto:flexcoders@yahoogroups.com 
Subject: RE: [flexcoders] E4X equivalent to SQL where 'like %'
expression ?





If you need complex calculations within an e4x expression, you
can call out to a function of your own.  The () just requires a boolean
value, so you can do something like below, where I wanted to a bit of
string manipulation within the expression:



xlFilteredItems =
_xmlData..item.(itemContains(attribute(item),sFilterString))



and the function:



  private function itemContains(sItem:String,
sMatch:String):Boolean  {

sItem = sItem.toLowerCase();

sMatch = sMatch.toLowerCase();

return (sItem.indexOf(sMatch) != -1);

  }//itemContains



Obviously you can do just about anything inside such a function
including traversing the xml, and looping etc.

Tracy





From: flexcoders@yahoogroups.com
mailto:flexcoders@yahoogroups.com  [mailto:flexcoders@yahoogroups.com
mailto:flexcoders@yahoogroups.com ] On Behalf Of Ryan Graham
Sent: Thursday, November 06, 2008 5:07 PM
To: flexcoders@yahoogroups.com
mailto:flexcoders@yahoogroups.com 
Subject: RE: [flexcoders] E4X equivalent to SQL where 'like %'
expression ?



Haha, looking at that, a more intuitive option would probably
use the indexOf() function instead of substring, that way 



indexOf(input) == 0; //starts-with behavior

indexOf(input)  -1; //contains behavior



HTH,

Ryan







From: flexcoders@yahoogroups.com
mailto:flexcoders@yahoogroups.com  [mailto:flexcoders@yahoogroups.com
mailto:flexcoders@yahoogroups.com ] On Behalf Of Ryan Graham
Sent: Thursday, November 06, 2008 3:00 PM
To: flexcoders@yahoogroups.com
mailto:flexcoders@yahoogroups.com 
Subject: RE: [flexcoders] E4X equivalent to SQL where 'like %'
expression ?

The child nodes can be accessed like properties. For a
starts-with effect, you would use a similar expression that compares the
what you want to search for with the equivalent substring of the name
nodes in that list. You can get more complex and robust searches using
string functions like toLowerCase or RegExps, but this will return the 2
emp nodes for Johnson and Jones given your input list:



var input:String = Jo;
trace(emplist.(name.substring(0, input.length) == input));



HTH,

Ryan







From: flexcoders@yahoogroups.com
mailto:flexcoders@yahoogroups.com  [mailto:flexcoders@yahoogroups.com
mailto:flexcoders@yahoogroups.com ] On Behalf Of pbrendanc
Sent: Thursday, November 06, 2008 12:03 PM
To: flexcoders@yahoogroups.com
mailto:flexcoders@yahoogroups.com 
Subject: [flexcoders] E4X equivalent to SQL where 'like %'
expression ?

I'd like to extract the list of emps from the following XML
where name
starts with 'Jo' (returns Jones, Johnson). In SQL I can use the
expression 'where name like 'Jo%'.

Anyone have examples of how this be done via an E4X expression 
(I could not find any examples of this in the docs).

TIA,
Patrick

mx:XMLList id=emplist
emp
id1/id
nameSmith/name
mrn1000/mrn
dob1/1/1964/dob
/emp
emp
id2/id
nameJones/name
mrn1001/mrn

RE: [flexcoders] Re: HistoryManager

2008-11-05 Thread Ryan Graham

With modules you can usually avoid headaches related to any of the
manager components by importing and creating a var to each in your main
Application file. This should appease the compiler while linking
everything up.
 
e.g.
import mx.managers.DragManager;
import mx.managers.HistoryManager;
private var _dm:DragManager;
private var _hm:HistoryManager;

 
HTH,
Ryan



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of tchredeemed
Sent: Wednesday, November 05, 2008 1:51 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: HistoryManager



2 Things.

1 - I misspelled weird!

2 - I use a ViewStack in one of my modules, and it only happens when I
navigate away from said module to a new module!

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

 Type Coercion failed: cannot convert mx.managers::History Manager
 [EMAIL PROTECTED] to mx.managers.IHistoryManager.
 
 what would be causing this error?
 
 I am not explicitly referencing the HistoryManager in my app at all...
 
 wierd! :)




 


This message is private and confidential. If you have received it in error, 
please notify the sender and remove it from your system.

RE: [flexcoders] Please explain the Tree to me!!!!! Before I die waiting!

2008-10-29 Thread Ryan Graham

Instead of going through the index, you could iterate the selectedItems
and use e4x syntax to get the attribute you're looking for. selectedItem
and selectedItems are a direct link to the object in the dataprovider,
in this case XML objects:
 
private function onItemClick(event:ListEvent):void
  {
trace(**);
for each (var item in tree1.selectedItems)
{
  trace([EMAIL PROTECTED] mailto:[EMAIL PROTECTED] );
}
  }
 
For your sample XMLListCollection, selecting a single item (in this
example the 1st) will yield:
 
**
1
 
And selecting all will yield:
 
**
76
3
1
 
HTH,
Ryan



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of digital_eyezed
Sent: Wednesday, October 29, 2008 8:42 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Please explain the Tree to me! Before I die
waiting!



Hi,

I have a tree filled with an XMLListCollection, all nodes are named
node.

The structure is like this:

node locationid='1'
node locationid='3'
node locationid='76'/
/node
/node

but on a much greater scale.

Now I have set the Tree component to allowMultipleSelection=true so
that the user can select multiple nodes, that works no problem. I have
also set an itemClick function to trigger when the user selects the
item or items. By doing this I can work out if one item is selected
or multiple:

if(Tree(event.target).selectedItem){
dosomethingforoneselection; //this works ok
}else if(Tree(event.target).selectedIndicies){
for(var i:int = 0;iTree(event.target).selectedIndicies.length;i++){
var h:int = int(Tree(event.target).selectedIndicies[i];
}
}

Ok, now I have the index of each item selected on the Tree, so how do
I get the locationid from the index?

Completely mind boggled!

Thanks ever so much if you can help!

Kind Regards,

Iain



 


This message is private and confidential. If you have received it in error, 
please notify the sender and remove it from your system.

RE: [flexcoders] File name issue (php created file)

2008-10-29 Thread Ryan Graham

I'm not too familiar with the php side of things, but this seems like a URI 
encoding issue. Any special characters should be encoded to be used in a 
URLRequest, for example:
 
unencoded: particularização.xml
 
encoded: particulariza%C3%A7%C3%A3o.xml
 
Flex provides encodeURI() and decodeURI() top level functions for this, and php 
should have similar.
 
HTH,
Ryan
 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of 
gabriela.perry
Sent: Wednesday, October 29, 2008 10:47 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] File name issue (php created file)



Hi.
Probably this is not a Flex problem, but, if someone can point me to a
link, a hint, anything... I allready wasted my day on this.

I'm loading xmls file using URLLoader. These files are created and
edited on Flex, and saved on the server by a php script.
If the file has no special caracters on its name, then it's ok.
But if I save the file as particularização.xml, then it doesnt loads
anymore.

I tried utf8_decode / utf8_encode on the php script, but it didnt work...

Tanx in advance for any tip :0)
gabi 



 


This message is private and confidential. If you have received it in error, 
please notify the sender and remove it from your system.

RE: [flexcoders] Binding textinput width to datagrid column width?

2008-10-29 Thread Ryan Graham

You could manually update the TextInput fields' widths by capturing the
columnStretch event. The initial binding in this example was used to
match the textinputs' widths when the app first fires up -- these could
also be set on creationComplete to avoid this binding:
 
mx:DataGrid columnStretch=onColumnStretch(event)
mx:columns
  mx:DataGridColumn id=dgc1/
  mx:DataGridColumn id=dgc2/
/mx:columns
  /mx:DataGrid
  mx:HBox id=hb1 horizontalGap=1
mx:TextInput width={dgc1.width}/
mx:TextInput width={dgc2.width}/
  /mx:HBox
 
--
 
//Stretch handler
 
private function onColumnStretch(event:DataGridEvent):void
  {
for (var i:int = 0; i  DataGrid(event.target).columnCount; i++)
{
  hb1.getChildAt(i).width =
DataGrid(event.target).columns[i].width;
}
  }
 
HTH,
Ryan
 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of biosmonkey
Sent: Wednesday, October 29, 2008 8:54 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Binding textinput width to datagrid column width?



I must be doing something dumb, but I can't understand why this isn't
working.

I have a datagrid with say, 2 columns. Under the datagrid, I have two
text input controls next to each other in an hbox.

I want the text input controls to match the width of the datagrid
columns directly above them. This means when the datagrid is drawn and
the column widths determined, the textinput controls should resize
themselves to match. This also should occur if the user resizes the
columns manually.

So, I assigned IDs to the datagridcolumn objects, and tried to bind
the width of the text input controls to them.

So first I tried
mx:TextInput width={colName.width}

and this didn't work.

So then I tried a bindproperty:

BindingUtils.bindProperty(txtiName,width,colName ,width);

and this didn't work either.

So then I used a bindsetter just for the purpose of setting a
breakpoint in the function to see if it was firing. It fires only on
init, and not when the columns are resized.

What am I doing wrong?



 


This message is private and confidential. If you have received it in error, 
please notify the sender and remove it from your system.

RE: [flexcoders] Invalid Embed directive

2008-10-29 Thread Ryan Graham

The compiler expects that image path to be in one of your project source
folders during build. If that path exists in your bin folder only, the
compiler will never see it for an embed operation.
 
HTH,
Ryan



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Jim Hayes
Sent: Wednesday, October 29, 2008 1:20 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Invalid Embed directive




It can be confusing as to where the file thinks it is at compile time -
in fact I remain fairly confused about it :(
You might try /global/media/flowers.jpg or
./global/media/flowers.jpg if you need to go up a directory then ../
works fine.

-Original Message-
From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
on behalf of oneworld95
Sent: Wed 29/10/2008 19:56
To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com 
Subject: [flexcoders] Invalid Embed directive

Hi. I've got a Style tag with the following style in it,

Application {
background-image: Embed(source=global/media/flowers.jpg);
}

I keep getting the Invalid Embed directive in stylesheet - can't
resolve source. I know the image exists and is at that path. Help!

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

 


This message is private and confidential. If you have received it in error, 
please notify the sender and remove it from your system.

RE: [flexcoders] Invalid Embed directive

2008-10-29 Thread Ryan Graham

And the path is relative to where you are declaring the mx:Style that
loads the stylesheet file, of course. :)
 
HTH,
Ryan



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Ryan Graham
Sent: Wednesday, October 29, 2008 1:55 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Invalid Embed directive



The compiler expects that image path to be in one of your project source
folders during build. If that path exists in your bin folder only, the
compiler will never see it for an embed operation.
 
HTH,
Ryan



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Jim Hayes
Sent: Wednesday, October 29, 2008 1:20 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Invalid Embed directive




It can be confusing as to where the file thinks it is at compile time -
in fact I remain fairly confused about it :(
You might try /global/media/flowers.jpg or
./global/media/flowers.jpg if you need to go up a directory then ../
works fine.

-Original Message-
From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
on behalf of oneworld95
Sent: Wed 29/10/2008 19:56
To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com 
Subject: [flexcoders] Invalid Embed directive

Hi. I've got a Style tag with the following style in it,

Application {
background-image: Embed(source=global/media/flowers.jpg);
}

I keep getting the Invalid Embed directive in stylesheet - can't
resolve source. I know the image exists and is at that path. Help!

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

This message is private and confidential. If you have received it in
error, please notify the sender and remove it from your system.


 


This message is private and confidential. If you have received it in error, 
please notify the sender and remove it from your system.

RE: [flexcoders] Re: FB: Extracting a folder contents into output folder while compiling

2008-10-27 Thread Ryan Graham

Sure, you can create another folder in your flex project at the same
level as src, then in Project  Properties  Build Path  Source Path
click Add Folder and point to the folder you just created.  It will be
treated the same as src when compiling. Just make sure you have Copy
non-embedded files to output folder checked under Project  Properties
 Flex Compiler.
 
HTH,
Ryan



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of m_koks
Sent: Monday, October 27, 2008 6:26 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: FB: Extracting a folder contents into output
folder while compiling



Does anyone have answer please?

Thanks

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

 Hi All,
 
 I have few additional html files in my project that I want them to be
 get copied into the output folder while compiling the application
 using Flex builder.
 
 Presently, I have following options to achieve this.
 
 1. Put those additional files into src folder and in flex builder,
 check the option of 'copy non-embedded files into output foler'
 
 2. Put those additional files into html-template folder so that while
 compiling from flex builder, all those files will automatically get
 copied to output folder.
 
 But I would not prefer any of the above method as those additional
 html files are large in number and I don't want to put them loosely
 into src or html-template folder. Rather I would prefer to put them in
 a folder and while compiling, flex builder should extract the contents
 of that folder (i.e. those html files) and copy them in output folder.
 Is it possible using flex builder 3?
 
 PS - I know using ant script I can easily copy the contents of any
 folder into the output folder while compiling. But is possible using
 flex builder? 
 
 TIA




 


This message is private and confidential. If you have received it in error, 
please notify the sender and remove it from your system.

RE: [flexcoders] Re: html and swf file gone

2008-10-02 Thread Ryan Graham

Do you still have your html-template folder? It should generate a fresh
html wrapper for you when you build.



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of flexaustin
Sent: Thursday, October 02, 2008 7:31 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: html and swf file gone



No errors in Problems pain. It looks like if your orig. .swf and .html
files get deteleted the only fix is to recreate the project from
scratch. Re-building doesn't do anything, atleast when svn is invovled.

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

 Yes, look at the Problems pane. It is at menu, Windows, Problems.
 
 Tracy
 
 
 
 
 
 From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
[mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
] On
 Behalf Of Ryan Graham
 Sent: Tuesday, September 30, 2008 6:16 PM
 To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com 
 Subject: RE: [flexcoders] html and swf file gone
 
 
 
 Clean deletes all the files in the output bin and replaces them with
 fresh copies on build (very useful for externally loaded assets like
 images and xml files that may be updated during dev).
 
 
 
 You just need to get your project back to a point where the compiler
can
 successfully complete a build. I suspect you may have some compiler
 errors showing when you try to build?
 
 
 
 HTH,
 
 Ryan
 
 
 
 
 
 From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
[mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
] On
 Behalf Of flexaustin
 Sent: Tuesday, September 30, 2008 3:04 PM
 To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com 
 Subject: [flexcoders] html and swf file gone
 
 So I was working on my project and flex builder 3 started acting
 funny. Hit one keystroke and it would type 10 more and I keep getting
 really weird errors when nothing was wrong with the file. 
 
 So I did project  clean. 
 
 Now my .html and .swf in bin-debug is gone and I can't build another
 one? Getting File not Found: file:/C:/.html
 
 Anyone know how to recreate the html and swf file?
 
 This message is private and confidential. If you have received it in
 error, please notify the sender and remove it from your system.




 


This message is private and confidential. If you have received it in error, 
please notify the sender and remove it from your system.

RE: [flexcoders] Developing with Flash Player 10a

2008-10-02 Thread Ryan Graham

You need the debug version of the player installed. This guy seems to
have some good info on where to get it and how to setup flex builder:
 
http://www.flexer.info/2008/08/18/flash-player-10-debug-is-out/
 
HTH,
Ryan



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of markgoldin_2000
Sent: Thursday, October 02, 2008 12:19 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Developing with Flash Player 10a



I have installed that version but when I run it from Builder I am 
getting:
C:\WINDOWS\system32\Macromed\Flash\Flash10a.ocx

Flex Builder cannot locate the required debugger version of Flash 
Player. You might need to install the debugger version of Flash Player 
9 or reinstall Flex Builder.

Do you want to try to debug with the current version?

What am I doing wrong?



 


This message is private and confidential. If you have received it in error, 
please notify the sender and remove it from your system.

RE: [flexcoders] Re: Developing with Flash Player 10a

2008-10-02 Thread Ryan Graham

The second link on that page details the flex builder setup which in a
nutshell looks like
 
--downloading a snapshot build of the latest flex SDK from adobe
--letting flex builder know that the sdk is available for use
--setting the compiler targets to hit Flash Player 10 debug
 
HTH,
Ryan



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of markgoldin_2000
Sent: Thursday, October 02, 2008 12:43 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Developing with Flash Player 10a



Thanks for help. I did install FP10 from that location and I am not 
getting warning anymore, but now I am getting this:

Failed to connect; session timed out.
Ensure that:
1. You compiled your Flash application with debugging on.
2. You are running the debugger version of Flash Player.

Any dea?

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

 
 You need the debug version of the player installed. This guy seems 
to
 have some good info on where to get it and how to setup flex 
builder:
 
 http://www.flexer.info/2008/08/18/flash-player-10-debug-is-out/
http://www.flexer.info/2008/08/18/flash-player-10-debug-is-out/ 
 
 HTH,
 Ryan
 
 
 
 From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com

[mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
] On
 Behalf Of markgoldin_2000
 Sent: Thursday, October 02, 2008 12:19 PM
 To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com 
 Subject: [flexcoders] Developing with Flash Player 10a
 
 
 
 I have installed that version but when I run it from Builder I am 
 getting:
 C:\WINDOWS\system32\Macromed\Flash\Flash10a.ocx
 
 Flex Builder cannot locate the required debugger version of Flash 
 Player. You might need to install the debugger version of Flash 
Player 
 9 or reinstall Flex Builder.
 
 Do you want to try to debug with the current version?
 
 What am I doing wrong?
 
 
 
 
 
 
 This message is private and confidential. If you have received it 
in error, please notify the sender and remove it from your system.




 


This message is private and confidential. If you have received it in error, 
please notify the sender and remove it from your system.

RE: [flexcoders] Form defined in Actionscript

2008-10-01 Thread Ryan Graham

Sure... the basics:
 
//Create form
var form:Form = new Form();
//Create form item(s)
var fi1:FormItem = new FormItem();
fi1.label = Name:;
fi1.addChild(new TextInput());
 
//Add form item to form
form.addChild(fi1);
 
//add form itself to container of your choice
canvas1.addChild(f);
 
 
Also, dictionaries can be really useful for keeping track of controls
like this that are generated at runtime...
 
HTH,
Ryan



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of markgoldin_2000
Sent: Wednesday, October 01, 2008 5:16 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Form defined in Actionscript



Any sample of defining a form in an .as file?

Thanks



 


This message is private and confidential. If you have received it in error, 
please notify the sender and remove it from your system.

RE: [flexcoders] Format LI Bullets in htmlText

2008-09-30 Thread Ryan Graham

Also, try condenseWhite=true on the Text control...
 
HTH,
Ryan



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Tracy Spratt
Sent: Tuesday, September 30, 2008 11:53 AM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Format LI Bullets in htmlText



Look into the LEADING property.

Tracy



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of edlueze
Sent: Tuesday, September 30, 2008 2:24 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Format LI Bullets in htmlText

I am trying to format a set of bullets within a Text control using
htmlText but the bullets seem to be really far apart (think of a
really big line-height). I can't seem to figure out how to modify the
style (CSS or inline) for the LI tag so that the line-height is smaller.

This is my MXML:

mx:Text
mx:htmlText
![CDATA[My bullets:
liBullet #1/li
liBullet #2/li
liBullet #3/li
]]
/mx:htmlText
/mx:Text

Any ideas?

Thanks in advance!

 


This message is private and confidential. If you have received it in error, 
please notify the sender and remove it from your system.

RE: [flexcoders] html and swf file gone

2008-09-30 Thread Ryan Graham

Clean deletes all the files in the output bin and replaces them with
fresh copies on build (very useful for externally loaded assets like
images and xml files that may be updated during dev).
 
You just need to get your project back to a point where the compiler can
successfully complete a build. I suspect you may have some compiler
errors showing when you try to build?
 
HTH,
Ryan



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of flexaustin
Sent: Tuesday, September 30, 2008 3:04 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] html and swf file gone



So I was working on my project and flex builder 3 started acting
funny. Hit one keystroke and it would type 10 more and I keep getting
really weird errors when nothing was wrong with the file. 

So I did project  clean. 

Now my .html and .swf in bin-debug is gone and I can't build another
one? Getting File not Found: file:/C:/.html

Anyone know how to recreate the html and swf file?



 


This message is private and confidential. If you have received it in error, 
please notify the sender and remove it from your system.

RE: [flexcoders] html in flex

2008-09-29 Thread Ryan Graham

You can try treating your HTML as XHTML (make sure it's well-formed),
then adjust the rendering properties with a toXMLString().
 
Noted properties are: XML.ignoreWhitespace, XML.prettyPrinting, and
TextArea.condenseWhite
 
  mx:Script
![CDATA[
  
  [Bindable]
  private var _htmlText:XML;
  
  private function init():void
  {
XML.ignoreWhitespace = true;
XML.prettyPrinting = false;
_htmlText = pimg border=0 alt= style=width: 76px;
height: 91px; src=http://serverpath/files/i1.jpg; /span
style=font-weight: bold;KB br /Hi how are youbr /img border=0
alt= style=width: 78px; height: 78px;
src=http://serverpath/files/i2.jpg; / Nimo br /pls feel free to join
usbr //span/p;
  }
]]
  /mx:Script
  mx:VBox id=v1 width=600 height=800
mx:TextArea condenseWhite=true
htmlText={_htmlText.toXMLString()} width=500 height=400/
  /mx:VBox 
 
HTH,
Ryan



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of abhishekchess1
Sent: Thursday, September 25, 2008 9:35 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] html in flex



hello frnds,
i'm using html in flex , in my html code i'm showing first 1 image
then its details then at next line
anather image and its details , but when i'm doing this , it shows
first image then text of its beside it and next line but beside first
img 2nd image's details also and then it showing 2nd image.
so could u tell how can i show it in proper format like in html.

my code is
mx:VBox id=v1 width=600 height=800

mx:TextArea htmlText=img border=0 alt= style=width:
76px; height: 91px; src=http://serverpath/files/i1.jpg
http://serverpath/files/i1.jpg  /span
style=font-weight: bold;KB br /Hi how are youbr /img
border=0 alt= style=width: 78px; height: 78px; src=http://
serverpath/files/i2.jpg / Nimo br /pls feel free to join usbr //
span

/mx:VBox 

[EMAIL PROTECTED] mailto:abhishekchess1%40gmail.com 



 


This message is private and confidential. If you have received it in error, 
please notify the sender and remove it from your system.

RE: [flexcoders] Not to harp on about it....

2008-09-25 Thread Ryan Graham

Isn't Flash Player 10 going to have some basic 3D support built in? I
thought I read that somewhere. Should be awesome if so...
 
Ryan



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of wkolcz
Sent: Thursday, September 25, 2008 10:20 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Not to harp on about it








On Sep 25, 2008, at 11:28 AM, Samuel Colak wrote:
I don't think papervision has anything on it - And its all
written in Flex :)


I find that interesting. Didn't know you could write a 3D engine
in Flex. Thought they were all written in AS...

Also, love the claim on the web site,  co-operation with
numerous Fortune 500 and publicly listed companies world-widesuch
as



 


This message is private and confidential. If you have received it in error, 
please notify the sender and remove it from your system.

RE: [flexcoders] TextArea with support of emoticans

2008-09-25 Thread Ryan Graham

When using the TextArea with htmlText, flex converts the htmlText when
setting the property to it's own specific flavor of HTML for rendering.
To see what goes on here, set the htmlText property, then do a trace to
see what it is converted into -- each run of text appears to get broken
up into its own p. Example (not exactly what flex does, but you get
the picture hopefully):
 
pText bbold text/b iitalic text/i some more text/p
 
converts to something like this
 
pText /ppbbold text/b/pp /ppiitalic text/i/pp
some more text/p
 
This is explained pretty well in the docs.
 
With htmlText, try some of the spacing properties to affect the way that
internal HTML representation is built:
 
textArea.condenseWhite = true;
 
HTH,
Ryan



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Sajid Hussain
Sent: Thursday, September 25, 2008 12:51 PM
To: Code
Subject: [flexcoders] TextArea with support of emoticans



Hi Guys , 

for web messenger's emoticons ,I need to put images into textarea I have
used htmltext and loading up img / tag ,one image(emoticon ) work fine
but with more then one img tag it comes as vertically where image at the
bottom of image where it seems some html thing , any suggestion I could
have two html img tags in one line ?



Sajid




 


This message is private and confidential. If you have received it in error, 
please notify the sender and remove it from your system.

RE: [flexcoders] TextArea with support of emoticans

2008-09-25 Thread Ryan Graham

Pretty sure the img element would be treated the same as the b and
i elements below.  How are you getting your HTML? From a CDATA section
somewhere, or as actual markup? If you could post a small example of
your exact setup, it would help to give more specific advice.
 
HTH,
Ryan



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Sajid Hussain
Sent: Thursday, September 25, 2008 1:25 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] TextArea with support of emoticans



hmm I m going to play witht this I m sure it will may help . 
it seems u think by using condenseWhit we could have inline images?
 
Sajid

 

- Original Message 
From: Ryan Graham [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Friday, September 26, 2008 1:11:27 AM
Subject: RE: [flexcoders] TextArea with support of emoticans



When using the TextArea with htmlText, flex converts the htmlText when
setting the property to it's own specific flavor of HTML for rendering.
To see what goes on here, set the htmlText property, then do a trace to
see what it is converted into -- each run of text appears to get broken
up into its own p. Example (not exactly what flex does, but you get
the picture hopefully):
 
pText bbold text/b iitalic text/i some more text/p
 
converts to something like this
 
pText /ppbbold text/b/pp /ppiitalic text/i/pp
some more text/p
 
This is explained pretty well in the docs.
 
With htmlText, try some of the spacing properties to affect the way that
internal HTML representation is built:
 
textArea.condenseWh ite = true;
 
HTH,
Ryan



From: [EMAIL PROTECTED] ups.com http://ups.com/  [mailto:flexcoders@
yahoogroups. com] On Behalf Of Sajid Hussain
Sent: Thursday, September 25, 2008 12:51 PM
To: Code
Subject: [flexcoders] TextArea with support of emoticans



Hi Guys , 

for web messenger's emoticons ,I need to put images into textarea I have
used htmltext and loading up img / tag ,one image(emoticon ) work fine
but with more then one img tag it comes as vertically where image at the
bottom of image where it seems some html thing , any suggestion I could
have two html img tags in one line ?



Sajid




This message is private and confidential. If you have received it in
error, please notify the sender and remove it from your system.



 


This message is private and confidential. If you have received it in error, 
please notify the sender and remove it from your system.

RE: [flexcoders] Cairngorm Update Problem

2008-09-24 Thread Ryan Graham

You could put a property on the model that the component can bind to,
that way the command could just update the model after the delegate
returns and databinding will take care of the rest for you.  I
personally don't like keeping state properties like that in my model,
so I usually use Cairngorm Extensions. You should check out their
Callbacks model -- it solves your exact problem and is the functionality
that turned me on to it.  If you are already too far along in your
project to switch to extensions, I'd go with the first option for the
quick fix.
 
http://umcairngorm.riaforge.org/
http://code.google.com/p/flexcairngorm/
 
HTH,
Ryan
 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of c_higgon
Sent: Wednesday, September 24, 2008 3:45 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Cairngorm Update Problem



I am working on a Cairngorm project. I am using a ViewStack component 
to flip the user interface between a graph component and a filter data 
component both in the view layer. The basic concept of the 
application is to have a line graph and allow the users to filter the 
data using an input screen. All of this works the first time the user 
enters the application and uses the filter option. 

The problem I am having is the second or third time the user enters the 
filter screen. I cannot find a way to tell the graph component to 
reset itself after the event is dispatch and the controller takes over 
and new data needs to be displayed in the graph. (IE remove any 
annotationElements that were on the old graph)

Is there a way to notify the component in the view layer of a Cairngorm 
project from the command layer when the results are return from the 
delegate? 

Thanks,
~Chris



 


This message is private and confidential. If you have received it in error, 
please notify the sender and remove it from your system.

RE: [flexcoders] Using just one mx:WebService

2008-09-23 Thread Ryan Graham

This is one of the architectural best practices Cairngorm was designed
to handle.  Encapsulating service invocation through [Event  Command
 Delegate  Service] structure sounds like it will fit your needs. An
easier, but more tightly coupled and limited solution, would be to
declare your service in your mx:Application file, and then reference the
service in any child components using Application.application.serviceID
syntax.
 
Some good resources:
 
http://opensource.adobe.com/wiki/display/cairngorm/Cairngorm
http://www.cairngormdocs.org/ (especially the 6 part article by Steven
Webster)
 
HTH,
Ryan



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Eduardo Souza
Sent: Tuesday, September 23, 2008 12:47 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Using just one mx:WebService



Hello Everyone,

I'm working on a project wich uses a Web service on the server side
(SOAP1.1). Now our team is studying to develop a client app. And we're
developing an organizational software for our team by the way.

But I got a problem. When I create my MXMLs files, I need to create a
component (mx:WebService) on all of them. But I don't want that. I just
want one mx:WebService component containing all of webservice operations
and use just that to all of my MXMLs files. What I need to do?

Thanks!

(Sorry about my english. That isn't my primary language).


 


This message is private and confidential. If you have received it in error, 
please notify the sender and remove it from your system.

RE: [flexcoders] Creating TextArea height from String;

2008-09-22 Thread Ryan Graham

In the past I have personally found Text controls easier to deal with,
but you should still be able to do this.  It may be that the textHeight
property is only exactly what it says it is -- the height of the
rendered htmlText in your case.  You may need to account for the
control's other properties that affect size like the chrome. Assuming
messageBox is a TextArea control, perhaps something like:
 
messageBox.height = messageBox.textHeight + messageBox.viewMetrics.top +
messageBox.viewMetrics.bottom + messageBox.borderMetrics.top +
messageBox.borderMetrics.bottom;
 
HTH,
Ryan



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Sajid Hussain
Sent: Monday, September 22, 2008 12:46 PM
To: Code
Subject: [flexcoders] Creating TextArea height from String;



Gurus,
 
I want to create or set textarea's height from string(message from other
user) I did folwoing code

 

messageBox.htmlText=msg;

messageBox.validateNow();

messageBox.height=messageBox.textHeight;

 

but height got chance but stiill it dont work exactly it shows scrollbar
to textarea about some percentage of height ,where it shud not suppose
to do,if someway I cud get get text areas scrollbar height and reset
those or I would love to have your sugestions

 

Sajid 

RIA developer


 


This message is private and confidential. If you have received it in error, 
please notify the sender and remove it from your system.

RE: [flexcoders] dynamic icons while using Repeater

2008-09-19 Thread Ryan Graham

Sounds like your dynamic data should be an object of some sort - you
could always just set the data property of the vbox, then override the
set data function. Inside that override add the correct icon to the
control how you see fit based on the data you passed in...
 
override public function set data(value:Object):void
{
super.data = value;
//add the icon somehow - if you provide more details of your setup
we can give better advice here
var img:Image = new Image();
img.source = super.data.imageSrc;
this.addChild(img);
}
 
HTH,
Ryan



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of gridwest
Sent: Thursday, September 18, 2008 5:49 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] dynamic icons while using Repeater



Hi,

I'm trying to use dynamic icons on a vBox inside an Accordion and am 
stuck. I want to load a specific icon based on the dynamic data i'm 
using. Has anybody got any ideas?

cheers



 


This message is private and confidential. If you have received it in error, 
please notify the sender and remove it from your system.

RE: [flexcoders] Re: Flex Project Struture

2008-09-18 Thread Ryan Graham

That sounds like a good path to follow -- especially if you set up
automated ANT builds for your flex library project, perhaps once or
twice a day. That way, any apps consuming the library will always be
referencing a current build.  This could result in runtime errors for
older projects though if you begin changing the interfaces for the
components contained in the library. At that point you could try
checking out the flex library project from the SVN, building, and then
linking the flex library project to your main flex project.  This should
allow you to have a snapshot of the library that you know will work with
the flex project at that point in time.
 
HTH,
Ryan



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Howard Fore
Sent: Wednesday, September 17, 2008 1:05 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Re: Flex Project Struture



Have you tried making a linked folder in the src directory? File  New 
Folder  Advanced  Link to Folder in file system. This creates an alias
in your project to that folder. Haven't tried it myself, not sure how
the compiler is going to like it. 

The other option would be to put the alias in the operating system,
using junctions in Windows or aliases/symlinks in OS X/Linux. I would
expect the compiler to have no issues with those as the operating system
should make them appear as real directories to the program.


On Wed, Sep 17, 2008 at 3:51 PM, flexaustin [EMAIL PROTECTED]
mailto:[EMAIL PROTECTED]  wrote:


What about sharing components. For instance, we have a project
just
completed with several as components. We want to use some of
those
same AS components, but don't want to copy them to our new
projects
directory since when changes are made in the AS components for
the old
project we need them to show up in our new project.  So we want
to
point to the same library or folder for both applications.





-- 
Howard Fore, [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] 
The universe tends toward maximum irony. Don't push it. - Jeff Atwood


 


This message is private and confidential. If you have received it in error, 
please notify the sender and remove it from your system.

RE: [flexcoders] baselinePosition meaning?

2008-09-17 Thread Ryan Graham

The baselinePosition is basically the y position of the bottom of the
first line of text in a text-displaying component.  I find this property
useful when drawing assets on screen at run time. The baselinePosition
can also be interpreted as the line height for the block of text. For
example, if displaying some sort of vector art next to a Text control at
runtime, especially when using htmlText, you can size an image to the
size of the first line of text when it is unknown at compile time.
Useful for drawing bullet points or simple graphics in a quiz type
application the consumes external content at runtime.
 
HTH,
Ryan



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Sherif Abdou
Sent: Tuesday, September 16, 2008 10:33 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] baselinePosition meaning?



Prob a silly question but what is the meaning of baselinePosition in
plain english. I read the Docs but I have no idea what the purpose of it
is or when it's use comes to play. 

/**

* @private

* The baselinePosition of a Container is calculated

* as if there was a UITextField using the Container's styles

* whose top is at viewMetrics.top.

*/

 

 


This message is private and confidential. If you have received it in error, 
please notify the sender and remove it from your system.

RE: [flexcoders] Re: Flex Project Struture

2008-09-17 Thread Ryan Graham

If you are using Subclipse in Flex Builder, it does a pretty good job of
automatically leaving out said files. Here are some for example in a
standard Flex Project folder:

*   
.settings folder
*   
.actionScriptProperties
*   
.flexProperties
*   
.project

HTH,
Ryan



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of flexaustin
Sent: Tuesday, September 16, 2008 8:25 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Flex Project Struture



Thanks Ryan. You mentioned Flex Builders specific files...what would
those be?

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

 
 If you're using a framework like Cairngorm or Cairngorm with
Extensions,
 there are already recommended project structures. If you aren't using
an
 existing framework, then everyone will have to be on the same page
with
 the dev methodologies and conventions that you all have agreed upon as
a
 team. There should be no issues using a flex project with your given
 setup, but it may be worth noting that you may want to stay away from
 including any flex builder specific files in the SVN, as everyone has
 their own dev environment setup the way they like it as far as
 workspaces and such are concerned, and that leaves the project open to
 developers who may be using the sdk and command line to compile by
 reducing flex builder dependencies.
 
 Aside from that, I'd say it's good to keep all your view components
and
 sealed classes for your model together (minimally), and any external
or
 embedded assets in a separate folder defined as an additional source
 folder so they will still get copied to the bin when building. All
this
 could of course be accomplished through ANT though if you want to go
 that route. Brief example:
 
 etc
 --assets
 --config
 src
 --components
 --view
 --model
 ...
 
 The possibilities are really endless, but as long as everyone agrees
on
 the project structure, you shouldn't have any problems. This is where
 existing frameworks can help take the headache out of things -- by
 providing a known structure up front.
 
 HTH,
 Ryan
 
 
 
 From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
[mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
] On
 Behalf Of flexaustin
 Sent: Tuesday, September 16, 2008 4:11 PM
 To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com 
 Subject: [flexcoders] Flex Project Struture
 
 
 
 Can anyone recommend a project structure? Maybe a tut or blog post on
 the topic? We have several components (as and mxml) that we want to
 use throughout several projects and by several team members, but not
 sure the best way to structure the files and package them up. How do
 we all share the files? Is a Flex Project the best way? We are using
 subversion + Flex 3 + Ant.
 
 Would like to build an Ant task that fetches all the files and builds
 the structure once we establish what that structure should be.
 
 Thanks in advance.
 
 
 
 
 
 
 This message is private and confidential. If you have received it in
error, please notify the sender and remove it from your system.




 


This message is private and confidential. If you have received it in error, 
please notify the sender and remove it from your system.

RE: [flexcoders] baselinePosition meaning?

2008-09-17 Thread Ryan Graham

The baselinePosition and line heights in Flash are wrong, when
compared to how it's handled by Photoshop, Illustrator and InDesign.
Ascent and descent are supposed to be used to calculate a proper
baseline position, and Flash does not properly calculate ascent/descent
metrics.

I did an application for a card company and we had serious
issues with the discrepancy between Flash, Photoshop, Illustrator and
InDesign when it came to proper rendering of text fields and line
heights.

The baseline position is measured differently between each of
the applications (incorrectly in the case of Photoshop and Flash). In
Flash, it's a major headache because the ascent and descent measurement
from text metrics are wrong 90% of the time. Illustrator is the only app
that renders the first baseline (using em size) correctly from a print
standpoint. At least with Photoshop you can hack the file format to fix
it.

In general, be careful when you use any print-matching
calculations with baselines or leading in Flash.

Related ...

Leading in Flash will only be correct on awkward point sizes.
The leading is also not consistent from line-to-line if you try to
manually override it (using some funky math to convert em size to
flash's desired values).

If you try to set a line height of, say, 40 points on 40 pt
type, you actually get somthing like 46.8, which can't render because
Flash can only do integer line heights. That's not considering that the
line height Flash renders with the absolutely wrong value in the first
place. 
 

All great information -- thanks Jon! 


This message is private and confidential. If you have received it in error, 
please notify the sender and remove it from your system.

RE: [flexcoders] Flex Project Struture

2008-09-17 Thread Ryan Graham

Usually this is setup through the Project Properties. I add another
top-level folder for anything the app needs to consume at runtime (like
an etc folder) and perhaps another that the app needs to consume at
compile time like embedded assets (like an includes folder -- it's up
to you):
 
Project  Properties  Flex Build Path  Source Path  Add Folder...
 
To have files copied to the bin when building, don't forget to check:
 
Project  Properties  Flex Compiler  Copy non-embedded files to
output folder
 
Then you have the option of including these folders in SVN or leaving
them local to the working copy...
 
In my experience though, when another dev checks out the project, they
have to set up these folder associations for their working copy in FB,
so I might put a README.txt in the root of the project detailing the
expected setup.  This seems kinda clunky though -- if anyone knows what
to do to persist these settings through the SVN, I'd love to know.  I
know ANT is always an option, but sometimes its nice to not have to muck
with it.
 
HTH, 
Ryan
 
 


From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Howard Fore
Sent: Wednesday, September 17, 2008 8:44 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Flex Project Struture



Ryan, I'm curious about how you separate the Flex Builder project files
from the source code (and asset files) in your projects so that the
former doesn't get into SVN with the later. I've tried various ways of
setting up links etc and FB doesn't seem to like any of them.


On Tue, Sep 16, 2008 at 7:57 PM, Ryan Graham [EMAIL PROTECTED]
mailto:[EMAIL PROTECTED]  wrote:


There should be no issues using a flex project with your given
setup, but it may be worth noting that you may want to stay away from
including any flex builder specific files in the SVN, as everyone has
their own dev environment setup the way they like it as far as
workspaces and such are concerned, and that leaves the project open to
developers who may be using the sdk and command line to compile by
reducing flex builder dependencies.



-- 
Howard Fore, [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] 
The universe tends toward maximum irony. Don't push it. - Jeff Atwood


 


This message is private and confidential. If you have received it in error, 
please notify the sender and remove it from your system.

  1   2   >