[flexcoders] "Blank Screen" issue with application preloaders

2009-04-23 Thread b_alen
I get a blank screen for more than 10 seconds for the app that's about 700k in 
size. Only then the preloader appears and starts from somewhere around 70%. 

In the Flash days, this was easily solved by having one small SWF with 
preloader that would load the main SWF in empty movie clip. Is something like 
this possible in Flex? 

I did a small experiment with loading the Flex app into Flash SWF, but then the 
sizing and alignments were lost. I also tried loading a Flex app into a smaller 
Flex app, but still there was a blank screen for quite a while.

It's a huge usability issue knowing that users leave after 8 seconds, which is 
actualy true looking at google analytics reports.

I've checked numerous blogs about custom preloaders but only found that all of 
them have the same issue. 

These are all the apps and samples with the same issue:

http://tv.adobe.com/#
http://onflash.org/ted/2006/07/flex-2-custom-preloaders.php
http://onflash.org/ted/2006/07/flex-2-preloaders-swf-png-gif-examples.php
http://jessewarden.com/2007/07/making-a-cooler-preloader-in-flex-part-1-of-3.html






[flexcoders] Which Unit Testing Framework to use?

2009-01-06 Thread b_alen
After a brief search on flex unit testing I found that FlexUnit is
supposed to be the leader of the pack. Also, there is FlexMonkey that
looks to be promising and it even uses FlexUnit. 

http://code.google.com/p/flexmonkey/

Are there any other frameworks worth considering and what is your
general experience with various frameworks.

Thanks.

Alen



[flexcoders] Re: How to display special characters like ° in ComboBox list

2008-12-05 Thread b_alen
This is an issue since the Flash was invented. Your best bet is to
convert HTML entities to unicode characters. You can do that in the
runtime right after you fetch the data from the server, or you can do
it on the server. 

If you're doing it in Flex runtime make use of String.replace, and
RegExp. 

You can just Google to get the unicode equivalent of the character you
want to display.


Cheers,

Alen




--- In flexcoders@yahoogroups.com, "Tracy Spratt" <[EMAIL PROTECTED]> wrote:
>
> The special character numeric references work fine in Label and Text and
> such, but are interpreted literally in a ComboBox's drop list.
> 
> Any sugestions?
> 
> Tracy
>




[flexcoders] AIR app uninstall issue - database stays in applicationStorageDirectory forever?

2008-12-05 Thread b_alen
Not sure if I'm doing something wrong, on the application launch I'm
copying SQLite database from applicationDirectory to
applicationStorageDirectory, in order to be able to read and write. 

Of course, I check if the database already exists there or not. 

var dbFile:File = File.applicationDirectory.resolvePath("database.db");

var DBDestination:File =
File.applicationStorageDirectory.resolvePath("db/database.db");


if (!DBDestination.exists)
{
 dbFile.copyTo(DBDestination);  
}


Everything is fine here, up to the point when application is
uninstalled. Database stays there even after the uninstall and hence
breaks some critical functionality. 

It might be that I'm not following some best practices, or there is a
way to manually clean up the stuff, I don't know. Any ideas?


Alen




[flexcoders] Getting the selected text from HTML control

2008-11-03 Thread b_alen
Hi everybody, is there a way to get the selected text out of the HTML
control? IF I select the text and right click on it I get a "copy"
option. Is it possible to achieve the same by clicking on any button
and copy the selection to clipboard?

Cheers!



[flexcoders] Numbers gone crazy: 5 - 4.8 = 0.2000000000000018 ?

2008-07-21 Thread b_alen
Here is how I arrived at this:

var res:Number;

var a:Number = 5;
var b:Number = 4.8;

res = a - b;
trace("result: " + res + ", a: " + a + ", b: " + b);


The trace clearly shows that the value of a is 5, and the value of b
is 4.8. However the end result is clearly shown as 0.2018.

Ok, I wanted to create a workaround where I will make sure that b is
really 4.8, and I used toPecision() method.

var b1:String = b.toPrecision(2);
var b2:Number = Number(b1);
trace("b1: " + b1 + ", b2: " + b2);

res = a - b2;
trace("result: " + res + ", b1: " + b1 + ", b2: " + b2);


Again with same result. b2 was traced as 4.8, but the end result still
showing 0.2018. As this can of course break all further
calculations I had to make sure result is really holding a value that
it should, based on all mathematical logic. So I did this:

var res1:String = res.toPrecision(2);
res = Number(res1);

trace("result: " + res);

I got the expected result and the value of res is now 0.2.

This is however very ugly, in case I'm not doing something wrong.
Every time we expect a floating point value in our calculation we have
to handle it to ensure the proper value is calculated, because what
Flash calculates is just wrong. Also, every intermediate calculation
has to be stored in a variable converted to String with toPrecision
and back to Number for future use. I really don't know how to properly
handle this and would appreciate any advice. Imagine the shopping cart
system with this sort of unpredictable behavior. 

For the end, here's one more weirdness:

var c:Number = 488.8;

trace("c: " + c + " , c.toPrec: " + c.toPrecision(2));


Traces out c: 4.8, c.toPrec: 4.9e+2




Thanks,

Alen










var c:Number = 488.8;



[flexcoders] Re: Question for Subvision to Flex Bulider 3

2008-06-18 Thread b_alen
Do you have a standalone FB3 or Eclipse plugin?


--- In flexcoders@yahoogroups.com, "markflex2007" <[EMAIL PROTECTED]>
wrote:
>
> Hi,
> 
> I follow the url (http://tdotblog.info/?q=node/4) to install subvision
> to FB3
> 
> I extract site-1.0.6.zip and I get two folder (features and plugins)
> and files in the two folders
> 
> I am not sure how to copy files in the two folders to FB3 folder.Do I
> have to copy all of them?
> 
> Please give me a help.
> 
> Thanks
> 
> Mark
>




[flexcoders] Re: Splitting FlexCoders in smaller, focused groups

2008-06-18 Thread b_alen
Cheers mate, that could help a lot. This is by the way the biggest
show stopper of this list. Just to find this response took me quite a
lot of clicking through crappy Yahoo mail list interface to find it.




> > Can you do folders in gmail? I thought only labels are there and you
> > still see all the emails in your inbox, even if you don't want to.
> 
> Configure a filter to 'skip inbox' when it matches. I guess you
already have a 
> filter if you say you label them.
> 




[flexcoders] Re: Splitting FlexCoders in smaller, focused groups

2008-06-18 Thread b_alen
Can you do folders in gmail? I thought only labels are there and you
still see all the emails in your inbox, even if you don't want to.
These lists are killing me and I had to make the emails coming in
digests, and that's how I miss on all the fun. 




--- In flexcoders@yahoogroups.com, Jeffry Houser <[EMAIL PROTECTED]> wrote:
>
> 
>  I do the same exact thing; except no color coding.  Not sure if 
> Thunderbird does that. ;)
> 
>  Multiple lists [which I think is a bad idea] to me just means more 
> cross posts. 
> 
> Doug McCune wrote:
> >
> > Out of morbid curiosity, am I the only one who has multiple email
> > lists all being filtered into the same mega-list? I have flexcoders,
> > flexcomponents, apollocoders, papervision, degrafa, flexlib, and
> > flexjobs all dropped into a mondo folder in gmail. I color code each
> > list accordingly so I can at a glance see which list a message is
> > from, but typically I read them all in the master list. Nobody else
> > does this? Somehow I can stay on top of it all, although I'm sure you
> > could argue that at times it's certainly not helping my productivity
> > :)
> >
> > Doug
> >



[flexcoders] Re: AS3 coding environment

2008-06-17 Thread b_alen
Good to know that you guys are still alive and kicking. I was amazed
by FDT when AS2 was around. I can say some pretty big Flash projects
would never see the light of day without it. But I know you were a bit
slow and were postponing the 3.0 release for quite a while. At that
point we also switched more into Flex, so Flex Builder was an obvious
choice at that time. I don't know if FDT 3.0 supports Flex but would
definitely like to give it a go if it does. 

Cheers

Alen



--- In flexcoders@yahoogroups.com, "fdt_powerflasher"
<[EMAIL PROTECTED]> wrote:
>
> Hey folks!!
> 
> my name is Frank, and I am writing you from Germany, Europe. I am 
> Product Manager for FDT 3.0 (fdt.powerflasher.com), the right now 
> most professional coding environment for AS3. We have recently 
> visited a lot of conferences as FITC Toronto, Flashbelt Minneapolis, 
> Flash on the Beach Brighton, Multimania Belgium etc... and showed the 
> capabilities of our product. 
> 
> If you want to see it live in action, just visit our webpage and give 
> it a shot, we have a 30 days trial version. Different magazines 
> reviewed FDT as being the better and more professional coding 
> environment compared to Flash Develop or FlexBuilder. 
> 
> If you are interested in a Product show at one of your User Meetings, 
> we could set up a online presentation or, if timing fits, could maybe 
> even show up.
> 
> Cheers and keep coding!!
> 
> Frank Piotraschke
> Product Manager FDT 3.0
> fdt.powerflasher.com
>




[flexcoders] Re: OOP and Work for Hire

2008-06-14 Thread b_alen
And you Bubba are totally useless developer because you're not allowed
to (re)implement even a simple sorting function. You did it before for
an employer or customer and now it's theirs for ever. Or id you do,
then you are a hypocrite. 

And to close this with an answer to the person who posted a question.
No, I would never publish client's solution (in the form of program(s)
that solve business problems) as open source, nor would I sell it to
another company. Solution is something that a lot of people built,
conceptualized and came up with the idea. You just did the coding, and
bits and pieces of that code you can use in 99% of your future work.
Everybody does that, otherwise nobody would be here on this list. Even
those guys from the paranoid side.



 

--- In flexcoders@yahoogroups.com, <[EMAIL PROTECTED]> wrote:
>
> Alen,
> 
> You are either being intentionally obtuse or being incredibly
wittyI'm just not seeing the humor or the usefulness of your
comments
> 
> GB,
> Bubba
> 
> 
> From: b_alen 
> Sent: Thursday, June 12, 2008 7:44 AM
> To: flexcoders@yahoogroups.com 
> Subject: [flexcoders] Re: OOP and Work for Hire
> 
> 
> You can use it again definitely otherwise no one here would be allowed
> to do even a sorting algorithm ever again. Come on, some guys even
> went so far that every single "digital line of code" is client's. So
> even the  I can't implement ever again, because it
> belongs to the customer. 
> 
> > Algorithm, you can probably use it again. It depends how obvious or 
> > unique it is. In theory, algorithms / approaches to solving problems 
> > are not patentable. In reality such algorithms may be patentable or 
> > considered trade secrets. 
> 
> Depends, but usually there are changes for the better in each
iteration. 
> 
> > Even if you sit down to implement the algorithm a second time, I
> bet it 
> > will come out quite different than what you did the first tie.
>




[flexcoders] Re: OOP and Work for Hire

2008-06-12 Thread b_alen
You can use it again definitely otherwise no one here would be allowed
to do even a sorting algorithm ever again. Come on, some guys even
went so far that every single "digital line of code" is client's. So
even the   I can't implement ever again, because it
belongs to the customer. 

>  Algorithm, you can probably use it again.  It depends how obvious or 
> unique it is.  In theory, algorithms / approaches to solving problems 
> are not patentable.  In reality such algorithms may be patentable or 
> considered trade secrets. 

Depends, but usually there are changes for the better in each iteration. 

>  Even if you sit down to implement the algorithm a second time, I
bet it 
> will come out quite different than what you did the first tie. 

 



[flexcoders] Re: OOP and Work for Hire

2008-06-11 Thread b_alen
I have two recent separate examples that explain a lot. 1. Patent
Filing, 2. Magic Wand Algorithm

1. We filed two patents, both based around Flex. In one we were in
legal dispute with another company. Never ever did anyone ask for the
 source code from the legal teams. What you're patenting is the
solution and not the code and the process is very rigorous. If you are
working on such a project you know it, and you know what you invented
is not yours. And you can't be that stupid to go around and sell this.
If you are that stupid then you deserve to rot in jail. We're not
talking here about patents. Laws are very clear regarding this.

2. I had to create a magic wand tool with ability to set tolerance.
There is EXACTLY ONE way how to do it in AS non-expensively. Normal
flood fill approach is to expensive for AS, so you have to use some
tricks with applying native AS filters. Is it work for hire? Yes. Is
it patentable? NO - because magic wand is nothing new, just because I
wrote it AS does not make it patentable.

Can I use it again on different project? Sure I can, otherwise I can
never again complete any of the similar projects because there just
isn't any other way to do it. So I'd have to turn down all future
projects that would include magic wand. Imagine if this would apply to
everything you do and you wouldn't be able to use anything you
developed in the previous project, where would you be today?

And also all my previous code base would suddenly become employer's
like Bubba suggested. He actually said if I use my own toothbrush,
bought with my money in the supermarket, to better polish my
employer's floor, then this toothbrush is not mine any more and I have
no right to take it home. 

It just doesn't work like that, and every time I used the code I
developed for a client I pretty damn sure I did not violate any IP
rights, and I would win any legal battle. 


Alen

--- In flexcoders@yahoogroups.com, "Doug McCune" <[EMAIL PROTECTED]> wrote:
>
> The company that you worked for has the right to patent the
implementation
> of that great algorithm that you came up with. So if that's really an
> "inventive" algorithm then yeah, they have the right to use it and
you do
> not. In the real world is this how things play out? often no, but
I'm just
> trying to explain my (non-professional) understanding of intellectual
> property law.
> 
> Doug
> 
> On Wed, Jun 11, 2008 at 11:55 AM, b_alen <[EMAIL PROTECTED]> wrote:
> 
> >   So if I create a great algorithm for collision detection while
working
> > for a client I can not use it ever again? And if I have to make it for
> > 10 different clients in a year, I have to create 10 completely
> > different solutions for the same problem, so I don't copy. First of
> > all that's impossible. Second, if I do use the same knowledge and
> > techniques like you said, then the code is of secondary importance
> > anyway. I can heavily refactor the code and change all the variable
> > names but the heart of the algorithm will stay the same.
> >
> >
> > --- In flexcoders@yahoogroups.com ,
"Doug
> > McCune"  wrote:
> > >
> > > Typed code is what you are paid to deliver. That is what the
client is
> > > buying. When the client pays you you are selling those digital
lines of
> > > code.
> > >
> > > I just wrote a book for wiley. I cannot copy and paste any of the
> > prose that
> > > I wrote and post it on my blog. It belongs to wiley. I sold it to
> > them (for
> > > almost nothing, but that's beside the point). Yes, I can take the
> > knowledge
> > > I gained while writing that book and write completely new tutorials
> > that I
> > > post on my blog (although a non-compete prohibits me from writing a
> > > competitive book). But the instant I copy and paste something I am
> > breaking
> > > the legal contract that I signed.
> > >
> > > The original question was about taking the exact code that was
> > created for
> > > one client and using it in another project (either for a client or
> > as open
> > > source code for the community). I don't think there's much of a
> > legal gray
> > > area here. Yes, everyone agrees that the knowledge and techniques
> > that you
> > > gain while writing code are yours and can often be used in other
> > projects.
> > > But that is not at all the same as saying it's ok to copy a class or
> > chunks
> > > of code verbatim.
> > >
> > > Doug
> > >
> > > On Wed, Jun 11, 2008 at 10:48 AM, b_alen  wrote:
> > >
> > > > Tha

[flexcoders] Re: OOP and Work for Hire

2008-06-11 Thread b_alen
So if I create a great algorithm for collision detection while working
for a client I can not use it ever again? And if I have to make it for
10 different clients in a year, I have to create 10 completely
different solutions for the same problem, so I don't copy. First of
all that's impossible. Second, if I do use the same knowledge and
techniques like you said, then the code is of secondary importance
anyway. I can heavily refactor the code and change all the variable
names but the heart of the algorithm will stay the same.





--- In flexcoders@yahoogroups.com, "Doug McCune" <[EMAIL PROTECTED]> wrote:
>
> Typed code is what you are paid to deliver. That is what the client is
> buying. When the client pays you you are selling those digital lines of
> code.
> 
> I just wrote a book for wiley. I cannot copy and paste any of the
prose that
> I wrote and post it on my blog. It belongs to wiley. I sold it to
them (for
> almost nothing, but that's beside the point). Yes, I can take the
knowledge
> I gained while writing that book and write completely new tutorials
that I
> post on my blog (although a non-compete prohibits me from writing a
> competitive book). But the instant I copy and paste something I am
breaking
> the legal contract that I signed.
> 
> The original question was about taking the exact code that was
created for
> one client and using it in another project (either for a client or
as open
> source code for the community). I don't think there's much of a
legal gray
> area here. Yes, everyone agrees that the knowledge and techniques
that you
> gain while writing code are yours and can often be used in other
projects.
> But that is not at all the same as saying it's ok to copy a class or
chunks
> of code verbatim.
> 
> Doug
> 
> On Wed, Jun 11, 2008 at 10:48 AM, b_alen <[EMAIL PROTECTED]> wrote:
> 
> >   That's exactly what I was saying from the beginning. Typing code is
> > not programming, as some on this thread think. Using your experience
> > and knowledge to solve problems is programming. And nobody can take
> > away that. I can delete all the code I have and I'll make even better
> > in no time, once I cracked the problems and figured out the best
> > architecture for certain business needs.
> >
> >
> > --- In flexcoders@yahoogroups.com ,
"Kerry
> > Thompson"  wrote:
> > >
> > > Jeffry Houser wrote:
> > >
> > > > It really depends on what that knowledge is.
> > >
> > > That's really key. Let me give you a real-world example
involving code,
> > > rather than hardwood floors and toothbrushes ;-)
> > >
> > > I've specialized in localization and internationalization for 15-20
> > years.
> > > I'm bilingual, so that helps--that's a pre-existing skill I bring to
> > every
> > > job, and no contract is ever going to take that away from me.
> > >
> > > About 10-15 years ago, in the Windows 3.1 days, I wrote a library,
> > in C, to
> > > display Chinese characters on English Windows 3.1. It was
breakthrough
> > > technology back then, and Sony paid me well for it. There is no way
> > I could
> > > ethically or legally use that code again (it's a moot point now, of
> > course).
> > >
> > > Last year I had a Director project in 8 languages, including 4 Asian
> > > languages. The current version of Director then, MX 2004, didn't
support
> > > Unicode, and had no way to display Chinese. So I did what a genius
> > friend of
> > > mine, Mark Jonkman, did--I used a Flash sprite to display the
CCJK text.
> > >
> > > I can't legally or ethically re-use that same code. But I can darn
> > sure use
> > > Flash to display Unicode text within a Director movie. It might soon
> > be a
> > > moot point also, since Director 11 supports Unicode, and Director 12
> > might
> > > be usable, but the point is that I'm using a known, pre-existing
> > technique.
> > > Sure, I refined and polished it, and I'll take that skill and
> > knowledge with
> > > me to the next gig. Just not the code. Snippets, maybe, but not the
> > whole
> > > shebang.
> > >
> > > Cordially,
> > >
> > > Kerry Thompson
> > >
> >
> >  
> >
>




[flexcoders] Re: OOP and Work for Hire

2008-06-11 Thread b_alen
That's exactly what I was saying from the beginning. Typing code is
not programming, as some on this thread think. Using your experience
and knowledge to solve problems is programming. And nobody can take
away that. I can delete all the code I have and I'll make even better
in no time, once I cracked the problems and figured out the best
architecture for certain business needs.




--- In flexcoders@yahoogroups.com, "Kerry Thompson" <[EMAIL PROTECTED]> wrote:
>
> Jeffry Houser wrote:
> 
> > It really depends on what that knowledge is. 
> 
> That's really key. Let me give you a real-world example involving code,
> rather than hardwood floors and toothbrushes ;-)
> 
> I've specialized in localization and internationalization for 15-20
years.
> I'm bilingual, so that helps--that's a pre-existing skill I bring to
every
> job, and no contract is ever going to take that away from me.
> 
> About 10-15 years ago, in the Windows 3.1 days, I wrote a library,
in C, to
> display Chinese characters on English Windows 3.1. It was breakthrough
> technology back then, and Sony paid me well for it. There is no way
I could
> ethically or legally use that code again (it's a moot point now, of
course).
> 
> Last year I had a Director project in 8 languages, including 4 Asian
> languages. The current version of Director then, MX 2004, didn't support
> Unicode, and had no way to display Chinese. So I did what a genius
friend of
> mine, Mark Jonkman, did--I used a Flash sprite to display the CCJK text.
> 
> I can't legally or ethically re-use that same code. But I can darn
sure use
> Flash to display Unicode text within a Director movie. It might soon
be a
> moot point also, since Director 11 supports Unicode, and Director 12
might
> be usable, but the point is that I'm using a known, pre-existing
technique.
> Sure, I refined and polished it, and I'll take that skill and
knowledge with
> me to the next gig. Just not the code. Snippets, maybe, but not the
whole
> shebang.
> 
> Cordially,
> 
> Kerry Thompson
>




[flexcoders] Re: OOP and Work for Hire

2008-06-11 Thread b_alen
"the Toothbrush that you "took" from your home wasn't yours to "take"
home in the first place"

LOL, I rest my case...




--- In flexcoders@yahoogroups.com, <[EMAIL PROTECTED]> wrote:
>
> The reality is that the Toothbrush that you "took" from your home
wasn't yours to "take" home in the first place. The obligation is on
you and your new employer to be able to prove a chain of custody and
that no prior art exists. 
> 
> That is how the world worksinternationally and well as
domestically. I've no problem of agreeing to disagree, but I do ask
that you let me know your particulars so I can avoid doing business
with you... :-o
> 
> GB,
> Bubba
> 
> 
> From: b_alen 
> Sent: Wednesday, June 11, 2008 8:43 AM
> To: flexcoders@yahoogroups.com 
> Subject: [flexcoders] Re: OOP and Work for Hire
> 
> 
> So you're saying if I find a way how to get into a tight corner and
> polish it with a specially pimped tooth brush, while doing this for
> the almighty Employer, I can never ever use that technique and the
> similar tooth brush again? So I will be staring at the corner
> helpless, thinking, man I can't use the tooth brush trick now because
> the other one will sue me. 
> 
> What if I took the first tooth brush from my home, because I'm a smart
> problem solver and didn't want to wait for boss to buy it?
> 
> Another example I create a really nice collision detection algorithm
> on one project. What to do on the next project where I need collision
> detection? Write worse code just so that it's not the same? 
> 
> Or if I work for a company for three years, since I was a fresher.
> Legally I have to come out as an idiot, with no knowledge, no
> solutions and I have no right to reimplement any of the code I
> developed there.
> 
> It just doesn't work like that in real life. 
> 
> --- In flexcoders@yahoogroups.com,  wrote:
> >
> > Maybe. If said tools and techniques are uncovered while being paid
> to accomplish this "floor re-finishing", then No they do not have any
> legal right to re-use it. In reality, will folks re-use/re-purpose
> what they've done? Absolutely but they have no legal right to it and
> by taking such actions they are placing themselves (albeit how greatly
> some people like to argue about) in peril of legal proceedings against
> them. How often would that happen? More often then people might
realize. 
> > 
> > Another alternative is that they could simply establish themselves
> with a reputation of not respecting their agreements with customers
> (and believe me word will get around quicker than a brushfire in the
> middle of August in California hillside country) and they have
> effectively black-balled themselves.
> > 
> > Then again the employer could simply be fat, stupid and lazy thereby
> never catching on to what is actually happening and the employee can
> take the employer for all they can get.
> > 
> > My recommendation is to simply sign the agreement, adhere to the
> letter and (even more importantly) the spirit of the agreement and get
> on with your life: I.e. Getting paid to do something that you enjoy
> and are proficient at, then using the proceeds to behave like a
> twisted, salted pretzel with your significant other... 
> > 
> > GB,
> > Bubba
> > 
> > 
> > 
> > From: b_alen 
> > Sent: Wednesday, June 11, 2008 3:31 AM
> > To: flexcoders@yahoogroups.com 
> > Subject: [flexcoders] Re: OOP and Work for Hire
> > 
> > 
> > No, the floor is not Employee's. But if the employee by doing the
> > finishing of the floor realizes how to do it with different tools and
> > techniques better, then he has every right to apply his knowledge on
> > another floor with different client.
> > 
> > -
> > 
> > As an example: A Employer hires a Employee to re-finish a hard-wood
> > floor, does the employee then have the right to claim the floor is
> > theirs? Most assuredly not, this same argument has been upheld in
> > almost all State courts.
> > 
> > > Amy - If you seriously want the position then sign the agreement and
> > take the fair pay they are offering for the job. If the pay isn't
> > fair, then negotiate a more lucrative deal. If you don't like their
> > terms and conditions, you can attempt to negotiate them away,
> > butdon't be surprised if they aren't receptive to that approach.
> > What you have to ask yourself is "Do I have a complete corner on the
> > skill set that they are looking for that th

[flexcoders] Re: OOP and Work for Hire

2008-06-11 Thread b_alen
Here are some examples I made up:

http://tech.groups.yahoo.com/group/flexcoders/message/115885

Pimped toothbrush for corner polishing compared to collision detection
algorithm. 




--- In flexcoders@yahoogroups.com, Jeffry Houser <[EMAIL PROTECTED]> wrote:
>
> 
>  It really depends on what that knowledge is. ;) 
> 
> b_alen wrote:
> >
> > Definitely not with equipment, that would be called theft. But with
> > the knowledge gained yes.
> >
> > The question here wasn't could I take the code of the company and use
> > it, but could I use the code (i.e. knowledge) that I have developed
> > for the company on other projects.
> >
> > --- In flexcoders@yahoogroups.com 
> > <mailto:flexcoders%40yahoogroups.com>, Jeffry Houser  wrote:
> > >
> > >
> > > No argument there, however that employee cannot work on the other
> > > employers floor w/ the same equipment provided by the first
employer.
> > >
> > >
> > > b_alen wrote:
> > > >
> > > > No, the floor is not Employee's. But if the employee by doing the
> > > > finishing of the floor realizes how to do it with different
tools and
> > > > techniques better, then he has every right to apply his
knowledge on
> > > > another floor with different client.
> > > >
> > >
> > >
> > >
> > >
> > >
> > > > .
> > > --
> > > Jeffry Houser
> > > Flex, ColdFusion, AIR
> > > AIM: Reboog711 | Phone: 1-203-379-0773
> > > --
> > > Adobe Community Expert
> > <http://www.adobe.com/communities/experts/members/JeffryHouser.html 
> > <http://www.adobe.com/communities/experts/members/JeffryHouser.html>>
> > > My Company: <http://www.dot-com-it.com <http://www.dot-com-it.com>>
> > > My Podcast: <http://www.theflexshow.com
<http://www.theflexshow.com>>
> > > My Blog: <http://www.jeffryhouser.com <http://www.jeffryhouser.com>>
> > >
> >
> >  
> 
> -- 
> Jeffry Houser
> Flex, ColdFusion, AIR
> AIM: Reboog711  | Phone: 1-203-379-0773
> --
> Adobe Community Expert
<http://www.adobe.com/communities/experts/members/JeffryHouser.html>
> My Company: <http://www.dot-com-it.com> 
> My Podcast: <http://www.theflexshow.com>
> My Blog: <http://www.jeffryhouser.com>
>




[flexcoders] Re: OOP and Work for Hire

2008-06-11 Thread b_alen
So you're saying if I find a way how to get into a tight corner and
polish it with a specially pimped tooth brush, while doing this for
the almighty Employer, I can never ever use that technique and the
similar tooth brush again? So I will be staring at the corner
helpless, thinking, man I can't use the tooth brush trick now because
the other one will sue me. 

What if I took the first tooth brush from my home, because I'm a smart
problem solver and didn't want to wait for boss to buy it?

Another example I create a really nice collision detection algorithm
on one project. What to do on the next project where I need collision
detection? Write worse code just so that it's not the same? 

Or if I work for a company for three years, since I was a fresher.
Legally I have to come out as an idiot, with no knowledge, no
solutions and I have no right to reimplement any of the code I
developed there.

It just doesn't work like that in real life. 




--- In flexcoders@yahoogroups.com, <[EMAIL PROTECTED]> wrote:
>
> Maybe. If said tools and techniques are uncovered while being paid
to accomplish this "floor re-finishing", then No they do not have any
legal right to re-use it. In reality, will folks re-use/re-purpose
what they've done? Absolutely but they have no legal right to it and
by taking such actions they are placing themselves (albeit how greatly
some people like to argue about) in peril of legal proceedings against
them. How often would that happen? More often then people might realize. 
> 
> Another alternative is that they could simply establish themselves
with a reputation of not respecting their agreements with customers
(and believe me word will get around quicker than a brushfire in the
middle of August in California hillside country) and they have
effectively black-balled themselves.
> 
> Then again the employer could simply be fat, stupid and lazy thereby
never catching on to what is actually happening and the employee can
take the employer for all they can get.
> 
> My recommendation is to simply sign the agreement, adhere to the
letter and (even more importantly) the spirit of the agreement and get
on with your life: I.e. Getting paid to do something that you enjoy
and are proficient at, then using the proceeds to behave like a
twisted, salted pretzel with your significant other... 
> 
> GB,
> Bubba
> 
> 
> 
> From: b_alen 
> Sent: Wednesday, June 11, 2008 3:31 AM
> To: flexcoders@yahoogroups.com 
> Subject: [flexcoders] Re: OOP and Work for Hire
> 
> 
> No, the floor is not Employee's. But if the employee by doing the
> finishing of the floor realizes how to do it with different tools and
> techniques better, then he has every right to apply his knowledge on
> another floor with different client.
> 
> -
> 
> As an example: A Employer hires a Employee to re-finish a hard-wood
> floor, does the employee then have the right to claim the floor is
> theirs? Most assuredly not, this same argument has been upheld in
> almost all State courts.
> 
> > Amy - If you seriously want the position then sign the agreement and
> take the fair pay they are offering for the job. If the pay isn't
> fair, then negotiate a more lucrative deal. If you don't like their
> terms and conditions, you can attempt to negotiate them away,
> butdon't be surprised if they aren't receptive to that approach.
> What you have to ask yourself is "Do I have a complete corner on the
> skill set that they are looking for that they have no choice but to
> accept my demands to maintain the IP" - I am most sure that the vast
> majority of the world don't have such skill sets
> > 
> > BTW, I think you need to re-consider your definition of OOP.it
> has absolutely nothing to do with maintaining IP.
> > 
> > GB,
> > Bubba
> > 
> > 
> > From: b_alen 
> > Sent: Tuesday, June 10, 2008 10:45 PM
> > To: flexcoders@yahoogroups.com 
> > Subject: [flexcoders] Re: OOP and Work for Hire
> > 
> > 
> > BOLLOCKS!! Of course you can reuse your code. You're code is not
> > stored in AS files anyway, but in your head. So unless you can erase
> > memory how you cracked the algorithm or designed a system, there's no
> > way you could not reuse the code. Since every project is different in
> > nature, there's a very small chance you will end up copy pasting the
> > entire solution for the new client. So in reality you will take bits
> > and pieces from old projects, even improve the code a bit, write some
> > new stuff and that's it.
> > 
> > --- In flexcoders@yahoogroups.com, "Amy"  wrote:
> > >
> > > I was recently asked to sign an agreement that would designate a
Flex 
> > > project as "Work for Hire." I.e. I would not retain any
ownership of 
> > > the code I wrote for the project. This seems to defeat the
purpose of 
> > > OOP, if I create a whole body of code that I can't then reuse.
How do 
> > > most Flex developers handle the idea of Work for Hire?
> > > 
> > > Thanks;
> > > 
> > > Amy
> > >
> >
>




[flexcoders] Re: OOP and Work for Hire

2008-06-11 Thread b_alen
Definitely not with equipment, that would be called theft. But with
the knowledge gained yes. 

The question here wasn't could I take the code of the company and use
it, but could I use the code (i.e. knowledge) that I have developed
for the company on other projects. 




--- In flexcoders@yahoogroups.com, Jeffry Houser <[EMAIL PROTECTED]> wrote:
>
> 
>  No argument there, however that employee cannot work on the other 
> employers floor w/ the same equipment provided by the first employer. 
> 
> 
> b_alen wrote:
> >
> > No, the floor is not Employee's. But if the employee by doing the
> > finishing of the floor realizes how to do it with different tools and
> > techniques better, then he has every right to apply his knowledge on
> > another floor with different client.
> >
> 
> 
> 
> 
> 
> > .
> -- 
> Jeffry Houser
> Flex, ColdFusion, AIR
> AIM: Reboog711  | Phone: 1-203-379-0773
> --
> Adobe Community Expert
<http://www.adobe.com/communities/experts/members/JeffryHouser.html>
> My Company: <http://www.dot-com-it.com> 
> My Podcast: <http://www.theflexshow.com>
> My Blog: <http://www.jeffryhouser.com>
>




[flexcoders] Re: Possible to add some data to load to the default preloader?

2008-06-11 Thread b_alen
Ignoring the default preloader and rolling your own? Do you have link
to more info on that? That might be half way there. 

Anyway, I guess my question is answered - it is not possible. But
wouldn't it be an interesting feature?




--- In flexcoders@yahoogroups.com, "Alex Harui" <[EMAIL PROTECTED]> wrote:
>
> I'll bet you had to handroll it in Flash 5, and you can hand-roll it in
> Flex 3.  It will just take some work like it did in Flash 5.
> 
>  
> 
> 
> 
> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
> Behalf Of b_alen
> Sent: Tuesday, June 10, 2008 8:40 PM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Re: Possible to add some data to load to the
> default preloader?
> 
>  
> 
> Yes it's a bit messy, and the loader bar would not show the exact
> progress, it would only stay there at 100% until the data arrives.
> That's why it would be good, IMHO, if there would be a way to do it
> seamlessly, by just specifying data paths that have to be loaded with
> the app itself. At the end of the day, most web apps have to load some
> dynamic data at the beginning. So it's a bit disappointing that what I
> could do with Flash 5 in 2001, I can't do with Flex 3 in 2008. 
> 



[flexcoders] Re: OOP and Work for Hire

2008-06-11 Thread b_alen
No, the floor is not Employee's. But if the employee by doing the
finishing of the floor realizes how to do it with different tools and
techniques better, then he has every right to apply his knowledge on
another floor with different client.

-


As an example: A Employer hires a Employee to re-finish a hard-wood
floor, does the employee then have the right to claim the floor is
theirs? Most assuredly not, this same argument has been upheld in
almost all State courts.



> Amy - If you seriously want the position then sign the agreement and
take the fair pay they are offering for the job. If the pay isn't
fair, then negotiate a more lucrative deal. If you don't like their
terms and conditions, you can attempt to negotiate them away,
butdon't be surprised if they aren't receptive to that approach.
What you have to ask yourself is "Do I have a complete corner on the
skill set that they are looking for that they have no choice but to
accept my demands to maintain the IP" - I am most sure that the vast
majority of the world don't have such skill sets
> 
> BTW, I think you need to re-consider your definition of OOP.it
has absolutely nothing to do with maintaining IP.
> 
> GB,
> Bubba
> 
> 
> From: b_alen 
> Sent: Tuesday, June 10, 2008 10:45 PM
> To: flexcoders@yahoogroups.com 
> Subject: [flexcoders] Re: OOP and Work for Hire
> 
> 
> BOLLOCKS!! Of course you can reuse your code. You're code is not
> stored in AS files anyway, but in your head. So unless you can erase
> memory how you cracked the algorithm or designed a system, there's no
> way you could not reuse the code. Since every project is different in
> nature, there's a very small chance you will end up copy pasting the
> entire solution for the new client. So in reality you will take bits
> and pieces from old projects, even improve the code a bit, write some
> new stuff and that's it.
> 
> --- In flexcoders@yahoogroups.com, "Amy"  wrote:
> >
> > I was recently asked to sign an agreement that would designate a Flex 
> > project as "Work for Hire." I.e. I would not retain any ownership of 
> > the code I wrote for the project. This seems to defeat the purpose of 
> > OOP, if I create a whole body of code that I can't then reuse. How do 
> > most Flex developers handle the idea of Work for Hire?
> > 
> > Thanks;
> > 
> > Amy
> >
>




[flexcoders] Re: OOP and Work for Hire

2008-06-11 Thread b_alen
Don't put your bollocks to my bollocks dude :) :)

Steve White: Oh I think it's across the board. Typically, whenever
people are in a position of power, or think they're in a position of
power, is when it most likely arises.

Yes, there are clients who will screw your happiness in every way they
could. I guess you have to be careful when picking the clients. If you
feel that something might go bad, talk to them and discuss, usually
that's all it takes. In my "work for hire" experience not only that I
reused my code, but with clients we collectively worked in improving
each other's the code base. 

So if you one wants to be completely covered I suggest before doing
the coding you take a pill that will erase your memory completely
after the project. 

Of course, I would never sell the exact same solution I did for a
client to somebody else. 




--- In flexcoders@yahoogroups.com, "barry.beattie" <[EMAIL PROTECTED]>
wrote:
>
> 
> BOLLOCKS to your BOLLOCKS!
> 
> (no offence intended, Alen)
> 
> 
> I wish it was as clear-cut as you say, but there's a large grey areas
> there (this is just dealing with a class library, not a whole
application)
> 
> http://www.abc.net.au/rn/talks/8.30/lawrpt/stories/s295800.htm
> 
> (about half way down)
> 
> "Steve White: The key factor is that Section 35-6 of the Copyright Act
> says that works written by an employee within the scope of their
> employment belonged to their employer. In a nutshell, that's the key.
> And this mistake is often made by a lot of people that think that when
> they work for someone else the things that they write for their
> employer actually belong to them, rather than belonging to their
> employer. And that I think is the most important part of the decision."
> 
> "What also was very interesting was the way that the judge actually
> worked out what was written within the scope of one's employment, and
> what wasn't. And it's true to say a bit of time was spent looking at
> the date and time stamps on various files to see when they were
> written, were they written during the day, outside business hours, or
> when they were written; and we certainly spent some time doing a bit
> of expert analysis on getting that and working that out."
> 
> 
> 
> 
> 
> 
> 
> 
> --- In flexcoders@yahoogroups.com, "b_alen"  wrote:
> >
> > BOLLOCKS!! Of course you can reuse your code. You're code is not
> > stored in AS files anyway, but in your head. So unless you can erase
> > memory how you cracked the algorithm or designed a system, there's no
> > way you could not reuse the code. Since every project is different in
> > nature, there's a very small chance you will end up copy pasting the
> > entire solution for the new client. So in reality you will take bits
> > and pieces from old projects, even improve the code a bit, write some
> > new stuff and that's it.
> > 
> > 
> > 
> > 
> > 
> > --- In flexcoders@yahoogroups.com, "Amy"  wrote:
> > >
> > > I was recently asked to sign an agreement that would designate a
Flex 
> > > project as "Work for Hire."  I.e. I would not retain any
ownership of 
> > > the code I wrote for the project.  This seems to defeat the
> purpose of 
> > > OOP, if I create a whole body of code that I can't then reuse. 
> How do 
> > > most Flex developers handle the idea of Work for Hire?
> > > 
> > > Thanks;
> > > 
> > > Amy
> > >
> >
>




[flexcoders] Re: OOP and Work for Hire

2008-06-10 Thread b_alen
BOLLOCKS!! Of course you can reuse your code. You're code is not
stored in AS files anyway, but in your head. So unless you can erase
memory how you cracked the algorithm or designed a system, there's no
way you could not reuse the code. Since every project is different in
nature, there's a very small chance you will end up copy pasting the
entire solution for the new client. So in reality you will take bits
and pieces from old projects, even improve the code a bit, write some
new stuff and that's it.





--- In flexcoders@yahoogroups.com, "Amy" <[EMAIL PROTECTED]> wrote:
>
> I was recently asked to sign an agreement that would designate a Flex 
> project as "Work for Hire."  I.e. I would not retain any ownership of 
> the code I wrote for the project.  This seems to defeat the purpose of 
> OOP, if I create a whole body of code that I can't then reuse.  How do 
> most Flex developers handle the idea of Work for Hire?
> 
> Thanks;
> 
> Amy
>




[flexcoders] Re: Possible to add some data to load to the default preloader?

2008-06-10 Thread b_alen
Yes it's a bit messy, and the loader bar would not show the exact
progress, it would only stay there at 100% until the data arrives.
That's why it would be good, IMHO, if there would be a way to do it
seamlessly, by just specifying data paths that have to be loaded with
the app itself. At the end of the day, most web apps have to load some
dynamic data at the beginning. So it's a bit disappointing that what I
could do with Flash 5 in 2001, I can't do with Flex 3 in 2008. 




--- In flexcoders@yahoogroups.com, "wesley.petrowski"
<[EMAIL PROTECTED]> wrote:
>
> I've done something like this before where I leave the default 
> preloader UI up until additional loading has been completed.  If you 
> decide to go down that road, the steps I used were something like 
> this:
> 
>  - Subclass DownloadProgressBar and override the setter for the 
> preloader property.
> 
>  - In the override, add a listener for FlexEvent.INIT_COMPLETE to the 
> value that was passed in.  The listener should have higher-than-
> default priority.
> 
>  - Also in the override, store a reference to the SystemManager.  The 
> SystemManager is the parent of whatever gets passed in.
> 
>  - In the event handler for INIT_COMPLETE, call 
> event.stopImmediatePropogation() to stop the parent class from 
> dispatching the event that closes the preloader UI.
> 
>  - Still in the event handler, use the SystemManager reference that 
> was stored earlier to access your Application class.  From here you 
> can check flags or add event listeners to your application or 
> whatever other method you need to determine whether the additional 
> loading is done.
> 
>  - Once it's done, dispatch a Event.COMPLETE event.
> 
> It's a little messy, but seems to get the job done.
> 
> --- In flexcoders@yahoogroups.com, "Alex Harui"  wrote:
> >
> > Well, if you supply your own preloader UI, you can put it back up 
> and
> > nobody will know.
> > 
> >  
> > 
> > It is probably possible to delay the taking down of the preloader 
> UI,
> > but that's going to be harder.  It will involve blocking events and
> > dispatching them later.
> > 
> >  
> > 
> > 
> > 
> > From: flexcoders@yahoogroups.com 
> [mailto:[EMAIL PROTECTED] On
> > Behalf Of b_alen
> > Sent: Tuesday, June 10, 2008 3:11 AM
> > To: flexcoders@yahoogroups.com
> > Subject: [flexcoders] Re: Possible to add some data to load to the
> > default preloader?
> > 
> >  
> > 
> > Sure, that's the only way to do it now. But then you end up with two
> > preloaders and handling multiple loaders. If you had that all in the
> > initial preloader it would be much more seamless. So I wasn't really
> > asking how to load data in the beginning, but rather I wanted to 
> know
> > if my option is something doable now or at least something that 
> could
> > be put on a wish list. 
> > 
> > Cheers
> > 
> > --- In flexcoders@yahoogroups.com <mailto:flexcoders%
> 40yahoogroups.com>
> > , "Alex Harui"  wrote:
> > >
> > > Why does it need to be done at preloader time? You could simply 
> make
> > > the first screen/state of your app a UI that waits for the ASPX 
> data.
> > > 
> > > 
> > > 
> > > 
> > > 
> > > From: flexcoders@yahoogroups.com <mailto:flexcoders%
> 40yahoogroups.com>
> > [mailto:flexcoders@yahoogroups.com <mailto:flexcoders%
> 40yahoogroups.com>
> > ] On
> > > Behalf Of b_alen
> > > Sent: Monday, June 09, 2008 12:22 AM
> > > To: flexcoders@yahoogroups.com <mailto:flexcoders%
> 40yahoogroups.com> 
> > > Subject: [flexcoders] Re: Possible to add some data to load to the
> > > default preloader?
> > > 
> > > 
> > > 
> > > Can't do that, data is coming from aspx. In fact the only way this
> > > could work is to add info* to swf which data has to be loaded 
> with the
> > > swf itself. Then the Flash Player would read that, calculate the 
> size
> > > of data and add it to the preloader of the main swf. Once the 
> whole
> > > bunsh is downloaded, data would be there in the native format on 
> the
> > > "root" of the app. Am I dreaming?
> > > 
> > > * How to add this info is the question. It can't be through AS 
> that's
> > > for sure, because AS is not running until the app is loaded. 
> Write in
> > > the head

[flexcoders] Re: Possible to add some data to load to the default preloader?

2008-06-10 Thread b_alen
Sure, that's the only way to do it now. But then you end up with two
preloaders and handling multiple loaders. If you had that all in the
initial preloader it would be much more seamless. So I wasn't really
asking how to load data in the beginning, but rather I wanted to know
if my option is something doable now or at least something that could
be put on a wish list. 

Cheers





--- In flexcoders@yahoogroups.com, "Alex Harui" <[EMAIL PROTECTED]> wrote:
>
> Why does it need to be done at preloader time?  You could simply make
> the first screen/state of your app a UI that waits for the ASPX data.
> 
>  
> 
> 
> 
> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
> Behalf Of b_alen
> Sent: Monday, June 09, 2008 12:22 AM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Re: Possible to add some data to load to the
> default preloader?
> 
>  
> 
> Can't do that, data is coming from aspx. In fact the only way this
> could work is to add info* to swf which data has to be loaded with the
> swf itself. Then the Flash Player would read that, calculate the size
> of data and add it to the preloader of the main swf. Once the whole
> bunsh is downloaded, data would be there in the native format on the
> "root" of the app. Am I dreaming?
> 
> * How to add this info is the question. It can't be through AS that's
> for sure, because AS is not running until the app is loaded. Write in
> the header of the swf? Write in the HTML embed directives?
> 
> --- In flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com>
> , "Alex Harui"  wrote:
> >
> > Put the data in an RSL?
> > 
> > 
> > 
> > ____
> > 
> > From: flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com>
> [mailto:flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com>
> ] On
> > Behalf Of b_alen
> > Sent: Thursday, June 05, 2008 3:23 AM
> > To: flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com> 
> > Subject: [flexcoders] Possible to add some data to load to the default
> > preloader?
> > 
> > 
> > 
> > I always have some stuff to load before the app can be used. Is it
> > possible to stick that loading into the default preloader? So the swf
> > would know that it has to load other files also before it dispatches
> > the event that it's fully loaded. Maybe some compiler directives, I
> > don't know.
> > 
> > Thanks
> >
>




[flexcoders] Re: Bitmap.draw

2008-06-09 Thread b_alen
No, it shouldn't be affected. You can draw the nested object and its
owners will not affect how it looks. 




--- In flexcoders@yahoogroups.com, "reflexactions" <[EMAIL PROTECTED]>
wrote:
>
> If I draw the contents of a target DisplayObjectContainer into a Bitmap 
> is the rendered image affected by the alpha state of any parent 
> container of the target.
> 
> i.e. the targets alpha may be 1 but say somewhere above it a parent 
> container has its alpha set to .5 does the bitmap image look like the 
> target with an alpha of 1 or .5?
> 
> tks
>




[flexcoders] Re: FileReference / upload problem in Mozilla Firefox

2008-06-09 Thread b_alen
It seems there's no way to pass the sessionID back to .NET. I tried
couple of things and it didn't work out. What I did though is I
bypassed the user authentication in upload.aspx with session. Instead
I check the userid on upload.aspx by passing it as the get var.






--- In flexcoders@yahoogroups.com, "b_alen" <[EMAIL PROTECTED]> wrote:
>
> That's nasty!
> 
> Any idea how I should name the session ID for it to be picked up by
.NET?
> 
> 
> 
> 
> --- In flexcoders@yahoogroups.com, "Marcelo Savioli"
>  wrote:
> >
> > Its a session issue.
> > 
> > This might help: http://thanksmister.com/?p=59
> > 
> > On Tue, May 27, 2008 at 9:02 AM, b_alen  wrote:
> > 
> > >   The title says it all.The Flex app does not want to upload files
> from
> > > Mozilla using FileReference. It works on IE, but not on Firefox.
I was
> > > doing the Googling and found only the same questions but not
answers.
> > > I use Firefox 2.0.0.14 and FlexBuilder 3.
> > >
> > > Thanks
> > >
> > >  
> > >
> > 
> > 
> > 
> > -- 
> > Marcelo Curi Savioli
> > D-Click Web & Mobile Solutions
> > marcelo.savioli@
> > www.dclick.com.br/blog
> > www.dclick.com.br
> >
>




[flexcoders] Re: Possible to add some data to load to the default preloader?

2008-06-09 Thread b_alen
Can't do that, data is coming from aspx. In fact the only way this
could work is to add info* to swf which data has to be loaded with the
swf itself. Then the Flash Player would read that, calculate the size
of data and add it to the preloader of the main swf. Once the whole
bunsh is downloaded, data would be there in the native format on the
"root" of the app. Am I dreaming?


* How to add this info is the question. It can't be through AS that's
for sure, because AS is not running until the app is loaded. Write in
the header of the swf? Write in the HTML embed directives?


--- In flexcoders@yahoogroups.com, "Alex Harui" <[EMAIL PROTECTED]> wrote:
>
> Put the data in an RSL?
> 
>  
> 
> 
> 
> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
> Behalf Of b_alen
> Sent: Thursday, June 05, 2008 3:23 AM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Possible to add some data to load to the default
> preloader?
> 
>  
> 
> I always have some stuff to load before the app can be used. Is it
> possible to stick that loading into the default preloader? So the swf
> would know that it has to load other files also before it dispatches
> the event that it's fully loaded. Maybe some compiler directives, I
> don't know.
> 
> Thanks
>




[flexcoders] Re: Thinking about going to the dark side....Apple Mac Book

2008-06-09 Thread b_alen
Rob, this is exactly how I plan to use it. Can you explain Parallels
and partitions a bit. If I run both OS's in tandem, how do they share
RAM and CPU resources? How did you set that up? 

One big show stopper for me is how Mac handles windows resizing, i.e.
no full screen mode. Is there a plugin or something that can be used
to get around that? I know the Mac fanatics say you don't really need
that and it's better with no full screen, but not for me. I want to
have that option and I if I want to have more windows visible I can
still choose to do so.

Thanks



--- In flexcoders@yahoogroups.com, "Rob Rusher" <[EMAIL PROTECTED]> wrote:
>
> For years I said that I couldn't/wouldn't switch to a Mac because I
always
> need to do Windows specific tasks. But, with the Intel-based MacBook
Pro and
> Parallels, I have install Windows XP SP3 on a separate partition and
can run
> the two OS in tandem.
> 
> So I've been on a Mac for a little over a year now. I love the form
factor
> of the machine; light and small. It is very powerful. I can test
alpha/beta
> software on Windows and Mac. I can do .NET development on Windows. I do
> Flex/AIR development on both platforms.
> 
> I'd say that I'm fat and happy, but I only weigh a buck forty. But
I'm am
> happy!
> 
> The down side, Macs are a little pricey.
> 
> Regards,
> Rob
> 
> On Thu, Jun 5, 2008 at 4:20 PM, Josh McDonald <[EMAIL PROTECTED]> wrote:
> 
> >   Anecdote of the minute: I'm fine on my bigass iMac, but there's
2 or 3
> > vista laptops in the office, and soapUI seems to have some Vista
> > incompatibilities. Could be the fact we're using 2.0.3 which AFAIK
is still
> > unreleased, but it could be Vista too :)
> >
> > On Fri, Jun 6, 2008 at 4:54 AM, Nancy Gill <[EMAIL PROTECTED]> wrote:
> >
> >>Microsoft is already on record as pushing Windows 7 out the
door as
> >> soon as possible (probably late 2009) due to the Vista debacle ..
remember
> >> Windows ME?   :)
> >>
> >> Nancy
> >>
> >>
> >> - Original Message -
> >>  *From:* Joseph Balderson <[EMAIL PROTECTED]>
> >> *To:* flexcoders@yahoogroups.com
> >> *Sent:* Thursday, June 05, 2008 11:20 AM
> >> *Subject:* Re: [flexcoders] Re: Thinking about going to the dark
> >> sideApple Mac Book
> >>
> >>  I'm not trying to be glib, but don't use Vista. Use XP SP3.
> >>
> >> 
> >>
> >> Joseph Balderson | http://joeflash.ca | 705-466-6345
> >>
> >> b_alen wrote:
> >> > Interesting. Me and my colleagues are also thinking of switching to
> >> > Mac due to Vista crappiness. In fact we're 80% sure that next
laptops
> >> > will be Macs. My only concern is how to do .Net development and
> >> > integration with Flex then. Anyone has a solution to that?
> >> >
> >> >
> >> >
> >> >
> >> >
> >> > --- In flexcoders@yahoogroups.com ,
> >> "scottyale2008" 
> >> > wrote:
> >> >> How many Flex developers here are using a Mac for development?
I've
> >> >> been a die hard Microsoft guy since ... well, since Microsoft
first
> >> >> started. I went from CPM on a Morrow Meadows to Microsoft DOS (on
> >> >> computers with a Turbo button!), then Windows, now Vista. I do
have an
> >> >> iPhone and it is an incredible device and the GUI is extremely
well
> >> >> done. I've never used a Mac, but many of my friends have taken the
> >> >> plunge. Is it time to make the switch? I'm thinking about a
Mac Book
> >> >> Pro. Is a Mac Book even worth considering for a Flex dev
machine or is
> >> >> a Mac Book Pro the way to go? Anybody else make the switch
recently
> >> >> from Windows to Mac?
> >> >>
> >> >
> >> >
> >> >
> >> > 
> >> >
> >> > --
> >> > Flexcoders Mailing List
> >> > FAQ:
http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> >> > Search Archives:
> >> http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups
> >> Links
> >> >
> >> >
> >> >
> >> >
> >>
> >>
> >> __ Information from ESET NOD32 Antivirus, version of virus
> >> signature database 3162 (20080605) __
> >>
> >> The message was checked by ESET NOD32 Antivirus.
> >>
> >> http://www.eset.com
> >>
> >>
> >
> >
> > --
> > "Therefore, send not to know For whom the bell tolls. It tolls for
thee."
> >
> > :: Josh 'G-Funk' McDonald
> > :: 0437 221 380 :: [EMAIL PROTECTED]
> > 
> >
> 
> 
> 
> -- 
> -- 
> Regards,
> Rob Rusher
> 
> Adobe Certified AIR, Connect, ColdFusion MX and Flex Instructor
> m: 303-885-7044
> im: robrusher
>




[flexcoders] Re: Thinking about going to the dark side....Apple Mac Book

2008-06-05 Thread b_alen
Would Parallels do the job? Just to switch to Windows, copy my swf in
the IIS and test some stuff there. I wouldn't spend a lot of time on
the .NET side, probably 15% of overall development time. 



--- In flexcoders@yahoogroups.com, "Josh McDonald" <[EMAIL PROTECTED]> wrote:
>
> If you actually need to develop .net, run windows. If you just need
to run
> it for some reason, VMWare is fine, although I prefer soapUI and a
seperate
> server to run the real services (we're Oracle, not .net but Windows is
> Windows).
> 
> -Josh
> 
> On Thu, Jun 5, 2008 at 10:16 PM, Anatole Tartakovsky <
> [EMAIL PROTECTED]> wrote:
> 
> >   You do need windows for development.
> > I have Server 2008 in VMWare Fusion  running OK - you really need
3 things
> > to get reasonable performance:1. A lot of RAM
> > 2. Use bootcamp drivers in VMWare on the top of Fusion ones to get
> > access/performance of the native apple hardware like bluetooth,
camera, etc
> > 3. Fine tune VMWare as it tends to grab 1 CPU 100% in multicore mode -
> > cures are available on Web
> >
> > Other option is to have bootcamp installed on the second partition
- with
> > 250/320 GB drive you can get reasonably configured dual boot system.
> >
> > Regards,
> > Anatole
> >
> >
> > On Thu, Jun 5, 2008 at 6:41 AM, b_alen <[EMAIL PROTECTED]> wrote:
> >
> >>   Desktop is out of the question. Any experience with .net on Mac?
> >>
> >>
> >> --- In flexcoders@yahoogroups.com ,
"Dmitri
> >> Girski"  wrote:
> >> >
> >> > I am just wondering, why everyone is thinking about Mac laptops?
> >> >
> >> > IMHO, it does not worth it. The beauty of Mac is the 24" iMac
screen.
> >> > If you try it you will never go back to the laptops again.
> >> >
> >> > Cheers,
> >> > Dmitri.
> >> >
> >> >
> >> >
> >> >
> >> > --- In flexcoders@yahoogroups.com ,
> >> "b_alen"  wrote:
> >> > >
> >> > > Interesting. Me and my colleagues are also thinking of
switching to
> >> > > Mac due to Vista crappiness. In fact we're 80% sure that next
laptops
> >> > > will be Macs. My only concern is how to do .Net development and
> >> > > integration with Flex then. Anyone has a solution to that?
> >> > >
> >> > >
> >> > >
> >> > >
> >> > >
> >> > > --- In flexcoders@yahoogroups.com ,
> >> "scottyale2008" 
> >> > > wrote:
> >> > > >
> >> > > > How many Flex developers here are using a Mac for development?
> >> I've
> >> > > > been a die hard Microsoft guy since ... well, since
Microsoft first
> >> > > > started. I went from CPM on a Morrow Meadows to Microsoft
DOS (on
> >> > > > computers with a Turbo button!), then Windows, now Vista. I do
> >> > have an
> >> > > > iPhone and it is an incredible device and the GUI is
extremely well
> >> > > > done. I've never used a Mac, but many of my friends have taken
> >> the
> >> > > > plunge. Is it time to make the switch? I'm thinking about a Mac
> >> > Book
> >> > > > Pro. Is a Mac Book even worth considering for a Flex dev
machine
> >> > or is
> >> > > > a Mac Book Pro the way to go? Anybody else make the switch
> >> recently
> >> > > > from Windows to Mac?
> >> > > >
> >> > >
> >> >
> >>
> >>
> >  
> >
> 
> 
> 
> -- 
> "Therefore, send not to know For whom the bell tolls. It tolls for
thee."
> 
> :: Josh 'G-Funk' McDonald
> :: 0437 221 380 :: [EMAIL PROTECTED]
>




[flexcoders] Re: are these 2 if tests the same (trivial question)

2008-06-05 Thread b_alen
Check out distributive law of boolean algebra, and operator
precedence. In this case it's the same because logical AND anyway has
precedence over logical OR.

Your statements could also be written like this:

AB+C
(AB)+C

So, obviously they are the same.



--- In flexcoders@yahoogroups.com, "bhaq1972" <[EMAIL PROTECTED]> wrote:
>
> 
> if(var1 == var2 && var3 == var4 || var5 == "X")
> 
> 
> if((var1 == var2 && var3 == var4) || var5 == "X")
>




[flexcoders] Re: Thinking about going to the dark side....Apple Mac Book

2008-06-05 Thread b_alen
Desktop is out of the question. Any experience with .net on Mac?



--- In flexcoders@yahoogroups.com, "Dmitri Girski" <[EMAIL PROTECTED]> wrote:
>
> I am just wondering, why everyone is thinking about Mac laptops?
> 
> IMHO, it does not worth it. The beauty of Mac is the 24" iMac screen.
> If you try it you will never go back to the laptops again.
> 
> Cheers,
> Dmitri.
> 
> 
> 
> 
> --- In flexcoders@yahoogroups.com, "b_alen"  wrote:
> >
> > Interesting. Me and my colleagues are also thinking of switching to
> > Mac due to Vista crappiness. In fact we're 80% sure that next laptops
> > will be Macs. My only concern is how to do .Net development and
> > integration with Flex then. Anyone has a solution to that?
> > 
> > 
> > 
> > 
> > 
> > --- In flexcoders@yahoogroups.com, "scottyale2008" 
> > wrote:
> > >
> > > How many Flex developers here are using a Mac for development? 
I've 
> > > been a die hard Microsoft guy since ... well, since Microsoft first 
> > > started.   I went from CPM on a Morrow Meadows to Microsoft DOS (on 
> > > computers with a Turbo button!), then Windows, now Vista.  I do
> have an 
> > > iPhone and it is an incredible device and the GUI is extremely well 
> > > done.   I've never used a Mac, but many of my friends have taken
the 
> > > plunge.  Is it time to make the switch?   I'm thinking about a Mac
> Book 
> > > Pro.  Is a Mac Book even worth considering for a Flex dev machine
> or is 
> > > a Mac Book Pro the way to go?   Anybody else make the switch
recently 
> > > from Windows to Mac?
> > >
> >
>




[flexcoders] Possible to add some data to load to the default preloader?

2008-06-05 Thread b_alen
I always have some stuff to load before the app can be used. Is it
possible to stick that loading into the default preloader? So the swf
would know that it has to load other files also before it dispatches
the event that it's fully loaded. Maybe some compiler directives, I
don't know.

Thanks



[flexcoders] Re: Thinking about going to the dark side....Apple Mac Book

2008-06-05 Thread b_alen
Interesting. Me and my colleagues are also thinking of switching to
Mac due to Vista crappiness. In fact we're 80% sure that next laptops
will be Macs. My only concern is how to do .Net development and
integration with Flex then. Anyone has a solution to that?





--- In flexcoders@yahoogroups.com, "scottyale2008" <[EMAIL PROTECTED]>
wrote:
>
> How many Flex developers here are using a Mac for development?  I've 
> been a die hard Microsoft guy since ... well, since Microsoft first 
> started.   I went from CPM on a Morrow Meadows to Microsoft DOS (on 
> computers with a Turbo button!), then Windows, now Vista.  I do have an 
> iPhone and it is an incredible device and the GUI is extremely well 
> done.   I've never used a Mac, but many of my friends have taken the 
> plunge.  Is it time to make the switch?   I'm thinking about a Mac Book 
> Pro.  Is a Mac Book even worth considering for a Flex dev machine or is 
> a Mac Book Pro the way to go?   Anybody else make the switch recently 
> from Windows to Mac?
>




[flexcoders] Re: FileReference / upload problem in Mozilla Firefox

2008-05-28 Thread b_alen
That's nasty!

Any idea how I should name the session ID for it to be picked up by .NET?




--- In flexcoders@yahoogroups.com, "Marcelo Savioli"
<[EMAIL PROTECTED]> wrote:
>
> Its a session issue.
> 
> This might help: http://thanksmister.com/?p=59
> 
> On Tue, May 27, 2008 at 9:02 AM, b_alen <[EMAIL PROTECTED]> wrote:
> 
> >   The title says it all.The Flex app does not want to upload files
from
> > Mozilla using FileReference. It works on IE, but not on Firefox. I was
> > doing the Googling and found only the same questions but not answers.
> > I use Firefox 2.0.0.14 and FlexBuilder 3.
> >
> > Thanks
> >
> >  
> >
> 
> 
> 
> -- 
> Marcelo Curi Savioli
> D-Click Web & Mobile Solutions
> [EMAIL PROTECTED]
> www.dclick.com.br/blog
> www.dclick.com.br
>




[flexcoders] Cannot embed assets to CSS - "can't resolve source" error

2008-03-06 Thread b_alen
I get this error 
"can't resolve source"

when trying to embed files to CSS. It only happens if I go to Project
/ Export RElease Build.

If I do IDE build or debug, it all works fine. 

I'm using FB3, release candidate.

I saw this bug reported on the bug tracking site:
http://bugs.adobe.com/jira/browse/SDK-13096

But it's marked as "cannot recreate". (surprise, surprise)

Anyone has the same problem?




[flexcoders] Re: Errors in Export Project but not in normal build or debug...

2008-03-06 Thread b_alen
Any thoughts guys? It's really urgent.


--- In flexcoders@yahoogroups.com, "b_alen" <[EMAIL PROTECTED]> wrote:
>
> I'm using FB3, not beta. I'm getting all sorts of strange errors while
> exporting through Project / Export Release Build, but I'm not getting
> any errors in the console while I do an IDE build or debug. Project /
> Clean didn't help. 
>  
> Any ideas?
> 
> ps: Errors that are stated in the Export Release Build dialogue don't
> make any sense.
>




[flexcoders] Errors in Export Project but not in normal build or debug...

2008-03-06 Thread b_alen
I'm using FB3, not beta. I'm getting all sorts of strange errors while
exporting through Project / Export Release Build, but I'm not getting
any errors in the console while I do an IDE build or debug. Project /
Clean didn't help. 
 
Any ideas?

ps: Errors that are stated in the Export Release Build dialogue don't
make any sense. 







[flexcoders] Re: Launch seamless AIR install from within Flex App

2008-03-03 Thread b_alen
I asked this question few days back. The best solution so far was
creating the BAT file that would launch first the AIR install and then
the app install. All should reside on the CD.

If you come up with something better please post, I'll do the same.

 

> anyone lauching an AIR app install from within a Flex app?
> 



[flexcoders] Re: Best practices for setting up large applications?

2008-02-29 Thread b_alen
We had the same problem in AS2, where we basically build the whole
Flex engine in AS2 / XML, plus everything else the application needed
to do, more than 50k lines of code. Flash 7 was compiling it for 3
minutes. We couldn't move or change anything without destroying things
somewhere else. We also thought that's the best way compared to what
other teams were doing, we were really proud of it in the beginning :)

It basically depends how you structure classes, libraries, so they can
be used independently in different projects. Less inheritance, more
composition, domain objects, decorator objects, Cairngorm also helps,
and above all experience. I don't know, it depends on project to
project, I doubt there is one single recipe you could follow to have
everything in order.


Alen



--- In flexcoders@yahoogroups.com, "Geoffrey" <[EMAIL PROTECTED]> wrote:
>
> We currently have a master project that links in 25 other projects to
> build our overall application.  The problem with this is that there
> seems to be a lot of inner dependencies b/w the projects (i.e. one
> project is a collection of utilities, and several other projects use
> these utilities).  Builds also seem to take forever when you change a
> project that is linked to many other projects.
> 
> We initially thought that this would be a good way to set up our
> application so we could take out certain parts to customize our
> offerings to customers.  Just not sure that it's really giving the
> advantages we initially thought.
> 
> Any thought on this?
>




[flexcoders] Re: getCharBounds not working on AIR?

2008-02-22 Thread b_alen
Sorry I couldn't answer before but for some strange reason Flex
stopped compiling and started crashing. I reinstalled it but it's
still the same. When I run a debug, it totally crashes and I have to
manually shut down the machine.

Will definitely revert once I solve this.



--- In flexcoders@yahoogroups.com, "Gordon Smith" <[EMAIL PROTECTED]> wrote:
>
> 1. I'll forward your complaints to the QA manager and the relevant QA
> engineer who marked SDK-10800 as UTR.
>  
> 2. No, I wasn't saying that you have to add any children into the
> TextArea. I was trying to explain that you have to add the TextArea to
> the display list before the TextArea will create its TextField. Simply
> new-ing a component doesn't create its descendants. Yes, this is
> unintuitive, but a UIComponent delays the creation of any descendants
> until their inherited styles can be determined. In general, the
> framework often has good reasons for the way it does things, but these
> reasons sometimes aren't obvious or properly explained.
>  
> 3a. I don't understand what isn't clear and straightforward about the
> ASDoc for TextArea listing 'textField' as a protected property.
>  
> 3b. Yes, it's documented what mx_internal represents, and that
> mx_internal APIs are undocumented and unsupported. What exactly is your
> complaint about this?
>  
> 3c. As with any software project, we could undoubtedly have done a
> better job if we had taken more time. But there are many Flex developers
> developing compelling Flex applications despite our shortcomings, and
> most probably wouldn't want longer release cycles.
>  
> 4. Generally, the updateComplete event tells you that a UIComponent has
> finished reacting to changes in its properties.
>  
> I'm unclear on why you said "who could resist?" about using the betas of
> Flex 3. It sounds like you've had nothing but frustration with Flex, and
> I apologize for that.
>  
> Gordon Smith
> Adobe Flex SDK Team
>  
> 
> 
> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
> Behalf Of b_alen
> Sent: Thursday, February 21, 2008 2:26 AM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Re: getCharBounds not working on AIR?
> 
> 
> 
> 1. It seems a little bit odd, having to help you identify such obvious
> bugs, who knows what else we can expect then. I have an issue with
> your bug report system, where people are just marking everything as
> "Cannot Reproduce". See this page:
> http://bugs.adobe.com/jira/secure/IssueNavigator.jspa?reset=true&customf
> ield_10100=Beta%20App
> <http://bugs.adobe.com/jira/secure/IssueNavigator.jspa?reset=true&custom
> field_10100=Beta%20App> 
> 
> And if you take a look at issue SDK-10800, you'll find the boundaries
> bug there. I don't know if it applies to AIR but I'm pretty sure
> nobody took a good look into any bugs on that page. 
> 
> 2. I'm sorry I don't understand. All I wanted is to extend TextArea in
> order to get access to TextField. I don't want to add any children, I
> just want a subclass of TextArea. You're saying it's not possible to
> subclass a component without adding something to it? Isn't that a bit
> bizarre? I'm posting the class at the bottom.
> 
> 3a. OK, there obviously is access to the TextField since I am using it
> and writing about it in the current thread. What I meant was there is
> no clear, straightforward and documented way of accessing it. You have
> to hack your way through by relying on information found on blogs and
> forums. I mean it's just a TextField for god's sake :)
> 
> 3b. So it's documented that it's undocumented. Perfect documentation,
> lol.
> 
> 3c. I appreciate and support this kind of product development where
> user community is involved. But I seriously think that you haven't
> done exactly a great job designing it internally, maybe relying to
> much on the community. It's also our fault we started using it while
> in beta, but hey, who could resist :) The only sad thing is that in
> the real world you have to deliver to get paid. 
> 
> 4. Back to the callLater. I don't think it's such a bad idea. In the
> docs and on the blogs it says that it gets called "once all the
> properties are set". So I figure, it's the same as capturing the
> nonexistent ALL_PROPERTIES_SET event.
> 
> package
> {
> import mx.controls.TextArea;
> import mx.core.IUITextField;
> 
> public class TextAreaExtended extends TextArea
> {
> public function TextAreaExtended()
> {
> createChildren();

[flexcoders] Re: Web conferencing with Flex

2008-02-22 Thread b_alen
A. Last time I was checking it was 700 per month.

B. By "sucks" I meant that it was refused by all our departments
despite couple of well prepared sales pitches from Adobe. 

Wheel was reinvented many times, that's why I don't have stone wheel
on my Toyota. That's why we don't use IE for browsing and Word for
HTML editing. 



--- In flexcoders@yahoogroups.com, "Alan Rother" <[EMAIL PROTECTED]> wrote:
>
> A. It's like a few hundred dollars a year. How could it be worth
> spending tens of thousands of dollars rebuilding it?
> B. If it sucks, then it won't be possible to build something better
> than it using Flex and BlazeDS/LCDS. It's literally built on top of
> the same technology and it was built by the same people who built Flex
> and LCDS.
> 
> How about a positive response with alternative suggestions?
> 
> -- 
> Alan Rother
> Adobe Certified Advanced ColdFusion MX 7 Developer
> Manager, Phoenix Cold Fusion User Group, AZCFUG.org
>




[flexcoders] Re: getCharBounds not working on AIR?

2008-02-21 Thread b_alen
1. It seems a little bit odd, having to help you identify such obvious
bugs, who knows what else we can expect then. I have an issue with
your bug report system, where people are just marking everything as
"Cannot Reproduce". See this page:
http://bugs.adobe.com/jira/secure/IssueNavigator.jspa?reset=true&customfield_10100=Beta%20App

And if you take a look at issue SDK-10800, you'll find the boundaries
bug there. I don't know if it applies to AIR but I'm pretty sure
nobody took a good look into any bugs on that page. 

2. I'm sorry I don't understand. All I wanted is to extend TextArea in
order to get access to TextField. I don't want to add any children, I
just want a subclass of TextArea. You're saying it's not possible to
subclass a component without adding something to it? Isn't that a bit
bizarre? I'm posting the class at the bottom.


3a. OK, there obviously is access to the TextField since I am using it
and writing about it in the current thread. What I meant was there is
no clear, straightforward and documented way of accessing it. You have
to hack your way through by relying on information found on blogs and
forums. I mean it's just a TextField for god's sake :)

3b. So it's documented that it's undocumented. Perfect documentation, lol.

3c. I appreciate and support this kind of product development where
user community is involved. But I seriously think that you haven't
done exactly a great job designing it internally, maybe relying to
much on the community. It's also our fault we started using it while
in beta, but hey, who could resist :) The only sad thing is that in
the real world you have to deliver to get paid. 

4. Back to the callLater. I don't think it's such a bad idea. In the
docs and on the blogs it says that it gets called "once all the
properties are set". So I figure, it's the same as capturing the
nonexistent ALL_PROPERTIES_SET event.


package
{
import mx.controls.TextArea;
import mx.core.IUITextField;

public class TextAreaExtended extends TextArea
{
public function TextAreaExtended()
{
createChildren(); // doesn't work without this

}

public function get _textField():IUITextField{
return textField;
}
}
}

then I'm just using it like this and it works:

var actualyUsefulTextArea:TextAreaExtended = new TextAreaExtended();

actualyUsefulTextArea._textField.text = "whatever";

callLater(getCharBounds);


function getCharBounds(){
  var rect:Rectangle =
actualyUsefulTextArea._textField.getCharBoundaries(4);


}





--- In flexcoders@yahoogroups.com, "Gordon Smith" <[EMAIL PROTECTED]> wrote:
>
> 1. I don't think AIR and Flash Player should have different timing. If
> the Flash Player knows the correct bounds immediately after setting the
> text, AIR should too. Please file a bug.
>  
> 2. You get a null object exception because you're expecting children to
> exist after newing a component, and that's not the way any of our
> framework components work. You have to first do the addChild().
>  
> 3a. The textField of a TextArea is a protected var accessible by any
> subclass, and there is a public getTextField() method in the mx_internal
> namespace, so it's not accurate to say "no access to TextField".
>  
> 3b. The mx_internal namespace has the documentation 
>  
> /**
>  *  This namespace is used for undocumented APIs -- usually
> implementation
>  *  details -- which can't be private because they need to visible
>  *  to other classes.
>  *  APIs in this namespace are completely unsupported and are likely to
>  *  change in future versions of Flex.
>  */
>  
> We don't want to advertise it heavily because that would defeat the
> entire purpose of it.
>  
> 3c. I'm sorry that your experience with Flex 3 makes you feel that it's
> half-baked. We have a public bugbase so that you can let us know what
> we're doing wrong in a way that gets tracked. Complaints on flexcoders
> don't always get tracked.
>  
> Gordon Smith
> Adobe Flex SDK Team
> 
> 
> 
> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
> Behalf Of b_alen
> Sent: Wednesday, February 20, 2008 9:51 PM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Re: getCharBounds not working on AIR?
> 
> 
> 
> 
> > 1. If the same code produces different character bounds in AIR than in
> > the Flash Player, that's a bug and you should file it.
> 
> It produces the same bounds, you just can't access the function at the
> same 

[flexcoders] Re: getCharBounds not working on AIR?

2008-02-20 Thread b_alen

> 1. If the same code produces different character bounds in AIR than in
> the Flash Player, that's a bug and you should file it.

It produces the same bounds, you just can't access the function at the
same time, that is upon setting the text property. You have to do it
later at some point in time.


> 2. A constructor should not call createChildren(). The framework
> automatically calls createChildren() at the appropriate time, which is
> when the component is added to the display list.


If I don't call createChildren() I get null object exception. 


> 3. If you find yourself having to use callLater(), you're probably doing
> something the wrong way. In general, you should use events rather than
> just waiting awhile. If the framework doesn't provide the event you
> need, please file an enhancement request.

Or it might be that Adobe is doing something the wrong way and we're
just forced to use all sorts of hacks to work with half baked
products. (no access to TextField, no documentation on mx_internal,
AIR bounds vs. FP bounds, etc, etc...)


Cheers










> Gordon Smith
> Adobe Flex SDK Team
> 
> 
> 
> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
> Behalf Of b_alen
> Sent: Wednesday, February 20, 2008 8:48 AM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Re: getCharBounds not working on AIR?
> 
> 
> 
> Great, it seems like callLater saved my butt. Luckily i also found the
> blog which explains in short the WHY's and HOW's of the callLater.
> Title of the blog is callLater() - The Function That Saved My Butt.
> It's here:
> 
> http://www.kylehayes.info/blog/index.cfm/2007/5/31/callLater--The-Functi
> on-That-Saved-My-Butt
> <http://www.kylehayes.info/blog/index.cfm/2007/5/31/callLater--The-Funct
> ion-That-Saved-My-Butt> 
> 
> The function actually broke because I had to use it within the for
> loop. The solution was to to get rid of the for loop and instead split
> the iteration into several functions that were calling each other upon
> completion.
> 
> --- In flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com>
> , "Daniel Freiman"  wrote:
> >
> > If you want a simple wait, you can use uicomponent.callLater(). 
> (See the
> > docs). The other alternative is to listen for an event but which
> even to
> > listen for depends on your use case. (for example if this is
> happening when
> > the application is loaded applicationComplete would probably be the
> correct
> > event.) Check out the events thrown by the components involved to
> see if one
> > jumps out at you.
> > 
> > - Dan Freiman
> > 
> > On Wed, Feb 20, 2008 at 10:53 AM, b_alen  wrote:
> > 
> > > Wow, that was fast, I didn't even manage to finish the cigarette :)
> > >
> > > And it works. Now, should I use the interval or is there a more
> > > elegant way to know that the component is ready? You were mentioning
> > > "refresh".
> > >
> > > Thanks a ton buddy
> > >
> > >
> > > --- In flexcoders@yahoogroups.com
> <mailto:flexcoders%40yahoogroups.com>  ,
> "Daniel
> > > Freiman"  wrote:
> > > >
> > > > Try getting the rect later (Put a button somewhere and click it
> after
> > > > everything is finished loading) to make sure the UITextField
> doesn't
> > > just
> > > > need to be refreshed first. If that doesn't work, I'd file a bug
> if
> > > I were
> > > > you.
> > > >
> > > > - Dan Freiman
> > > >
> > > > On Wed, Feb 20, 2008 at 10:20 AM, b_alen  wrote:
> > > >
> > > > > It seems a bit ridiculous but it's true. Not just that you have
> > > to use
> > > > > all sorts of hacks to get access to good old TextField
> (IUITextField)
> > > > > in Flex in order to even think of accessing characters'
> Rectangles.
> > > > > Once you do manage to cut your way through, you get a very nasty
> > > > > disappointment that IUITextField.getCharBounds() works
> perfectly in
> > > > > Flex Web apps, but returns some bizarre incorrect values when
> running
> > > > > on AIR.
> > > > >
> > > > > If anyone has any suggestion, I'd really appreciate it very
> much.
> > > > > We're in terrible deadline and this is one of the crucial
> > > functionalities.
> > > > >
> > > > > var tf:TextAreaExtended = new TextAreaExtended();
> > > > > tf._textField.text = "dsfsdf sfd sf dsf sfdsd fdsfdsfdsfdsfdsf
> fds";
> > > > > addChild(tf);
> > > > > var rect:Rectangle = tf._textField.getCharBoundaries(20);
> > > > >
> > > > > // I get values for rect.left something like 0.5
> > > > > // same goes for other rect properties, very weird.
> > > > >
> > > > > // extended TextArea which gives access to TextField
> > > > > package
> > > > > {
> > > > > import mx.controls.TextArea;
> > > > > import mx.core.IUITextField;
> > > > >
> > > > > public class TextAreaExtended extends TextArea
> > > > > {
> > > > > public function TextAreaExtended()
> > > > > {
> > > > > createChildren();
> > > > >
> > > > > }
> > > > >
> > > > > public function get _textField():IUITextField{
> > > > > return textField;
> > > > > }
> > > > > }
> > > > > }
> > > > >
> > > > >
> > > > >
> > > >
> > >
> > > 
> > >
> >
>




[flexcoders] Re: Web conferencing with Flex

2008-02-20 Thread b_alen

> Are you not familiar with Adobe Acrobat Connect? It is exactly that
> and yes, based on all those technologies you mentioned.

A. It's expensive
B. It sucks




[flexcoders] Re: getCharBounds not working on AIR?

2008-02-20 Thread b_alen
Great, it seems like callLater saved my butt. Luckily i also found the
blog which explains in short the WHY's and HOW's of the callLater.
Title of the blog is callLater() - The Function That Saved My Butt.
It's here:

http://www.kylehayes.info/blog/index.cfm/2007/5/31/callLater--The-Function-That-Saved-My-Butt

The function actually broke because I had to use it within the for
loop. The solution was to to get rid of the for loop and instead split
the iteration into several functions that were calling each other upon
completion.





--- In flexcoders@yahoogroups.com, "Daniel Freiman" <[EMAIL PROTECTED]> wrote:
>
> If you want a simple wait, you can use uicomponent.callLater(). 
(See the
> docs).  The other alternative is to listen for an event but which
even to
> listen for depends on your use case. (for example if this is
happening when
> the application is loaded applicationComplete would probably be the
correct
> event.) Check out the events thrown by the components involved to
see if one
> jumps out at you.
> 
> - Dan Freiman
> 
> On Wed, Feb 20, 2008 at 10:53 AM, b_alen <[EMAIL PROTECTED]> wrote:
> 
> >   Wow, that was fast, I didn't even manage to finish the cigarette :)
> >
> > And it works. Now, should I use the interval or is there a more
> > elegant way to know that the component is ready? You were mentioning
> > "refresh".
> >
> > Thanks a ton buddy
> >
> >
> > --- In flexcoders@yahoogroups.com ,
"Daniel
> > Freiman"  wrote:
> > >
> > > Try getting the rect later (Put a button somewhere and click it
after
> > > everything is finished loading) to make sure the UITextField doesn't
> > just
> > > need to be refreshed first. If that doesn't work, I'd file a bug if
> > I were
> > > you.
> > >
> > > - Dan Freiman
> > >
> > > On Wed, Feb 20, 2008 at 10:20 AM, b_alen  wrote:
> > >
> > > > It seems a bit ridiculous but it's true. Not just that you have
> > to use
> > > > all sorts of hacks to get access to good old TextField
(IUITextField)
> > > > in Flex in order to even think of accessing characters'
Rectangles.
> > > > Once you do manage to cut your way through, you get a very nasty
> > > > disappointment that IUITextField.getCharBounds() works
perfectly in
> > > > Flex Web apps, but returns some bizarre incorrect values when
running
> > > > on AIR.
> > > >
> > > > If anyone has any suggestion, I'd really appreciate it very much.
> > > > We're in terrible deadline and this is one of the crucial
> > functionalities.
> > > >
> > > > var tf:TextAreaExtended = new TextAreaExtended();
> > > > tf._textField.text = "dsfsdf sfd sf dsf sfdsd fdsfdsfdsfdsfdsf
fds";
> > > > addChild(tf);
> > > > var rect:Rectangle = tf._textField.getCharBoundaries(20);
> > > >
> > > > // I get values for rect.left something like 0.5
> > > > // same goes for other rect properties, very weird.
> > > >
> > > > // extended TextArea which gives access to TextField
> > > > package
> > > > {
> > > > import mx.controls.TextArea;
> > > > import mx.core.IUITextField;
> > > >
> > > > public class TextAreaExtended extends TextArea
> > > > {
> > > > public function TextAreaExtended()
> > > > {
> > > > createChildren();
> > > >
> > > > }
> > > >
> > > > public function get _textField():IUITextField{
> > > > return textField;
> > > > }
> > > > }
> > > > }
> > > >
> > > >
> > > >
> > >
> >
> >  
> >
>




[flexcoders] Re: getCharBounds not working on AIR?

2008-02-20 Thread b_alen
Wow, that was fast, I didn't even manage to finish the cigarette :)

And it works. Now, should I use the interval or is there a more
elegant way to know that the component is ready? You were mentioning
"refresh".

Thanks a ton buddy



--- In flexcoders@yahoogroups.com, "Daniel Freiman" <[EMAIL PROTECTED]> wrote:
>
> Try getting the rect later (Put a button somewhere and click it after
> everything is finished loading) to make sure the UITextField doesn't
just
> need to be refreshed first.  If that doesn't work, I'd file a bug if
I were
> you.
> 
> - Dan Freiman
> 
> On Wed, Feb 20, 2008 at 10:20 AM, b_alen <[EMAIL PROTECTED]> wrote:
> 
> >   It seems a bit ridiculous but it's true. Not just that you have
to use
> > all sorts of hacks to get access to good old TextField (IUITextField)
> > in Flex in order to even think of accessing characters' Rectangles.
> > Once you do manage to cut your way through, you get a very nasty
> > disappointment that IUITextField.getCharBounds() works perfectly in
> > Flex Web apps, but returns some bizarre incorrect values when running
> > on AIR.
> >
> > If anyone has any suggestion, I'd really appreciate it very much.
> > We're in terrible deadline and this is one of the crucial
functionalities.
> >
> > var tf:TextAreaExtended = new TextAreaExtended();
> > tf._textField.text = "dsfsdf sfd sf dsf sfdsd fdsfdsfdsfdsfdsf fds";
> > addChild(tf);
> > var rect:Rectangle = tf._textField.getCharBoundaries(20);
> >
> > // I get values for rect.left something like 0.5
> > // same goes for other rect properties, very weird.
> >
> > // extended TextArea which gives access to TextField
> > package
> > {
> > import mx.controls.TextArea;
> > import mx.core.IUITextField;
> >
> > public class TextAreaExtended extends TextArea
> > {
> > public function TextAreaExtended()
> > {
> > createChildren();
> >
> > }
> >
> > public function get _textField():IUITextField{
> > return textField;
> > }
> > }
> > }
> >
> >  
> >
>




[flexcoders] getCharBounds not working on AIR?

2008-02-20 Thread b_alen
It seems a bit ridiculous but it's true. Not just that you have to use
all sorts of hacks to get access to good old TextField (IUITextField)
in Flex  in order to even think of accessing characters' Rectangles.
Once you do manage to cut your way through, you get a very nasty
disappointment that IUITextField.getCharBounds() works perfectly in
Flex Web apps, but returns some bizarre incorrect values when running
on AIR.

If anyone has any suggestion, I'd really appreciate it very much.
We're in terrible deadline and this is one of the crucial functionalities.


var tf:TextAreaExtended = new TextAreaExtended();
tf._textField.text = "dsfsdf sfd sf dsf sfdsd fdsfdsfdsfdsfdsf fds";
addChild(tf);
var rect:Rectangle = tf._textField.getCharBoundaries(20);

// I get values for rect.left something like 0.5
// same goes for other rect properties, very weird.

// extended TextArea which gives access to TextField
package
{
import mx.controls.TextArea;
import mx.core.IUITextField;

public class TextAreaExtended extends TextArea
{
public function TextAreaExtended()
{
createChildren();

}

public function get _textField():IUITextField{
return textField;
}
}
}



[flexcoders] Re: Polymorphism....?

2008-02-20 Thread b_alen
I wouldn't suggest you uptype to an IClosable interface. By doing so,
you loose access to all the members of the UIComponent. And having
access to super class's members is why you do inheritance in the first
place.

say:

class Sub extends UIComponent implements IClosable

var sub1:IClosable = new Sub();
sub1.id; // You get an error here
sub1.isClosed; // this works

var sub2:UIComponent = new Sub();
sub2.id; // this works
sub2.isClosed; // You get an error here


I suggest you create a subclass of UIComponent, say AbstractUIComp*,
which will by default have all the members of UIComponent, plus all
the new members you want to add on your own (isClosed). Then you just
make more subclasses of the AbstractUIComp and you can safely uptype
them later to AbstractUIComp to get the polymorphism working.

say:

class AbstractUIComp extends UIComponent
class Sub extends AbstractUIComp 

var sub:AbstractUIComp = new Sub();
sub.id; // this works
sub.isClosed; // this works


* Unfortunately Abstract classes and members are not supported by AS3,
so you have to just "know" that it is an Abstract class (class that
you don't instantiate, you just use it for subclassing it). It would
also be a bit more elegant if you would implement IClosable for the
AbstractUIComp and all of it's classes. 

Cheers


--- In flexcoders@yahoogroups.com, "dsds99" <[EMAIL PROTECTED]> wrote:
>
> Thanks, your solution worked.
> 
> If I think about it, I'm puzzled. Just like UIComponent, the IClosable
> interface doesn't have the isClosed property either. So when I cast it
> that interface, it should fail but it doesn't. 
> 
> If that's how interfaces work. Then casting it as IUIComponent
> interface should have worked too. 
> 
> --- In flexcoders@yahoogroups.com, "Mike Krotscheck" 
> wrote:
> >
> > UIComponent doesn't have a property called isClosed, therefore your
> > attempt to access that property on an instance cast to UIComponent
will
> > throw an error. What you need to do is have each class implement an
> > interface called IClosable or something along those lines, and cast to
> > that.
> >  
> > public function checkDoor(c:IClosable):Boolean
> > {
> > return c.isClosed;
> > }
> >  
> > 
> > Michael Krotscheck
> > 
> > Senior Developer
> > 
> >   
> > 
> > RESOURCE INTERACTIVE
> > 
> >  www.resource.com
 
> > 
> > mkrotscheck@  
> > 
> >  
> > 
> > 
> > 
> > From: flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] On
> > Behalf Of dsds99
> > Sent: Tuesday, February 19, 2008 4:54 PM
> > To: flexcoders@yahoogroups.com
> > Subject: [flexcoders] Polymorphism?
> > 
> > 
> > 
> > I have 2 unrelated classes that extend UIComponent ultimately..;)
> > and each class implements a boolean property called "isClosed"
> > 
> > Passing these classes into the function as untyped. 
> > 
> > If I don't cast, it works. Trying to understand why it doesn't work
> > this way.
> > 
> > A compile time error occurs in the if statement. But isn't this where
> > polymorphism kicks in even though I am casting it to a higher class in
> > the chain.
> > 
> > public function checkDoor(c:*):void{
> > if((c is UIComponent).isClosed == true){
> > trace("opened");
> > }
> > }
> > 
> > 
> > 
> >  
> > 
> > 
> > We support privacy and confidentiality. Please delete this email if it
> > was received in error.
> > 
> > What's new ::
> > Capitalize on the social web | The Open Brand, a new book by Kelly
> > Mooney and Dr. Nita Rollins, available March 2008 |
www.theopenbrand.com
> >
>




[flexcoders] Re: do you need CS Degree to get a job?

2008-02-19 Thread b_alen
No matter what everybody's saying, I'm finding a huge difference
between developers with formal education and those self thought. I
would definitely suggest you to take some courses at least, not just
for getting a job, but to get the knowledge you'll find valuable quite
often. There is a reason why Universities exist. 



--- In flexcoders@yahoogroups.com, Sherif Abdou <[EMAIL PROTECTED]> wrote:
>
> A bit off-topic but I was just wondering since i have no
reminescense of this and their seems to be a lot of programmers on
here  I thought I would ask this question. Do you actually need some
sort of CS degree or Computer Related degree to get a job say in
programming Web Applications or getting a Job at Adobe or MSFT or
Google. I have a degree in Molecular Biology with a Chem Minor. I am
Self-Taught so let me here some stories. Thanks.
> 
> 
>  

> Looking for last minute shopping deals?  
> Find them fast with Yahoo! Search. 
http://tools.search.yahoo.com/newsearch/category.php?category=shopping
>




[flexcoders] Re: ValueObject Factories?

2007-12-05 Thread b_alen
Sometimes I use Factory for creating VOs, it really depends on the
need. And I use VOs for everything that goes OTW, even if it is a
trivial object.



--- In flexcoders@yahoogroups.com, "Christophe Herreman" <[EMAIL PROTECTED]>
wrote:
>
> Hi all,
> 
> I was wondering how you guys deal with model objects and their
corresponding
> value objects. We have a pretty big domain model with complex nested
classes
> and we need to create value objects from them before sending them to the
> server. Right now we create a factory for each model, that can
create a vo
> from a model and a model from a vo. This works, but it is obviously
a lot of
> work and error prone, so it requires more work to write testcases
for them.
> 
> Does anyone have this "problem" too? Are you only sending VO's to
the server
> or do you only do that for complex types and otherwise send the object
> itself?
> 
> Input, comments and ideas are welcome.
> 
> regards,
> Christophe
> 
> -- 
> Christophe Herreman
> http://www.herrodius.com
> http://www.pranaframework.org
>




[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] 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: Code behind - class extend mxml vs. mxml extend class

2007-09-24 Thread b_alen

> > You just saw it :)
> 
> Bizarre. I wonder why they said that ?
> 

You can always pay for consultancy and ask :) 

Do send me one simple example to see how you're using it exactly. Send
me MXML and it's AS, I have to examine it, I think we might not be on
the same page here. 



[flexcoders] Re: Code behind - class extend mxml vs. mxml extend class

2007-09-20 Thread b_alen

> On Wednesday 19 Sep 2007, [EMAIL PROTECTED] wrote:
> > As far as I know, Flex gods from Scotland do not advise the use of
> > code behind approach as seen in .net.
> 
> It'd be interesting to see that advice :-)

You just saw it :)


> 
> > First of all there is no code generator that would create references
> > to all mxml elements in the accompanying AS class.
> 
> So ?
> It really doesn't take that long, and no one is suggesting all
existing code 
> is rewritten to code behind.
> Besides a 'code generator' is only an Eclipse plugin away.

It's not a point in how long it takes, it's just not meant to be used
like that. If it would be, there'd be mechanisms to do that. It does
seem tempting and I also wanted to do that in the beginning as I
wanted clear separation between code and mxml (as seen in .net). But
quite soon I realized that it does take a lot of time, more space for
errors, not refactoring friendly, etc. Before we got into Flex we even
developed our own similar approach with Flash / XML that used code
behind, that is, every XML file had accompanying AS class.


> > Second and more important, you can't use data binding that way which
> > is one of the most powerful features of Flex.
> 
> Eh ?
> We use data binding with code behind all the time. It's fine.

You can use it of course, but not in the way you would use with code
in mxml. It requires more fiddling. 

> > And there is also third, which is Cairngorm. Cairngorm is ment to use
> > mxmls as classes, so you treat them as a class. There's more to
> > Cairngorm than this of course but if you'd like to implement it don't
> > use code behind approach.
> 
> WTF ?!?
> We also use Cairngorm with code behind all the time (not ViewLocator
though). 
> It works fine. 
> There is no difference between MXML and AS classes, once compiled.

It's not after they are compiled, the difference as I see it, is in
the development and organizational approach. Cairngorm never advocates
code behind. Of course you can implement similar architecture with all
the patterns, but Cairngorm is not purely about patterns but also how
you organize the project, classes, views, etc. I'm almost convinced
that code in mxml is better solution than code behind, though it does
seem clumsy at times. 



> Tom Chiverton
> Helping to centrally strategize real-time information
> on: http://thefalken.livejournal.com
> 
> 
> 
> This email is sent for and on behalf of Halliwells LLP.
> 
> Halliwells LLP is a limited liability partnership registered in
England and Wales under registered number OC307980 whose registered
office address is at St James's Court Brown Street Manchester M2 2JF.
 A list of members is available for inspection at the registered
office. Any reference to a partner in relation to Halliwells LLP means
a member of Halliwells LLP. Regulated by the Law Society.
> 
> CONFIDENTIALITY
> 
> This email is intended only for the use of the addressee named above
and may be confidential or legally privileged.  If you are not the
addressee you must not read it and must not use any information
contained in nor copy it nor inform any person other than Halliwells
LLP or the addressee of its existence or contents.  If you have
received this email in error please delete it and notify Halliwells
LLP IT Department on 0870 365 8008.
> 
> For more information about Halliwells LLP visit www.halliwells.com.
>




[flexcoders] Re: Code behind - class extend mxml vs. mxml extend class

2007-09-19 Thread b_alen
As far as I know, Flex gods from Scotland do not advise the use of
code behind approach as seen in .net. I was doing the same at the
beginning but after having a chat with them I see why it's not good.

First of all there is no code generator that would create references
to all mxml elements in the accompanying AS class.

Second and more important, you can't use data binding that way which
is one of the most powerful features of Flex.

And there is also third, which is Cairngorm. Cairngorm is ment to use
mxmls as classes, so you treat them as a class. There's more to
Cairngorm than this of course but if you'd like to implement it don't
use code behind approach.

Alen




--- In flexcoders@yahoogroups.com, "cubrip" <[EMAIL PROTECTED]>
wrote:
>
> Hi,
> 
> I just wanted to use code behind in a flex application, but wasn�t
> sure which way to go.
> 
> In all Examples/Mailinglists,... following method was used.
> 
> MyClassCodeBehind extends e.g. Canvas
> 
> in the MyClass.mxml the root node is type of MyClassCodeBehind. The
> mxml class extends more or less the class MyClassCodeBehind.
> In this case the class MyClassCodeBehind of course has no access to
> the components in the mxml file. So all components have to be declared
> in the class MyClassCodeBehind as public properties. From the mxml
> file I can access Methods of class MyClassCodeBehind.
> 
> If I make it the other way round, I can extend MyClass.mxml in class
> MyClassCodeBehind and don�t have to declare all components as
> properties because they are already derived from the parent
> MyClass.mxml. Drawback of this method is that if I want to call a
> method in the MyClass.mxml I have to implement a stub in MyClass.mxml
> and overwrite it in MyClassCodeBehind. But I don�t want to make
> function calls in mxml anyway. I want to have the code in the code
behind.
> 
> Have I missed something specific, why everyone is using the first
> method and not the other option?
> 
> cheers,
> 
> Christoph
>




[flexcoders] Re: Loading code from swf (instantiating classes from external swf)

2007-09-19 Thread b_alen
No, actually my goal as an API provider is that I don't have to know
anything about their code, not even the class name. I provide API that
allows them to extend certain functionality of the application. I
provide them public functions through objects in model locator. they
can use how many classes they want in their swf, they just need to
hook to that public methods I provide. 

I'm talking about post compile functionality extension with swf files
containing the code.


Alen


 

--- In flexcoders@yahoogroups.com, "Steve Mathews" <[EMAIL PROTECTED]> wrote:
>
> Well using the non-module approach (again, I haven't used modules so I
> can't speak for that method), you at least need to know what class to
> instantiate.
> 
> It sounds like you are doing something very similar in concept to what
> I am. So I provide an API (interface) that an external developer
> builds their class to. All I need to know from them is what the fully
> qualified class path is.
> 
> Steve
> 
> On 9/18/07, b_alen <[EMAIL PROTECTED]> wrote:
> > Cheers guys, just one quick check, is it possible with these two
methods:
> >
> > 1. I make an application and deploy it on the web.
> > 2. You, knowing nothing about the application except the API I provide
> > you, write the extension and submit it in form of swf on my server.
> > 3. My application recognizes that the new extension has been
> > submitted, it downloads it and uses the code from there.
> >
> > Let's say I have an employee management system, where different
> > operations can be made on the employee. You write an extension where
> > user can for example use their web cam in order to save a pic in the
> > database. Now application is already up and running, and you submit
> > this to the server, I don't have to recompile and know nothing about
> > your part and all you need to know is my API.
> >
> > It's purely a hypothetical example but for the case above I would
> > provide something like that probably:
> >
> > ModelLocator.empDataManager.addEmployeeDetail(id:String, name:String);
> > ModelLocator.empDataManager.editEmployeeDetail(id:String,
value:Object);
> >
> > you would call this from your swf like this:
> >
> > ModelLocator.empDataManager.addEmployeeDetail("webcam_pic",
"Webcam pic");
> > ModelLocator.empDataManager.editEmployeeDetail("webcam_pic", picData);
> >
> >
> >
> >
> > What do you think?
> >
> >
> >
> >
> >
> > --- In flexcoders@yahoogroups.com, "Steve Mathews"  wrote:
> > >
> > > You can use LoadModule, which might be the best way to go. But I am
> > > doing a AS3 only project (no flex framework) and am doing this using
> > > applicationDomain.getDefinition which works great.
> > >
> > > On 9/17/07, Tom Chiverton  wrote:
> > > > On Monday 17 Sep 2007, alen.balja@ wrote:
> > > > > I tried Google but I couldn't find anything, maybe it's
pretty easy
> > > > > and maybe it's impossible. Anyone has any ideas?
> > > >
> > > > LoadModule
> > > >
> > > > --
> > > > Tom Chiverton
> > > > Helping to continuously bully cross-media mindshares
> > > > on: http://thefalken.livejournal.com
> > > >
> > > > 
> > > >
> > > > This email is sent for and on behalf of Halliwells LLP.
> > > >
> > > > Halliwells LLP is a limited liability partnership registered in
> > England and Wales under registered number OC307980 whose registered
> > office address is at St James's Court Brown Street Manchester M2 2JF.
> >  A list of members is available for inspection at the registered
> > office. Any reference to a partner in relation to Halliwells LLP means
> > a member of Halliwells LLP. Regulated by the Law Society.
> > > >
> > > > CONFIDENTIALITY
> > > >
> > > > This email is intended only for the use of the addressee named
> > above and may be confidential or legally privileged.  If you are not
> > the addressee you must not read it and must not use any information
> > contained in nor copy it nor inform any person other than Halliwells
> > LLP or the addressee of its existence or contents.  If you have
> > received this email in error please delete it and notify Halliwells
> > LLP IT Department on 0870 365 8008.
> > > >
> > > > For more information about Halliwells LLP visit
www.halliwells.com.
> > > >
> > > >
> > > >
> > > > --
> > > > 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 Mailing List
> > FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> > Search Archives:
http://www.mail-archive.com/flexcoders%40yahoogroups.com
> > Yahoo! Groups Links
> >
> >
> >
> >
>




[flexcoders] Re: Loading code from swf (instantiating classes from external swf)

2007-09-18 Thread b_alen
Wow, that certainly seems exciting then. Though the examples I've seen
briefly deal mostly with the graphical side of it. If you happen to
know any good resource I'd be very thankful.

Cheers all!

--- In flexcoders@yahoogroups.com, "Alex Harui" <[EMAIL PROTECTED]> wrote:
>
> That's the goal of modules.
> 
>  
> 
> 
> 
> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
> Behalf Of b_alen
> Sent: Tuesday, September 18, 2007 1:24 AM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Re: Loading code from swf (instantiating classes
> from external swf)
> 
>  
> 
> Cheers guys, just one quick check, is it possible with these two
> methods:
> 
> 1. I make an application and deploy it on the web.
> 2. You, knowing nothing about the application except the API I provide
> you, write the extension and submit it in form of swf on my server.
> 3. My application recognizes that the new extension has been
> submitted, it downloads it and uses the code from there.
> 
> Let's say I have an employee management system, where different
> operations can be made on the employee. You write an extension where
> user can for example use their web cam in order to save a pic in the
> database. Now application is already up and running, and you submit
> this to the server, I don't have to recompile and know nothing about
> your part and all you need to know is my API. 
> 
> It's purely a hypothetical example but for the case above I would
> provide something like that probably:
> 
> ModelLocator.empDataManager.addEmployeeDetail(id:String, name:String);
> ModelLocator.empDataManager.editEmployeeDetail(id:String, value:Object);
> 
> you would call this from your swf like this:
> 
> ModelLocator.empDataManager.addEmployeeDetail("webcam_pic", "Webcam
> pic");
> ModelLocator.empDataManager.editEmployeeDetail("webcam_pic", picData);
> 
> What do you think?
> 
> --- In flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com>
> , "Steve Mathews"  wrote:
> >
> > You can use LoadModule, which might be the best way to go. But I am
> > doing a AS3 only project (no flex framework) and am doing this using
> > applicationDomain.getDefinition which works great.
> > 
> > On 9/17/07, Tom Chiverton  wrote:
> > > On Monday 17 Sep 2007, alen.balja@ wrote:
> > > > I tried Google but I couldn't find anything, maybe it's pretty
> easy
> > > > and maybe it's impossible. Anyone has any ideas?
> > >
> > > LoadModule
> > >
> > > --
> > > Tom Chiverton
> > > Helping to continuously bully cross-media mindshares
> > > on: http://thefalken.livejournal.com
> <http://thefalken.livejournal.com> 
> > >
> > > 
> > >
> > > This email is sent for and on behalf of Halliwells LLP.
> > >
> > > Halliwells LLP is a limited liability partnership registered in
> England and Wales under registered number OC307980 whose registered
> office address is at St James's Court Brown Street Manchester M2 2JF.
> A list of members is available for inspection at the registered
> office. Any reference to a partner in relation to Halliwells LLP means
> a member of Halliwells LLP. Regulated by the Law Society.
> > >
> > > CONFIDENTIALITY
> > >
> > > This email is intended only for the use of the addressee named
> above and may be confidential or legally privileged. If you are not
> the addressee you must not read it and must not use any information
> contained in nor copy it nor inform any person other than Halliwells
> LLP or the addressee of its existence or contents. If you have
> received this email in error please delete it and notify Halliwells
> LLP IT Department on 0870 365 8008.
> > >
> > > For more information about Halliwells LLP visit www.halliwells.com.
> > >
> > >
> > >
> > > --
> > > Flexcoders Mailing List
> > > FAQ:
> http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> <http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt> 
> > > Search Archives:
> http://www.mail-archive.com/flexcoders%40yahoogroups.com
> <http://www.mail-archive.com/flexcoders%40yahoogroups.com> 
> > > Yahoo! Groups Links
> > >
> > >
> > >
> > >
> >
>




[flexcoders] Re: Loading code from swf (instantiating classes from external swf)

2007-09-18 Thread b_alen
Cheers guys, just one quick check, is it possible with these two methods:

1. I make an application and deploy it on the web.
2. You, knowing nothing about the application except the API I provide
you, write the extension and submit it in form of swf on my server.
3. My application recognizes that the new extension has been
submitted, it downloads it and uses the code from there.

Let's say I have an employee management system, where different
operations can be made on the employee. You write an extension where
user can for example use their web cam in order to save a pic in the
database. Now application is already up and running, and you submit
this to the server, I don't have to recompile and know nothing about
your part and all you need to know is my API. 

It's purely a hypothetical example but for the case above I would
provide something like that probably:

ModelLocator.empDataManager.addEmployeeDetail(id:String, name:String);
ModelLocator.empDataManager.editEmployeeDetail(id:String, value:Object);

you would call this from your swf like this:

ModelLocator.empDataManager.addEmployeeDetail("webcam_pic", "Webcam pic");
ModelLocator.empDataManager.editEmployeeDetail("webcam_pic", picData);




What do you think?





--- In flexcoders@yahoogroups.com, "Steve Mathews" <[EMAIL PROTECTED]> wrote:
>
> You can use LoadModule, which might be the best way to go. But I am
> doing a AS3 only project (no flex framework) and am doing this using
> applicationDomain.getDefinition which works great.
> 
> On 9/17/07, Tom Chiverton <[EMAIL PROTECTED]> wrote:
> > On Monday 17 Sep 2007, [EMAIL PROTECTED] wrote:
> > > I tried Google but I couldn't find anything, maybe it's pretty easy
> > > and maybe it's impossible. Anyone has any ideas?
> >
> > LoadModule
> >
> > --
> > Tom Chiverton
> > Helping to continuously bully cross-media mindshares
> > on: http://thefalken.livejournal.com
> >
> > 
> >
> > This email is sent for and on behalf of Halliwells LLP.
> >
> > Halliwells LLP is a limited liability partnership registered in
England and Wales under registered number OC307980 whose registered
office address is at St James's Court Brown Street Manchester M2 2JF.
 A list of members is available for inspection at the registered
office. Any reference to a partner in relation to Halliwells LLP means
a member of Halliwells LLP. Regulated by the Law Society.
> >
> > CONFIDENTIALITY
> >
> > This email is intended only for the use of the addressee named
above and may be confidential or legally privileged.  If you are not
the addressee you must not read it and must not use any information
contained in nor copy it nor inform any person other than Halliwells
LLP or the addressee of its existence or contents.  If you have
received this email in error please delete it and notify Halliwells
LLP IT Department on 0870 365 8008.
> >
> > For more information about Halliwells LLP visit www.halliwells.com.
> >
> >
> >
> > --
> > 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] Loading code from swf (instantiating classes from external swf)

2007-09-17 Thread b_alen
Hi, I'll try to make myself as clear as possible. I got this
interesting idea of loading the code in a swf file. Let's say I have
main application, but then I load a swf with some classes there
compiled, and then from the main swf, I would be able to instantiate
and use classes from the loaded swf. This would really enable real
distributed and encapsulated development. Main application would
provide an API on which external swf could hook onto. That's how you
could allow the functionality to be extended from outside without
touching the original code.

I tried Google but I couldn't find anything, maybe it's pretty easy
and maybe it's impossible. Anyone has any ideas?

Cheers

Alen



[flexcoders] [JOB POSTING] Flex / Flash developers needed in New Delhi, India

2007-05-23 Thread b_alen
We are looking for intermediate to advanced Flex developers or very
advanced Actionscript 2 developers. You should be motivated for work,
coming up with your own ideas and taking initiative. We put a lot of
effort into RND, so we do NOT need "do as you're told" kind of people.

The company is 130+ people, working exclusively for international
clients such as Pearson Education, Bedford, Willey, BBC, Publicis,
etc. So the projects are from publishing, education and advertising
field including gaming and RIA. 

Salary is very generous, above industry standard and depending on
experience. 

Please email me if you're interested and I will give you the corporate
info.

Come on guys, you'll have fun here :)


Thanks,

Alen





[flexcoders] Re: Send XML to PHP

2007-05-15 Thread b_alen
Many thanks buddy, but I solved the problem. It was exactly what you
also said. HTTPService.contentType = "application/xml", and some
errors in PHP as well. Btw, once in PHP I used this small piece of
code and it works great:

$raw_xml  = file_get_contents("php://input");
$xmlData = new SimpleXMLElement($raw_xml);

SimpleXMLElement is a very straightforward way to parse the xml.

Thanks again

Alen



--- In flexcoders@yahoogroups.com, "nathanpdaniel" <[EMAIL PROTECTED]> wrote:
>
> If you want to send raw XML from Flex, try building your XML within 
> Flex (like so)... 
> 
> 
>  {stringVar}
> 
> 
> Then, in your HTTPService object, just keep the first line with one 
> exception:
> 
> 
> When you call myRequest.send() - use this instead: myRequest.send
> (myXML);
> 
> In your PHP you'll need to request like so:
> 
> if (isset($HTTP_RAW_POST_DATA)) {
>  $request_xml = $HTTP_RAW_POST_DATA;
> }
> else {
>  $request_xml = implode("\r\n", file('php://input'));
> }
> 
> 
> That's all I do :D  Your error could in fact be coming from your PHP 
> rather than Flex itself, such as, your PHP page is sending back an 
> HTML error saying it can't decode - if there's nothing to decode, it 
> will cause a problem.  I'm in the midst of the same error myself, if 
> I post invalid XML - or XML not compliant to the schema, it returns 
> an HTML error, throwing a fault in Flex, so it looks like a Flex 
> issue when it's actually a fault with what I'm sending.  Hope it 
> helps! -Nathan
> --- In flexcoders@yahoogroups.com, "b_alen"  wrote:
> >
> > I'm sending the XML object to php in HTTPService.send(xmlObject);
> > 
> > But how do I receive it on the server and then store this as a new 
> xml
> > file on a server? I'm getting errors when I'm trying all of these on
> > the server:
> > 
> > $raw_xml = $_POST["data"];
> > //$raw_xml = $_REQUEST["data"];
> > //$raw_xml = file_get_contents("php://input");
> > 
> > And this is on the client:
> > 
> >   > url="test.php"
> > method="POST" showBusyCursor="true" 
> useProxy="false"
> > result="handleResult(event)"
> > fault="handleFault(event)" >
> > 
> > 
> > {stringVar}
> > 
> > 
> > 
> > 
> > 
> > If I put the something directly in the , I get the result, 
> but
> > if I use the variable like above, I get:
> > 
> > faultCode="Client.CouldNotDecode" 
> > 
> > 
> > Weird, and I can't find anything like that on Google. I'm trying for
> > two days with no progress. 
> > 
> > 
> > Thanks,
> > 
> > Alen
> >
>




[flexcoders] Send XML to PHP

2007-05-14 Thread b_alen
I'm sending the XML object to php in HTTPService.send(xmlObject);

But how do I receive it on the server and then store this as a new xml
file on a server? I'm getting errors when I'm trying all of these on
the server:

$raw_xml = $_POST["data"];
//$raw_xml = $_REQUEST["data"];
//$raw_xml = file_get_contents("php://input");

And this is on the client:

 


{stringVar}





If I put the something directly in the , I get the result, but
if I use the variable like above, I get:

faultCode="Client.CouldNotDecode" 


Weird, and I can't find anything like that on Google. I'm trying for
two days with no progress. 


Thanks,

Alen



[flexcoders] Re: Setting the styles to Text .htmlText at runtime

2007-05-05 Thread b_alen
Thanks a lot Manish. I wasn't even aware of the mx_internal thing. It
 works great for what I need. However, I do have doubts that this is
the most elegant solution.

I don't know how your subclassed idea could work. Because in the
subclass itself you are setting the styleSheet to the Text object, I
don't know how is that different from what I tried to do. Also, if I
subclass the Text, then I have to use it only programatically or can I
use it in mxml, drag it visualy on stage, etc.?  

Cheers
Alen

--- In flexcoders@yahoogroups.com, "Manish Jethani"
<[EMAIL PROTECTED]> wrote:
>
> On 5/5/07, b_alen <[EMAIL PROTECTED]> wrote:
> > I have a string that goes somthing like this:
> >
> > var str:String = "section";
> > var str:String += "main text";
> >
> > and then I populate the Text component like this:
> >
> > txtPage.htmlText = str;
> >
> > Now, I want to add styles to this text through class attributes that I
> > provided in the HTML. In Flash 8 this is pretty straightforward but I
> > couldn't figure out how to do it in Flex.
> 
> In Flex too you can do it in the Flash way, i.e. by setting the
> styleSheet property.
> 
>   import mx.core.mx_internal;
> 
>   myTextObject.mx_internal::styleSheet = myStyleSheetObject;
> 
> Note: The styleSheet property in Label and Text is in the mx_internal
> namespace -- it's not public API. I guess this is due to the
> inconsistency between Flash and Flex styling. If you don't want to use
> mx_internal, you can do it by making a subclass of Text.
> 
>   public MyText extends Text {
> public function setStyleSheet(styleSheet:StyleSheet):void {
>   textField.styleSheet = styleSheet;
> }
> public function getStyleSheet():StyleSheet {
>   return textField.styleSheet;
> }
>   }
>




[flexcoders] Setting the styles to Text .htmlText at runtime

2007-05-05 Thread b_alen
I have a string that goes somthing like this:

var str:String = "section";
var str:String += "main text";

and then I populate the Text component like this:

txtPage.htmlText = str;

Now, I want to add styles to this text through class attributes that I
provided in the HTML. In Flash 8 this is pretty straightforward but I
couldn't figure out how to do it in Flex. 

In Flash I would create a StyleSheet, then add some styles with
setStyle(), and finaly assign a StyleSheet to TextField.

In Flex, I tried something similar but it didn't work. I did this:

var style:StyleSheet = new StyleSheet();
style.setStyle(".H1",{fontWeight:"bold"});
style.setStyle(".TXT",{color:"#FF"});

txtPage.styleName = style;

It didn't work, then I tried:

var newStyleDeclaration:CSSStyleDeclaration = new CSSStyleDeclaration();
newStyleDeclaration.setStyle(".TXT", {color:"#FF"});
newStyleDeclaration.setStyle(".H1", {fontWeight:"bold"});
StyleManager.setStyleDeclaration(".style1", newStyleDeclaration, true);


txtBook.styleDeclaration = newStyleDeclaration; // didn't work
txtBook.styleDeclaration =
StyleManager.getStyleDeclaration(".style1"); // didn't work

Then finally I tried this:

txtPage.setStyle(".H1",{fontWeight:"bold", textAlign:"center"});
txtPage.setStyle(".TXT",{color:"#FF"});

For all the options I tried both the ".H1" and the "H1" style syntax
(with and without the dot). 

I think I'm missing the obvious here. I'm sure it can't be too
complicated.

Thanks.
Alen













[flexcoders] Re: xml to e4x Help Please!!!

2007-05-04 Thread b_alen
The example that you pasted contains errors and there's no XML
provided. Please send a compilable simplified example. Btw, I'm using
E4X by just loading XML with URLLoader and then typing the result as
XML. It's brilliant. 

Alen


--- In flexcoders@yahoogroups.com, "emobilecat" <[EMAIL PROTECTED]> wrote:
>
> Hello everyone, I am trying to select checkboxes in a datagrid where
> needed. In addition, when the user clicks on the name the checkbox on
> the side will be selected depending on the xml tag is set to true or
> false.  I am having trouble because I am not familiar with how to
> handle xml when converted to e4x format in my HTTPService on which I
> call the datagrid's data through an XMLListCollection.  Could someone
> please guide me in the right direction?  Below is what I've coded so
> far, not too difficult.
> 
> Thank You
> Sal
> 
> 
> 
> http://www.adobe.com/2006/mxml";
> layout="vertical" creationComplete="init()">
>   
>   
>   
>   
>   
>  result="(catalog.lastResult.catalog.product)" 
> resultFormat="e4x"/>
>   
>   
>   
>   
>   
>   
>   
>showHeaders="false"
>   dataProvider="{xlc}" textAlign="center">
>   
>   
>   
>   
>   
>label="{data.name}"/>
>   
>   
>   
>   
>   
>   
>   
>   
>selected="{data.brand}" label="On Sale"/>
>   
>   
>   
>   
>   
> 
>   
>   
> 
>




[flexcoders] Re: Multiuser Applications (Games)

2007-04-29 Thread b_alen
Smartfox is a safe bet, great API, straightforward installation and
good support on their forum. I haven't tried others yet but will
certainly try RED5. Please tell me how will you implement Cairngorm in
the multiuser app? I'm also thinking of doing the same, but I'm not
even in the design phase yet. Maybe we can share some ideas and
experiences. 

Try this for starters:
http://www.smartfoxserver.com/

Cheers


--- In flexcoders@yahoogroups.com, "lowdown976" <[EMAIL PROTECTED]> wrote:
>
> I am working on a little No Limit Hold 'em game in Flex. I am going to
> use Cairngorm, because I love the basic structure, and I would like to
> use PHP with AMFPHP 1.9 to handle my services. Both are more familiar
> to me thatn anything else, but I love to learn new things so I am open
> to suggestion.
> 
> Now here is where the tricky bit comes in. I can't for the life of me
> find a method for allowing real-time multiplayer capabilities. Will I
> need to use the LDS? Coldfusion?
> 
> I just need some direction. I've searched in vane. Once I have a
> general area to focus my learning energies, I think I can get this
> thing finished.
> 
> Cheers,
> 
> Joel
>




[flexcoders] Re: Find and replace wih regex?

2007-04-27 Thread b_alen
It's too early for XSLT as there are numerous redundant tags. Just to
get an idea, there are about 400 tags with at least 3 attributes
average, with some of them needed to be combined, smome of them split
into several tags, some of them removed, etc. But I found the
solution. I will do the initial cleaning with regex, casting the whole
XML to String, which so powerfull and fast in AS3 that I couldn't
believe it. And then create the final XML output with XML class, do
some modifications, etc. Really, with regex what seemed to be a huge
problem in the beginning is now a piece of cake. It is still a huge
piece, but of cake.

I'm basically creating my own "XSLT" which converts this XML into
something that can be renderable in Flash/Flex. 

Cheers



--- In flexcoders@yahoogroups.com, "Erik Price" <[EMAIL PROTECTED]> wrote:
>
> On 4/26/07, b_alen <[EMAIL PROTECTED]> wrote:
> > I have a huge XML file with complex DTD. Now I have to parse this into
> > something more usable by stripping the redundant tags and modifying
> > some of them. I see two options:
> >
> > 1. Recursivly visit all the nodes and handle them with "if"
statements.
> > 2. Use RegEx to do some sort of find and replace.
> >
> > The second options seems easier and faster if someone can point me in
> > the right direction. Or maybe some other ideas?
> 
> Just an idea - if your XML is coming from the server, perhaps running
> an XSL transformation on the document would be easier and faster.
> 
> e
>




[flexcoders] Find and replace wih regex?

2007-04-26 Thread b_alen
I have a huge XML file with complex DTD. Now I have to parse this into
something more usable by stripping the redundant tags and modifying
some of them. I see two options:

1. Recursivly visit all the nodes and handle them with "if" statements.
2. Use RegEx to do some sort of find and replace. 

The second options seems easier and faster if someone can point me in
the right direction. Or maybe some other ideas?

Thanks,
Alen



[flexcoders] Re: Will ECMAScript ever support abstract classes?

2007-04-26 Thread b_alen
Stop that wishfull thinking guys, the list is too long ;) I read
somewhere that abstract classes / functions were meant to be in the
release of AS3 but there was no time to do it for this release. They
had to rewrite the whole engine and we gotta give them some credit for
that. I really hope this will make into the next release.

As for overloading, the way they are handling function parameters at
the moment, I don't think we will be seeing that feature ever. Too bad
for that.




--- In flexcoders@yahoogroups.com, Yiðit Boyar <[EMAIL PROTECTED]> wrote:
>
> and function overloading (like in c++) ??
> 
> - Original Message 
> From: ben.clinkinbeard <[EMAIL PROTECTED]>
> To: flexcoders@yahoogroups.com
> Sent: Thursday, April 26, 2007 11:30:31 PM
> Subject: [flexcoders] Will ECMAScript ever support abstract classes?
> 
> 
> 
> 
> 
> 
> 
> 
> 
>   
> 
> 
> 
> I've found myself wishing we had them on multiple
occasions, so I am
> 
> just wondering if anyone in the know can tell me if its been
> 
> proposed/considered /denied.
> 
> 
> 
> Thanks,
> 
> Ben
> 
> 
> 
> 
> 
> 
>   
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> __
> Do You Yahoo!?
> Tired of spam?  Yahoo! Mail has the best spam protection around 
> http://mail.yahoo.com
>