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

2008-07-20 Thread wiley_jacobs1
I have spent the last two days working on this issue. I have narrowed it down 
that the 
SystemManager isn't able to register the application. It runs the preloader 
fine in both the 
release player and the debug, although when it tries to pass this:

document = app = topLevelWindow = IUIComponent(create());

it only works in the debug player, not the release version. There are no errors 
shown. I 
figured this out by implementing a custom preloader to bring up a gif image to 
act as an 
Alert.show() replacement since Alert.show() is not supported in the preload 
area.

I still can't resolve the issue though. Any help would be greatly appreciated.

Wiley

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

 I don't know what this thread is exactly on since my i cant find the first 
 message but I 
have gotten this a couple of times, Basically it is either a loop that never 
finishes or you 
keep calling any of the invalidation methods over and over again. For example, 
for some 
reason i over ridden the updateDisplayList and i called invalidateDisplayList() 
in it for 
some reason and i had the same problem. I am guessing you may have used a 
custom 
loader or some custom component that does that. It works fine in debugger too 
but not 
release. 
 
 
 
 - Original Message 
 From: Tracy Spratt [EMAIL PROTECTED]
 To: flexcoders@yahoogroups.com
 Sent: Wednesday, July 16, 2008 11:59:06 AM
 Subject: RE: [flexcoders] Re: Please, help: the release player displays a 
 blank page in all 
browsers.
 
 
 Also have you tried any of the suggestions folks have made?
 
 Starting by putting an Alert.show in the Application initialize event?
 
 Tracy
 
 -Original Message-
 From: [EMAIL PROTECTED] ups.com [mailto:[EMAIL PROTECTED] ups.com] On
 Behalf Of Tom Chiverton
 Sent: Wednesday, July 16, 2008 6:05 AM
 To: [EMAIL PROTECTED] ups.com
 Subject: Re: [flexcoders] Re: Please, help: the release player displays
 a blank page in all browsers.
 
 On Wednesday 16 Jul 2008, wiley_jacobs1 wrote:
  I'm having he same issue, it's been going on for 6 months. For me, the
  loader doesn't even come up with the regular player, it's just the
 blue
  background background. Does anybody have a solution for this? The
 debug
  player works fine 
 
 And there are no errors thrown or warnings trace()'ed at run time with
 the 
 debug player ?
 No compiler warnings ?
 Does a simple test app also have this problem ? Using the command line 
 compiler or Builder ?
 
 -- 
 Tom Chiverton
 
  * * * * 
 
 This email is sent for and on behalf of Halliwells LLP.
 
 Halliwells LLP is a limited liability partnership registered in England
 and Wales under registered number OC307980 whose registered office
 address is at Halliwells LLP, 3 Hardman Square, Spinningfields,
 Manchester, M3 3EB.  A list of members is available for inspection at
 the registered office. Any reference to a partner in relation to
 Halliwells LLP means a member of Halliwells LLP.  Regulated by The
 Solicitors Regulation Authority.
 
 CONFIDENTIALITY
 
 This email is intended only for the use of the addressee named above and
 may be confidential or legally privileged.  If you are not the addressee
 you must not read it and must not use any information contained in nor
 copy it nor inform any person other than Halliwells LLP or the addressee
 of its existence or contents.  If you have received this email in error
 please delete it and notify Halliwells LLP IT Department on 0870 365
 2500.
 
 For more information about Halliwells LLP visit www.halliwells. com.
 
  - - --
 
 --
 Flexcoders Mailing List
 FAQ: http://groups. yahoo.com/ group/flexcoders /files/flexcoder sFAQ.txt
 Search Archives:
 http://www.mail- archive.com/ flexcoders% 40yahoogroups. comYahoo! Groups
 Links






[flexcoders] Debug Mode Prematurely Terminating

2008-07-20 Thread kenny14390
In both Eclipse and Flex Builder 3, the Debug mode prematurely
terminates. I have an error in my code, which isn't being picked up by
the compiler, so it's hard to debug. Regardless of break points, the
debugger will launch the app in the browser and then immediately
terminate, not checking for any errors even though I'm getting them.

Also, upon pressing the Debug button, the IDE used to automatically
switch to Debug mode but not anymore. My code couldn't possibly screw
up Eclipse's debugging mode, right? If both Eclipse and Flex Builder
have this save behavior, is it even worth reinstalling?



[flexcoders] Re: Please, help: the release player displays a blank page...(solved for me!)

2008-07-20 Thread wiley_jacobs1
I finally figured it out. I was using MyFlexSpy which overrides 
mx.core.FlexSprite.as and 
mx.core.ListenerTracker.as. I took MyFlexSpy out of my app including the 
overriding mx 
package and everything came up in the release player!!

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

 I have spent the last two days working on this issue. I have narrowed it down 
 that the 
 SystemManager isn't able to register the application. It runs the preloader 
 fine in both 
the 
 release player and the debug, although when it tries to pass this:
 
 document = app = topLevelWindow = IUIComponent(create());
 
 it only works in the debug player, not the release version. There are no 
 errors shown. I 
 figured this out by implementing a custom preloader to bring up a gif image 
 to act as an 
 Alert.show() replacement since Alert.show() is not supported in the preload 
 area.
   
 I still can't resolve the issue though. Any help would be greatly appreciated.
 
 Wiley
 
 --- In flexcoders@yahoogroups.com, Sherif Abdou sherif626@ wrote:
 
  I don't know what this thread is exactly on since my i cant find the first 
  message but I 
 have gotten this a couple of times, Basically it is either a loop that never 
 finishes or you 
 keep calling any of the invalidation methods over and over again. For 
 example, for some 
 reason i over ridden the updateDisplayList and i called 
 invalidateDisplayList() in it for 
 some reason and i had the same problem. I am guessing you may have used a 
 custom 
 loader or some custom component that does that. It works fine in debugger too 
 but not 
 release. 
  
  
  
  - Original Message 
  From: Tracy Spratt tspratt@
  To: flexcoders@yahoogroups.com
  Sent: Wednesday, July 16, 2008 11:59:06 AM
  Subject: RE: [flexcoders] Re: Please, help: the release player displays a 
  blank page in 
all 
 browsers.
  
  
  Also have you tried any of the suggestions folks have made?
  
  Starting by putting an Alert.show in the Application initialize event?
  
  Tracy
  
  -Original Message-
  From: [EMAIL PROTECTED] ups.com [mailto:[EMAIL PROTECTED] ups.com] On
  Behalf Of Tom Chiverton
  Sent: Wednesday, July 16, 2008 6:05 AM
  To: [EMAIL PROTECTED] ups.com
  Subject: Re: [flexcoders] Re: Please, help: the release player displays
  a blank page in all browsers.
  
  On Wednesday 16 Jul 2008, wiley_jacobs1 wrote:
   I'm having he same issue, it's been going on for 6 months. For me, the
   loader doesn't even come up with the regular player, it's just the
  blue
   background background. Does anybody have a solution for this? The
  debug
   player works fine 
  
  And there are no errors thrown or warnings trace()'ed at run time with
  the 
  debug player ?
  No compiler warnings ?
  Does a simple test app also have this problem ? Using the command line 
  compiler or Builder ?
  
  -- 
  Tom Chiverton
  
   * * * * 
  
  This email is sent for and on behalf of Halliwells LLP.
  
  Halliwells LLP is a limited liability partnership registered in England
  and Wales under registered number OC307980 whose registered office
  address is at Halliwells LLP, 3 Hardman Square, Spinningfields,
  Manchester, M3 3EB.  A list of members is available for inspection at
  the registered office. Any reference to a partner in relation to
  Halliwells LLP means a member of Halliwells LLP.  Regulated by The
  Solicitors Regulation Authority.
  
  CONFIDENTIALITY
  
  This email is intended only for the use of the addressee named above and
  may be confidential or legally privileged.  If you are not the addressee
  you must not read it and must not use any information contained in nor
  copy it nor inform any person other than Halliwells LLP or the addressee
  of its existence or contents.  If you have received this email in error
  please delete it and notify Halliwells LLP IT Department on 0870 365
  2500.
  
  For more information about Halliwells LLP visit www.halliwells. com.
  
   - - --
  
  --
  Flexcoders Mailing List
  FAQ: http://groups. yahoo.com/ group/flexcoders /files/flexcoder sFAQ.txt
  Search Archives:
  http://www.mail- archive.com/ flexcoders% 40yahoogroups. comYahoo! Groups
  Links
 






Re: [flexcoders] Debug Mode Prematurely Terminating

2008-07-20 Thread Daniel Freiman
I had a problem like this when I moved to my new computer last week.
Inexplicably, changing the html template to include the parameter wmode =
opaque fixed it.  I agree this doesn't make any sense, but according to
googling it has worked for other people and it worked for me.

- Daniel Freiman

On Sun, Jul 20, 2008 at 2:43 AM, kenny14390 [EMAIL PROTECTED] wrote:

   In both Eclipse and Flex Builder 3, the Debug mode prematurely
 terminates. I have an error in my code, which isn't being picked up by
 the compiler, so it's hard to debug. Regardless of break points, the
 debugger will launch the app in the browser and then immediately
 terminate, not checking for any errors even though I'm getting them.

 Also, upon pressing the Debug button, the IDE used to automatically
 switch to Debug mode but not anymore. My code couldn't possibly screw
 up Eclipse's debugging mode, right? If both Eclipse and Flex Builder
 have this save behavior, is it even worth reinstalling?

  



[flexcoders] Re: Debug Mode Prematurely Terminating

2008-07-20 Thread kenny14390
I'm glad to hear I'm not the only one with this weird problem. How do
you change the html template?

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

 I had a problem like this when I moved to my new computer last week.
 Inexplicably, changing the html template to include the parameter
wmode =
 opaque fixed it.  I agree this doesn't make any sense, but
according to
 googling it has worked for other people and it worked for me.
 
 - Daniel Freiman
 
 On Sun, Jul 20, 2008 at 2:43 AM, kenny14390 [EMAIL PROTECTED] wrote:
 
In both Eclipse and Flex Builder 3, the Debug mode prematurely
  terminates. I have an error in my code, which isn't being picked up by
  the compiler, so it's hard to debug. Regardless of break points, the
  debugger will launch the app in the browser and then immediately
  terminate, not checking for any errors even though I'm getting them.
 
  Also, upon pressing the Debug button, the IDE used to automatically
  switch to Debug mode but not anymore. My code couldn't possibly screw
  up Eclipse's debugging mode, right? If both Eclipse and Flex Builder
  have this save behavior, is it even worth reinstalling?
 
   
 





[flexcoders] Re: Binding for Dynamic Datagrid

2008-07-20 Thread limhy0306
If that's the case,

how would set data() be called?
Previously, i've tried something similar; such as myDP.refresh()
- set data() is called



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

 in code it is grid.dataprovider = youDP;
 in mxml it's mx:whatever dataprovider ={myDP}/
 
 
 
 On Mon, Jul 14, 2008 at 3:35 PM, limhy0306 [EMAIL PROTECTED] wrote:
 
Hi,
 
  I discovered something peculiar about the behaviour of the item
  renderer for the datagrid.
 
  In my item renderer; which extends from label:
 
  public class myItemRenderer extends from Label
  {
  ..
 
  override public function set data(value:Object):void
  {
  super.data = value;
  updateStatus();
  }
  }
 
  In my DG:
  MyDG:  dataProvider={myData} ../
 
  When myData changes; i noticed that set data is not called.
 
  However, if I explicitly calls invalidateDisplayList() to redraw 
the
  regions,
 
  override protected function updateDisplayList(...):void
  {
  var list:ArrayCollection = super.data.list;
 
  
  }
 
  The set data was never called; but in updateDisplayList(); the
  super.data actually has the changed data!.
 
  Why is this so? Which function in this case actually sets the 
data?
 
  NOTE that myItemRenderer was created into the DG using a
  ClassFactory class.
  var colRendererFactory:ClassFactory = new ClassFactory
  (myItemRenderer);
 
  // dgc is a DataGridColumn
  dgc.itemRenderer = colRendererFactory;
 
  Thank you.
 
  regards,
  limhy
 
 
  --- In flexcoders@yahoogroups.com flexcoders%
40yahoogroups.com, Sid
  Maskit smaskit@ wrote:
  
   I believe that binding assignments need to use strings. Try:
  
   myDG.dataProvider={ myData }
  
   Hope that helps,
  
   Sid
   http://CraftySpace.com
  
   --- In flexcoders@yahoogroups.com flexcoders%
40yahoogroups.com,
  limhy0306 limhy0306@ wrote:
   
Hi,
   
I've tried using the suggestion:
   
myDG.dataProvider={ myData }
   
But compilation has syntax errors: rightbrace is unexpected.
   
   
   
Also, I've read about the binding regarding changes to the
  property
for the ArrayCollection; that we need to use itemUpdated to
  inform
about changes to the list.
   
Basically the myData is a list of a class: MyClass.
   
public class MyClass
{
private var _evt:ArrayCollection;
   
...
}
   
The var _evt changes in real-time  this changes need to be
refreshed in the Datagrid.
   
However, not all instances of MyClass stored in myData 
changes.
In this case, I only want to redraw parts of the Datagrid 
that
changes only.
   
Thank you.
   
Regards.
   
   
--- In flexcoders@yahoogroups.com flexcoders%
40yahoogroups.com,
  Simon Bailey Nutrix@ wrote:

 myDG.dataProvider={ myData }

 On 7 Jul 2008, at 16:26, limhy0306 wrote:

 Hi,

 I've created a custom Dynamic Datagrid component. I would 
like
  to
 ask, how can I bind data to this DG?

 My codes:

 // Data to the datagrid. This data is dynamically changing.
 [Bindable]
 public var myData:ArrayCollection();

 public var myDG:MyDG;

 // Called when creationComplete
 private function init()
 {
 myDG = new MyDG();
 myDG.createDataGrid(); // Create the datagrid
 myDG.dataProvider = myData; //Would this bind the data?
 this.addChild(myDG);
 }

 I've noticed that when myData changed, myDG is not 
updated. In
fact,
 the set data() function of the ItemRenderer used in myDG 
is not
 being called when I call myData.refresh().

 Is it the problem that I am not binding myDG correctly?

 Thank you.

   
  
 
   
 
 
 
 
 -- 
 j:pn
 \\no comment





[flexcoders] Re: Performance profile strangeness

2008-07-20 Thread Mike
Thanks, yes it's the debug player... nice link.

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

 even better
 http://flashplayerversion.com/
 
 
 nice!
 
 DK
 
 
 On Sat, Jul 19, 2008 at 4:02 PM, Douglas Knudsen
 [EMAIL PROTECTED] wrote:
  double check that you are using the debug player too
  http://kb.adobe.com/selfservice/viewContent.do?externalId=tn_19245
  some updates have a mysterious way of switching to the release player
  I've noticed.
 
  DK
 
  On Fri, Jul 18, 2008 at 6:02 PM, Mike [EMAIL PROTECTED] wrote:
  9,0,115,0 ... the one that came with my copy of Flex Builder 3.
 
  --- In flexcoders@yahoogroups.com, Alex Harui aharui@ wrote:
 
  Which version of the player are you using?
 
 
 
  
 
  From: flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] On
  Behalf Of Mike
  Sent: Friday, July 18, 2008 1:02 PM
  To: flexcoders@yahoogroups.com
  Subject: [flexcoders] Re: Performance profile strangeness
 
 
 
  I went back to the default filters, no change.
 
  I see all of my methods as zero time... it would be nice if it were
  that fast :-)
 
  --- In flexcoders@yahoogroups.com
mailto:flexcoders%40yahoogroups.com
  , Mike mike@ wrote:
  
   No, no filters.
  
   I've removed the flash.*.*  mx.*.* filters as well... I'm
pretty sure
   what I'm looking for is at that level. I'll try a new run
re-enabling
   these... maybe I'm overwhelming the profiler.
  
   Does the profiler have an error log? I'm not finding anything that
   looks likely.
  
  
   --- In flexcoders@yahoogroups.com
  mailto:flexcoders%40yahoogroups.com , Gaurav. Jain
gauravj@ wrote:
   
Do you have any filters applied?
   
Thanks,
Gaurav
   
-Original Message-
From: flexcoders@yahoogroups.com
  mailto:flexcoders%40yahoogroups.com
  [mailto:flexcoders@yahoogroups.com
mailto:flexcoders%40yahoogroups.com
  ] On
Behalf Of Mike
Sent: Friday, July 18, 2008 2:58 PM
To: flexcoders@yahoogroups.com
mailto:flexcoders%40yahoogroups.com
 
Subject: [flexcoders] Re: Performance profile strangeness
   
Legitimate question... I just re-ran twice (once IE  once
FF) to
  make
sure I had the box checked... yes, it's checked.
   
What throws me is that memory profiling is fine, and I do get a
Performance Profile that shows all of the called methods and the
number times the methods are called... just no timing
statistics and
the Method Statistics drill-down is empty (no callers or
callees.
   
It's strange.
   
--- In flexcoders@yahoogroups.com
  mailto:flexcoders%40yahoogroups.com , Alex Harui aharui@
wrote:

 You did check the box to actually profile performance when you
  started
 up the profiler right?



 

 From: flexcoders@yahoogroups.com
  mailto:flexcoders%40yahoogroups.com
  [mailto:flexcoders@yahoogroups.com
mailto:flexcoders%40yahoogroups.com
  ]
On
 Behalf Of Mike
 Sent: Friday, July 18, 2008 4:47 AM
 To: flexcoders@yahoogroups.com
  mailto:flexcoders%40yahoogroups.com
 Subject: [flexcoders] Performance profile strangeness



 I profiled my app and the only way I can see any method level
  activity
 in the Performance Profile is to select 'Show zero time
methods'.

 It shows the number of times a method is called but all of the
  timing
 columns are zero. Memory profiling looks fine.

 Any ideas?

 Thanks-- Mike

   
   
   

   
--
Flexcoders Mailing List
FAQ:
  http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
  http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives:
http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo
  http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo
! Groups
Links
   
  
 
 
  
 
 
 
  --
  Douglas Knudsen
  http://www.cubicleman.com
  this is my signature, like it?
 
 
 
 
 -- 
 Douglas Knudsen
 http://www.cubicleman.com
 this is my signature, like it?





[flexcoders] RE: Loop creator

2008-07-20 Thread acintron421
I'm looking into building a loop manipulator application. I basically
want to take 10 preset loops and place them on a time track. Each,
loop can be placed before or after another loop. I then want to
combine the entire track and export as an mp3, is this possible via
ActionScript, or do I need another language to encode MP3's?

Anthony



[flexcoders] Bake XML File into ActionScript

2008-07-20 Thread edlueze
What's the best way to compile an XML file directly into ActionScript?

You can assign an XML literal to a variable as such:

var novel:XML = BOOKTITLEMy Book/TITLE/BOOK

But it would be much better to have the XML in an externally managed
file. I'd much prefer to do something like:

var novel:XML = {include Books.xml;};

But this doesn't seem to be allowed.

I could load the XML file at runtime but then I'd have to deal with
the asynchronous nature of the loading and I'd have to handle any
runtime errors if there was a problem - yuck!

If I was working in MXML I'd be able to do something very elegant such
as using the compile-time tag mx:XML id=MyBooks source=books.xml/

So how do I include XML into ActionScript in a way that is as elegant
as it is for MXML?



[flexcoders] ADG MultipleRows FilterFunction

2008-07-20 Thread Don Kerr
How do I allow the user to select multiple rows (by holding down CTRL
or SHIFT) and when they are done making selections, fire an event to
execute a filterfunction within the same ADG?  

I'm trying to allow the user to filter down a grid data to only show
all the rows they just selected.

With the ADG selectmode=multipleRows and allowMultipleSelection =true,
this works fine in the ADG without the event.

If I use the change event, it filters the data down to only the first
row selected. I need it to wait until all row selections are made...so
change doesn't appear to be the correct event to use.

I've tried the ADG's keyUp KeyboardEvent 

keyUp=myKeyUpHandler(event)


public function myKeyUpHandler(event:KeyboardEvent):void
{
  if (event.ctrlKey || event.shiftKey)
{
filterSelected();
}

But, event.ctrlKey being released always traces as false and it never
runs my filter???

Is using the keyboardevent on keyup the best way to do this? Why
doesn't it detect ctrlKey or shiftKey release?

I thought there might be a built-in ADG way to filter down a
dataProvider to only show the selected rows. Don't know.

In my case, The user runs reports but wants to only show selected
items in the report. My filter below works, but I need to pass all
selectitems items to it when the user is done.

Any suggestions?
Thanks,
Don

 
public function filterSelected():void {
riskDP.filterFunction = processSelectedFilter;
riskDP.refresh();
}
public function processSelectedFilter(item:Object):Boolean {

  var result:Boolean=false;
for ( var i:int=0; i
riskDG.selectedItems.length; i++ ) {
if(item.Number == 
riskDG.selectedItems[i].Number){
result = true;
}   
}
return result;  

}





RE: [flexcoders] Bake XML File into ActionScript

2008-07-20 Thread Randy Martin
You can include an ActionScript file in it's own script block. Then in the
.as file, you could just have the XML defined and nothing else.
 
// put this in books.as -- or whatever filename you choose
private var novel:XML = BOOKTITLEMy Book/TITLE/BOOK;
 
?xml version=1.0 encoding=utf-8?
mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=absolute
  mx:Script source=books.as/

... rest of your code

/mx:Application

HTH,
~randy


   _  

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of edlueze
Sent: Sunday, July 20, 2008 11:02 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Bake XML File into ActionScript



What's the best way to compile an XML file directly into ActionScript?

You can assign an XML literal to a variable as such:

var novel:XML = BOOKTITLE-My Book/TITLE-/BOOK

But it would be much better to have the XML in an externally managed
file. I'd much prefer to do something like:

var novel:XML = {include Books.xml;-};

But this doesn't seem to be allowed.

I could load the XML file at runtime but then I'd have to deal with
the asynchronous nature of the loading and I'd have to handle any
runtime errors if there was a problem - yuck!

If I was working in MXML I'd be able to do something very elegant such
as using the compile-time tag mx:XML id=MyBooks source=books.-xml/

So how do I include XML into ActionScript in a way that is as elegant
as it is for MXML?



 


No virus found in this outgoing message.
Checked by AVG. 
Version: 7.5.523 / Virus Database: 270.5.2/1562 - Release Date: 7/19/2008
2:01 PM
 


[flexcoders] Re: Flash USB-API :)

2008-07-20 Thread Cato Paus
hm yes, we need to vote for it, I have filed a fr 
so go and vote 
https://bugs.adobe.com/jira/browse/FP-247 

I suspect that we will have it, probably something that wil come a 
long with the OpenScreen Project. So we dont have to start writing 
code to PS3, WII and so on! Just a thought :)

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

 Then use Merapi - if it is important to you. but just because it is
 important to you doesn't mean that the development cost is 
justifiable. If
 this isn't the 'solution' that you hope for. make a case - submit 
it as a
 feature request to Adobe and try to garner some support for the 
feature.
 
  
 
 R
 
  
 
  
 
 From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On
 Behalf Of dorkie dork from dorktown
 Sent: Saturday, July 19, 2008 7:10 PM
 To: flexcoders@yahoogroups.com
 Subject: Re: [flexcoders] Re: Flash USB-API :)
 
  
 
 @Rick - That doesn't really help solve the problem. And because it 
doesn't
 exist or it would be difficult isn't a reason for not including it. 
People
 still have applications that need to be built that include this 
support. 
 
 dorkie a little bit late to the conversation dork from dorktown
 
 On Tue, May 27, 2008 at 9:31 PM, Rick Winscot [EMAIL PROTECTED]
 wrote:
 
 Before we go too much further with this - it would be beneficial to
 recognize that there is no such thing as a Generic USB Protocol 
that will
 give everyone blanket communications with usb devices. every device 
has a
 specific implementation that would have to be 'handled' in Flex/AIR 
similar
 to what Adobe has done with web-cams. They could use HID (Human 
Interface
 Device) I suppose but that is what the mouse/keyboard is for! If 
you need
 something very specific  like joystick control in your app - you 
have more
 than enough (a wealth of) tools at your disposal to make it happen. 
Have you
 considered joystick emulation?
 
  
 
 NTPAD
 
 http://www.ntpad.com.ar/index.php?page=downloadseng.php
 http://www.ntpad.com.ar/index.php?page=downloadseng.phplang=eng 
lang=eng
 
 
  
 
 JoyEmu (personal fav)
 
 http://members.tripod.com/~szanella/joyemueng.htm
 http://members.tripod.com/%7Eszanella/joyemueng.htm 
 
  
 
 JoyToKey
 
 http://www.electracode.com/4/joy2key/JoyToKey%20English%
20Version.htm
 
  
 
  
 
 Rick Winscot
 
  
 
  
 
 From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On
 Behalf Of Cosma
 Sent: Tuesday, May 27, 2008 3:47 AM
 
 
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Re: Flash USB-API :)
 
  
 
 Why don't you use a signed java applet? You could simply load it in
 the wrapper html file (with size set to 0, if you don't want that 
java
 swing stuff in your UI), and then interact with it using the flex
 ExternalInterface and applet's NSObject.
 
 I use this solution to allow direct TWAIN image scanning in my Flex
 application. The only problem with it is that the ExternalInterface
 doesn't seem very reliable for exchanging more than small simple
 variables - very long strings and binary data seems to cause 
troubles.
 
 Here is an interesting blog post on this topic:
 
 http://tobiaspatton.wordpress.com/2007/08/29/using-a-signed-java-
applet-as-a
 -flex-helper-part-1/
 
 Bye
 Cosma
 
 --- In flexcoders@yahoogroups.com mailto:flexcoders%
40yahoogroups.com ,
 Cato Paus cato1@ wrote:
 
  Hi I know abouth the MerApi 
http://www.merapiproject.net/index.php, 
  but My use-case is: I'm developing a TV-FlexApplication for a 
  cutsomer that wants to use a tv remote controller to change the 
  channels that I'm stremaing form satelitte or cabel. The point of 
  using Flex/flash is that I have all under my controll (The app) 
and 
  the customer will allvays have the last build of the app. 
  
  To day flash player have connection to several USB devises, USB 
  Camare and microphone!! Why not extend this a litle more :)
  
  
  --- In flexcoders@yahoogroups.com mailto:flexcoders%
40yahoogroups.com ,
 Rick Winscot rick.winscot@ 
  wrote:
  
   There is an obvious solution:
   
   Flex/AIR - Web Services (or similar) - USB
   
   ... but _direct_ communication with USB? I'm stumped as to why 
you 
  would
   even need something like this. What is your use case? 
   
   Rick Winscot
   
   
   From: flexcoders@yahoogroups.com mailto:flexcoders%
40yahoogroups.com  
  [mailto:flexcoders@yahoogroups.com mailto:flexcoders%
40yahoogroups.com ]
 On
   Behalf Of Cato Paus
   Sent: Friday, May 23, 2008 9:35 AM
   To: flexcoders@yahoogroups.com mailto:flexcoders%
40yahoogroups.com 
   Subject: [flexcoders] Re: Flash USB-API :)
   
   Hehe Totaly Agree with you on Joe Random, but I put my trust on 
  Adobe 
   to find a solution :) 
   
   --- In flexcoders@yahoogroups.com mailto:flexcoders%
40yahoogroups.com
 mailto:flexcoders% mailto:flexcoders%25 
  40yahoogroups.com ,
   Tom Chiverton tom.chiverton@ 
   wrote:
   
On Thursday 22 May 2008, Cato Paus wrote:
 I realy hope we can have USB communication in AIR and 

[flexcoders] air sqlite example with BLOB datatype

2008-07-20 Thread sudha_bsb
Hi,

Can someone share a simple example on how to store and retrieve the
BLOB data from SqLite using AIR. I want to store images in the
database using BLOB type, retrieve them and show them as images.

Please help,

Thanks,
Sudha.



Re: [flexcoders] Re: Debug Mode Prematurely Terminating

2008-07-20 Thread Daniel Freiman
In your project in Flex Builder there should be an html-template folder
with a file index.template.html.  It's a normal html file except that it
has some ${var} style includes (which you can ignore for now).  Find the
second AC_FL_RunContent javascript call in the file (the first takes care
of the flash player update, the second one is for your swf), and just add
the aforementioned wmode, opaque pair to the list passed to the call.
So your code may end up looking like:

AC_FL_RunContent(
src, playerProductInstall,
FlashVars,
MMredirectURL=+MMredirectURL+'MMplayerType='+MMPlayerType+'MMdoctitle='+MMdoctitle+,
width, ${width},
height, ${height},
align, middle,
id, ${application},
quality, high,
bgcolor, ${bgcolor},
name, ${application},
wmode, opaque,
allowScriptAccess,sameDomain,
type, application/x-shockwave-flash,
pluginspage, http://www.adobe.com/go/getflashplayer;
);

You may need to do a project clean after that (I don't remember if the
changes will automatically pass through). More complete info can be found
here: http://livedocs.adobe.com/flex/3/html/wrapper_01.html

- Daniel Freiman

On Sun, Jul 20, 2008 at 10:42 AM, kenny14390 [EMAIL PROTECTED] wrote:

   I'm glad to hear I'm not the only one with this weird problem. How do
 you change the html template?


 --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Daniel
 Freiman [EMAIL PROTECTED] wrote:
 
  I had a problem like this when I moved to my new computer last week.
  Inexplicably, changing the html template to include the parameter
 wmode =
  opaque fixed it. I agree this doesn't make any sense, but
 according to
  googling it has worked for other people and it worked for me.
 
  - Daniel Freiman
 
  On Sun, Jul 20, 2008 at 2:43 AM, kenny14390 [EMAIL PROTECTED] wrote:
 
   In both Eclipse and Flex Builder 3, the Debug mode prematurely
   terminates. I have an error in my code, which isn't being picked up by
   the compiler, so it's hard to debug. Regardless of break points, the
   debugger will launch the app in the browser and then immediately
   terminate, not checking for any errors even though I'm getting them.
  
   Also, upon pressing the Debug button, the IDE used to automatically
   switch to Debug mode but not anymore. My code couldn't possibly screw
   up Eclipse's debugging mode, right? If both Eclipse and Flex Builder
   have this save behavior, is it even worth reinstalling?
  
  
  
 

  



[flexcoders] Re: ADG MultipleRows FilterFunction

2008-07-20 Thread Don Kerr
Nevermind...I got it working with this...
[unless there is a more elegant way?]


keyUp=myKeyUpHandler(event)

public function myKeyUpHandler(event:KeyboardEvent):void
 {
 if (!event.ctrlKey  !event.shiftKey)
 {
filterSelected();}
}

public function filterSelected():void {
riskDP.filterFunction = processSelectedFilter;
riskDP.refresh();
}

public function processSelectedFilter(item:Object):Boolean {
var result:Boolean=false;
for ( var i:String in riskDG.selectedItems) {
if(item.Number == riskDG.selectedItems[i].Number){
result = true;
}   
}
return result;  

}



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

 How do I allow the user to select multiple rows (by holding down CTRL
 or SHIFT) and when they are done making selections, fire an event to
 execute a filterfunction within the same ADG?  
 
 I'm trying to allow the user to filter down a grid data to only show
 all the rows they just selected.
 
 With the ADG selectmode=multipleRows and allowMultipleSelection =true,
 this works fine in the ADG without the event.
 
 If I use the change event, it filters the data down to only the first
 row selected. I need it to wait until all row selections are made...so
 change doesn't appear to be the correct event to use.
 
 I've tried the ADG's keyUp KeyboardEvent 
 
 keyUp=myKeyUpHandler(event)
 
 
 public function myKeyUpHandler(event:KeyboardEvent):void
 {
   if (event.ctrlKey || event.shiftKey)
 {
   filterSelected();
 }
 
 But, event.ctrlKey being released always traces as false and it never
 runs my filter???
 
 Is using the keyboardevent on keyup the best way to do this? Why
 doesn't it detect ctrlKey or shiftKey release?
 
 I thought there might be a built-in ADG way to filter down a
 dataProvider to only show the selected rows. Don't know.
 
 In my case, The user runs reports but wants to only show selected
 items in the report. My filter below works, but I need to pass all
 selectitems items to it when the user is done.
 
 Any suggestions?
 Thanks,
 Don
 

 public function filterSelected():void {
   riskDP.filterFunction = processSelectedFilter;
   riskDP.refresh();
   }
 public function processSelectedFilter(item:Object):Boolean {
   
 var result:Boolean=false;
   for ( var i:int=0; i
 riskDG.selectedItems.length; i++ ) {
   if(item.Number == 
 riskDG.selectedItems[i].Number){
   result = true;
   }   
   }
   return result;  
   
   }





[flexcoders] Re: Bake XML File into ActionScript

2008-07-20 Thread edlueze
Hi Randy - thanks for the feedback!

I was hoping to find a way to preserve the XML file without
contaminating it with the private var novel:XML =  bit. That way I
can create the XML file using my favorite XML generator (and use a
validating XSD schema to make sure everything is correct). When the
XML file looks good I can simply drop it into my Flex project -
overriding the previous XML file - and everything should just compile.

That approach would work if I was working in MXML using the mx:XML
id=MyBooks source=books.xml/ tag. I was hoping there was an
equivalent way to do it when working purely with ActionScript .as files.

Any ideas?

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

 You can include an ActionScript file in it's own script block. Then
in the
 .as file, you could just have the XML defined and nothing else.
  
 // put this in books.as -- or whatever filename you choose
 private var novel:XML = BOOKTITLEMy Book/TITLE/BOOK;
  
 ?xml version=1.0 encoding=utf-8?
 mx:Application xmlns:mx=http://www.adobe.com/2006/mxml;
layout=absolute
   mx:Script source=books.as/
 
 ... rest of your code
 
 /mx:Application
 
 HTH,
 ~randy
 
 
_  
 
 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
 Behalf Of edlueze
 Sent: Sunday, July 20, 2008 11:02 AM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Bake XML File into ActionScript
 
 
 
 What's the best way to compile an XML file directly into ActionScript?
 
 You can assign an XML literal to a variable as such:
 
 var novel:XML = BOOKTITLE-My Book/TITLE-/BOOK
 
 But it would be much better to have the XML in an externally managed
 file. I'd much prefer to do something like:
 
 var novel:XML = {include Books.xml;-};
 
 But this doesn't seem to be allowed.
 
 I could load the XML file at runtime but then I'd have to deal with
 the asynchronous nature of the loading and I'd have to handle any
 runtime errors if there was a problem - yuck!
 
 If I was working in MXML I'd be able to do something very elegant such
 as using the compile-time tag mx:XML id=MyBooks source=books.-xml/
 
 So how do I include XML into ActionScript in a way that is as elegant
 as it is for MXML?
 
 
 
  
 
 
 No virus found in this outgoing message.
 Checked by AVG. 
 Version: 7.5.523 / Virus Database: 270.5.2/1562 - Release Date:
7/19/2008
 2:01 PM





RE: [flexcoders] Re: Bake XML File into ActionScript

2008-07-20 Thread Randy Martin
I'd just read the XML file in using HttpService.
 
~randy


   _  

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of edlueze
Sent: Sunday, July 20, 2008 1:22 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Bake XML File into ActionScript



Hi Randy - thanks for the feedback!

I was hoping to find a way to preserve the XML file without
contaminating it with the private var novel:XML =  bit. That way I
can create the XML file using my favorite XML generator (and use a
validating XSD schema to make sure everything is correct). When the
XML file looks good I can simply drop it into my Flex project -
overriding the previous XML file - and everything should just compile.

That approach would work if I was working in MXML using the mx:XML
id=MyBooks source=books.-xml/ tag. I was hoping there was an
equivalent way to do it when working purely with ActionScript .as files.

Any ideas?

--- In HYPERLINK
mailto:flexcoders%40yahoogroups.com[EMAIL PROTECTED], Randy
Martin [EMAIL PROTECTED] wrote:

 You can include an ActionScript file in it's own script block. Then
in the
 .as file, you could just have the XML defined and nothing else.
 
 // put this in books.as -- or whatever filename you choose
 private var novel:XML = BOOKTITLE-My Book/TITLE-/BOOK;
 
 ?xml version=1.0 encoding=utf--8?
 mx:Application xmlns:mx=HYPERLINK
http://www.adobe.com/2006/mxmlhttp://www.adobe.-com/2006/-mxml;
layout=absolute-
 mx:Script source=books.-as/
 
 ... rest of your code
 
 /mx:Application
 
 HTH,
 ~randy
 
 
 _ 
 
 From: HYPERLINK
mailto:flexcoders%40yahoogroups.com[EMAIL PROTECTED]
[mailto:HYPERLINK
mailto:flexcoders%40yahoogroups.com[EMAIL PROTECTED] On
 Behalf Of edlueze
 Sent: Sunday, July 20, 2008 11:02 AM
 To: HYPERLINK
mailto:flexcoders%40yahoogroups.com[EMAIL PROTECTED]
 Subject: [flexcoders] Bake XML File into ActionScript
 
 
 
 What's the best way to compile an XML file directly into ActionScript?
 
 You can assign an XML literal to a variable as such:
 
 var novel:XML = BOOKTITLE--My Book/TITLE--/BOOK
 
 But it would be much better to have the XML in an externally managed
 file. I'd much prefer to do something like:
 
 var novel:XML = {include Books.xml;--};
 
 But this doesn't seem to be allowed.
 
 I could load the XML file at runtime but then I'd have to deal with
 the asynchronous nature of the loading and I'd have to handle any
 runtime errors if there was a problem - yuck!
 
 If I was working in MXML I'd be able to do something very elegant such
 as using the compile-time tag mx:XML id=MyBooks source=books.--xml/
 
 So how do I include XML into ActionScript in a way that is as elegant
 as it is for MXML?
 
 
 
 
 
 
 No virus found in this outgoing message.
 Checked by AVG. 
 Version: 7.5.523 / Virus Database: 270.5.2/1562 - Release Date:
7/19/2008
 2:01 PM




 


No virus found in this outgoing message.
Checked by AVG. 
Version: 7.5.523 / Virus Database: 270.5.2/1562 - Release Date: 7/19/2008
2:01 PM
 


[flexcoders] Showing ContextMenu conditionally

2008-07-20 Thread markgoldin_2000
I have desgined ContextMenu for DG which pops up every time the user 
user uses right mouse click, but now they want to see the ContextMenu 
only if a cell has a value. How can supress it in case the cell does 
not have a value?

Thanks



[flexcoders] Re: Bake XML File into ActionScript

2008-07-20 Thread edlueze
Yeah - that's what I'm currently doing. But that's a runtime solution
- I was hoping for a compile-time solution.

Thanks anyway!!

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

 I'd just read the XML file in using HttpService.
  
 ~randy
 
 
_  
 
 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
 Behalf Of edlueze
 Sent: Sunday, July 20, 2008 1:22 PM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Re: Bake XML File into ActionScript
 
 
 
 Hi Randy - thanks for the feedback!
 
 I was hoping to find a way to preserve the XML file without
 contaminating it with the private var novel:XML =  bit. That way I
 can create the XML file using my favorite XML generator (and use a
 validating XSD schema to make sure everything is correct). When the
 XML file looks good I can simply drop it into my Flex project -
 overriding the previous XML file - and everything should just compile.
 
 That approach would work if I was working in MXML using the mx:XML
 id=MyBooks source=books.-xml/ tag. I was hoping there was an
 equivalent way to do it when working purely with ActionScript .as files.
 
 Any ideas?
 
 --- In HYPERLINK
 mailto:flexcoders%40yahoogroups.com[EMAIL PROTECTED], Randy
 Martin randy@ wrote:
 
  You can include an ActionScript file in it's own script block. Then
 in the
  .as file, you could just have the XML defined and nothing else.
  
  // put this in books.as -- or whatever filename you choose
  private var novel:XML = BOOKTITLE-My Book/TITLE-/BOOK;
  
  ?xml version=1.0 encoding=utf--8?
  mx:Application xmlns:mx=HYPERLINK
 http://www.adobe.com/2006/mxmlhttp://www.adobe.-com/2006/-mxml;
 layout=absolute-
  mx:Script source=books.-as/
  
  ... rest of your code
  
  /mx:Application
  
  HTH,
  ~randy
  
  
  _ 
  
  From: HYPERLINK
 mailto:flexcoders%40yahoogroups.com[EMAIL PROTECTED]
 [mailto:HYPERLINK
 mailto:flexcoders%40yahoogroups.com[EMAIL PROTECTED] On
  Behalf Of edlueze
  Sent: Sunday, July 20, 2008 11:02 AM
  To: HYPERLINK
 mailto:flexcoders%40yahoogroups.com[EMAIL PROTECTED]
  Subject: [flexcoders] Bake XML File into ActionScript
  
  
  
  What's the best way to compile an XML file directly into ActionScript?
  
  You can assign an XML literal to a variable as such:
  
  var novel:XML = BOOKTITLE--My Book/TITLE--/BOOK
  
  But it would be much better to have the XML in an externally managed
  file. I'd much prefer to do something like:
  
  var novel:XML = {include Books.xml;--};
  
  But this doesn't seem to be allowed.
  
  I could load the XML file at runtime but then I'd have to deal with
  the asynchronous nature of the loading and I'd have to handle any
  runtime errors if there was a problem - yuck!
  
  If I was working in MXML I'd be able to do something very elegant such
  as using the compile-time tag mx:XML id=MyBooks
source=books.--xml/
  
  So how do I include XML into ActionScript in a way that is as elegant
  as it is for MXML?
  
  
  
  
  
  
  No virus found in this outgoing message.
  Checked by AVG. 
  Version: 7.5.523 / Virus Database: 270.5.2/1562 - Release Date:
 7/19/2008
  2:01 PM
 
 
 
 
  
 
 
 No virus found in this outgoing message.
 Checked by AVG. 
 Version: 7.5.523 / Virus Database: 270.5.2/1562 - Release Date:
7/19/2008
 2:01 PM





[flexcoders] Re: (OT) need a US state selector component

2008-07-20 Thread benjidudu
http://www.ilog.com/products/ilogelixir/

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

 Anyone know of a good US state selector component where you can pick
a state
 from the map, or set a 'selected' state problematically? I found a
few but
 they were all geared to be embedded into an html page and written
for Flash
 7 or 8. I need a good one I can drop into my Flex project and talk
back and
 forth to it. If I was going to pay for something like this, I wanted
to make
 sure it's gravy first. Any suggestions?
 
 
 Thanks!
 ~Aaron





[flexcoders] Stop execution till Popup is closed

2008-07-20 Thread kroghadam
Hi, 

I am trying to create a button that when clicked shows a popup, the
user then enters information into this popup and clicks create. My
main application then takes this information creates an object and
uses it as a data provider to show a node on a graph. 
The problem I am having is that when I show the popup code is still
executed in the parent, which is not what I would like. I would only
like to create and show the object if the user clicked create in the
popup and not do anything if he clicks cancel. 

This is the function called when the user selects new:

private function newItem(): void {
var item: Item = new Item();
var newProj:newProject =
newProject(PopUpManager.createPopUp(this,newProject,true));
PopUpManager.centerPopUp(newProj);
//This is where i would like to pause till the user clicks a
button in the popup
item.data = newProj.project;
g.add(item);
s.dataProvider = g;
}   

Is there anyway to do this? Should I be using somethin different in my
event handlers in my popup then just closing the popup?
Any help would be appreciated!

-Adam



RE: [flexcoders] Stop execution till Popup is closed

2008-07-20 Thread Rick Winscot
So. you probably should revisit your event cycle something like:

 

# popup your dialog

# attach a custom event listener to your dialog (see below)

# take the information in your dialog

# dispatch a custom event (enclose the data provided in the dialog) when the
user clicks save

# handle this event in your app - and add the new data to your provider

 

Rick Winscot

 

 

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of kroghadam
Sent: Sunday, July 20, 2008 8:29 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Stop execution till Popup is closed

 

Hi, 

I am trying to create a button that when clicked shows a popup, the
user then enters information into this popup and clicks create. My
main application then takes this information creates an object and
uses it as a data provider to show a node on a graph. 
The problem I am having is that when I show the popup code is still
executed in the parent, which is not what I would like. I would only
like to create and show the object if the user clicked create in the
popup and not do anything if he clicks cancel. 

This is the function called when the user selects new:

private function newItem(): void {
var item: Item = new Item();
var newProj:newProject =
newProject(PopUpManager.createPopUp(this,newProject,true));
PopUpManager.centerPopUp(newProj);
//This is where i would like to pause till the user clicks a
button in the popup
item.data = newProj.project; 
g.add(item);
s.dataProvider = g;
} 

Is there anyway to do this? Should I be using somethin different in my
event handlers in my popup then just closing the popup?
Any help would be appreciated!

-Adam

 



RE: [flexcoders] RE: Loop creator

2008-07-20 Thread Rick Winscot
Anthony - I'm a long time user/fan of Fruity Loops. Is this 'kind-of' what
you are doing? If so, you've probably found that loading samples is no big.
Repeating the samples is a little harder (due to timing accuracy) but still
no big. Where you are going to hit some practicality issues is around
maintaining a virtual timeline and actively merging/mixing everything down.
It is theoretically possible to do what you are proposing - but highly
unlikely. since these kinds of operations are super cpu intensive and
typically done on the server side. Even if you were able to handle all of
the encoding/decoding and file management issues - the projected size of
your audio files will likely be a problem unless you are doing something
with sample rates... which opens another can of worms.

 

Rick Winscot

 

 

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of acintron421
Sent: Sunday, July 20, 2008 9:52 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] RE: Loop creator

 

I'm looking into building a loop manipulator application. I basically
want to take 10 preset loops and place them on a time track. Each,
loop can be placed before or after another loop. I then want to
combine the entire track and export as an mp3, is this possible via
ActionScript, or do I need another language to encode MP3's?

Anthony

 



RE: [flexcoders] Re: Bake XML File into ActionScript

2008-07-20 Thread Alex Harui
You might be able to embed it.

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of edlueze
Sent: Sunday, July 20, 2008 11:22 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Bake XML File into ActionScript

 

Hi Randy - thanks for the feedback!

I was hoping to find a way to preserve the XML file without
contaminating it with the private var novel:XML =  bit. That way I
can create the XML file using my favorite XML generator (and use a
validating XSD schema to make sure everything is correct). When the
XML file looks good I can simply drop it into my Flex project -
overriding the previous XML file - and everything should just compile.

That approach would work if I was working in MXML using the mx:XML
id=MyBooks source=books.xml/ tag. I was hoping there was an
equivalent way to do it when working purely with ActionScript .as files.

Any ideas?

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

 You can include an ActionScript file in it's own script block. Then
in the
 .as file, you could just have the XML defined and nothing else.
 
 // put this in books.as -- or whatever filename you choose
 private var novel:XML = BOOKTITLEMy Book/TITLE/BOOK;
 
 ?xml version=1.0 encoding=utf-8?
 mx:Application xmlns:mx=http://www.adobe.com/2006/mxml
http://www.adobe.com/2006/mxml 
layout=absolute
 mx:Script source=books.as/
 
 ... rest of your code
 
 /mx:Application
 
 HTH,
 ~randy
 
 
 _ 
 
 From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
[mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
] On
 Behalf Of edlueze
 Sent: Sunday, July 20, 2008 11:02 AM
 To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com 
 Subject: [flexcoders] Bake XML File into ActionScript
 
 
 
 What's the best way to compile an XML file directly into ActionScript?
 
 You can assign an XML literal to a variable as such:
 
 var novel:XML = BOOKTITLE-My Book/TITLE-/BOOK
 
 But it would be much better to have the XML in an externally managed
 file. I'd much prefer to do something like:
 
 var novel:XML = {include Books.xml;-};
 
 But this doesn't seem to be allowed.
 
 I could load the XML file at runtime but then I'd have to deal with
 the asynchronous nature of the loading and I'd have to handle any
 runtime errors if there was a problem - yuck!
 
 If I was working in MXML I'd be able to do something very elegant such
 as using the compile-time tag mx:XML id=MyBooks
source=books.-xml/
 
 So how do I include XML into ActionScript in a way that is as elegant
 as it is for MXML?
 
 
 
 
 
 
 No virus found in this outgoing message.
 Checked by AVG. 
 Version: 7.5.523 / Virus Database: 270.5.2/1562 - Release Date:
7/19/2008
 2:01 PM


 



RE: [flexcoders] datagrid item renderer on change

2008-07-20 Thread Alex Harui
Search our doc and the web.  There should be plenty of examples of using
ComboBox in a DG.

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of nathank000
Sent: Sunday, July 20, 2008 9:03 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] datagrid item renderer on change

 

first and foremost - thank you or taking the time to look over this
message and provide any input you might have.

I am broking from an example provided on the adobe site for a multiple
upload component. 

(http://www.adobe.com/devnet/coldfusion/articles/multifile_upload.html
http://www.adobe.com/devnet/coldfusion/articles/multifile_upload.html
)

In this example there is a datagrid that is dynamically generated, but
I need to add another couple of columns to make it work for my needs.
the role column is a column that will determine how the file being
uploaded will be treated on our servers once it is uploaded. I
*finally* figured out that I needed to use class factory (which I
don't fully understand) to add the combobox into the column as the
itemRenderer and how to set it's properties.

I am tying the combobox to an array that associates the file, it's
index in the datagrid, and it's role and in doing so I need to access
the combobox's change handler to update the array, but I am at a
loss on how to do so. My initial thought was to extend the combobox
class and add the hander in there - then associate the combobox with
the column - but I feel like I may be making the situation more
difficult than necessary. 

Any input is greatly appreciated, my code is below.
-Nathan

FlexFileUpload.mxml
?xml version=1.0 encoding=utf-8?
mx:Application xmlns:mx=http://www.adobe.com/2006/mxml
http://www.adobe.com/2006/mxml 
layout=vertical creationComplete=initApp(); alpha=1
themeColor=haloGreen backgroundGradientAlphas=[0.9, 0.96]
viewSourceURL=srcview/index.html backgroundGradientColors=[#00,
#70828f]


mx:Style source=assets/styles/main.css/

mx:Script source=FlexFileUpload_cb.as/

mx:Panel width=652 height=330 layout=absolute title=File
Upload Control id=uploadPanel verticalScrollPolicy=off
horizontalScrollPolicy=off

mx:DataGrid id=filesDG left=0 right=0 bottom=10
top=41 /
mx:ApplicationControlBar width=100%
mx:ProgressBar id=progressbar labelPlacement=center
trackHeight=15 height=20 width=276 fontSize=8
fontWeight=bold/
mx:Spacer width=100%/
mx:Button label=collapse id=collapseButton
click=collapseUploadWindow()/
/mx:ApplicationControlBar

mx:ControlBar

mx:Spacer width=100%/
mx:HBox
mx:Button label=Browse For Files id=browseBTN/
mx:Button label=Upload id=upload_btn/
mx:Button label=Remove id=delButton/
mx:Button label=Clear All id=clearButton/
/mx:HBox

/mx:ControlBar
/mx:Panel

/mx:Application

--
MultiFileUpload.as

///
//
// Multi-File Upload Component Ver 1.1
//
// Copyright (C) 2006 Ryan Favro and New Media Team Inc.
// This program is free software; you can redistribute it and/or
// modify it under the terms of the GNU General Public License
// as published by the Free Software Foundation; either version 2
// of the License, or (at your option) any later version.
// 
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
// 
// You should have received a copy of the GNU General Public License
// along with this program; if not, write to the Free Software
// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 
02110-1301, USA.
//
// Any questions about this component can be directed to it's author
Ryan Favro at [EMAIL PROTECTED] mailto:ryanfavro%40hotmail.com 
//
// To use this component create a new instance of this component and
give it ten parameters
//
// EXAMPLE:
//
// multiFileUpload = new MultiFileUpload(
// filesDG, // -- DataGrid component to show the cue'd files
// browseBTN, // -- Button componenent to be the browser button
// clearButton, // -- Button component to be the button that
removes all files from the cue
// delButton, //  -- Button component to be the button that
removes a single selected file from the cue
// upload_btn, // -- Button component to be the button that
triggers the actual file upload action
// progressbar, // -- ProgressBar Component that will show
the file upload progress in bytes
// http://[Your Server Here]/MultiFileUpload/upload.cfm, //
-- String Type the url to the server side upload component can be a
full domain or relative
// postVariables, //  -- URLVariables type that will contain
addition variables to accompany the upload
// 35, // -- Number type to set the max file size for
uploaded files in bytes. A value of 0 (zero) = no file limit
// filesToFilter //  -- Array 

[flexcoders] Re: Bake XML File into ActionScript

2008-07-20 Thread Tim Hoff

Hi,

Here's a way that you can embed an external xml file into your app:

[Embed('/data/myStubData.xml')]
private var myStubDataXML : Class;

private function onInitialize() : void {
 var myXML : XML = new XML( myStubDataXML.data );
}

-TH

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

 Yeah - that's what I'm currently doing. But that's a runtime solution
 - I was hoping for a compile-time solution.

 Thanks anyway!!

 --- In flexcoders@yahoogroups.com, Randy Martin randy@ wrote:
 
  I'd just read the XML file in using HttpService.
 
  ~randy
 
 
  _
 
  From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED]
On
  Behalf Of edlueze
  Sent: Sunday, July 20, 2008 1:22 PM
  To: flexcoders@yahoogroups.com
  Subject: [flexcoders] Re: Bake XML File into ActionScript
 
 
 
  Hi Randy - thanks for the feedback!
 
  I was hoping to find a way to preserve the XML file without
  contaminating it with the private var novel:XML =  bit. That way I
  can create the XML file using my favorite XML generator (and use a
  validating XSD schema to make sure everything is correct). When the
  XML file looks good I can simply drop it into my Flex project -
  overriding the previous XML file - and everything should just
compile.
 
  That approach would work if I was working in MXML using the mx:XML
  id=MyBooks source=books.-xml/ tag. I was hoping there was an
  equivalent way to do it when working purely with ActionScript .as
files.
 
  Any ideas?
 
  --- In HYPERLINK
  mailto:flexcoders%40yahoogroups.comflexcoders@, Randy
  Martin randy@ wrote:
  
   You can include an ActionScript file in it's own script block.
Then
  in the
   .as file, you could just have the XML defined and nothing else.
  
   // put this in books.as -- or whatever filename you choose
   private var novel:XML = BOOKTITLE-My Book/TITLE-/BOOK;
  
   ?xml version=1.0 encoding=utf--8?
   mx:Application xmlns:mx=HYPERLINK
  http://www.adobe.com/2006/mxmlhttp://www.adobe.-com/2006/-mxml;
  layout=absolute-
   mx:Script source=books.-as/
  
   ... rest of your code
  
   /mx:Application
  
   HTH,
   ~randy
  
  
   _
  
   From: HYPERLINK
  mailto:flexcoders%40yahoogroups.comflexcoders@
  [mailto:HYPERLINK
  mailto:flexcoders%40yahoogroups.com[EMAIL PROTECTED] On
   Behalf Of edlueze
   Sent: Sunday, July 20, 2008 11:02 AM
   To: HYPERLINK
  mailto:flexcoders%40yahoogroups.comflexcoders@
   Subject: [flexcoders] Bake XML File into ActionScript
  
  
  
   What's the best way to compile an XML file directly into
ActionScript?
  
   You can assign an XML literal to a variable as such:
  
   var novel:XML = BOOKTITLE--My Book/TITLE--/BOOK
  
   But it would be much better to have the XML in an externally
managed
   file. I'd much prefer to do something like:
  
   var novel:XML = {include Books.xml;--};
  
   But this doesn't seem to be allowed.
  
   I could load the XML file at runtime but then I'd have to deal
with
   the asynchronous nature of the loading and I'd have to handle any
   runtime errors if there was a problem - yuck!
  
   If I was working in MXML I'd be able to do something very elegant
such
   as using the compile-time tag mx:XML id=MyBooks
 source=books.--xml/
  
   So how do I include XML into ActionScript in a way that is as
elegant
   as it is for MXML?
  
  
  
  
  
  
   No virus found in this outgoing message.
   Checked by AVG.
   Version: 7.5.523 / Virus Database: 270.5.2/1562 - Release Date:
  7/19/2008
   2:01 PM
  
 
 
 
 
 
 
  No virus found in this outgoing message.
  Checked by AVG.
  Version: 7.5.523 / Virus Database: 270.5.2/1562 - Release Date:
 7/19/2008
  2:01 PM
 





RE: [flexcoders] controls not not loading..

2008-07-20 Thread Alex Harui
Make sure someone is setting the size of the control.  I'm not sure how
you are parenting it, but parents size their children in Flex so maybe
you have a custom parent that doesn't do the sizing.

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of [p e r c e p t i c o n]
Sent: Saturday, July 19, 2008 4:51 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] controls not not loading..

 

Hello Good People,

I've Extended TitleWindow and also created a corresponding mxml
component.  When I create it using mxml in my application it's created
with all of the controls i laid out
in the design view no problem, but when i try to create it dynamically
(new operator) none of the controls are loaded...can any one point me in
the right direction...i know there must be a way to do this...thanks
percy

 



RE: [flexcoders] Re: Aligning images in TileList itemRenderer

2008-07-20 Thread Alex Harui
No, the dimensions of each renderer will be the same.  You can tweak
where the image is displayed if it is too small, but if it is too large,
it'll probably just overlay something else.

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of lelander
Sent: Saturday, July 19, 2008 3:05 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Aligning images in TileList itemRenderer

 

HI Alex,
I'm using TileList. Can the image be contolled within the renderer so
that it appears that 
the images work with different heights, even though the renderer (vbox
in my case) is the 
same size?

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

 A tileLists renderers must all be the same width/height. Are you using
 List or TileList?
 
 
 
 
 
 From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
[mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
] On
 Behalf Of lelander
 Sent: Friday, July 18, 2008 6:56 PM
 To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com 
 Subject: [flexcoders] Aligning images in TileList itemRenderer
 
 
 
 Hello!
 I'm working on an app that allows users to drag variable height images
 from a List onto a 
 shelf; think of it as something like variable height spines of books
on
 a shelf. All the widths 
 can be the same. Can I align the images to bottom in my custom mxml
item
 renderer? When 
 I set verticalAlign=bottom in the item renderer, the images cut off
in
 the TileList.
 
 Thanks in advance for any insights you can give.
 JP


 



RE: [flexcoders] TextArea popup editor in DataGrid

2008-07-20 Thread Alex Harui
It uses PopUpManager

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Glenn Jones
Sent: Saturday, July 19, 2008 3:37 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] TextArea popup editor in DataGrid

 

Yes, I don't want the TA to fit within a single Row.

You're right - the case for TA at the bottom of a DG is a problem.
Today, the TA gets clipped,
so that's not good either.

The PopupButton doesn't have either problem. 

How does the PopUpButton popup?

On Fri, Jul 18, 2008 at 4:42 PM, Alex Harui [EMAIL PROTECTED]
mailto:[EMAIL PROTECTED]  wrote:

Well, you could popup a TextArea like PopUpButton does, but it sounds
like your real goal is to have the TA extend across rows and not be
below the lines.  I assume you don't want the TA to fit within a single
row?

 

How will you handle the area at the bottom of the DG?  If I click the
last row, should the TA extend two rows below the DG?

 



From: flexcoders@yahoogroups.com mailto:flexcoders@yahoogroups.com
[mailto:flexcoders@yahoogroups.com mailto:flexcoders@yahoogroups.com ]
On Behalf Of Glenn Jones
Sent: Friday, July 18, 2008 11:17 AM
To: flexcoders@yahoogroups.com mailto:flexcoders@yahoogroups.com 
Subject: [flexcoders] TextArea popup editor in DataGrid

 

I have a DataGrid where one of the columns is a TextArea control as the
itemEditor.

When I edit a cell in the column with the TextArea editor, the TextArea
opens up to a height equivalent to 
three rows of data in the grid. The editor works fine; in fact it's been
working this way for some time.

But recently, we enabled horizontal and vertical grid lines on the grid.
When the TextArea editor opens up,
the datagrid horizontal grid lines are drawn across the top of the
control.

I've verified that the TextArea control is not inheriting the styles
related to grid lines
I've verified that the TextArea backgroundAlpha is 1; i.e. the text on
the rows underneath the editor is not
showing through.

So as near as I can tell, the grid is drawing the gridlines on top of
the editor.

Curiously, I also have a PopUpButton editor type - it does not have grid
lines drawn across when the dropdown
area that appears when the button is activated.

Is this a known issue? Is there a workaround?

Thanks

 

 



RE: [flexcoders] htmlText to Text

2008-07-20 Thread Alex Harui
If you read the text property, it won't have the angle brackets.

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of hugocorept
Sent: Saturday, July 19, 2008 3:38 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] htmlText to Text

 

Hi guys,

Does somebody have an idea to convert htmlText to text, it means remove
the Angle 
Brackets.

Example:

FONT ...Lorem Ipsum/FONT

to

Lorem Ipsum

I don't know, RegExp, some String Method ? :S

Thanks,
Core

 



RE: [flexcoders] need help urgent - multiple images printing

2008-07-20 Thread Alex Harui
Probably not possible with current versions.  Your print job will
probably take more than 60 seconds on some machines and timeout.
Someday, I hope the Flash Player will fix the bug that will allow
printing in the background.

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of sondang paruliant
Sent: Saturday, July 19, 2008 5:12 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] need help urgent - multiple images printing

 

Dear all  need help

how to printing multiple images (1000 images)  

 I try using images loader to printing but cannot shown in printing
result.
when Using Reperter to call multiple images Good work but to heavy  and
make long time loading.
I try Using mx:list and itemRenderer to Get images data source and how
to accessing itemRenderer component Object from application

This my printing function source :


public function PrintAllbyGroups(): void {

CursorManager.setBusyCursor();


var i:int;
var DataRows:ArrayCollection = globalArrayData;


var myPrintJob:FlexPrintJob = new FlexPrintJob();

myPrintJob.printAsBitmap = false;
var pageLimit: int = 3; // limit data tiap halaman
var counterData: int = 0; // counter data tiap halaman
var counterPage: int = 0; // counter halaman tiap
dokumen
var lastGroupName: String = DataRows.getItemAt(0).Kelas;

var printState:Boolean = false;

if(myPrintJob.start())
{
for( i = 0; i  DataRows.length; i++)
{
// bila terjadi perubahan groupName
if(lastGroupName !==
DataRows.getItemAt(i).Kelas)
{
// tambahkan ke halaman pencetakan
 
myPrintJob.addObject(mySheet,FlexPrintJobScaleType.NONE);

// tambahkan counter halaman
counterPage++;
// kembalikan counterData ke normal
counterData= 0;
// ubah nama grup terakhir

lastGroupName = DataRows.getItemAt(i).Kelas;
}
// iterasi
counterData++;
// normalkan system
if(counterData === 1)
{
printRow1.visible = false;
printRow2.visible = false;
printRow3.visible = false;
}

printGroupName.text = Grup  + lastGroupName;

if(counterData === 1)
{
printRow1.visible = true;
printName1.text =
DataRows.getItemAt(i).Name;

printClass1.text =
DataRows.getItemAt(i).Class;

printAuthorityCode1.text =
DataRows.getItemAt(i).AuthorityCode;
 
if(StringUtil.trim(DataRows.getItemAt(i).AreaCode)==0){
printKliringArea1.text = Kantor Pusat;
 n! bsp;  }else{
printKliringArea1.text = Wilayah  +
DataRows.getItemAt(i).AreaCode + ,  +
DataRows.getItemAt(i).KliringArea;
}
printSpecimen1.width = imageWidth;
printSpecimen1.height = imageHeight;


printSpecimen1.source =  this place how
to get object in mx:list itemRendere component
}

if(counterData === 2)
{
printRow2.visible = true;
printName2.text =
DataRows.getItemAt(i).Name;
printClass2.text =
DataRows.getItemAt(i).Class;
printAuthorityCode2.text =
DataRows.getItemAt(i).AuthorityCode;
 
if(StringUtil.trim(DataRows.getItemAt(i).AreaCode)==0){
  nbs! p; printKliringArea2.text = Kantor
Pusat;
}else{
printKliringArea2.text = Wilayah  +
DataRows.getItemAt(i).AreaCode + ,  +
DataRows.getItemAt(i).KliringArea;
}
printSpecimen2.width = imageWidth;
printSpecimen2.height = imageHeight;
//printSpecimen2.source = newRepeat
   

Re: [flexcoders] controls not not loading..

2008-07-20 Thread [p e r c e p t i c o n]
Thanks for your help.  I ended up being able to call the mxml version of the
component (as opposed to the as3 version)
but the as3 version does function as code behind.  With that
accomplished.i'm wondering why it calls some constructor that i didn't
define...this default has no params and the one I want it to call does...is
there a way to force it to call my constructor instead of the default...i
don't even know where the default is defined...

thanks

percy

On Sun, Jul 20, 2008 at 8:25 PM, Alex Harui [EMAIL PROTECTED] wrote:

Make sure someone is setting the size of the control.  I'm not sure how
 you are parenting it, but parents size their children in Flex so maybe you
 have a custom parent that doesn't do the sizing.


  --

 *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On
 Behalf Of *[p e r c e p t i c o n]
 *Sent:* Saturday, July 19, 2008 4:51 PM
 *To:* flexcoders@yahoogroups.com
 *Subject:* [flexcoders] controls not not loading..



 Hello Good People,

 I've Extended TitleWindow and also created a corresponding mxml component.
 When I create it using mxml in my application it's created with all of the
 controls i laid out
 in the design view no problem, but when i try to create it dynamically (new
 operator) none of the controls are loaded...can any one point me in the
 right direction...i know there must be a way to do this...thanks
 percy

   



RE: [flexcoders] controls not not loading..

2008-07-20 Thread Alex Harui
AS3 only allows one constructor per class so I'm not sure what you are
referring to.  If you use the compiler option
-keep-generated-actionscript you can see what the MXML is generating as
actionscript and compare

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of [p e r c e p t i c o n]
Sent: Sunday, July 20, 2008 9:47 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] controls not not loading..

 

Thanks for your help.  I ended up being able to call the mxml version of
the component (as opposed to the as3 version)
but the as3 version does function as code behind.  With that
accomplished.i'm wondering why it calls some constructor that i didn't
define...this default has no params and the one I want it to call
does...is there a way to force it to call my constructor instead of the
default...i don't even know where the default is defined...

thanks

percy

On Sun, Jul 20, 2008 at 8:25 PM, Alex Harui [EMAIL PROTECTED]
mailto:[EMAIL PROTECTED]  wrote:

Make sure someone is setting the size of the control.  I'm not sure how
you are parenting it, but parents size their children in Flex so maybe
you have a custom parent that doesn't do the sizing.

 



From: flexcoders@yahoogroups.com mailto:flexcoders@yahoogroups.com
[mailto:flexcoders@yahoogroups.com mailto:flexcoders@yahoogroups.com ]
On Behalf Of [p e r c e p t i c o n]
Sent: Saturday, July 19, 2008 4:51 PM
To: flexcoders@yahoogroups.com mailto:flexcoders@yahoogroups.com 
Subject: [flexcoders] controls not not loading..

 

Hello Good People,

I've Extended TitleWindow and also created a corresponding mxml
component.  When I create it using mxml in my application it's created
with all of the controls i laid out
in the design view no problem, but when i try to create it dynamically
(new operator) none of the controls are loaded...can any one point me in
the right direction...i know there must be a way to do this...thanks
percy

 

 



Re: [flexcoders] RE: Loop creator

2008-07-20 Thread Anthony Cintron

Really?

I would assume, I can join the byteArrays some how - Which will than  
be a full length track that will enable me to encode. I mean, how  
complicated is it to do that? Andrea Michelle did something similar,  
didn't he? I think I have a solution for the mp3 encoding. I'm looking  
into ffmpeg and lame.


- Ant


On Jul 20, 2008, at 11:18 PM, Rick Winscot wrote:



Anthony – I’m a long time user/fan of Fruity Loops. Is this ‘kind- 
of’ what you are doing? If so, you’ve probably found that loading  
samples is no big. Repeating the samples is a little harder (due to  
timing accuracy) but still no big. Where you are going to hit some  
practicality issues is around maintaining a virtual timeline and  
actively merging/mixing everything down. It is theoretically  
possible to do what you are proposing – but highly unlikely… since  
these kinds of operations are super cpu intensive and typically done  
on the server side. Even if you were able to handle all of the  
encoding/decoding and file management issues – the projected size of  
your audio files will likely be a problem unless you are doing  
something with sample rates... which opens another can of worms.




Rick Winscot





From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED]  
On Behalf Of acintron421

Sent: Sunday, July 20, 2008 9:52 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] RE: Loop creator



I'm looking into building a loop manipulator application. I basically
want to take 10 preset loops and place them on a time track. Each,
loop can be placed before or after another loop. I then want to
combine the entire track and export as an mp3, is this possible via
ActionScript, or do I need another language to encode MP3's?

Anthony






Anthony Cintron
Flash/Flex Developer
E-mail: [EMAIL PROTECTED]
Web site: sweetiesandgangsters.net
Blog: codegasm.blogspot.com





Re: [flexcoders] controls not not loading..

2008-07-20 Thread [p e r c e p t i c o n]
ok then...i'll try that...thanks
percy

On Sun, Jul 20, 2008 at 9:54 PM, Alex Harui [EMAIL PROTECTED] wrote:

AS3 only allows one constructor per class so I'm not sure what you are
 referring to.  If you use the compiler option –keep-generated-actionscript
 you can see what the MXML is generating as actionscript and compare


  --

 *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On
 Behalf Of *[p e r c e p t i c o n]
 *Sent:* Sunday, July 20, 2008 9:47 PM
 *To:* flexcoders@yahoogroups.com
 *Subject:* Re: [flexcoders] controls not not loading..



 Thanks for your help.  I ended up being able to call the mxml version of
 the component (as opposed to the as3 version)
 but the as3 version does function as code behind.  With that
 accomplished.i'm wondering why it calls some constructor that i didn't
 define...this default has no params and the one I want it to call does...is
 there a way to force it to call my constructor instead of the default...i
 don't even know where the default is defined...

 thanks

 percy

 On Sun, Jul 20, 2008 at 8:25 PM, Alex Harui [EMAIL PROTECTED] wrote:

 Make sure someone is setting the size of the control.  I'm not sure how you
 are parenting it, but parents size their children in Flex so maybe you have
 a custom parent that doesn't do the sizing.


  --

 *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On
 Behalf Of *[p e r c e p t i c o n]
 *Sent:* Saturday, July 19, 2008 4:51 PM
 *To:* flexcoders@yahoogroups.com
 *Subject:* [flexcoders] controls not not loading..



 Hello Good People,

 I've Extended TitleWindow and also created a corresponding mxml component.
 When I create it using mxml in my application it's created with all of the
 controls i laid out
 in the design view no problem, but when i try to create it dynamically (new
 operator) none of the controls are loaded...can any one point me in the
 right direction...i know there must be a way to do this...thanks
 percy