Re: [flexcoders] Adobe Flash Help Urgent

2009-05-19 Thread David Kramer
 crossdomain file? just off the cuff.

  - Original Message -
  From: saritha
  To: flexcoders@yahoogroups.com
  Subject: [flexcoders] Adobe Flash Help Urgent
  Date: Tue, 19 May 2009 07:49:27 -



  I have a web page with external swf file(.swf)in it.
  The external swf file loads images dynamically.
  The files are put up in web server.
  If the web server is not clustered (say it runs in single instance
  mode) the external swf loads properly in Internet Explorer
  6.0,Internet Explorer 7.0 , Firefox 3.0 and Safari 3.0.
  If the web server is clustered(say it runs with mulitple instances)
  the external swf does not load in Internet Explorer 6.0 and Internet
  Explorer 7.0.But it still loads properly in firefox and safari.

  Its has become a show stopper issue.
  Any Help on this would be appreciated.

  Thanks

  



David Kramer CISSP
Secure Patterns
917.652.0632
www.securepatterns.com


Re: [flexcoders] In Flex and Coldfusion Crud in 100 lines, the CFC syntax doesn't work on MX702

2009-04-08 Thread David Kramer
 That worked in the sense that it's now a structure and the cfc works and
the test cfinvoke and cfdump works, but no data in the .swf, but that's
certainly progress in the right direction.

I guess now it's down to my remote object call because the rest of my
code is exactly the same as the demo (I even pared it down to just the
getData (read) function)...



If the cfc resides here:
C:\Inetpub\wwwroot\evidencelocker\el_cfcs\accounts.cfc
should the source = 'evidencelocker.el_cfcs.accounts' if the swf itself
is in
C:\Inetpub\wwwroot\evidencelocker\
?

Do I need an endpoint in RemoteObject tag? If so, should it contain the
protocol http://[IP address] and that's it, even if the app is one folder
down (evidencelocker)?

Thanks Brad.

(I feel like it's so close.)

  - Original Message -
  From: "Brad Bueche"
  To: flexcoders@yahoogroups.com
  Subject: Re: [flexcoders] In Flex and Coldfusion Crud in 100 lines,
  the CFC syntax doesn't work on MX702
  Date: Wed, 8 Apr 2009 17:11:40 -0400



  In my example I have:

  
  
  

  

  then ...
  wrote:



Hey guys,

I followed this seemingly great article, and I've found that in
the Crud.cfc portion of the example (here specifically)...

1:
2: 
3: 

select id, name, type
from test




...the 3rd line cfset var local = {} throws this error:
"Invalid token '{' found on line 3"

Is this a CF8 v CFMX702 thing? If so, what is the solution?

If I comment out the line and remove the 'local' prefix to the
query name 'q', the cfc runs fine, and a test.cfml that invokes
the cfc works fine, but the swf never gets data. (I added
crossdomain.xml with allow "*")

I'm thinking two things
1) the query result needs a collection wrapper for Flex to work?
And
2) that I might have a minor have endpoint and/or source
description problem in the mxml for the remote object because I'm
a tad unclear which "root" is being referred to web root, app
root.

Thoughts/help?

Please and thank you.

Dov


  



David Kramer, CISSP
davidkra...@consultant.com
480.710.1398
www.securepatterns.com


Re: [flexcoders] Re: clear concise article/tutorial on setting up CFC project in Flex Builder?

2009-04-07 Thread David Kramer
 I will check it out. Thanks.

  - Original Message -
  From: valdhor
  To: flexcoders@yahoogroups.com
  Subject: [flexcoders] Re: clear concise article/tutorial on setting
  up CFC project in Flex Builder?
  Date: Tue, 07 Apr 2009 17:19:33 -

  Have you looked at http://flexcf.com/tutorials ?

  --- In flexcoders@yahoogroups.com, "dmkramerica" 
  wrote:
  >
  > I have full admin priv to CF, and the entire server for that
  matter, and Gassner's articles on lynda.com only describe setting up
  Cold Fusion projects in a local environment - which is like super
  rare in reality. The other information I find seems inconsistent and
  sometimes contrary so far...for instance one article tells me to make
  sure the xml config files are one location, and when I look it's not
  there, but there are five other copies in other folders yet when I
  try using those paths in the CF project set up in FB3 none of them
  work, so...I'm stuck in the CF project wizard in Flex Builder 3.
  >
  > How do you set up a Cold Fusion project in Flex Builder and verify
  the server communication so you can finish the wizard? (This seems
  straightforward but the information on it isn't.)
  >
  > or...
  >
  > Do I even need this IDE setup stuff, can't I just get my swf to
  talk to my CFC without this wizard? ( which would blow because of all
  niceties of having immediate feedback in an IDE while developing, but
  just getting them talking is good enough for me at this point.)
  >
  > Anyone?
  >

  



David Kramer, CISSP
davidkra...@consultant.com
480.710.1398
www.securepatterns.com

-- 
Be Yourself @ mail.com!
Choose From 200+ Email Addresses
Get a Free Account at www.mail.com



[flexcoders] I am having a similar problem with fonts in AIR (mine involves away3d)

2009-02-17 Thread David Kramer
I'm experiencing something similar.
To be more specific about my dilemma, the font distortion is in 3daway
(so no one at Adobe will chime in I bet).
The fonts aren't rendering correctly at all when at any angle but
straight on.
I embedded mine and...no dice either.
Any help would be great.
David


[flexcoders] [SebCoverFlow] opacity/alpha on non-selected items in the array

2009-02-15 Thread David Kramer
Anyone know how to change the opacity/alpha of the non-selected items (to
be "grayed out") when rendered in Seb's CoverFlow?

Thanks!

Dave


[flexcoders] HOW?: DnD within grid to move AND have DnD from the grid to list be a copy.

2009-02-15 Thread David Kramer
Hey folks, I need some guidance/solution to a Drag and Drop scenario...

I have a list and a grid. You can drag and drop from the grid to the
list, and you can drag and drop within the grid to change the sort order.
However, If you drag and drop within the grid it does an automatic copy
instead of a move (sort) which is what I want. So, I tried
dragMoveEnabled="true" which works nicely within the grid, but then it's
also moved and not copied to the list.

Anyone have guidance on how to have DnD within a grid be a move AND also
have DnD from the grid to the list be a copy?

It would seem like there is a way.

Thanks in advance to all who help!

Dave


[flexcoders] Extending classes (within classes) best/fastest approach to finding what you need (in FlexBuilder)

2009-02-13 Thread David Kramer
I have a simple desire today and figured I'd be able to get a nice quick
answer. During an Alert I want to override (which may be mixed
terminology I understand) the "fade" effect on the parent "window" during
an Alert.show.

I'm using Flex Builder 3, not a surprise, and I'm thinking there's
probably a way, while debug mode, to find the line that triggers that
effect stepwise, thus finding the class as well no?

I'd love the solution to what I'm doing, yes (and bring it on sure), but
I'd like to know the best way to find things in the future. (If I was
clear...hopefully)

Thanks to all in advance.


[flexcoders] ignore my posts from this morning...

2009-02-11 Thread David Kramer
Ugh. The problem was staring me in the face!

(The arrayCollection declared in the main application was not public and
not available as a settable prop to other components.)

Duh.


RE: [flexcoders] I'm just not seeing it guys/gals... (events/scopes)

2009-02-11 Thread David Kramer
 Thanks for the reply.  To be very specific...

I'm trying for any way to achieve this: parentDocument.currentAC (in app)
= presentationsSlidesAC (in component), so the main application.mxml has
the currentAC updated. (Loose, tight, whatever.)

Here's the DropLabel.mxml component code:  


http://www.adobe.com/2006/mxml";
text="{data.pTitle}" 
dragEnter="draggedInto(event)"
dragDrop="testDrop(event)"
click="clickHandler(event)"
width="220" textAlign="left" color="#ff"
fontSize="12">


[Event('presentationSelected')]










  - Original Message -
  From: "Yves Riel"
  To: flexcoders@yahoogroups.com
  Subject: RE: [flexcoders] I'm just not seeing it guys/gals...
  (events/scopes)
  Date: Wed, 11 Feb 2009 10:13:22 -0500

  Your e-mail is not very clear. There are many ways to get the array
  collection to update. Anyway, if you are using a drop-in item
  renderer, I suggest that you access the listData property of the
  itemRenderer. listData has a property called "owner". So you could
  have your item renderer dispatch an event using the "owner" property.
  This way, the event will be seen as coming from the list itself. so,
  from inside the item renderer: listData.owner.dispatchEvent(); and attach listeners to the list itself to get notified.
  [IMAGE]

  


[flexcoders] I'm just not seeing it guys/gals... (events/scopes)

2009-02-11 Thread David Kramer
 I've read Amy's FAQ (Q3) and the Flex 3 Cookbook and have attempted to
make the situation below work, but the solution still escapes me. After
reading several other resources, I think I've read too many ways to skin
a cat and now I'm in circles.

I have an ArrayCollection (currentAC) in a main application file in AIR.

(When the user clicks on categories it updates that array with a selected
arrayCollection.)

I have a custom item renderer for a list in the main application file.

When someone clicks an item in the list, it seems that scoping within the
item renderer using either:

Application.application.currentAC  = this.itemRenderersAC;

would work to update the currentAC array, and as well it seems that

parentDocument.currentAC = this.itemRenderersAC;

would work too, but I can't make that tightly coupled situation work for
some reason.

So...

I move on to the proper, loosely coupled approach with little success as
well. No errors, but no currentAC update.

I tried to dispatchEvent from the itemRenderer and have it be handled
by...anything, and I'm just not getting the syntax or something, and
nothing needs to even be "passed" around, I just need to update an array
with the itemRenderer's Array that has a known array name.

I'm tired or dumb, or I could be both.


RE: [flexcoders] data (array collections) in main application and components available to each other...how?

2009-02-09 Thread David Kramer
 I typo'd in the code there Alex, it's line 76 ...no idea why I typed 47.

  - Original Message -
  From: "Alex Harui"
  To: "flexcoders@yahoogroups.com"
  Subject: RE: [flexcoders] data (array collections) in main
  application and components available to each other...how?
  Date: Sun, 8 Feb 2009 22:08:24 -0800

  Try parentDocument.currentAC

  Alex Harui

  Flex SDK Developer

  Adobe Systems Inc.

  Blog: http://blogs.adobe.com/aharui

  From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com]
  On Behalf Of David Kramer
  Sent: Sunday, February 08, 2009 8:31 PM
  To: flexcoders@yahoogroups.com
  Subject: [flexcoders] data (array collections) in main application
  and components available to each other...how?

  All,

  I created the DropLabel.mxml component (that is attached for
  reference) for my AIR project, so now I can drag and drop item from a
  Grid on to the Label of the List item (and not add to the list)
  Awesome. 

  Once I had that solved, I added some code to handle what I wanted to
  happen in SQLite on the drop, which works great too.

  I then added a clickHandler to the Label (because it should be
  clickable too), so now it goes and gets that particular presentation
  (each list item is a presentation by the way) in SQLite and puts the
  results in an array collection, and that's great too.

  However, I can't assign that array collection to another bindable
  variable (type ArrayCollection too) previously declared (and heavily
  used) in the main application file while I'm in the DropLabel.mxml
  component (Flex is like "undefined, dude").

  A little help...please?  (About bubbling or sharing data between
  components, or something else that I need to understand?)

  I attached the DropLabel.mxml as a .txt file for reference.

  You'll see the issue in the clickHandler(); and it's probably
  laughably easy, but go easy on me.

  Thank you in advance everyone.

  : )

  David


  


RE: [flexcoders] data (array collections) in main application and components available to each other...how?

2009-02-09 Thread David Kramer
 Alex,

I added parentDocument at line 76, and the "problems" in Flex Builder
went away and it compiled and ran, but upon click at runtime:

ReferenceError: Error #1056: Cannot create property currentAC on iSlides.
at
DropLabel/clickHandler()[C:\work\clients\unboundary\presentationTool_v4.0\src\DropLabel.mxml:76]
at
DropLabel/___DropLabel_Label1_click()[C:\work\clients\unboundary\presentationTool_v4.0\src\DropLabel.mxml:6]



http://www.adobe.com/2006/mxml";
text="{data.pTitle}" 
dragEnter="draggedInto(event)"
dragDrop="testDrop(event)"
click="clickHandler(event)"
width="220" textAlign="left" color="#ff"
fontSize="12">









  - Original Message -
  From: "Alex Harui"
  To: "flexcoders@yahoogroups.com"
  Subject: RE: [flexcoders] data (array collections) in main
  application and components available to each other...how?
  Date: Sun, 8 Feb 2009 22:08:24 -0800

  Try parentDocument.currentAC

  Alex Harui

  Flex SDK Developer

  Adobe Systems Inc.

  Blog: http://blogs.adobe.com/aharui

  From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com]
  On Behalf Of David Kramer
  Sent: Sunday, February 08, 2009 8:31 PM
  To: flexcoders@yahoogroups.com
  Subject: [flexcoders] data (array collections) in main application
  and components available to each other...how?

  All,

  I created the DropLabel.mxml component (that is attached for
  reference) for my AIR project, so now I can drag and drop item from a
  Grid on to the Label of the List item (and not add to the list)
  Awesome. 

  Once I had that solved, I added some code to handle what I wanted to
  happen in SQLite on the drop, which works great too.

  I then added a clickHandler to the Label (because it should be
  clickable too), so now it goes and gets that particular presentation
  (each list item is a presentation by the way) in SQLite and puts the
  results in an array collection, and that's great too.

  However, I can't assign that array collection to another bindable
  variable (type ArrayCollection too) previously declared (and heavily
  used) in the main application file while I'm in the DropLabel.mxml
  component (Flex is like "undefined, dude").

  A little help...please?  (About bubbling or sharing data between
  components, or something else that I need to understand?)

  I attached the DropLabel.mxml as a .txt file for reference.

  You'll see the issue in the clickHandler(); and it's probably
  laughably easy, but go easy on me.

  Thank you in advance everyone.

  : )

  David


  


[flexcoders] data (array collections) in main application and components available to each other...how?

2009-02-08 Thread David Kramer
All,

I created the DropLabel.mxml component (that is attached for reference)
for my AIR project, so now I can drag and drop item from a Grid on to the
Label of the List item (and not add to the list) Awesome. 

Once I had that solved, I added some code to handle what I wanted to
happen in SQLite on the drop, which works great too.

I then added a clickHandler to the Label (because it should be clickable
too), so now it goes and gets that particular presentation (each list
item is a presentation by the way) in SQLite and puts the results in an
array collection, and that's great too.

However, I can't assign that array collection to another bindable
variable (type ArrayCollection too) previously declared (and heavily
used) in the main application file while I'm in the DropLabel.mxml
component (Flex is like "undefined, dude").

A little help...please?  (About bubbling or sharing data between
components, or something else that I need to understand?)

I attached the DropLabel.mxml as a .txt file for reference.

You'll see the issue in the clickHandler(); and it's probably laughably
easy, but go easy on me.

Thank you in advance everyone.

: )

David

http://www.adobe.com/2006/mxml";
text="{data.pTitle}"  
dragEnter="draggedInto(event)" 
dragDrop="testDrop(event)"
click="clickHandler(event)" 
width="220" textAlign="left" color="#ff" 
fontSize="12">

  

  
  


RE: [flexcoders] Re: Geting the 3dWall Pro to work as flex component ?

2009-02-05 Thread David Kramer
 I read on their site that licensing is for 1 workstation and unlimited
websiteshow does that work when your in the AIR environment?

  - Original Message -
  From: "Grant Davies"
  To: flexcoders@yahoogroups.com
  Subject: RE: [flexcoders] Re: Geting the 3dWall Pro to work as flex
  component ?
  Date: Thu, 5 Feb 2009 08:38:07 -0500

  I’ve blogged how to get the 3dWall working as flex component using
  the Flex Component kit for flash - here :

  
http://theresidentalien.typepad.com/ginormous/2009/02/flashloaded-3dwall-working-in-flex-as-flex-component.html

  Cheers

  Grant

  [IMAGE]

  ...

  › b l u e t u b e i n t e r a c t i v e.

  .: Development solutions for creatives :.

  .: grant davies

  .: 404.428.6839 (c)

  .: 404.921.9550 (F)

  › gr...@bluetubeinteractive.com

  http://www.bluetubeinteractive.com

  From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com]
  On Behalf Of Amy
  Sent: Wednesday, February 04, 2009 8:28 PM
  To: flexcoders@yahoogroups.com
  Subject: [flexcoders] Re: Geting the 3dWall Pro to work as flex
  component ?

  --- In flexcoders@yahoogroups.com, "Grant Davies"  wrote:
  >
  > Thanks Amy,
  >
  >
  >
  > I actually managed to get it to work as a Flex component in the
  end, it
  > was pretty fiddly but once figure out its simple, I can create the
  > 3dwall instance and add it to a view state or container and don't
  have
  > ANY code in flash at all. But I still have complete code
  completion in
  > flex from the generated swc.

  I chose to put some code in Flash to "clean up" the interface and
  make it more compatible with Flex.

  > Basically my fla has the 3dwall in the library and I export a swc,
  pull
  > into flex and wrap it in a UIComponent and I'm done.
  >
  >
  >
  > I'm going to blog about how to set it up if you're interested I
  can let
  > you know once I post.

  That would be great. There's a user group I was supposed to speak to
  about this process, but it turns out that there are very few free
  Flash components that will accept any kind of a data source except
  the path to an XML file. Since I wasn't able to give them the 3D
  wall (obviously) and I couldn't find a free component that I could
  let them use for hands-on practice, I'm in the process of writing an
  example component I can use to demo.

  The problem is that I can't stop myself from building it "right" for
  Flex in the first place, so I won't be able to demo all the things
  you have to overcome to work with a component that's not very robust.

  I can point them to your blog post to get more info on that.

  Thanks!

  -Amy

  No virus found in this incoming message.
  Checked by AVG - http://www.avg.com
  Version: 8.0.233 / Virus Database: 270.10.16/1929 - Release Date:
  2/3/2009 5:48 PM

   << image001.png >>



David Kramer, CISSP
davidkra...@consultant.com
480.710.1398
www.securepatterns.com


RE: [flexcoders] Tree Control Drag and Drop Help

2009-02-02 Thread David Kramer
Adrian,
 
I am up against the same problem.  Please share your knowledge on it so far.
kramer.da...@consultant.com
 
Many thanks.
 
David

  _  

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of adrianpomilio
Sent: Monday, February 02, 2009 8:45 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Tree Control Drag and Drop Help



This is a two part question.

1 - How can I keep a child from being dropped outside of it's parent?
I want to be able to drag and drop within a nodes parent.

2 - How do I get a handle on the new index of the node that has been
dropped.

I can get the current index, the parents name, but not the location it
was dropped.

I am using an ArrayCollection to populate the tree, using the children
attribute to create the child nodes. I am stuck with having to use
the ArrayCollection.

Any pointers would be great.



 


RE: [flexcoders] drag and drop ('into' the list items, while not adding to the list itself; Ex: iTunes)

2009-02-02 Thread David Kramer
Yes, all the data is in SQLite and available as an arraycollection to
everything when creation complete kicks. I'm just trying to get the URL of
an image that is already in a grid of images to be added to a presentation
(within the presentation table) when the image is dropped on the
presentation in the UI. 

  _  

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of Jim Hayes
Sent: Friday, January 30, 2009 5:30 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] drag and drop ('into' the list items, while not
adding to the list itself; Ex: iTunes)



> But I'm still puzzled as to how to fire the proper SQL statement for each
drop; essentially it's an INSERT  [URL from drop] INTO table WHERE column =
[the drop acceptor's label string].

So it's [URL from drop] and [the drop acceptor's label string] values that
you need, essentially?, or you've already got those and want to know how to
pass them elsewhere/use them to update the database?

-Original Message-
From: flexcod...@yahoogro <mailto:flexcoders%40yahoogroups.com> ups.com
[mailto:flexcod...@yahoogro <mailto:flexcoders%40yahoogroups.com> ups.com]
On Behalf Of David Kramer
Sent: 30 January 2009 21:20
To: flexcod...@yahoogro <mailto:flexcoders%40yahoogroups.com> ups.com
Subject: RE: [flexcoders] drag and drop ('into' the list items, while not
adding to the list itself; Ex: iTunes)

Yes! Last night around 2 AM I thought "Oh, the item renderer should accept
it" and then I went to sleep.
 
But I'm still puzzled as to how to fire the proper SQL statement for each
drop; essentially it's an INSERT  [URL from drop] INTO table WHERE column =
[the drop acceptor's label string].
 
Example code rocks, of course, but small nudges will help me get through the
fog. Thanks to all who keep illuminating...
 

From: flexcod...@yahoogro <mailto:flexcoders%40yahoogroups.com> ups.com
[mailto:flexcod...@yahoogro <mailto:flexcoders%40yahoogroups.com> ups.com]
On Behalf Of Jim Hayes
Sent: Friday, January 30, 2009 2:06 PM
To: flexcod...@yahoogro <mailto:flexcoders%40yahoogroups.com> ups.com
Subject: RE: [flexcoders] drag and drop ('into' the list items, while not
adding to the list itself; Ex: iTunes)
So I think what you really need to be doing is to have the list item
renderer accept the drop,  rather than the list itself?
I'm sure I did this with the datagrid about a year and a half ago,
unfortunately I don't have that project to hand just now or I'd have a look
and see how I did it.
All I remember was it wasn't all that hard to do once I'd got that concept.
-Original Message-
From: flexcod...@yahoogro <mailto:flexcoders%40yahoogroups.com> ups.com
[mailto:flexcod...@yahoogro <mailto:flexcoders%40yahoogroups.com> ups.com]
On Behalf Of David Kramer
Sent: 30 January 2009 20:52
To: flexcod...@yahoogro <mailto:flexcoders%40yahoogroups.com> ups.com
Cc: kramer.david@ <mailto:kramer.david%40consultant.com> consultant.com
Subject: [flexcoders] drag and drop ('into' the list items, while not adding
to the list itself; Ex: iTunes)
Hello All.  I've run into a problem, need other perspective(s)/solutions:
Simply put: I want to implement drag and drop, like iTunes, in an AIR app.
Seems easy, but...this particular scenario is puzzling.
Right now, just like iTunes, I have two list-based controls (both are
populated from collections of data within SQLite), one is a DataGrid and one
is a List. Dragging and dropping from the Grid to the List is simple, yes,
but I would like to drop on the list item's label/text/name in the List and
perform another function (specifically an update to SQLite) and NOT simply
drop the item and append to the list.  Follow?  
As in iTunes, you can drag a song into a folder and it adds the song "into"
the folder. (I would make that reference in SQLite in this case).  It
doesn't make a new folder by appending (wrongly) the dropped song to the
folder list. (Which is what I have now: If I drag a item from the grid and
drop it on the list, it's appended to the list, but I want it to become a
value within the list item (pseudo nested) not a value in the list itself.)
Is there a simple solution here I'm not seeing?
Now, I can do all that neat stuff by dragging a grid item unto a mx:Button,
but with only one button. Maybe I could "loop/repeater" to make a vertical
stack of buttons from an array?  But then it gets unclear as to how each
button is created with the necessary dragEnter and dragDrop event
handlers...  any help here?
This wheel has been invented before.  So how in Flex? 
David
(You can email me off of list if you'd like, I'll gladly post the solution
at the end. kramer.david@ <mailto:kramer.david%40consultant.com>
consultant.com)


RE: [flexcoders] drag and drop ('into' the list items, while not adding to the list itself; Ex: iTunes)

2009-02-02 Thread David Kramer
I've explored many many options, but still cannot seem to get the item
rendered in a list (the label) to be the drop target.  It's always the damn
list itself

I really stripped down code to bare bones and pasted it below for simplicity
and clarity, but...no dice.

Another set of eyes please?



http://www.adobe.com/2006/mxml";
layout="vertical" initialize="init();">

















 






























  _  

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of Tracy Spratt
Sent: Friday, January 30, 2009 4:15 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] drag and drop ('into' the list items, while not
adding to the list itself; Ex: iTunes)




http://livedocs. <http://livedocs.adobe.com/flex/3/html/dragdrop_8.html>
adobe.com/flex/3/html/dragdrop_8.html

Now that only give you control over the drop functionality.  You still need
to extract the necessary key values form the source and target data, and
build your update data structure and send it to the server, however you are
doing that.

Break this into steps.  Make sure you can update the server with data from
the source and target lists.  Hard code the data as needed to test the
Flex->server-->database->server->flex process.  You can choosw whether you
want the drag operation to update the client target list or whether you want
to return the new list data from the server and re-populate the list with
that.

When you can update the database successfully, implement the dragDrop
handler, extract the key/data values form the source and target, and pass
them to the function you created and tested in the step above.

Tracy Spratt 
Lariat Services 

Flex development bandwidth available 

  _  

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of David Kramer
Sent: Friday, January 30, 2009 4:10 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] drag and drop ('into' the list items, while not
adding to the list itself; Ex: iTunes)

Thanks for the super fast reply, Tracy. 

I will look of course, but for even more speed, do you have a link to
reference? 

Thanks in advance.

  _  

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of Tracy Spratt
Sent: Friday, January 30, 2009 2:00 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] drag and drop ('into' the list items, while not
adding to the list itself; Ex: iTunes)

If you write your own drag/drop handlers and call preventDefault, you can do
anything you want, or nothing.

There are lots of examples in the docs.

Tracy Spratt 
Lariat Services 

Flex development bandwidth available 

  _  

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of David Kramer
Sent: Friday, January 30, 2009 3:52 PM
To: flexcoders@yahoogroups.com
Cc: kramer.da...@consultant.com
Subject: [flexcoders] drag and drop ('into' the list items, while not adding
to the list itself; Ex: iTunes)

Hello All.  I've run into a problem, need other perspective(s)/solutions:

Simply put: I want to implement drag and drop, like iTunes, in an AIR app.
Seems easy, but...this particular scenario is puzzling.

Right now, just like iTunes, I have two list-based controls (both are
populated from collections of data within SQLite), one is a DataGrid and one
is a List. Dragging and dropping from the Grid to the List is simple, yes,
but I would like to drop on the list item's label/text/name in the List and
perform another function (specifically an update to SQLite) and NOT simply
drop the item and append to the list.  Follow?  

As in iTunes, you can drag a song into a folder and it adds the song "into"
the folder. (I would make that reference in SQLite in this case).  It
doesn't make a new folder by appending (wrongly) the dropped song to the
folder list. (Which is what I have now: If I drag a item from the grid and
drop it on the list, it's appended to the list, but I want it to become a
value within the list item (pseudo nested) not a value in the list itself.)

Is there a simple solution here I'm not seeing?

Now, I can do all that neat stuff by dragging a grid item unto a mx:Button,
but with only one button. Maybe I could "loop/repeater" to make a vertical
stack of buttons from an array?  But then it gets unclear as to how each
button is created with the necessary dragEnter and dragDrop event handlers.
any help here?

This wheel has been invented before.  So how in Flex? 

David

(You can email me off of list if you'd like, I'll gladly post the solution
at the end. kramer.david@ <mailto:kramer.da...@consultant.com>
consultant.com)

 


RE: [flexcoders] drag and drop ('into' the list items, while not adding to the list itself; Ex: iTunes)

2009-01-30 Thread David Kramer
Yes! Last night around 2 AM I thought "Oh, the item renderer should accept
it" and then I went to sleep.
 
But I'm still puzzled as to how to fire the proper SQL statement for each
drop; essentially it's an INSERT  [URL from drop] INTO table WHERE column =
[the drop acceptor's label string].
 
Example code rocks, of course, but small nudges will help me get through the
fog. Thanks to all who keep illuminating...
 

  _  

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of Jim Hayes
Sent: Friday, January 30, 2009 2:06 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] drag and drop ('into' the list items, while not
adding to the list itself; Ex: iTunes)




So I think what you really need to be doing is to have the list item
renderer accept the drop,  rather than the list itself?

I'm sure I did this with the datagrid about a year and a half ago,
unfortunately I don't have that project to hand just now or I'd have a look
and see how I did it.

All I remember was it wasn't all that hard to do once I'd got that concept.

-Original Message-
From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of David Kramer
Sent: 30 January 2009 20:52
To: flexcoders@yahoogroups.com
Cc: kramer.da...@consultant.com
Subject: [flexcoders] drag and drop ('into' the list items, while not adding
to the list itself; Ex: iTunes)

Hello All.  I've run into a problem, need other perspective(s)/solutions:

Simply put: I want to implement drag and drop, like iTunes, in an AIR app.
Seems easy, but...this particular scenario is puzzling.

Right now, just like iTunes, I have two list-based controls (both are
populated from collections of data within SQLite), one is a DataGrid and one
is a List. Dragging and dropping from the Grid to the List is simple, yes,
but I would like to drop on the list item's label/text/name in the List and
perform another function (specifically an update to SQLite) and NOT simply
drop the item and append to the list.  Follow?  

As in iTunes, you can drag a song into a folder and it adds the song "into"
the folder. (I would make that reference in SQLite in this case).  It
doesn't make a new folder by appending (wrongly) the dropped song to the
folder list. (Which is what I have now: If I drag a item from the grid and
drop it on the list, it's appended to the list, but I want it to become a
value within the list item (pseudo nested) not a value in the list itself.)

Is there a simple solution here I'm not seeing?

Now, I can do all that neat stuff by dragging a grid item unto a mx:Button,
but with only one button. Maybe I could "loop/repeater" to make a vertical
stack of buttons from an array?  But then it gets unclear as to how each
button is created with the necessary dragEnter and dragDrop event handlers.
any help here?

This wheel has been invented before.  So how in Flex? 

David

(You can email me off of list if you'd like, I'll gladly post the solution
at the end. kramer.david@ <mailto:kramer.da...@consultant.com>
consultant.com)


__
This communication is from Primal Pictures Ltd., a company registered in
England and Wales with registration No. 02622298 and registered office: 4th
Floor, Tennyson House, 159-165 Great Portland Street, London, W1W 5PA, UK.
VAT registration No. 648874577.

This e-mail is confidential and may be privileged. It may be read, copied
and used only by the intended recipient. If you have received it in error,
please contact the sender immediately by return e-mail or by telephoning
+44(0)20 7637 1010. Please then delete the e-mail and do not disclose its
contents to any person.
This email has been scanned for Primal Pictures by the MessageLabs Email
Security System.
__


 


RE: [flexcoders] drag and drop ('into' the list items, while not adding to the list itself; Ex: iTunes)

2009-01-30 Thread David Kramer
Thanks for the super fast reply, Tracy. 
I will look of course, but for even more speed, do you have a link to
reference? 
Thanks in advance.

  _  

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of Tracy Spratt
Sent: Friday, January 30, 2009 2:00 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] drag and drop ('into' the list items, while not
adding to the list itself; Ex: iTunes)




If you write your own drag/drop handlers and call preventDefault, you can do
anything you want, or nothing.

There are lots of examples in the docs.

Tracy Spratt 
Lariat Services 

Flex development bandwidth available 

  _  

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of David Kramer
Sent: Friday, January 30, 2009 3:52 PM
To: flexcoders@yahoogroups.com
Cc: kramer.da...@consultant.com
Subject: [flexcoders] drag and drop ('into' the list items, while not adding
to the list itself; Ex: iTunes)

Hello All.  I've run into a problem, need other perspective(s)/solutions:

Simply put: I want to implement drag and drop, like iTunes, in an AIR app.
Seems easy, but...this particular scenario is puzzling.

Right now, just like iTunes, I have two list-based controls (both are
populated from collections of data within SQLite), one is a DataGrid and one
is a List. Dragging and dropping from the Grid to the List is simple, yes,
but I would like to drop on the list item's label/text/name in the List and
perform another function (specifically an update to SQLite) and NOT simply
drop the item and append to the list.  Follow?  

As in iTunes, you can drag a song into a folder and it adds the song "into"
the folder. (I would make that reference in SQLite in this case).  It
doesn't make a new folder by appending (wrongly) the dropped song to the
folder list. (Which is what I have now: If I drag a item from the grid and
drop it on the list, it's appended to the list, but I want it to become a
value within the list item (pseudo nested) not a value in the list itself.)

Is there a simple solution here I'm not seeing?

Now, I can do all that neat stuff by dragging a grid item unto a mx:Button,
but with only one button. Maybe I could "loop/repeater" to make a vertical
stack of buttons from an array?  But then it gets unclear as to how each
button is created with the necessary dragEnter and dragDrop event handlers.
any help here?

This wheel has been invented before.  So how in Flex? 

David

(You can email me off of list if you'd like, I'll gladly post the solution
at the end. kramer.david@ <mailto:kramer.da...@consultant.com>
consultant.com)

 


[flexcoders] drag and drop ('into' the list items, while not adding to the list itself; Ex: iTunes)

2009-01-30 Thread David Kramer
Hello All.  I've run into a problem, need other perspective(s)/solutions:

 

Simply put: I want to implement drag and drop, like iTunes, in an AIR app.
Seems easy, but...this particular scenario is puzzling.

 

Right now, just like iTunes, I have two list-based controls (both are
populated from collections of data within SQLite), one is a DataGrid and one
is a List. Dragging and dropping from the Grid to the List is simple, yes,
but I would like to drop on the list item's label/text/name in the List and
perform another function (specifically an update to SQLite) and NOT simply
drop the item and append to the list.  Follow?  

 

As in iTunes, you can drag a song into a folder and it adds the song "into"
the folder. (I would make that reference in SQLite in this case).  It
doesn't make a new folder by appending (wrongly) the dropped song to the
folder list. (Which is what I have now: If I drag a item from the grid and
drop it on the list, it's appended to the list, but I want it to become a
value within the list item (pseudo nested) not a value in the list itself.)

 

Is there a simple solution here I'm not seeing?

 

Now, I can do all that neat stuff by dragging a grid item unto a mx:Button,
but with only one button. Maybe I could "loop/repeater" to make a vertical
stack of buttons from an array?  But then it gets unclear as to how each
button is created with the necessary dragEnter and dragDrop event handlers.
any help here?

 

This wheel has been invented before.  So how in Flex? 

 

David

 

 

(You can email me off of list if you'd like, I'll gladly post the solution
at the end. kramer.da...@consultant.com)



[flexcoders] DataGrids and ViewStacks

2009-01-09 Thread David Kramer
I have a simple XML file that is the dataprovider  for a datagrid, and it
all works fine.

However.

When I put the datagrid in a viewstack, no data is rendered.

When you hover over the grid, you see that it has four rows active (with
mouseover highlight) but you can't see any data.

Does anyone know what the deal is here?



RE: [flexcoders] Re: Using ActiveXObject with Adobe AIR and Flex

2009-01-08 Thread David Kramer
Two totally different environments.  

 

  _  

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of pratikshah83
Sent: Tuesday, January 06, 2009 5:53 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Using ActiveXObject with Adobe AIR and Flex

 

Any help would be appreciated. If any one could throw some light.

Thanks
Pratik

--- In flexcod...@yahoogro  ups.com,
"pratikshah83" 
wrote:
>
> Hi Guys, 
> 
> I am trying to execute a application on the desktop using
> ActiveXObject... but I am unable to get it working with Adobe AIR +
Flex. 
> 
> Something Like this. It works fine using it in javascript in IE. But i
> am unable to get it working from AIR even after calling the javascript
> and so tried using the mx:html tag.
> 
> AB = new ActiveXObject("Broker.Application");
> AB.Quit();
> 
> Any help if this regards would be appreciated. 
> 
> Thanks
> Pratik
>

 



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

2008-06-06 Thread David Kramer
Uh, this is Major OT. 

 

(And I can't get one decent answer, or even non-vague guidance, to slightly
OT code design patterns for localization/globalization/skinning?)

 

 

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of valdhor
Sent: Friday, June 06, 2008 6:02 AM
To: flexcoders@yahoogroups.com
Subject: [Norton AntiSpam] [flexcoders] Re: Thinking about going to the dark
sideApple Mac Book

 

Something that I have always noted is that the resale value of used
Mac's tends to be a lot higher than a PC. After two years you can
generally get 50% of what you paid back when you sell a Mac. With a
PC, that value drops to 30% or less.

 

<<~WRD000.jpg>><><>

[flexcoders] OT (slightly) Gold standard method to make a web Flex app truly skinnable.

2008-06-05 Thread David Kramer
Hello All, 

 

I'm beginning a project Flex, CF, IIS and SQL, and this time I'm finally
going to make sure we all do the proper requirements gathering and research
of best practices before writing code (or at least as little as possible).

 

Therefore, I thought I'd ask the group to point me in the direction to solid
documentation on the best methods on making a Flex app truly skinnable, from
the fonts, (English to Hebrew) to colors, and images, etc. based upon manual
user selection or auto based upon best guess of global location
automatically, or both.

 

Seems monumental, but someone's done it and it's written somewhere I assume.

 

Any help is appreciated.

 

Thanks.

 

David Kramer, CISSP

Secure.Patterns()

 <mailto:[EMAIL PROTECTED]> [EMAIL PROTECTED]

206.792.6751

isc2_cissp_cert_logo

 

<>