[flexcoders] Re: TileList displaying wrong index

2009-08-10 Thread steve horvath

I figured it out.  The problem was due to the fact that I had a bind tag
set on the ArrayCollection getter that is updated whenever a
CollectionChange occurs.

I will post a more complete question next time.  Thanks to Tim and Tracy
for trying to help.


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

 
 
 




--- In flexcoders@yahoogroups.com, "steve horvath" 
wrote:
>
> My apologies.  I really didn't mean to come across as brash.  I
realize you are trying to help and I do appreciate it.
>
> Let me put together a small app and I'll post it here.
>
> Steve
>
> --- In flexcoders@yahoogroups.com, "Tim Hoff" TimHoff@ wrote:
> >
> >
> > Yes, _includedAlbums.selectedItem should have been
> > albumsThumbnailList.selectedItem.  And no, the code below is not
> > sufficient to reproduce the problem.  For instance, where is
> > presentations.currentPresentation.presentedAlbumIndex defined?  If
you
> > want someone's help here, make it easy for them to copy and paste a
> > small Application for testing.
> >
> > Besides that, excuse the hell out of me.  Go ahead and continue to
look
> > at it for hours.
> >
> > -TH
> >
> > --- In flexcoders@yahoogroups.com, "steve horvath" 
> > wrote:
> > >
> > >
> > > The code below is sufficient to reproduce the problem.
> > >
> > > _includedAlbums is an ArrayCollection, so no .selectedItem
property on
> > > that. In any case, I am already happily setting the
> > presentedAlbumIndex
> > > by other means. It's the TileList selectedIndex that I need to
update
> > > properly.
> > >
> > > --- In flexcoders@yahoogroups.com, "Tim Hoff" TimHoff@ wrote:
> > > >
> > > >
> > > > Not sure what to tell you without having a sample application to
> > play
> > > > with. But, you could try some brute force techniques, like:
> > > >
> > > > _includedAlbums.removeItemAt(1);
> > > > presentations.currentPresentation.presentedAlbumIndex =
> > > > _includedAlbums.getItemIndex(_includedAlbums.selectedItem);
> > > >
> > > > -TH
> > > >
> > > > --- In flexcoders@yahoogroups.com, "steve horvath" flexcoders@
> > > > wrote:
> > > > >
> > > > >
> > > > > I've been looking at this for hours. Does anyone know why I am
> > > seeing
> > > > > this behavior? Or at least tell me how I can debug to provide
more
> > > > > information.
> > > > >
> > > > >
> > > > > --- In flexcoders@yahoogroups.com, "steve horvath" flexcoders@
> > > > > wrote:
> > > > > >
> > > > > >
> > > > > > I have a TileList:
> > > > > >
> > > > > >  > > />
> > > > > >  > > > > >
text="{presentations.currentPresentation.presentedAlbumIndex}"
> > />
> > > > > >  > > > > > useRollOver="false" initialize="mySizeBinding(event);"
> > > > > >
> > > > >
dataProvider="{presentations.currentPresentation.presentedAlbums}"
> > > > > > itemRenderer="PresentationAlbumRenderer"
> > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
selectedIndex="{presentations.currentPresentation.presentedAlbumIndex}"
> > > > > > change="albumChangeHandler()" />
> > > > > >
> > > > > > public function test():void {
> > > > > > _includedAlbums.removeItemAt(1);
> > > > > > dispatchEvent(new Event("albumToggledEvent"));
> > > > > > presentedAlbumIndex--;
> > > > > > }
> > > > > >
> > > > > > BEFORE test():
> > > > > > label1 == 5
> > > > > > label2 == 5
> > > > > >
> > > > > > AFTER test():
> > > > > > label1 == 5
> > > > > > label2 == 4
> > > > > >
> > > > > > Problem is, when the 5th index is currently selected and I
> > delete
> > > an
> > > > > > item earlier in the list (like index 2), the data provider
> > updates
> > > > the
> > > > > > list. But the selectedIndex doesn't get updated. (See test()
> > > > > > function.) I noticed when I comment out the removeItemAt
line,
> > the
> > > > > > index gets updated just fine.
> > > > > >
> > > > > > How do I update the data provider and index in the same
> > operation
> > > > and
> > > > > > get the TileList to bind correctly? Can I perhaps subclass
> > > TileList
> > > > > and
> > > > > > override a function? Some other way?
> > > > > >
> > > > > > I tried looking into the internals of ListBase, inspecting
> > > > > > selectedIndex, and generally browsing around at runtime. I
> > noticed
> > > > > that
> > > > > > selectedIndex does get set to 4 momentarily. Then it gets
set
> > > right
> > > > > > back to 5 again. I'm guessing it may have to do with the
> > > > > > updateDisplayList or something like that.
> > > > > >
> > > > >
> > > >
> > >
> >
>




[flexcoders] Re: ameature question but am desperate

2009-08-10 Thread stinasius
thats exactly what i am doing. no difference at all. when i use a textinput, 
and combobox, data is inserted but a checkbox is complex. so am still where i 
was yesterday... no progress and still the same error.



RE: [flexcoders] Image source in ItemRenderer

2009-08-10 Thread Tracy Spratt
Some further advice:  Do not attempt to create an item renderer from scratch
until you have done 10-20.  Find an example, there are many, and modify it
for your use.

 

Renderers are optimized for performance by tightly integrating with the flex
framework.  That makes them a bit complicated.

 

Tracy Spratt,

Lariat Services, development services available

  _  

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of |Mirko
Sent: Monday, August 10, 2009 1:22 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Image source in ItemRenderer

 

  


Thank you very much Tracy, will try that and post back results.

Best regards

Tracy Spratt-2 wrote:
> 
> In your renderer, override set data(), set a "dirty" flag, and call
> invalidateProperties() then in an override to commitProperties, check the
> flag and perform your logic.
> 
> 
> 
> You cannot use creationComplete for item-dependent logic because renderers
> are recycled.
> 
> 
> 
> Tracy Spratt,
> 
> Lariat Services, development services available
> 
> _ 
> 
> From: flexcod...@yahoogro  ups.com
[mailto:flexcod...@yahoogro  ups.com]
On
> Behalf Of |Mirko
> Sent: Monday, August 10, 2009 9:57 AM
> To: flexcod...@yahoogro  ups.com
> Subject: [flexcoders] Image source in ItemRenderer
> 
> 
> 
> 
> 
> 
> Hi,
> 
> I have a situatition where i used custom ItemRenderer in TileList
> component.
> Item renderer basically consists of Image and Label component. Data
> provider
> is XML so Image and Label bindings are to da...@image and da...@desc which
> is displayed just fine.
> 
> My question is, how can i check before item is rendered if da...@image is
> empty and if it is, set a custom image (like image_missing.jpg or smth) as
> Image component source? I mean, i know a logic to check that but not sure
> where to implement it? I tried in ItemRenderer when creationComplete event
> is fired but with no success so if someone could help me a bit with a
> simple
> example or smth i would really appreciate it.
> 
> Thanks in advance,
> Mirko 
> -- 
> View this message in context: http://www.nabble.
>  com/Image-source-in-ItemRenderer-tp24900257p24900257.html
>> com/Image-source-in-ItemRenderer-tp24900257p24900257.html
> Sent from the FlexCoders mailing list archive at Nabble.com.
> 
> 
> 
> 
> 

-- 
View this message in context: http://www.nabble.
 com/Image-source-in-ItemRenderer-tp24900257p24903832.html
Sent from the FlexCoders mailing list archive at Nabble.com.





RE: [flexcoders] Re: TileList displaying wrong index

2009-08-10 Thread Tracy Spratt
You are setting the selectedIndex here:

selectedIndex="{presentations.currentPresentation.presentedAlbumIndex

 

Have you debugged that to see if it is correct?  Take out the binding and
try it in the handler for albumToggledEvent.

 

Tracy Spratt,

Lariat Services, development services available

  _  

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of steve horvath
Sent: Monday, August 10, 2009 6:45 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: TileList displaying wrong index

 

  

My apologies. I really didn't mean to come across as brash. I realize you
are trying to help and I do appreciate it.

Let me put together a small app and I'll post it here.

Steve

--- In flexcod...@yahoogro  ups.com,
"Tim Hoff"  wrote:
>
> 
> Yes, _includedAlbums.selectedItem should have been
> albumsThumbnailList.selectedItem. And no, the code below is not
> sufficient to reproduce the problem. For instance, where is
> presentations.currentPresentation.presentedAlbumIndex defined? If you
> want someone's help here, make it easy for them to copy and paste a
> small Application for testing.
> 
> Besides that, excuse the hell out of me. Go ahead and continue to look
> at it for hours.
> 
> -TH
> 
> --- In flexcod...@yahoogro  ups.com,
"steve horvath" 
> wrote:
> >
> >
> > The code below is sufficient to reproduce the problem.
> >
> > _includedAlbums is an ArrayCollection, so no .selectedItem property on
> > that. In any case, I am already happily setting the
> presentedAlbumIndex
> > by other means. It's the TileList selectedIndex that I need to update
> > properly.
> >
> > --- In flexcod...@yahoogro 
ups.com, "Tim Hoff" TimHoff@ wrote:
> > >
> > >
> > > Not sure what to tell you without having a sample application to
> play
> > > with. But, you could try some brute force techniques, like:
> > >
> > > _includedAlbums.removeItemAt(1);
> > > presentations.currentPresentation.presentedAlbumIndex =
> > > _includedAlbums.getItemIndex(_includedAlbums.selectedItem);
> > >
> > > -TH
> > >
> > > --- In flexcod...@yahoogro 
ups.com, "steve horvath" flexcoders@
> > > wrote:
> > > >
> > > >
> > > > I've been looking at this for hours. Does anyone know why I am
> > seeing
> > > > this behavior? Or at least tell me how I can debug to provide more
> > > > information.
> > > >
> > > >
> > > > --- In flexcod...@yahoogro 
ups.com, "steve horvath" flexcoders@
> > > > wrote:
> > > > >
> > > > >
> > > > > I have a TileList:
> > > > >
> > > > >  > />
> > > > >  > > > > text="{presentations.currentPresentation.presentedAlbumIndex}"
> />
> > > > >  > > > > useRollOver="false" initialize="mySizeBinding(event);"
> > > > >
> > > > dataProvider="{presentations.currentPresentation.presentedAlbums}"
> > > > > itemRenderer="PresentationAlbumRenderer"
> > > > >
> > > > >
> > > >
> > >
> >
> selectedIndex="{presentations.currentPresentation.presentedAlbumIndex}"
> > > > > change="albumChangeHandler()" />
> > > > >
> > > > > public function test():void {
> > > > > _includedAlbums.removeItemAt(1);
> > > > > dispatchEvent(new Event("albumToggledEvent"));
> > > > > presentedAlbumIndex--;
> > > > > }
> > > > >
> > > > > BEFORE test():
> > > > > label1 == 5
> > > > > label2 == 5
> > > > >
> > > > > AFTER test():
> > > > > label1 == 5
> > > > > label2 == 4
> > > > >
> > > > > Problem is, when the 5th index is currently selected and I
> delete
> > an
> > > > > item earlier in the list (like index 2), the data provider
> updates
> > > the
> > > > > list. But the selectedIndex doesn't get updated. (See test()
> > > > > function.) I noticed when I comment out the removeItemAt line,
> the
> > > > > index gets updated just fine.
> > > > >
> > > > > How do I update the data provider and index in the same
> operation
> > > and
> > > > > get the TileList to bind correctly? Can I perhaps subclass
> > TileList
> > > > and
> > > > > override a function? Some other way?
> > > > >
> > > > > I tried looking into the internals of ListBase, inspecting
> > > > > selectedIndex, and generally browsing around at runtime. I
> noticed
> > > > that
> > > > > selectedIndex does get set to 4 momentarily. Then it gets set
> > right
> > > > > back to 5 again. I'm guessing it may have to do with the
> > > > > updateDisplayList or something like that.
> > > > >
> > > >
> > >
> >
>





RE: [flexcoders] Re: PopUp databinding - possible?

2009-08-10 Thread Tracy Spratt
In the popup, you would do:

 



 

Here is a full example.  In it, I passed in a reference to the mainApp
instead of using the Application.application reference.

 

http://www.cflex.net/showFileDetails.cfm?ObjectID=558

 

Tracy Spratt,

Lariat Services, development services available

  _  

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of Dave Cates
Sent: Monday, August 10, 2009 10:33 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Re: PopUp databinding - possible?

 

  

Hi Tracey,

Your comment in your first reply is exactly what I'm asking clarification
on:

>From 1st reply...

" Now you can bind to any bindable property in MyMainAppFileName"

How would you do this?

Sorry if it's really simple but I can't work out how to databind in as3 to a
dynamically created popup.

Thanks.

  _  

From: Tracy Spratt 
Reply-To: 
Date: Mon, 10 Aug 2009 10:09:05 -0400
To: 
Subject: RE: [flexcoders] Re: PopUp databinding - possible?

 
 
 

See the code in my first reply.
 

Tracy Spratt,
Lariat Services, development services available

  _  

From: flexcoders@yahoogroups.com [mailto:flexcoders@
 yahoogroups.com] On Behalf Of Dave Cates
Sent: Monday, August 10, 2009 7:16 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Re: PopUp databinding - possible?

  

Hi Tracey,

Many thanks for your responses so far.

My only question is how do you bind any data into the popup?

Some example code...

In the parent AS code:

// declare new instance of my popup item
Var addPopUP:MyPopUp = new MyPopUp();

// assign var value to popup
AddPopUp.someData = _someData;

// display popup
PopUpManager.addPopUP( addPopUp, this, true);


In the Popup:

[Bindable]
Private var _someData:String;

[Bindable]
Public function set someData  (value:String):void
{
_someData = value;
}
Public function get someData():String
{
return _someData;
}

So, with your code inserted, how would the code above look different so that
when the _someData var in the parent changed, popup would automatically see
that change? (without creating another function in the parent - it needs to
be binded).

Thanks!
Dave.

  _  

From: Tracy Spratt 
Reply-To: 
Date: Fri, 7 Aug 2009 22:49:00 -0400
To: 
Subject: RE: [flexcoders] Re: PopUp databinding - possible?

 
 
 

".in the creationComplete="init() of the PopUp?" Yes. 
 
Full syntax of what?  This: "[Bindable]private var _app:MyMainAppFileName;"
is full syntax.
 

Tracy Spratt,
Lariat Services, development services available 

  _  


From: flexcoders@yahoogroups.com [mailto:flexcoders@
 yahoogroups.com] On Behalf Of
spuy...@ymail.com
Sent: Friday, August 07, 2009 2:25 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: PopUp databinding - possible?

  

Tracy:

What do you mean by?

In a creation complete handler, assign:
_var =Application.application as MyMainAppFileName;

Do you mean in the creationComplete="init() of the PopUp? If so, what is the
full syntax?

Thanks!
Lee

--- In flexcoders@yahoogroups.com  40yahoogroups.com> , "Tracy Spratt"
 wrote:
>
> Sure. In the pop-up, define a bindable variable, say
> 
> [Bindable]private var _app:MyMainAppFileName;
> 
> 
> 
> In a creation complete handler, assign:
> 
> _var = Application.application as MyMainAppFileName;
> 
> 
> 
> Now you can bind to any bindable property in MyMainAppFileName
> 
> 
> 
> If that is backwards to what you want, then I advise dispatching events
from
> the Pop-up. Remember, binding is just an event mechanism that is created
by
> the compiler.
> 
> 
> 
> 
> 
> Tracy Spratt,
> 
> Lariat Services, development services available
> 
> _ 
> 
> From: flexcoders@yahoogroups.com  40yahoogroups.com> [mailto:flexcoders@
 yahoogroups.com  40yahoogroups.com> ] On
> Behalf Of Dave Cates
> Sent: Friday, August 07, 2009 10:01 AM
> To: flexcoders@yahoogroups.com  40yahoogroups.com> 
> Subject: [flexcoders] PopUp databinding - possible?
> 
> 
> 
> 
> 
> Hi all,
> 
> I have an mxml component that I am displaying via the popup manager
method.
> 
> But, I have data that is sent to this popup that needs to be data bound -
> database updates etc.
> 
> So, how do you databind to the vars inside the popup? If the MXML
component
> was on the stage as normal I'd have no problems but the popup, my nature,
is
> created at run-time.
> 
> So is it possible and if so, how?!
> 
> Thanks!
> Dave.
>
  


  








[flexcoders] Re: LCDS: Destination inheritance - is this a working feature?

2009-08-10 Thread meteatamel
Hi Greg,

Could you please open a bug for these issues so we can investigate?

http://bugs.adobe.com/jira/browse/LCDS

Thanks,
Mete

--- In flexcoders@yahoogroups.com, "gordon_greg"  wrote:
>
> Greetings,
> 
> I've got a problem with setting up a model hierarchy that requires using the 
>  attribute of a DataService Destination in LCDS, but it doesn't 
> exactly work.
> 
> I'm noticing some rather obvious issues (bugs?) that involve lazy 
> associations on sub-classes when there is no lazy association on the base 
> class.
> 
> Furthermore, if I point to my hierarchical class(es) from a separate class 
> (one that actually requires a join table in between), then none of the 
> subclass properties are loaded at all, only the base class properties are 
> loaded.
> 
> I'm happy to provide as much information as necessary if anyone has any 
> guidance for me.
> 
> Thanks,
> 
> Greg Gordon
>




[flexcoders] Re: Lcds via Tomcat on Mac - possible?

2009-08-10 Thread meteatamel
I have LCDS and Tomcat running fine on Mac OS.

-Mete

--- In flexcoders@yahoogroups.com, Johannes Nel  wrote:
>
> just grab the latest version of tomcat, drop them lcds jars under tomcat/lib
> and remember to set the context in your application project xml under
> tomcat/conf/Catalina/localhost/{project}.xml to include
> 
>   jotm.timeout="60"/>
> 
> 
> then you should really be good to go.
> On Fri, Jul 31, 2009 at 6:38 AM, Steven Marcus  wrote:
> 
> >
> >
> > The lcds "test drive" as distributed by adobe, with an older version of
> > tomcat, works on the mac -- although I think I installed the linux version
> > on linux and then copied the installed/unpacked dir over to the mac.
> >
> > I think the problem you are running into is trying to get lcds installed
> > correctly on a newer version of tomcat.
> >
> > There are some notes/hints in the livecycle release notes on how to go
> > about
> > setting up livecycle correctly.
> > I remember doing a diff between a standard tomcat install and the tomcat
> > provided by adobe to finally figure it out.
> >
> > You are likely to run into this problem running on all platforms, not just
> > Macs.
> >
> > Good luck!
> >
> >  
> >
> 
> 
> 
> -- 
> j:pn
> \\no comment
>




[flexcoders] Re: DataService Destination Clustering is not working

2009-08-10 Thread meteatamel
Hi,

Could you please open a bug with all this info in LCDS bugbase please?

http://bugs.adobe.com/jira/browse/LCDS

Thanks,
Mete - Adobe

--- In flexcoders@yahoogroups.com, "Dharmendra Chauhan"  
wrote:
>
> Hi All ,
> 
> We are trying to get clustering configured for our application so that 
> DataService's Destination keep serving  the cleint in case of any server 
> failure .  We are using F5  hardware load balancer.
>  
> 
> We have set up a default-cluster, using tcp and  while creating DataService 
> Destination we are setting cluster ID  as follows
>  
> 
> 1)
>.
> 
> DataNetworkSettings ns = new DataNetworkSettings();
> ns.setPagingEnabled("false");
> ns.setClusterId("default-cluster")
> 
> 
> 2) service-config.xml
> 
>  
> 
>  url-load-balancing="false" />
> 
>   
> 
> 3) jgroup-tcp.xml - First
> 
>  enable_diagnostics="true"/>
> 
>  num_initial_members="1"/>
> 
> 
> 
> 
> 3) jgroup-tcp.xml - Seond
> 
>  enable_diagnostics="true"/>
> 
>   port_range="1" num_initial_members="1"/>
> 
>  
> 
>  
> 
> I am using Jboss4.2.2 GA and LCDS2.6.1 and we have licensed version of LCDS
> 
>  
> I am getting following message on JBoss console : -
> 
>   
> 
> 04:26:15,296 INFO  [STDOUT] [Flex]Cluster node from address 114.19.8.161:7800 
> joined the cluster for default-cluster
> 
> 04:26:15,718 INFO  [JBossCacheManager] Starting JBossManager
> 
> 04:26:15,734 INFO  [TreeCache] received the state (size=1024 bytes)
> 
> 04:26:15,750 INFO  [TreeCache] received the state (size=8192 bytes)
> 
> 04:26:15,765 ERROR [TreeCache] failed setting transient state
> 
> java.lang.ClassCastException: org.jboss.cache.loader.NodeData
> 
> at 
> org.jboss.cache.statetransfer.StateTransferIntegrator_140.integrateTransientSta
>  te(StateTransferIntegrator_140.java:210)
> 
> at 
> org.jboss.cache.statetransfer.StateTransferIntegrator_140.integrateTransientSta
>  te(StateTransferIntegrator_140.java:100)
> 
> 
> Am I  missing anything  ?
> 
> During the testing when I bring down one of the jboss server, It immediately 
> throws Destination  does not exist error
> 
> 
> I will appreciate any help on this .
>  
> 
> Thanks
> Dharmendra
>




[flexcoders] Re: LCDS : Looking for livecycle experts

2009-08-10 Thread meteatamel
Hi,

Could you please give us a simple test case that shows the behavior? You can 
email me directly.

Thanks,
Mete - Adobe


--- In flexcoders@yahoogroups.com, Johannes Nel  wrote:
>
> I personally have not used the MultiTopicConsumer class (unless its
> underlying in something else I used, but still unaware).
> 
> Is there anyway you can interrogate the server side classes to find out if
> your client application is subscribed post a refresh?
> (does it log in cataline.out that the user has resubscribed)
> 
> I can think of a brutal workaround if you can interrogate, create another
> destination (or to be doubly safe a simple jsp page) which you ask if you
> are connected after a certain timeout.
> 
> Underlying a lot of the lcds stuff is netconnection,I enjoyed working with
> netconnection (and netstream) in AS2 more than AS3. Netconnection I find
> flaky as fugk.
> 
> 
> On Mon, Aug 10, 2009 at 12:26 PM, Besite - Bart  wrote:
> 
> >
> >
> > Hello Jonathan, thanks for your reply :) i know the feeling !
> >
> > The main problem that we deal with is the following (that I posted on the
> > mailing list some weeks ago,
> > but unfortunately, I did not get much answers) :
> >
> > "I have a messaging application that makes use of the MultiTopicConsumer
> > class. When I run my application for the first time,
> > a MultiTopicConsumer is instantiated and we subscribe() to the this
> > consumer. We always receive a MessageAckEvent message after subscribing.
> >
> > Now when we refresh our browser (F5), sometimes we don't receive a
> > MessageAckEvent after subscribing (and we also don't receive messages
> > for the topics we subscribed to).
> >
> > It's not clear when the subscription succeeds and when not.. "
> >
> > If you need more information, let me know.
> >
> > Kind regards
> > Bart
> >
> >
> >
> > I tried this and got 0 responses. :(
> > What are your issues, I have been through a fair amount of pain recently
> > with livecycle.
> >
> >  On Mon, Aug 10, 2009 at 11:11 AM, Besite - Bart  wrote:
> >
> >>
> >>
> >> Dear all,
> >>
> >> We have developed a Flex application that extensively uses Livecycle
> >> Data Services, more precisely, we use the
> >> Data Management Service and Messaging Service.
> >>
> >> Our application should be released within a month, but we still
> >> encounter some problems and issues with LCDS, and are a bit stuck at the
> >> moment.
> >> We are considering to hire a Livecycle Expert for a few days that can
> >> help us with debugging the known problems.
> >>
> >> Our company is located in Belgium (nearby Brussels), but of course help
> >> from a distance is also an option.
> >>
> >> If there are people who consider themselves livecycle experts ;) and are
> >> interested, let us know !
> >>
> >> Kind regards
> >> Bart
> >>
> >
> >
> >
> > --
> > j:pn
> > \\no comment
> >
> >
> >  
> >
> 
> 
> 
> -- 
> j:pn
> \\no comment
>




[flexcoders] Re: Instantiation of State Objects

2009-08-10 Thread Geoffrey
I'm getting a clearer picture of why I'm seeing state-related issue.

In my setup, state B is a custom component.  This component has event listeners 
for creationComplete and remove.  I noticed that going from state A to state B, 
the creationComplete handler is called.  however, going back to state A, the 
remove event handler is called.  This handler does various things to cleanup 
after itself and one of them is 'this.removeAllChildren()'.  When I go back to 
state B, the UI is blank and the creationComplete handler is not called.

This all seems to make sense given the Flex 3 state model, except for the 
calling of the remove handler.  Does removing it from the displayList generate 
the remove event?  If that's the case, then is seems like it's intention is to 
trash that state, allowing for garbage collection.  It should then create a new 
instance of state B when it's accessed the second time.

Perhaps we're using the remove event incorrectly.  We use it to clean up.  This 
could involve resetting a  model, removing event handlers, closing stray 
popups, removing all children, etc.  Since this is being called, all of the 
contents of state B are being removed, but are never recreated since it doesn't 
re-instantiate the component in state B.

Any ideas?

Thanks,
 Geoff

--- In flexcoders@yahoogroups.com, "Geoffrey"  wrote:
>
> Great, that's exactly what I wanted to know.  For Flex 3, is there any way to 
> free the children for garbage collection, hack or otherwise?
> 
> --- In flexcoders@yahoogroups.com, Gordon Smith  wrote:
> >
> > In the Flex 3 states model, if you start in state A, go to state B which 
> > creates and adds a child, and return to state A, the child is removed from 
> > the display list but kept around. When you return to state B, it doesn't 
> > have to be recreated and can just be re-added.
> > 
> > In the Flex 4 states model, the default behavior is the same, but you can 
> > use destructon policies to say that the child should not only be removed 
> > from the display list but also freed for garbage collection.
> > 
> > Gordon Smith
> > Adobe Flex SDK Team
> > 
> > From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On 
> > Behalf Of Geoffrey
> > Sent: Thursday, August 06, 2009 2:43 PM
> > To: flexcoders@yahoogroups.com
> > Subject: [flexcoders] Instantiation of State Objects
> > 
> > 
> > 
> > Are the objects for a state recreated every time a state is entered, or if 
> > the object was created once, is it reused?
> > 
> > Basically, I want to know if I swap between states, are the objects defined 
> > by AddChild new instances every time I enter that state.
> >
>




[flexcoders] Re: PDF-ActionScript communication in AIR app

2009-08-10 Thread inudor
No ideas I guess...

and maybe something like manipulating the PDF file when the users loads it, 
like injecting those handler functions that should be added by Adobe Acrobat? 
Do you know if this would be possible with any ActionScript PDF library?

thanks in advances,

Marc Baiges Camprubí

--- In flexcoders@yahoogroups.com, "inudor"  wrote:
>
> Hi all,
> 
> I'm trying to create an AIR application where an important feature must be 
> loading PDF documents, rendering them in an HTML component, and navigating 
> the PDF document pages as the user interacts with the AIR application. 
> 
> For example, imagine 2 PDF documents rendered in the AIR app, and browsing 
> pages in first PDF would result into the second PDF changing pages too.
> 
> Is there any way to listen/trigger those kind of events to a PDF in a HTML 
> component in AIR? 
> 
> I saw this article 
> http://www.adobe.com/devnet/air/ajax/quickstart/scripting_pdf.html , but I 
> understand you have to create the PDF documents with special handling 
> functions for javascript communication, and I can't assume this for my 
> application, as I want the user to be able to use any PDF file he/she wants.
> 
> thanks,
> 
> Marc Baiges Camprubí
>




[flexcoders] Re: TileList displaying wrong index

2009-08-10 Thread steve horvath
My apologies.  I really didn't mean to come across as brash.  I realize you are 
trying to help and I do appreciate it.

Let me put together a small app and I'll post it here.

Steve

--- In flexcoders@yahoogroups.com, "Tim Hoff"  wrote:
>
> 
> Yes, _includedAlbums.selectedItem should have been
> albumsThumbnailList.selectedItem.  And no, the code below is not
> sufficient to reproduce the problem.  For instance, where is
> presentations.currentPresentation.presentedAlbumIndex defined?  If you
> want someone's help here, make it easy for them to copy and paste a
> small Application for testing.
> 
> Besides that, excuse the hell out of me.  Go ahead and continue to look
> at it for hours.
> 
> -TH
> 
> --- In flexcoders@yahoogroups.com, "steve horvath" 
> wrote:
> >
> >
> > The code below is sufficient to reproduce the problem.
> >
> > _includedAlbums is an ArrayCollection, so no .selectedItem property on
> > that. In any case, I am already happily setting the
> presentedAlbumIndex
> > by other means. It's the TileList selectedIndex that I need to update
> > properly.
> >
> > --- In flexcoders@yahoogroups.com, "Tim Hoff" TimHoff@ wrote:
> > >
> > >
> > > Not sure what to tell you without having a sample application to
> play
> > > with. But, you could try some brute force techniques, like:
> > >
> > > _includedAlbums.removeItemAt(1);
> > > presentations.currentPresentation.presentedAlbumIndex =
> > > _includedAlbums.getItemIndex(_includedAlbums.selectedItem);
> > >
> > > -TH
> > >
> > > --- In flexcoders@yahoogroups.com, "steve horvath" flexcoders@
> > > wrote:
> > > >
> > > >
> > > > I've been looking at this for hours. Does anyone know why I am
> > seeing
> > > > this behavior? Or at least tell me how I can debug to provide more
> > > > information.
> > > >
> > > >
> > > > --- In flexcoders@yahoogroups.com, "steve horvath" flexcoders@
> > > > wrote:
> > > > >
> > > > >
> > > > > I have a TileList:
> > > > >
> > > > >  > />
> > > > >  > > > > text="{presentations.currentPresentation.presentedAlbumIndex}"
> />
> > > > >  > > > > useRollOver="false" initialize="mySizeBinding(event);"
> > > > >
> > > > dataProvider="{presentations.currentPresentation.presentedAlbums}"
> > > > > itemRenderer="PresentationAlbumRenderer"
> > > > >
> > > > >
> > > >
> > >
> >
> selectedIndex="{presentations.currentPresentation.presentedAlbumIndex}"
> > > > > change="albumChangeHandler()" />
> > > > >
> > > > > public function test():void {
> > > > > _includedAlbums.removeItemAt(1);
> > > > > dispatchEvent(new Event("albumToggledEvent"));
> > > > > presentedAlbumIndex--;
> > > > > }
> > > > >
> > > > > BEFORE test():
> > > > > label1 == 5
> > > > > label2 == 5
> > > > >
> > > > > AFTER test():
> > > > > label1 == 5
> > > > > label2 == 4
> > > > >
> > > > > Problem is, when the 5th index is currently selected and I
> delete
> > an
> > > > > item earlier in the list (like index 2), the data provider
> updates
> > > the
> > > > > list. But the selectedIndex doesn't get updated. (See test()
> > > > > function.) I noticed when I comment out the removeItemAt line,
> the
> > > > > index gets updated just fine.
> > > > >
> > > > > How do I update the data provider and index in the same
> operation
> > > and
> > > > > get the TileList to bind correctly? Can I perhaps subclass
> > TileList
> > > > and
> > > > > override a function? Some other way?
> > > > >
> > > > > I tried looking into the internals of ListBase, inspecting
> > > > > selectedIndex, and generally browsing around at runtime. I
> noticed
> > > > that
> > > > > selectedIndex does get set to 4 momentarily. Then it gets set
> > right
> > > > > back to 5 again. I'm guessing it may have to do with the
> > > > > updateDisplayList or something like that.
> > > > >
> > > >
> > >
> >
>




[flexcoders] How to enable keyboard input in a Box?

2009-08-10 Thread mitchgrrt
I have a thing I'm drawing on screen using a Box and some graphics.  I
would like it to also respond to some keyboard events.  (It responds
well to mouse clicks and drag events.)  Key clicks  don't seem to work:
box.focusEnabled = true;
box.addEventListener(KeyboardEvent.KEY_DOWN, onKeyDown);
The onKeyDown method never gets called.  Is there a way to do this? 
Thanks.



[flexcoders] Re: TileList displaying wrong index

2009-08-10 Thread Tim Hoff

Yes, _includedAlbums.selectedItem should have been
albumsThumbnailList.selectedItem.  And no, the code below is not
sufficient to reproduce the problem.  For instance, where is
presentations.currentPresentation.presentedAlbumIndex defined?  If you
want someone's help here, make it easy for them to copy and paste a
small Application for testing.

Besides that, excuse the hell out of me.  Go ahead and continue to look
at it for hours.

-TH

--- In flexcoders@yahoogroups.com, "steve horvath" 
wrote:
>
>
> The code below is sufficient to reproduce the problem.
>
> _includedAlbums is an ArrayCollection, so no .selectedItem property on
> that. In any case, I am already happily setting the
presentedAlbumIndex
> by other means. It's the TileList selectedIndex that I need to update
> properly.
>
> --- In flexcoders@yahoogroups.com, "Tim Hoff" TimHoff@ wrote:
> >
> >
> > Not sure what to tell you without having a sample application to
play
> > with. But, you could try some brute force techniques, like:
> >
> > _includedAlbums.removeItemAt(1);
> > presentations.currentPresentation.presentedAlbumIndex =
> > _includedAlbums.getItemIndex(_includedAlbums.selectedItem);
> >
> > -TH
> >
> > --- In flexcoders@yahoogroups.com, "steve horvath" flexcoders@
> > wrote:
> > >
> > >
> > > I've been looking at this for hours. Does anyone know why I am
> seeing
> > > this behavior? Or at least tell me how I can debug to provide more
> > > information.
> > >
> > >
> > > --- In flexcoders@yahoogroups.com, "steve horvath" flexcoders@
> > > wrote:
> > > >
> > > >
> > > > I have a TileList:
> > > >
> > > >  />
> > > >  > > > text="{presentations.currentPresentation.presentedAlbumIndex}"
/>
> > > >  > > > useRollOver="false" initialize="mySizeBinding(event);"
> > > >
> > > dataProvider="{presentations.currentPresentation.presentedAlbums}"
> > > > itemRenderer="PresentationAlbumRenderer"
> > > >
> > > >
> > >
> >
>
selectedIndex="{presentations.currentPresentation.presentedAlbumIndex}"
> > > > change="albumChangeHandler()" />
> > > >
> > > > public function test():void {
> > > > _includedAlbums.removeItemAt(1);
> > > > dispatchEvent(new Event("albumToggledEvent"));
> > > > presentedAlbumIndex--;
> > > > }
> > > >
> > > > BEFORE test():
> > > > label1 == 5
> > > > label2 == 5
> > > >
> > > > AFTER test():
> > > > label1 == 5
> > > > label2 == 4
> > > >
> > > > Problem is, when the 5th index is currently selected and I
delete
> an
> > > > item earlier in the list (like index 2), the data provider
updates
> > the
> > > > list. But the selectedIndex doesn't get updated. (See test()
> > > > function.) I noticed when I comment out the removeItemAt line,
the
> > > > index gets updated just fine.
> > > >
> > > > How do I update the data provider and index in the same
operation
> > and
> > > > get the TileList to bind correctly? Can I perhaps subclass
> TileList
> > > and
> > > > override a function? Some other way?
> > > >
> > > > I tried looking into the internals of ListBase, inspecting
> > > > selectedIndex, and generally browsing around at runtime. I
noticed
> > > that
> > > > selectedIndex does get set to 4 momentarily. Then it gets set
> right
> > > > back to 5 again. I'm guessing it may have to do with the
> > > > updateDisplayList or something like that.
> > > >
> > >
> >
>





[flexcoders] Re: TileList displaying wrong index

2009-08-10 Thread steve horvath

The code below is sufficient to reproduce the problem.

_includedAlbums is an ArrayCollection, so no .selectedItem property on
that.  In any case, I am already happily setting the presentedAlbumIndex
by other means.  It's the TileList selectedIndex that I need to update
properly.

--- In flexcoders@yahoogroups.com, "Tim Hoff"  wrote:
>
>
> Not sure what to tell you without having a sample application to play
> with.  But, you could try some brute force techniques, like:
>
> _includedAlbums.removeItemAt(1);
> presentations.currentPresentation.presentedAlbumIndex =
> _includedAlbums.getItemIndex(_includedAlbums.selectedItem);
>
> -TH
>
> --- In flexcoders@yahoogroups.com, "steve horvath" flexcoders@
> wrote:
> >
> >
> > I've been looking at this for hours. Does anyone know why I am
seeing
> > this behavior? Or at least tell me how I can debug to provide more
> > information.
> >
> >
> > --- In flexcoders@yahoogroups.com, "steve horvath" flexcoders@
> > wrote:
> > >
> > >
> > > I have a TileList:
> > >
> > > 
> > >  > > text="{presentations.currentPresentation.presentedAlbumIndex}" />
> > >  > > useRollOver="false" initialize="mySizeBinding(event);"
> > >
> > dataProvider="{presentations.currentPresentation.presentedAlbums}"
> > > itemRenderer="PresentationAlbumRenderer"
> > >
> > >
> >
>
selectedIndex="{presentations.currentPresentation.presentedAlbumIndex}"
> > > change="albumChangeHandler()" />
> > >
> > > public function test():void {
> > > _includedAlbums.removeItemAt(1);
> > > dispatchEvent(new Event("albumToggledEvent"));
> > > presentedAlbumIndex--;
> > > }
> > >
> > > BEFORE test():
> > > label1 == 5
> > > label2 == 5
> > >
> > > AFTER test():
> > > label1 == 5
> > > label2 == 4
> > >
> > > Problem is, when the 5th index is currently selected and I delete
an
> > > item earlier in the list (like index 2), the data provider updates
> the
> > > list. But the selectedIndex doesn't get updated. (See test()
> > > function.) I noticed when I comment out the removeItemAt line, the
> > > index gets updated just fine.
> > >
> > > How do I update the data provider and index in the same operation
> and
> > > get the TileList to bind correctly? Can I perhaps subclass
TileList
> > and
> > > override a function? Some other way?
> > >
> > > I tried looking into the internals of ListBase, inspecting
> > > selectedIndex, and generally browsing around at runtime. I noticed
> > that
> > > selectedIndex does get set to 4 momentarily. Then it gets set
right
> > > back to 5 again. I'm guessing it may have to do with the
> > > updateDisplayList or something like that.
> > >
> >
>




[flexcoders] Re: TileList displaying wrong index

2009-08-10 Thread Tim Hoff

Not sure what to tell you without having a sample application to play
with.  But, you could try some brute force techniques, like:

_includedAlbums.removeItemAt(1);
presentations.currentPresentation.presentedAlbumIndex =
_includedAlbums.getItemIndex(_includedAlbums.selectedItem);

-TH

--- In flexcoders@yahoogroups.com, "steve horvath" 
wrote:
>
>
> I've been looking at this for hours. Does anyone know why I am seeing
> this behavior? Or at least tell me how I can debug to provide more
> information.
>
>
> --- In flexcoders@yahoogroups.com, "steve horvath" flexcoders@
> wrote:
> >
> >
> > I have a TileList:
> >
> > 
> >  > text="{presentations.currentPresentation.presentedAlbumIndex}" />
> >  > useRollOver="false" initialize="mySizeBinding(event);"
> >
> dataProvider="{presentations.currentPresentation.presentedAlbums}"
> > itemRenderer="PresentationAlbumRenderer"
> >
> >
>
selectedIndex="{presentations.currentPresentation.presentedAlbumIndex}"
> > change="albumChangeHandler()" />
> >
> > public function test():void {
> > _includedAlbums.removeItemAt(1);
> > dispatchEvent(new Event("albumToggledEvent"));
> > presentedAlbumIndex--;
> > }
> >
> > BEFORE test():
> > label1 == 5
> > label2 == 5
> >
> > AFTER test():
> > label1 == 5
> > label2 == 4
> >
> > Problem is, when the 5th index is currently selected and I delete an
> > item earlier in the list (like index 2), the data provider updates
the
> > list. But the selectedIndex doesn't get updated. (See test()
> > function.) I noticed when I comment out the removeItemAt line, the
> > index gets updated just fine.
> >
> > How do I update the data provider and index in the same operation
and
> > get the TileList to bind correctly? Can I perhaps subclass TileList
> and
> > override a function? Some other way?
> >
> > I tried looking into the internals of ListBase, inspecting
> > selectedIndex, and generally browsing around at runtime. I noticed
> that
> > selectedIndex does get set to 4 momentarily. Then it gets set right
> > back to 5 again. I'm guessing it may have to do with the
> > updateDisplayList or something like that.
> >
>





[flexcoders] SDK 3.4.0

2009-08-10 Thread alekseyvays
I just installed SDK 3.4.0.6955. I'm using RSL. This error message is produced 
now:

Error #2046: The loaded file did not have a valid signature.
Failed to load RSL framework_3.4.0.6955.swz
Failing over to RSL framework_3.4.0.6955.swf

What may be wrong?
Thanks in advance.



RE: [flexcoders] drawings dont get clipped by holder

2009-08-10 Thread Alex Harui
If you draw into a UIComponent, the UIComponent needs to report the correct 
width/height for the Canvas to clip it properly.  UIComponent doesn’t do that 
automatically so you’d need to create a custom component.

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 thomas parquier
Sent: Saturday, August 08, 2009 10:24 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] drawings dont get clipped by holder



Hi,

I writing an app which can draw shapes on sprites within a uicomponent 
(contentHolder), which holds some other canvas components.
This contentHolder can be move within a canvas (drawingCanvas) which has 
"clipContent=true".
But clipping seems erratic : shapes dont seem to be taken into account 
especially at left hand side of drawingCanvas when some graphics are negative 
in sprites coordinates space.

thomas
---
http://www.web-attitude.fr/
msn : thomas.parqu...@web-attitude.fr
softphone : sip:webattit...@ekiga.net
téléphone portable : +33601 822 056



[flexcoders] SWC Cache messing up Flash Builder 4; Implicit coercion of a value....

2009-08-10 Thread Aldo Bucchi
Hi,

I know this bug has been around for a while and results in type errors such as:

1067: Implicit coercion of a value of type mx.rpc:Responder to an
unrelated type mx.rpc:IResponder.

I can live with that. But now I am finding that I cannot export an AIR
project at all. I use a dozen libraries ( linked projects ) so this is
probably creating more space for the error to show up. I need a
workaround.

Is there a way to tell the compiler to skip the swc cache?
Or maybe just avoid type checking?
( the latter sounds a bit too extreme and probably unreal ).

Thanks,
A


-- 
Aldo Bucchi
skype:aldo.bucchi
http://www.univrz.com/
http://aldobucchi.com/

PRIVILEGED AND CONFIDENTIAL INFORMATION
This message is only for the use of the individual or entity to which it is
addressed and may contain information that is privileged and confidential. If
you are not the intended recipient, please do not distribute or copy this
communication, by e-mail or otherwise. Instead, please notify us immediately by
return e-mail.


[flexcoders] Re: TileList displaying wrong index

2009-08-10 Thread steve horvath

I've been looking at this for hours.  Does anyone know why I am seeing
this behavior?  Or at least tell me how I can debug to provide more
information.


--- In flexcoders@yahoogroups.com, "steve horvath" 
wrote:
>
>
> I have a TileList:
>
> 
>  text="{presentations.currentPresentation.presentedAlbumIndex}" />
>  useRollOver="false" initialize="mySizeBinding(event);"
> 
dataProvider="{presentations.currentPresentation.presentedAlbums}"
>  itemRenderer="PresentationAlbumRenderer"
>
>
selectedIndex="{presentations.currentPresentation.presentedAlbumIndex}"
>  change="albumChangeHandler()" />
>
> public function test():void {
>  _includedAlbums.removeItemAt(1);
>  dispatchEvent(new Event("albumToggledEvent"));
>  presentedAlbumIndex--;
> }
>
> BEFORE test():
> label1 == 5
> label2 == 5
>
> AFTER test():
> label1 == 5
> label2 == 4
>
> Problem is, when the 5th index is currently selected and I delete an
> item earlier in the list (like index 2), the data provider updates the
> list.  But the selectedIndex doesn't get updated.  (See test()
> function.)  I noticed when I comment out the removeItemAt line, the
> index gets updated just fine.
>
> How do I update the data provider and index in the same operation and
> get the TileList to bind correctly?  Can I perhaps subclass TileList
and
> override a function?  Some other way?
>
> I tried looking into the internals of ListBase, inspecting
> selectedIndex, and generally browsing around at runtime.  I noticed
that
> selectedIndex does get set to 4 momentarily.  Then it gets set right
> back to 5 again.  I'm guessing it may have to do with the
> updateDisplayList or something like that.
>




RE: [flexcoders] Re: ameature question but am desperate

2009-08-10 Thread Wally Kolcz
Here is a done sample of one of mine:





the source equates to the root of the 
site/com/isavepets/cfc/discounts/discountGateway.cfc

Inside my discountGateway.cfc is a function called listByType that takes a 
single argument ('type')

I then call the function in AS like this:

discountGateway.listByType(type); (type being either static or passed in as an 
argument)


From: amanyire arthur 
Sent: Monday, August 10, 2009 8:26 AM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Re: ameature question but am desperate 

care to guide me?  

--- On Mon, 8/10/09, Tracy Spratt  wrote:

From: Tracy Spratt 
Subject: RE: [flexcoders] Re: ameature question but am desperate
To: flexcoders@yahoogroups.com
Date: Monday, August 10, 2009, 6:58 AM

I don't know CF or do much
RemoteObject, but I do not see where you are passing in the "cat"
argument value.Tracy Spratt,  Lariat Services, development services
available 

 From:  flexcod...@yahoogro ups..com [mailto: flexcod...@yahoogro ups.com ] On 
Behalf Of stinasius
Sent: Monday, August 10, 2009 6:23
AM
To: flexcod...@yahoogro ups.com
Subject: [flexcoders] Re: ameature
question but am desperate   

still no progress. here is my code please help on what
i shld do.

"chk.mxml"



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















 



"insert.cfc"









INSERT INTO cats(cat)

VALUES("#arguments. cat#")







i get the following error when i try to insert the value of the chk box into
the database 

"Unable to invoke CFC - Error Executing Database Query." 





RE: [flexcoders] Re: ameature question but am desperate

2009-08-10 Thread Wally Kolcz

Is you're RemoteObject's source set to the dot note path to the 
CFC? And the CFC's method name is 'cat'?

Mine usually looks something like 



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















 



"insert.cfc"









INSERT INTO cats(cat)

VALUES("#arguments. cat#")







i get the following error when i try to insert the value of the chk box into
the database 

"Unable to invoke CFC - Error Executing Database Query." 






RE: [flexcoders] Image source in ItemRenderer

2009-08-10 Thread |Mirko

Thank you very much Tracy, will try that and post back results.

Best regards


Tracy Spratt-2 wrote:
> 
> In your renderer, override set data(), set a "dirty" flag, and call
> invalidateProperties()  then in an override to commitProperties, check the
> flag and perform your logic.
> 
>  
> 
> You cannot use creationComplete for item-dependent logic because renderers
> are recycled.
> 
>  
> 
> Tracy Spratt,
> 
> Lariat Services, development services available
> 
>   _  
> 
> From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
> Behalf Of |Mirko
> Sent: Monday, August 10, 2009 9:57 AM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Image source in ItemRenderer
> 
>  
> 
>   
> 
> 
> Hi,
> 
> I have a situatition where i used custom ItemRenderer in TileList
> component.
> Item renderer basically consists of Image and Label component. Data
> provider
> is XML so Image and Label bindings are to da...@image and da...@desc which
> is displayed just fine.
> 
> My question is, how can i check before item is rendered if da...@image is
> empty and if it is, set a custom image (like image_missing.jpg or smth) as
> Image component source? I mean, i know a logic to check that but not sure
> where to implement it? I tried in ItemRenderer when creationComplete event
> is fired but with no success so if someone could help me a bit with a
> simple
> example or smth i would really appreciate it.
> 
> Thanks in advance,
> Mirko 
> -- 
> View this message in context: http://www.nabble.
> > com/Image-source-in-ItemRenderer-tp24900257p24900257.html
> Sent from the FlexCoders mailing list archive at Nabble.com.
> 
> 
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Image-source-in-ItemRenderer-tp24900257p24903832.html
Sent from the FlexCoders mailing list archive at Nabble.com.



RE: [flexcoders] Re: ameature question but am desperate

2009-08-10 Thread amanyire arthur
care to guide me?  

--- On Mon, 8/10/09, Tracy Spratt  wrote:

From: Tracy Spratt 
Subject: RE: [flexcoders] Re: ameature question but am desperate
To: flexcoders@yahoogroups.com
Date: Monday, August 10, 2009, 6:58 AM






 





  







I don’t know CF or do much
RemoteObject, but I do not see where you are passing in the “cat”
argument value. 

   



Tracy Spratt, 

Lariat Services, development services
available 











From: flexcod...@yahoogro ups.com [mailto: flexcod...@yahoogro ups.com ] On 
Behalf Of stinasius

Sent: Monday, August 10, 2009 6:23
AM

To: flexcod...@yahoogro ups.com

Subject: [flexcoders] Re: ameature
question but am desperate 



   

   









still no progress. here is my code please help on what
i shld do.



"chk.mxml"





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





















 





"insert.cfc"











INSERT INTO cats(cat)

VALUES("#arguments. cat#")









i get the following error when i try to insert the value of the chk box into
the database 



"Unable to invoke CFC - Error Executing Database Query." 










 

  




 

















  

[flexcoders] Is the Text Layout Framework Forum down?

2009-08-10 Thread Daniel Freiman
The Text Layout Forum seems to have disappeared.  It's not on the list of
labs forums.  The links from the labs page leads to a file not found page.
Did this get moved or merged into the Flex forum?

- Daniel Freiman


Re: [flexcoders] Re: PopUp databinding - possible?

2009-08-10 Thread Dave Cates
Hi Tracey,

Your comment in your first reply is exactly what I¹m asking clarification
on:

>From 1st reply...

³ Now you can bind to any bindable property in MyMainAppFileName²

How would you do this?

Sorry if it¹s really simple but I can¹t work out how to databind in as3 to a
dynamically created popup.

Thanks.

From: Tracy Spratt 
Reply-To: 
Date: Mon, 10 Aug 2009 10:09:05 -0400
To: 
Subject: RE: [flexcoders] Re: PopUp databinding - possible?

 
 
 

See the code in my first reply.
 

Tracy Spratt,
Lariat Services, development services available


From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of Dave Cates
Sent: Monday, August 10, 2009 7:16 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Re: PopUp databinding - possible?
 
  

Hi Tracey,

Many thanks for your responses so far.

My only question is how do you bind any data into the popup?

Some example code...

In the parent AS code:

// declare new instance of my popup item
Var addPopUP:MyPopUp = new MyPopUp();

// assign var value to popup
AddPopUp.someData = _someData;

// display popup
PopUpManager.addPopUP( addPopUp, this, true);


In the Popup:

[Bindable]
Private var _someData:String;

[Bindable]
Public function set someData  (value:String):void
{
_someData = value;
}
Public function get someData():String
{
return _someData;
}

So, with your code inserted, how would the code above look different so that
when the _someData var in the parent changed, popup would automatically see
that change? (without creating another function in the parent ­ it needs to
be binded).

Thanks!
Dave.


From: Tracy Spratt 
Reply-To: 
Date: Fri, 7 Aug 2009 22:49:00 -0400
To: 
Subject: RE: [flexcoders] Re: PopUp databinding - possible?

 
 
 

³Šin the creationComplete="init() of the PopUp?² Yes.
 
Full syntax of what?  This: ³[Bindable]private var _app:MyMainAppFileName;²
is full syntax.
 

Tracy Spratt,
Lariat Services, development services available


From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of spuy...@ymail.com
Sent: Friday, August 07, 2009 2:25 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: PopUp databinding - possible?

  

Tracy:

What do you mean by?

In a creation complete handler, assign:
_var =Application.application as MyMainAppFileName;

Do you mean in the creationComplete="init() of the PopUp? If so, what is the
full syntax?

Thanks!
Lee

--- In flexcoders@yahoogroups.com  ,
"Tracy Spratt"  wrote:
>
> Sure. In the pop-up, define a bindable variable, say
> 
> [Bindable]private var _app:MyMainAppFileName;
> 
> 
> 
> In a creation complete handler, assign:
> 
> _var = Application.application as MyMainAppFileName;
> 
> 
> 
> Now you can bind to any bindable property in MyMainAppFileName
> 
> 
> 
> If that is backwards to what you want, then I advise dispatching events from
> the Pop-up. Remember, binding is just an event mechanism that is created by
> the compiler.
> 
> 
> 
> 
> 
> Tracy Spratt,
> 
> Lariat Services, development services available
> 
> _ 
> 
> From: flexcoders@yahoogroups.com 
[mailto:flexcoders@yahoogroups.com  ] On
> Behalf Of Dave Cates
> Sent: Friday, August 07, 2009 10:01 AM
> To: flexcoders@yahoogroups.com 
> Subject: [flexcoders] PopUp databinding - possible?
> 
> 
> 
> 
> 
> Hi all,
> 
> I have an mxml component that I am displaying via the popup manager method.
> 
> But, I have data that is sent to this popup that needs to be data bound -
> database updates etc.
> 
> So, how do you databind to the vars inside the popup? If the MXML component
> was on the stage as normal I'd have no problems but the popup, my nature, is
> created at run-time.
> 
> So is it possible and if so, how?!
> 
> Thanks!
> Dave.
>
  


  


> 



[flexcoders] Convert Blue Dragon Web Service to ArrayCollection

2009-08-10 Thread Wally Kolcz
I have been working on trying to convert the Web Service result from
Blue Dragon to a usable, bindable ArrayCollection for a while now. I
think I have come up with a solution for a function that will do it for
me, but I just can't get it right. Maybe someone could help. I am
returning the data from the Web Service as Objects (returnformat) and
have been able to attach them to a datagrid by using their index
numbers.

I attached 2 images to this email. One of the returned
ArrayCollection of column names (columnList) and the other of the
values (data). I want to create an ArrayCollection that has the column
names matched with their values for each record row returned.

Here is the function I have so far:

public function convert(total:int, columns:ArrayCollection, 
data:ArrayCollection):ArrayCollection {

var AC:ArrayCollection = new ArrayCollection();

for(var i:int = 0; i < total; i++) {

var row:Object = new Object();

for (var r:int; r < columns.length; r++) {
row += [columns[r] = data[i][r]];
}
AC.addItem(row);
}
return AC;
}

total is the length of the event.result which is being passed in. columns is 
the ArrayCollection (e.result.columnList) and data is the ArrayCollection 
(e.result.data);


RE: [flexcoders] Re: PopUp databinding - possible?

2009-08-10 Thread Tracy Spratt
See the code in my first reply.

 

Tracy Spratt,

Lariat Services, development services available

  _  

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of Dave Cates
Sent: Monday, August 10, 2009 7:16 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Re: PopUp databinding - possible?

 

  

Hi Tracey,

Many thanks for your responses so far.

My only question is how do you bind any data into the popup?

Some example code...

In the parent AS code:

// declare new instance of my popup item
Var addPopUP:MyPopUp = new MyPopUp();

// assign var value to popup
AddPopUp.someData = _someData;

// display popup
PopUpManager.addPopUP( addPopUp, this, true);


In the Popup:

[Bindable]
Private var _someData:String;

[Bindable]
Public function set someData  (value:String):void
{
_someData = value;
}
Public function get someData():String
{
return _someData;
}

So, with your code inserted, how would the code above look different so that
when the _someData var in the parent changed, popup would automatically see
that change? (without creating another function in the parent - it needs to
be binded).

Thanks!
Dave.

  _  

From: Tracy Spratt 
Reply-To: 
Date: Fri, 7 Aug 2009 22:49:00 -0400
To: 
Subject: RE: [flexcoders] Re: PopUp databinding - possible?

 
 
 

".in the creationComplete="init() of the PopUp?" Yes. 
 
Full syntax of what?  This: "[Bindable]private var _app:MyMainAppFileName;"
is full syntax.
 

Tracy Spratt,
Lariat Services, development services available

  _  

From: flexcoders@yahoogroups.com [mailto:flexcoders@
 yahoogroups.com] On Behalf Of
spuy...@ymail.com
Sent: Friday, August 07, 2009 2:25 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: PopUp databinding - possible?

  

Tracy:

What do you mean by?

In a creation complete handler, assign:
_var =Application.application as MyMainAppFileName;

Do you mean in the creationComplete="init() of the PopUp? If so, what is the
full syntax?

Thanks!
Lee

--- In flexcoders@yahoogroups.com  40yahoogroups.com> , "Tracy Spratt"
 wrote:
>
> Sure. In the pop-up, define a bindable variable, say
> 
> [Bindable]private var _app:MyMainAppFileName;
> 
> 
> 
> In a creation complete handler, assign:
> 
> _var = Application.application as MyMainAppFileName;
> 
> 
> 
> Now you can bind to any bindable property in MyMainAppFileName
> 
> 
> 
> If that is backwards to what you want, then I advise dispatching events
from
> the Pop-up. Remember, binding is just an event mechanism that is created
by
> the compiler.
> 
> 
> 
> 
> 
> Tracy Spratt,
> 
> Lariat Services, development services available
> 
> _ 
> 
> From: flexcoders@yahoogroups.com  40yahoogroups.com> [mailto:flexcoders@
 yahoogroups.com  40yahoogroups.com> ] On
> Behalf Of Dave Cates
> Sent: Friday, August 07, 2009 10:01 AM
> To: flexcoders@yahoogroups.com  40yahoogroups.com> 
> Subject: [flexcoders] PopUp databinding - possible?
> 
> 
> 
> 
> 
> Hi all,
> 
> I have an mxml component that I am displaying via the popup manager
method.
> 
> But, I have data that is sent to this popup that needs to be data bound -
> database updates etc.
> 
> So, how do you databind to the vars inside the popup? If the MXML
component
> was on the stage as normal I'd have no problems but the popup, my nature,
is
> created at run-time.
> 
> So is it possible and if so, how?!
> 
> Thanks!
> Dave.
>
  








RE: [flexcoders] Image source in ItemRenderer

2009-08-10 Thread Tracy Spratt
In your renderer, override set data(), set a "dirty" flag, and call
invalidateProperties()  then in an override to commitProperties, check the
flag and perform your logic.

 

You cannot use creationComplete for item-dependent logic because renderers
are recycled.

 

Tracy Spratt,

Lariat Services, development services available

  _  

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of |Mirko
Sent: Monday, August 10, 2009 9:57 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Image source in ItemRenderer

 

  


Hi,

I have a situatition where i used custom ItemRenderer in TileList component.
Item renderer basically consists of Image and Label component. Data provider
is XML so Image and Label bindings are to da...@image and da...@desc which
is displayed just fine.

My question is, how can i check before item is rendered if da...@image is
empty and if it is, set a custom image (like image_missing.jpg or smth) as
Image component source? I mean, i know a logic to check that but not sure
where to implement it? I tried in ItemRenderer when creationComplete event
is fired but with no success so if someone could help me a bit with a simple
example or smth i would really appreciate it.

Thanks in advance,
Mirko 
-- 
View this message in context: http://www.nabble.
 com/Image-source-in-ItemRenderer-tp24900257p24900257.html
Sent from the FlexCoders mailing list archive at Nabble.com.





RE: [flexcoders] comboBox and TextInput

2009-08-10 Thread Tracy Spratt
Use e4x expressions to get he data provider for the combo: 

var xl:XMLList = xml.Node;

 

 

In the combo change handler, the combo.selectedItem will be the xml node
corresponding to the item you select.  Use that to set up you visualization

 

I am not following the logic of you second question.

 

Tracy Spratt,

Lariat Services, development services available

  _  

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of cholid cholid
Sent: Monday, August 10, 2009 2:43 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] comboBox and TextInput

 

  


Hi all, i'got problem again,
i'm quite confused in compete it
i have one week and many book

i've data ;



   





1st Question=
i want to in my project with RaVis i can select option in ComboBox and the
result is the visualization of the option that i select. i.e if i select "A"
so the visualization in canvas is just show node 1 and two with edge.

2nd Question=
and if i type in TextInput "D", the visualization show in canvas node 3 and
4 with glow in node D

can anyone complete it?
i hope it will be resolved in here
Thanks
cholid.r

 





Re: [flexcoders] Re: PopUp databinding - possible?

2009-08-10 Thread Dave Cates
Hi Tracey,

Many thanks for your responses so far.

My only question is how do you bind any data into the popup?

Some example code...

In the parent AS code:

// declare new instance of my popup item
Var addPopUP:MyPopUp = new MyPopUp();

// assign var value to popup
AddPopUp.someData = _someData;

// display popup
PopUpManager.addPopUP( addPopUp, this, true);


In the Popup:

[Bindable]
Private var _someData:String;

[Bindable]
Public function set someData  (value:String):void
{
_someData = value;
}
Public function get someData():String
{
return _someData;
}

So, with your code inserted, how would the code above look different so that
when the _someData var in the parent changed, popup would automatically see
that change? (without creating another function in the parent ­ it needs to
be binded).

Thanks!
Dave.


From: Tracy Spratt 
Reply-To: 
Date: Fri, 7 Aug 2009 22:49:00 -0400
To: 
Subject: RE: [flexcoders] Re: PopUp databinding - possible?

 
 
 

³Šin the creationComplete="init() of the PopUp?² Yes.
 
Full syntax of what?  This: ³[Bindable]private var _app:MyMainAppFileName;²
is full syntax.
 

Tracy Spratt,
Lariat Services, development services available


From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of spuy...@ymail.com
Sent: Friday, August 07, 2009 2:25 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: PopUp databinding - possible?
 
  

Tracy:

What do you mean by?

In a creation complete handler, assign:
_var =Application.application as MyMainAppFileName;

Do you mean in the creationComplete="init() of the PopUp? If so, what is the
full syntax?

Thanks!
Lee

--- In flexcoders@yahoogroups.com  ,
"Tracy Spratt"  wrote:
>
> Sure. In the pop-up, define a bindable variable, say
> 
> [Bindable]private var _app:MyMainAppFileName;
> 
> 
> 
> In a creation complete handler, assign:
> 
> _var = Application.application as MyMainAppFileName;
> 
> 
> 
> Now you can bind to any bindable property in MyMainAppFileName
> 
> 
> 
> If that is backwards to what you want, then I advise dispatching events from
> the Pop-up. Remember, binding is just an event mechanism that is created by
> the compiler.
> 
> 
> 
> 
> 
> Tracy Spratt,
> 
> Lariat Services, development services available
> 
> _ 
> 
> From: flexcoders@yahoogroups.com 
[mailto:flexcoders@yahoogroups.com  ] On
> Behalf Of Dave Cates
> Sent: Friday, August 07, 2009 10:01 AM
> To: flexcoders@yahoogroups.com 
> Subject: [flexcoders] PopUp databinding - possible?
> 
> 
> 
> 
> 
> Hi all,
> 
> I have an mxml component that I am displaying via the popup manager method.
> 
> But, I have data that is sent to this popup that needs to be data bound -
> database updates etc.
> 
> So, how do you databind to the vars inside the popup? If the MXML component
> was on the stage as normal I'd have no problems but the popup, my nature, is
> created at run-time.
> 
> So is it possible and if so, how?!
> 
> Thanks!
> Dave.
>
  


> 



[flexcoders] I have a message error in Flex Builder:Unable to load applicationupdater_ui.swf

2009-08-10 Thread berceker_united
Hi, 
When I create a project type Air in Flex Builder, I receive an error  "Unable 
to load C:\Proigram File\[...]\applicationupdater_ui.swf". I have version 3 of 
Flex Builder with version 10 of Flash Player. I said that I BitDefender

Thank you






[flexcoders] Flex with SocketPrograming

2009-08-10 Thread arjunn43
Hi can anybody explain how can we write socket programing using flex 
and java in details.



RE: [flexcoders] AdvancedDataGrid and XML data synchronization ( dynamic datafield issue)

2009-08-10 Thread david lee

Tracy, Thank you for your reply.

This is part of my cord.
*** [part if main MXML]









*** [SchemaNameItemRenderer]
package 
{
import mx.controls.Text;
import mx.controls.dataGridClasses.DataGridListData;

public class SchemaNameItemRenderer extends Text
{
private var node:XML;

public function SchemaNameItemRenderer()
{
super();
}

override public function set data(value:Object):void
{
node=value as XML;
trace(DataGridListData(super.listData).dataField);
trace(super.listData);

if ((value as XML).name().toString() == "Member")
{
this.text=(value as 
XML)@membername.tostring();
no...@membername=this.text;
}
else if ((value as XML).name().toString() == 
"InnerType")
{
this.text=(value as 
XML)@innertypename.tostring();
}
super.invalidateDisplayList();
}

override public function get data():Object
{
return node;
}

}
}





Tracy Spratt-2 wrote:
> 
> Use a custom item renderer and you can update the dataProvider any way you
> want.  However, what is the logic that defines the connection between a
> dataProvider item property and a given cell?
> 
>  *** [Source XML]
> 
>  
>  MemberType="char"/>
>  MemberType="char"/>
>  MemberType="char"/>
>  InnerTypeName="DATA">
>  MemberType="char"/>
>  MemberType="char"/>
> 
> 
> 
> 
> Tracy Spratt,
> 
> Lariat Services, development services available
> 
>   _  
> 
> From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
> Behalf Of david lee
> Sent: Monday, August 03, 2009 8:08 PM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] AdvancedDataGrid and XML data synchronization (
> dynamic datafield issue)
> 
>  
> 
>   
> 
> 
> I'm making kind of editor with AdavacedDataGrid (ADG) and TextArea.
> XML data in TextArea is dataProvider to ADG.
> So, If user change XML Data in TextArea ADG also updated.
> And if user change data using ADG, XML data in TextArea will be updated.
> 
> If XML data is simple, this function is not so difficult.
> But I need to use little complex XML data with multi depth.
> Below XML is one of example.
> 
> ===
> 
> 
> 
> 
> 
> 
> ===
> 
> I'm showing all of attributes on ADG.
> But, As you see element name and attribute name is not fixed.
> So, if i set datafie...@max , when I change third row data third row will
> be
> updated as below.
> 
> 
> 
> Is there any way to change SubMax="30" ?
> If I can set datafield dynamically, it would be solved.
> 
> I need your idea on this, Thank you.
> -- 
> View this message in context: http://www.nabble.
>  amic-datafield-issue%29-tp24800294p24800294.html>
> com/AdvancedDataGrid-and-XML-data-synchronization-%28-dynamic-datafield-issu
> e%29-tp24800294p24800294.html
> Sent from the FlexCoders mailing list archive at Nabble.com.
> 
> 
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/AdvancedDataGrid-and-XML-data-synchronization-%28-dynamic-datafield-issue%29-tp24800294p24894471.html
Sent from the FlexCoders mailing list archive at Nabble.com.



[flexcoders] Image source in ItemRenderer

2009-08-10 Thread |Mirko

Hi,

I have a situatition where i used custom ItemRenderer in TileList component.
Item renderer basically consists of Image and Label component. Data provider
is XML so Image and Label bindings are to da...@image and da...@desc which
is displayed just fine.

My question is, how can i check before item is rendered if da...@image is
empty and if it is, set a custom image (like image_missing.jpg or smth) as
Image component source? I mean, i know a logic to check that but not sure
where to implement it? I tried in ItemRenderer when creationComplete event
is fired but with no success so if someone could help me a bit with a simple
example or smth i would really appreciate it.

Thanks in advance,
Mirko 
-- 
View this message in context: 
http://www.nabble.com/Image-source-in-ItemRenderer-tp24900257p24900257.html
Sent from the FlexCoders mailing list archive at Nabble.com.



RE: [flexcoders] Re: ameature question but am desperate

2009-08-10 Thread Tracy Spratt
I don't know CF or do much RemoteObject, but I do not see where you are
passing in the "cat" argument value.

 

Tracy Spratt,

Lariat Services, development services available

  _  

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of stinasius
Sent: Monday, August 10, 2009 6:23 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: ameature question but am desperate

 

  

still no progress. here is my code please help on what i shld do.

"chk.mxml"


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










 


"insert.cfc"





INSERT INTO cats(cat)
VALUES("#arguments.cat#")




i get the following error when i try to insert the value of the chk box into
the database 

"Unable to invoke CFC - Error Executing Database Query."





Re: [flexcoders] LCDS : Looking for livecycle experts

2009-08-10 Thread Johannes Nel
I personally have not used the MultiTopicConsumer class (unless its
underlying in something else I used, but still unaware).

Is there anyway you can interrogate the server side classes to find out if
your client application is subscribed post a refresh?
(does it log in cataline.out that the user has resubscribed)

I can think of a brutal workaround if you can interrogate, create another
destination (or to be doubly safe a simple jsp page) which you ask if you
are connected after a certain timeout.

Underlying a lot of the lcds stuff is netconnection,I enjoyed working with
netconnection (and netstream) in AS2 more than AS3. Netconnection I find
flaky as fugk.


On Mon, Aug 10, 2009 at 12:26 PM, Besite - Bart  wrote:

>
>
> Hello Jonathan, thanks for your reply :) i know the feeling !
>
> The main problem that we deal with is the following (that I posted on the
> mailing list some weeks ago,
> but unfortunately, I did not get much answers) :
>
> "I have a messaging application that makes use of the MultiTopicConsumer
> class. When I run my application for the first time,
> a MultiTopicConsumer is instantiated and we subscribe() to the this
> consumer. We always receive a MessageAckEvent message after subscribing.
>
> Now when we refresh our browser (F5), sometimes we don't receive a
> MessageAckEvent after subscribing (and we also don't receive messages
> for the topics we subscribed to).
>
> It's not clear when the subscription succeeds and when not.. "
>
> If you need more information, let me know.
>
> Kind regards
> Bart
>
>
>
> I tried this and got 0 responses. :(
> What are your issues, I have been through a fair amount of pain recently
> with livecycle.
>
>  On Mon, Aug 10, 2009 at 11:11 AM, Besite - Bart  wrote:
>
>>
>>
>> Dear all,
>>
>> We have developed a Flex application that extensively uses Livecycle
>> Data Services, more precisely, we use the
>> Data Management Service and Messaging Service.
>>
>> Our application should be released within a month, but we still
>> encounter some problems and issues with LCDS, and are a bit stuck at the
>> moment.
>> We are considering to hire a Livecycle Expert for a few days that can
>> help us with debugging the known problems.
>>
>> Our company is located in Belgium (nearby Brussels), but of course help
>> from a distance is also an option.
>>
>> If there are people who consider themselves livecycle experts ;) and are
>> interested, let us know !
>>
>> Kind regards
>> Bart
>>
>
>
>
> --
> j:pn
> \\no comment
>
>
>  
>



-- 
j:pn
\\no comment


[flexcoders] Re: ameature question but am desperate

2009-08-10 Thread stinasius
still no progress. here is my code please help on what i shld do.

"chk.mxml"


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










  


"insert.cfc"





INSERT INTO cats(cat)
VALUES("#arguments.cat#")




i get the following error when i try to insert the value of the chk box into 
the database 

"Unable to invoke CFC - Error Executing Database Query."



Re: [flexcoders] LCDS : Looking for livecycle experts

2009-08-10 Thread Johannes Nel
I tried this and got 0 responses. :(
What are your issues, I have been through a fair amount of pain recently
with livecycle.

On Mon, Aug 10, 2009 at 11:11 AM, Besite - Bart  wrote:

>
>
> Dear all,
>
> We have developed a Flex application that extensively uses Livecycle
> Data Services, more precisely, we use the
> Data Management Service and Messaging Service.
>
> Our application should be released within a month, but we still
> encounter some problems and issues with LCDS, and are a bit stuck at the
> moment.
> We are considering to hire a Livecycle Expert for a few days that can
> help us with debugging the known problems.
>
> Our company is located in Belgium (nearby Brussels), but of course help
> from a distance is also an option.
>
> If there are people who consider themselves livecycle experts ;) and are
> interested, let us know !
>
> Kind regards
> Bart
>  
>



-- 
j:pn
\\no comment


[flexcoders] LCDS : Looking for livecycle experts

2009-08-10 Thread Besite - Bart
Dear all,

We have developed a Flex application that extensively uses Livecycle 
Data Services, more precisely, we use the
Data Management Service and Messaging Service.

Our application should be released within a month, but we still 
encounter some problems and issues with LCDS, and are a bit stuck at the 
moment.
We are considering to hire a Livecycle Expert for a few days that can 
help us with debugging the known problems.

Our company is located in Belgium (nearby Brussels), but of course help 
from a distance is also an option.

If there are people who consider themselves livecycle experts ;) and are 
interested, let us know !

Kind regards
Bart


Re: [flexcoders] Re: Question about how to learn Flex 3

2009-08-10 Thread John McCormack
fred44455 wrote:
> However I am a little confused. when I go to Flex 3.3 Language Reference , I 
> see a mix of Flash and Flex( Flash packages listed in the Language Reference to develop with Flex 3? Thanks
>   
You will probably end up using a mixture of the two languages.
The Flex bits will help you get the screen assets together, the look and 
feel of it. This higher level Flex code, written in mxml (like xml), 
enables you to quickly get screen layout organised. This mxml also gives 
you extra services to call on, compared to AS3.

The AS3 bits will add extra code to support what you do with the screen 
assets -boxes, etc. The AS3 code you use in Flash works in the same way 
in Flex, which uses a mixture of the two languages.

Personally, all my projects look like Flash applications, written as 
ActionScript projects in Flex. I prefer Flex for coding. Eventually, I 
may use some Flex code, supported by AS3 to write some different types 
of applications.

You will get more done with Flex but I think you will need AS3 eventually.

I would learn both.
Think of it as two tracks that merge or separate as the needs change.

John



RE: [flexcoders] how to search a file in directory using flex

2009-08-10 Thread Gregor Kiddie
Don't get mixed up between the runtimes.

 

Flex applications running in the Flash Player (i.e. on a web page) can
only select a file.

Flex applications running in AIR can access the file system directly.

 

AIR offers a superset of the Flash Player functionality. You can compile
a Flex application using AIR only APIs, but if you try and run it in the
Flash Player, you will get errors.

 

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
http://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.helpd...@inps.co.uk



From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of Adarsh Agrawal
Sent: 06 August 2009 12:21
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] how to search a file in directory using flex

 

  

Thank you so much for your prompt reply..

 

so can i use air functionality in flex??