Skip to search.

Breaking News Visit Yahoo! News for the latest.

×Close this window

flexcoders · RIA Development with Adobe Flex

The Yahoo! Groups Product Blog

Check it out!

Group Information

  • Members: 12335
  • Category: Development
  • Founded: Mar 17, 2004
  • Language: English
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Hear how Yahoo! Groups has changed the lives of others. Take me there.

Messages

Advanced
Messages Help
Messages 135738 - 135767 of 165719   Oldest  |  < Older  |  Newer >  |  Newest
Messages: Show Message Summaries Sort by Date ^  
#135738 From: "luke_lee1124" <luke_lee1124@...>
Date: Sun Feb 1, 2009 9:12 am
Subject: Re: Cursor Error: Bookmark no longer valid.
luke_lee1124
Send Email Send Email
 
I have the same problem, please let me know if you find a solution.
Many thanks

#135739 From: Sajid Hussain <enchanter_saj@...>
Date: Sun Feb 1, 2009 9:13 am
Subject: ZendAmf Setup issue 1.7 where gateway filw working .?
enchanter_saj
Send Email Send Email
 
Hello Gurus ,

I am facing one issue where i am attempting to use Zend_amf but that code exactly work well with Amfphp,
I have seen all internet resources for zend and I am very courios on thier machine same code is working why not at mine :(
if I am trying to access gateway(Zend File) it work well but its not working from Flex App .
I have follwoing code and structure

Gateway File :
<?php
require_once 'Zend/Amf/Server.php';
require_once 'include/services/BListsService.php';
require_once 'include/services/UserService.php';
// Instantiate the server
$server = new Zend_Amf_Server();
$server->setClass('BListsService');
$server->setClassMap('BListsVO', 'BLists');
$server->setClass('UserService');
$server->setClassMap('UserVO', 'User');
$server->setProduction(false);
$server->handle(); // if I am echoing this its not execute and instead it comes up for download
?>

Services-xml :
<?xml version="1.0" encoding="UTF-8"?>
<services-config>
<services>
<service id="amfphp-flashremoting-service"
class="flex.messaging.services.RemotingService"
messageTypes="flex.messaging.messages.RemotingMessage">
<destination id="zend">
<channels>
<channel ref="my-zend"/>
</channels>
<properties>
<source>*</source>
</properties>
</destination>
</service>
</services>
<channels>
    <channel-definition id="my-zend" class="mx.messaging.channels.AMFChannel">
        <endpoint uri="http://localhost/gateway.php" class="flex.messaging.endpoints.AMFEndpoint" />
    </channel-definition>
</channels>
</services-config>

Remote Services :

<mx:RemoteObject
        id="BListsService"         
        source="BListsService" destination="zend" endpoint="http://localhost/gateway.php"
        showBusyCursor="true">
    </mx:RemoteObject>

Please Reple
-Saj


#135740 From: "Wally Kolcz" <wkolcz@...>
Date: Sun Feb 1, 2009 1:01 pm
Subject: RE: Oh WTF? Web Services: Anyone work with Blue Disaster (I mean Dragon)?
wallykolcz
Send Email Send Email
 
The problem seems to be here. I tried to trace each item and the length of each and they come up null and blank.

var xlNames:XMLList = xmlResult..columnList.string;
var xlValues:XMLList = xmlResult..ArrayOfAnyType.anyType;


From: "Tracy Spratt" <tspratt@...>
Sent: Saturday, January 31, 2009 10:44 AM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Oh WTF? Web Services: Anyone work with Blue Disaster (I mean Dragon)?


No, that was a typo.  Change columns to names.

 

Why is it blank?  What is not working?

 

Tracy Spratt
Lariat Services

Flex development bandwidth available


From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Wally Kolcz
Sent: Saturday, January 31, 2009 12:04 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Oh WTF? Web Services: Anyone work with Blue Disaster (I mean Dragon)?

 

I tried this (slight modification) and it came up blank. In your loop, you have xlColumns[i] but you declared 'xlNames'. Are they the same? Did I miss something?

public function loginHandler(e:ResultEvent):void {
            var oLoginInfo:Object = new Object();
            var xmlResult = XML(e.result)
            var xlNames:XMLList = xmlResult..columnList.string;
            var xlValues:XMLList = xmlResult..ArrayOfAnyType.anyType;
            for (var i:int=0;i<xlNames.length();i++) {
            
              oLoginInfo[xlNames[i]] = xlValues[i];
            }
                Alert.show(oLoginInfo.lastName,'Last Name');
}


From: "Tracy Spratt" <tspratt@lariatinc.com>
Sent: Saturday, January 31, 2009 7:40 AM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Oh WTF? Web Services: Anyone work with Blue Disaster (I mean Dragon)?

Yeah that is not pretty xml.  Since your data is not really a list, but more properties of an object, here is what I would do:

 

var oLoginInfo:Object = new Object();

var xmlResult = XML(event.result)

var xlNames:XMLList = xmlResult..columnList.string;

var xlValues:XMLList = xmlResult..ArrayOfAnyType.anyType;

for (var i:int=0;i<xlNames.length();i++) {

  oLoginInfo[xlColumns[i]] = xlValues[i];

}

 

To see a value do:

trace(oLoginInfo.lastName); //will trace 'Kolcz'

 

But also, don't forget to compare the result from both servers, to see if you get the same result.

Tracy Spratt
Lariat Services

Flex development bandwidth available


From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Wally Kolcz
Sent: Friday, January 30, 2009 9:00 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Oh WTF? Web Services: Anyone work with Blue Disaster (I mean Dragon)?

 

This is what get from E4X. I have no idea on how to this to an easier format to use like what I get from an ArrayCollection with a RemoteObject.

Do I use XMLListCollection? Any hint on how? If I declare my userData variable as public var userData:XMLListCollection = new XMLListCollection(); What do I set it to?

Thanks!

Result

<loginResponse xmlns="http://www.newatlanta.com/bluedragon/cfc/prmc/PRMCProjects/edu/umich/security" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
  <loginResult>
    <columnList xmlns="http://www.newatlanta.com/bluedragon">
      <string>uniqname</string>
      <string>password</string>
      <string>lastName</string>
      <string>firstName</string>
      <string>position</string>
      <string>department</string>
      <string>role</string>
      <string>isActive</string>
    </columnList>
    <data xmlns="http://www.newatlanta.com/bluedragon">
      <ArrayOfAnyType>
        <anyType xsi:type="xsd:string">wkolcz</anyType>
        <anyType xsi:type="xsd:string">2113</anyType>
        <anyType xsi:type="xsd:string">Kolcz</anyType>
        <anyType xsi:type="xsd:string">Wally</anyType>
        <anyType xsi:type="xsd:string">ColdFusion / Flex Developer</anyType>
        <anyType xsi:type="xsd:string">PRMC</anyType>
        <anyType xsi:type="xsd:string">admin</anyType>
        <anyType xsi:type="xsd:double">1</anyType>
      </ArrayOfAnyType>
    </data>
  </loginResult>
</loginResponse>


From: "Tracy Spratt" <tspratt@lariatinc.com>
Sent: Thursday, January 29, 2009 8:29 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Oh WTF? Web Services: Anyone work with Blue Disaster (I mean Dragon)?

Better set resultFormat="e4x" and look at ther real xml data instead of the converted object tree.

 

Tracy Spratt
Lariat Services

Flex development bandwidth available


From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Wally Kolcz
Sent: Thursday, January 29, 2009 9:33 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Oh WTF? Web Services: Anyone work with Blue Disaster (I mean Dragon)?

 

I have 2 mirrored environments. One on my laptop running Adobe CF8 and one at the University running Blue Dragon 7. I have the same  CFCs set to remote, the same database stucture, and the same <mx:WebService> on both. I am just switching the wsdl location between the 2 and I am getting COMPLETELY diffferent responses. The only difference is the actual Servers.

When I return a query via web service with Adobe and render it out with Alert.show(ObjectUtil.toString(e.result),'Result');, I get this:

(mx.collections::ArrayCollection)#0
  filterFunction = (null)
  length = 1
  list = (mx.collections::ArrayList)#1
    length = 1
    source = (Array)#2
      [0] (Object)#3
        DEPARTMENT = "PRMC"
        FIRSTNAME = "Wally"
        ISACTIVE = 1
        LASTNAME = "Kolcz"
        POSITION = "Senior ColdFusion Architect"
        ROLE = "admin"
        UNIQNAME = "wkolcz"
    uid = "12003FBD-127E-EEEB-4E25-22A5E6599FF8"
  sort = (null)
  source = (Array)#2

With Blue Dragon I get this:

(Object)#0
  columnList = (mx.collections::ArrayCollection)#1
    filterFunction = (null)
    length = 8
    list = (mx.collections::ArrayList)#2
      length = 8
      source = (Array)#3
        [0] "uniqname"
        [1] "lastName"
        [2] "firstName"
        [3] "position"
        [4] "department"
        [5] "role"
        [6] "isActive"
      uid = "A8A6C52F-5FDD-35DA-8364-22A4F7846DEB"
    sort = (null)
    source = (Array)#3
  data = (mx.collections::ArrayCollection)#4
    filterFunction = (null)
    length = 1
    list = (mx.collections::ArrayList)#5
      length = 1
      source = (Array)#6
        [0] (mx.collections::ArrayCollection)#7
          filterFunction = (null)
          length = 8
          list = (mx.collections::ArrayList)#8
            length = 8
            source = (Array)#9
              [0] "wkolcz"
              [1] "Kolcz"
              [2] "Wally"
              [3] "ColdFusion / Flex Developer"
              [4] "PRMC"
              [5] "admin"
              [6] 1
            uid = "1226A691-AB75-70F7-DA33-22A4F7A30F01"
          sort = (null)
          source = (Array)#9
      uid = "2A52253B-DDF8-716E-0A74-22A4F7A38643"
    sort = (null)
    source = (Array)#6

I then added Alert.show(ObjectUtil.toString(e.result.list.source),'source'); and got this with Adobe:

(Array)#0
  [0] (Object)#1
    DEPARTMENT = "PRMC"
    FIRSTNAME = "Wally"
    ISACTIVE = 1
    LASTNAME = "Kolcz"
    PASSWORD = "2113"
    POSITION = "Senior ColdFusion Architect"
    ROLE = "admin"
    UNIQNAME = "wkolcz"

And this with Blue Dragon:

TypeError: Error #1010: A term is undefined and has no properties.

Anyone know a work around to get the same results? I was able to get my 'uniqname' with Adobe by using userData.getItemArt(0).UNIQNAME but it fails in BD.

Thanks for ANY help in this Blue Disaster.

 

 



#135741 From: "Amy" <amyblankenship@...>
Date: Sun Feb 1, 2009 1:45 pm
Subject: Re: using an event to trigger an action in a sibling component
droponrcll
Send Email Send Email
 
--- In flexcoders@yahoogroups.com, "weezee49" <rainyglade@...> wrote:
>
> But I still have a problem calling a public method in Login from
> MainBox.  Because MainBox is in a different branch of the tree, it
> can't see Login without some convoluted getChildAt().getChildAt(),
> and so on.
>
> Just to clarify, my diagram didn't come through.  Application has a
> ViewStack, which has SplashBox and MainBox.  SplashBox has a VBox
> which has an Accordion, which has LoginBox and CreateAccountBox.
>
> This code worked in the Application:
>
> var vbox:UIComponent = splashBox.getChildAt(0) as UIComponent;
> var accord:UIComponent = vbox.getChildAt(3) as UIComponent;
> var loginBox = accord.getChildAt(0);
> loginBox.clearFields(e);
>
> But again, it seems inelegant, and not very robust if I have to
> change the structure later.

http://www.magnoliamultimedia.com/flex_examples/Amys_Flex_FAQ.pdf
Q3

#135742 From: "eyal_c" <eyal_c@...>
Date: Sun Feb 1, 2009 2:02 pm
Subject: targetNamespace disappeared in Flex3
eyal_c
Send Email Send Email
 
Hi,

I need to fetch the targetNamespace from a WSDL which i loaded into a
WebService object.

In Flex 2 the following code worked just fine:

var webService:WebService = new WebService();
webService.wsdl = <URL>
...
webService.loadWSDL();
var operation:Operation = webService[<webServiceMethodName>];

var targetNamespace:String = operation.targetNamespace;

When i converted my project to Flex 3 the last code didn't compile as
it seems that the 'targetNamespace' property was removed from the
Operation class.

Does anyone know how can i get the targetNamespace?

Thanks,

#135743 From: "Hyder" <Hyder_m29@...>
Date: Sun Feb 1, 2009 11:11 pm
Subject: Adding container references to an array
hyder_m29
Send Email Send Email
 
How do I add container references to an array.
For example, I have these 4 containers

<mx:Panel id="home" title="Home" />
<mx:Panel id="portfolio" title="Portfolio" />
<mx:Panel id="skills" title="Skills" />
<mx:Panel id="contact" title="Get in touch" />

How do I add their references to an array in MXML

<mx:Array id="containerList">
<!-- CONTAINER REFERENCES GOES HERE -->
</mx:Array>

#135744 From: "markflex2007" <markflex2007@...>
Date: Sun Feb 1, 2009 11:48 pm
Subject: *** Security Sandbox Violation *** ?
markflex2007
Send Email Send Email
 
I get the error message when I debug a application.the application
works fine, but I get the message in debug console.

Thanks

*** Security Sandbox Violation ***
SecurityDomain 'file:///C:/Documents and Settings/mark/My
Documents/Flex Builder
3/test0211a/bin-debug/CheckBoxDataGridApp1.html' tried to access
incompatible context 'file:///C:/Documents and Settings/mark/My
Documents/Flex Builder 3/test0211a/bin-debug/CheckBoxDataGridApp1.swf'

#135745 From: "Paul Andrews" <paul@...>
Date: Sun Feb 1, 2009 11:49 pm
Subject: Encrypted html
pauland2513
Send Email Send Email
 
In an ideal world, I'd have an AIR app displaying HTML pages sourced from
encrypted data installed on the same machine.

Seems to me that the only way to keep the data encrypted would be to install
a web server which decrypts the pages on the fly.

Am I missing a something simple?

Paul

#135746 From: "Hyder" <Hyder_m29@...>
Date: Sun Feb 1, 2009 11:51 pm
Subject: Re: the flex RTE and xhtml
hyder_m29
Send Email Send Email
 
WoW! I doubt Derrick would be still interested after a year -6 days of
posting :D

Nice article though, I remember reading it before too at your blog.


Hyder
www.alamgirdesigns.com

--- In flexcoders@yahoogroups.com, Igor Costa <igorcosta@...> wrote:
>
> Derrick
>
> A solution, hope fits on your needs.   http://www.igorcosta.org/?
p=217
>
>
> Regards
> Igor Costa
>
>
> On Mon, Feb 4, 2008 at 7:40 PM, Derrick Anderson <
> no.way.this.is.in.use@...> wrote:
>
> >   anybody out there have anything that will take the html
generated by the
> > flex richtexteditor and have it output valid XHTML (and back
again)?  i've
> > found a few things googling but i have not found a good
implementation yet.
> >
> > thanks,
> > d.
> >
> >
>
>
>
> --
> ----------------------------
> Igor Costa
> www.igorcosta.com
> www.igorcosta.org
>

#135747 From: "max.bruchmann" <max.bruchmann@...>
Date: Mon Feb 2, 2009 12:00 am
Subject: Flex/BlazeDS/Hibernate - serialization question
max.bruchmann
Send Email Send Email
 
Hi,
I read a lot of time that flex/blazeds/hibernate is a cool combo. But
I there is one thing that troubles me.
So let's asume I have a Person class

public class Person {

  public var name:String;
  public var id;

}
It's no problem to send objects from this class between client and server.
But let's assume the Person class has furthermore a list of groups he
belongs to.

public class Person {

  public var name:String
  public var id;
  public var groups:ArrayCollection;

}
public class Group {

  public var name:String;
  public var id;

}

So now everytime we send a person object back to the blazeds/hibernate
backend all the groups he belongs to are getting serialized as well.
This means a lot of overhead gets send to backend when I only modify
some primitve data like the name.

Even more problematic would be if in addition the group objects
themselves would have list of persons that belongs to them.

I guess I could use the [Transient] Metatag to not send the collection
fields, but then I could not modify the groups in a person object easily.

So if there is any best practice for these kind of problems, please
let me know.

Thanks in advance
Max

#135748 From: Ben Cessa <bcessa@...>
Date: Mon Feb 2, 2009 12:29 am
Subject: Buttonbar not centering at startup
bcessa@...
Send Email Send Email
 
Hi again, right now I'm just playing a little with AIR and PV3D writing a little useless app as an exercise. I'm having an odd problem with ButtonBar, the thing don't get the horizontal center when the apps starts, is aligned to the left, however, as soon as I start resizing the main window it works very nice. Any ideas about what could this be?

The actual portion of code I'm using is this: 

<mx:ButtonBar id="figSelector"
width="100%" height="100%"
horizontalGap="20" horizontalCenter="0"
verticalAlign="middle
buttonWidth="50" buttonHeight="50">

And here's a little screencap of what the component shows at startup


By the way, I'm also having problems removing that ugly background from the buttons, can't figure out the skin needed, I was thinking in use a 100% transparent PNG as background image but I'm not sure, just in case someone know how to remove that too :P

Well, thanx a lot for your attention and I hope someone can give me hand with this

#135749 From: "Hyder" <Hyder_m29@...>
Date: Mon Feb 2, 2009 12:47 am
Subject: Re: Buttonbar not centering at startup
hyder_m29
Send Email Send Email
 
Try

invalidate();
OR
figSelector.invalidate();

on your parent's creationComplete event handler.

I'm not so sure about your second question. Are you having trouble
removing a skin that you've applied?


Hyder
www.alamgirdesigns.com

--- In flexcoders@yahoogroups.com, Ben Cessa <bcessa@...> wrote:
>
> Hi again, right now I'm just playing a little with AIR and PV3D
> writing a little useless app as an exercise. I'm having an odd
problem
> with ButtonBar, the thing don't get the horizontal center when the
> apps starts, is aligned to the left, however, as soon as I start
> resizing the main window it works very nice. Any ideas about what
> could this be?
>
> The actual portion of code I'm using is this:
>
> <mx:ButtonBar id="figSelector"
>  width="100%" height="100%"
>  horizontalGap="20" horizontalCenter="0"
>  verticalAlign="middle"
>  buttonWidth="50" buttonHeight="50">
>
> And here's a little screencap of what the component shows at startup
>
>
>
> By the way, I'm also having problems removing that ugly background
> from the buttons, can't figure out the skin needed, I was thinking
in
> use a 100% transparent PNG as background image but I'm not sure,
just
> in case someone know how to remove that too :P
>
> Well, thanx a lot for your attention and I hope someone can give me
> hand with this
>

#135750 From: Flex Noob <fl3xn00b@...>
Date: Mon Feb 2, 2009 5:56 am
Subject: Simple but impossible Hbox alignment issue
fl3xn00b
Send Email Send Email
 
This one is rather perplexing. If I use a label inside an hbox and if the text inside the label runs too long it pushed the button off the screen:

    <mx:HBox width="100%">
        <mx:Label text="{text}"/>
        <mx:Spacer width="100%"/>
        <mx:Button id="button" width="20" height="15"/>
    </mx:HBox>

Doesn't Flex tell the label what is maxWidth should be so that doesn't happen????


#135751 From: tom s <tcs2201@...>
Date: Mon Feb 2, 2009 6:04 am
Subject: ns.publish('mp3:mystream', record) - Online documentation different to FB 3.0.2 - what gives?
tom93438
Send Email Send Email
 
Hi, 

I'd like to record from a microphone to a .mp3 file on FMS 3.5.
There are numerous posts on the net saying this is not possible. 
But the Flex 3.2 Language Reference on LiveDocs implies that it is (text pasted at bottom of email):


However, the Language Reference built into FB 3.0.2 does not make any reference to publishing .mp3s.
So what gives?

Is this a typo in the Livedocs?
Is this a feature that isn't available yet, but will be soon?
Is it in-fact possible, but the details of how to do it aren't published?

When I try it I get NetStream.Publish.BadName

My setup is:
Flex SDK 3.2
Flash Player 10.0.r12 Debug
FMS 3.5 using LiveStreams app

BTW - the new speex codec in FP10 is awesome. Good recording of speech even at 10 kbps.

cheers

tom



From LiveDocs
===========
File formatSyntaxExample
FLVSpecify the stream name as a string, without a filename extension. ns.publish("myFLVStream");
MP3 or ID3 Specify the stream name as a string, with prefix mp3: or id3: , respectively, and without a filename extension. ns.publish("mp3:myMP3Stream"); ns.publish("id3:myID3data");
MPEG-4-based files (such as F4V, MP4) Specify the stream name as a string, with or without the filename extension and with the prefix mp4: . The prefix indicates to Flash Media Server that the file contains H.264-encoded video and AAC-encoded audio within the MPEG-4 Part 14 container format. ns.publish("mp4:myVideo.f4v") ns.publish("mp4:myVideo.mp4"); ns.publish("mp4:myVideo");
 
(whic



#135752 From: "Mic" <chigwell23@...>
Date: Mon Feb 2, 2009 6:10 am
Subject: simple(?) Flex change color question
chigwell23
Send Email Send Email
 
This one is making my head hurt ... will there be any perceivable
difference in

a) slowly changing an object's color from it's current color e.g.
0xFF0000 to 0xFF9999

and

b) slowly changing the object's color by morphing the correct
individual r, g and b from 0xFF0000 to 0XFF9999?

Will it pass through the same shades on the way from current to new?
Reason I wonder is that I am looking at some PixelBlender filters that
change the tint of objects by manipulating the r,g,b components.... is
this different to just changing the color attribute? TIA,

Mic.

#135753 From: Flex Noob <fl3xn00b@...>
Date: Mon Feb 2, 2009 6:16 am
Subject: Re: Simple but impossible Hbox alignment issue
fl3xn00b
Send Email Send Email
 
ok so just to follow up its a bug IMO with Label.

I tired setting truncateToFit and no dice.

So i swapped out label for text and its hot.

<mx:HBox width="100%">
        <mx:Text text="{text} " truncateToFit="true"/>
        <mx:Spacer width="100%" />
        <mx:Button id="button" width="20" height="15"/>
    </mx:HBox>

I also tried a TextArea without setting truncateToFit and it worked too.

crap like this makes me glad I'm mostly an AS dev.


From: Flex Noob <fl3xn00b@...>
To: flexcoders@yahoogroups.com
Sent: Sunday, February 1, 2009 9:56:28 PM
Subject: [flexcoders] Simple but impossible Hbox alignment issue

This one is rather perplexing. If I use a label inside an hbox and if the text inside the label runs too long it pushed the button off the screen:

    <mx:HBox width="100%">
        <mx:Label text="{text} "/>
        <mx:Spacer width="100%" />
        <mx:Button id="button" width="20" height="15"/>
    </mx:HBox>

Doesn't Flex tell the label what is maxWidth should be so that doesn't happen????



#135754 From: "Gregor Kiddie" <gkiddie@...>
Date: Mon Feb 2, 2009 8:53 am
Subject: RE: Re: Silent Print from Flex on Kiosk
monty_thethird
Send Email Send Email
 

I agree, more than anything Adobe could do, being over zealous on the security front could inhibit Flash as a platform taking off (yes I’m still annoyed about not getting to load remote modules in AIR). It wasn’t exactly a winner for Vista!

If they can work out a comfortable security model that…

  1. Stops drive by swfs owning your machine and,
  2. allows trusted applications to do more with less security,

they will be onto a winner. The Flash Player is maturing into number 1 nicely, but AIR has still a ways to go to meet number 2.

 

Gk.

Gregor Kiddie
Senior Developer
INPS

Tel:       01382 564343

Registered address: The Bread Factory, 1a Broughton Street, London SW8 3QJ

Registered Number: 1788577

Registered in the UK

Visit our Internet Web site at www.inps.co.uk

The information in this internet email is confidential and is intended solely for the addressee. Access, copying or re-use of information in it by anyone else is not authorised. Any views or opinions presented are solely those of the author and do not necessarily represent those of INPS or any of its affiliates. If you are not the intended recipient please contact is.helpdesk@...


From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Jeremi Bergman
Sent: 30 January 2009 20:51
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Silent Print from Flex on Kiosk

 

Thanks for the info.

It would be nice to be able to add an app as a "Trusted" application,
so that the application would have the option to print silently.


#135755 From: "Gregor Kiddie" <gkiddie@...>
Date: Mon Feb 2, 2009 9:18 am
Subject: RE: Re: ItemEditors and rowHeight
monty_thethird
Send Email Send Email
 

Yeah, I had variableRowHeight set to true, and I tried a whole bunch of things to try and get the row resized, but I’ve run out of time to get it working! I’ll just have to stick the changes in a form at the side and be done.

Thanks to everyone for the suggestions!

 

Gk.

Gregor Kiddie
Senior Developer
INPS

Tel:       01382 564343

Registered address: The Bread Factory, 1a Broughton Street, London SW8 3QJ

Registered Number: 1788577

Registered in the UK

Visit our Internet Web site at www.inps.co.uk

The information in this internet email is confidential and is intended solely for the addressee. Access, copying or re-use of information in it by anyone else is not authorised. Any views or opinions presented are solely those of the author and do not necessarily represent those of INPS or any of its affiliates. If you are not the intended recipient please contact is.helpdesk@...


From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Alex Harui
Sent: 31 January 2009 05:46
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Re: ItemEditors and rowHeight

 

Can you get the row to resize in other ways outside of an edit session?  I assume you have variableRowHeight=true?

 

From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Gregor Kiddie
Sent: Friday, January 30, 2009 8:23 AM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Re: ItemEditors and rowHeight

 

That’s what I’ve been playing with today, but again, once the Grid is rendered, I can’t seem to make it re-layout the rows.

I took a look at the AdvancedDataGridRendererProviders that Johannes suggested, but it falls under the same category.

I feel I’m missing something totally obvious, but no-one else seems to have found a decent solution either, so maybe not…

 


#135756 From: "bhaq1972" <mbhaque@...>
Date: Mon Feb 2, 2009 9:20 am
Subject: Re: Generated html page backgroundcolour
bhaq1972
Send Email Send Email
 
> Does that property actually change the background color in the
wrapper,
> or does the Flex app just cover the entire browser?  I do not know
> offhand.

Sorry for the late response (the weekend had begun)

Yes it does. If you look at the source for the generated wrapper it
shows

"bgcolor", "#ffffff",

One reason why I was struggling (which lead to my posted
question)....
My Application.backgroundColor was defined in an external stylesheet
(with all my other styles). But this does not get picked up.

It only seems to work when you define it in the mxml tag.




--- In flexcoders@yahoogroups.com, "Tracy Spratt" <tspratt@...>
wrote:
>
> Does that property actually change the background color in the
wrapper,
> or does the Flex app just cover the entire browser?  I do not know
> offhand.
>
>
>
> In a recent thread, someone noted that the browser background
stayed the
> original color for a brief time before the Flex app loaded, and
> suggested adding an entry to the "Additional Compiler Options" in
the
> Flex Builder Properties, to actually compile the background color
into
> the wrapper.
>
>
>
> Tracy Spratt
> Lariat Services
>
> Flex development bandwidth available
>
> ________________________________
>
> From: flexcoders@yahoogroups.com
[mailto:flexcoders@yahoogroups.com] On
> Behalf Of bhaq1972
> Sent: Friday, January 30, 2009 10:12 AM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Re: Generated html page backgroundcolour
>
>
>
> I just realized
>
> <mx:Application backgroundColor="white" etc
>
> generates the white background in the generated html wrapper
>
> --- In flexcoders@yahoogroups.com <mailto:flexcoders%
40yahoogroups.com>
> , "bhaq1972" <mbhaque@> wrote:
> >
> > I have my Flexbuilder set to the default settings.
> >
> > How can I make sure the generated HTML wrapper has a white
> > backgroundColor. I know its something to do with ${bgcolor}. But
how
> > do I set this?
> >
> > Any help would be appreciated.
> >
>

#135757 From: "thelordsince1984" <loreboa@...>
Date: Mon Feb 2, 2009 9:27 am
Subject: Shared Objects And Modules
thelordsince...
Send Email Send Email
 
Hi,

i'm reading about shared objects...they are like html cookies but with
improved performances...very cool!!but if i use modules can i always
save the state of each modules? Infact i read that modules are used
for the same domain..what domain means? that I can save the state for
a single application (so a single swf files), is it true?

thanks in advance

Regards
Lorenzo

#135758 From: Marco Catunda <marco.catunda@...>
Date: Mon Feb 2, 2009 10:36 am
Subject: Re: Shared Objects And Modules
marcocatunda
Send Email Send Email
 
Lorenzo,

When the doc says "the same domain" it means that flash player
should get module from the same URL domain for security reason.

About shared objects, it is cool but has size limitation like cookies.
You can save whatever you want...

--
Marco Catunda


On Mon, Feb 2, 2009 at 7:27 AM, thelordsince1984 <loreboa@...> wrote:
> Hi,
>
> i'm reading about shared objects...they are like html cookies but with
> improved performances...very cool!!but if i use modules can i always
> save the state of each modules? Infact i read that modules are used
> for the same domain..what domain means? that I can save the state for
> a single application (so a single swf files), is it true?
>
> thanks in advance
>
> Regards
> Lorenzo
>
>

#135759 From: Fotis Chatzinikos <fotis.chatzinikos@...>
Date: Mon Feb 2, 2009 10:40 am
Subject: Re: Flex/BlazeDS/Hibernate - serialization question
fotis.chatzi...
Send Email Send Email
 
You could make a PersonRPC class that contains only the fields you want to pass to the client...

You could also make PersonRPC the parent class of your Person class.


On Mon, Feb 2, 2009 at 2:00 AM, max.bruchmann <max.bruchmann@...> wrote:

Hi,
I read a lot of time that flex/blazeds/hibernate is a cool combo. But
I there is one thing that troubles me.
So let's asume I have a Person class

public class Person {

public var name:String;
public var id;

}
It's no problem to send objects from this class between client and server.
But let's assume the Person class has furthermore a list of groups he
belongs to.

public class Person {

public var name:String
public var id;
public var groups:ArrayCollection;

}
public class Group {

public var name:String;
public var id;

}

So now everytime we send a person object back to the blazeds/hibernate
backend all the groups he belongs to are getting serialized as well.
This means a lot of overhead gets send to backend when I only modify
some primitve data like the name.

Even more problematic would be if in addition the group objects
themselves would have list of persons that belongs to them.

I guess I could use the [Transient] Metatag to not send the collection
fields, but then I could not modify the groups in a person object easily.

So if there is any best practice for these kind of problems, please
let me know.

Thanks in advance
Max




--
Fotis Chatzinikos, Ph.D.
Founder,
Phinnovation
Fotis.Chatzinikos@...,

#135760 From: "thelordsince1984" <loreboa@...>
Date: Mon Feb 2, 2009 10:48 am
Subject: Re: Shared Objects And Modules
thelordsince...
Send Email Send Email
 
--- In flexcoders@yahoogroups.com, Marco Catunda <marco.catunda@...>
wrote:
>
> Lorenzo,
>
> When the doc says "the same domain" it means that flash player
> should get module from the same URL domain for security reason.
>
> About shared objects, it is cool but has size limitation like cookies.
> You can save whatever you want...
>
> --
> Marco Catunda
>
>
> On Mon, Feb 2, 2009 at 7:27 AM, thelordsince1984 <loreboa@...> wrote:
> > Hi,
> >
> > i'm reading about shared objects...they are like html cookies but with
> > improved performances...very cool!!but if i use modules can i always
> > save the state of each modules? Infact i read that modules are used
> > for the same domain..what domain means? that I can save the state for
> > a single application (so a single swf files), is it true?
> >
> > thanks in advance
> >
> > Regards
> > Lorenzo
> >
> >
>
Thanks for the reply..
so is it possible to save a specific configuration with modules?
suppose that i have a main application and here i have n modules
(distinct swf files).
then within modules i run my operations and finally when i closed the
main application i would save the configuration for modules that i
have modified..
At the succesive startup i would retrieve saved data. Is it possible
to save the entire modules, so an entire complex object? or is
possible to save only data, for example values properties?
Do you know any example in the web?

Thanks Again

Regards Lorenzo

#135761 From: Marco Catunda <marco.catunda@...>
Date: Mon Feb 2, 2009 10:49 am
Subject: Re: Buttonbar not centering at startup
marcocatunda
Send Email Send Email
 
Ben,

horizontalCenter="0"??  It should be horizontalAlign="center", shouldn't it?

--
Marco Catunda


On Sun, Feb 1, 2009 at 10:29 PM, Ben Cessa <bcessa@...> wrote:
> Hi again, right now I'm just playing a little with AIR and PV3D writing a
> little useless app as an exercise. I'm having an odd problem with ButtonBar,
> the thing don't get the horizontal center when the apps starts, is aligned
> to the left, however, as soon as I start resizing the main window it works
> very nice. Any ideas about what could this be?
> The actual portion of code I'm using is this:
> <mx:ButtonBar id="figSelector"
> width="100%" height="100%"
> horizontalGap="20" horizontalCenter="0"
> verticalAlign="middle"
> buttonWidth="50" buttonHeight="50">
> And here's a little screencap of what the component shows at startup
>
> By the way, I'm also having problems removing that ugly background from the
> buttons, can't figure out the skin needed, I was thinking in use a 100%
> transparent PNG as background image but I'm not sure, just in case someone
> know how to remove that too :P
> Well, thanx a lot for your attention and I hope someone can give me hand
> with this

#135762 From: "johndoematrix" <johndoematrix@...>
Date: Mon Feb 2, 2009 10:54 am
Subject: enabling slider using radio button
johndoematrix
Send Email Send Email
 
hi how can i enable a slider control by using a radio button group
selection?

#135763 From: "Cato Paus" <cato1@...>
Date: Mon Feb 2, 2009 11:58 am
Subject: Re: Shared Objects And Modules
pauscato1
Send Email Send Email
 
http://livedocs.adobe.com/flex/3/html/lsos_5.html


--- In flexcoders@yahoogroups.com, "thelordsince1984" <loreboa@...>
wrote:
>
> --- In flexcoders@yahoogroups.com, Marco Catunda <marco.catunda@>
> wrote:
> >
> > Lorenzo,
> >
> > When the doc says "the same domain" it means that flash player
> > should get module from the same URL domain for security reason.
> >
> > About shared objects, it is cool but has size limitation like
cookies.
> > You can save whatever you want...
> >
> > --
> > Marco Catunda
> >
> >
> > On Mon, Feb 2, 2009 at 7:27 AM, thelordsince1984 <loreboa@> wrote:
> > > Hi,
> > >
> > > i'm reading about shared objects...they are like html cookies
but with
> > > improved performances...very cool!!but if i use modules can i
always
> > > save the state of each modules? Infact i read that modules are
used
> > > for the same domain..what domain means? that I can save the
state for
> > > a single application (so a single swf files), is it true?
> > >
> > > thanks in advance
> > >
> > > Regards
> > > Lorenzo
> > >
> > >
> >
> Thanks for the reply..
> so is it possible to save a specific configuration with modules?
> suppose that i have a main application and here i have n modules
> (distinct swf files).
> then within modules i run my operations and finally when i closed
the
> main application i would save the configuration for modules that i
> have modified..
> At the succesive startup i would retrieve saved data. Is it possible
> to save the entire modules, so an entire complex object? or is
> possible to save only data, for example values properties?
> Do you know any example in the web?
>
> Thanks Again
>
> Regards Lorenzo
>

#135764 From: "tntomek" <tntomek@...>
Date: Sat Jan 31, 2009 2:02 am
Subject: Re: Bug in ADG?, possible to bind labelFunction to editor with no dataField?
tntomek
Send Email Send Email
 
--- In flexcoders@yahoogroups.com, "tntomek" <tntomek@...> wrote:
>
> Hi,
>
> Does anyone have any idea how to edit data that does not come from
> fixed object properties i.e. myObject.Name but myObject.Attributes[2]
> which might be name?
>
> I have a 2D array, array of rows and array of cells for each row, both
> are arbitrary. I have this successfully displayed my data in
> AdvancedDataGrid via labelFunction.
>
> public function getContentLabel(item:GridRow,
> column:CustomLabelColumn) : String
> {
>  if(item != null)
>  {
> 	 return item.Cells.getGridLabelCellAt(column.columnIndex).Label;
>  }
>  else
>  {
> 	 return null;
>  }
> }
>
> How do I edit the data in these columns?
> I looked at
>
http://www.adobe.com/livedocs/flex/3/html/help.html?content=celleditor_8.html#19\
7235
> and tried messing around with itemEditBegin and itemEditEnd. I have
> itemEditBegin working successfully where I am able to display my label
> in a text box. The itemEditEnd for ADG seems to crash because I'm
> using typed objects instead of plan strings or XML.
>
> In fact I'm convinced there is a bug in the itemEnd base handler. I
> tried calling preventDefault from the grids itemEnd function but no
> luck, I am forced to overwrite the event.reason so that the base class
> doesnt destroy my itemEditor.
>
> My issue is here:
>
> In AdvancedDataGridBaseEx.as
>
> private function
> itemEditorItemEditEndHandler(event:AdvancedDataGridEvent):void
> ...........
>
> var newData:Object =
> itemEditorInstance[_columns[event.columnIndex].editorDataField];
> var property:String = _columns[event.columnIndex].dataField;
> var data:Object = event.itemRenderer.data;
> var typeInfo:String = "";
>
> //WHY is this only XML??? my "data" variable has plan String text and
> yet I never make it into the typeInfo == String part since typeInfo is
> "" because the XML loop never executes on an object;
>
> for each(var variable:XML in describeType(data).variable)
>     {
>         if (property == variable.@...())
>         {
>             typeInfo = variable.@...();
>             break;
>         }
>     }
>  if (typeInfo == "String")
>                 {
> //NEVER make it here
>                     if (!(newData is String))
>                         newData = newData.toString();
>                 }
> //..........
> //CRASH HERE since property is null.
> // data = "Some Text";
> if (data[property] != newData)
>                 {
>                     bChanged = true;
>                     data[property] = newData;
>                 }
>

To add,

the following line expects a dataField to be provided (I have not)

var property:String = _columns[event.columnIndex].dataField;

but the code should not get there if its just a string.

#135765 From: "tntomek" <tntomek@...>
Date: Sat Jan 31, 2009 1:48 am
Subject: Re: Bug in ADG?, possible to bind labelFunction to editor with no dataField?
tntomek
Send Email Send Email
 
--- In flexcoders@yahoogroups.com, "Tracy Spratt" <tspratt@...> wrote:
>
> If you know that "var data:Object = event.itemRenderer.data;" contains a
> string, why not just use toString() to put the string value in a string
> variable?:
>
>
>
>
>
> And I am not quite following you otherwise.  What are you truing to do
> with describeType()?  That is usually used with non-dynamic objects, but
> you have a simple 2d indexed array, correct?  You said, "array of rows
> and array of cells".  Do you mean "array" or do you mean you have nested
> dynamic objects?
>
>
>
> If you have nested dynamic ovjects, you can examine them with a for-each
> or for-in loop.
>
>
>
> Note, describeType is "costly".  That means slow, so be sure you need
> it.  It seems like a dangerous thing to do in a lableFunction.
>
>
>
> Tracy Spratt
> Lariat Services
>
> Flex development bandwidth available
>
> ________________________________
>
> From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On
> Behalf Of tntomek
> Sent: Thursday, January 29, 2009 6:07 PM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Bug in ADG?, possible to bind labelFunction to
> editor with no dataField?
>
>
>
> Hi,
>
> Does anyone have any idea how to edit data that does not come from
> fixed object properties i.e. myObject.Name but myObject.Attributes[2]
> which might be name?
>
> I have a 2D array, array of rows and array of cells for each row, both
> are arbitrary. I have this successfully displayed my data in
> AdvancedDataGrid via labelFunction.
>
> public function getContentLabel(item:GridRow,
> column:CustomLabelColumn) : String
> {
> if(item != null)
> {
> return item.Cells.getGridLabelCellAt(column.columnIndex).Label;
> }
> else
> {
> return null;
> }
> }
>
> How do I edit the data in these columns?
> I looked at
> http://www.adobe.com/livedocs/flex/3/html/help.html?content=celleditor_8
> .html#197235
> <http://www.adobe.com/livedocs/flex/3/html/help.html?content=celleditor_
> 8.html#197235>
> and tried messing around with itemEditBegin and itemEditEnd. I have
> itemEditBegin working successfully where I am able to display my label
> in a text box. The itemEditEnd for ADG seems to crash because I'm
> using typed objects instead of plan strings or XML.
>
> In fact I'm convinced there is a bug in the itemEnd base handler. I
> tried calling preventDefault from the grids itemEnd function but no
> luck, I am forced to overwrite the event.reason so that the base class
> doesnt destroy my itemEditor.
>
> My issue is here:
>
> In AdvancedDataGridBaseEx.as
>
> private function
> itemEditorItemEditEndHandler(event:AdvancedDataGridEvent):void
> ...........
>
> var newData:Object =
> itemEditorInstance[_columns[event.columnIndex].editorDataField];
> var property:String = _columns[event.columnIndex].dataField;
> var data:Object = event.itemRenderer.data;
> var typeInfo:String = "";
>
> //WHY is this only XML??? my "data" variable has plan String text and
> yet I never make it into the typeInfo == String part since typeInfo is
> "" because the XML loop never executes on an object;
>
> for each(var variable:XML in describeType(data).variable)
> {
> if (property == variable.@...
> <mailto:variable.%40name.toString> ())
> {
> typeInfo = variable.@... <mailto:variable.%40type.toString>
> ();
> break;
> }
> }
> if (typeInfo == "String")
> {
> //NEVER make it here
> if (!(newData is String))
> newData = newData.toString();
> }
> //..........
> //CRASH HERE since property is null.
> // data = "Some Text";
> if (data[property] != newData)
> {
> bChanged = true;
> data[property] = newData;
> }
>

The code I described is in Flex DMV code, AdvancedDataGridBaseEx.as
itemEndHandler. This is a private method and contains some private
class variables so I'm not able to modify it's implementation. At
first I tried to event.preventDefault() in my local handler but this
implementation seems to do important stuff, I dont feel comfortable
skipping this code but maybe I should. In addition, this method seems
to make use of event.reason in addition to preventDefault.

The array is not simple in that its a typed ArrayCollection of rows
which each row having a typed ArrayCollecton of cells. So to get at an
instance of a cell I go:

var cell:MyTypedCell =
typedArrayCollectionRows.getMyTypedRowAt(0).Cells.getMyTypedCellAt(0)

I was able to handle the itemBegin handler and put a cell.Label value
and in TextInput.text. This is where I also manualy populate the
event.itemRenderer.data = "some text" (the itemEnd handler expects thi
to be XML it seems). So I can successfully display the editing portion
of ADG. Where I get into trouble is the default handler for itemEnd.
I'm not sure what to do in regards to cleanup and preventing the
default from firing. Note that I'm only using the default ADG item
renderer for now so I'd like to stick with default implementation as
much as possible.

I will try to upload a complete simplified project if you would be so
kind as to take a look at this issue and maybe a better best practice.

Thank you for the reply,

#135766 From: "tntomek" <tntomek@...>
Date: Sun Feb 1, 2009 7:17 pm
Subject: mx.controls.* vs mx.control.TextInput affect SWF size
tntomek
Send Email Send Email
 
Is the Flex compiler smart enough not to include dependent objects
that are not used? Does this apply to SDK and custom classes in the
same way? What about DMV?

Do any of my unused custom classes get compiled? If I have a
Utility/Helper project that is quite large will it affect my SWF size
if i only use 5% on a particular Flex app?

#135767 From: "David Kramer" <kramer.david@...>
Date: Sun Feb 1, 2009 10:38 pm
Subject: RE: drag and drop ('into' the list items, while not adding to the list itself; Ex: iTunes)
dmkramerica
Send Email Send Email
 

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?

<?xml version="1.0" encoding="utf-8"?>

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

<mx:Script>

<![CDATA[

import mx.controls.Label;

import mx.collections.ArrayCollection;

import mx.events.DragEvent;

import mx.managers.DragManager;

import mx.core.DragSource;

import mx.utils.ObjectUtil;

[Bindable]

private var presentationDefaultCollection:ArrayCollection;

[Bindable]

private var imagesAcademicCollection:ArrayCollection;

private function init():void {

this.imagesAcademicCollection = new ArrayCollection();

this.imagesAcademicCollection.addItem({source:"img/A01132009/highereducation1-tn.jpg",title:"Image 1",segment:"Academic"});

this.imagesAcademicCollection.addItem({source:"img/A01132009/highereducation2-tn.jpg",title:"Image 2",segment:"Academic"});

this.imagesAcademicCollection.addItem({source:"img/A01132009/highereducation3-tn.jpg",title:"Image 3",segment:"Academic"});

this.imagesAcademicCollection.addItem({source:"img/A01132009/highereducation4-tn.jpg",title:"Image 4",segment:"Academic"});

this.imagesAcademicCollection.addItem({source:"img/A01132009/highereducation5-tn.jpg",title:"Image 5",segment:"Academic"});

this.presentationDefaultCollection = new ArrayCollection();

this.presentationDefaultCollection.addItem({source:"img/A01132009/highereducation1-tn.jpg",title:"Presentation 1"});

this.presentationDefaultCollection.addItem({source:"img/A01132009/highereducation2-tn.jpg",title:"Presentation 2"});

this.presentationDefaultCollection.addItem({source:"img/A01132009/highereducation3-tn.jpg",title:"Presentation 3"});

}

private function dragEnterHandler(event:DragEvent):void

{

// Get the drop target component from the event object.

var dropTarget:Label=event.currentTarget as Label;

// Accept the drag only if the user is dragging data

// identified by the 'value' format value.

if (event.dragSource.hasFormat('value'))

{

// Accept the drop.

DragManager.acceptDragDrop(dropTarget);

trace('enter');

}

}

// Called if the target accepts the dragged object and the user

// releases the mouse button while over the drop target.

private function dragDropHandler(event:DragEvent):void

{

// Explicitly handle the dragDrop event.

event.preventDefault();

// Get the data from the drag source.

var value:String = event.dragSource.dataForFormat('value') as String;

// Add Slide to the presentation

sqlStuff();

}

// Helper method for sql stuff

private function sqlStuff():void

{

//the sql stuff

trace('sql');

}

]]>

</mx:Script>

<mx:HBox>

<mx:DataGrid id="presentationGrid"

dataProvider="{this.presentationDefaultCollection}"

width="200">

<mx:columns>

<mx:DataGridColumn headerText="Presentations">

<mx:itemRenderer>

<mx:Component>

<mx:Label text="{data.title}"

dragEnter="dragEnterHandler(event);"

dragDrop="dragDropHandler(event);" />

</mx:Component>

</mx:itemRenderer>

</mx:DataGridColumn>

</mx:columns>

</mx:DataGrid>

<mx:DataGrid id="slideGrid"

dataProvider="{this.imagesAcademicCollection}"

dragEnabled="true"

width="200">

<mx:columns>

<mx:DataGridColumn headerText="Slide" dataField="title" draggable="true" />

<mx:DataGridColumn headerText="Segment" dataField="segment" draggable="true" />

</mx:columns>

</mx:DataGrid>

</mx:HBox>

</mx:WindowedApplication>



From: flexcoders@yahoogroups.com [mailto:flexcoders@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.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:flexcoders@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:flexcoders@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:flexcoders@yahoogroups.com] On Behalf Of David Kramer
Sent: Friday, January 30, 2009 3:52 PM
To: flexcoders@yahoogroups.com
Cc: kramer.david@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@consultant.com)


Messages 135738 - 135767 of 165719   Oldest  |  < Older  |  Newer >  |  Newest
Add to My Yahoo!      XML What's This?

Copyright © 2010 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines NEW - Help