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

2006-02-11 Thread Carlos Rovira



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 this
issue, but I still can't see any disadvantages in permitting
non-public constructors which might have led to this decision.
As it seems evident from this and other similar threads the
proposed workarounds for singletons are ugly and confusing for
most 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 an
up-to-date specification draft. (The newest one I was able to find is
from 2003). In AS 3 abstract is a reserved keyword but it's not used
yet. But again: If we don't get abstract classes we need non-public
constructors to fake them. In AS 2 I combine private constructors with
empty (pseudo-abstract) template methods to accomplish this.

AS 3 is a huge step forward, but I still miss some pieces in the core
language:

- Private constructors

- Abstract classes and methods

- Enumerations!

- Class.instantiate(args:Array) method


Jens
www.oregano-server.org











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



  










-- ::| Carlos Rovira::| http://www.carlosrovira.com






--
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] AS3 class constructors can't be private? Abstract classes?

2006-02-11 Thread Jens Halm

> 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 this
issue, but I still can't see any disadvantages in permitting
non-public constructors which might have led to this decision.
As it seems evident from this and other similar threads the
proposed workarounds for singletons are ugly and confusing for
most 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 an
up-to-date specification draft. (The newest one I was able to find is
from 2003). In AS 3 abstract is a reserved keyword but it's not used
yet. But again: If we don't get abstract classes we need non-public
constructors to fake them. In AS 2 I combine private constructors with
empty (pseudo-abstract) template methods to accomplish this.

AS 3 is a huge step forward, but I still miss some pieces in the core
language:

- Private constructors

- Abstract classes and methods

- Enumerations!

- Class.instantiate(args:Array) method


Jens
www.oregano-server.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

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




RE: [flexcoders] IFrame Example for Flex 2?

2006-02-11 Thread Mark Wales











Jason,

 

By domains, I am assuming you mean
different domain names – is that correct?

 

Assuming IFrame to
Flex is not directly possible, here is what I was
proposing:

 

- 
Create a
Flex application that can communicate with the _javascript_
of a designated page

- 
Make
that designated page local to your machine (i.e. perhaps the one hosting your
.SWF) 

o   
embed an
additional IFrame

o   
embed _javascript_ to point the embedded IFrame
to a designated URL

o   
embed _javascript_ functions to support the desired drop functionality
from the “remote” IFrame to the local IFrame

o   
drive
the “internal” IFrame by sending the URL
to the local page/IFrame – which then sends it
to the embedded IFrame

o   
retrieve
from the “internal” IFrame by embedding _javascript_ functions that can be called by Flex to retrieve
the dropped text

 

From what you’ve said, the fatal
flaw in this proposal would be that the locally hosted HTML page and the page
presented in the embedded IFrame are in different
domains and therefore not able to “communicate”.  Is this correct?

 

-Mark

 

-Original Message-
From: flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] On Behalf
Of Jason Hawryluk
Sent: Saturday, February 11, 2006 8:02 AM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] IFrame
Example for Flex 2?

 



I
don't have any examples but, what your wanting to do sounds possible.
However you can not do this across a domain. It would take quite abit of
work to get a drag and drop from iframe to flex. The ifram drag and drop is
separate from the flex application. You can't even get a mouse x and y into
flex from html in relation to the flex app. Once you hover over a iframe flex
is no longer in control (and from my tests recives no events). The click and
drag in an iframe is intended to stay within the iframe, unless you do
significant _javascript_ work on it. I know what your after, I attempted this
myself in alpha, havn't tryed it in beta.





 





Why
do you need click and drag in an iframe? Load your data directly into flex.





 





Jason





-Message d'origine-
De : flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED]De la part
de stuff
Envoyé : samedi 11 février
2006 12:42
À :
flexcoders@yahoogroups.com; flexcoders@yahoogroups.com
Objet : Re: [flexcoders]
IFrame Example for Flex 2?


The goal is to drag and then drop text highlighted
on an HTML page to a Flash or Flex-based component (or for someone to tell me
it is not possible so I won't search/try any more!).

I am presuming based on my limited knowledge of
Drag-and-Drop using HTML(and its associated _javascript_) and, separately, my
experience using Drap-and-Drop within Flex that some amount of scripting will
be required on both sides to complete the task.

Since I have seen some cool examples of
Drag-and-Drop using _javascript_ and I know Flex 2 enhances the ability to
communicate between _javascript_ and the Flash platform, I assume that there may
be new ways of accomplishing this that previously either did not exist or were
less excessible than before. If anyone has experimented with them, I am hoping
they can share.

My ideal scenario would be to highlight text and
drag it directly into an TextArea (without HTML formatting would be just fine).
My hopefully manageable compromise would be to load a local HTML page that had
an HTML-based text field in it and an IFrame. The thought would be I could use
ActionScript to pass the _javascript_ the URL I was interestd in, the _javascript_
would load the URL in the specified IFrame, I could then highlight the text I
wanted, drop it in my HTML-based text field using _javascript_/AJAX and then
again using _javascript_ pass it back to Flex.

-Mark

>  ---Original Message---
>  From: Manish Jethani
<[EMAIL PROTECTED]>
>  Subject: Re: [flexcoders] IFrame
Example for Flex 2?
>  Sent: 10 Feb '06 20:51
>  
>  On 2/10/06, Mark Wales
<[EMAIL PROTECTED]> wrote:
>  
>  > Does anyone out there have any
HTML/_javascript_-to-Flash/Flex examples
>  > they can share?
>  
>  Can you elaborate on that?  What
do you mean by
>  "HTML/_javascript_-to-Flash/Flex
examples"?
>  
>  
>  --
>  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








  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
   

[flexcoders] Menubar Icon through XML

2006-02-11 Thread Carlos Rovira



Hi,I'm trying to use an external XML as a dataprovider for the menubar. The problem is with the "icon" attributes defined in the external XML that are throwing an error.I'm trying to embed the image but the app doesn't find the image. I can't find any example in the documentation or internet.
Please could someone post a basic example that uses a menubar with a XML dataprovider from a file and showing a menuitem with a icon that is already embeded in the app.Thanks in advance
-- ::| Carlos Rovira::| http://www.carlosrovira.com






--
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] AS3 class constructors can't be private? Abstract classes?

2006-02-11 Thread Carlos Rovira



Thanks Matt, Roger and Geoffrey,While I see what you try to do, and have made a test all this stuff and don't like what I'm getting (sorry).In Matt's implementation the only way to instantiate (due to the enforcer class inner nature) is using null:
var _singleton:MySingleton = new
MySingleton (null); // --- (as pointed by Geoffrey)what seems a little weird...In Geoffrey's version there's a hack with 
Instantiation.locked static var that seems very strange turning (on and off a flag), again from other people's coming to the Flash platform  they look at all this stuff as the typical flash hacks form 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.
Again, thanks for listeningC.2006/2/10, Roger Gonzalez <[EMAIL PROTECTED]>:







My preferred singleton/pseudo-private-ctor pattern is to use a static 
function facade:
 
package {
public class Manager
{
  public static function x()
  {
if (inner == null) inner = 
new ManagerImpl();
inner.x();
  }
  private static var inner:ManagerImpl = null;
}
}
 
class ManagerImpl()
{
  public function x() {..}
}
 
If the facade gets too porky, you can use interfaces; 
make a public IManager interface in its own file, and have a "public static 
function Manager.getManager():IManager" function.  That way you can only 
get the "gateway" class, and file-external code can't create a 
ManagerImpl.
 
-rg
 
 

  
  
  From: flexcoders@yahoogroups.com 
  [mailto:flexcoders@yahoogroups.com] On Behalf Of Johannes 
  NelSent: Friday, February 10, 2006 7:16 AMTo: 
  flexcoders@yahoogroups.comSubject: Re: [flexcoders] AS3 class 
  constructors can't be private? Abstract classes?
  so even if i create a private class that is only accecible in that 
  package (and then on package level declare a accesor for it) the only way i 
  can be certain that class will only be created once is by having nothing else 
  in that package. this does not seem right. 
  On 2/10/06, Matt 
  Chotin <[EMAIL PROTECTED]> 
  wrote:
  

You have to 
simulate private constructors by having the constructor take a class that is 
inaccessible to other classes (namely putting that class in the same file as 
the singleton outside of the package block).  Unfortunately I believe 
the rule is that the constructor of the class has to have the same 
visibility as the class itself.  So public classes need public 
constructors, internal classes get internal constructors, 
etc.
 
Matt
 




From: 
flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] 
On Behalf Of Johannes NelSent: Thursday, February 09, 2006 4:51 
PMTo: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] AS3 class 
constructors can't be private? Abstract classes?

 
abstract classes i am not expecting, private 
constructers i certainly hope for

On 2/9/06, Carlos 
Rovira <[EMAIL PROTECTED] 
> wrote:
Hi,I was trying to migrate some classes from 
AS2 to AS3 and notice that can't mark the class constructor as private. Is 
that correct or there's a workaround? if not have plans to implement private 
constructors.and abstract classes?Thanks in advance.-- ::| Carlos Rovira::| 
http://www.carlosrovira.com 
--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. 
 



-- j:pn 
--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 

   

Re: [flexcoders] Re: Flex2 and Amfphp is it possible ?

2006-02-11 Thread Brian Lesser
Hi Peter,
Any word on bug/feature request #154595? I've had a look in beta 1 and 
didn't see anything there but I could easily have missed something.
Also I'm glad to see addHeader has returned to the NetConnection object 
even though I can't get it to pass credentials to a legacy CFMX remoting 
gateway yet. I filed a bug on that and related problems. Anyway if 
RecordSet or something similar that will be compatible with legacy apps 
has been added it would be great to know.
Yours truly,
-Brian



Peter Farland wrote:

>>I can tell you, however, that Flex 2 Data Provider API is
>>considerably different. I believe the mx.remoting.RecordSet
>>API as it stands in Flex 1.5 is an inadequate data provider
>>for Flex 2 components.
>>
>>
>
>How can plain old web services, which are totally generic, be adequate
>but not recordsets?
>
>[Pete] Sorry, I should have explained further. Flex 2 components use
>mx.collections.ICollectionView to manage data that may have also come
>from a remote location (implying that users might have to consider
>paging concerns when all of the data is not present on the client). If
>mx.remoting.RecordSet is ported to AS3 and made to extend something like
>mx.collections.ListCollectionView things would start to look better for
>legacy data interacting with new components. 
>
>I think this is a reasonable request for legacy application support - I
>logged an enhancement request as bug #154595.
>
>Not that this is a consolation to your situation, but note that we have
>new, more advanced and very flexible frameworks for managing remote data
>in Flex Enterprise Services 2 - keep an eye out for a Beta of this soon.
>
>
>  
>
>>Also, how were you constructing these on the server? 
>>CF Query objects?
>>
>>
>
>Brians story is different from mine which I am sure is different for php
>users. But I construct all of my recordsets with JDBC resultsets.
>Cached rowsets to be exact. I suck lots of complex queries right out of
>the database and send them to flash. The data never becomes serialized
>POJOs.
>
>[Pete] Very cool. The format of a JDBC resultset (well, cached rowset as
>you accurately state), and a CF Query were the same over the wire
>according to Flash / Flex. The structure is pretty simple. Did you make
>use of paging by any chance?
>
>
>  
>


__
Brian Lesser
Assistant Director, Teaching and Technology Support
Computing and Communications Services
Ryerson University
350 Victoria St.
Toronto, Ontario   Phone: (416) 979-5000 ext. 6835
M5B 2K3Fax: (416) 979-5220
Office: AB48D  E-mail: [EMAIL PROTECTED]
(Enter through LB66)   Web: http://www.ryerson.ca/~blesser
__



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

<*> 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] Cairngorm2 version of Phones Flex/ColdFusion Connectivity samples

2006-02-11 Thread Benoit Hediard





Hi 
everyone,
 
Today, I managed to 
take some time to write a Cairngorm2 version of the Phones Flex/ColdFusion 
Connectivity sample!
 
Description:A 
Cairngorm 2 version of the Phone Selector sample application.http://labs.macromedia.com/wiki/index.php/ColdFusion/Flex_Connectivity:Samples:Phone_Selector
 
Purpose:- to 
show Flex RIA best practices,- to show Flex/ColdFusion Connectivity best 
practices.
 
Changes:I made 
some minor changes to the original app, in order to simplify it.- removed 
> simple list instead of tile list without details state,- removed > 
no images,- added > reload button to demonstrate Cairngorm 
events/commands with Flex/ColdFusion connectivity,- added > loading state 
during remoting commands.
 
Installation:- 
download Cairngorm 2 alpha (http://www.richinternetapps.com/archives/000145.html),- 
unzip the Phones and Cairngorm files in new Flex Builder 2 project,- move 
the content of "coldfusion" folder to your ColdFusion wwwroot,- test the 
service by calling http://localhost/com/mycompany/phones/service/test.cfm,- 
compile the Main.mxml app (do not forget to set the compiler args to use 
flex-enterprise-services.xml). 
 
The zip file can be 
downloaded here :
http://www.benorama.com/flex/samples/PhonesCairngorm2.zip
 
Any feedbacks are 
welcome.
 
Have 
fun!
 
Benoit 
Hediard





--
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] Flex-Struts configration

2006-02-11 Thread Srikanth
Title: RE: [flexcoders] Flex-Struts configration










Hi,

 

My browser is always the running state(no out put/hanging), I think the problem is in the  flex configuration file.  Could you please help me?

 

Thanks in Advance,

Regards,

Srikanth

 

-Original Message-
From: flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] On Behalf
Of Matt Chotin
Sent: Thursday, February 09, 2006
12:24 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders]
Flex-Struts configration

 

This was there right?       result="alert(registrationRequest.result.registration.status)">        {firstName.text}    {lastName.text}    {phone.text}    {email.text}                                                                              {errorList.currentItem}     

 

 









From:
flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Srikanth, R
Sent: Wednesday, February 08, 2006
3:43 AM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders]
Flex-Struts configration



 

I have not outpur. I
think HTTP Service tag is not Parsed in that application, where I had seen the
view sourse in the browser the entire code has same. Please advice me how to
proceed?

 

Thanks in Advance,

Srikanth

 

 

 

-Original Message-
From: flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] On Behalf
Of Matt Chotin
Sent: Wednesday, February 08, 2006
1:36 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders]
Flex-Struts configration

 

There’s
nothing to download from that tutorial, it’s all embedded in the
pages.  In example 1 the HTTPService tag is used to make a request against
the servlet that then executes the Struts action.  In example 2 the
WebService tag is what was used to hook up the connection to the extracted
business logic, the same logic that a modified Struts action would have called.

 

Matt

 













From:
flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Srikanth, R
Sent: Tuesday, February 07, 2006
11:17 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders]
Flex-Struts configration



 

Hi David,

I had gone through the http://www.macromedia.com/devnet/flex/articles/struts.html.


I have  some doubt. Please clarify the following
doubts.

1. In that link they have given a Flex client
application. May I know what the extention of the file. Is?

2. How it process?

Thanks in Advance,

With regards,

Srikanth

 

-Original Message-

From:
flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com]
On Behalf Of Srikanth, R

Sent: Monday, February 06,
2006 2:59 PM

To: flexcoders@yahoogroups.com

Subject: RE: [flexcoders]
Flex-Struts configration

Hi,

 I have seen in your
mentioned link. I have some doubt in that link. Where I have to save the Flex
client file and how it calls?

 Could you please
explain?

Thanks,

Kind regards,

Srikanth

-Original Message-

From:
flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com]
On Behalf Of David Mendels

Sent: Saturday, February 04,
2006 9:18 PM

To: flexcoders@yahoogroups.com

Subject: RE: [flexcoders]
Flex-Struts configration

Hope this helps: http://www.macromedia.com/devnet/flex/articles/struts.html

 

-David

Adobe

 

From:
flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com]
On Behalf Of Husain Kitabi

Sent: Saturday, February 04,
2006 9:38 AM

To: flexcoders@yahoogroups.com

Subject: Re: [flexcoders]
Flex-Struts configration

I am just wondering why
would you require struts and flex.

anyway, look into web.xml
file

 

 

Srikanth
<[EMAIL PROTECTED]> wrote:

Hello,

Could you please explain the
confiration and Integration of the Flex 

and Struts? Please send a
sample code/link for that.

Thanks in advance,

with Regards,

Srikanth






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. 






hussain 

Yahoo! Mail - Helps protect
you from nasty viruses. 

 

--

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. 













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

[flexcoders] Re: Data Service : Tutorials.zip file & Cairngorm help for beginner

2006-02-11 Thread sugannaicker
Hi,

Thanks for the replies.

I have downloaded Cairngorm V2, installed and ran the login sample, 
but I am still struggling to put the pieces together.

Is there a document with that shows a Flex2 sample application 
without Cairngorm and one with Cairngorm and discusses the benefits 
of Cairngorm in layman terms?

PS: Any idea where I can download the "Tutorial.zip" file mentioned 
in the Flex2 Data services documentation?


Regards,

Sugan




--- In flexcoders@yahoogroups.com, "sugannaicker" <[EMAIL PROTECTED]> wrote:
>
> Hi,
> 
> I have two questions :
> 
> 01) Where do I download the "Tutorials.zip" file mentioned in the 
> Enterprise: Use the Data Service (Chapter 21) documentation file.
> 
> 02) Is the there a "Cairngorm for dummies" document? I am new to 
Flex 
> and I hear that it would be best practice to use Cairngorm, but I 
> cannot find a starter guide to Cairngorm or some type of 
documentation 
> for a beginner.
> 
> Thanks
> 
> Sugan
>






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

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




RE: [flexcoders] IFrame Example for Flex 2?

2006-02-11 Thread Jason Hawryluk





I 
don't have any examples but, what your wanting to do sounds possible. 
However you can not do this across a domain. It would take quite abit of 
work to get a drag and drop from iframe to flex. The ifram drag and drop is 
separate from the flex application. You can't even get a mouse x and y into flex 
from html in relation to the flex app. Once you hover over a iframe flex is no 
longer in control (and from my tests recives no events). The click and drag in 
an iframe is intended to stay within the iframe, unless you do significant 
_javascript_ work on it. I know what your after, I attempted this myself in alpha, 
havn't tryed it in beta.
 
Why 
do you need click and drag in an iframe? Load your data directly into 
flex.
 
Jason

  -Message d'origine-De : 
  flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED]De la part 
  de stuffEnvoyé : samedi 11 février 2006 
  12:42À : flexcoders@yahoogroups.com; 
  flexcoders@yahoogroups.comObjet : Re: [flexcoders] IFrame 
  Example for Flex 2?The goal is to drag and then 
  drop text highlighted on an HTML page to a Flash or Flex-based component (or 
  for someone to tell me it is not possible so I won't search/try any 
  more!).I am presuming based on my limited knowledge of Drag-and-Drop 
  using HTML(and its associated _javascript_) and, separately, my experience using 
  Drap-and-Drop within Flex that some amount of scripting will be required on 
  both sides to complete the task.Since I have seen some cool examples 
  of Drag-and-Drop using _javascript_ and I know Flex 2 enhances the ability to 
  communicate between _javascript_ and the Flash platform, I assume that there may 
  be new ways of accomplishing this that previously either did not exist or were 
  less excessible than before. If anyone has experimented with them, I am hoping 
  they can share.My ideal scenario would be to highlight text and drag 
  it directly into an TextArea (without HTML formatting would be just fine). My 
  hopefully manageable compromise would be to load a local HTML page that had an 
  HTML-based text field in it and an IFrame. The thought would be I could use 
  ActionScript to pass the _javascript_ the URL I was interestd in, the _javascript_ 
  would load the URL in the specified IFrame, I could then highlight the text I 
  wanted, drop it in my HTML-based text field using _javascript_/AJAX and then 
  again using _javascript_ pass it back to Flex.-Mark>  
  ---Original Message--->  From: Manish Jethani 
  <[EMAIL PROTECTED]>>  Subject: Re: [flexcoders] 
  IFrame Example for Flex 2?>  Sent: 10 Feb '06 20:51>  
  >  On 2/10/06, Mark Wales <[EMAIL PROTECTED]> 
  wrote:>  >  > Does anyone out there have any 
  HTML/_javascript_-to-Flash/Flex examples>  > they can 
  share?>  >  Can you elaborate on that?  What do 
  you mean by>  "HTML/_javascript_-to-Flash/Flex 
  examples"?>  >  >  -->  
  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








  
  
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] IFrame Example for Flex 2?

2006-02-11 Thread stuff

The goal is to drag and then drop text highlighted on an HTML page to a Flash 
or Flex-based component (or for someone to tell me it is not possible so I 
won't search/try any more!).

I am presuming based on my limited knowledge of Drag-and-Drop using HTML(and 
its associated Javascript) and, separately, my experience using Drap-and-Drop 
within Flex that some amount of scripting will be required on both sides to 
complete the task.

Since I have seen some cool examples of Drag-and-Drop using Javascript and I 
know Flex 2 enhances the ability to communicate between Javascript and the 
Flash platform, I assume that there may be new ways of accomplishing this that 
previously either did not exist or were less excessible than before. If anyone 
has experimented with them, I am hoping they can share.

My ideal scenario would be to highlight text and drag it directly into an 
TextArea (without HTML formatting would be just fine). My hopefully manageable 
compromise would be to load a local HTML page that had an HTML-based text field 
in it and an IFrame. The thought would be I could use ActionScript to pass the 
Javascript the URL I was interestd in, the Javascript would load the URL in the 
specified IFrame, I could then highlight the text I wanted, drop it in my 
HTML-based text field using Javascript/AJAX and then again using Javascript 
pass it back to Flex.

-Mark

>  ---Original Message---
>  From: Manish Jethani <[EMAIL PROTECTED]>
>  Subject: Re: [flexcoders] IFrame Example for Flex 2?
>  Sent: 10 Feb '06 20:51
>  
>  On 2/10/06, Mark Wales <[EMAIL PROTECTED]> wrote:
>  
>  > Does anyone out there have any HTML/Javascript-to-Flash/Flex examples
>  > they can share?
>  
>  Can you elaborate on that?  What do you mean by
>  "HTML/Javascript-to-Flash/Flex examples"?
>  
>  
>  --
>  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

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