[flexcoders] Flex 4 Modules

2009-07-21 Thread Tyler Kocheran
Are modules in Flex 4 working correctly? When I load a simple module like
this:


?xml version=1.0?
mx:Module xmlns:fx=http://ns.adobe.com/mxml/2009;
xmlns:mx=library://ns.adobe.com/flex/halo
xmlns:s=library://ns.adobe.com/flex/spark

mx:Canvas width=100% height=100% backgroundColor=#99/
/mx:Module


And add it to the stage (addElement(IVisualElement(moduleLoader.child))),
the following error is thrown:

Error: removeChild() is not available in this class. Instead, use
removeElement() or modify the skin, if you have one.
 at
spark.components::Group/removeChild()[E:\dev\trunk\frameworks\projects\spark\src\spark\components\Group.as:1786]
 at
mx.core::Container/addChildAt()[E:\dev\trunk\frameworks\projects\framework\src\mx\core\Container.as:2536]
 at
mx.core::Container/addChild()[E:\dev\trunk\frameworks\projects\framework\src\mx\core\Container.as:2467]
 at
mx.modules::ModuleLoader/moduleReadyHandler()[E:\dev\trunk\frameworks\projects\framework\src\mx\modules\ModuleLoader.as:430]
 at flash.events::EventDispatcher/dispatchEventFunction()
 at flash.events::EventDispatcher/dispatchEvent()
 at
ModuleInfoProxy/moduleEventHandler()[E:\dev\trunk\frameworks\projects\framework\src\mx\modules\ModuleManager.as:1136]
 at flash.events::EventDispatcher/dispatchEventFunction()
 at flash.events::EventDispatcher/dispatchEvent()
 at
ModuleInfo/readyHandler()[E:\dev\trunk\frameworks\projects\framework\src\mx\modules\ModuleManager.as:781]
 at flash.events::EventDispatcher/dispatchEventFunction()
 at flash.events::EventDispatcher/dispatchEvent()
 at
mx.core::FlexModuleFactory/update()[E:\dev\trunk\frameworks\projects\framework\src\mx\core\FlexModuleFactory.as:390]
 at
mx.core::FlexModuleFactory/timerHandler()[E:\dev\trunk\frameworks\projects\framework\src\mx\core\FlexModuleFactory.as:619]
 at flash.utils::Timer/_timerDispatch()
at flash.utils::Timer/tick()


-- 
And do this, knowing the time, that now it is high time to awake out of
sleep;
for now our salvation is nearer than when we first believed.


Re: [flexcoders] Tons of errors using FlexBuilder on Ubuntu

2009-02-25 Thread Tyler Kocheran
Is anyone in Adobe still working on Flex Builder Linux? I am using it almost
every day now, and I can say that I'm really happy with it, at least as far
as Flex Builder is concerned. Sure there's no design view (which I'm still
waiting for ;) ), and code completion is only barely there, but all in all,
I can use it to create Flex applications and that rocks. I'm definitely
willing to pay the dough to buy a Flex Builder license for Linux, should
Adobe go ahead and complete it :)

On Fri, Dec 26, 2008 at 7:02 AM, Fernando Wermus
fernando.wer...@gmail.comwrote:

   In my case, it is much worse. I cant even install it. I tried to install
 it with many Eclipses in Ubunt 8.04 in my laptop. The fact is that it only
 runs in Ubuntu 7.04  7.10 according to Adobe's page. We are thinking to
 move to Mac definitily, because Linux isn't a good bet. Adobe is not really
 interested in a full support.

 Bye!


 On Wed, Dec 24, 2008 at 2:54 PM, Tyler Kocheran rfkroc...@gmail.comwrote:

   Now, before I start, I know that FlexBuilder Linux is in beta still and
 a lot of stuff isn't working. With that said, I'm experiencing a lot of
 problems that I don't think other people are experiencing.

 I'm using Ubuntu as my OS, and Ganymede for my Eclipse version with Flash
 Player 10 release version. (I can't seem to install Flash 10 Debug Players,
 does anyone know how to do that on Ubuntu?) When I try to compile my
 application, it launches fine (when i Run it, not when I Debug it.
 Debugging doesn't work because I don't have a debug player installed.)
 However, I'm getting nothing when it runs, just a big blue application that
 does nothing. I can't visually add anything to the display list, I can't log
 anything out to Arthropod, I basically can't do anything.

 When I try to embed my application via SWFObject, that's no working
 either. I get the alternative content every time.

 Now here are my questions, I'm going to try and discover the answers ASAP
 for them, but if you know anything, could you help me out?
 Does FlexBuilder for Linux need to be installed on a Europa release?
 Does FlexBuilder for Linux *require* you to use Flash Player 9 release
 and debug players?
 Will using the Flex ant tasks resolve some of the problems I'm having?

 Any help is much appreciated! Merry Christmas, everyone!
 http://ubuntuforums.org/showthread.php?p=6432138#post6432138

 - TK

 --
 And do this, knowing the time, that now it is high time to awake out of
 sleep;
 for now our salvation is nearer than when we first believed.




 --
 Fernando Wermus.

 www.linkedin.com/in/fernandowermus
 http://mientretiempo.blogspot.com/
  




-- 
And do this, knowing the time, that now it is high time to awake out of
sleep;
for now our salvation is nearer than when we first believed.


[flexcoders] Re: Passing data providers to drop-in item editors/renderers

2009-02-25 Thread Tyler Kocheran
Does anyone know how to do this? I'm really confused on this one, and I
honestly need some help. I resorted to using a static variable to get the
data to where it needs to be, but I just can't make it work. Here's some
more info.

I'm creating an editable DataGrid for the purpose of associating Interest
objects with a User object. The Interest object has a realm property which
references the id of a Realm object which I've created. I need to basically
create these Interest objects on what the user has input in each DataGrid
row. As one of my editors, I need a ComboBox which will reference the Realm
objects and use each Realm's name property for a label, and each Realm's
id property for a data field, because I ultimately need to pull that info
into Interest objects which use a Realm's id property as their own realm
properties.

Basically, I just need to supply a list of Realm objects to my itemeditor
ComboBox. This is seeming pretty impossible to me at the moment,
unfortunately.

On Tue, Feb 24, 2009 at 6:11 PM, Tyler Kocheran rfkroc...@gmail.com wrote:

 I need to pass in data to one of my item editors for a data grid column. I
 have an array of data objects that are loaded at runtime and I need to pass
 that collection to item editors so they can use it as a data provider.
 Here's an example of what I need to do. I'm loading a bunch of TKImage
 objects which define a few properties like name and id. I need to use
 the id property as each individual item's data field, and apply the name
 as each individual item's label field. I know it's possible to do something
 like this statically at compile time with a nested mx:dataProvider tag and
 I know it's also possible to use a static property to pass the data along,
 but I'm trying to avoid those two things because my application has the need
 to be dynamic, and I don't like global variables too much ;)

  What I need is for something like this to function:
 mx:DataGrid editable=true
 mx:columns
   mx:DataGridColumn
mx:Component
mx:ComboBox dataProvider={myDataProvider}/
/mx:Component
   /mx:DataGridColumn
 /mx:columns
 /mx:DataGrid

 --
 And do this, knowing the time, that now it is high time to awake out of
 sleep;
 for now our salvation is nearer than when we first believed.




-- 
And do this, knowing the time, that now it is high time to awake out of
sleep;
for now our salvation is nearer than when we first believed.


Re: [flexcoders] Tons of errors using FlexBuilder on Ubuntu

2009-02-25 Thread Tyler Kocheran
Yeah, I know that it has code completion. Have you used JDT? JDT has *code
completion*. Flex Builder (on Windows, Mac, and Linux) pales in comparison
to the refactoring, auto complete, code suggest, being able to view code
documentation live via JavaDoc (SO HELPFUL!), and code completion of JDT in
Eclipse. While even JDT can be improved, it's pretty much amazing. If Flex
Builder could adapt itself to model after the power features of JDT, it'd be
a much more valuable buy in my mind.

I mean, Flex Builder is built and owned by Adobe, and yet another project,
FDT, features much richer support for ActionScript 3 than Flex Builder does!
FDT is rad, but they're still kind of working on MXML support. All I'm
saying is that we as developers need a really hardcore development platform
that will make our lives easier. FDT does that for ActionScript in so many
ways. Flex Builder does it for Design View, but that's basically it.

On Wed, Feb 25, 2009 at 11:01 AM, Maciek Sakrejda msakre...@truviso.comwrote:

   I'm using it on Ubuntu 8.10 (was on 8.4 and 7.10 before that) and I
 haven't actually hit any code completion problems (except that an error
 pretty much anywhere in your mxml might kill code completion), but find
 all references is hopeless (should more accurately be called find some
 references sometimes maybe). I haven't really used FB in Windows (or
 Mac, for that matter), so I'm not sure if the situation is better there.
 Still, it's a tremendously useful tool (especially the graphical
 debugger). I certainly hope it makes it out of alpha on Linux
 eventually.

 And to the original poster--yes, go with Europa. We've hit a number of
 problems with Ganymede.

 --
 Maciek Sakrejda
 Truviso, Inc.
 http://www.truviso.com


 -Original Message-
 From: Tyler Kocheran rfkroc...@gmail.com rfkrocktk%40gmail.com
 Reply-To: flexcoders@yahoogroups.com flexcoders%40yahoogroups.com
 To: flexcoders@yahoogroups.com flexcoders%40yahoogroups.com
 Subject: Re: [flexcoders] Tons of errors using FlexBuilder on Ubuntu
 Date: Wed, 25 Feb 2009 10:30:23 -0800

 Is anyone in Adobe still working on Flex Builder Linux? I am using it
 almost every day now, and I can say that I'm really happy with it, at
 least as far as Flex Builder is concerned. Sure there's no design view
 (which I'm still waiting for ;) ), and code completion is only barely
 there, but all in all, I can use it to create Flex applications and that
 rocks. I'm definitely willing to pay the dough to buy a Flex Builder
 license for Linux, should Adobe go ahead and complete it :)

 On Fri, Dec 26, 2008 at 7:02 AM, Fernando Wermus
 fernando.wer...@gmail.com fernando.wermus%40gmail.com wrote:
 In my case, it is much worse. I cant even install it. I tried to
 install it with many Eclipses in Ubunt 8.04 in my laptop. The
 fact is that it only runs in Ubuntu 7.04  7.10 according to
 Adobe's page. We are thinking to move to Mac definitily, because
 Linux isn't a good bet. Adobe is not really interested in a full
 support.

 Bye!




 On Wed, Dec 24, 2008 at 2:54 PM, Tyler Kocheran
 rfkroc...@gmail.com rfkrocktk%40gmail.com wrote:
 Now, before I start, I know that FlexBuilder Linux is in
 beta still and a lot of stuff isn't working. With that
 said, I'm experiencing a lot of problems that I don't
 think other people are experiencing.

 I'm using Ubuntu as my OS, and Ganymede for my Eclipse
 version with Flash Player 10 release version. (I can't
 seem to install Flash 10 Debug Players, does anyone know
 how to do that on Ubuntu?) When I try to compile my
 application, it launches fine (when i Run it, not when
 I Debug it. Debugging doesn't work because I don't
 have a debug player installed.) However, I'm getting
 nothing when it runs, just a big blue application that
 does nothing. I can't visually add anything to the
 display list, I can't log anything out to Arthropod, I
 basically can't do anything.

 When I try to embed my application via SWFObject, that's
 no working either. I get the alternative content every
 time.

 Now here are my questions, I'm going to try and discover
 the answers ASAP for them, but if you know anything,
 could you help me out?
 Does FlexBuilder for Linux need to be installed on a
 Europa release?
 Does FlexBuilder for Linux require you to use Flash
 Player 9 release and debug players?
 Will using the Flex ant tasks resolve some of the
 problems I'm having?

 Any help is much appreciated! Merry Christmas, everyone!
 http://ubuntuforums.org/showthread.php?p=6432138#post6432138

 - TK

 --
 And do this, knowing the time, that now it is high time
 to awake out of sleep;
 for now our salvation is nearer than when we first
 believed.







 --
 Fernando Wermus.

 www.linkedin.com/in/fernandowermus
 http://mientretiempo.blogspot.com/


 --
 And do this, knowing the time, that now it is high time to awake out of
 sleep;
 for now our salvation is nearer than when we first believed.

  




-- 
And do this, knowing the time, that now it is high time

Re: [flexcoders] Re: Passing data providers to drop-in item editors/renderers

2009-02-25 Thread Tyler Kocheran
YES!!! THANK YOU SO MUCH!
Something like that was exactly what I was looking for. Thank you so much.

Now, my only problem is making my ItemRenderer show the name property of
the selected realm rather than the id of the realm. I think I know a way
to do this.

On Wed, Feb 25, 2009 at 11:30 AM, Charlie Hubbard charlie.hubb...@gmail.com
 wrote:

   You can access the instance members of your surrounding document using a
 special property *outerDocument*  from within the mx:Component tag when
 using inline renderers.

 mx:Component
   mx:ComboBox dataModel={outerDocument.choices}/
 /mx:Component

 outerDocument allows you to access any special data or functions you've
 defined outside the mx:Component.  It works nicely when you need to inject
 data/behavior that is not associated with the data field from the model.
  Remember itemRenders/editors are unique per row so there's no way to inject
 data into them since you're not in control of constructing them.  This is
 the only way I've found around this little snafu.

 If you don't use inline components you can always wrap your custom
 component inside an inline and pass data form the outerDocument in as
 properties to your custom component thus keeping the code nice and straight
 forward.  No tricky code.

 Charlie

 On Wed, Feb 25, 2009 at 1:36 PM, Tyler Kocheran rfkroc...@gmail.comwrote:

   Does anyone know how to do this? I'm really confused on this one, and I
 honestly need some help. I resorted to using a static variable to get the
 data to where it needs to be, but I just can't make it work. Here's some
 more info.

 I'm creating an editable DataGrid for the purpose of associating Interest
 objects with a User object. The Interest object has a realm property which
 references the id of a Realm object which I've created. I need to basically
 create these Interest objects on what the user has input in each DataGrid
 row. As one of my editors, I need a ComboBox which will reference the Realm
 objects and use each Realm's name property for a label, and each Realm's
 id property for a data field, because I ultimately need to pull that info
 into Interest objects which use a Realm's id property as their own realm
 properties.

 Basically, I just need to supply a list of Realm objects to my itemeditor
 ComboBox. This is seeming pretty impossible to me at the moment,
 unfortunately.

 On Tue, Feb 24, 2009 at 6:11 PM, Tyler Kocheran rfkroc...@gmail.comwrote:

 I need to pass in data to one of my item editors for a data grid column.
 I have an array of data objects that are loaded at runtime and I need to
 pass that collection to item editors so they can use it as a data provider.
 Here's an example of what I need to do. I'm loading a bunch of TKImage
 objects which define a few properties like name and id. I need to use
 the id property as each individual item's data field, and apply the name
 as each individual item's label field. I know it's possible to do something
 like this statically at compile time with a nested mx:dataProvider tag and
 I know it's also possible to use a static property to pass the data along,
 but I'm trying to avoid those two things because my application has the need
 to be dynamic, and I don't like global variables too much ;)

  What I need is for something like this to function:
 mx:DataGrid editable=true
 mx:columns
   mx:DataGridColumn
mx:Component
mx:ComboBox dataProvider={myDataProvider}/
/mx:Component
   /mx:DataGridColumn
 /mx:columns
 /mx:DataGrid

 --
 And do this, knowing the time, that now it is high time to awake out of
 sleep;
 for now our salvation is nearer than when we first believed.




 --
 And do this, knowing the time, that now it is high time to awake out of
 sleep;
 for now our salvation is nearer than when we first believed.


  




-- 
And do this, knowing the time, that now it is high time to awake out of
sleep;
for now our salvation is nearer than when we first believed.


Re: [flexcoders] Tons of errors using FlexBuilder on Ubuntu

2009-02-25 Thread Tyler Kocheran
I definitely agree.
What are the problems that you are experiencing? Are you running Eclipse
Ganymede?

On Wed, Feb 25, 2009 at 12:54 PM, Kelly dek...@gmail.com wrote:

 Who still uses Windoze? Srsly.

 Windoze is just expensive patented spyware.

 It spys on you in about 50 different ways.

 Micro$oft admitted it in their patents.


 No doubt Macs do the same thing. Just more expensive.




-- 
And do this, knowing the time, that now it is high time to awake out of
sleep;
for now our salvation is nearer than when we first believed.


[flexcoders] State transitions to align components in horizontal center

2009-02-25 Thread Tyler Kocheran
Is it possible? I've got two states which I'd like to transition from, and
I'd like to tween the currently selected item to the horizontal center of
the screen.
I set my Application's layout property to absolute to allow components to
move freely, should I be doing it another way?

-- 
And do this, knowing the time, that now it is high time to awake out of
sleep;
for now our salvation is nearer than when we first believed.


[flexcoders] Passing data providers to drop-in item editors/renderers

2009-02-24 Thread Tyler Kocheran
I need to pass in data to one of my item editors for a data grid column. I
have an array of data objects that are loaded at runtime and I need to pass
that collection to item editors so they can use it as a data provider.
Here's an example of what I need to do. I'm loading a bunch of TKImage
objects which define a few properties like name and id. I need to use
the id property as each individual item's data field, and apply the name
as each individual item's label field. I know it's possible to do something
like this statically at compile time with a nested mx:dataProvider tag and
I know it's also possible to use a static property to pass the data along,
but I'm trying to avoid those two things because my application has the need
to be dynamic, and I don't like global variables too much ;)

 What I need is for something like this to function:
mx:DataGrid editable=true
mx:columns
  mx:DataGridColumn
   mx:Component
   mx:ComboBox dataProvider={myDataProvider}/
   /mx:Component
  /mx:DataGridColumn
/mx:columns
/mx:DataGrid

-- 
And do this, knowing the time, that now it is high time to awake out of
sleep;
for now our salvation is nearer than when we first believed.


[flexcoders] Creating Nestable data MXML Components

2009-02-23 Thread Tyler Kocheran
I'm looking to create nestable MXML data components. I'm working on a
validation codebase for a current requirement and the default Flex
validators weren't sufficient for me.
I'm basically looking to create something that would look like this in MXML:

v:ConjunctionValidator
 v:NotNullValidator/
 v:StringNotEmptyValidator/
/v:ConjunctionValidator

I've already got my codebase together, I just would like to be able to stack
it in MXML rather than wire it together in Actionscript. My
ConjunctionValidator actionscript class defines a add(value:IValidator)
method for adding sub validators. How would I get Flex to recognize this and
respond to it?

I also have other visual components that rely off of validators. The
ultimate goal would be to do something like this in Flex:

va:ValidatorTextField
  v:ConjunctionValidator
 ...
  /v:ConjunctionValidator
/va:ValidatorTextField

Is doing something like this possible?

-- 
And do this, knowing the time, that now it is high time to awake out of
sleep;
for now our salvation is nearer than when we first believed.


Re: [flexcoders] Tons of errors using FlexBuilder on Ubuntu

2008-12-25 Thread Tyler Kocheran
I guess it is a Ganymede thing. I did a fresh install on Europa and it works
pretty well. Plus I don't get those annoying Assertion Failed errors when
trying to view MXML files :)

On Wed, Dec 24, 2008 at 11:38 PM, Fu Di foo...@rocketmail.com wrote:

   i used Europa  to run flex on ubuntu  , it is OK,  i guess the problem
 was caused your eclipse version.
 i didn't try to setup fb on Ganymede.


 foodyi

 --
 *From:* Tyler Kocheran rfkroc...@gmail.com
 *To:* flexcoders@yahoogroups.com
 *Sent:* Thursday, December 25, 2008 6:54:28 AM
 *Subject:* [flexcoders] Tons of errors using FlexBuilder on Ubuntu

  Now, before I start, I know that FlexBuilder Linux is in beta still and a
 lot of stuff isn't working. With that said, I'm experiencing a lot of
 problems that I don't think other people are experiencing.

 I'm using Ubuntu as my OS, and Ganymede for my Eclipse version with Flash
 Player 10 release version. (I can't seem to install Flash 10 Debug Players,
 does anyone know how to do that on Ubuntu?) When I try to compile my
 application, it launches fine (when i Run it, not when I Debug it.
 Debugging doesn't work because I don't have a debug player installed.)
 However, I'm getting nothing when it runs, just a big blue application that
 does nothing. I can't visually add anything to the display list, I can't log
 anything out to Arthropod, I basically can't do anything.

 When I try to embed my application via SWFObject, that's no working either.
 I get the alternative content every time.

 Now here are my questions, I'm going to try and discover the answers ASAP
 for them, but if you know anything, could you help me out?
 Does FlexBuilder for Linux need to be installed on a Europa release?
 Does FlexBuilder for Linux *require* you to use Flash Player 9 release and
 debug players?
 Will using the Flex ant tasks resolve some of the problems I'm having?

 Any help is much appreciated! Merry Christmas, everyone!
 http://ubuntuforums .org/showthread. php?p=6432138# 
 post6432138http://ubuntuforums.org/showthread.php?p=6432138#post6432138

 - TK

 --
 And do this, knowing the time, that now it is high time to awake out of
 sleep;
 for now our salvation is nearer than when we first believed.

  




-- 
And do this, knowing the time, that now it is high time to awake out of
sleep;
for now our salvation is nearer than when we first believed.


[flexcoders] Tons of errors using FlexBuilder on Ubuntu

2008-12-24 Thread Tyler Kocheran
Now, before I start, I know that FlexBuilder Linux is in beta still and a
lot of stuff isn't working. With that said, I'm experiencing a lot of
problems that I don't think other people are experiencing.

I'm using Ubuntu as my OS, and Ganymede for my Eclipse version with Flash
Player 10 release version. (I can't seem to install Flash 10 Debug Players,
does anyone know how to do that on Ubuntu?) When I try to compile my
application, it launches fine (when i Run it, not when I Debug it.
Debugging doesn't work because I don't have a debug player installed.)
However, I'm getting nothing when it runs, just a big blue application that
does nothing. I can't visually add anything to the display list, I can't log
anything out to Arthropod, I basically can't do anything.

When I try to embed my application via SWFObject, that's no working either.
I get the alternative content every time.

Now here are my questions, I'm going to try and discover the answers ASAP
for them, but if you know anything, could you help me out?
Does FlexBuilder for Linux need to be installed on a Europa release?
Does FlexBuilder for Linux *require* you to use Flash Player 9 release and
debug players?
Will using the Flex ant tasks resolve some of the problems I'm having?

Any help is much appreciated! Merry Christmas, everyone!
http://ubuntuforums.org/showthread.php?p=6432138#post6432138

- TK

-- 
And do this, knowing the time, that now it is high time to awake out of
sleep;
for now our salvation is nearer than when we first believed.


Re: [flexcoders] FlexTasks: Compc for Flash Player 10

2008-12-23 Thread Tyler Kocheran
Awesome I'll give it a whirl.

On Mon, Dec 22, 2008 at 9:09 PM, Robert Stehwien rstehw...@gmail.comwrote:



 On Mon, Dec 22, 2008 at 3:50 PM, Tyler Kocheran rfkroc...@gmail.comwrote:

  I'm aware that I can do compc on commandline with FP10, but is it
 possible yet to do it in FlexTasks for Ant? I haven't looked at the Flex 4
 SDK yet, I've just been getting nightly builds of 3.


 You should  be able to use ant.  I haven't done a compc using ant yet, but
 I have used an mxmlc using ant and they share the target-player flag.
 --
 mxmlc debug=true file=${main.application}
 output=${main.application.debug.out}
   target-player=10.0.0
load-config filename=${flex.config.xml} /
  compiler.include-libraries dir=${alchemy.dir} append=true
  include name=lua-alchemy.swc /
  /compiler.include-libraries
 /mxmlc
 --

 So try using target-player=10.0.0 for compc
  




-- 
And do this, knowing the time, that now it is high time to awake out of
sleep;
for now our salvation is nearer than when we first believed.


Re: [flexcoders] FlexTasks: Compc for Flash Player 10

2008-12-22 Thread Tyler Kocheran
I'm aware that I can do compc on commandline with FP10, but is it possible
yet to do it in FlexTasks for Ant? I haven't looked at the Flex 4 SDK yet,
I've just been getting nightly builds of 3.

On Mon, Dec 22, 2008 at 12:39 PM, Manish Jethani
manish.jeth...@gmail.comwrote:

   On Mon, Dec 22, 2008 at 4:04 AM, Robert Stehwien 
 rstehw...@gmail.comrstehwien%40gmail.com
 wrote:

  Also recommend you make sure you are using the 3.2+ SDK
  $ which compc
  /Applications/Adobe Flex Builder 3/sdks/3.2.0/bin/compc

 Actually the version option will give you the version number.

 $ compc -version
 Version 3.2.0 build 3958

 --
 http://manishjethani.com/
  




-- 
And do this, knowing the time, that now it is high time to awake out of
sleep;
for now our salvation is nearer than when we first believed.


[flexcoders] FlexTasks: Compc for Flash Player 10

2008-12-20 Thread Tyler Kocheran
Is there a way to use compc to generate a SWC file targeting Flash Player
10?
Google yields little results on the matter.

-- 
And do this, knowing the time, that now it is high time to awake out of
sleep;
for now our salvation is nearer than when we first believed.


Re: [flexcoders] Re: Text Layout Framework in Flex 4

2008-11-20 Thread Tyler Kocheran
Yeah. Post this to the JIRA, or else Adobe probably won't get it. I already
created an issue that deals with the problems with HTML text in Flash
Player. You can either add this to mine or create your own, but be sure you
do post on JIRA. Adobe isn't and shouldn't be responsible for scanning the
blogosphere and even the mailing list world, though some of the Flex
developers do grace us with their presence sometimes :)

On Thu, Nov 20, 2008 at 11:43 AM, Matt Chotin [EMAIL PROTECTED] wrote:

   Make sure you guys comment on the specs and file feature requests. We
 can't use flexcoders to keep track of this :-)


 On 11/19/08 9:57 AM, Ethan Miller [EMAIL 
 PROTECTED]flexcoders%40djethan.com
 wrote:

 Id' like to add to this request list the ability to have html tags (in
 htmlText) be sensitive to
 both CSS Element and class selectors such that I could use span
 class=fooarbitrarily
 styled text string/span...

 cheers, ethan

 
  Gordon Smith recently responded to a TextArea HTML text issue and he
  stated:
 
  Adobe is developing a new Text Layout Framework (TLF) which works
  with the new Flash Text Engine (FTE) APIs in Player 10. (It will be
  used in Flex 4.) TLF will not support all of HTML, but it will be
  more capable than TextField's htmlText.
 
  I don't know what features are slated for TLF, but I'd like to put in
  a plug for some features that I desparately need in my work at
  customizing a TextArea/TextField component.
 
  1) Better support for filtering keystrokes. We should have the
  ability to filter (call event.preventDefault() or equivalent) in the
  keyDownHandler() function. This allows to avoid the stupid hack of
  working around DELETE, BACKSPACE and keyboard navigation keys not
  being cancelable.
 
  2) More control over copy/paste to clipboard. I recently posted an
  issue where if you set the htmlText property, copy to the clipboard
  loses all line breaks (unless I explicitly use br/). Ideally,
  there'd be an event or protected overridable function that indicates
  we're trying to do a copy/paste.
 
  3) Ability to represent custom HTML tags or custom HTML attributes in
  a standard tag. I tried to store some metadata inside a FONT tag
  using a custom attribute, but I found that when I set the htmlText,
  and then examined the htmlText property after the set, the whole
  markup had been altered and normalized, losing my custom
  attributes. It would be nice if this normalization did not occur.
 
  4) Better support for caret to coordinates functions. There is a
  getCharBoundaries() function, but that returns a rectangle in virtual
  coordinates that does not account for the scroll positions. Adjusting
  for the horizontal scroll position is fairly easy because that is
  measured in pixels, but the vertical scroll position is measured in
  lines and calculating the correct viewport position is non-trivial
  and expensive (there are some posts on how to do this). Not to
  mention the fact that getCharBoundaries() returns null if the char is
  at EOL or in an empty line. This support is incomplete. Just adding a
  function like getCoordinatesAtCharIndex(charIndex:int):Point would
  help, or something similar to that.
 
  5) A function get get the caret Index within the htmlText would also
  be useful, or more generally, getCharIndexInHtmlText
  (charIndex:int):int where charIndex is the character index in the raw
  text property.
 
  Thanks for your attention,
  Pete
 

  




-- 
And do this, knowing the time, that now it is high time to awake out of
sleep;
for now our salvation is nearer than when we first believed.


[flexcoders] Using a NumericStepper in a DataGrid component as an ItemEditor

2008-11-12 Thread Tyler Kocheran
When I try doing this, I get errors that I can't seem to resolve. Here's my
code:

mx:DataGrid
mx:DataGridColumn
mx:Component
mx:NumericStepper minimum=0 maximum=50/
/mx:Component
/mx:DataGridColumn
/mx:DataGrid

This is the error that I'm getting. I don't know how to fix this:

ReferenceError: Error #1069: Property text not found on
main_inlineComponent3 and there is no default value.
at
mx.controls::DataGrid/itemEditorItemEditEndHandler()[E:\dev\3.1.0\frameworks\projects\framework\src\mx\controls\DataGrid.as:4821]
at flash.events::EventDispatcher/dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at
mx.core::UIComponent/dispatchEvent()[E:\dev\3.1.0\frameworks\projects\framework\src\mx\core\UIComponent.as:9156]
at
mx.controls::DataGrid/endEdit()[E:\dev\3.1.0\frameworks\projects\framework\src\mx\controls\DataGrid.as:4036]
at
mx.controls::DataGrid/mouseDownHandler()[E:\dev\3.1.0\frameworks\projects\framework\src\mx\controls\DataGrid.as:4302]

-- 
And do this, knowing the time, that now it is high time to awake out of
sleep;
for now our salvation is nearer than when we first believed.


Re: [flexcoders] Re: Problem with Flex form

2008-11-12 Thread Tyler Kocheran
Under HTTPService in LiveDocs:
Due to a software limitation, HTTPService does not generate user-friendly
error messages when using GET.

Could that be your problem?

On Tue, Nov 11, 2008 at 3:55 PM, brucewhealton
[EMAIL PROTECTED]wrote:

   Did you try the form itself? I guess I didn't show the link. It is
 here: http://futurewavedesigns.com/ContactUs/ContactForm.html
 When I enter information into the form, I get no response after I hit
 Submit. Can you try that page and see what happens for you? Unless
 you tried it already but I didn't list the page.

 I think it is fixed. It seems to work fine now. I just need to add
 some validation. I have this in my php form mailer:
 $OK = mail ($mail_to, $subject, $message, $headers);
 if ($OK)
 {
 echo 'sent=OK';
 }
 else
 {
 echo 'sent=ERROR';
 }

 I don't know how to make it not send the message and set an error. If
 that does happen, my Flex code checks for event.result=ERROR which I
 don't think is going to work with the php code I just listed. I hope
 someone here reading this knows some about php so that I can figure
 out what to do to change the code so that it gives the user a message
 if the email was not sent. I tried something that wasn't working
 which is this:
 else
 {
 die(failed);
 }

 That failed to cause any response at all from the form.
 Bruce

 --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com,
 valdhor [EMAIL PROTECTED] wrote:
 
  It works for me although it does display the alert twice - once for
  the eventListener you add in sendMyData and once for the result
  handler in the HTTPService tag.
 
  In your result handler you should be checking the response you get
  back from the server and display an alert accordingly.
 
  One thing that will probably help you out a lot is to get an HTTP
  debugging proxy like Charles (http://www.charlesproxy.com/). I use it
  every day.
 
 
  --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com,
 brucewhealton bruce@ wrote:
  
   Hello all,
   I have been unable to figure out why something simple is not
   happening in a form of mine. I have a form that does successfully
   take the user input and email it to us. However, for some reason, the
   Alert button that should give the user feedback is not working. It
   just hangs there when the user clicks on the submit button.
  
   I will need to share the code to get help with this. It is
   very basic and it does send the email message. I'll trim off
   extraneous appearance code that is not related to the actual logic of
   the form.
   So, we have the main application that has a Panel that calls the
   ContactFormComp (for ContactFormComponent)(leaving off the Application
   tag, of course:
  
   mx:Panel title=Contact Future Wave Designs
   forms:ContactFormComp id=MyContactForm/
   /mx:Panel
  
   So, now we have the form component - this will be a bit longer, though
   still rather simple, but I don't know why it doesn't call the Alert
   function:
  
   ?xml version=1.0 encoding=utf-8?
   mx:Form xmlns:mx=http://www.adobe.com/2006/mxml;
  
   mx:Script
   ![CDATA[
   import mx.controls.Alert;
   import mx.rpc.events.FaultEvent;
   import mx.rpc.events.ResultEvent;
  
   private function sendMyData():void
   {
   var obj:Object = new Object();
   obj.Name = Name.text;
   obj.email = email.text;
   obj.phone = phone.text;
   obj.message = message.text;
   myContactService.send(obj);
   myContactService.resultFormat = text;
   myContactService.addEventListener(ResultEvent.RESULT, resultHandler);
   myContactService.addEventListener(FaultEvent.FAULT, fault_handler);
   }
  
   private function resetForm(event:MouseEvent):void
   {
   Name.text = ;
   email.text = ;
   phone.text = ;
   message.text = ;
   }
  
   private function resultHandler(event:ResultEvent):void
   {
   Alert.show(Thank you! Your message has been emailed, Thank
  you!);
  
   }
  
   private function fault_handler():void
   {
   Alert.show(There was a problem., Problem Encountered);
   }
   ]]
   /mx:Script
  
  
   mx:HTTPService id=myContactService
   url=mail_sender.php
   method=POST
   result=resultHandler(event)
   resultFormat=text/
  
   mx:Label text=Your Contact Information/
   mx:FormItem label=Name:
   mx:TextInput id=Name width=200 /
   /mx:FormItem
   mx:FormItem label=Email:
   mx:TextInput id=email width=200/
   /mx:FormItem
   mx:FormItem label=Phone Number:
   mx:TextInput id=phone width=200/
   /mx:FormItem
   mx:FormItem label=Message:
   mx:TextArea id=message width=200/
   /mx:FormItem
  
  
   mx:FormItem
   mx:Button label=Submit fontSize=16 click=sendMyData()/
   /mx:FormItem
   mx:FormItem
   mx:Button label=Reset Form fontSize=16
   click=resetForm(event)/
   /mx:FormItem
   /mx:Form
  
   I don't know if there is a problem with my php code but it does email
   the form. In order to share that, I have the php code in a text file
   here: http://futurewavedesigns.com/ContactUs/mail_sender.php.txt
   You'll see it is basic. Please let 

[flexcoders] New to ItemRenderers

2008-10-31 Thread Tyler Kocheran
I'm trying to create a simple List-based application to try and learn more
about ItemRenderers. How do I make my ItemRenderer automatically size to fit
whatever is inside of it? Right now I've got this as my ItemRenderer:
mx:VBox
   mx:Text text={data.label} width=100%/
/mx:VBox

I'm not necessarily going to know the amount of text loaded into a list item
until runtime. It seems that my list component is confining each of its
items to a certain fixed height. Can I change this?

 - TK

-- 
And do this, knowing the time, that now it is high time to awake out of
sleep;
for now our salvation is nearer than when we first believed.


Re: [flexcoders] load fla file into web UI then edit image inside it

2008-10-31 Thread Tyler Kocheran
Well, first you need to implement some backend programming which will read a
FLA file. You can try opening an FLA file with Notepad or maybe as a ZIP
Archive... I'm not sure which format the FLA type follows, if it even has a
format. Once you 'get in' to the FLA file's contents, you'll have to find
the one you're looking for. After that, you should save it to a file on your
server. Once that's done, send a value to your Flex client containing a link
to the image file/the text. Edit the text, send it back and have middleware
do the saving into the FLA file. Edit the Image, save it as an image with
middleware to your server, then have your middleware insert the edited image
into the FLA file.

Creating a remote Flash IDE is a pretty ambitious task. I'm interested in
what you discover, if you find anything cool, do post back!

On Thu, Oct 30, 2008 at 10:49 PM, vuthecuong [EMAIL PROTECTED] wrote:


 Suppose that I biuld a wab app with php as back-end and flex sitting on
 font-end with porpose to load fla file to display on web UI, then extract
 text and image inside it, edit these text and images, then save back to
 that
 fla file.
 - How can do this with Flex or with anything else?
 I just want to know the general way to get this done.
 regards

 --
 View this message in context:
 http://www.nabble.com/load-fla-file-into-web-UI-then-edit-image-inside-it-tp20260510p20260510.html
 Sent from the FlexCoders mailing list archive at Nabble.com.

  




-- 
And do this, knowing the time, that now it is high time to awake out of
sleep;
for now our salvation is nearer than when we first believed.


Re: [flexcoders] Re: New to ItemRenderers

2008-10-31 Thread Tyler Kocheran
Thanks, that's exactly what I needed!

On Fri, Oct 31, 2008 at 9:21 AM, Tim Hoff [EMAIL PROTECTED] wrote:


 On the list tag, variableRowHeight=true;

 -TH

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

 
  I'm trying to create a simple List-based application to try and learn
 more
  about ItemRenderers. How do I make my ItemRenderer automatically size
 to fit
  whatever is inside of it? Right now I've got this as my ItemRenderer:
  mx:VBox
  mx:Text text={data.label} width=100%/
  /mx:VBox
 
  I'm not necessarily going to know the amount of text loaded into a
 list item
  until runtime. It seems that my list component is confining each of
 its
  items to a certain fixed height. Can I change this?
 
  - TK
 
  --
  And do this, knowing the time, that now it is high time to awake out
 of
  sleep;
  for now our salvation is nearer than when we first believed.
 

  




-- 
And do this, knowing the time, that now it is high time to awake out of
sleep;
for now our salvation is nearer than when we first believed.


Re: [flexcoders] Re: Do you use a Mac?

2008-10-30 Thread Tyler Kocheran
Ubuntu [?]

On Wed, Oct 29, 2008 at 10:46 AM, dnk [EMAIL PROTECTED] wrote:


 On 29-Oct-08, at 6:56 AM, Fotis Chatzinikos wrote:

 Are you sure that you cannot run Leopard (MacOSX) on a vm?


 The desktop, no (unless it is hacked?), however if you run OS X server, it
 is supported in VM's (IE I think VMWare).

 d



  




-- 
And do this, knowing the time, that now it is high time to awake out of
sleep;
for now our salvation is nearer than when we first believed.
BA2.png

[flexcoders] Re: Changing MenuBar open and close Transitions

2008-10-28 Thread Tyler Kocheran
Do I need to define a custom ItemRenderer?

On Mon, Oct 27, 2008 at 5:38 PM, Tyler Kocheran [EMAIL PROTECTED] wrote:

 How do I implement custom MenuBar opening and closing transitions? I've
 tried
 changing the showEffect and hideEffect properties on a MXML MenuBar node,
 but nothing changes. Does anyone know how to do this? I have scoured the
 livedocs and reference and couldn't find anything. I've looked at using the
 mx:Fade transition but I cannot get anything to work.

  - TK

 --
 And do this, knowing the time, that now it is high time to awake out of
 sleep;
 for now our salvation is nearer than when we first believed.




-- 
And do this, knowing the time, that now it is high time to awake out of
sleep;
for now our salvation is nearer than when we first believed.


[flexcoders] Changing MenuBar open and close Transitions

2008-10-27 Thread Tyler Kocheran
How do I implement custom MenuBar opening and closing transitions? I've
tried
changing the showEffect and hideEffect properties on a MXML MenuBar node,
but nothing changes. Does anyone know how to do this? I have scoured the
livedocs and reference and couldn't find anything. I've looked at using the
mx:Fade transition but I cannot get anything to work.

 - TK

-- 
And do this, knowing the time, that now it is high time to awake out of
sleep;
for now our salvation is nearer than when we first believed.