[flexcoders] Printing a large string over multiple pages

2007-12-02 Thread Paul Steven
Still desperately trying to find a solution to this!

 

How can I print a text field that contains more than one page worth of text
over multiple pages?

 

Thanks

 

Paul

 

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Paul Steven
Sent: 29 November 2007 20:30
To: flexcoders@yahoogroups.com
Subject: [SPAM] [flexcoders] Printing a large string over multiple pages

 

I am printing a large string and it is only printing one page worth of the
string data. Ideally I would like it to print the entire string using as
many pages as it requires to print out the entire contents. Any help much
appreciated!!

 

This is my print function code:

 

private function doPrint():void {




var printJob:FlexPrintJob = new FlexPrintJob(); 



var formPrintView:SubmissionReport = new SubmissionReport();

addChild(formPrintView);




var todayDate:Date = new Date();



formPrintView.detailUsername.text =
_session.getSessionUsername();

formPrintView.detailDate.text = String(todayDate);

formPrintView.detailcontent.text =
_session.returnSubmissionReportText()



printJob.start();



printJob.addObject(formPrintView);




printJob.send();




removeChild(formPrintView);





}

 

 

 



[flexcoders] Modules + CSS issues, what are recommend practices

2007-12-02 Thread dave_defusion
We have an application with each core section of the application being
a module (as some users will get access to a restricted set of the app
sections).

We have all the CSS declared (via mx:Style source=... / tags) in
the application MXML file. We then compile using a link report to
optimize each of the modules for our application and everything seems
to work fine.

However now the application is nearly finished we just started to
really skin the application (we started with the OSX stylesheet from
scalenine and tweaked from there) everything looked ok until we
noticed some oddities.

The things we noticed were that you could click on a textarea within a
module but you couldn't type into it and wherever date choosers are
used we got the OSX style chrome on the date chooser but couldn't see
nor choose any dates. Removing the OSX stylesheet fixed both of these
problems. 

I tried tweaking the OSX stylesheet but that did not resolve the
problem the only thing that I did which resolved all these strange
issues was to include the OSX stylesheet within each of the modules
themselves.

I know I get a few warnings when compiling stating that certain  CSS
declarations aren't going to be evaluated, but the fact that the
styles for things like the date chooser are in the app when the CSS is
only in the main application is really confusing.



[flexcoders] Re: Printing a large string over multiple pages

2007-12-02 Thread b_alen
I remember in AS2 I created an array of movieclips with print content
and then print the array one by one. Each array entry was a movie clip
object. I had to manually measure when the movieclip is to high, then
create another one, etc. 

Now from the livedocs:

The PrintJob class hasn't changed dramatically for the ActionScript
3.0 implementation of printing. However, a few critical differences
are worth noting:

* The PrintJob.addPage() method now takes a Sprite and a Rectangle
object for the first two parameters.


So, I would manually measure the height of the sprite each time i add
a word or a character to it, if it's too high I would create another
sprite with textfield inside and continue with the remaining text. 

There might be better ways to do it in AS3, I haven't tried any
printing yet.


 




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

 Still desperately trying to find a solution to this!
 
  
 
 How can I print a text field that contains more than one page worth
of text
 over multiple pages?
 
  
 
 Thanks
 
  
 
 Paul
 
  
 
 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
 Behalf Of Paul Steven
 Sent: 29 November 2007 20:30
 To: flexcoders@yahoogroups.com
 Subject: [SPAM] [flexcoders] Printing a large string over multiple pages
 
  
 
 I am printing a large string and it is only printing one page worth
of the
 string data. Ideally I would like it to print the entire string using as
 many pages as it requires to print out the entire contents. Any help
much
 appreciated!!
 
  
 
 This is my print function code:
 
  
 
 private function doPrint():void {
 
 
 
 
 var printJob:FlexPrintJob = new FlexPrintJob(); 
 
 
 
 var formPrintView:SubmissionReport = new
SubmissionReport();
 
 addChild(formPrintView);
 
 
 
 
 var todayDate:Date = new Date();
 
 
 
 formPrintView.detailUsername.text =
 _session.getSessionUsername();
 
 formPrintView.detailDate.text = String(todayDate);
 
 formPrintView.detailcontent.text =
 _session.returnSubmissionReportText()
 
 
 
 printJob.start();
 
 
 
 printJob.addObject(formPrintView);
 
 
 
 
 printJob.send();
 
 
 
 
 removeChild(formPrintView);
 
 
 
 
 
 }





[flexcoders] Re: Best Way to learn Flex

2007-12-02 Thread b_alen
Well it all depends on what your background knowledge is. Can you
create simple if statements, while and for loops, and so on? Do
you understand OOP?

Maybe you want to get comfortable with AS3 first before developing
Flex apps. And that's easier to learn in Flash, IMHO. Try making a
simple shooting game with object oriented approach and you will pick
up a lot of important programming knowledge.

Anyway, 9 months seems quite a bit. It usually takes me 2, 3 months to
train a person to the usable level if one has at least some idea of
the programming beforehand. 

Good luck.

Alen



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

 - Original Message - 
   From: Sheriff 
   To: flexcoders@yahoogroups.com 
   Sent: Sunday, December 02, 2007 12:27 AM
   Subject: [flexcoders] Best Way to learn Flex
 
 
   So I have been trying to learn flex now for almost 9 month and i
pretty much still don't know much to get me anywhere. This is also my
first programming language to learn. I know enough to make everything
work on its own but i still can't create stuff like this
   http://demo.quietlyscheming.com/displayShelf/index.html  or any of
the adobe Examples. So i was wondering, how long does it take to
actually start doing some of that stuff and what is the best way to
learn. Looking at the source code doesn't help much since there are
too many files and its split up and the functions get spread out all
over. 
 
 
 Pick a small project to build. Develop it and stick it through to
the very end. Start with nothing finish with the working program.
 
 If  you get stuck as here and I'm sure we'll push you forward if 
you get stuck.
 
 Before you start coding decide exactly what you want - keep it simple.
 
 Try and work out a basic user interface.
 
 Consider the components and classes you might need to support the
application and UI.
 
 There will be loads of problems that you encounter along the way
that you won't expect, just refine/redo until you overcome them.
 
 We have all been there.
 
 Get going!
 
 (Where in the world are you?)
 
 Paul





[flexcoders] How to delete cookies cache in mx.controls.HTML?

2007-12-02 Thread bjorn -
I've started experimenting a bit with Flex 3's HTML control for Air. It
looks pretty nice, but I have not found out how to do things like deleting
the cache or handling cookies.

Is this something that is currently possible, or functionality that is
intended for release later?

If it's not possible through the API, maybe it can be done in a hackish way
(through Javascript or something) 

Bjørn

-- 


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


Re: [flexcoders] Best Way to learn Flex

2007-12-02 Thread Ralf Bokelberg
Take your time, read something:

http://norvig.com/21-days.html

Cheers
Ralf.


Re: [flexcoders] Best Way to learn Flex

2007-12-02 Thread Jehanzeb Musani
Hello Paul,

I agree with you to some extent but not 100 percent.
To develop controls like the one Sheriff shows, I
believe you need to know Flash internal and it's
framework.

You can have my example. I have almost 5 five years
devlopment experiencein Microsoft Technologies like
.NET and C++ and hardly a couple of months experience
in Flex development. Currently, I am working on the
Web front-end for our server to be developed in Flex.
I am sure I will learn alot while developing that
application. But I will not learn much about UI
Component development in Flex as month of our features
(controls) are based on datagrid.

I am on Sheriff's side. I am looking for books and
resources that can teach me Flex/Flash Internals and
Frameworks which can help me in designing advanced UI
controls like Flex Dashboard.

Regards,
Jehanzeb

--- Paul Andrews [EMAIL PROTECTED] wrote:

 - Original Message - 
   From: Sheriff 
   To: flexcoders@yahoogroups.com 
   Sent: Sunday, December 02, 2007 12:27 AM
   Subject: [flexcoders] Best Way to learn Flex
 
 
   So I have been trying to learn flex now for almost
 9 month and i pretty much still don't know much to
 get me anywhere. This is also my first programming
 language to learn. I know enough to make everything
 work on its own but i still can't create stuff like
 this
  

http://demo.quietlyscheming.com/displayShelf/index.html
  or any of the adobe Examples. So i was wondering,
 how long does it take to actually start doing some
 of that stuff and what is the best way to learn.
 Looking at the source code doesn't help much since
 there are too many files and its split up and the
 functions get spread out all over. 
 
 
 Pick a small project to build. Develop it and stick
 it through to the very end. Start with nothing
 finish with the working program.
 
 If  you get stuck as here and I'm sure we'll push
 you forward if  you get stuck.
 
 Before you start coding decide exactly what you want
 - keep it simple.
 
 Try and work out a basic user interface.
 
 Consider the components and classes you might need
 to support the application and UI.
 
 There will be loads of problems that you encounter
 along the way that you won't expect, just
 refine/redo until you overcome them.
 
 We have all been there.
 
 Get going!
 
 (Where in the world are you?)
 
 Paul



  

Get easy, one-click access to your favorites. 
Make Yahoo! your homepage.
http://www.yahoo.com/r/hs 


Re: [flexcoders] Re: If Flex is open source, how do we go about changing the language?

2007-12-02 Thread Robert Thompson
My point was only to refer to the inherent exclusive danger of open source 
tools that Microsoft has had occasion to exploit, and that is the reliability 
of a construct if derivatives aren't controlled as there root. And I'm 
referring to the language not the classes.  Requesting a feature change or 
improvement is far different from requesting open source of the Flex As3 
language definition.

What I mean by this is that Open Source code in the form of AS3 classes is a 
good thing.  Any notion, however, that the community of Flex Developers would 
be able to distribute a different base interpreter is a dangerous one and 
competitors like Microsoft know it (this doesn't include a custom lex and 
interpreter for a 3rd party but the idea of a new version of a Flex 
interpreter).

My only point was to keep Adobe informed of some of Microsoft's strategies they 
have exhibited in the past.  I'm sure some at Adobe already know it, but I 
believe in the lessons of history and the need to repeat them when the 
possibility of danger is still there, especially as a friendly reminder to the 
Flex community at large.

There is no whining going on here by anybody as far as I can tell; only, if 
anything, casting the stone from a possible whiny arm.  The fact is that the 
community of development on the whole in the world is becoming a lot better, 
but there are still people out there with a never ending thirst for control, 
and to keep their behemoths alive. 

-r


aceoohay [EMAIL PROTECTED] wrote:   Robert:
 
 Yes this is an earnest request. 
 
 While I do not shrink from controversy if I believe it will get 
 things done, I don't needlessly whine either. I believe that it is 
 important to make sure that we help the developers of our tools 
 understand what is important to us consumers of the tools. Otherwise 
 their direction/vision may preclude them from doing the little things 
 that make the difference between a easy to use tool and one that 
 ain't.
 
 But really folks, this isn't rocket science, the sort routines are 
 broken.
 
 Paul
 
 --- In flexcoders@yahoogroups.com, Robert Thompson 
 [EMAIL PROTECTED] wrote:
 
  I don't believe the Flex language itself is open source, only 
 the .swf format.
  
  Someone at adobe may want to clear that up.
  
  Although I'm sure this is an earnest request, whenever open source 
 is discussed one thing everyone on this list has to be careful of is 
 that MICROSOFT will not go well into that good night of the loser 
 status that are suffering at the hands of Apple and Linux after the 
 desperate attempts by SCO.
  
  I've learned enough about them to know that.  They will keep people 
 out on the edge of happenings to attempt to stir trouble, so any 
 discussion of Open Source (microsoft's thorn) in a way that would 
 disturb the good foundation of Flash end-users should looked at 
 closely.
  
  One thing I've learned about enemies is that once you begin to feel 
 sorry for their sad state, they usually have such little class as to 
 reach out in desperation to draw their gun from their black holster 
 and beady blue eyes to shoot at innocence.
  
  Mercy is good, but not with Microsoft (never).
  
  -r
  
  Ralf Bokelberg [EMAIL PROTECTED] 
 wrote:   Why has you data null values in 
 the first place?
   Maybe you can put in some dummy data?
   Cheers
   Ralf.
   
   
 
  
 
  -
  Get easy, one-click access to your favorites.  Make Yahoo! your 
 homepage.
 
 
 
 
   

   
-
Get easy, one-click access to your favorites.  Make Yahoo! your homepage.

Re: [flexcoders] Best Way to learn Flex

2007-12-02 Thread Paul Andrews
Sheriff has had 9 months opportunity to read books and tutorials. There's 
nothing like trying to do it yourself!

Paul
- Original Message - 
From: Jehanzeb Musani [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Sunday, December 02, 2007 2:37 PM
Subject: Re: [flexcoders] Best Way to learn Flex


 Hello Paul,

 I agree with you to some extent but not 100 percent.
 To develop controls like the one Sheriff shows, I
 believe you need to know Flash internal and it's
 framework.

 You can have my example. I have almost 5 five years
 devlopment experiencein Microsoft Technologies like
 .NET and C++ and hardly a couple of months experience
 in Flex development. Currently, I am working on the
 Web front-end for our server to be developed in Flex.
 I am sure I will learn alot while developing that
 application. But I will not learn much about UI
 Component development in Flex as month of our features
 (controls) are based on datagrid.

 I am on Sheriff's side. I am looking for books and
 resources that can teach me Flex/Flash Internals and
 Frameworks which can help me in designing advanced UI
 controls like Flex Dashboard.

 Regards,
 Jehanzeb

 --- Paul Andrews [EMAIL PROTECTED] wrote:

 - Original Message - 
   From: Sheriff
   To: flexcoders@yahoogroups.com
   Sent: Sunday, December 02, 2007 12:27 AM
   Subject: [flexcoders] Best Way to learn Flex


   So I have been trying to learn flex now for almost
 9 month and i pretty much still don't know much to
 get me anywhere. This is also my first programming
 language to learn. I know enough to make everything
 work on its own but i still can't create stuff like
 this


 http://demo.quietlyscheming.com/displayShelf/index.html
  or any of the adobe Examples. So i was wondering,
 how long does it take to actually start doing some
 of that stuff and what is the best way to learn.
 Looking at the source code doesn't help much since
 there are too many files and its split up and the
 functions get spread out all over.


 Pick a small project to build. Develop it and stick
 it through to the very end. Start with nothing
 finish with the working program.

 If  you get stuck as here and I'm sure we'll push
 you forward if  you get stuck.

 Before you start coding decide exactly what you want
 - keep it simple.

 Try and work out a basic user interface.

 Consider the components and classes you might need
 to support the application and UI.

 There will be loads of problems that you encounter
 along the way that you won't expect, just
 refine/redo until you overcome them.

 We have all been there.

 Get going!

 (Where in the world are you?)

 Paul



 
 
 Get easy, one-click access to your favorites.
 Make Yahoo! your homepage.
 http://www.yahoo.com/r/hs


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






[flexcoders] hiding nativewindow border while moving the window

2007-12-02 Thread maritakous
I know that it is not good to override user's settings but still:
on windows XP if the user has unchecked the Desktop-Properties option
Show window contents while dragging, there is a frame around my AIR
NativeWindow. Is there any way I can override this behavior and still
show the contents of the window while dragging? 
I tried to implement my own dragging system (like I successfully did
in C++) but Flex has no option to capture mouse so the window is
slipping out while moving and that looks awful.

Thanks



[flexcoders] Runtime MXML compiler

2007-12-02 Thread bouiaw
Hi,

I try to find some information about MXML compilation at runtime on a
Java based server.

My goal is to create a CMS/eCommerce solution based on a Java core and
a Flex front-end. You can find more informations on the wiki of the
Igenko project :
http://code.google.com/p/igenko/

The architecture of this project will be :
- A Java server core based on Tomcat, Spring, Hibernate, GraniteDS
  - Natively designed to store content in a JSR 170 Java Content
Repository (Jackrabbit)
  - Workflow management (JBoss JBPM) 
- A Flex Backoffice, with a WYSIWYG site designer
- One or more Flex public websites, dynamically generated from content
and layout stored in the repository. 

I know that Flex Data Services provide runtime compilation of MXML
(http://livedocs.adobe.com/flex/201/html/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Book_Partsfile=compiledeploy_142_11.html),
but I want to build and Open Source solution ready for production
without having to pay.

The guy behind GraniteDS (an open source implementation of Flex Data
Service) did a first attempt to have runtime compiler for MXML, as you
can read on this post :
http://tech.groups.yahoo.com/group/graniteds/message/192

Another solution is also to dynamically create UI with AS3 from a
custom xml (not mxml) like it was proposed on this post
(http://tech.groups.yahoo.com/group/flexcoders/message/93086), but I
think runtime compilation of MXML should be a better solution in my case.

I would appreciate any ideas or feedbacks on this subject 

Regards,
Sébastien Deleuze



[flexcoders] Flex Supporters in Hyderabad

2007-12-02 Thread krish_ov
Hi Team,

We are looking for a flex developer / tutor. who can help us develop 
the applications in FLEX + .NET / PHP + MsSQL environment. 

Online tutoring also welcome.

Awaiting for the help.

Thanks

Krishna



Re: [flexcoders] Re: It's DEMO time! - www.PlayerStreak.com

2007-12-02 Thread Aly Sidi
The only JavaScript I had to add was for the IFRAME support. You can see
that if you do a viewsource on the page.

PS: the league administration functions were the real tough part..

Thanks for looking
-aly

On Dec 1, 2007 12:33 PM, candysmate [EMAIL PROTECTED] wrote:

   I liked the site. But clicking on 'Rotoworld' showed that it relied on
 javascript (Google analytics stuff etc). For users, like me, who have
 javascript turned off some of the stuff would not work. Frankly, I
 had no inclination to turn it on to see what it did.

 Otherwise - great job!

  



RE: [flexcoders] Runtime MXML compiler

2007-12-02 Thread Gordon Smith
The MXML compiler will be open-source soon, and I assume that means you'll be 
able to run it on your server.
 
- Gordon



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of bouiaw
Sent: Sunday, December 02, 2007 6:06 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Runtime MXML compiler



Hi,

I try to find some information about MXML compilation at runtime on a
Java based server.

My goal is to create a CMS/eCommerce solution based on a Java core and
a Flex front-end. You can find more informations on the wiki of the
Igenko project :
http://code.google.com/p/igenko/ http://code.google.com/p/igenko/ 

The architecture of this project will be :
- A Java server core based on Tomcat, Spring, Hibernate, GraniteDS
- Natively designed to store content in a JSR 170 Java Content
Repository (Jackrabbit)
- Workflow management (JBoss JBPM) 
- A Flex Backoffice, with a WYSIWYG site designer
- One or more Flex public websites, dynamically generated from content
and layout stored in the repository. 

I know that Flex Data Services provide runtime compilation of MXML
(http://livedocs.adobe.com/flex/201/html/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Book_Partsfile=compiledeploy_142_11.html
 
http://livedocs.adobe.com/flex/201/html/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Book_Partsfile=compiledeploy_142_11.html
 ),
but I want to build and Open Source solution ready for production
without having to pay.

The guy behind GraniteDS (an open source implementation of Flex Data
Service) did a first attempt to have runtime compiler for MXML, as you
can read on this post :
http://tech.groups.yahoo.com/group/graniteds/message/192 
http://tech.groups.yahoo.com/group/graniteds/message/192 

Another solution is also to dynamically create UI with AS3 from a
custom xml (not mxml) like it was proposed on this post
(http://tech.groups.yahoo.com/group/flexcoders/message/93086 
http://tech.groups.yahoo.com/group/flexcoders/message/93086 ), but I
think runtime compilation of MXML should be a better solution in my case.

I would appreciate any ideas or feedbacks on this subject 

Regards,
Sébastien Deleuze



 


RE: [flexcoders] Best Way to learn Flex

2007-12-02 Thread Gordon Smith
My advice..
 
First learn the basics of OOP and AS, how MXML relates to AS, how to
factor an application into multiple components, and how events work. You
can learn a lot about these topics my experimenting with only a few
simple components such as Canvas and Button. But once you understand
these things well, that knowledge will pay off.
 
Next, pick the components that you're most likely to use in your apps
and become familiar with their standard capabilities. Write simple apps
that use standard components in standard ways. Don't get fancy.
 
Later, learn about Flex's invalidation/revalidation model, how to create
components dynamically, states, data binding, item renderers, embedding,
skinning, and data access.
 
Postpone things like writing components from scratch, complex
subclassing, and understanding Flash-level classes until you're
competent in the other stuff.
 
In short, walk before you run. Don't take making things like Ely's
custom components as your initial goal as they're probably too advanced
for someone who is relatively new to programming.
 
Gordon Smith
Adobe Flex SDK Team



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Jehanzeb Musani
Sent: Sunday, December 02, 2007 6:38 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Best Way to learn Flex



Hello Paul,

I agree with you to some extent but not 100 percent.
To develop controls like the one Sheriff shows, I
believe you need to know Flash internal and it's
framework.

You can have my example. I have almost 5 five years
devlopment experiencein Microsoft Technologies like
.NET and C++ and hardly a couple of months experience
in Flex development. Currently, I am working on the
Web front-end for our server to be developed in Flex.
I am sure I will learn alot while developing that
application. But I will not learn much about UI
Component development in Flex as month of our features
(controls) are based on datagrid.

I am on Sheriff's side. I am looking for books and
resources that can teach me Flex/Flash Internals and
Frameworks which can help me in designing advanced UI
controls like Flex Dashboard.

Regards,
Jehanzeb

--- Paul Andrews [EMAIL PROTECTED] mailto:paul%40ipauland.com 
wrote:

 - Original Message - 
 From: Sheriff 
 To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com  
 Sent: Sunday, December 02, 2007 12:27 AM
 Subject: [flexcoders] Best Way to learn Flex
 
 
 So I have been trying to learn flex now for almost
 9 month and i pretty much still don't know much to
 get me anywhere. This is also my first programming
 language to learn. I know enough to make everything
 work on its own but i still can't create stuff like
 this
 

http://demo.quietlyscheming.com/displayShelf/index.html
http://demo.quietlyscheming.com/displayShelf/index.html 
 or any of the adobe Examples. So i was wondering,
 how long does it take to actually start doing some
 of that stuff and what is the best way to learn.
 Looking at the source code doesn't help much since
 there are too many files and its split up and the
 functions get spread out all over. 
 
 
 Pick a small project to build. Develop it and stick
 it through to the very end. Start with nothing
 finish with the working program.
 
 If you get stuck as here and I'm sure we'll push
 you forward if you get stuck.
 
 Before you start coding decide exactly what you want
 - keep it simple.
 
 Try and work out a basic user interface.
 
 Consider the components and classes you might need
 to support the application and UI.
 
 There will be loads of problems that you encounter
 along the way that you won't expect, just
 refine/redo until you overcome them.
 
 We have all been there.
 
 Get going!
 
 (Where in the world are you?)
 
 Paul

__
Get easy, one-click access to your favorites. 
Make Yahoo! your homepage.
http://www.yahoo.com/r/hs http://www.yahoo.com/r/hs  


 


Re: [flexcoders] Registering flashvar variables properly?

2007-12-02 Thread Lex
Hi Gordon,

Warnings are on, nothing displayed.  I'm using Flex 3 if that's of any 
relevance.  

In the same thread, yes I did mean to write earlier that modifying 
contactform.url inside of initapp solved the problem.  

Regards.
Alex


  - Original Message - 
  From: Gordon Smith 
  To: flexcoders@yahoogroups.com 
  Sent: Friday, November 30, 2007 7:11 PM
  Subject: RE: [flexcoders] Registering flashvar variables properly?



HTTPService.url isn't marked [Bindable]. 

  Alex, your code

  mx:HTTPService ...  url= {scrmurl}xmlrpc/request.php ... /

  should have generated a binding warning. Do you have them turned off?

  - Gordon



--
  From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Peter 
Farland
  Sent: Friday, November 30, 2007 3:26 PM
  To: flexcoders@yahoogroups.com
  Subject: RE: [flexcoders] Registering flashvar variables properly?



  Right, HTTPService.url isn't marked [Bindable]. Programmatically updating it 
as needed should work, as Tracy mentioned.



--
  From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of 
Gordon Smith
  Sent: Friday, November 30, 2007 6:13 PM
  To: flexcoders@yahoogroups.com
  Subject: RE: [flexcoders] Registering flashvar variables properly?


   I had to finally resort to giving the HTTPService object an id

  The HTTPService object already had id=contactform.

   and adjusting that object's ID inside of the initialize block. 

  Do you mean adjusting the HTTPService's 'url' property?

  - Gordon



--
  From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Lex
  Sent: Friday, November 30, 2007 2:26 PM
  To: flexcoders@yahoogroups.com
  Subject: Re: [flexcoders] Registering flashvar variables properly?



  Whatever I tried, it just wouldn't work.

  I had to finally resort to giving the HTTPService object an id, and adjusting 
that object's ID inside of the initialize block.  Doing that, worked.  Setting 
the HTTPService url to the bindable var inside of the XML markup, was a no-go.




- Original Message - 
From: Tracy Spratt 
To: flexcoders@yahoogroups.com 
Sent: Friday, November 30, 2007 5:23 PM
Subject: RE: [flexcoders] Registering flashvar variables properly?



Oops, missed that, but of course, otherwise this[i] = would have errored, 
since Application is not dynamic.


Thanks' for the correction, Gordon, and never-mind, Alex.


So, Alex, this: url= {scrmurl}xmlrpc/request.php  should work.  How 
about when you do your send(), you verify scrmurl has the string in it?


You might also try a different style of binding/assignment:

url= {scrmurl + 'xmlrpc/request.php'}


Tracy






From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of 
Gordon Smith
Sent: Friday, November 30, 2007 4:40 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Registering flashvar variables properly?


scrmurl isn't a dynamic property.. it's declared at compile time as a 
public var, and should be bindable. 


- Gordon





From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of 
Tracy Spratt
Sent: Friday, November 30, 2007 12:23 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Registering flashvar variables properly?

You won't be able to {bind} to dynamically created properties easily.  
There may be a way to set up a binding using AS, not sure.  

You could just set the url directly in initApp().

Tracy




From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of 
flexnubslice
Sent: Friday, November 30, 2007 2:57 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Registering flashvar variables properly?

Hi,

   I'm busting my head against the wall on this one, I have to say that 
Flex is pretty frustrating when you otherwise code C++ or Java by trade.

   Poking around, I have found how to pass variables into Flex apps using 
flashvars.  If I check the Application.application.parameters value, they are 
all there.  So far so good.

   What I need to do, is pass a proxy URL from HTML, into Flex, that will 
be used as a url parameter for an HTTPService.

I have for example:

?xml version=1.0 encoding=utf-8?
mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; 
layout=absolute height=380 width=450 alpha=1.0 
initialize=initApp();

mx:Script
![CDATA[

[Bindable]
public var scrmurl:String;

 

[flexcoders] AMF question

2007-12-02 Thread jovialrandor
I have an application that imports various data from various data 
sources.   I have about 14 httpservice calls.Apparently this has 
slowed down my app significantly.I heard that using the messaging 
framework AMF can get large amounts of data in binary format which is 
quicker.   However I have not found any good example online to learn 
from. 

Does anyone know where I can get started with AMF?

thanks



Re: [flexcoders] Runtime MXML compiler

2007-12-02 Thread DreamCode
Hey Sebastien/Gordon



I'm not sure I understand what you're asking… mxml compilation at runtime?
Are you going to compile a page when a request comes in?



As for the dynamic creation of content based on custom xml, that is quite
nice. It's a big part of my current spare time project.



The only real issue so far I have had,  is that in order for me to generate
the UI, all custom components needed to be referenced once inside my code.
So even though I have this:



import dc.digr.ui.comp.*;



I still need this:



*var* a:digrButton = *new* digrButton ();

*var* b:digrButtonLarge = *new* digrButtonLarge();

*var* c:digrButtonIconOnly = *new* digrButtonIconOnly();

*var* d:digrButtonMini = *new* digrButtonMini();



for all the custom ui components in the beginning of my code to avoid a
runtime error….



Gordon, if you have some wisdom on this…. Spread the joy! J


[flexcoders] Re: AMF question

2007-12-02 Thread aceoohay
You neglected to mention what your backend was written in. Some of us 
might be able to help in .NET, others in PHP, and others in CF, not to 
mention Java.

My own testing using Fluorine, a .NET implementaion shows about 80% 
decrease in time to load ~5,000 rows from the server to the client over 
a T1 line.

Depending on what you are doing, it may be simple to convert. After I 
did the learning curve, the actual conversion of about 20 HTTPService 
requet took a day or so.

Paul

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

 I have an application that imports various data from various data 
 sources.   I have about 14 httpservice calls.Apparently this 
has 
 slowed down my app significantly.I heard that using the messaging 
 framework AMF can get large amounts of data in binary format which is 
 quicker.   However I have not found any good example online to learn 
 from. 
 
 Does anyone know where I can get started with AMF?
 
 thanks





Re: [flexcoders] CSS usage?

2007-12-02 Thread Lex
Anyone?  The livedocs site is a pain to navigate :/

Appreciated muchly!
Alex




  - Original Message - 
  From: Lex 
  To: flex 
  Sent: Friday, November 30, 2007 3:45 PM
  Subject: [flexcoders] CSS usage?


   

  If I go here and build a CSS sheet:
  
http://examples.adobe.com/flex3/consulting/styleexplorer/Flex3StyleExplorer.html#

  Where do I instruct the system to use it thereafter?

  Thanks.
  Alex

   

Re: [flexcoders] AMF question

2007-12-02 Thread Paul Decoursey
Ted Patrick just wrote an interesting intro to AMF that I found  
informative.

http://www.onflex.org/ted/2007/11/abcs-of-amf.php

Paul

On Dec 2, 2007, at 3:51 PM, jovialrandor wrote:

 I have an application that imports various data from various data
 sources.   I have about 14 httpservice calls.Apparently this has
 slowed down my app significantly.I heard that using the messaging
 framework AMF can get large amounts of data in binary format which is
 quicker.   However I have not found any good example online to learn
 from.

 Does anyone know where I can get started with AMF?

 thanks



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






RE: [flexcoders] Re: If Flex is open source, how do we go about changing the language?

2007-12-02 Thread Matt Chotin
I've moved this bug to https://bugs.adobe.com/jira/browse/SDK-13808
since it is not related to the ActionScript compiler, it's only in the
Flex classes.

 

Matt

 

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of aceoohay
Sent: Saturday, December 01, 2007 9:14 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: If Flex is open source, how do we go about
changing the language?

 

Gordon:

Per your request I have filed a bug report. It can be found here;

https://bugs.adobe.com/jira/browse/ASC-3042

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

 Gordon, et al:
 
 Here is a simple test that will show the problem;
 
 ?xml version=1.0 encoding=utf-8?
 mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; 
 layout=absolute
 creationComplete=initApp()
 mx:Script
 ![CDATA[
 import mx.collections.ArrayCollection;
 import mx.controls.Alert;
 [Bindable] public var acData:ArrayCollection = new 
 ArrayCollection;
 private function initApp():void
 {
 acData.addItem
 ({col1:null,col2:null,col3:null,col4:null});
 acData.addItem({col1:1,col2:new Date
 (),col3:true,col4:A});
 acData.addItem
 ({col1:null,col2:null,col3:null,col4:null});
 acData.addItem({col1:2,col2:new Date
 (),col3:null,col4:B});
 acData.addItem
 ({col1:null,col2:null,col3:null,col4:null});
 acData.addItem({col1:3,col2:new Date
 (),col3:true,col4:C});
 acData.addItem
 ({col1:null,col2:null,col3:null,col4:null});
 acData.addItem({col1:4,col2:new Date
 (),col3:null,col4:D});
 acData.addItem
 ({col1:null,col2:null,col3:null,col4:null});
 acData.addItem({col1:5,col2:new Date
 (),col3:true,col4:E});
 acData.addItem
 ({col1:null,col2:null,col3:null,col4:null});
 acData.addItem({col1:6,col2:new Date
 (),col3:false,col4:F});
 acData.addItem
 ({col1:null,col2:null,col3:null,col4:null});
 dgSortTest.dataProvider = acData;
 }
 ]]
 /mx:Script
 
 mx:DataGrid id=dgSortTest x=26 y=10
 mx:columns
 mx:DataGridColumn headerText=Column 1 
 dataField=col1/
 mx:DataGridColumn headerText=Column 2 
 dataField=col2/
 mx:DataGridColumn headerText=Column 3 
 dataField=col3/
 mx:DataGridColumn headerText=Column 4 
 dataField=col4/
 /mx:columns
 /mx:DataGrid
 
 /mx:Application
 
 --- In flexcoders@yahoogroups.com
mailto:flexcoders%40yahoogroups.com , Gordon Smith gosmith@ wrote:
 
  Your use case seem very reasonable to me. In this particular case 
I
  disagree with my esteemed colleague Alex (who sits across from 
 me)... I
  think our default sorting routines should handle null values. So 
 please
  file this as a bug at http://bugs.adobe.com/flex and feel free to
  mention that I consider it a bug.
  
  However, I agree with Alex that it probably will not get fixed in 
 time
  for the Flex 3 release, as the bar is currently extremely high for
  making changes at this point. We've got to stabilize the release 
 and get
  it out! So you'll need to use a workaround for now.
  
  Gordon Smith
  Adobe Flex SDK Team
  
  
  
  From: flexcoders@yahoogroups.com
mailto:flexcoders%40yahoogroups.com  
 [mailto:flexcoders@yahoogroups.com
mailto:flexcoders%40yahoogroups.com ] On
  Behalf Of aceoohay
  Sent: Saturday, December 01, 2007 2:38 PM
  To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com

  Subject: [flexcoders] Re: If Flex is open source, how do we go 
about
  changing the language?
  
  
  
  Gordon:
  
  This thread was not intended as a technical thread, which is why 
I 
  didn't include the details about the problem. I documented the 
  problem in the following post;
  
  http://tech.groups.yahoo.com/group/flexcoders/message/95131
  http://tech.groups.yahoo.com/group/flexcoders/message/95131 
  
  The only responses I got seemed to indicate that the behavior was 
 by 
  design, as opposed to a bug.
  
  Yes, it does throw a runtime error.
  
  I just signed up over at the Adobe bugs site.
  
  Paul
  
  --- In flexcoders@yahoogroups.com
mailto:flexcoders%40yahoogroups.com  mailto:flexcoders%
 40yahoogroups.com
  , Gordon Smith gosmith@ wrote:
  
it gets confused when there are nulls in date, numeric, or 
 boolean
   fields
   
this is by design
   
   I doubt that we designed this code to intentionally get 
  confused. : ) It
   sounds like we're simply not properly handling null field 
values 
  when
   sorting.
   
   What do you mean by get confused? Does it throw an RTE? Do 
the 
  nulls
   cause incorrect sorting of the non-null values? Do the nulls 
not 
  sort
   together? How kind of sorting behavior do you think should 
occur 
  when
   there are null values? Should they sort before or after other 
  values?
   Please file the bug at htp://bugs.adobe.com/flex.
  htp://bugs.adobe.com/flex. 
   
   BTW, the Flex SDK is not yet open-source, but it will be soon.
   
   Gordon Smith
   Adobe Flex SDK Team
   
   
   
   From: flexcoders@yahoogroups.com
mailto:flexcoders%40yahoogroups.com  

RE: [flexcoders] Re: If Flex is open source, how do we go about changing the language?

2007-12-02 Thread Matt Chotin
And I guess let me add a few other things.

 

1)  With regard to the bug itself, I'm guessing that the issue is
that first item in the collection to be sorted has the null value.  This
is causing an error because we can't determine what kind of comparator
to use by default.  If your first item hadn't been null you wouldn't see
the issue. This means that you should specify the comparator you want to
use, but one could argue that perhaps more information could be added to
the DataGridColumn to provide an option for some of the provided
comparators.  

2)  I can't remember in our code which way null compares to an
actual value, but they will group together.

3)  There will of course be a process for code to get contributed to
the SDK.  We'll have more info on this as we get closer to release, but
in general it will involve having a bug filed in the bugbase, votes
indicating the community's interest in having it fixed along with SDK
management agreeing that the contribution is useful, and then the
committers (SDK engineering) approval of the fix.

 

Matt

 

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Matt Chotin
Sent: Sunday, December 02, 2007 3:57 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Re: If Flex is open source, how do we go about
changing the language?

 

I've moved this bug to https://bugs.adobe.com/jira/browse/SDK-13808
since it is not related to the ActionScript compiler, it's only in the
Flex classes.

 

Matt

 

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of aceoohay
Sent: Saturday, December 01, 2007 9:14 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: If Flex is open source, how do we go about
changing the language?

 

Gordon:

Per your request I have filed a bug report. It can be found here;

https://bugs.adobe.com/jira/browse/ASC-3042

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

 Gordon, et al:
 
 Here is a simple test that will show the problem;
 
 ?xml version=1.0 encoding=utf-8?
 mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; 
 layout=absolute
 creationComplete=initApp()
 mx:Script
 ![CDATA[
 import mx.collections.ArrayCollection;
 import mx.controls.Alert;
 [Bindable] public var acData:ArrayCollection = new 
 ArrayCollection;
 private function initApp():void
 {
 acData.addItem
 ({col1:null,col2:null,col3:null,col4:null});
 acData.addItem({col1:1,col2:new Date
 (),col3:true,col4:A});
 acData.addItem
 ({col1:null,col2:null,col3:null,col4:null});
 acData.addItem({col1:2,col2:new Date
 (),col3:null,col4:B});
 acData.addItem
 ({col1:null,col2:null,col3:null,col4:null});
 acData.addItem({col1:3,col2:new Date
 (),col3:true,col4:C});
 acData.addItem
 ({col1:null,col2:null,col3:null,col4:null});
 acData.addItem({col1:4,col2:new Date
 (),col3:null,col4:D});
 acData.addItem
 ({col1:null,col2:null,col3:null,col4:null});
 acData.addItem({col1:5,col2:new Date
 (),col3:true,col4:E});
 acData.addItem
 ({col1:null,col2:null,col3:null,col4:null});
 acData.addItem({col1:6,col2:new Date
 (),col3:false,col4:F});
 acData.addItem
 ({col1:null,col2:null,col3:null,col4:null});
 dgSortTest.dataProvider = acData;
 }
 ]]
 /mx:Script
 
 mx:DataGrid id=dgSortTest x=26 y=10
 mx:columns
 mx:DataGridColumn headerText=Column 1 
 dataField=col1/
 mx:DataGridColumn headerText=Column 2 
 dataField=col2/
 mx:DataGridColumn headerText=Column 3 
 dataField=col3/
 mx:DataGridColumn headerText=Column 4 
 dataField=col4/
 /mx:columns
 /mx:DataGrid
 
 /mx:Application
 
 --- In flexcoders@yahoogroups.com
mailto:flexcoders%40yahoogroups.com , Gordon Smith gosmith@ wrote:
 
  Your use case seem very reasonable to me. In this particular case 
I
  disagree with my esteemed colleague Alex (who sits across from 
 me)... I
  think our default sorting routines should handle null values. So 
 please
  file this as a bug at http://bugs.adobe.com/flex and feel free to
  mention that I consider it a bug.
  
  However, I agree with Alex that it probably will not get fixed in 
 time
  for the Flex 3 release, as the bar is currently extremely high for
  making changes at this point. We've got to stabilize the release 
 and get
  it out! So you'll need to use a workaround for now.
  
  Gordon Smith
  Adobe Flex SDK Team
  
  
  
  From: flexcoders@yahoogroups.com
mailto:flexcoders%40yahoogroups.com  
 [mailto:flexcoders@yahoogroups.com
mailto:flexcoders%40yahoogroups.com ] On
  Behalf Of aceoohay
  Sent: Saturday, December 01, 2007 2:38 PM
  To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com

  Subject: [flexcoders] Re: If Flex is open source, how do we go 
about
  changing the language?
  
  
  
  Gordon:
  
  This thread was not intended as a technical thread, which is why 
I 
  didn't include the details about the problem. I documented the 
  problem in the following post;
  
  

[flexcoders] special characters in Feed content.

2007-12-02 Thread willfould
I have a flex app that chokes (gives [object Object]) when attempting
to display data from a content element of an Atom feed that often
contains HTML (special characters: '','',..etc.).

I'd wrap the value in CDATA or use a regular expression to clean up
the data, but the flex parser does not get that far.

Any ideas?


-w



Re: [flexcoders] Application without MXML: Is it possible?

2007-12-02 Thread Dave Glasser
I had no idea that SimpleApplication existed; it's not in my Flex 2.01 api 
docs. But then I looked in the source tree and indeed, there is an 
mx.core.SimpleApplication class. But the source reveals that it's just an empty 
subclass of MovieClip, so it can't be used in place of the Application class. I 
wouldn't be able to add any UIComponents to the display list without errors, 
since it seems that a UIComponent's entire ancestor chain must be made up 
entirely of other UIComponents.

Anatole Tartakovsky [EMAIL PROTECTED] wrote:Try inheriting from 
SimpleApplication - you still will get all mixins for css and static linkage 
for generated code, but less of the framework initialization - you should be 
able to create screen and have controls there. Of course, fewer things 
depending on the global managers will work later on ... 
   
  Regards,
  Anatole Tartakovsky
  FarataSystems
  

 
  On 11/30/07, Dave Glasser [EMAIL PROTECTED] wrote:   I'm trying 
to create an Application in pure Actionscript, by subclassing 
mx.core.Application, and when I run it I get:
   
  TypeError: Error #1009: Cannot access a property or method of a null object 
reference.
 at 
mx.core::UIComponent/getStyle()[C:\dev\flex_201_ja\sdk\frameworks\mx\core\UIComponent.as:7095]
  ...etc.
   
  The source file is basically an empty shell, with nothing but a constructor 
that calls super(). I'm not adding any children or setting any properties. It's 
not in the top-level package, if that makes any difference. 
   
  Is what I'm trying to do impossible, at least without adding some amount of 
setup code that is normally generated by the MXML preprocessor and isn't 
documented anywhere?
  
  






  

 


Re: [flexcoders] AMF question

2007-12-02 Thread Ryan Campbell

What do you currently use for your server-side language?

On 2-Dec-07, at 1:51 PM, jovialrandor wrote:


I have an application that imports various data from various data
sources. I have about 14 httpservice calls. Apparently this has
slowed down my app significantly. I heard that using the messaging
framework AMF can get large amounts of data in binary format which is
quicker. However I have not found any good example online to learn
from.

Does anyone know where I can get started with AMF?





[flexcoders] Traversing RSS/ATOM feed

2007-12-02 Thread Jon Bell
Hello!

I'm new to Flex and new to this group.  Nice to meet everyone.  I have  
a pretty simple problem.  I just want to refer to a nested bit of XML  
in an atom feed.

Go grab an ATOM feed:

mx:DataGrid width=730 height=212 id=dgPosts x=0 y=0  
color=#00 dataProvider={feedRequest.lastResult.feed.entry}

Here's some simplified XML:

entry
titleHere is a title/title
source attribute=blah
urlhttp://www.google.com/url
/source
/entry

Now start placing things.  This works as it should:

mx:DataGridColumn headerText=Title dataField=title/

But now I want to go one level deeper to grab the source url.  I've  
tried a variety of things, but none work.  When I just point to  
source, it returns an object:

mx:DataGridColumn headerText=Source dataField=source width=150/

I've tried a bunch of different approaches like this:

mx:DataGridColumn headerText=Source dataField=source.url  
width=150/
mx:DataGridColumn headerText=Source dataField=source..url  
width=150/
mx:DataGridColumn headerText=Source dataField=source['url']  
width=150/
mx:DataGridColumn headerText=Source dataField=source[0]  
width=150/

But none work.  I'm sure this is simple and I'm just not finding the  
right documentation.  Does anyone have a suggestion?


Thanks,
Jon


[flexcoders] Flex upload - preview data??

2007-12-02 Thread dewereb
Hi - I am working on a file upload process that needs to meet the
following requirements:

1) User selects file they wish to upload
2) Application needs to put a preview of the data to be uploaded on
the web page
3) User can then choose which rows they wish to upload from their
uploaded file
4) The chosen rows are then displayed in a datagrid and data can be
entered under column headers
5) The information in the datagrid is now uploaded to our server and
updated in our database

This process is currently done using Applets so most of the work is
done on the client side.  Now with the new Flex application our
company would like to use, it seems most of this work will be on our
server.

I am worried about the time this is all going to take if the max
uploaded rows is met (of 10,000).  Can anyone recommend a way to
efficiently accomplish this task?  Is there a way to possibly stream
the data into the flex application?  Any examples and advice is
appreciated!

The only way I can think of this working is uploading their file right
away to our server and somehow streaming it back into the flex
application to both preview, manipulate and send back to our server
again for the final update of the database.  However, I am also
struggling with how I can grab the information that was uploaded out
of the HTTP response??  Could someone please shed some light for me :)





RE: [flexcoders] Application without MXML: Is it possible?

2007-12-02 Thread Dave Glasser
I was already aware of that, but forgoing the use of UIComponents is not really 
an option for me.
   
  I don't see why the Flex team couldn't build a minimal set of defaults into 
the Application class that would allow it to be used outside of MXML. But 
absent that, I think the API docs should clearly indicate that the only 
practical way to instantiate and use the class is through MXML.
  
Alex Harui [EMAIL PROTECTED] wrote:
  Not all applications have to have mx:Application at the top 
level.  You can start with Sprite if you want.  That’s what happens when you 
create an ActionScript project in Flex Builder.  But then you can’t use most of 
the mx: components.
  
  
-
  
  From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Dave 
Glasser
Sent: Saturday, December 01, 2007 2:06 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Application without MXML: Is it possible?

  
I looked at the generated actionscript and it does look like there's a 
lot going on, and it's not worth trying to make it work without MXML. Maybe 
I'll log a bug report requesting that they say in the API doc that the 
Application class can only (as a practical matter) be used via the 
mx:Application MXML tag.

hank williams [EMAIL PROTECTED] wrote: 
 Is what I'm trying to do impossible, at least without adding some 
amount of setup code that is normally generated by the MXML preprocessor and 
isn't documented anywhere? __

As I understand it, this is exactly correct. If you compile an MXML
with the option on that generates actionscript (I forget how you do
this) you will see a lot of generated code even in an MXML hello
world.

Regards,
Han


  

  



  

 



[flexcoders] Re: Best Way to learn Flex

2007-12-02 Thread tomeuchre
--- In flexcoders@yahoogroups.com, Sheriff [EMAIL PROTECTED] wrote:

 So I have been trying to learn flex now for almost 9 month and i 
pretty much still don't know much to get me anywhere. 

Just take the right-colored pill and enter the Matrix. Then, you can 
download the knowledge into your brain directly ;)

Or, you can do like most of us that have been programming for 20+ 
years: work 300-hour months, forget your social life, and drink lots 
of caffeine. Don't forget to come up for air every now and then.

At least today's generation has google. Back in the day, all we had 
was Knuth (if you have not heard of Knuth, then it may be the problem 
that you have not gotten it after 9 months at Flex.

There are no shortcuts in programming -- either you spend the 
required amount of time, living through the simple and major mistakes 
one can (and will) make, or don't bother.

Just don't do what I did and start with Assembler. Although it was 
better in the long run, there's no need for the headaches these days.




Re: [flexcoders] Re: Best Way to learn Flex

2007-12-02 Thread DreamCode
I couldn't agree more on all counts

After twenty some years of programming I can honestly say that starting out
with assember was one of the best things i have done, although it would have
been nice to have google back then.

In the past 50-60 days I have been learning Flex I have gone to bed before
4am once, gotten up after 8.30am once and skipped 20-30% of all nights
completely.. In retrospect it would probably have been smarter doing a
Hello World instead of a massive project based 90% on custom components
and convoluted data access.

If you want it bad enough you will make it!

--Allan


On Dec 2, 2007 5:01 PM, tomeuchre [EMAIL PROTECTED] wrote:

--- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com,
 Sheriff [EMAIL PROTECTED] wrote:
 
  So I have been trying to learn flex now for almost 9 month and i
 pretty much still don't know much to get me anywhere.

 Just take the right-colored pill and enter the Matrix. Then, you can
 download the knowledge into your brain directly ;)

 Or, you can do like most of us that have been programming for 20+
 years: work 300-hour months, forget your social life, and drink lots
 of caffeine. Don't forget to come up for air every now and then.

 At least today's generation has google. Back in the day, all we had
 was Knuth (if you have not heard of Knuth, then it may be the problem
 that you have not gotten it after 9 months at Flex.

 There are no shortcuts in programming -- either you spend the
 required amount of time, living through the simple and major mistakes
 one can (and will) make, or don't bother.

 Just don't do what I did and start with Assembler. Although it was
 better in the long run, there's no need for the headaches these days.

 



[flexcoders] Re: If Flex is open source, how do we go about changing the language?

2007-12-02 Thread aceoohay
Matt:

Thanks for fixing the bug request.

Yes, all nulls seem to sort high, but that means if you click the 
heading twice it always fails because the nulls sort to the top, and 
the sort algorithm fails on the second pass.

One thing that could be done as a workaround, is to have the routine 
that determines which type of sorting to do look down the column 
until it finds the first (or first 2) non-null fields and use that 
info to determine the type of sorting to do. If it finds all nulls it 
doesn't need to sort anything.

Irrespective of fixing the bug, adding a property/attribute to define 
the internal comparator would be beneficial IMltHO. 


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

 And I guess let me add a few other things.
 
  
 
 1)  With regard to the bug itself, I'm guessing that the issue 
is
 that first item in the collection to be sorted has the null value.  
This
 is causing an error because we can't determine what kind of 
comparator
 to use by default.  If your first item hadn't been null you 
wouldn't see
 the issue. This means that you should specify the comparator you 
want to
 use, but one could argue that perhaps more information could be 
added to
 the DataGridColumn to provide an option for some of the provided
 comparators.  
 
 2)  I can't remember in our code which way null compares to an
 actual value, but they will group together.
 
 3)  There will of course be a process for code to get 
contributed to
 the SDK.  We'll have more info on this as we get closer to release, 
but
 in general it will involve having a bug filed in the bugbase, votes
 indicating the community's interest in having it fixed along with 
SDK
 management agreeing that the contribution is useful, and then the
 committers (SDK engineering) approval of the fix.
 
  
 
 Matt
 
  
 
 From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On
 Behalf Of Matt Chotin
 Sent: Sunday, December 02, 2007 3:57 PM
 To: flexcoders@yahoogroups.com
 Subject: RE: [flexcoders] Re: If Flex is open source, how do we go 
about
 changing the language?
 
  
 
 I've moved this bug to https://bugs.adobe.com/jira/browse/SDK-13808
 since it is not related to the ActionScript compiler, it's only in 
the
 Flex classes.
 
  
 
 Matt
 
  
 
 From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On
 Behalf Of aceoohay
 Sent: Saturday, December 01, 2007 9:14 PM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Re: If Flex is open source, how do we go about
 changing the language?
 
  
 
 Gordon:
 
 Per your request I have filed a bug report. It can be found here;
 
 https://bugs.adobe.com/jira/browse/ASC-3042
 
 Paul
 --- In flexcoders@yahoogroups.com mailto:flexcoders%
40yahoogroups.com
 , aceoohay pauls@ wrote:
 
  Gordon, et al:
  
  Here is a simple test that will show the problem;
  
  ?xml version=1.0 encoding=utf-8?
  mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; 
  layout=absolute
  creationComplete=initApp()
  mx:Script
  ![CDATA[
  import mx.collections.ArrayCollection;
  import mx.controls.Alert;
  [Bindable] public var acData:ArrayCollection = new 
  ArrayCollection;
  private function initApp():void
  {
  acData.addItem
  ({col1:null,col2:null,col3:null,col4:null});
  acData.addItem({col1:1,col2:new Date
  (),col3:true,col4:A});
  acData.addItem
  ({col1:null,col2:null,col3:null,col4:null});
  acData.addItem({col1:2,col2:new Date
  (),col3:null,col4:B});
  acData.addItem
  ({col1:null,col2:null,col3:null,col4:null});
  acData.addItem({col1:3,col2:new Date
  (),col3:true,col4:C});
  acData.addItem
  ({col1:null,col2:null,col3:null,col4:null});
  acData.addItem({col1:4,col2:new Date
  (),col3:null,col4:D});
  acData.addItem
  ({col1:null,col2:null,col3:null,col4:null});
  acData.addItem({col1:5,col2:new Date
  (),col3:true,col4:E});
  acData.addItem
  ({col1:null,col2:null,col3:null,col4:null});
  acData.addItem({col1:6,col2:new Date
  (),col3:false,col4:F});
  acData.addItem
  ({col1:null,col2:null,col3:null,col4:null});
  dgSortTest.dataProvider = acData;
  }
  ]]
  /mx:Script
  
  mx:DataGrid id=dgSortTest x=26 y=10
  mx:columns
  mx:DataGridColumn headerText=Column 1 
  dataField=col1/
  mx:DataGridColumn headerText=Column 2 
  dataField=col2/
  mx:DataGridColumn headerText=Column 3 
  dataField=col3/
  mx:DataGridColumn headerText=Column 4 
  dataField=col4/
  /mx:columns
  /mx:DataGrid
  
  /mx:Application
  
  --- In flexcoders@yahoogroups.com
 mailto:flexcoders%40yahoogroups.com , Gordon Smith gosmith@ 
wrote:
  
   Your use case seem very reasonable to me. In this particular 
case 
 I
   disagree with my esteemed colleague Alex (who sits across from 
  me)... I
   think our default sorting routines should handle null values. 
So 
  please
   file this as a bug at http://bugs.adobe.com/flex and feel free 
to
   mention that I consider it a bug.
   
   However, I agree with Alex that it probably will not get fixed 
in 
  time
   for the Flex 3 release, 

Re: [flexcoders] Re: Best Way to learn Flex

2007-12-02 Thread Paul Andrews
- Original Message - 
  From: DreamCode 
  To: flexcoders@yahoogroups.com 
  Sent: Monday, December 03, 2007 1:18 AM
  Subject: Re: [flexcoders] Re: Best Way to learn Flex


  In the past 50-60 days I have been learning Flex I have gone to bed before 
4am once, gotten up after 8.30am once and skipped 20-30% of all nights 
completely.
Strangely enough, it's not something I'd be advertising, nor something I can 
see Adobe promoting as sound practice, though sadly, I know where you are 
coming from.
   In retrospect it would probably have been smarter doing a Hello World 
instead of a massive project based 90% on custom components and convoluted data 
access. 
Absolutely.
  If you want it bad enough you will make it!
I've never understood why people are happy to boast they work this way. It's 
hardly good for the individual, project or industry.

Quite honestly, I saw Flex as a way to avoid ridiculous working hours and mad 
sessions (and I hope one day it turns out that way).

YOU DO NOT NEED TO BE A VAMPIRE TO LEARN FLEX!

LOL

;-)

Paul
  --Allan

[flexcoders] DISREGARD: FileReference on Mac - When will it be fixed?

2007-12-02 Thread Paul Whitelock
I figured it out -- I didn't realize that the data reported by
FileReference depends on the OS on which Flash Player is running.



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

 Just tried Ubuntu and no joy there either -- maybe it shares the same
 code base as the Mac since they are both Unix.
 
 
 --- In flexcoders@yahoogroups.com, Paul Whitelock news@ wrote:
 
  I've read that the bugs with FileReference on the Macintosh have been
  fixed, but I'm still having problems uploading (as in uploads don't
 work).
  
  The problem exists in Leopard (Mac Pro running Flash Player 9.0.98.0)
  and Tiger (MacBook Pro running 9.0.60.235). No problems with uploads
  running on Windows.
  
  Anyone from Adobe care to comment?
 





[flexcoders] Re: AMF question

2007-12-02 Thread jovialrandor
I am currently using J2EE as the server side language.




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

 What do you currently use for your server-side language?
 
 On 2-Dec-07, at 1:51 PM, jovialrandor wrote:
 
  I have an application that imports various data from various data
  sources. I have about 14 httpservice calls. Apparently this has
  slowed down my app significantly. I heard that using the messaging
  framework AMF can get large amounts of data in binary format which is
  quicker. However I have not found any good example online to learn
  from.
 
  Does anyone know where I can get started with AMF?
 





[flexcoders] Re: Best Way to learn Flex

2007-12-02 Thread aceoohay
As long as other old timers are sittin' around the diner tellin' lies 
I can add my two cents.

My first language was in High School, Burroughs B200 machine 
language No assembly required.

The question is not how best to teach yourself Flex, but how best to 
become a programmer. Is Flex the right tool for this? I think it is 
as good as any, although the event driven model might make some 
things more challenging (it still bugs the crap outa me from time to 
time). I believe that teaching yourself the discipline of programming 
is much more important than whatever language you use to do it.

To do this you may want to start by analyzing everyday things that 
you do or see. For example the next time you go into a restaurant or 
store, look at how things are laid out and look for the patterns in 
workflow. Create a game out of how you would improve the systems you 
see. To do this you will need to break things down into their 
simplest actions and decisions, and then put them back together. Once 
you do this a while you will start thinking in modular ways that will 
help as you develop systems.

For me, the best way to teach myself a new language is to read a 
little and check out some online tutorials until they put me to 
sleep, and do a Hello World. Once through this phase, (call it the 
first 2 dates) it's time to do a real program. This is the third 
date, you take the language to a drive-in, and see whether you can 
get to third base, or perhaps a home run. If the passion still burns 
the next day, the next step is to move in together, start a real 
project. This can be small, but something that is real. I am 
converting a large inquiry system written in ASP to Flex for my first 
project, and other than fighting over the Flex's nasty habits of 
leaving the top off the toothpaste, and leaving its things all around 
it's going well.

This is just how I go about it.

Paul

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

 --- In flexcoders@yahoogroups.com, Sheriff sherif626@ wrote:
 
  So I have been trying to learn flex now for almost 9 month and i 
 pretty much still don't know much to get me anywhere. 
 
 Just take the right-colored pill and enter the Matrix. Then, you 
can 
 download the knowledge into your brain directly ;)
 
 Or, you can do like most of us that have been programming for 20+ 
 years: work 300-hour months, forget your social life, and drink 
lots 
 of caffeine. Don't forget to come up for air every now and then.
 
 At least today's generation has google. Back in the day, all we had 
 was Knuth (if you have not heard of Knuth, then it may be the 
problem 
 that you have not gotten it after 9 months at Flex.
 
 There are no shortcuts in programming -- either you spend the 
 required amount of time, living through the simple and major 
mistakes 
 one can (and will) make, or don't bother.
 
 Just don't do what I did and start with Assembler. Although it was 
 better in the long run, there's no need for the headaches these 
days.





Re: [flexcoders] Re: Best Way to learn Flex

2007-12-02 Thread Paul Andrews
Actually the post has reminded me of a University lecture I had (many, many 
years ago) where the lecturer gave some incredibly low figure for the number of 
lines of code written daily by professional programmers. Nobody thought the 
figure could be so low - after all we cranked out programs at a great rate. It 
was only after I started working professionally that I really understood what 
was going on.

At university our programs didn't have to work. They had to work 'mostly'. They 
didn't drive displays for hospital machines nor did they control nuclear 
reactors. In addition to this, nobody else would work on them, they didn't have 
to be readable by anyone else, they didn't have to follow any standards. We 
could churn this stuff out and impress.

Then I started work. Suddenly my software was going to be used by thousands of 
people. If it failed (yes, it did have some assembler) it would corrupt the 
disc drives it controlled to write data away. Finally, I had to sit down first 
and design it, talk about it, keep the documentation up to date, co-operate 
with others and eventually hand it over so others could maintain and develop it 
further without me. Suddenly I was that professional programmer, suddenly I 
didn't write much code every day. As far as I know, my code never corrupted any 
disc drive.

Then our lecturer explained that when he spent late nights out at parties, or 
just went into marathon coding sessions, he usually spent the next day fixing 
all the stupid things he did the morning after, or the night before. He didn't 
do the late night thing anymore, or if he did he didn't attempt to write code 
the morning after.

Now I wish my code were as good as that first project I did. I have done the 
late nights, I have written the bad code, bugs are something I know only too 
well. One thing I do know is that the more time I spend not coding, the less 
code I need to write and the better my applications are. I write the least code 
I can and I produce the fewest components that I can and I often look back and 
wonder how I spent so long writing so little code, that looks so simple.

One great thing about avoiding end to end coding sessions - it allows you to 
step back from the project and find that simpler approach that just doesn't 
appear when your head is buried in the code. The gaps between intense coding 
are important and arguably as productive in  taking you out of blind alleys or 
complicated scenarios that can be simplified.

I happen to think that's the best way to be and I'd ask anyone involved in 
regular code marathons to really consider if it actually helps (either them or 
the project).

I actually used to admire a project manager that used to spend much of his time 
sat at an empty desk, often reading a newspaper. He always seemed to know the 
right thing to do and wrote great code. Others thought he just wasted his time.

Enough,

Paul

(hey, I hardly even mentioned documentation. Documentation takes far longer 
than coding..)
  - Original Message - 
  From: Paul Andrews 
  To: flexcoders@yahoogroups.com 
  Sent: Monday, December 03, 2007 1:43 AM
  Subject: Re: [flexcoders] Re: Best Way to learn Flex


  - Original Message - 
From: DreamCode 
To: flexcoders@yahoogroups.com 
Sent: Monday, December 03, 2007 1:18 AM
Subject: Re: [flexcoders] Re: Best Way to learn Flex


In the past 50-60 days I have been learning Flex I have gone to bed before 
4am once, gotten up after 8.30am once and skipped 20-30% of all nights 
completely.
  Strangely enough, it's not something I'd be advertising, nor something I can 
see Adobe promoting as sound practice, though sadly, I know where you are 
coming from.
 In retrospect it would probably have been smarter doing a Hello 
World instead of a massive project based 90% on custom components and 
convoluted data access. 
  Absolutely.
If you want it bad enough you will make it!
  I've never understood why people are happy to boast they work this way. It's 
hardly good for the individual, project or industry.

  Quite honestly, I saw Flex as a way to avoid ridiculous working hours and mad 
sessions (and I hope one day it turns out that way).

  YOU DO NOT NEED TO BE A VAMPIRE TO LEARN FLEX!

  LOL

  ;-)

  Paul
--Allan
   

Re: [flexcoders] Re: Best Way to learn Flex

2007-12-02 Thread DreamCode
I agree again. with everything, but unfortunately I don't have an IQ
that breaks the bank, so in order for me to keep up with the talented ones I
have to work harder :)

--Allan

On Dec 2, 2007 6:26 PM, aceoohay [EMAIL PROTECTED] wrote:

   As long as other old timers are sittin' around the diner tellin' lies
 I can add my two cents.

 My first language was in High School, Burroughs B200 machine
 language No assembly required.

 The question is not how best to teach yourself Flex, but how best to
 become a programmer. Is Flex the right tool for this? I think it is
 as good as any, although the event driven model might make some
 things more challenging (it still bugs the crap outa me from time to
 time). I believe that teaching yourself the discipline of programming
 is much more important than whatever language you use to do it.

 To do this you may want to start by analyzing everyday things that
 you do or see. For example the next time you go into a restaurant or
 store, look at how things are laid out and look for the patterns in
 workflow. Create a game out of how you would improve the systems you
 see. To do this you will need to break things down into their
 simplest actions and decisions, and then put them back together. Once
 you do this a while you will start thinking in modular ways that will
 help as you develop systems.

 For me, the best way to teach myself a new language is to read a
 little and check out some online tutorials until they put me to
 sleep, and do a Hello World. Once through this phase, (call it the
 first 2 dates) it's time to do a real program. This is the third
 date, you take the language to a drive-in, and see whether you can
 get to third base, or perhaps a home run. If the passion still burns
 the next day, the next step is to move in together, start a real
 project. This can be small, but something that is real. I am
 converting a large inquiry system written in ASP to Flex for my first
 project, and other than fighting over the Flex's nasty habits of
 leaving the top off the toothpaste, and leaving its things all around
 it's going well.

 This is just how I go about it.

 Paul


 --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com,
 tomeuchre [EMAIL PROTECTED] wrote:
 
  --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com,
 Sheriff sherif626@ wrote:
  
   So I have been trying to learn flex now for almost 9 month and i
  pretty much still don't know much to get me anywhere.
 
  Just take the right-colored pill and enter the Matrix. Then, you
 can
  download the knowledge into your brain directly ;)
 
  Or, you can do like most of us that have been programming for 20+
  years: work 300-hour months, forget your social life, and drink
 lots
  of caffeine. Don't forget to come up for air every now and then.
 
  At least today's generation has google. Back in the day, all we had
  was Knuth (if you have not heard of Knuth, then it may be the
 problem
  that you have not gotten it after 9 months at Flex.
 
  There are no shortcuts in programming -- either you spend the
  required amount of time, living through the simple and major
 mistakes
  one can (and will) make, or don't bother.
 
  Just don't do what I did and start with Assembler. Although it was
  better in the long run, there's no need for the headaches these
 days.
 

   



Re: [flexcoders] Re: Best Way to learn Flex

2007-12-02 Thread Bjorn Schultheiss

Set goals that interest you.
Interest and 'passion' : ) assists learning.

Ralf's url was a nice read.


regards,

Bjorn


On 03/12/2007, at 1:55 PM, DreamCode wrote:



I agree again. with everything, but unfortunately I don't have  
an IQ that breaks the bank, so in order for me to keep up with the  
talented ones I have to work harder :)


--Allan

On Dec 2, 2007 6:26 PM, aceoohay [EMAIL PROTECTED] wrote:
As long as other old timers are sittin' around the diner tellin' lies
I can add my two cents.

My first language was in High School, Burroughs B200 machine
language No assembly required.

The question is not how best to teach yourself Flex, but how best to
become a programmer. Is Flex the right tool for this? I think it is
as good as any, although the event driven model might make some
things more challenging (it still bugs the crap outa me from time to
time). I believe that teaching yourself the discipline of programming
is much more important than whatever language you use to do it.

To do this you may want to start by analyzing everyday things that
you do or see. For example the next time you go into a restaurant or
store, look at how things are laid out and look for the patterns in
workflow. Create a game out of how you would improve the systems you
see. To do this you will need to break things down into their
simplest actions and decisions, and then put them back together. Once
you do this a while you will start thinking in modular ways that will
help as you develop systems.

For me, the best way to teach myself a new language is to read a
little and check out some online tutorials until they put me to
sleep, and do a Hello World. Once through this phase, (call it the
first 2 dates) it's time to do a real program. This is the third
date, you take the language to a drive-in, and see whether you can
get to third base, or perhaps a home run. If the passion still burns
the next day, the next step is to move in together, start a real
project. This can be small, but something that is real. I am
converting a large inquiry system written in ASP to Flex for my first
project, and other than fighting over the Flex's nasty habits of
leaving the top off the toothpaste, and leaving its things all around
it's going well.

This is just how I go about it.

Paul



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

 --- In flexcoders@yahoogroups.com, Sheriff sherif626@ wrote:
 
  So I have been trying to learn flex now for almost 9 month and i
 pretty much still don't know much to get me anywhere.

 Just take the right-colored pill and enter the Matrix. Then, you
can
 download the knowledge into your brain directly ;)

 Or, you can do like most of us that have been programming for 20+
 years: work 300-hour months, forget your social life, and drink
lots
 of caffeine. Don't forget to come up for air every now and then.

 At least today's generation has google. Back in the day, all we had
 was Knuth (if you have not heard of Knuth, then it may be the
problem
 that you have not gotten it after 9 months at Flex.

 There are no shortcuts in programming -- either you spend the
 required amount of time, living through the simple and major
mistakes
 one can (and will) make, or don't bother.

 Just don't do what I did and start with Assembler. Although it was
 better in the long run, there's no need for the headaches these
days.











RE: [flexcoders] Application without MXML: Is it possible?

2007-12-02 Thread Gordon Smith
 I don't see why the Flex team couldn't build a minimal set of defaults
 into the Application class that would allow it to be used outside of
MXML.
 
We could make this work (although we won't have time before Flex 3
ships). Please file an enhancement request at http://bugs.adobe.com/flex
if you feel it is important for a future release.
 
But I'm always interested in why some people avoid MXML. What's your
reason?
 
- Gordon



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Dave Glasser
Sent: Sunday, December 02, 2007 12:47 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Application without MXML: Is it possible?



I was already aware of that, but forgoing the use of UIComponents is not
really an option for me.
 
I don't see why the Flex team couldn't build a minimal set of defaults
into the Application class that would allow it to be used outside of
MXML. But absent that, I think the API docs should clearly indicate that
the only practical way to instantiate and use the class is through MXML.

Alex Harui [EMAIL PROTECTED] wrote:

Not all applications have to have mx:Application at the top
level.  You can start with Sprite if you want.  That's what happens when
you create an ActionScript project in Flex Builder.  But then you can't
u! se most of the mx: components.




From: flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] On Behalf Of Dave Glasser
Sent: Saturday, December 01, 2007 2:06 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Application without MXML: Is it
possible?

I looked at the generated actionscript and it does look like
there's a lot going on, and it's not worth trying to make it work
without MXML. Maybe I'll log a bug report requesting that they say in
the API doc that the Application class can only (as a practical !
matter) be used via the mx:Application MXML tag.

hank williams [EMAIL PROTECTED] wrote: 

 Is what I'm trying to do impossible, at least without
adding some amount of setup code that is normally generated by the MXML
preprocessor and isn't documented anywhere? __

As I understand it, this is exactly correct. If you
compile an MXML
with the option on that generates actionscript (I forget
how you do
this) you will see a lot of generated code even in an
MXML hello
world.

Regards,
Han





 


RE: [flexcoders] CSS usage?

2007-12-02 Thread Gordon Smith
mx:Application xmlns:mx=http://www.adobe.com/2006/mxml;
mx:Style source=mystyles.css/
/mx:Application

- Gordon



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Lex
Sent: Sunday, December 02, 2007 3:44 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] CSS usage?



 
Anyone?  The livedocs site is a pain to navigate :/
 
Appreciated muchly!
Alex
 
 
 
 

- Original Message - 
From: Lex mailto:[EMAIL PROTECTED]  
To: flex mailto:flexcoders@yahoogroups.com  
Sent: Friday, November 30, 2007 3:45 PM
Subject: [flexcoders] CSS usage?


 
If I go here and build a CSS sheet:

http://examples.adobe.com/flex3/consulting/styleexplorer/Flex3StyleExplorer.html
 
http://examples.adobe.com/flex3/consulting/styleexplorer/Flex3StyleExplorer.html
 #
 
Where do I instruct the system to use it thereafter?
 
Thanks.
Alex



 


RE: [flexcoders] Runtime MXML compiler

2007-12-02 Thread Gordon Smith
 Are you going to compile a page when a request comes in?
 
That's the impression I got of what Sébastien wants to do.
 
 all custom components needed to be referenced once inside my code 
 
If you're creating components via their class name, with code like
 
var someClass:Class = Class(getDefinitionByName(someClassName));
var instanceOfSomeClass:Object = new someClass();
 
there is no way that the MXML compiler/linker can be smart enough to figure out 
what class names might be encountered at runtime. Therefore it can't include 
these classes in the SWF unless you give it some help.
 
One way is to use vars like you show to create dependencies.
 
Another way is to use the -include-classes compilation option. For some reason 
that I don't understand, this is only an option for compc when you make a SWC, 
not for mxml when you make a SWF. But you can make a SWC with all your custom 
classes and then link that SWC in with -include-libraries.
 
Another possibility is to put all your custom classes into a module and load it.
 
Gordon Smith
Adobe Flex SDK Team



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of 
DreamCode
Sent: Sunday, December 02, 2007 2:38 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Runtime MXML compiler



Hey Sebastien/Gordon

 

I'm not sure I understand what you're asking... mxml compilation at runtime? 
Are you going to compile a page when a request comes in? 

 

As for the dynamic creation of content based on custom xml, that is quite nice. 
It's a big part of my current spare time project. 

 

The only real issue so far I have had,  is that in order for me to generate the 
UI, all custom components needed to be referenced once inside my code. So even 
though I have this: 

 

import dc.digr.ui.comp.*;

 

I still need this:

 

var a:digrButton = new digrButton (); 

var b:digrButtonLarge = new digrButtonLarge(); 

var c:digrButtonIconOnly = new digrButtonIconOnly(); 

var d:digrButtonMini = new digrButtonMini(); 

 

for all the custom ui components in the beginning of my code to avoid a runtime 
error

 

Gordon, if you have some wisdom on this Spread the joy! J 

 

 


[flexcoders] is change a program's namespace in run-time possible?

2007-12-02 Thread garylee0709
i try to use the code:
use namespace ...to change some constants of program at run-time,
it seems no working at all...
is there a way to work this out?
any replies will be greatly appreciated.



[flexcoders] How to make viewSource enabled

2007-12-02 Thread Girish
Hi,

I want to make my project viewSource enabled. how can i do that.

Regards
Girish


  Get the freedom to save as many mails as you wish. To know how, go to 
http://help.yahoo.com/l/in/yahoo/mail/yahoomail/tools/tools-08.html

RE: [flexcoders] Printing a large string over multiple pages

2007-12-02 Thread Alex Harui
Look at the source for PrintDataGrid.  You should be able to use the
same pattern for TextArea

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Paul Steven
Sent: Sunday, December 02, 2007 1:28 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Printing a large string over multiple pages

 

Still desperately trying to find a solution to this!

 

How can I print a text field that contains more than one page worth of
text over multiple pages?

 

Thanks

 

Paul

 

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Paul Steven
Sent: 29 November 2007 20:30
To: flexcoders@yahoogroups.com
Subject: [SPAM] [flexcoders] Printing a large string over multiple pages

 

I am printing a large string and it is only printing one page worth of
the string data. Ideally I would like it to print the entire string
using as many pages as it requires to print out the entire contents. Any
help much appreciated!!

 

This is my print function code:

 

private function doPrint():void {




var printJob:FlexPrintJob = new FlexPrintJob(); 



var formPrintView:SubmissionReport = new
SubmissionReport();

addChild(formPrintView);




var todayDate:Date = new Date();



formPrintView.detailUsername.text =
_session.getSessionUsername();

formPrintView.detailDate.text = String(todayDate);

formPrintView.detailcontent.text =
_session.returnSubmissionReportText()



printJob.start();



printJob.addObject(formPrintView);




printJob.send();




removeChild(formPrintView);





}

 

 

 



[flexcoders] ItemEditors and ItemRenderers (was Re: Datagrid tab order?)

2007-12-02 Thread Stephen Roy J. Tang
What I have is the Flex 2.0.1 patch for Flash CS3 Professional
compatibility, are they compatible? i.e. I just install the hotfix 2/3
on top of it?

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

 That sounds like you are not using 2.0.1 Hotfix 2 or later.  I cannot
 reproduce your problem with that release.
 
 
 
 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
 Behalf Of Stephen Roy J. Tang
 Sent: Wednesday, November 28, 2007 12:39 AM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] ItemEditors and ItemRenderers (was Re: Datagrid
 tab order?)
 
 
 
 Can you check my sample here:
 http://roytang.net/sandbox/DataGridSample.swf
 http://roytang.net/sandbox/DataGridSample.swf 
 
 Source at http://roytang.net/sandbox/DataGridSample.mxml
 http://roytang.net/sandbox/DataGridSample.mxml 
 
 When I tab starting from the textinput and all the way to the last row
 of the datagrid (row 14), it's still ok. But after tabbing out from
 row 14 the tab order becomes trapped in the onscreen checkboxes (and
 doesn't even follow them in the top-to-bottom left-to-right order)
 
 --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
 , Alex Harui aharui@ wrote:
 
  tabEnabled is ignored for renderers/editors. The only thing that
  matters is editable=true on the DG and the DGColumn.
  
  You should have itemRenderer=CheckBox and rendererIsEditor=true. You
  don't need to set itemEditor=CheckBox.
  
  
  
  From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
 [mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
 ] On
  Behalf Of Stephen Roy J. Tang
  Sent: Tuesday, November 27, 2007 7:54 PM
  To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com 
  Subject: [flexcoders] ItemEditors and ItemRenderers (was Re: Datagrid
  tab order?)
  
  
  
  thanks. I appreciate the replies esp. since I can't provide my app's
  sample code here so I guess it's difficult for others to figure out.
  
  I guess the problem is I tried to avoid using itemEditors entirely and
  used itemRenderers instead, so now the tab order is all messed up and
  doesn't scroll.
  
  I'm going to try using itemEditors again. However, the main problem
  there is that I want to render the column as a checkbox and have it
  editable as a checkbox also. So I'll do the ff:
  1. set itemRenderer=checkbox and itemEditor=checkbox. 
  2. set tabEnabled=false for the checkbox itemRenderer; this is so that
  the itemRenderers don't screw up the tab order
  Under the above setup, the tab order seems correct. 
  
  The only issue with the above that I'm not sure how to support is that
  visually the column is a checkbox, but requires the user to click
  twice on the checkbox to toggle the value (once to enable edit mode,
  second time to actually edit). Is there any way to avoid this? Most of
  the examples of using checkbox as an itemEditor seem to use static
  text as the renderer.
  
  --- In flexcoders@yahoogroups.com
 mailto:flexcoders%40yahoogroups.com
 mailto:flexcoders%40yahoogroups.com
  , Alex Harui aharui@ wrote:
  
   the default editing code handles offscreen rows.
   
   you can probably override focusinhandler and set editeditemposition
   
   the dg remembers the last position of the editor and restores
 editing
   there
   
   
   
   From: flexcoders@yahoogroups.com
 mailto:flexcoders%40yahoogroups.com
 mailto:flexcoders%40yahoogroups.com
  [mailto:flexcoders@yahoogroups.com
 mailto:flexcoders%40yahoogroups.com
 mailto:flexcoders%40yahoogroups.com
  ] On
   Behalf Of Stephen Roy J. Tang
   Sent: Tuesday, November 27, 2007 1:19 AM
   To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
 mailto:flexcoders%40yahoogroups.com 
   Subject: [flexcoders] Re: Datagrid tab order?
   
   
   
   We had trouble before with having both an item renderer and an item
   editor for a column (which we need to have that checkbox column), so
   instead what I tried was simply having only itemrenderers for the
   controls (and updating the data on change of the itemrenderer
   controls) This seems to fix the default tab order, but there are
 still
   some issues with the tab order, namely:
   
   1. Tabbing through the grid only traverses visible rows - how can a
   user navigate to scrolled-out rows using the keyboard?
   2. Sorting the grid doesn't seem to sort the taborder - the rows are
   still traversed in the original order. (Strangely, reassigning a
   headerRenderer after the sorting sets the correct tab order - I
 found
   this by accident)
   3. Tabbing into the grid from an outside control - looks like it
   remembers where the grid was last traversed and starts over from
   there. Is it possible to change it to always enter the grid from the
   first row?
   4. I'm not sure of the behavior exactly, as I couldn't replicate it
   all the time, but 

Re: [flexcoders] Runtime MXML compiler

2007-12-02 Thread DreamCode
I don't think the result of that is inside the acceptable levels for a
content management system.  but hey... what do I know

I would. and I did for my project choose creating it in AS3 based on
database/xml content.

--Allan
On Dec 2, 2007 7:26 PM, Gordon Smith [EMAIL PROTECTED] wrote:

 Are you going to compile a page when a request comes in?

 That's the impression I got of what Sébastien wants to do.

  all custom components needed to be referenced once inside my code
 If you're creating components via their class name, with code like

 var someClass:Class = Class(getDefinitionByName(someClassName));
 var instanceOfSomeClass:Object = new someClass();

 there is no way that the MXML compiler/linker can be smart enough to
 figure out what class names might be encountered at runtime. Therefore it
 can't include these classes in the SWF unless you give it some help.

 One way is to use vars like you show to create dependencies.

 Another way is to use the -include-classes compilation option. For some
 reason that I don't understand, this is only an option for compc when you
 make a SWC, not for mxml when you make a SWF. But you can make a SWC with
 all your custom classes and then link that SWC in with -include-libraries.

 Another possibility is to put all your custom classes into a module and
 load it.

 Gordon Smith
 Adobe Flex SDK Team

  --
 *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On
 Behalf Of *DreamCode
 *Sent:* Sunday, December 02, 2007 2:38 PM
 *To:* flexcoders@yahoogroups.com
 *Subject:* Re: [flexcoders] Runtime MXML compiler

Hey Sebastien/Gordon



 I'm not sure I understand what you're asking… mxml compilation at runtime?
 Are you going to compile a page when a request comes in?



 As for the dynamic creation of content based on custom xml, that is quite
 nice. It's a big part of my current spare time project.



 The only real issue so far I have had,  is that in order for me to
 generate the UI, all custom components needed to be referenced once inside
 my code. So even though I have this:



 import dc.digr.ui.comp.*;



 I still need this:



 *var *a:digrButton = *new* digrButton ();

 *var *b:digrButtonLarge = *new* digrButtonLarge();

 *var *c:digrButtonIconOnly = *new* digrButtonIconOnly();

 *var* d:digrButtonMini = *new* digrButtonMini();



 for all the custom ui components in the beginning of my code to avoid a
 runtime error….



 Gordon, if you have some wisdom on this…. Spread the joy! J



  



[flexcoders] ***************************TWO WAY SSL AND REPORTING IN FLEX *********************************

2007-12-02 Thread yourName
Q1)Can any body tell how to implement TWO WAY SSL in flex/java application..
can any one send me link or sample code ..

Q2) Plz tell me about reporting in flex which reporting can i use

Thanks In Advance...

[flexcoders] Re: How to make viewSource enabled

2007-12-02 Thread garylee0709
select 'project ' from ur flex builder menu,then select 'publish 
application source',
feel free to change any pre-settings.
after that,add up 'viewSourceURL' property in ur Application MXML Tag 
with the
the value,which if u use the pre-settings of flex builder it should 
then be 'srcview/index.html'.

have a nice day~



[flexcoders] Verifing URL before setting it to the source of VideoDisplay

2007-12-02 Thread Nadeem Manzoor
hello All


I am in a big trouble, problem is i have developed a video player in flex.
It works fine. But an incorrect URL is passed to the player , it troughs an
error (connection Error) but after that it does not even load a correct flv.
how can i solve this problem .. I know there must be a simple solution for
that ..

Can i verify a url before setting it to the source property of videoDisplay

Thanks in Advance,

-- 
Regards,

Nadeem Manzoor


[flexcoders]Support for PS3 and XBox 360

2007-12-02 Thread dorkie dork from dorktown
What is the support for development on PS3 and XBox 360 platforms? Are our
apps available through their integrated browser (not sure of the current
players in each)? Could we use AIR to develop apps for these platforms?
Availability of Flash Player 9 AS3 or AIR apps on these platforms would be
of huge interest to the whole development community. Imagine using the C++
to AS3 conversion utility to port Doom and other games or apps to run on
PS3.


[flexcoders] Using DateField as itemEditor for DataGrid column

2007-12-02 Thread carl_steinhilber

I'm having a problem using a DateField as a itemRenderer/editor for a
column in a dataGrid.

If I set the DateField as my itemEditor, everything works perfectly.
But if I set the DateField as my itemRenderer and set rendererIsEditor
to true the dataGrid renders completely blank (no data in *any* field)
and locks down so *nothing* is editable.

In reading posts in the archives in this group and elsewhere, folks
with similar issues were told to make sure the data bound to the
column is of type date.
But I have two issues with that:
1) if it wasn't understood as being of type date, why would it work
when the dateField was set as the itemEditor
and
2) I'm loading in the dataProvider for the DataGrid as a Bindable
XMLListCollection from an external XML file... and I'm not sure how I
can designate in XML that the node is of type date.

Anyone have any info or pointers? They'd be greatly appreciated.

Thanks in advance!
-Carl