Re: [flexcoders] AS3 class constructors can't be private? Abstract classes?

2006-02-12 Thread Julian Suggate



Try writing static facades for a class with any larger interface than five or so methods and it becomes tedious to say the least. not to mention that every time you add a function to the Manager class you have to manually expose it through ManagerImpl. If there was a codegen tool that could do this for me, I'd not care so much but with languages as they are at the moment, this kind of extensive delegation involves too much grunt work.


Languages should have a wraps keyword to manage this. In the AS2 days you could use __resolve quite nicely to delegate behaviour but lost typesafety :(

I don't think Roger's solution would hold much traction with my team leader who is always looking for the path of least resistance (sorry Roger!). Unfortunately, it looks like AS3 doesn't have one of those when it comes to implementing singletons (or template methods for that matter).


Otherwise, i think AS3 is awesome andcongratulate all the Macrobat dudes for revamping their platform Yet Again! Well done :-) And the performance enhancements combined with Flash's capabilities mean that people will use the language no matter what. Heck, if it still had AS1 syntax, we'd still be using it.


But really, I think abstract classes and modifiable constructors should make it into the AS4 spec. And typesafe delegation/wrappers that also avoid pointless delegation code like in Roger's example!

My $.02.

Cheers,
Jules
On 2/13/06, Michael Hansen [EMAIL PROTECTED] wrote:
Please explain why Roger Gonzalez (last 4 lines) construct is a hack (other than different from the Java way)?
It is interesting to note that private constructors are discouraged in C# 2.0 and replaced by statics. (much like in AS3)cheers-michael 

On 2/12/06, Xavi Beumala  [EMAIL PROTECTED]
 wrote: 
Hi there,I also completely agree with you. If it's a fact of architecture why not let us (programmers) decide what to use (internal vs private) ??
All new features on AS3 and FES are really amazing, but I think two main things are being forgotten as has been said: abstract classes and private methods. It's really tricky and weird to use runtime exceptions to control what can be controlled at compile time. 
And despite patterns are language agnostic and can have different implementations on different languages they must be easy to identify on the code. Using hacks like the ones explained isn't easy to identify them. Implementing a template method using exceptions IMHO also looks really bad...
Just my opinionX. 

On 2/12/06, Carlos Rovira [EMAIL PROTECTED] 
 wrote: 
Thanks to god! I thought was completly alone in this topic! : )
2006/2/12, Jens Halm  [EMAIL PROTECTED]: 

 again from other people's coming to the Flash platform they look at all this stuff as the typical flash hacks from old days. I don't know why are you so reactive to introduce private
 constructors that are very clear and precise to resolve this kind of things and don't need any trick.  Another question is what's about Abstract classes that are again very 





needed. Please rethink this two things so we could get a very flexible languaje and bring more people form other backgrounds to our beloved platform without think that we have a platform full of hacks. 
I have to second all those points.Ok, now we know Adobe had long discussions internally about thisissue, but I still can't see any disadvantages in permittingnon-public constructors which might have led to this decision.
As it seems evident from this and other similar threads theproposed workarounds for singletons are ugly and confusing formost developers.As for abstract classes: Maybe they are not part of ECMA 4 yet?
I tried to google it up, but somehow I am not able to find anup-to-date specification draft. (The newest one I was able to find isfrom 2003). In AS 3 abstract is a reserved keyword but it's not usedyet. But again: If we don't get abstract classes we need non-public
constructors to fake them. In AS 2 I combine private constructors withempty (pseudo-abstract) template methods to accomplish this.AS 3 is a huge step forward, but I still miss some pieces in the corelanguage:
- Private constructors- Abstract classes and methods- Enumerations!- Class.instantiate(args:Array) methodJens
www.oregano-server.org

--Flexcoders Mailing ListFAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
 
SPONSORED LINKS 




Web site design development 

Computer software development 

Software design and development 


Macromedia flex 

Software development best practice 


YAHOO! GROUPS LINKS 

Visit your group flexcoders on the web. 

To unsubscribe from this group, send an email to:
 [EMAIL PROTECTED] 
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service . 



-- ::| Carlos Rovira::| http://www.carlosrovira.com 
--Flexcoders Mailing ListFAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: 

Re: [flexcoders] Stacktraces from Flex 1.5 server FIXED

2006-02-02 Thread Julian Suggate



Turns out there is a gateway-config.xml file in the Flex web root (same place as flex-config.xml). In there is the following property:
logger level=Error
flex.services.logging.FlexGatewayLogger/logger

Switch level to Debug and bob's your uncle.

Jules
On 1/31/06, Julian Suggate [EMAIL PROTECTED] wrote:

Cheers Douglas.

I am starting Tomcat from Eclipse usually, but that should capture all console output ok. We have got log4j set up with console logging, and our server BO+DAO code is 95% tested... but curently the remoting is tested through a dummy API rather than actual server-client-server roundtrips. Sometimeslazy relations in hibernate can cause problems when they're being remoted and because our unit tests only mock up the client-server comms we're not catching some of the errors. We can hone in on the problems eventually but I just spent an hour with the Eclipse debugger, stepping through a remote call in finegrained detail, only to (eventually) figure out that the call that was failing was a completely different asynch request that was being fired by a piece of code written by a team mate. That's why I'm gasping for a stacktrace .. 

Jules

ps Sometimeslazy relations [...] can cause problems when they're being remoted sounds like trying to get rid of the in-laws on Christmas day after a few too many hahaha

On 1/28/06, Douglas Knudsen [EMAIL PROTECTED]
 wrote: 
hibernate, kewl...learning that schtuff nowwe just finished up our first Flex 1.5 app. It uses JRun in the middle. One thing for sure, use JUnit to test out your Java code first before hooking Flex calls to it. Next up, setup logging via log4j and have it dump to the console and make sure you start Tomcat from a console too. I'm still all noob like about J2EE stuff, but this is working for us so far. 
On a side note...anyone here using JRun? Did you use log4j or JRun loggin?DK 

On 1/26/06, Julian Suggate  [EMAIL PROTECTED]
 wrote:


Hi all,

I am using Flex 1.5 with Tomcat and Hibernate. Now, sometimes I don't do so well with Hibernate :-) which to cut a long story short causes exceptions within the Flex server during remoting calls (we are using AMF). I am able to work out the wrinkles in my hibernate mappings (eventually) but it would be a lot faster if Flex would print stacktraces when it catches exceptions rather than just the exception message. An example is this: 

27/01 10:54:41 DEBUG Mxml Base Servlet: keep generated SWFs = true
Error: failed to lazily initialize a collection of role: [...], no session or session was closedError: null

This is all the info I get on the console. Because there are sometimes multiple asynch calls coming into the server it is hard to tell which one caused the error -- a stacktrace would help tremendously .. anyone know how to turn them on? I have turned on all the debug settings in 
flex-config.xml and raised the logging level to debug but still no joy :(

If you can help, thanks very much,
Jules--Flexcoders Mailing ListFAQ: 
http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txtSearch Archives: 
http://www.mail-archive.com/flexcoders%40yahoogroups.com 
SPONSORED LINKS 




Web site design development 

Computer software development 

Software design and development 


Macromedia flex 

Software development best practice 


YAHOO! GROUPS LINKS 

Visit your group flexcoders on the web. 

To unsubscribe from this group, send an email to:
 [EMAIL PROTECTED] 
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service . 



-- Douglas Knudsenhttp://www.cubicleman.comthis is my signature, like it? 
--Flexcoders Mailing ListFAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt 
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
 


YAHOO! GROUPS LINKS 

Visit your group flexcoders on the web. 
To unsubscribe from this group, send an email to:
 [EMAIL PROTECTED] 
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. 










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



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  









Re: [flexcoders] Stacktraces from Flex 1.5 server

2006-01-30 Thread Julian Suggate



Cheers Douglas.

I am starting Tomcat from Eclipse usually, but that should capture all console output ok. We have got log4j set up with console logging, and our server BO+DAO code is 95% tested... but curently the remoting is tested through a dummy API rather than actual server-client-server roundtrips. Sometimeslazy relations in hibernate can cause problems when they're being remoted and because our unit tests only mock up the client-server comms we're not catching some of the errors. We can hone in on the problems eventually but I just spent an hour with the Eclipse debugger, stepping through a remote call in finegrained detail, only to (eventually) figure out that the call that was failing was a completely different asynch request that was being fired by a piece of code written by a team mate. That's why I'm gasping for a stacktrace ..

Jules

ps Sometimeslazy relations [...] can cause problems when they're being remoted sounds like trying to get rid of the in-laws on Christmas day after a few too many hahaha
On 1/28/06, Douglas Knudsen [EMAIL PROTECTED] wrote:
hibernate, kewl...learning that schtuff nowwe just finished up our first Flex 1.5 app. It uses JRun in the middle. One thing for sure, use JUnit to test out your Java code first before hooking Flex calls to it. Next up, setup logging via log4j and have it dump to the console and make sure you start Tomcat from a console too. I'm still all noob like about J2EE stuff, but this is working for us so far. 
On a side note...anyone here using JRun? Did you use log4j or JRun loggin?DK 

On 1/26/06, Julian Suggate 
 [EMAIL PROTECTED] wrote:


Hi all,

I am using Flex 1.5 with Tomcat and Hibernate. Now, sometimes I don't do so well with Hibernate :-) which to cut a long story short causes exceptions within the Flex server during remoting calls (we are using AMF). I am able to work out the wrinkles in my hibernate mappings (eventually) but it would be a lot faster if Flex would print stacktraces when it catches exceptions rather than just the exception message. An example is this: 

27/01 10:54:41 DEBUG Mxml Base Servlet: keep generated SWFs = true
Error: failed to lazily initialize a collection of role: [...], no session or session was closedError: null

This is all the info I get on the console. Because there are sometimes multiple asynch calls coming into the server it is hard to tell which one caused the error -- a stacktrace would help tremendously .. anyone know how to turn them on? I have turned on all the debug settings in 
flex-config.xml and raised the logging level to debug but still no joy :(

If you can help, thanks very much,
Jules--Flexcoders Mailing ListFAQ: 
http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txtSearch Archives: 
http://www.mail-archive.com/flexcoders%40yahoogroups.com 
SPONSORED LINKS 




Web site design development 

Computer software development 

Software design and development 


Macromedia flex 

Software development best practice 


YAHOO! GROUPS LINKS 

Visit your group flexcoders on the web. 

To unsubscribe from this group, send an email to:
 [EMAIL PROTECTED] 
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service . 



-- Douglas Knudsenhttp://www.cubicleman.comthis is my signature, like it? 
--Flexcoders Mailing ListFAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
 


YAHOO! GROUPS LINKS 

Visit your group flexcoders on the web. 
To unsubscribe from this group, send an email to:
[EMAIL PROTECTED] 
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. 










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



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  









[flexcoders] Stacktraces from Flex 1.5 server

2006-01-26 Thread Julian Suggate



Hi all,

I am using Flex 1.5 with Tomcat and Hibernate. Now, sometimes I don't do so well with Hibernate :-) which to cut a long story short causes exceptions within the Flex server during remoting calls (we are using AMF). I am able to work out the wrinkles in my hibernate mappings (eventually) but it would be a lot faster if Flex would print stacktraces when it catches exceptions rather than just the exception message. An example is this:

27/01 10:54:41 DEBUG Mxml Base Servlet: keep generated SWFs = true
Error: failed to lazily initialize a collection of role: [...], no session or session was closedError: null

This is all the info I get on the console. Because there are sometimes multiple asynch calls coming into the server it is hard to tell which one caused the error -- a stacktrace would help tremendously .. anyone know how to turn them on? I have turned on all the debug settings in 
flex-config.xml and raised the logging level to debug but still no joy :(

If you can help, thanks very much,
Jules






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








  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  









Re: [flexcoders] Flex2: component and generated source code?

2005-11-03 Thread Julian Suggate



Great thanks a lot Spike.

Still looking for the framework component source ... any one?

Thanks,
Ules
On 11/3/05, Spike [EMAIL PROTECTED] wrote:
There are options in the project settings to allow you to add compiler arguments, but in the public alpha it doesn't work correctly.
The only way I know of to get it to generate the .as files is to use the command line compiler - mxmlc.exeThat lives in the Flex Framework 2 Alpha\bin directory which I think is automatically added under the Flex Builder install if you use the standalone install.
Once you've found it, you can compile a file using the following from the command line:mxmlc -keep {path_to_file}Spike

On 11/3/05, Julian Suggate 
[EMAIL PROTECTED] wrote:


Hi all,

Anyone know where/if we can get our hands on the component source for the Flex2 Alpha?

Also, there's a directory underneath my FB2 project tree called generated but it always seems empty! Is therea way to inspect the generated as3 code in Flex2 projects? Just for interests sake more than anything else... 


Jules--Flexcoders Mailing ListFAQ: 
http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txtSearch Archives: 
http://www.mail-archive.com/flexcoders%40yahoogroups.com 
SPONSORED LINKS 




Web site design development 

Computer software development 

Software design and development 


Macromedia flex 


YAHOO! GROUPS LINKS 

Visit your group flexcoders on the web. 
To unsubscribe from this group, send an email to:
 [EMAIL PROTECTED] 
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. 



-- Stephen MilliganDo you do the Badger?
http://www.yellowbadger.comDo you cfeclipse? http://www.cfeclipse.org--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 

Visit your group flexcoders on the web. 
To unsubscribe from this group, send an email to:
[EMAIL PROTECTED] 
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. 










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



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  









Re: [flexcoders] To code-behind or not to code-behind?

2005-11-03 Thread Julian Suggate



This is an interesting approach. Let me see if I get this right:

1) create components that handle generic behaviour (eg a nav bar that remembers the currently selected link)
2) hide each component behind an interface
3) create mxml that lays out these components, adding visual assets etc as necessary
4) create helper objects that sit between the mxml and the components? So that the mxml interacts with the helper objects, the helper objects with the components and neither the components nor the mxml know anything about each other. Is that what you mean?


I had never thought about adding the helper objects level of indirection. I have so far tried to make my components define abstract behaviour and then use mxml for creating instances of them and assigning visual skins/styles. This is one reason why I've wanted to use code-behind: so that two different applications can define different graphics but both import the same actionscript. Perhaps I'm going about this the wrong way.


JesterXL, in your daily work is it or has it beena requirement for your components to be re-skinnable? If so, are you able to share how you accomplish this? I completely understand if you can't reveal such details!


Thanks everyone for their responses so far.

Jules
On 11/3/05, Roger Gonzalez [EMAIL PROTECTED] wrote:
?xml version=1.0 encoding=utf-8?mx:Application xmlns:mx=
http://www.macromedia.com/2005/mxmlxmlns=*VisToggle id=vis thing={words} /mx:Label id=words text=Hello, world! /mx:Button id=toggle label=toggle it click=
vis.toggle() //mx:Application// VisToggle.as: helper object for twiddling visibility of displayobjectspackage{import flash.display.DisplayObject;public class VisToggle
{ public function toggle() { thing.visible = !thing.visible; } public var thing:DisplayObject;}}Pretty lame example, but you get the idea.I like to make classes (perhaps even a custom base for the application)
that implement interfaces, and then have helper objects that know how tooperate on those interfaces, and don't know anything about theapplication itself.I have a pet theory that if you use mx.core.Application.application
anywhere, you are building a messy nightmare that will be difficult tomaintain.YMMV.-rg -Original Message- From: flexcoders@yahoogroups.com
 [mailto:flexcoders@yahoogroups.com] On Behalf Of JesterXL Sent: Wednesday, November 02, 2005 8:27 PM To: 
flexcoders@yahoogroups.com Subject: Re: [flexcoders] To code-behind or not to code-behind? What's a helper object? - Original Message - From: Roger Gonzalez 
[EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Wednesday, November 02, 2005 11:22 PM
 Subject: RE: [flexcoders] To code-behind or not to code-behind? You might want to search the archives, we had a long chat about this recently. The conclusion that I personally push is to avoid relying on script
 source inclusion but rather to either a) create custom base classes and derive your MXML components from them, and/or b) aggregate helper objects, and/or c) factor the MXML into metacomponents with well defined interfaces.
 I find that inline OR external script snippets get messy and out of control, and you're generally better off following standard OO programming. Another way of looking at it is that if your MXML is looking more like
 AS code than like MXML, you're probably better off refactoring things. When any given MXML class is down to 10-15 lines of script, things look pretty clean, and it seems better to just put it inline.
 (personal opinions here, we argue this one internally quite a bit!) -rg  -Original Message-  From: flexcoders@yahoogroups.com
  [mailto:flexcoders@yahoogroups.com] On Behalf Of Julian Suggate  Sent: Wednesday, November 02, 2005 7:31 PM  To: 
flexcoders@yahoogroups.com  Subject: [flexcoders] To code-behind or not to code-behind?   Gidday everyone,   Years back, I wrote php scripts with code embedded in the
  html and it led to maintenance hassles. Since then, I've  migrated to Java and now .NET and what I liked about their  models was the ability to separate the code into  code-behind, something done quite elegantly in 
ASP.NET.  These eliminated a lot of the maintenance problems I'd  encountered earlier with PHP.   So when I saw macromedia's examples of mxml with
  mx:Script.../mx:Script blocks embedded directly into the  mxml, I immediately searched for a way to avoid this. I found  that i could add a source=.. attribute to the mx:Script
  element and the AS code would be included by the compiler  from an external file at compile time. The IDE was even smart  enough that any elements I'd defined with id attributes in
  the mxml showed up with intellisense in the included AS file  (I am using Flex Builder 2, not sure if FB1.5 had that  feature or not).   But now I'm having second thoughts. It kinda feels like going
  against the grain. I don't want to carry old biases into a  new paradigm unnecessarily. I read an article by Aral Balkan  (of ARP fame) endorsing the code

Re: [flexcoders] To code-behind or not to code-behind?

2005-11-03 Thread Julian Suggate



Hah ignoring the inflamatory statements :-) 

The version numbering is a very good reason to keep them separate. One thing you might be happy about for Flex2 is that it gives intellisense/code hints within the same file (as you'd hope!) but also across included script files. So that's a bonus.


I've run into problems naming the .as files the same as the mxml in FB2. Not sure if it's just my install, but the compiler almost seems to crash (internal error). This might get fixed for future releases I guess.


Jules
On 11/4/05, Clint Modien [EMAIL PROTECTED] wrote:

I was also raised .NET / Java and keep my code files the same name as the component and put them in a mx:Script source=ComponentName.as / 

It's probably personal perference but Flex Builder and the Eclipse plugin for mxml can't help at all with *.as formatting or any sort of tag completion if you keep your script in the mxml file. That... plus I love being able tosee the versions of the mxml files apart from the script in source control... shows me where we messed up in designing the UI higher version number in an mxml file means bad design up front. 

And now for the inflamatory material IT'S JUST CLEANER... WHY WOULDN'T YOU KEEP YOUR CODE FILE SEPARATE???!?!?!?!?? *snickers*



On 11/2/05, Julian Suggate 
[EMAIL PROTECTED] wrote: 


Gidday everyone,

Years back, I wrote php scripts with code embedded in the html and it led to maintenance hassles. Since then, I've migrated to Java and now .NET and what I liked about their models was the ability to separate the code into code-behind, something done quite elegantly in 
ASP.NET. These eliminated a lot of the maintenance problems I'd encountered earlier with PHP.

So when I saw macromedia's examples of mxml with mx:Script.../mx:Script blocks embedded directly into the mxml,I immediately searched for a way to avoid this. I found that i could add a source=.. attribute to the mx:Script element and the AS code would be included by the compiler from an external file at compile time. The IDE was even smart enough that any elements I'd defined with id attributes in the mxml showed up with intellisense in the included AS file (I am using Flex Builder 2, not sure if 
FB1.5 had that feature or not).

But now I'm having second thoughts. It kinda feels like going against thegrain. I don't want to carry old biases into a new paradigm unnecessarily. I read an article by Aral Balkan (of ARP fame) endorsing the code-behind approach quite strongly, but by the same token, all sample apps from the Cairngorm team freely mix mxml and AS code, as do examples from macromedia themselves. 


I note though, that the Cairngorm framework itself is all pure AS; it is only the sample apps that use inline actionscript. 

I can't seem to find a best practice anywhere, because for every framework/example/article I find that seems to hint at one way of doing things, I find another one that suggests the opposite! Has anyone else with more Flex experience than me answered this question, particularly in terms of which approach is easier to maintain? 


At this stage, any hintswould be appreciated!

TIA,
Jules--Flexcoders Mailing ListFAQ: 
http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: 
http://www.mail-archive.com/flexcoders%40yahoogroups.com 


YAHOO! GROUPS LINKS 

Visit your group flexcoders on the web.

To unsubscribe from this group, send an email to:
 [EMAIL PROTECTED]
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



--Flexcoders Mailing ListFAQ: 
http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txtSearch Archives: 
http://www.mail-archive.com/flexcoders%40yahoogroups.com 


YAHOO! GROUPS LINKS 

Visit your group flexcoders on the web.

To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.










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



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  









Re: [flexcoders] To code-behind or not to code-behind?

2005-11-03 Thread Julian Suggate



Robert,

I completely agree with everything you just said! If we can't see a clear winner, we'll just pick one way, any way as long as it works and refactor later if we have to. But since our team's at an early stage of Flex dev it seems like a good idea to pick up as many tips as we can before we get started :-)


BTW I think Flash could be in trouble without 3D too.

Jules
On 11/3/05, Robert Thompson [EMAIL PROTECTED] wrote:
So what's the best practices for this process ofseperating the MXML and AS?I'm just getting up to speed with Cairngorm so I
figure it would be good to get into the right habitsnow.I would like to note, however, that one can go into aresursive perceived optimization extrme with justabout any model, until the effort at not ever
repeating anything actually becomes a burden initself...so I don't believe there is apurest/extremist view that should be applied to anymodel.There's a threshold of waiting in the wings while
designing where it just becomes the right time toseperate into an abstractino; granted, I realizecode-behind isn't necessarily exactly like an actualpure design (but then again after 3 years of ASP.Net I
realize how overkill it can be and I'm finding muchmore comfort in Java designs; webservices).I've didan IBuySpy store and found after considering it'simplementation after 2 years to be just outrightun-elegant.C#.Net and 
VB.Net is more elegant as faras what .Net can really do...and Web Services isreally the best target for that and I find MXMLconsumes them quite well thank you.The way I see it, the majority of the future is Web
Services WDSL and Flex Presentation Tier (long termeven as long as there is a 3D modelling project forthe future of Flash).-r--- Matt Horn [EMAIL PROTECTED]
 wrote: Guilty. The examples in the Flex documentation usually mix AS and MXML... but we do this mostly for readability. Plus, we want people to be able to just copy a sample out of the doc and
 paste it into a file and run it -- without worrying about file structures, relative vs absolute paths, etc. This doesn't mean we shouldn't try to improve on the samples somehow...
 matt horn flex docs  From: flexcoders@yahoogroups.com [mailto:
flexcoders@yahoogroups.com] On Behalf Of Julian Suggate Sent: Wednesday, November 02, 2005 10:31 PM To: 
flexcoders@yahoogroups.com Subject: [flexcoders] To code-behind or not to code-behind? Gidday everyone, Years back, I wrote php scripts with code embedded
 in the html and it led to maintenance hassles. Since then, I've migrated to Java and now .NET and what I liked about their models was the ability to separate the code into code-behind, something done quite
 elegantly in ASP.NET. These eliminated a lot of the maintenance problems I'd encountered earlier with PHP. So when I saw macromedia's examples of mxml with
 mx:Script.../mx:Script blocks embedded directly into the mxml, I immediately searched for a way to avoid this. I found that i could add a source=.. attribute to the mx:Script element and
 the AS code would be included by the compiler from an external file at compile time. The IDE was even smart enough that any elements I'd defined with id attributes in the mxml showed up with intellisense in the
 included AS file (I am using Flex Builder 2, not sure if FB1.5 had that feature or not). But now I'm having second thoughts. It kinda feels like going against the grain. I don't want to carry old biases
 into a new paradigm unnecessarily. I read an article by Aral Balkan (of ARP fame) endorsing the code-behind approach quite strongly, but by the same token, all sample apps from the Cairngorm team freely mix mxml
 and AS code, as do examples from macromedia themselves. I note though, that the Cairngorm framework itself is all pure AS; it is only the sample apps that use inline
 actionscript. I can't seem to find a best practice anywhere, because for every framework/example/article I find that seems to hint at one way of doing things, I find another one that suggests the
 opposite! Has anyone else with more Flex experience than me answered this question, particularly in terms of which approach is easier to maintain? At this stage, any hints would be appreciated!
 TIA, Jules -- 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 *Visit your group flexcoders 
http://groups.yahoo.com/group/flexcoders  on the web. *To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]mailto:[EMAIL PROTECTED]?subject=Unsubscribe *Your use of Yahoo! Groups is subject to the
 Yahoo! Terms of Service http://docs.yahoo.com/info/terms/ . 
__Yahoo! FareChase: Search multiple travel sites in one click.http://farechase.yahoo.com Yahoo! Groups Sponsor ~--
Get Bzzzy! (real

Re: [flexcoders] To code-behind or not to code-behind?

2005-11-03 Thread Julian Suggate
 AS is probably a reasonable approach, however the rule expressed above certainly creates a more easily managed configuration within a production environment.


Hope this helps.

Regards,


Damon


-Original Message-From: 
flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Julian Suggate
Sent: Wednesday, November 02, 2005 7:31 PMTo: flexcoders@yahoogroups.comSubject:
 [flexcoders] To code-behind or not to code-behind?
Gidday everyone,

Years back, I wrote php scripts with code embedded in the html and it led to maintenance hassles. Since then, I've migrated to Java and now .NET and what I liked about their models was the ability to separate the code into code-behind, something done quite elegantly in 
ASP.NET. These eliminated a lot of the maintenance problems I'd encountered earlier with PHP.

So when I saw macromedia's examples of mxml with mx:Script.../mx:Script blocks embedded directly into the mxml,I immediately searched for a way to avoid this. I found that i could add a source=.. attribute to the mx:Script element and the AS code would be included by the compiler from an external file at compile time. The IDE was even smart enough that any elements I'd defined with id attributes in the mxml showed up with intellisense in the included AS file (I am using Flex Builder 2, not sure if 
FB1.5 had that feature or not).

But now I'm having second thoughts. It kinda feels like going against thegrain. I don't want to carry old biases into a new paradigm unnecessarily. I read an article by Aral Balkan (of ARP fame) endorsing the code-behind approach quite strongly, but by the same token, all sample apps from the Cairngorm team freely mix mxml and AS code, as do examples from macromedia themselves. 


I note though, that the Cairngorm framework itself is all pure AS; it is only the sample apps that use inline actionscript. 

I can't seem to find a best practice anywhere, because for every framework/example/article I find that seems to hint at one way of doing things, I find another one that suggests the opposite! Has anyone else with more Flex experience than me answered this question, particularly in terms of which approach is easier to maintain? 


At this stage, any hintswould be appreciated!

TIA,
Jules
--Flexcoders Mailing ListFAQ: 
http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txtSearch Archives: 
http://www.mail-archive.com/flexcoders%40yahoogroups.com 
SPONSORED LINKS 




Web site design development 

Computer software development 

Software design and development 


Macromedia flex 


YAHOO! GROUPS LINKS 

Visit your group flexcoders on the web. 
To unsubscribe from this group, send an email to:
[EMAIL PROTECTED] 
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. 










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



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  









Re: helper object? what's that? (was Re: [flexcoders] To code-behind or not to code-behind?)

2005-11-03 Thread Julian Suggate



ps no offense about comparing you to my ex-girlfriend's mother lol ;-) i'm sure you're not a crazy feminist lesbian
On 11/4/05, Julian Suggate [EMAIL PROTECTED] wrote:

Damn that wasgood! Perhaps we should start calling you Speedy Gonzalez :-) You sound like my ex-girlfriend's mother. She was totally sick on a bike. Used to get off the back of her wheels with legs like spaghetti and a head full of thunderous ear-splitting panic. Took me right back. Mate that used to wake me up in the mornings that's for sure. 


Cheers,
Jules

On 11/4/05, Roger Gonzalez [EMAIL PROTECTED]
 wrote: 
 OK, we're analysing this to a level it was never meant to be analysed at.This often seems to happen, though.I find design patterns to be 
incredibly useful for attaching names to common code constructs (bothfor describing how something was implemented or how it could/should beimplemented) but I find them unhelpful whenever they're wedged into a
context where the potential user of the pattern hasn't previously workedon the problem and personally experienced the pain of coding themselvesinto a corner.They get locked up in a terror that they aren'tfollowing the pattern to the letter, and freak out when the pattern 
isn't a 100% match for what they're trying to do.I once saw some codethat had a class factory that produced class factories, for no reasonother than they didn't dare put two factory methods on the same object, 
because the pattern didn't say that was ok.To bring it back to an area near and dear to my heart, its likeexplaining lanesplitting techniques to a motorcyclist who lives in arural area with no traffic.Sure, there are lots of best practices and 
potential gotchas and what-to-do-when, but they're only interesting froma theoretical perspective if you're never in that situation.However,they'll make a lot more sense -after- a cell-phone-babbling soccer mom 
in a Maibatsu Monstrosity suddenly realizes she needs to exit soon andcuts you off, forcing you to threshold brake, release, swerve a fulllanes-width in front of a bus to the next gap between lanes, and then
accelerate so hard you pull a small wheelie off a rain-slicked Bott'sDot while still leaned over, three cylinders of bottled impatiencehowling as you feed 120hp to the ground via a sticky rubber contactpatch the size of a deck of cards[1](Ah, Lanesplitting Pattern #4, on- 
and off-ramps are like tributaries in the traffic stream, they causeturbulence...)-rg[1] Part of my employment agreement is that I must checkpoint my codeinto source control a bit more frequently than my sane coworkers. 
 Yahoo! Groups Sponsor ~--Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life.
http://us.click.yahoo.com/A77XvD/vlQLAA/TtwFAA/nhFolB/TM~---Flexcoders Mailing ListFAQ: 
http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txtSearch Archives: 
http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links * To visit your group on the web, go to: 
http://groups.yahoo.com/group/flexcoders/* To unsubscribe from this group, send an email to:  
[EMAIL PROTECTED]* Your use of Yahoo! Groups is subject to: 
http://docs.yahoo.com/info/terms/ 






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



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  









Re: helper object? what's that? (was Re: [flexcoders] To code-behind or not to code-behind?)

2005-11-03 Thread Julian Suggate



Damn that wasgood! Perhaps we should start calling you Speedy Gonzalez :-) You sound like my ex-girlfriend's mother. She was totally sick on a bike. Used to get off the back of her wheels with legs like spaghetti and a head full of thunderous ear-splitting panic. Took me right back. Mate that used to wake me up in the mornings that's for sure.


Cheers,
Jules
On 11/4/05, Roger Gonzalez [EMAIL PROTECTED] wrote:
 OK, we're analysing this to a level it was never meant to be analysed at.This often seems to happen, though.I find design patterns to be
incredibly useful for attaching names to common code constructs (bothfor describing how something was implemented or how it could/should beimplemented) but I find them unhelpful whenever they're wedged into a
context where the potential user of the pattern hasn't previously workedon the problem and personally experienced the pain of coding themselvesinto a corner.They get locked up in a terror that they aren'tfollowing the pattern to the letter, and freak out when the pattern
isn't a 100% match for what they're trying to do.I once saw some codethat had a class factory that produced class factories, for no reasonother than they didn't dare put two factory methods on the same object,
because the pattern didn't say that was ok.To bring it back to an area near and dear to my heart, its likeexplaining lanesplitting techniques to a motorcyclist who lives in arural area with no traffic.Sure, there are lots of best practices and
potential gotchas and what-to-do-when, but they're only interesting froma theoretical perspective if you're never in that situation.However,they'll make a lot more sense -after- a cell-phone-babbling soccer mom
in a Maibatsu Monstrosity suddenly realizes she needs to exit soon andcuts you off, forcing you to threshold brake, release, swerve a fulllanes-width in front of a bus to the next gap between lanes, and then
accelerate so hard you pull a small wheelie off a rain-slicked Bott'sDot while still leaned over, three cylinders of bottled impatiencehowling as you feed 120hp to the ground via a sticky rubber contactpatch the size of a deck of cards[1](Ah, Lanesplitting Pattern #4, on-
and off-ramps are like tributaries in the traffic stream, they causeturbulence...)-rg[1] Part of my employment agreement is that I must checkpoint my codeinto source control a bit more frequently than my sane coworkers.
 Yahoo! Groups Sponsor ~--Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life.
http://us.click.yahoo.com/A77XvD/vlQLAA/TtwFAA/nhFolB/TM~---Flexcoders Mailing ListFAQ: 
http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txtSearch Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links
* To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/* To unsubscribe from this group, send an email to:
 [EMAIL PROTECTED]* Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/







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



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  









Re: [flexcoders] Flex2: component and generated source code?

2005-11-03 Thread Julian Suggate



That's great news Matt thanks.

Jules
On 11/4/05, Matt Chotin [EMAIL PROTECTED] wrote:


We haven't shipped the source yet but are hoping to in a later build.





From: 
flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] 
On Behalf Of Julian SuggateSent: Thursday, November 03, 2005 12:15 PMTo: 
flexcoders@yahoogroups.comSubject: Re: [flexcoders] Flex2: component and generated source code?



Great thanks a lot Spike.



Still looking for the framework component source ... any one?



Thanks,

Ules

On 11/3/05, Spike 
[EMAIL PROTECTED] wrote: 
There are options in the project settings to allow you to add compiler arguments, but in the public alpha it doesn't work correctly. 
The only way I know of to get it to generate the .as files is to use the command line compiler - mxmlc.exeThat lives in the Flex Framework 2 Alpha\bin directory which I think is automatically added under the Flex Builder install if you use the standalone install. 
Once you've found it, you can compile a file using the following from the command line:mxmlc -keep {path_to_file}Spike


On 11/3/05, Julian Suggate 
 [EMAIL PROTECTED] wrote:




Hi all,



Anyone know where/if we can get our hands on the component source for the Flex2 Alpha?



Also, there's a directory underneath my FB2 project tree called generated but it always seems empty! Is therea way to inspect the generated as3 code in Flex2 projects? Just for interests sake more than anything else... 




Jules

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

SPONSORED LINKS
 





Web site design development 


Computer software development 


Software design and development 



Macromedia flex 








YAHOO! GROUPS LINKS
 


Visit your group flexcoders
 on the web. 
To unsubscribe from this group, send an email to:
 [EMAIL PROTECTED] 
Your use of Yahoo! Groups is subject to the 
Yahoo! Terms of Service. 




-- Stephen MilliganDo you do the Badger?
http://www.yellowbadger.comDo you cfeclipse? 
http://www.cfeclipse.org--
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
 


Visit your group flexcoders
 on the web. 
To unsubscribe from this group, send an email to:
 [EMAIL PROTECTED] 
Your use of Yahoo! Groups is subject to the 
Yahoo! Terms of Service. 





--Flexcoders Mailing ListFAQ: 
http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txtSearch Archives: 
http://www.mail-archive.com/flexcoders%40yahoogroups.com 


YAHOO! GROUPS LINKS 

Visit your group flexcoders on the web. 
To unsubscribe from this group, send an email to:
[EMAIL PROTECTED] 
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. 











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



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  









Re: [flexcoders] To code-behind or not to code-behind?

2005-11-03 Thread Julian Suggate




Gah! This is nail-biting stuff. I thought I was going to make this easy switch from the Flash IDE to mxml but the feeling has been growing on me for the past few days, and what you say just confirms it, that rather than being only a tool for laying out visual assets,mxml is actually an entirely new programming construct that I can lean on.


My eval of Flex2 is kinda premature because we can't start porting from Flash to Flex until the beta comes out at least, so within a week or two I'll have to move back onto Flash for a few months, but I can see that I'm going to be spending a lot of early mornings coming to grips with this new powerful environment :-)


baffled at smiling about early mornings/

Jules
On 11/4/05, Roger Gonzalez [EMAIL PROTECTED] wrote:
Yeah, that's mostly what I mean.I think the important bit is to keeppeers from knowing about each other.
For example, imagine an app something like this:ApplicationScoreboard id=s /Player id=p1 scoreboard={s} /Player id=p2 scoreboard={s} /
Game id=g players={[p1, p2]} scoreboard={s} //ApplicationIt might be easy to add a third player, because its parameterized.Ormaybe you have an IPlayer interface, and you write a different
implementation that talks to a multiplayer server.Think about how muchmore of a pain it would be if deep inside Game something was callingmx.core.Applicaiton.application.p1.getName() or something.Its possible to do a lot of handing out references in a totally
declarative manner like this, but sometimes you might need to have acreationComplete or initialize handler to call methods to pass aroundhandles (i.e. g.addPlayer( p1 ) or something).-rg






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



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  









Re: [flexcoders] To code-behind or not to code-behind?

2005-11-03 Thread Julian Suggate



Thanks for this JesterXL (I continually write your handle as JesterXML heh). We will definitely be extending the base classes ourselves also so that gives us styles for free. I'm wondering how to create custom List-based controls that don't look like Lists (mostly for the dataProvider functionality) but without the source code I'm kinda fumbling in the dark here.


All good Ithink I've started rambling better start coding :-) Thanks for your advice everyone, this has been a great thread.

CHeers,
Jules
On 11/4/05, JesterXL [EMAIL PROTECTED] wrote:

Unfortunately, no. A lot of what I'm doing is being utilized on internal apps to generate data; creating forms for people to input specific  releavant data associated with existing data.


Therefore, design is of the least bit importance. Granted, even by doing nothing but using the haloTheme, and extending the base Flex classes, my app still looks better than an HTML equivalent; at least done in the same time frame with the same amount of man hours, so that's cool I guess.


The component sets I used to create, however, were for designers, so I just made it dead simple for them since that was my audience, not developers, and gave every graphical symbol there for the editing. This made it very easy to break if the changed the thumb ofa slider to something really big and a sliderbar to something really small; so I just made my measurement code flexible.


On the flipside, making things code friendly in Flex/ActionScript isn't too bad either; just copy what mx.controls.Button does; place skin variables as public up top, and make everything an asset instead of runtime drawing. Case in point ActionStep, the open source Flash component framework based on the OpenStep framework is drawin entirely in ActionScript. While this is great from a pure coding standpoint, it doesn't really help those traditional designers who have assets already, or designs created that couldn't be created with a drawing API alone. Again, my target audience is production artists that have insane designs given to them from Photoshop/AfterEffects/Illustrator, and are expected to implement them into Flex. So, if everything's an asset, just make a new asset.


...again, since I'm extending the base classes, I still get all the base CSS styles for free.

All of this is moot since Flash Player 8.5 makes things insanely easier and WAYYY more dynamic.

- Original Message - 
From: Julian Suggate
 

To: flexcoders@yahoogroups.com 
Sent: Thursday, November 03, 2005 4:40 PM
Subject: Re: [flexcoders] To code-behind or not to code-behind?


This is an interesting approach. Let me see if I get this right:

1) create components that handle generic behaviour (eg a nav bar that remembers the currently selected link)
2) hide each component behind an interface
3) create mxml that lays out these components, adding visual assets etc as necessary
4) create helper objects that sit between the mxml and the components? So that the mxml interacts with the helper objects, the helper objects with the components and neither the components nor the mxml know anything about each other. Is that what you mean? 


I had never thought about adding the helper objects level of indirection. I have so far tried to make my components define abstract behaviour and then use mxml for creating instances of them and assigning visual skins/styles. This is one reason why I've wanted to use code-behind: so that two different applications can define different graphics but both import the same actionscript. Perhaps I'm going about this the wrong way. 


JesterXL, in your daily work is it or has it beena requirement for your components to be re-skinnable? If so, are you able to share how you accomplish this? I completely understand if you can't reveal such details! 


Thanks everyone for their responses so far.

Jules
On 11/3/05, Roger Gonzalez [EMAIL PROTECTED]
 wrote: 
?xml version=1.0 encoding=utf-8?mx:Application xmlns:mx=
 http://www.macromedia.com/2005/mxmlxmlns=*VisToggle id=vis thing={words} /mx:Label id=words text=Hello, world! /mx:Button id=toggle label=toggle it click= 
vis.toggle() //mx:Application// VisToggle.as: helper object for twiddling visibility of displayobjectspackage{import flash.display.DisplayObject;public class VisToggle
{ public function toggle() { thing.visible = !thing.visible; } public var thing:DisplayObject;}}Pretty lame example, but you get the idea.I like to make classes (perhaps even a custom base for the application) 
that implement interfaces, and then have helper objects that know how tooperate on those interfaces, and don't know anything about theapplication itself.I have a pet theory that if you use mx.core.Application.application
 anywhere, you are building a messy nightmare that will be difficult tomaintain.YMMV.-rg -Original Message- From: 
flexcoders@yahoogroups.com  [mailto:flexcoders@yahoogroups.com] On Behalf Of JesterXL Sent: Wednesday, November 02, 2005 8:27 PM

Re: [flexcoders] To code-behind or not to code-behind?

2005-11-03 Thread Julian Suggate



Thanks for your time everyone.

Because we have barely scratched the surface with Flex, I am asking stupid questions probably ... apologies if it's coming across as obtuse. 

I think I wasgetting confused because mxml is the class. Call me slow on the uptake! I only just clicked that separating the code from the mxml makes no difference semantically-- seems more of an ideological debate than anything else. I'm not a big fan of those!I can see why Steven's initial response was kind of blase. I think we'll go with the grain on this one and just stuff AS into our mxml. If it bites us later we'll just refactor.


On 11/4/05, Steven Webster [EMAIL PROTECTED] wrote:

The existence of ActionScript code in the MXML file or not, has never impacted on the strategy for skinning.

Good to hear.


For the psycho-analytically inclined, you can see the process of paradigm-shifting going on in glorious technicolour as I continue to ask silly questions and then back down ;-)

But you're probably accustomed to that on this list.

Jules






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








  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Software design and development
  
  
Macromedia flex
  
  


Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  









[flexcoders] To code-behind or not to code-behind?

2005-11-02 Thread Julian Suggate



Gidday everyone,

Years back, I wrote php scripts with code embedded in the html and it led to maintenance hassles. Since then, I've migrated to Java and now .NET and what I liked about their models was the ability to separate the code into code-behind, something done quite elegantly in 
ASP.NET. These eliminated a lot of the maintenance problems I'd encountered earlier with PHP.

So when I saw macromedia's examples of mxml with mx:Script.../mx:Script blocks embedded directly into the mxml,I immediately searched for a way to avoid this. I found that i could add a source=.. attribute to the mx:Script element and the AS code would be included by the compiler from an external file at compile time. The IDE was even smart enough that any elements I'd defined with id attributes in the mxml showed up with intellisense in the included AS file (I am using Flex Builder 2, not sure if 
FB1.5 had that feature or not).

But now I'm having second thoughts. It kinda feels like going against thegrain. I don't want to carry old biases into a new paradigm unnecessarily. I read an article by Aral Balkan (of ARP fame) endorsing the code-behind approach quite strongly, but by the same token, all sample apps from the Cairngorm team freely mix mxml and AS code, as do examples from macromedia themselves.


I note though, that the Cairngorm framework itself is all pure AS; it is only the sample apps that use inline actionscript. 

I can't seem to find a best practice anywhere, because for every framework/example/article I find that seems to hint at one way of doing things, I find another one that suggests the opposite! Has anyone else with more Flex experience than me answered this question, particularly in terms of which approach is easier to maintain? 


At this stage, any hintswould be appreciated!

TIA,
Jules






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



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  









[flexcoders] Flex2: component and generated source code?

2005-11-02 Thread Julian Suggate



Hi all,

Anyone know where/if we can get our hands on the component source for the Flex2 Alpha?

Also, there's a directory underneath my FB2 project tree called generated but it always seems empty! Is therea way to inspect the generated as3 code in Flex2 projects? Just for interests sake more than anything else...


Jules






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








  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  









Re: [flexcoders] Big problem with OCX, Flash 8 release version

2005-10-30 Thread Julian Suggate



Sorry JesterXL, I've got no idea! Just storing it up as a last resort
to investigate if necessary. Thankfully, I'm not working on production
code right now so don't need the debugger (doing the Flex 2 Alpha eval
instead).

JulesOn 10/28/05, JesterXL [EMAIL PROTECTED] wrote:
Julian, and you could please tell me what registry entries to screw withthat would be great!I really really want to install the Flash Player 8
debug player but obviously can't.I can install 8, but need the debugplayer to get Flex to debug so have been using Flash Plugin Switcher to goto 7's debug since IE randomly upgrades itself to 8.:: crosses fingers ::
- Original Message -From: João Fernandes [EMAIL PROTECTED]To: flexcoders@yahoogroups.com
Sent: Thursday, October 27, 2005 7:29 PMSubject: RE: [flexcoders] Big problem with OCX, Flash 8 release versionMatt,I have an issue also related to flash8 activeX control and the Flash Player
team are looking at it. They also told me to follow those steps and nothingworked.We deploy MSI with M$ SMS system because users don't have previlege toinstall the player.They all had FP7 deployed with SMS with no problem.
When SMS deploys FP8, it uninstalls FP7. After that, no common popup opensever again (even plain html with no flash content).If we rollback to FP7,starts working.They guy had to breeze-it to prouve that none of us was dreaming.
I don't know if it's the activeX or IE himself that is messing up but wecan't use other browser since it's the company choice.João FernandesSecção de DesenvolvimentoDepartamento de Informática
-Original Message-From: flexcoders@yahoogroups.com on behalf of Matt ChotinSent: Thu 27-Oct-05 11:48 PMTo: 
flexcoders@yahoogroups.comSubject: RE: [flexcoders] Big problem with OCX, Flash 8 release versionI'm now lost as to whether you're trying to uninstall the Flash 8 OCX orinstall it or what.But here's what I do:
Close IE (in fact close all your browsers for kicks)Close Explorer, do not have any windows open showing folders that couldpotentially embed IEOpen up a command shell (Start  Run  cmd)
cd c:\windows\system32\Macromed\Flashregsvr32 /u Flash.ocx (this should disable the installed Flash Playerfor IE, a dialog will say if it was successful)If this fails you may want to reboot your computer and not launch any IE
or Explorer window before trying the above steps again.Launch IE, see what happens, go to a Flash page and see if installworks.If install fails to work you can close things down and try toenable the OCX via windows.
regsvr32 Flash.ocx (from the same directory as before, a dialog will sayif it was successful)MattFrom: 
flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] OnBehalf Of Robert ThompsonSent: Thursday, October 27, 2005 2:03 PMTo: 
flexcoders@yahoogroups.comSubject: Re: [flexcoders] Big problem with OCX, Flash 8 release versionNot yet, but I have to, this is my productionworkstation and I have clients I have to get things
done for.The uninstall works fine and Firefox, Netscape and_Yes_ EVEN OPERA (which is more like IE) worksnow...but IE does not.I mean, given all the issues with IE which haveincluded the ability for MS to obtain all your
FAVORITES when you visit microsoft.com, and many otherissues, I'm very suspect; not 100% sure, but suspect.If anyone else knows how to fix this I'd appreciateit.
-r--Flexcoders Mailing ListFAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txtSearch Archives: 
http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links Yahoo! Groups Sponsor ~--
Fair play? Video games influencing politics. Click and talk back!http://us.click.yahoo.com/T8sf5C/tzNLAA/TtwFAA/nhFolB/TM~-
--Flexcoders Mailing ListFAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txtSearch Archives: 
http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links* To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/
* To unsubscribe from this group, send an email to:[EMAIL PROTECTED]* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/






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








  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the 

Re: [flexcoders] Big problem with OCX, Flash 8 release version

2005-10-27 Thread Julian Suggate



LOL!!!
On 10/28/05, JesterXL [EMAIL PROTECTED] wrote:
Brown acid taking programmers aside, do you know how to fix it?- Original Message -From: Robert Thompson 
[EMAIL PROTECTED]To: flexcoders@yahoogroups.comSent: Thursday, October 27, 2005 4:01 PMSubject: Re: [flexcoders] Big problem with OCX, Flash 8 release version
I sent it again.Like I say, although nobody knows yet, I do know BlueMountain was doing great in late 90's and thenMickeysoft put a hack into Windows that causedproblems and customers left in droves.
Same with Apple QuickTime; MS put hacks into it.Microsoft's former Rick Segal, in fact, has postedthread's on the Net himself about what Microsoftcan/could and did/did-not do to cause/fix the problem
in both Blue Mountains case and QuickTime -- ALL I'MSAYING IS MACROMEDIA WATCH OUT!Just search Blue Mountain v Microsoft and QuickTimeRick Segal.Although I'm a Windows developer because I have 17
years of experience I can't throw away, and althoughMicrosoft has tried to shut my mouth about documentsI've seen; all of the above is public knowledge; I'llnever stop warning people about them.This all may not be that, but again, Avalon is coming
and MS people have shown frustration lately withGoogle and Macromedia and I haven't seen anything inSeattle to show they are changing the way they compete(i.e. they can't when it's a fair playing field; just
look at Macromedia and Google; MS is pissed andtalking to the press like an old miserable bunch ofso-5-minutes ago pot bellies).-r--- JesterXL [EMAIL PROTECTED]
 wrote: Screenshot didn't come through, but same problem here:http://www.jessewarden.com/archives/2005/10/cant_install_fl.html
 Haven't had the time to attempt to resolve yet; gave up after 6 hours of screwing with it. - Original Message - From: Robert Thompson 
[EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Thursday, October 27, 2005 3:32 PM
 Subject: [flexcoders] Big problem with OCX, Flash 8 release version Hopefully this is just an issue with the Alpha uninstall of the Flash Player. But I thought I'd post this because the Plug-in
 install for Flash 8 works fine, but the ActiveX install does not. And Microsoft did try to squash Blue Mountain, QuickTime and yes DR-DOS, all by hacks to cause problems and thus get users frustrated with
 competing technologies. Attached is a screenshot of the problem that occurs after running the ActiveX install that came with Flash Player 8 (after an uninstall from Flex Builder
 directory of Flex Builder player, reboot twice and installing from Flash 8 Player's directry). I'm not nec. blaming Mickeysoft -- but it _Has_ happened and they always need to be watched and I
 hope Macromedia always keeps an eye on them; MS tried a Flash Competing player back in '99 and failed miserably; now with Avalon they will try again I'm sure...I'm on Macromedia's side.
 May to some sound like I'm being silly, but I know things I cannot talk about that you'd be very surprised and apalled by. -r --- Muzak 
[EMAIL PROTECTED] wrote:  quote  C:\Program Files\Apache Software Foundation\Tomcat  5.0\webapps\flex\standarditems\flex\AeonTab.swc
 is  inconsistent/corrupt, no  SWF definition found for  com.mfg.si.view.controls.AeonTab  /quote   Thats what I'm getting here when viewing the mxml
 in  the browser as well.  sippet  Warning  C:\Apache\tomcat 5.5.10\webapps\flex\WEB-INF\flex\user_classes\AeonTab.swc  is inconsistent/corrupt, no SWF definition found
 for   com.mfg.si.view.controls.AeonTab  /snipper   Looks like F8 is doing something different with  swc's allthough that's weird as they're just zip
  files.   Muzak- Original Message -  From: JesterXL [EMAIL PROTECTED]
  To: flexcoders@yahoogroups.com  Sent: Thursday, October 27, 2005 9:02 PM  Subject: Re: Re[2]: [flexcoders] SWC's in Flex
 As far as #2, yeah, I see both. As far as #1, here's the bottom of the log; this  is repeated a few times   because I've hit refresh a few times.
 10/27 14:41:13 WARNING Swc Loader: Unable to load  SWC C:\Program   Files\Apache Software Foundation\Tomcat   5.0\webapps\flex\standarditems\flex\AeonTab.swc
   10/27 14:41:14 ERROR  flex.compiler.HtmlOutputHandler: Results of  compiling   C:\Program Files\Apache Software Foundation\Tomcat   5.0\webapps\flex\standarditems\flex\shake.mxml
   1 Warning found.   Warning   C:\Program Files\Apache Software Foundation\Tomcat   5.0\webapps\flex\standarditems\flex\AeonTab.swc is  inconsistent/corrupt, no
   SWF definition found for  com.mfg.si.view.controls.AeonTab__
 Yahoo! FareChase: Search multiple travel sites in one click. http://farechase.yahoo.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__Yahoo! Mail - PC Magazine Editors' Choice 2005
http://mail.yahoo.com--Flexcoders Mailing ListFAQ: 

Re: [flexcoders] Big problem with OCX, Flash 8 release version

2005-10-27 Thread Julian Suggate



Although I must say MY conspiracy cortex went into overdrive the minute I installed the MSN toolbar (ss! s! I know but it gives tabbed browsing to IE). Suddenly, every five or so times I try and go to 
google.com, I getDNS lookup failures (aka This page cannot be displayed). Ocham's Razor says it's just my dodgy ADSL modem... but Ocham's Razor is aimed at the natural world, not the business world. 


Still, I should prolly get the modem looked at ;-)

Jules
On 10/28/05, Julian Suggate [EMAIL PROTECTED] wrote:
LOL!!! 

On 10/28/05, JesterXL [EMAIL PROTECTED]
 wrote: 
Brown acid taking programmers aside, do you know how to fix it?- Original Message -From: Robert Thompson  
[EMAIL PROTECTED]To: 
flexcoders@yahoogroups.comSent: Thursday, October 27, 2005 4:01 PMSubject: Re: [flexcoders] Big problem with OCX, Flash 8 release version I sent it again.Like I say, although nobody knows yet, I do know Blue
Mountain was doing great in late 90's and thenMickeysoft put a hack into Windows that causedproblems and customers left in droves. Same with Apple QuickTime; MS put hacks into it.Microsoft's former Rick Segal, in fact, has posted
thread's on the Net himself about what Microsoftcan/could and did/did-not do to cause/fix the problem in both Blue Mountains case and QuickTime -- ALL I'MSAYING IS MACROMEDIA WATCH OUT!Just search Blue Mountain v Microsoft and QuickTime
Rick Segal.Although I'm a Windows developer because I have 17 years of experience I can't throw away, and althoughMicrosoft has tried to shut my mouth about documentsI've seen; all of the above is public knowledge; I'll
never stop warning people about them.This all may not be that, but again, Avalon is coming and MS people have shown frustration lately withGoogle and Macromedia and I haven't seen anything inSeattle to show they are changing the way they compete
(i.e. they can't when it's a fair playing field; just look at Macromedia and Google; MS is pissed andtalking to the press like an old miserable bunch ofso-5-minutes ago pot bellies).-r--- JesterXL 
[EMAIL PROTECTED]  wrote: Screenshot didn't come through, but same problem here:
http://www.jessewarden.com/archives/2005/10/cant_install_fl.html 
 Haven't had the time to attempt to resolve yet; gave up after 6 hours of screwing with it. - Original Message - From: Robert Thompson  
[EMAIL PROTECTED] To: 
flexcoders@yahoogroups.com Sent: Thursday, October 27, 2005 3:32 PM  Subject: [flexcoders] Big problem with OCX, Flash 8 release version Hopefully this is just an issue with the Alpha
 uninstall of the Flash Player. But I thought I'd post this because the Plug-in  install for Flash 8 works fine, but the ActiveX install does not. And Microsoft did try to squash Blue Mountain,
 QuickTime and yes DR-DOS, all by hacks to cause problems and thus get users frustrated with  competing technologies. Attached is a screenshot of the problem that occurs
 after running the ActiveX install that came with Flash Player 8 (after an uninstall from Flex Builder  directory of Flex Builder player, reboot twice and installing from Flash 8 Player's directry).
 I'm not nec. blaming Mickeysoft -- but it _Has_ happened and they always need to be watched and I  hope Macromedia always keeps an eye on them; MS tried a Flash Competing player back in '99 and failed
 miserably; now with Avalon they will try again I'm sure...I'm on Macromedia's side.  May to some sound like I'm being silly, but I know things I cannot talk about that you'd be very
 surprised and apalled by. -r --- Muzak  [EMAIL PROTECTED]
 wrote:  quote  C:\Program Files\Apache Software Foundation\Tomcat  5.0\webapps\flex\standarditems\flex\AeonTab.swc is  inconsistent/corrupt, no  SWF definition found for
  com.mfg.si.view.controls.AeonTab  /quote   Thats what I'm getting here when viewing the mxml  in  the browser as well.  sippet
  Warning  C:\Apache\tomcat 5.5.10\webapps\flex\WEB-INF\flex\user_classes\AeonTab.swc  is inconsistent/corrupt, no SWF definition found  for 
  com.mfg.si.view.controls.AeonTab  /snipper   Looks like F8 is doing something different with  swc's allthough that's weird as they're just zip   files.
   Muzak- Original Message -  From: JesterXL 
[EMAIL PROTECTED]   To: flexcoders@yahoogroups.com  Sent: Thursday, October 27, 2005 9:02 PM
  Subject: Re: Re[2]: [flexcoders] SWC's in Flex  As far as #2, yeah, I see both. As far as #1, here's the bottom of the log; this
  is repeated a few times   because I've hit refresh a few times.  10/27 14:41:13 WARNING Swc Loader: Unable to load  SWC C:\Program   Files\Apache Software Foundation\Tomcat
   5.0\webapps\flex\standarditems\flex\AeonTab.swc10/27 14:41:14 ERROR  flex.compiler.HtmlOutputHandler: Results of  compiling   C:\Program Files\Apache Software
 Foundation\Tomcat   5.0\webapps\flex\standarditems\flex\shake.mxml1 Warning found.   Warning   C:\Program Files\Apache Software Foundation\Tomcat
   5.0\webapps\flex\standarditems\flex\AeonTab.swc

Re: [flexcoders] Big problem with OCX, Flash 8 release version

2005-10-27 Thread Julian Suggate



Nope and I've experienced similar weirdness. I've never actually managed to uninstall Player8 no matter what I tried. Even though I'vecleared out Add/Remove programs, it's still there. I can't seem to replace the standard player with the debug player either. Short of deleting the files and getting out regedit, I seem to be stuck with it.


I've recently installed 8.5 and am evaluating Flex Builder 2. Hopefully, I won't have the same problems when I go back to Player8.


Jules
On 10/28/05, JesterXL [EMAIL PROTECTED] wrote:
Brown acid taking programmers aside, do you know how to fix it?- Original Message -From: Robert Thompson 
[EMAIL PROTECTED]To: flexcoders@yahoogroups.comSent: Thursday, October 27, 2005 4:01 PMSubject: Re: [flexcoders] Big problem with OCX, Flash 8 release version
I sent it again.Like I say, although nobody knows yet, I do know BlueMountain was doing great in late 90's and thenMickeysoft put a hack into Windows that causedproblems and customers left in droves.
Same with Apple QuickTime; MS put hacks into it.Microsoft's former Rick Segal, in fact, has postedthread's on the Net himself about what Microsoftcan/could and did/did-not do to cause/fix the problem
in both Blue Mountains case and QuickTime -- ALL I'MSAYING IS MACROMEDIA WATCH OUT!Just search Blue Mountain v Microsoft and QuickTimeRick Segal.Although I'm a Windows developer because I have 17
years of experience I can't throw away, and althoughMicrosoft has tried to shut my mouth about documentsI've seen; all of the above is public knowledge; I'llnever stop warning people about them.This all may not be that, but again, Avalon is coming
and MS people have shown frustration lately withGoogle and Macromedia and I haven't seen anything inSeattle to show they are changing the way they compete(i.e. they can't when it's a fair playing field; just
look at Macromedia and Google; MS is pissed andtalking to the press like an old miserable bunch ofso-5-minutes ago pot bellies).-r--- JesterXL [EMAIL PROTECTED]
 wrote: Screenshot didn't come through, but same problem here:http://www.jessewarden.com/archives/2005/10/cant_install_fl.html
 Haven't had the time to attempt to resolve yet; gave up after 6 hours of screwing with it. - Original Message - From: Robert Thompson 
[EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Thursday, October 27, 2005 3:32 PM
 Subject: [flexcoders] Big problem with OCX, Flash 8 release version Hopefully this is just an issue with the Alpha uninstall of the Flash Player. But I thought I'd post this because the Plug-in
 install for Flash 8 works fine, but the ActiveX install does not. And Microsoft did try to squash Blue Mountain, QuickTime and yes DR-DOS, all by hacks to cause problems and thus get users frustrated with
 competing technologies. Attached is a screenshot of the problem that occurs after running the ActiveX install that came with Flash Player 8 (after an uninstall from Flex Builder
 directory of Flex Builder player, reboot twice and installing from Flash 8 Player's directry). I'm not nec. blaming Mickeysoft -- but it _Has_ happened and they always need to be watched and I
 hope Macromedia always keeps an eye on them; MS tried a Flash Competing player back in '99 and failed miserably; now with Avalon they will try again I'm sure...I'm on Macromedia's side.
 May to some sound like I'm being silly, but I know things I cannot talk about that you'd be very surprised and apalled by. -r --- Muzak 
[EMAIL PROTECTED] wrote:  quote  C:\Program Files\Apache Software Foundation\Tomcat  5.0\webapps\flex\standarditems\flex\AeonTab.swc
 is  inconsistent/corrupt, no  SWF definition found for  com.mfg.si.view.controls.AeonTab  /quote   Thats what I'm getting here when viewing the mxml
 in  the browser as well.  sippet  Warning  C:\Apache\tomcat 5.5.10\webapps\flex\WEB-INF\flex\user_classes\AeonTab.swc  is inconsistent/corrupt, no SWF definition found
 for   com.mfg.si.view.controls.AeonTab  /snipper   Looks like F8 is doing something different with  swc's allthough that's weird as they're just zip
  files.   Muzak- Original Message -  From: JesterXL [EMAIL PROTECTED]
  To: flexcoders@yahoogroups.com  Sent: Thursday, October 27, 2005 9:02 PM  Subject: Re: Re[2]: [flexcoders] SWC's in Flex
 As far as #2, yeah, I see both. As far as #1, here's the bottom of the log; this  is repeated a few times   because I've hit refresh a few times.
 10/27 14:41:13 WARNING Swc Loader: Unable to load  SWC C:\Program   Files\Apache Software Foundation\Tomcat   5.0\webapps\flex\standarditems\flex\AeonTab.swc
   10/27 14:41:14 ERROR  flex.compiler.HtmlOutputHandler: Results of  compiling   C:\Program Files\Apache Software Foundation\Tomcat   5.0\webapps\flex\standarditems\flex\shake.mxml
   1 Warning found.   Warning   C:\Program Files\Apache Software Foundation\Tomcat   5.0\webapps\flex\standarditems\flex\AeonTab.swc is  inconsistent/corrupt, no
   SWF definition found for