[flexcoders] Re: Ely's Flexbook

2008-10-06 Thread gwangdesign
Mr. Ely's code was based on FB2... I guess he has been super busy!

I really want to get a book from him when I saw the subject of your
post! Something like Custom Component in Flex Builder 4.

 
 From: Uday M. Shankar [EMAIL PROTECTED]
 Sent: Monday, October 06, 2008 6:02 AM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Ely's Flexbook 
 
 I am trying to use Ely's FlexBook component in one of my projects.
 
 But, I keep running into a problem which I am not able to fix.
 
 Let me explain...
 
 I can replicate this issue in the boundaries example @
 http://demo.quietlyscheming.com/book/boundaries.html.
 
 Follow these steps in the boundaries example.
 
 1. Check the Add Covers checkbox on the left side.
 
 2. Then, click on Add Page button to add a page to the book. Now PAGE A
 
 is added to the book. (as inner front cover)
 
 3. Now, try to close the book by click-dragging the back cover.
 
 At this point, the book will throw the following error -
 
 ArgumentError: Error #2025: The supplied DisplayObject must be a child
 
 of the caller.
 
  at flash.display::DisplayObjectContainer/removeChild()
 
  at
 

mx.core::UIComponent/http://www.adobe.com/2006/flex/mx/internal::$remove\
 
 Child()
 
  at mx.core::UIComponent/removeChild()
 
  at qs.controls.bookClasses::BookPageImpl/set rightRenderer()
 
  at qs.controls.bookClasses::BookPageImpl/clearContent()
 
  at qs.controls::Book/commitProperties()
 
  at mx.core::UIComponent/validateProperties()
 
  at mx.managers::LayoutManager/validateProperties()
 
  at mx.managers::LayoutManager/doPhasedInstantiation()
 
  at Function/http://adobe.com/AS3/2006/builtin::apply()
 
 
 
 Can anybody help me with this?
 
 am stuck in my project because am not able to fix this.





RE: [flexcoders] Re: Ely's FlexBook - drag and drop

2008-03-29 Thread Rick Winscot
I'd like to echo what Jeff said - and add that drag and drop functionality
is an awesome _highly contextual_ feature. Are you dragging and dropping
data? .or are you moving objects around? The mix of data and UI movement can
make for some interesting challenges - especially if the context doesn't
expose native support for drag and drop. However! There is good news - with
a little elbow grease you can add drag and drop functionality for just about
any UIComponent.

 

http://www.quilix.com/node/3 

 

So - can you add some sweet drag and drop capability into Flex book (bows to
Ely)?? Of course - but it will require you (the developer) to
programmatically bridge any gaps that Flex can't handle natively.

 

Rick Winscot

 

 

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Jeffry Houser
Sent: Friday, March 28, 2008 9:07 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Re: Ely's FlexBook - drag and drop

 

A Canvas is a container. I wouldn't have expected it to allow for items 
to be dropped into it.

slee_usa wrote:
 
 
 For the simplicity, for now my page is just Canvas. Maybe, if it
 works, I'll add photobox to hold the photo dropped into this box.
 
 Thanks!
 
 --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
mailto:flexcoders%40yahoogroups.com, 
 Jeffry Houser [EMAIL PROTECTED] wrote:
 
 
  Is your page element something that supports dragging and
 dropping,
  such as a list or data grid?
 
  slee_usa wrote:
  
  
   I am working with Ely's fantastic FlexBook component. What I am
 trying
   to do is: drag photo from outside FlexBook and drop into the
 Book. Is
   this possible? Anybody ever tried this? I created a new Page,
 which
   has event handlers for dragEnter/dragDrop, but they are never
 invoked.
   This page works fine as not part of FlexBook, but it doesn't if
 I add
   it to FlexBook.
  
   Please advise me if anyone know how to do this. It would be very
   appreciated!!
  
   Thanks.
   Sean
  
  
 
  --
  Jeffry Houser
  Flex, ColdFusion, AIR
  AIM: Reboog711 | Phone: 1-203-379-0773
  --
  Adobe Community Expert
 
 http://www.adobe.com/communities/experts/members/JeffryHouser.html 
 http://www.adobe.com/communities/experts/members/JeffryHouser.html
  My Company: http://www.dot-com-it.com http://www.dot-com-it.com
  My Podcast: http://www.theflexshow.com http://www.theflexshow.com
  My Blog: http://www.jeffryhouser.com http://www.jeffryhouser.com
 
 
 

-- 
Jeffry Houser
Flex, ColdFusion, AIR
AIM: Reboog711 | Phone: 1-203-379-0773
--
Adobe Community Expert 
http://www.adobe.com/communities/experts/members/JeffryHouser.html
My Company: http://www.dot-com-it.com
My Podcast: http://www.theflexshow.com
My Blog: http://www.jeffryhouser.com

 

image001.jpgimage002.jpg

Re: [flexcoders] Re: Ely's FlexBook - drag and drop

2008-03-29 Thread Jeffry Houser

  Good to know, thanks.

  With regards to FlexBook, I'm not sure what to tell you.

slee_usa wrote:
 
 
 Thanks! Yes, there is a way to make non-list based component as
 drop target. Actually, this canvas works fine as drop target, but
 if I add this canvas as a page into FlexBook, it doesn't.
 
 --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com, 
 Jeffry Houser [EMAIL PROTECTED] wrote:
  
   A Canvas is a container. I wouldn't have expected it to allow for
 items
   to be dropped into it.
  
   slee_usa wrote:
   
   
For the simplicity, for now my page is just Canvas. Maybe, if it
works, I'll add photobox to hold the photo dropped into this box.
   
Thanks!
   
--- In flexcoders@yahoogroups.com 
 mailto:flexcoders%40yahoogroups.com mailto:flexcoders%
 40yahoogroups.com,
Jeffry Houser jeff@ wrote:


 Is your page element something that supports dragging and
dropping,
 such as a list or data grid?

 slee_usa wrote:
 
 
  I am working with Ely's fantastic FlexBook component. What
 I am
trying
  to do is: drag photo from outside FlexBook and drop into the
Book. Is
  this possible? Anybody ever tried this? I created a new
 Page,
which
  has event handlers for dragEnter/dragDrop, but they are
 never
invoked.
  This page works fine as not part of FlexBook, but it
 doesn't if
I add
  it to FlexBook.
 
  Please advise me if anyone know how to do this. It would be
 very
  appreciated!!
 
  Thanks.
  Sean
 
 

 --
 Jeffry Houser
 Flex, ColdFusion, AIR
 AIM: Reboog711 | Phone: 1-203-379-0773
 --
 Adobe Community Expert

   
 http://www.adobe.com/communities/experts/members/JeffryHouser.html 
 http://www.adobe.com/communities/experts/members/JeffryHouser.html
   
 http://www.adobe.com/communities/experts/members/JeffryHouser.html 
 http://www.adobe.com/communities/experts/members/JeffryHouser.html
 My Company: http://www.dot-com-it.com 
 http://www.dot-com-it.com http://www.dot-com- http://www.dot-com-
 it.com
 My Podcast: http://www.theflexshow.com http://www.theflexshow.com
 http://www.theflexshow.com http://www.theflexshow.com
 My Blog: http://www.jeffryhouser.com http://www.jeffryhouser.com
 http://www.jeffryhouser.com http://www.jeffryhouser.com

   
   
  
   --
   Jeffry Houser
   Flex, ColdFusion, AIR
   AIM: Reboog711 | Phone: 1-203-379-0773
   --
   Adobe Community Expert
  
 http://www.adobe.com/communities/experts/members/JeffryHouser.html 
 http://www.adobe.com/communities/experts/members/JeffryHouser.html
   My Company: http://www.dot-com-it.com http://www.dot-com-it.com
   My Podcast: http://www.theflexshow.com http://www.theflexshow.com
   My Blog: http://www.jeffryhouser.com http://www.jeffryhouser.com
  
 
 

-- 
Jeffry Houser
Flex, ColdFusion, AIR
AIM: Reboog711  | Phone: 1-203-379-0773
--
Adobe Community Expert 
http://www.adobe.com/communities/experts/members/JeffryHouser.html
My Company: http://www.dot-com-it.com
My Podcast: http://www.theflexshow.com
My Blog: http://www.jeffryhouser.com



[flexcoders] Re: Ely's FlexBook - drag and drop

2008-03-28 Thread slee_usa
For the simplicity, for now my page is just Canvas.  Maybe, if it 
works, I'll add photobox to hold the photo dropped into this box.

Thanks!



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

 
   Is your page element something that supports dragging and 
dropping, 
 such as a list or data grid?
 
 slee_usa wrote:
  
  
  I am working with Ely's fantastic FlexBook component. What I am 
trying
  to do is: drag photo from outside FlexBook and drop into the 
Book. Is
  this possible? Anybody ever tried this? I created a new Page, 
which
  has event handlers for dragEnter/dragDrop, but they are never 
invoked.
  This page works fine as not part of FlexBook, but it doesn't if 
I add
  it to FlexBook.
  
  Please advise me if anyone know how to do this. It would be very
  appreciated!!
  
  Thanks.
  Sean
  
  
 
 -- 
 Jeffry Houser
 Flex, ColdFusion, AIR
 AIM: Reboog711  | Phone: 1-203-379-0773
 --
 Adobe Community Expert 
 
http://www.adobe.com/communities/experts/members/JeffryHouser.html
 My Company: http://www.dot-com-it.com
 My Podcast: http://www.theflexshow.com
 My Blog: http://www.jeffryhouser.com





Re: [flexcoders] Re: Ely's FlexBook - drag and drop

2008-03-28 Thread Jeffry Houser
A Canvas is a container.  I wouldn't have expected it to allow for items 
to be dropped into it.

slee_usa wrote:
 
 
 For the simplicity, for now my page is just Canvas. Maybe, if it
 works, I'll add photobox to hold the photo dropped into this box.
 
 Thanks!
 
 --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com, 
 Jeffry Houser [EMAIL PROTECTED] wrote:
  
  
   Is your page element something that supports dragging and
 dropping,
   such as a list or data grid?
  
   slee_usa wrote:
   
   
I am working with Ely's fantastic FlexBook component. What I am
 trying
to do is: drag photo from outside FlexBook and drop into the
 Book. Is
this possible? Anybody ever tried this? I created a new Page,
 which
has event handlers for dragEnter/dragDrop, but they are never
 invoked.
This page works fine as not part of FlexBook, but it doesn't if
 I add
it to FlexBook.
   
Please advise me if anyone know how to do this. It would be very
appreciated!!
   
Thanks.
Sean
   
   
  
   --
   Jeffry Houser
   Flex, ColdFusion, AIR
   AIM: Reboog711 | Phone: 1-203-379-0773
   --
   Adobe Community Expert
  
 http://www.adobe.com/communities/experts/members/JeffryHouser.html 
 http://www.adobe.com/communities/experts/members/JeffryHouser.html
   My Company: http://www.dot-com-it.com http://www.dot-com-it.com
   My Podcast: http://www.theflexshow.com http://www.theflexshow.com
   My Blog: http://www.jeffryhouser.com http://www.jeffryhouser.com
  
 
 

-- 
Jeffry Houser
Flex, ColdFusion, AIR
AIM: Reboog711  | Phone: 1-203-379-0773
--
Adobe Community Expert 
http://www.adobe.com/communities/experts/members/JeffryHouser.html
My Company: http://www.dot-com-it.com
My Podcast: http://www.theflexshow.com
My Blog: http://www.jeffryhouser.com



[flexcoders] Re: Ely's FlexBook - drag and drop

2008-03-28 Thread slee_usa
Thanks!  Yes, there is a way to make non-list based component as 
drop target.  Actually, this canvas works fine as drop target, but 
if I add this canvas as a page into FlexBook, it doesn't.




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

 A Canvas is a container.  I wouldn't have expected it to allow for 
items 
 to be dropped into it.
 
 slee_usa wrote:
  
  
  For the simplicity, for now my page is just Canvas. Maybe, if it
  works, I'll add photobox to hold the photo dropped into this box.
  
  Thanks!
  
  --- In flexcoders@yahoogroups.com mailto:flexcoders%
40yahoogroups.com, 
  Jeffry Houser jeff@ wrote:
   
   
Is your page element something that supports dragging and
  dropping,
such as a list or data grid?
   
slee_usa wrote:


 I am working with Ely's fantastic FlexBook component. What 
I am
  trying
 to do is: drag photo from outside FlexBook and drop into the
  Book. Is
 this possible? Anybody ever tried this? I created a new 
Page,
  which
 has event handlers for dragEnter/dragDrop, but they are 
never
  invoked.
 This page works fine as not part of FlexBook, but it 
doesn't if
  I add
 it to FlexBook.

 Please advise me if anyone know how to do this. It would be 
very
 appreciated!!

 Thanks.
 Sean


   
--
Jeffry Houser
Flex, ColdFusion, AIR
AIM: Reboog711 | Phone: 1-203-379-0773
--
Adobe Community Expert
   
  
http://www.adobe.com/communities/experts/members/JeffryHouser.html 
  
http://www.adobe.com/communities/experts/members/JeffryHouser.html
My Company: http://www.dot-com-it.com http://www.dot-com-
it.com
My Podcast: http://www.theflexshow.com 
http://www.theflexshow.com
My Blog: http://www.jeffryhouser.com 
http://www.jeffryhouser.com
   
  
  
 
 -- 
 Jeffry Houser
 Flex, ColdFusion, AIR
 AIM: Reboog711  | Phone: 1-203-379-0773
 --
 Adobe Community Expert 
 
http://www.adobe.com/communities/experts/members/JeffryHouser.html
 My Company: http://www.dot-com-it.com
 My Podcast: http://www.theflexshow.com
 My Blog: http://www.jeffryhouser.com