RE: [flexcoders] A bit too ambitious?

2006-07-07 Thread Tony Pujals












Ambitious, yes! Appropriate, absolutely! Fun,
definitely! ;-)

 

I’m working on a Flex-based bliki front
end myself (PHP on the back end). Good luck!

 

-Tony



 

 

tony pujals| senior engineer | Yahoo!
Small Business

p. 408.349.6284 | e. tonyp * yahoo-inc * com | y!id
tonypujals

 



 









From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of David Mendels
Sent: Friday, July 07, 2006 1:52
PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] A bit
too ambitious?



 







Hi,

This is a great use of Flex.

Regards,
David 

> -Original Message-
> From: [EMAIL PROTECTED]ups.com

> [mailto:[EMAIL PROTECTED]ups.com]
On Behalf Of Sam
> Sent: Friday, July 07, 2006 4:05 PM
> To: [EMAIL PROTECTED]ups.com
> Subject: [flexcoders] A bit too ambitious?
> 
> Hi first of all let me preface this by saying that I am new 
> to Flex and programming in general and I have been using Flex 
> for about 2 weeks only I love it. :)
> 
> I have seen a couple of discussions here about the use of 
> Flex for "web pages" and how some say use it and some say 
> don't. I see where it can make a difference in some cases... 
> hence my question.
> 
> Is it a bit too ambitious to try and use Flex to create a 
> frontend to other software such as Wordpress, Drupal, Xoops, 
> Joomla! and the slew of other CMS that mainly rely on XHTML 
> and PHP for their front end?
> 
> I have made some progress with AMFPHP and remoting... but I 
> have only started so... I have not made it very far yet :) 
> 
> What's your opinion?
> 
> Sincerely,
> Sam
> 
> 
> 
> 
> 
>  Yahoo! Groups Sponsor 
> ~--> Great things are happening at Yahoo!

> Groups. See the new email design.
> http://us.click.yahoo.com/TISQkA/hOaOAA/yQLSAA/nhFolB/TM
> --
> --~-> 
> 
> --
> 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



   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 :: The time has come to ... Push the Button :: Released

2006-06-28 Thread Tony Pujals










Awesome! Congratulations to the entire Adobe
team!

 

J

 

Tony



 

 

tony pujals| senior engineer | Yahoo!
Small Business

p. 408.349.6284 | e. tonyp * yahoo-inc * com | y!id
tonypujals

 



 









From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Michael Schmalle
Sent: Tuesday, June 27, 2006 9:03
PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Flex2 :: The
time has come to ... Push the Button :: Released



 







Hello
all!

Good day at Adobe, Flex 2 is finally out of beta and a full fledged adult SDK!

I have some pretty good info on the release;

http://www.flex2components.com/f2cblog/2006/06/28/flex2-the-time-has-come-to-push-the-button-released/


Happy trails and lets get this thing implemented!

PS Might take a couple minutes for them to get their site tunned, but it's
here!

Peace, Mike






__._,_.___





--
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] Flash 8.5 Release -- Vote of Confidence

2006-04-13 Thread Tony Pujals










Hey, this wasn’t a troll! ;-)  No
one has any insight or opinion on this…?  Let me add that I’m extremely
pleased with beta 2 and at this point I’ve pretty much made up my mind to
use it for the project, but if Flash 8.5 ends up being significantly late (eg,
later than July), I will probably be roasted over coals…. So … if
anyone has any reason to believe that I’m being way too optimistic
(foolish), I’d really like to hear sooner than later.



 

 



 









From:
flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Tony Pujals
Sent: Wednesday, April 12, 2006
11:09 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Flash 8.5
Release -- Vote of Confidence



 

I’m starting a new short-term project (6 weeks) for
which we would like to use Flex 2. Realizing that it’s risky to bank on
it, I’m curious as to how many people feel confident that Adobe will
actually release Flash 8.5 in June.  We are simply not going to use Flex
1.5 any more, so the alternative is to not use Flex at all if 8.5 won’t
be available by June….

 

Thanks,

 

Tony

 

tony pujals| senior engineer | Yahoo!
Webhosting

p. 408.349.6284 | e. tonyp * yahoo-inc * com | y!id
tonypujals

 

 









--
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] Flash 8.5 Release -- Vote of Confidence

2006-04-12 Thread Tony Pujals










I’m starting a new short-term project (6 weeks) for
which we would like to use Flex 2. Realizing that it’s risky to bank on
it, I’m curious as to how many people feel confident that Adobe will actually
release Flash 8.5 in June.  We are simply not going to use Flex 1.5 any
more, so the alternative is to not use Flex at all if 8.5 won’t be
available by June….

 

Thanks,

 

Tony

 

tony pujals| senior engineer | Yahoo!
Webhosting

p. 408.349.6284 | e. tonyp * yahoo-inc * com | y!id
tonypujals

 

 









--
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] RE: ExternalInterface and IFrame

2006-03-28 Thread Tony Pujals










Jeff, that’s awesome! I’ll have
to check to see if it works for Firefox. If it does, I’m going to be very
happy.

 

-Tony



 

 

tony pujals| senior engineer | Yahoo!
SiteBuilder Express

p. 408.349.6284 | e. tonyp * yahoo-inc * com | y!id
tonypujals

 



 









From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Battershall, Jeff
Sent: Tuesday, March 28, 2006
11:45 AM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] RE:
ExternalInterface and IFrame



 

Tony,

I was able to re-create the behavior you've noted,
but was able to get
the "disappearing Iframe" to stop in IE
when I added wmode=opaque to the
name-value pairs being passed to AC_FL_RunContent
in
index.template.html.

Jeff

-Original Message-
From: flexcoders@yahoogroups.com
[mailto:flexcoders@yahoogroups.com]
On
Behalf Of Tony Pujals
Sent: Sunday, March 26, 2006 10:33 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] RE: ExternalInterface and
IFrame


I want to follow up and mention that I'm aware
FileRerence before I get
a lot of suggestions to use it ;-), but I had
other reasons why I wanted
to create a form within an iframe.

In any case, I'm particularly intrigued by the
idea of displaying
content in an iframe managed by an mxml component,
as C. Conraets & B.
Deitte have demonstrated in their articles. What I
did have working of
my page preview inside of a panel looked pretty awesome
-- but for now I
have to live with opening a separate browser
window.

I also forgot to mention that the FireFox
version does occasionally
display the iframe -- flickering like it's
updating umpteen times per
second.




-----Original Message-
From: Tony Pujals 
Sent: Sunday, March 26, 2006 7:10 PM
To: 'flexcoders@yahoogroups.com'
Subject: ExternalInterface and IFrame

I wanted to create an "dialog" as an
html form in an iframe rather than
opening a separate browser window for uploading
image files. I also
wanted to create an html page preview using an
iframe as well.

I spent an entire Sunday working at this and none
of my efforts have
succeeded satisfactorily. I researched the web and
came across Crostophe
Coenrats' article, and after modifying it for Flex
2 / AS3, I still
didn't get no satisfaction. A little more research
and I found Brian
Deitte's update for AS3 as well and tried his
solution, and still no
joy. I tried every variation I could think of,
working with fscommand,
navigateToURL, and of course, ExternalInterface.

It appears that it doesn't matter which strategy
you use. In all cases,
I came close to achieving what I wanted. The
problem even in the
simplest case is that clicking in the iframe, then
clicking outside of
it, causes the iframe to disappear until something
causes the iframe to
refresh with IE, and nada for FireFox (I'm using
IE 6 and FireFox
1.5.0.1 on Windows XP SP2, and of course, Flash
8.5).

Here's a distilled set of the code primarily based
on Conraets/Deitte's
work:


Test.mxml
=

http://www.adobe.com/2006/mxml"
layout="absolute">

  
    http://" />
    
    
  
  
  
    
  




iframe.js
=
function loadIFrame(id, uri) {
    var f =
document.getElementById(id);
    f.style.left = 20;
    f.style.top = 80;
    f.width = 400;
    f.height = 400;
    f.style.visibility =
"visible";
   
top.frames["testFrame"].location.href = "">
    // alert("loadIFrame:
" + id + ", " + uri);
}

function showIFrame(id){
    document.getElementById(id).style.visibility="visible";
    // alert("showIFrame:
" + id);
}

function hideIFrame(){
   
document.getElementById(id).style.visibility="hidden";
  //
alert("hideIFrame: " + id);
}

function moveIFrame(id, x, y, w, h) {
    var
frameRef=document.getElementById(id);
    frameRef.style.left = x;
    frameRef.style.top = y;
    frameRef.width = w;
    frameRef.height = h;
    // alert("moveIFrame:
" + id + " (" + x + ", " + y + width + ", "
+
height + ")"); }

// Ex: type in browser url bar:
// _javascript_:testIFrame("testFrame",
"http://www.cnn.com") function
testIFrame(id, uri) {
    var f =
document.getElementById(id);
    f.style.left = 10;
    f.style.top = 10;
    f.width = 400;
    f.height = 400;
    f.style.visibility =
"visible";
   
top.frames["testFrame"].location.href = "">
}




In the HTML wrapper (I modified
html-template/index.template.html)
===
(In the  element)




(At the end of the  element)


 
frameborder="0"
  
style="position:absolute;background-color:transparent;border:0px;visibil
ity:visible;">







The _javascript_ testIFrame function is there just
to demonstrate that
even with a completely empty application, like
this.

[flexcoders] RE: ExternalInterface and IFrame

2006-03-27 Thread Tony Pujals
I want to follow up and mention that I'm aware FileRerence before I get
a lot of suggestions to use it ;-), but I had other reasons why I wanted
to create a form within an iframe.

In any case, I'm particularly intrigued by the idea of displaying
content in an iframe managed by an mxml component, as C. Conraets & B.
Deitte have demonstrated in their articles. What I did have working of
my page preview inside of a panel looked pretty awesome -- but for now I
have to live with opening a separate browser window.

I also forgot to mention that the FireFox version does occasionally
display the iframe -- flickering like it's updating umpteen times per
second.

 


-Original Message-
From: Tony Pujals 
Sent: Sunday, March 26, 2006 7:10 PM
To: 'flexcoders@yahoogroups.com'
Subject: ExternalInterface and IFrame

I wanted to create an "dialog" as an html form in an iframe rather than
opening a separate browser window for uploading image files. I also
wanted to create an html page preview using an iframe as well.

I spent an entire Sunday working at this and none of my efforts have
succeeded satisfactorily. I researched the web and came across Crostophe
Coenrats' article, and after modifying it for Flex 2 / AS3, I still
didn't get no satisfaction. A little more research and I found Brian
Deitte's update for AS3 as well and tried his solution, and still no
joy. I tried every variation I could think of, working with fscommand,
navigateToURL, and of course, ExternalInterface.

It appears that it doesn't matter which strategy you use. In all cases,
I came close to achieving what I wanted. The problem even in the
simplest case is that clicking in the iframe, then clicking outside of
it, causes the iframe to disappear until something causes the iframe to
refresh with IE, and nada for FireFox (I'm using IE 6 and FireFox
1.5.0.1 on Windows XP SP2, and of course, Flash 8.5).

Here's a distilled set of the code primarily based on Conraets/Deitte's
work:


Test.mxml
=

http://www.adobe.com/2006/mxml";
layout="absolute">

  
http://"; />


  

  

  




iframe.js
=
function loadIFrame(id, uri) {
var f = document.getElementById(id);
f.style.left = 20;
f.style.top = 80;
f.width = 400;
f.height = 400;
f.style.visibility = "visible";
top.frames["testFrame"].location.href = uri;
// alert("loadIFrame: " + id + ", " + uri);
}

function showIFrame(id){
document.getElementById(id).style.visibility="visible";
// alert("showIFrame: " + id);
}

function hideIFrame(){
document.getElementById(id).style.visibility="hidden";
// alert("hideIFrame: " + id);
}

function moveIFrame(id, x, y, w, h) {
var frameRef=document.getElementById(id);
frameRef.style.left = x;
frameRef.style.top = y;
frameRef.width = w;
frameRef.height = h;
// alert("moveIFrame: " + id + " (" + x + ", " + y + width + ", " +
height + ")");
}

// Ex: type in browser url bar:
// javascript:testIFrame("testFrame", "http://www.cnn.com";)
function testIFrame(id, uri) {
var f = document.getElementById(id);
f.style.left = 10;
f.style.top = 10;
f.width = 400;
f.height = 400;
f.style.visibility = "visible";
top.frames["testFrame"].location.href = uri;
}




In the HTML wrapper (I modified html-template/index.template.html)
===
(In the  element)




(At the end of the  element)









The javascript testIFrame function is there just to demonstrate that
even with a completely empty application, like this...


http://www.adobe.com/2006/mxml";
layout="absolute">


...after you load the app in the browser, you can enter this in the url
bar:

javascript:testIFrame("testFrame", "http://www.cnn.com";)


...and still get weird behavior.



If Adobe provides robust iframe support, that would really, really be
awesome. What did actually work really whetted my appetite. This opens
the door to some very coolly hybrid UIs and I hope it is something they
can get fixed very soon. I know it would impress a lot of other people
at my own work


-Tony


 
tony pujals| senior engineer | Yahoo! SiteBuilder Express
p. 408.349.6284 | e. tonyp * yahoo-inc * com | y!id tonypujals
 



--
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] ExternalInterface and IFrame

2006-03-27 Thread Tony Pujals
I wanted to create an "dialog" as an html form in an iframe rather than
opening a separate browser window for uploading image files. I also
wanted to create an html page preview using an iframe as well.

I spent an entire Sunday working at this and none of my efforts have
succeeded satisfactorily. I researched the web and came across Crostophe
Coenrats' article, and after modifying it for Flex 2 / AS3, I still
didn't get no satisfaction. A little more research and I found Brian
Deitte's update for AS3 as well and tried his solution, and still no
joy. I tried every variation I could think of, working with fscommand,
navigateToURL, and of course, ExternalInterface.

It appears that it doesn't matter which strategy you use. In all cases,
I came close to achieving what I wanted. The problem even in the
simplest case is that clicking in the iframe, then clicking outside of
it, causes the iframe to disappear until something causes the iframe to
refresh with IE, and nada for FireFox (I'm using IE 6 and FireFox
1.5.0.1 on Windows XP SP2, and of course, Flash 8.5).

Here's a distilled set of the code primarily based on Conraets/Deitte's
work:


Test.mxml
=

http://www.adobe.com/2006/mxml";
layout="absolute">

  
http://"; />


  

  

  




iframe.js
=
function loadIFrame(id, uri) {
var f = document.getElementById(id);
f.style.left = 20;
f.style.top = 80;
f.width = 400;
f.height = 400;
f.style.visibility = "visible";
top.frames["testFrame"].location.href = uri;
// alert("loadIFrame: " + id + ", " + uri);
}

function showIFrame(id){
document.getElementById(id).style.visibility="visible";
// alert("showIFrame: " + id);
}

function hideIFrame(){
document.getElementById(id).style.visibility="hidden";
// alert("hideIFrame: " + id);
}

function moveIFrame(id, x, y, w, h) {
var frameRef=document.getElementById(id);
frameRef.style.left = x;
frameRef.style.top = y;
frameRef.width = w;
frameRef.height = h;
// alert("moveIFrame: " + id + " (" + x + ", " + y + width + ", " +
height + ")");
}

// Ex: type in browser url bar:
// javascript:testIFrame("testFrame", "http://www.cnn.com";)
function testIFrame(id, uri) {
var f = document.getElementById(id);
f.style.left = 10;
f.style.top = 10;
f.width = 400;
f.height = 400;
f.style.visibility = "visible";
top.frames["testFrame"].location.href = uri;
}




In the HTML wrapper (I modified html-template/index.template.html)
===
(In the  element)




(At the end of the  element)









The javascript testIFrame function is there just to demonstrate that
even with a completely empty application, like this...


http://www.adobe.com/2006/mxml";
layout="absolute">


...after you load the app in the browser, you can enter this in the url
bar:

javascript:testIFrame("testFrame", "http://www.cnn.com";)


...and still get weird behavior.



If Adobe provides robust iframe support, that would really, really be
awesome. What did actually work really whetted my appetite. This opens
the door to some very coolly hybrid UIs and I hope it is something they
can get fixed very soon. I know it would impress a lot of other people
at my own work


-Tony


 
tony pujals| senior engineer | Yahoo! SiteBuilder Express
p. 408.349.6284 | e. tonyp * yahoo-inc * com | y!id tonypujals
 



--
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] Extending MXML components (change from 1.5 to 2)

2006-03-23 Thread Tony Pujals











Thank you very much for the response –
you have no idea how timely it is for us internally. I’ve been a strong
advocate for Flex 2. Unfortunately, I can’t say more on a public list,
but I would be very interested in having a private dialog about some of the barriers
that are affecting our direction.

 

Best regards,

 

Tony

 



 

 

tony pujals| senior engineer | Yahoo!
SiteBuilder Express

p. 408.349.6284 | e. tonyp * yahoo-inc * com | y!id tonypujals

 



 









From:
flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Basil Hosmer
Sent: Thursday, March 23, 2006
6:48 AM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders]
Extending MXML components (change from 1.5 to 2)



 



Tony,

 

Yes, we absolutely intend to continue supporting extending MXML
with MXML, with the constraint that only one set of children be specified
anywhere in the chain of derived components or the component instantiation. 

 

What you’re seeing is a bug in beta 2 – the framework
incorrectly raises the “multiple sets of children in base and derived
components” error in cases where the superclass (A.mxml in your example)
in fact has no children.

 

This will be fixed for beta 3; the workaround in beta 2 is to
insert the following  code into the superclass, e.g. A.mxml:

 



/**

 * 
This namespace is used for undocumented APIs -- usually implementation

 * 
details -- which can't be private because they need to visible

 * 
to other classes.

 * 
APIs in this namespace are completely unsupported and are likely to

 * 
change in future versions of Flex.

 */

namespace
mx_internal = "http://www.adobe.com/2006/flex/mx/internal";

 

override
mx_internal function
setDocumentDescriptor(desc:mx.core.UIComponentDescriptor):void

{

  
if (mx_internal::_documentDescriptor &&
mx_internal::_documentDescriptor.properties.childDescriptors)

  
{

 
if (desc.properties.childDescriptors)

 
{


throw new Error("Multiple sets of visual children have been specified for
this component (base component definition and derived component
definition).");

 
}

  
}

  
else

  
{

 
mx_internal::_documentDescriptor = desc;

 
mx_internal::_documentDescriptor.document = this;

  
}

}



 

Basil

 









From: flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] On Behalf
Of Tony Pujals
Sent: Wednesday, March 22, 2006
6:02 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Extending
MXML components (change from 1.5 to 2)



 



In Flex 1.5,
you could create an MXML component and then extend it with another custom
component. For example, this would work:

 



A.mxml









 

 



B.mxml





   




 

 



Test.mxml





   




 

 

 

 

How was this
useful? Well, for example, for an HTML page editor, we had an Element.mxml
component subclassed by ImageElement.mxml and TextElement.mxml.

 

This does not
work with any of the Flex 2 alpha/betas. Flash 8.5 displays this diagnostic:

 

Error:
Multiple sets of visual children have been specified for this component (base
component definition and derived component definition)

   
at
mx.core::Container/http://www.adobe.com/2006/flex/mx/internal::setDocumentDescriptor()

   
at A/initialize()

   
at B/initialize()

   
at
mx.core::UIComponent/http://www.adobe.com/2006/flex/mx/internal::rawChildAdded()

   
at mx.core::UIComponent/addChildAt()

   
at mx.core::Container/addChild()

   
at mx.core::Container/createComponentFromDescriptor()

   
at mx.core::Container/createComponentsFromDescriptors()

   
at mx.core::Application/createComponentsFromDescriptors()

   
at mx.core::Container/mx.core:Container::createChildren()

   
at mx.core::UIComponent/initialize()

   
at mx.core::Container/initialize()

   
at mx.core::Application/initialize()

   
at flextest/initialize()

   
at mx.managers::SystemManager/::initializeChild()

   
at mx.managers::SystemManager/::initializeTopLevelWindow()

   
at mx.managers::SystemManager/::frameEndHandler()

 

 

 

It’s
not that the error message isn’t clear, per se, but since this is
different behavior, I’m curious …. Can you only extend mx
components but not you’re own, or this only possible with ActionScript
components and not mxml….?

 

Thanks,

 

Tony

 

 

tony pujals| senior engineer | Yahoo! SiteBuilder Express

p. 408.349.6284 | e. tonyp
* yahoo-inc * com | y!id tonypujals

 

 



 














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

[flexcoders] Extending MXML components (change from 1.5 to 2)

2006-03-22 Thread Tony Pujals











In Flex 1.5, you could create an MXML component and then
extend it with another custom component. For example, this would work:

 



A.mxml









 

 



B.mxml





    



 

 



Test.mxml





    



 

 

 

 

How was this useful? Well, for example, for an HTML page
editor, we had an Element.mxml component subclassed by ImageElement.mxml and
TextElement.mxml.

 

This does not work with any of the Flex 2 alpha/betas. Flash
8.5 displays this diagnostic:

 

Error: Multiple sets of visual children have been specified
for this component (base component definition and derived component definition)

    at
mx.core::Container/http://www.adobe.com/2006/flex/mx/internal::setDocumentDescriptor()

    at
A/initialize()

    at
B/initialize()

    at
mx.core::UIComponent/http://www.adobe.com/2006/flex/mx/internal::rawChildAdded()

    at
mx.core::UIComponent/addChildAt()

    at
mx.core::Container/addChild()

    at
mx.core::Container/createComponentFromDescriptor()

    at
mx.core::Container/createComponentsFromDescriptors()

    at
mx.core::Application/createComponentsFromDescriptors()

    at
mx.core::Container/mx.core:Container::createChildren()

    at
mx.core::UIComponent/initialize()

    at
mx.core::Container/initialize()

    at
mx.core::Application/initialize()

    at
flextest/initialize()

    at
mx.managers::SystemManager/::initializeChild()

    at
mx.managers::SystemManager/::initializeTopLevelWindow()

    at
mx.managers::SystemManager/::frameEndHandler()

 

 

 

It’s not that the error message isn’t clear, per
se, but since this is different behavior, I’m curious …. Can you
only extend mx components but not you’re own, or this only possible with ActionScript
components and not mxml….?

 

Thanks,

 

Tony

 

 

tony pujals| senior engineer | Yahoo!
SiteBuilder Express

p. 408.349.6284 | e. tonyp * yahoo-inc * com | y!id
tonypujals

 

 












--
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] Starting a Project Now! FLEX 1.5 or 2.0?

2006-03-20 Thread Tony Pujals










Regarding the comment on Flash penetration
below, I don’t know how representative this is of the entire browser
market, but my experience with getting users to upgrade has been positive to
date. The other day I was giving a demo and speaking to a person over the phone
who was prompted to update his flash player version; he immediately did so
without problem, restarted his browser and within a moment was ready to proceed
with the demo.

 

Personally, I’ve never seen a user
balk when the browser prompted him/her to upgrade Flash. It certainly isn’t
the same proposition that updating the Java plugin is. I can’t speak
officially, but I don’t see upgrading to Flash 8.5 being a reason to be
reluctant to exploit the new player and all that Flex 2.0 brings to the table.
I have an impression that quite a few users never upgrade Flash for the same
reason they don’t upgrade Acrobat reader. They simple haven’t been
prompted to do so for any of the content they have accessed, or didn’t
feel the content was compelling enough to tempt them.

 

I’m sure some people might be put
off by it, and I realize there are admins out there who actively prohibit ActiveX
(and upgrades), but if it really is a huge showstopper, I’d really like
to hear some evidence of that. It would be good to factor that into our
internal decision making processes, but for now I would say that from an
engineering and product management perspective, we’re not the only ones
eagerly awaiting the 8.5 release.

 

My 2 cents only….

 



 

 

tony pujals| senior engineer | Yahoo!
SiteBuilder Express

p. 408.349.6284 | e. tonyp * yahoo-inc * com | y!id tonypujals

 



 









From:
flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Richie Rich
Sent: Monday, March 20, 2006 9:51
AM
To: flexcoders@yahoogroups.com
Subject: Re: >< [flexcoders]
Starting a Project Now! FLEX 1.5 or 2.0?



 

Hello people,

Thanks for all the input on this topic. I am fine
with the Flash
Player 8.5 issue as I will be controlling access
to this first project
and can supply the users with the correct player.

The second project will not launch until the end
of the year at best.

Now as far as the "High" cost of
"FLEX". We are already a member of
the enterprise solutions and the development
program with Adobe and We
have already made the choice to partner with Adobe
on various other
software, So I do not think we should have a
problem with FES.

Although I would like to see a bundle created with
FES, Media Server2,
ColdFusion, and Breeze. LOL


Rich


--- In flexcoders@yahoogroups.com, Andriy Panas
<[EMAIL PROTECTED]> wrote:
>
> Hello all,
> 
>   Besides required * HIGH*
licensing cost of Flex 1.5 software, which is
> immediately "no-win" option for
most of independent developers and small
> software companies, what do you think about
penetration rate speed in
> the nearest future of Flash 8.5 player?
> 
>   ARE you all OK with a fact that
your Flex 2 based web application
> launched in the summer 2006 will require from
almost 90%-95% of your
potentials visitors to upgrade to
> Flash 8.5 player prior to the launch of your
web application?
> 
> 
> 
> -- 
> Best regards,
>  Andriy   
mailto:[EMAIL PROTECTED]
>












--
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] Re: Muliple flex apps on tomcat

2006-03-16 Thread Tony Pujals










I second Dave’s recommendation
regarding pre-compilation. Our team ran into the same issues with OutOfMemoryErrors
thrown on our linux servers (never on any of the Windows machines). The
solution was to deploy pre-compiled SWFs.

 



 

 

tony pujals| senior engineer | Yahoo!
SiteBuilder Express

p. 408.349.6284 | e. tonyp * yahoo-inc * com | y!id tonypujals

 



 









From:
flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Dave Wolf
Sent: Wednesday, March 15, 2006
8:24 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Muliple
flex apps on tomcat



 

You can run many web apps
that serve SWF content.  However, I would
seriously avoid the JIT compilation in favor of
pre-compiling your SWF
files.  That SWF compiler leaks pretty
heavily in 1.5.  

In nay case, you should be able to do what you are
trying here.  I am
curious why you want to run these as seperate web
apps?  Whats the value?

I would really encourage you to look into
pre-compiling the SWFs.

-- 
Dave Wolf
Cynergy Systems, Inc.
Macromedia Flex Alliance Partner
http://www.cynergysystems.com

Email:  [EMAIL PROTECTED]
Office: 866-CYNERGY


--- In flexcoders@yahoogroups.com, Jeff Krueger
<[EMAIL PROTECTED]>
wrote:
>
> All,
>  
> I am trying to run
basically the same web app as two instances
on the same server.  So I have the same wars
but with different
web.xml for config and different db
connections.  But only one of the
apps will start, and when the other web is hit for
the first time I
get a out of memory error
>  
> 2006-03-15 19:30:28
StandardWrapperValve[FlexMxmlServlet]:
Servlet.service() for servlet FlexMxmlServlet
threw exception
> java.lang.OutOfMemoryError
> 
>  
> This is on tomcat 5 and I have the mem config
for it set to -Xms512m
-Xmx1536m
>  
> It won't even create the generated
files?  Can you run two flex apps
on one server?  Should they share
cache?  Should I not dup all the
flex parts for each app.  Both are are 100%
complete.
>  
> Any thoughts or help would be helpful.
>  
> Thanks
>  
> Jeff
>












--
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 2 Style Explorer (beta)

2006-03-16 Thread Tony Pujals
Title: Re: [flexcoders] Flex 2 Style Explorer (beta)










Awesome! Thanks!

 



 

 

tony pujals| senior engineer | Yahoo!
SiteBuilder Express

p. 408.349.6284 | e. tonyp * yahoo-inc dot com | y!id tonypujals

 



 









From:
flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Peter Baird
Sent: Wednesday, March 15, 2006
5:45 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Flex 2
Style Explorer (beta)



 

Don’t you worry.
 I’m implementing “view source” into the “beta
2” version that will be released on the heels of Flex 2 beta 2.  

-Peter


On 3/15/06 6:48 PM, "Tony Pujals" <[EMAIL PROTECTED]> wrote:

I agree,
very, very nice. And it would be even nicer if the source code were available
as part of the download. Maybe if enough people post their comments on the
download page to indicate interest..?
 
-Tony
 


 
tony pujals| senior engineer | Yahoo! SiteBuilder Express
p. 408.349.6284 | e. tonyp * yahoo-inc dot com 
 | y!id tonypujals
 







From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED]
On Behalf Of João Fernandes
Sent: Tuesday, March 14, 2006 9:00
AM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Flex 2
Style Explorer (beta)

Hi there, 
 
A very nice job, I just want to make a remark, In the panel option if you set
alpha = 1 so you can use highlight alphas, if you set border style = none you
can see a small white corner. Is this supposed to happen?
 
Regards,
 

João Fernandes
Sistemas
de Informação
Programador Informático
Cofina media

Avenida
João Crisóstomo, Nº 72 . 1069-043 Lisboa PORTUGAL
Tel (+351) 213 185 200 . Fax (+351) 213 540 370
[EMAIL PROTECTED] 








From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED]
On Behalf Of Peter Baird
Sent: terça-feira, 14 de Março de
2006 16:38
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Flex 2 Style
Explorer (beta)

Just
wanted to let you that Flex 2 Style Explorer (beta) is available for download.
 The usual beta caveats apply.

Read more here:

http://weblogs.macromedia.com/mc/archives/2006/03/flex_2_style_ex.cfm


/ \®   PETER BAIRD
888/   \888
   User
Experience Consultant
88/
 /  \88    Adobe Consulting | Adobe
Systems, Inc
8/
 /8\  \8    275 Grove St. Newton, MA
/
 /888\  \    Office: 617.219.2126 |
Cell: 617.803.6804
  \8\   AIM:
pbaird00 | Y!IM: pbaird00




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



 







 



/ \®   PETER BAIRD
888/   \888
   User
Experience Consultant
88/
 /  \88    Adobe Consulting | Adobe
Systems, Inc
8/
 /8\  \8    275 Grove St. Newton, MA
/
 /888\  \    Office: 617.219.2126 |
Cell: 617.803.6804
  \8\   AIM:
pbaird00 | Y!IM: pbaird00










--
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 2 Style Explorer (beta)

2006-03-15 Thread Tony Pujals
Title: Flex 2 Style Explorer (beta)










I agree, very, very nice. And it would be
even nicer if the source code were available as part of the download. Maybe if
enough people post their comments on the download page to indicate interest..?

 

-Tony

 



 

 

tony pujals| senior engineer | Yahoo!
SiteBuilder Express

p. 408.349.6284 | e. tonyp * yahoo-inc dot com | y!id tonypujals

 



 









From: flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] On Behalf
Of João Fernandes
Sent: Tuesday, March 14, 2006 9:00
AM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Flex 2
Style Explorer (beta)



 

Hi there, 

 

A very nice job, I just want to make a
remark, In the panel option if you set alpha = 1 so you can use highlight
alphas, if you set border style = none you can see a small white corner. Is this supposed to happen?

 

Regards,

 



João Fernandes
Sistemas
de Informação

Programador
Informático
Cofina media

Avenida
João Crisóstomo, Nº 72 . 1069-043 Lisboa PORTUGAL
Tel
(+351) 213 185 200 . Fax (+351) 213 540 370
[EMAIL PROTECTED]











From:
flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Peter Baird
Sent: terça-feira, 14 de Março de
2006 16:38
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Flex 2 Style
Explorer (beta)



 

Just wanted to let
you that Flex 2 Style Explorer (beta) is available for download.  The
usual beta caveats apply.

Read more here:

http://weblogs.macromedia.com/mc/archives/2006/03/flex_2_style_ex.cfm


/ \®   PETER BAIRD
888/   \888
   User
Experience Consultant
88/
 /  \88    Adobe Consulting | Adobe
Systems, Inc
8/
 /8\  \8    275 Grove St. Newton, MA
/
 /888\  \    Office: 617.219.2126 |
Cell: 617.803.6804
  \8\   AIM:
pbaird00 | Y!IM: pbaird00




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

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] Re: Capture events a la the underlying transparent window from PopUpManager

2006-03-15 Thread Tony Pujals










Great suggestion, I’ll definitely
give it a shot on my end … much appreciated, thanks!

 



 

 

tony pujals| senior engineer | Yahoo!
SiteBuilder Express

p. 408.349.6284 | e. tonyp * yahoo-inc dot com | y!id tonypujals

 



 









From:
flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of dopenhagen
Sent: Tuesday, March 14, 2006 4:13
AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Capture
events a la the underlying transparent window from PopUpManager



 

Hi Everybody,

If its a hack, workaround or the way its suppose
to work does not 
matter as I have found a solution that works.

Just as the documentation for the PopUpManager
suggests, the solution 
is to put a independent layer underneath the layer
containing the 
components and then disable this layer. This
disabling will 
eventually intercept all user input and discard
them as it is 
disabled.

Thanks anyways for the help everybody.

Cheers,
Pedro

--- In flexcoders@yahoogroups.com,
"dopenhagen" <[EMAIL PROTECTED]> 
wrote:
>
> Hi Everybody,
> 
> Thanks for your help.
> However, before I raise the white flag I jsut
want to make I am not 
> missing anything...
> 
> Excempt from the documentation for the
UIObject mouseDown event:
> 
> "...The event will only be broadcast by
the component if the mouse 
is 
> not also over a child of the component that
has a mouseDown 
listener, 
> or the component is not obscured by another
component with a 
> mouseDown listener..."
> 
> They way I interpret that is that it should
not propagate if
> there is a handler registered?
> 
> Please let me know if I am minunderstanding
anyting ?
> 
> Best regards,
> Pedro
> 
> --- In flexcoders@yahoogroups.com,
"Gordon Smith"  wrote:
> >
> > Like Manish, I'm also rusty now on 1.5,
but my recollection is 
the 
> same:
> > Setting event.bubbles = false in your
Panel's mouseDown handler 
> should
> > prevent it from bubbling up the parent
chain.
> > 
> > And if this doesn't work and we can't
figure out how to prevent 
the
> > bubbling, then you could put protection
code in the ancestors' 
mouse
> > handlers to check whether event.target
is what you expect it to 
be.
> > 
> > In Flex 2.0, you can use event.stopPropagation()
or
> > event.stopImmediatePropagation() to
prevent the bubbling. The 
> difference
> > is that stopPropagation() will allow the
remaining handlers on 
the 
> same
> > object to execute.
> > 
> > - Gordon
> > 
> > 
> > -Original Message-
> > From: flexcoders@yahoogroups.com 
> [mailto:[EMAIL PROTECTED] On
> > Behalf Of Manish Jethani
> > Sent: Monday, March 13, 2006 8:09 AM
> > To: flexcoders@yahoogroups.com
> > Subject: Re: [flexcoders] Re: Capture
events a la the underlying
> > transparent window from PopUpManager
> > 
> > On 3/13/06, dopenhagen
 wrote:
> > 
> > > Sorry, no - its actually the
opposite I am trying to achieve. 
> Where
> > the
> > > underlying layers do not recieve
the event.
> > >
> > > Part of my MXML:
> > >
> > > 
> > [snip]
> > 
> >
>
mouseDown="this.shoppingcartViewHelper.onMouseDown
(event)"
> > [snip]
> > 
> > > The questions is how do I get this
panel to capture all mouse-
> events
> > > and NOT bubble them on to the lower
layers?
> > 
> > Sorry, I really don't remember how this
worked in Flex 1.5, but 
can
> > you try setting event.bubbles to false
(in the mouseDown handler)?
> > 
> > Manish
> > 
> > 
> > --
> > 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] Re: Capture events a la the underlying transparent window from PopUpManager

2006-03-13 Thread Tony Pujals










I basically posted the same question on
2/14/06 (“Mouse Event Filtering”) and nobody was able to provide a
solution.

 

I found this link that explained the
grisly situation with Flash event capturing (http://senocular.com/flash/tutorials/buttoncapturing/).
I had to move on for a while working on a rich text editor that worked around
Flash’s also grisly text selection timing problems (which you have to
deal with if you want to implement something like a text styles toolbar, and
you want to refresh the selected text, but need to do it after Flash finishes
its updating several frames later).

 

Anyway, I’m working on a slight
variation of the delegation method discussed in the article, but I’m not happy
that I have to do something that the framework should be doing for me, which is
checking to see if a mouse event occurs within the bounds of the topmost
component of a container’s children, and invoking the mouse handler
there.

 

If I come up with a reliable and generic
enough solution, I’ll be happy to post it … but it would be nice if
someone with experience/knowledge in this area could at least indicate if this
is a problem that has been addressed with Flex 2.0….

 

-Tony



 

 

tony pujals| senior engineer | Yahoo!
SiteBuilder Express

p. 408.349.6284 | e. tonyp * yahoo-inc . com | y!id
tonypujals

 



 









From:
flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Manish Jethani
Sent: Monday, March 13, 2006 8:09
AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Re:
Capture events a la the underlying transparent window from PopUpManager



 

On 3/13/06, dopenhagen
<[EMAIL PROTECTED]> wrote:

> Sorry, no - its actually the opposite I am
trying to achieve. Where the
> underlying layers do not recieve the event.
>
> Part of my MXML:
>
> 
[snip]

>
mouseDown="this.shoppingcartViewHelper.onMouseDown(event)"
[snip]

> The questions is how do I get this panel to
capture all mouse-events
> and NOT bubble them on to the lower layers?

Sorry, I really don't remember how this worked in
Flex 1.5, but can
you try setting event.bubbles to false (in the
mouseDown handler)?

Manish








--
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] Actionscripting and dispatching Events

2006-02-16 Thread Tony Pujals
Without looking at your code or knowing specifically where the references 
stored in currentGroup originated ... I would nevertheless suspect that you are 
working with Flex 1.5 and having an issue with the "this is not this this"  
scoping problem. You might want to read these:

http://www.macromedia.com/devnet/flash/articles/eventproxy.html
http://www.erikbianchi.com/archives/flash_platform/


Essentially, when you are adding your event listeners, add a delegate to ensure 
that on callback the listener will be using the correct scope when 
dereferencing the event parameters.

Where you might have code like this:

  controller.addEventListener("changeGroup", function(event) {
// warning: grp may be in wrong scope...
var grp = event.group;
// do something...
  });

Change it to this:

  controller.addEventListener("changeGroup",
  mx.utils.Delegate.create(this, function(event) {

var grp = event.group;
// do something...
  }));
  


Or if your code looked like this:



  controller.addEventListener("changeGroup", callbackFunc);

  
Change it to this:

  var callbackDelegate;
  ...

  callbackDelegate = mx.utils.Delegate.create(this, callbackFunc);

  controller.addEventListener("changeGroup", callbackDelegate);
  ...

  Controller.removeEventListener("changeGroup", callbackDelegate);



Good luck.

-Tony


tony pujals| senior engineer | Yahoo! SiteBuilder Express
p. 408.349.6284 | e. tonyp * yahoo-inc . com | y!id tonypujals


From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Sauro, 
Nick
Sent: Thursday, February 16, 2006 10:57 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Actionscripting and dispatching Events

Hey coders, I am running into a problem with dispatching events in AS.

I have an EventDispatcher as part of a Controller object I created.  This 
EventDispatcher has 3 filter objects registered as listeners for a certain 
event.  Now, when I fire that event, I fire it like so:

eventDispatcher.dispatchEvent({type:"changeGroup", group:currentGroup});

Now currentGroup is another object of type Group, and has an associative array 
of arrays in it of different pieces of data used by the different filters.  

Now,through tracing, when before I dispatch this event, the object is 
intact(all its fields are there with no undefines), but when I dispatch the 
event, and trace its properties on the filter side, I'm getting undefined.  
I've tried this via casting to Group object, as well as just leaving it in its 
Object state.   In particular, an array inside the array is coming up as 
undefined.
The weird part of it is, on the filter side, when I trace the array's length, 
its there, but when I attempt to do anything else to it after that initial 
trace call, its all undefined. 

Am I doing anything blatantly wrong?

Many Thanks

Nick


--
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 
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] Re: Mouse Event Filtering

2006-02-16 Thread Tony Pujals
Hi Matt, 

Yeah, I mention below that I tried this and got a partial solution to my 
problem. The issue is that once I do that, ALL the events are blocked and I 
don't know the correct way to ensure that the toolbar buttons themselves get 
passed mouse clicks But if the solution lies in pursuing this direction, 
then thanks for the tip.

-Tony

tony pujals| senior engineer | Yahoo! SiteBuilder Express
p. 408.349.6284 | e. tonyp * yahoo-inc . com | y!id tonypujals



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Matt 
Chotin
Sent: Wednesday, February 15, 2006 10:57 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Re: Mouse Event Filtering

Can you try assigning onPress to the component, I think that's how we've gotten 
our blockers to work in the past.

Matt

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Tony 
Pujals
Sent: Wednesday, February 15, 2006 3:33 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Re: Mouse Event Filtering

Yes, that's exactly the similarity -- but an obscured component should not even 
have to be aware of a toolbar component above it. It should not receive a 
mouseDown event if the component above is handling it. It's only my toolbar 
canvas that seems to allow events to "pass through" to the TextArea below it -- 
the toolbar buttons don't.

As far as code, I'll create a streamlined example that should make it a little 
easier to see what I'm talking about  Thanks again, Doug.



tony pujals| senior engineer | Yahoo! SiteBuilder Express
p. 408.349.6284 | e. tonyp * yahoo-inc . com | y!id tonypujals



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Doug 
Lowder
Sent: Wednesday, February 15, 2006 3:13 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Mouse Event Filtering

Yeah, it's possible this is something entirely different from my 
situation, but I think there is still the similarity that an 
obscured ocmponent is acting as if it's not obscured.

Can you post some code?


--- In flexcoders@yahoogroups.com, "Tony Pujals" <[EMAIL PROTECTED]> wrote:
>
> Hey Doug - thanks for the input. This is a link to a screenshot 
that may help clear up the issue:
> http://www.geocities.com/tonypujals/eventcapture.jpg
> 
> What the screenshot shows is that I dragged the toolbar over the 
TextArea component. Then, I dragged the toolbar just a little bit 
again ... which resulted in the highlighted text that you see 
displayed. In other words, the toolbar isn't handling events from 
other components when it shouldn't - the opposite is happening: 
other components are receiving events I don't want them to. When I 
mouse down and drag the toolbar, I want it to move without events 
propagating to components below it. I want the toolbar events to be 
consumed when they act upon the toolbar.
> 
> Also, what the picture doesn't show since Windows doesn't capture 
it in screenshots is that the mouse cursor over the toolbar is an i-
beam cursor - which is what it should be when over text, but not 
over the toolbar. It is only an i-beam when it is not specifically 
over one of the toolbar buttons, just the toolbar gradient 
background Canvas.
> 
> Rather than using mouse handlers for the toolbar, I tried 
overriding the onMouseXXX methods of MovieClip in the hope perhaps 
that this would prevent some superclass behavior which forwards the 
mouse events to further processing, but it didn't help
> 
> Argh...
> 
> 
> 
> tony pujals| senior engineer | Yahoo! SiteBuilder Express
> p. 408.349.6284 | e. tonyp * yahoo-inc . com | y!id tonypujals
> 
> 
> 
> From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On Behalf Of Doug Lowder
> Sent: Wednesday, February 15, 2006 12:41 PM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Re: Mouse Event Filtering
> 
> I should have pointed out I was talking specifically about the 
> custom floating toolbar you mentioned in point 2 of your original 
> post.  It seems to me your toolbar is handling events from other 
> components when it shouldn't.  Try putting the event.target test 
> into your toolbar code; no need to put it into any other 
components.
> 
> Doug
> 
> --- In flexcoders@yahoogroups.com, "Tony Pujals"  wrote:
> >
> > Thanks for the tip, Doug ... the only problem is that I want the 
> toolbar to be a generic component that doesn't require any 
specially 
> awareness from other components in the form. I don't want to 
mandate 
> that other programmers have to modify their event-handling code 
just 
> to accommodate my

RE: [flexcoders] Re: Mouse Event Filtering

2006-02-15 Thread Tony Pujals
Yes, that's exactly the similarity -- but an obscured component should not even 
have to be aware of a toolbar component above it. It should not receive a 
mouseDown event if the component above is handling it. It's only my toolbar 
canvas that seems to allow events to "pass through" to the TextArea below it -- 
the toolbar buttons don't.

As far as code, I'll create a streamlined example that should make it a little 
easier to see what I'm talking about  Thanks again, Doug.



tony pujals| senior engineer | Yahoo! SiteBuilder Express
p. 408.349.6284 | e. tonyp * yahoo-inc . com | y!id tonypujals



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Doug 
Lowder
Sent: Wednesday, February 15, 2006 3:13 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Mouse Event Filtering

Yeah, it's possible this is something entirely different from my 
situation, but I think there is still the similarity that an 
obscured ocmponent is acting as if it's not obscured.

Can you post some code?


--- In flexcoders@yahoogroups.com, "Tony Pujals" <[EMAIL PROTECTED]> wrote:
>
> Hey Doug - thanks for the input. This is a link to a screenshot 
that may help clear up the issue:
> http://www.geocities.com/tonypujals/eventcapture.jpg
> 
> What the screenshot shows is that I dragged the toolbar over the 
TextArea component. Then, I dragged the toolbar just a little bit 
again ... which resulted in the highlighted text that you see 
displayed. In other words, the toolbar isn't handling events from 
other components when it shouldn't - the opposite is happening: 
other components are receiving events I don't want them to. When I 
mouse down and drag the toolbar, I want it to move without events 
propagating to components below it. I want the toolbar events to be 
consumed when they act upon the toolbar.
> 
> Also, what the picture doesn't show since Windows doesn't capture 
it in screenshots is that the mouse cursor over the toolbar is an i-
beam cursor - which is what it should be when over text, but not 
over the toolbar. It is only an i-beam when it is not specifically 
over one of the toolbar buttons, just the toolbar gradient 
background Canvas.
> 
> Rather than using mouse handlers for the toolbar, I tried 
overriding the onMouseXXX methods of MovieClip in the hope perhaps 
that this would prevent some superclass behavior which forwards the 
mouse events to further processing, but it didn't help
> 
> Argh...
> 
> 
> 
> tony pujals| senior engineer | Yahoo! SiteBuilder Express
> p. 408.349.6284 | e. tonyp * yahoo-inc . com | y!id tonypujals
> 
> 
> 
> From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On Behalf Of Doug Lowder
> Sent: Wednesday, February 15, 2006 12:41 PM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Re: Mouse Event Filtering
> 
> I should have pointed out I was talking specifically about the 
> custom floating toolbar you mentioned in point 2 of your original 
> post.  It seems to me your toolbar is handling events from other 
> components when it shouldn't.  Try putting the event.target test 
> into your toolbar code; no need to put it into any other 
components.
> 
> Doug
> 
> --- In flexcoders@yahoogroups.com, "Tony Pujals"  wrote:
> >
> > Thanks for the tip, Doug ... the only problem is that I want the 
> toolbar to be a generic component that doesn't require any 
specially 
> awareness from other components in the form. I don't want to 
mandate 
> that other programmers have to modify their event-handling code 
just 
> to accommodate my toolbar weirdness  I'm a little surprised 
this 
> has turned out to be so challenging. Since I know various 
components 
> provided by Macromedia (such as Button) do behave correctly, I 
guess 
> that there is a 'standardized' way to implement this
> > 
> > 
> > 
> > tony pujals| senior engineer | Yahoo! SiteBuilder Express
> > p. 408.349.6284 | e. tonyp * yahoo-inc . com | y!id tonypujals
> > 
> > 
> > From: flexcoders@yahoogroups.com 
> [mailto:[EMAIL PROTECTED] On Behalf Of Doug Lowder
> > Sent: Wednesday, February 15, 2006 11:02 AM
> > To: flexcoders@yahoogroups.com
> > Subject: [flexcoders] Re: Mouse Event Filtering
> > 
> > Tony, I had a similar problem in Flex 1.5 with a custom 
> TitleWindow 
> > component that was receiving events from objects underneath it.  
> > Never did find out exactly why that was happening; non-100% 
alpha 
> > value, perhaps?  Anyway, I solved it by wrapping a simple check 
> > around the even

RE: [flexcoders] Re: Mouse Event Filtering

2006-02-15 Thread Tony Pujals
Hey Doug - thanks for the input. This is a link to a screenshot that may help 
clear up the issue:
http://www.geocities.com/tonypujals/eventcapture.jpg

What the screenshot shows is that I dragged the toolbar over the TextArea 
component. Then, I dragged the toolbar just a little bit again ... which 
resulted in the highlighted text that you see displayed. In other words, the 
toolbar isn't handling events from other components when it shouldn't - the 
opposite is happening: other components are receiving events I don't want them 
to. When I mouse down and drag the toolbar, I want it to move without events 
propagating to components below it. I want the toolbar events to be consumed 
when they act upon the toolbar.

Also, what the picture doesn't show since Windows doesn't capture it in 
screenshots is that the mouse cursor over the toolbar is an i-beam cursor - 
which is what it should be when over text, but not over the toolbar. It is only 
an i-beam when it is not specifically over one of the toolbar buttons, just the 
toolbar gradient background Canvas.

Rather than using mouse handlers for the toolbar, I tried overriding the 
onMouseXXX methods of MovieClip in the hope perhaps that this would prevent 
some superclass behavior which forwards the mouse events to further processing, 
but it didn't help

Argh...



tony pujals| senior engineer | Yahoo! SiteBuilder Express
p. 408.349.6284 | e. tonyp * yahoo-inc . com | y!id tonypujals



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Doug 
Lowder
Sent: Wednesday, February 15, 2006 12:41 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Mouse Event Filtering

I should have pointed out I was talking specifically about the 
custom floating toolbar you mentioned in point 2 of your original 
post.  It seems to me your toolbar is handling events from other 
components when it shouldn't.  Try putting the event.target test 
into your toolbar code; no need to put it into any other components.

Doug

--- In flexcoders@yahoogroups.com, "Tony Pujals" <[EMAIL PROTECTED]> wrote:
>
> Thanks for the tip, Doug ... the only problem is that I want the 
toolbar to be a generic component that doesn't require any specially 
awareness from other components in the form. I don't want to mandate 
that other programmers have to modify their event-handling code just 
to accommodate my toolbar weirdness  I'm a little surprised this 
has turned out to be so challenging. Since I know various components 
provided by Macromedia (such as Button) do behave correctly, I guess 
that there is a 'standardized' way to implement this
> 
> 
> 
> tony pujals| senior engineer | Yahoo! SiteBuilder Express
> p. 408.349.6284 | e. tonyp * yahoo-inc . com | y!id tonypujals
> 
> 
> From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On Behalf Of Doug Lowder
> Sent: Wednesday, February 15, 2006 11:02 AM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Re: Mouse Event Filtering
> 
> Tony, I had a similar problem in Flex 1.5 with a custom 
TitleWindow 
> component that was receiving events from objects underneath it.  
> Never did find out exactly why that was happening; non-100% alpha 
> value, perhaps?  Anyway, I solved it by wrapping a simple check 
> around the event handler that makes sure the target property of 
the 
> event is the current object: 
> 
> if (event.target == this) { // handle the event... }
> 
> It might be worth trying that somewhere, like in a delegate for 
the 
> mouseMove event or in handleEvent().
> 
> Hope that's of some help.
> 
> Doug
> 
> 
> --- In flexcoders@yahoogroups.com, "Tony Pujals"  wrote:
> >
> > Well, the Flash asdocs really don't make this clear, but I 
> initially had a suspicion that overriding a handler instead of 
> registering a listener might be the answer. I didn't pursue that 
> direction right away because the method signatures don't return a 
> Boolean or some other value to indicate that an event was handled 
> and no further processing is wanted.
> > 
> > In any case, I was able to achieve the glass pane effect that I 
> wanted this morning with the following code:
> > 
> > 
> >   options = { width: "100%", height: "100%"};
> >   Canvas(createChild(Canvas, "_glassPane", options));
> >   _glassPane.setStyle("backgroundColor", "#FF00FF");
> >   _glassPane.alpha = 0;
> >   _glassPane.visible = false;
> > 
> >   MovieClip(_glassPane).onPress = function() {}
> > 
> > 
> > All of the above was required: without a backgroundColor b

RE: [flexcoders] Re: Mouse Event Filtering

2006-02-15 Thread Tony Pujals
Thanks for the tip, Doug ... the only problem is that I want the toolbar to be 
a generic component that doesn't require any specially awareness from other 
components in the form. I don't want to mandate that other programmers have to 
modify their event-handling code just to accommodate my toolbar weirdness  
I'm a little surprised this has turned out to be so challenging. Since I know 
various components provided by Macromedia (such as Button) do behave correctly, 
I guess that there is a 'standardized' way to implement this



tony pujals| senior engineer | Yahoo! SiteBuilder Express
p. 408.349.6284 | e. tonyp * yahoo-inc . com | y!id tonypujals


From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Doug 
Lowder
Sent: Wednesday, February 15, 2006 11:02 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Mouse Event Filtering

Tony, I had a similar problem in Flex 1.5 with a custom TitleWindow 
component that was receiving events from objects underneath it.  
Never did find out exactly why that was happening; non-100% alpha 
value, perhaps?  Anyway, I solved it by wrapping a simple check 
around the event handler that makes sure the target property of the 
event is the current object: 

if (event.target == this) { // handle the event... }

It might be worth trying that somewhere, like in a delegate for the 
mouseMove event or in handleEvent().

Hope that's of some help.

Doug


--- In flexcoders@yahoogroups.com, "Tony Pujals" <[EMAIL PROTECTED]> wrote:
>
> Well, the Flash asdocs really don't make this clear, but I 
initially had a suspicion that overriding a handler instead of 
registering a listener might be the answer. I didn't pursue that 
direction right away because the method signatures don't return a 
Boolean or some other value to indicate that an event was handled 
and no further processing is wanted.
> 
> In any case, I was able to achieve the glass pane effect that I 
wanted this morning with the following code:
> 
> 
>   options = { width: "100%", height: "100%"};
>   Canvas(createChild(Canvas, "_glassPane", options));
>   _glassPane.setStyle("backgroundColor", "#FF00FF");
>   _glassPane.alpha = 0;
>   _glassPane.visible = false;
> 
>   MovieClip(_glassPane).onPress = function() {}
> 
> 
> All of the above was required: without a backgroundColor being 
set, events weren't captured at all; The alpha, of course, was to 
make the glass pane actually invisible (there maybe other properties 
beside backgroundColor that also work for causing events to get 
caught, but I haven't experimented). The visible property -- once a 
backgroundColor property is set -- is what enables and disables the 
event capturing.
> 
> 
> However, for the toolbar that I also wanted to capture events so 
the text component below doesn't receive them, this is not yet a 
complete solution because it also prevents the child components (the 
toolbar buttons) from getting any events either. I've written some 
code to iterate the child components, but I don't know what to pass 
to them -- it seems intrinsically wrong that the toolbar needs to 
become an event manager from its onPress handler:
> 
> // doesn't work -- onPress doesn't have event parameter anyway...
> 
> MovieClip(this).onPress = mx.utils.Delegate.create(this, function
(event) {
>   var comp : UIObject = null;
>   for (var i : Number = 0; i < childDescriptors.length; i++) {
> comp = getChildAt(i);
> if (hitTest(comp)) {
>   comp.handleEvent(event);
> }
>   }
> });
> 
> (Incidentally, if there is some other more appropriate way for 
iterating child components, I'd appreciate hearing about it).
> 
> So Flash/Flex gurus ... what am I missing here...? Thanks!
> 
> Tony
> 
> tony pujals| senior engineer | Yahoo! SiteBuilder Express
> p. 408.349.6284 | e. tonyp * yahoo-inc . com | y!id tonypujals
> 
> 
> From: Tony Pujals 
> Sent: Wednesday, February 15, 2006 7:43 AM
> To: 'flexcoders@yahoogroups.com'
> Subject: RE: [flexcoders] Mouse Event Filtering
> 
> Sorry, I don't know if this works in the Flex 2 beta, but I should 
have specified that we're working with Flex 1.5 at Yahoo. 
Unfortunately, EventDispatcher states:
> 
>     function addEventListener(eventType:String, 
eventListener):Void
>     {
>     // Note: In the future, we may add 
a third parameter,
>     // useCapture:Boolean, to be 
compliant with the
>     // DOM Level 3 Events spec,
>  

RE: [flexcoders] Mouse Event Filtering

2006-02-15 Thread Tony Pujals
Well, the Flash asdocs really don't make this clear, but I initially had a 
suspicion that overriding a handler instead of registering a listener might be 
the answer. I didn't pursue that direction right away because the method 
signatures don't return a Boolean or some other value to indicate that an event 
was handled and no further processing is wanted.

In any case, I was able to achieve the glass pane effect that I wanted this 
morning with the following code:


options = { width: "100%", height: "100%"};
Canvas(createChild(Canvas, "_glassPane", options));
_glassPane.setStyle("backgroundColor", "#FF00FF");
_glassPane.alpha = 0;
_glassPane.visible = false;

MovieClip(_glassPane).onPress = function() {}


All of the above was required: without a backgroundColor being set, events 
weren't captured at all; The alpha, of course, was to make the glass pane 
actually invisible (there maybe other properties beside backgroundColor that 
also work for causing events to get caught, but I haven't experimented). The 
visible property -- once a backgroundColor property is set -- is what enables 
and disables the event capturing.


However, for the toolbar that I also wanted to capture events so the text 
component below doesn't receive them, this is not yet a complete solution 
because it also prevents the child components (the toolbar buttons) from 
getting any events either. I've written some code to iterate the child 
components, but I don't know what to pass to them -- it seems intrinsically 
wrong that the toolbar needs to become an event manager from its onPress 
handler:

// doesn't work -- onPress doesn't have event parameter anyway...

MovieClip(this).onPress = mx.utils.Delegate.create(this, function(event) {
  var comp : UIObject = null;
  for (var i : Number = 0; i < childDescriptors.length; i++) {
comp = getChildAt(i);
if (hitTest(comp)) {
  comp.handleEvent(event);
}
  }
});

(Incidentally, if there is some other more appropriate way for iterating child 
components, I'd appreciate hearing about it).

So Flash/Flex gurus ... what am I missing here...? Thanks!

Tony

tony pujals| senior engineer | Yahoo! SiteBuilder Express
p. 408.349.6284 | e. tonyp * yahoo-inc . com | y!id tonypujals


From: Tony Pujals 
Sent: Wednesday, February 15, 2006 7:43 AM
To: 'flexcoders@yahoogroups.com'
Subject: RE: [flexcoders] Mouse Event Filtering

Sorry, I don't know if this works in the Flex 2 beta, but I should have 
specified that we're working with Flex 1.5 at Yahoo. Unfortunately, 
EventDispatcher states:

    function addEventListener(eventType:String, eventListener):Void
    {
    // Note: In the future, we may add a third 
parameter,
    // useCapture:Boolean, to be compliant with the
    // DOM Level 3 Events spec,
    // 
http://www.w3.org/TR/DOM-Level-3-Events/events.html.
    .
    .
    .

This would have been very convenient if it were implemented. Nevertheless, 
Button and other components do seem able to capture the event. Is this a 
question for one of the Flash lists (any recommendation to which list I should 
post this question)?

Thanks, Matt - if you or anyone else has any other ideas, I'd really love to 
hear them

-Tony



tony pujals| senior engineer | Yahoo! SiteBuilder Express
p. 408.349.6284 | e. tonyp * yahoo-inc . com | y!id tonypujals

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Matt 
Chotin
Sent: Tuesday, February 14, 2006 9:45 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Mouse Event Filtering

you want to add your mouse event listener with useCapture set to true
and then call stopPropagation on the event in your handler (I think).  I
believe that will prevent it from moving further down the hierarchy.

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Tony Pujals
Sent: Tuesday, February 14, 2006 5:27 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Mouse Event Filtering

There are two variations to my question, but they should share a common
solution:

1) I want to create a "glass pane" - ie, a transparent layer that can
capture/consume mouse events without allowing the event to bubble to a
component below it. I've tried to achieve this effect with a transparent
Canvas, but the component below it (eg, a TextArea), also catches the
event.

2) I have a floating toolbar that extends Canvas. I don't want to use
the PopUpManager because of issues with the FocusManager and TextArea
that cau

RE: [flexcoders] Mouse Event Filtering

2006-02-15 Thread Tony Pujals










Sorry, I don’t know if this works in
the Flex 2 beta, but I should have specified that we’re working with Flex
1.5 at Yahoo. Unfortunately, EventDispatcher states:

 

    function addEventListener(eventType:String,
eventListener):Void

    {

    // Note: In
the future, we may add a third parameter,

    //
useCapture:Boolean, to be compliant with the

    // DOM
Level 3 Events spec,

    //
http://www.w3.org/TR/DOM-Level-3-Events/events.html.

    .

    .

    .

 

This would have been very convenient if it were
implemented. Nevertheless, Button and other components do seem able to capture
the event. Is this a question for one of the Flash lists (any recommendation to
which list I should post this question)?

 

Thanks, Matt – if you or anyone else
has any other ideas, I’d really love to hear them

 

-Tony

 



 

 



tony pujals| senior engineer | Yahoo! SiteBuilder Express
p. 408.349.6284 | e. tonyp * yahoo-inc . com |
y!id tonypujals











From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Matt Chotin
Sent: Tuesday, February 14, 2006
9:45 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Mouse
Event Filtering



 

you want to add your mouse
event listener with useCapture set to true
and then call stopPropagation on the event in your
handler (I think).  I
believe that will prevent it from moving further
down the hierarchy.

-Original Message-
From: flexcoders@yahoogroups.com
[mailto:flexcoders@yahoogroups.com]
On
Behalf Of Tony Pujals
Sent: Tuesday, February 14, 2006 5:27 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Mouse Event Filtering

There are two variations to my question, but they
should share a common
solution:

1) I want to create a "glass pane" - ie,
a transparent layer that can
capture/consume mouse events without allowing the
event to bubble to a
component below it. I've tried to achieve this
effect with a transparent
Canvas, but the component below it (eg, a
TextArea), also catches the
event.

2) I have a floating toolbar that extends Canvas.
I don't want to use
the PopUpManager because of issues with the
FocusManager and TextArea
that causes text to be selected incorrectly when
focus is returned after
focus was transferred to a toolbar button. If the
toolbar is floating
above the TextArea component, the cursor changes
to an ibeam. If I click
down on the toolbar to drag it, the toolbar drags,
but the TextArea also
gets the events, causing text to become selected.
I want the toolbar to
consume the mouse events occurring on it without
any further event
bubbling.


Since the toolbar has a mouseMove handler that
allows me to drag it, I
can drag even by pressing mouse down on a toolbar
button. I guess the
toolbar as parent is receiving and handling the
mousedown, even though
the mouse down event is also propagating to its
child button component
as well (I actually do not want this behavior
either, but I suppose I
can solve this easily enough with hitTest). But
what is really
interesting is that the event stops there if it's
caught by the button
-- the TextArea below the toolbar doesn't get the
event in this case. So
something about a Button or its superclasses makes
it special, but the
difference isn't apparent to me in the AS source
provided with Flex.

Any insight is appreciated. Thanks!

-Tony



tony pujals| senior engineer | Yahoo! SiteBuilder
Express
p. 408.349.6284 | e. tonyp * yahoo-inc . com |
y!id tonypujals





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



  











[flexcoders] Mouse Event Filtering

2006-02-14 Thread Tony Pujals
There are two variations to my question, but they should share a common
solution:

1) I want to create a "glass pane" - ie, a transparent layer that can
capture/consume mouse events without allowing the event to bubble to a
component below it. I've tried to achieve this effect with a transparent
Canvas, but the component below it (eg, a TextArea), also catches the
event.

2) I have a floating toolbar that extends Canvas. I don't want to use
the PopUpManager because of issues with the FocusManager and TextArea
that causes text to be selected incorrectly when focus is returned after
focus was transferred to a toolbar button. If the toolbar is floating
above the TextArea component, the cursor changes to an ibeam. If I click
down on the toolbar to drag it, the toolbar drags, but the TextArea also
gets the events, causing text to become selected. I want the toolbar to
consume the mouse events occurring on it without any further event
bubbling.


Since the toolbar has a mouseMove handler that allows me to drag it, I
can drag even by pressing mouse down on a toolbar button. I guess the
toolbar as parent is receiving and handling the mousedown, even though
the mouse down event is also propagating to its child button component
as well (I actually do not want this behavior either, but I suppose I
can solve this easily enough with hitTest). But what is really
interesting is that the event stops there if it's caught by the button
-- the TextArea below the toolbar doesn't get the event in this case. So
something about a Button or its superclasses makes it special, but the
difference isn't apparent to me in the AS source provided with Flex.

Any insight is appreciated. Thanks!

-Tony

 
 
tony pujals| senior engineer | Yahoo! SiteBuilder Express
p. 408.349.6284 | e. tonyp * yahoo-inc . com | y!id tonypujals
 
 



--
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] event bubbling Flex 1.5

2005-11-23 Thread Tony Pujals










I just wanted to follow up in case my last
post wasn’t totally clear. JesterXL said:

 

> > I usually do:
> >
> > dispatchEvent({type:
"someEvent", target: this});



What I wanted to make sure I pointed out is
that Flex will set the target property to ‘this’ (the object calling
dispatchEvent) when the event gets broadcast, overwriting any value you may set.
So although this actually shows up in some of the doc examples, don’t do
it, it doesn’t work – it may have “seemed” to work, but
only coincidentally because ‘this’ is generally what you want.

 

You know, I also find the behavior not
exactly intuitive because of semantic reasons. If you think of ‘target’
as meaning the component upon which an event occurred, then this value should
be preserved up the chain; in any case, I think target is a poor naming choice.
An event broadcaster is a ‘source,’ like in Java, or something
along those lines. For a listener receiving a notification, source ought to
point to the broadcasting object, even if it is just a middle link in what is a
chain of listeners. Target should be a value that refers to a component and is
set only once and preserved up the chain Or something along these lines….

 

;-)

 



Tony

 

tony pujals| senior engineer | Yahoo!
SiteBuilder

p. 408.349.6284 | e. [EMAIL PROTECTED] |
y!id tonypujals



 









From: Tony Pujals 
Sent: Wednesday, November 23, 2005
11:06 AM
To: 'flexcoders@yahoogroups.com'
Subject: RE: [flexcoders] event
bubbling Flex 1.5



 

So funny – this thread just caught my
eye because I just had to deal with the very same issue.

 

When you call dispatchEvent, the target
property is always overridden. Although I have seen a few erroneous examples,
the docs tell you not to set the target property in the event object because it
will be explicitly set to refer to the object that is dispatching the event.
Therefore, the original “target” will be lost.

 

I bubble up my events through chaining (for
example, a ThemeManager that propagates theme changes that propagates scheme
changes that propagates individual style (font and color) changes), but I
preserve the original event with a rootEvent property. The chain of handlers
continue to add this property to the new event that is getting dispatched up
the chain, preserving the value that each listener receives.

 

I should point out that athough preserving
the original event is useful, each listener in the chain generally needs to add
other context aside from just “bubbling” up the original event. The
ultimate listener can’t do much with the rootEvent object (eg, a font
style), without the additional context added by the listeners in the change
(for example, current theme : page title scheme : new font style).

 

-Tony

 



 

tony pujals| senior engineer | Yahoo!
SiteBuilder

p. 408.349.6284 | e. [EMAIL PROTECTED] |
y!id tonypujals



 









From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Douglas Knudsen
Sent: Wednesday, November 23, 2005
10:37 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] event
bubbling Flex 1.5



 

helps to actually attach the
file, eh?  sorry about the traffic...I
need some of that coffee now too Jesse.

DK

On 11/23/05, Douglas Knudsen
<[EMAIL PROTECTED]> wrote:
> lol!
>
> Ok, I attached a sample in a zip, hope it
stays attached.  In it I
> have a A, B, C as an example of this thread
discussion.  You can see
> that the final capture of the event in A loses
the original target.
> upon a suggestion elsewhere, I tried
'chaining' the events by catching
> the event in B and re-dispatching it. 
This still messed with the
> target property of the event object. 
Seems have to add this as a
> extra property in the original event.
>
> Jeff, looking at your evenmanger class now to
see if I can use this.
>
> DK
>
> On 11/23/05, JesterXL
<[EMAIL PROTECTED]> wrote:
> > ...er, sorry, C.  2nd cup of coffee
hasn't kicked in...
> >
> > - Original Message -
> > From: "JesterXL"
<[EMAIL PROTECTED]>
> > To: <flexcoders@yahoogroups.com>
> > Sent: Wednesday, November 23, 2005 12:09
PM
> > Subject: Re: [flexcoders] event bubbling
Flex 1.5
> >
> >
> > I usually do:
> >
> > dispatchEvent({type:
"someEvent", target: this});
> >
> > Where this points to the component
dispatching the event.  So, if A wants to
> > know who dispatched the event:
> >
> > function someEvent(o)
> > {
> > trace(o.target);
// this is A
> > }
> >
> > - Original Message -
> > From: "Douglas Knudsen"
<[EMAIL PROTECTED]>
> > To: <flexcoders@yahoogroups.com>
> > Sent: Wednesday, November 23, 2005 11:52
AM
> > Subject: Re: [flexcoders] event bubbling
Flex 1.5

RE: [flexcoders] event bubbling Flex 1.5

2005-11-23 Thread Tony Pujals










So funny – this thread just caught my
eye because I just had to deal with the very same issue.

 

When you call dispatchEvent, the target
property is always overridden. Although I have seen a few erroneous examples,
the docs tell you not to set the target property in the event object because it
will be explicitly set to refer to the object that is dispatching the event.
Therefore, the original “target” will be lost.

 

I bubble up my events through chaining (for
example, a ThemeManager that propagates theme changes that propagates scheme
changes that propagates individual style (font and color) changes), but I
preserve the original event with a rootEvent property. The chain of handlers continue
to add this property to the new event that is getting dispatched up the chain,
preserving the value that each listener receives.

 

I should point out that athough preserving
the original event is useful, each listener in the chain generally needs to add
other context aside from just “bubbling” up the original event. The
ultimate listener can’t do much with the rootEvent object (eg, a font
style), without the additional context added by the listeners in the change (for
example, current theme : page title scheme : new font style).

 

-Tony

 



 

tony pujals| senior engineer | Yahoo! SiteBuilder

p. 408.349.6284 | e. [EMAIL PROTECTED] |
y!id tonypujals



 









From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Douglas Knudsen
Sent: Wednesday, November 23, 2005
10:37 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] event
bubbling Flex 1.5



 

helps to actually attach the file, eh?  sorry about the
traffic...I
need some of that coffee now too Jesse.

DK

On 11/23/05, Douglas Knudsen
<[EMAIL PROTECTED]> wrote:
> lol!
>
> Ok, I attached a sample in a zip, hope it
stays attached.  In it I
> have a A, B, C as an example of this thread
discussion.  You can see
> that the final capture of the event in A
loses the original target.
> upon a suggestion elsewhere, I tried
'chaining' the events by catching
> the event in B and re-dispatching it. 
This still messed with the
> target property of the event object. 
Seems have to add this as a
> extra property in the original event.
>
> Jeff, looking at your evenmanger class now to
see if I can use this.
>
> DK
>
> On 11/23/05, JesterXL <[EMAIL PROTECTED]>
wrote:
> > ...er, sorry, C.  2nd cup of coffee
hasn't kicked in...
> >
> > - Original Message -
> > From: "JesterXL"
<[EMAIL PROTECTED]>
> > To: <flexcoders@yahoogroups.com>
> > Sent: Wednesday, November 23, 2005 12:09
PM
> > Subject: Re: [flexcoders] event bubbling
Flex 1.5
> >
> >
> > I usually do:
> >
> > dispatchEvent({type:
"someEvent", target: this});
> >
> > Where this points to the component
dispatching the event.  So, if A wants to
> > know who dispatched the event:
> >
> > function someEvent(o)
> > {
> > trace(o.target);
// this is A
> > }
> >
> > - Original Message -
> > From: "Douglas Knudsen"
<[EMAIL PROTECTED]>
> > To: <flexcoders@yahoogroups.com>
> > Sent: Wednesday, November 23, 2005 11:52
AM
> > Subject: Re: [flexcoders] event bubbling
Flex 1.5
> >
> >
> > drat!  I read your blog entry on
this too, forgot about  it.  Ok, in
> > my scenario below, I have A catching the
event dispatched in C.  But
> > the target in the event still points to
B the middleman.  I need A to
> > be able to be able to reference C in the
event.  Is the only way to
> > add a reference to C in the event
dispatch in C?
> >
> > DK
> >
> > On 11/23/05, JesterXL
<[EMAIL PROTECTED]> wrote:
> > > It IS supported:
> > > http://www.jessewarden.com/archives/2005/11/event_bubbling.html
> > >
> > > - Original Message -
> > > From: "Douglas Knudsen"
<[EMAIL PROTECTED]>
> > > To: <flexcoders@yahoogroups.com>
> > > Sent: Wednesday, November 23, 2005
11:29 AM
> > > Subject: [flexcoders] event
bubbling Flex 1.5
> > >
> > >
> > > not supportted I know, how to work
around?.  Say I have 3 components
> > > A,B, and C.  B is a child of A
and C is a child of B, each child among
> > > children possibly.   Now,
if C fires an event called fooEvent, I can
> > > get A to catch it, but the
event.target points to B not C.  The way I
> > > worked around this was in B I
caught the event then re-broadcast it so
> > > that A could catch it.  In the
re-broadcast I added a reference to C
> > > in the event.  How else can I
'bubble' up an event?
&g

RE: [flexcoders] Cool Flex Site with Free 30 day trial

2005-11-10 Thread Tony Pujals











As Sjors recommended, just use their
address:

 

6960 W. O'Bannon Drive
Suite 110
Las Vegas, NV 89117

 

As far as email address, I used my personal
yahoo account (with an underscore) and was able to register just fine. The
process seems lame, but the Flex app was pretty polished looking. 

 

Tony



 



 









From:
flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Leo
Sent: Thursday, November 10, 2005
10:38 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Cool
Flex Site with Free 30 day trial



 

hi everybody

i'm not from the U.S.
but I'd like to see this app runnig. When i try to register it asks for a zip
code and i don't know what to put there. Someone can give me a clue on this???

Thanks in advance



On 11/10/05, Matt
Chotin <[EMAIL PROTECTED]>
wrote:



My hotmail with an underscore went through no prob…

 









From: flexcoders@yahoogroups.com
[mailto:flexcoders@yahoogroups.com]
On Behalf Of JesterXL
Sent: Thursday, November 10, 2005
10:23 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Cool
Flex Site with Free 30 day trial



 



I
gave up; I gave them [EMAIL PROTECTED]
, and [EMAIL PROTECTED];
none of which ever received a confirmation.  Shouldn't be that hard to use
an app.





 





-
Original Message - 



From: Robert Thompson 





To: flexcoders@yahoogroups.com 





Sent: Thursday, November 10, 2005 12:55
PM





Subject: RE: [flexcoders] Cool Flex Site
with Free 30 day trial







 





How is
this so well organized when there does not appear to be an information page?





 





It's only
a sign-up page and plus there's a Terms of Service on it that's "legally
binding" (which is not a problem but is kind of odd when there's no
information on the page other than requesting your e-mail, company, address,
etc.).





 





Plus,
IJ'm 

Philippe Maegerman <[EMAIL PROTECTED]>
wrote:





Nicely done and well organized .. 



 



Philippe Maegerman

 







From: flexcoders@yahoogroups.com
[mailto: flexcoders@yahoogroups.com]
On Behalf Of sir_janksalot
Sent: samedi 5 novembre 2005 1:25
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Cool Flex
Site with Free 30 day trial

There is a new company that has been making a
corporate training
solution and doing some pretty cool things with it
in flex... (from
what I understand they are doing some video
branching which can
probably lead to "choose your own
adventure" type training) 

they offer a totally free 30 day trial at:

https://www1.g-t-t.com/ecom/processPromotion.cfml


could be exciting for those in the business world

sj










SPONSORED LINKS 




 
  
  Web site design development 
  
  
  Computer software development 
  
  
  Software design and development 
  
 
 
  
  Macromedia flex 
  
  
  Software development best practice 
  
  
   
  
 


--
**STATEMENT OF CONFIDENTIALITY** 

This
e-mail and any attached files are confidential and intended solely for the use
of the individual to whom it is addressed. If you have received this email in
error please send it back to the person that sent it to you. Any views or
opinions presented are solely those of author and do not necessarily represent
those the Emakina Company. Unauthorized publication, use, dissemination,
forwarding, printing or copying of this email and its associated attachments is
strictly prohibited.

We
also inform you that we have checked that this message does not contain any
virus but we decline any responsability in case of any damage caused by an a
non detected virus.
--









Yahoo! FareChase - Search multiple travel sites in one click.



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


 














-- 
Leonardo Moreno Guzmán
http://leo.logtar.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 unsubsc

[flexcoders] Redeploying a Flex webapp on Tomcat - locks not released

2005-11-09 Thread Tony Pujals










I saw a post before about someone having trouble redeploying
with Weblogic. We’re having the same trouble with Tomcat on Windows.

 

We have a webapp that includes Flex, but we can’t do an
‘undeploy’ or a ‘reload’ without having to shutdown the
server and explicity deleting the webapp directory because the locks on the
jars in WEB-INF\flex\jars aren’t being released, even though the webapp
has been stopped. An undeploy with remove all other webapp artifacts except for
this directory, effectively preventing redeploying the webapp without a server
restart.

 

Tomcat has a work around: you can set the antiResourceLocking="true"
attribute in conf/context.xml before starting Tomcat, but for us, this is a bad
solution because of the size of our webapp. Setting this attribute is known to
drastically increase webapp startup time.

 

I’ve heard that there won’t be a solution for
this until Flex 2.0, but I’d really like to know if that’s the
case, or if anyone else has discovered a workaround for this issue.

 

Thanks!

 

Tony

 

 

tony pujals| senior engineer | Yahoo!
small business publishing tools

p. 408.349.6284 | e. [EMAIL PROTECTED] |
y!id tonypujals

 









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