[flexcoders] Re: Problem with code in Adobe Flex Training from the Source

2007-01-27 Thread primemate10
I receive the following error message for the lines that contain a linkbutton:

1119: Access of possibly undefined property CurrentState through a reference 
with static 
type EComm.

The following is the source code:

?xml version=1.0 encoding=utf-8?
mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=absolute
mx:states
mx:State name=cartView
mx:SetProperty target={products} name=width 
value=0/
mx:SetProperty target={products} name=height 
value=0/
mx:SetProperty target={cartBox} name=width 
value=100%/
mx:AddChild relativeTo={cartBox} 
position=lastChild
mx:DataGrid id=dgDataGrid width=100%
mx:columns
mx:DataGridColumn 
headerText=Column 1 
dataField=col1/
mx:DataGridColumn 
headerText=Column 2 
dataField=col2/
mx:DataGridColumn 
headerText=Column 3 
dataField=col3/
/mx:columns
/mx:DataGrid
/mx:AddChild
mx:RemoveChild target={lbtnViewCart}/
mx:AddChild relativeTo={cartBox} 
position=lastChild
mx:LinkButton label=Continue Shopping 
click=this.CurrentState='' id=lbtnContShop/
/mx:AddChild
/mx:State
/mx:states
mx:ApplicationControlBar dock=true width=100% height=90
mx:Canvas width=100% height=90
mx:Label x=0 y=10 text=Flex/
mx:Label x=0 y=41 text=GROCER/
mx:Button label=View Cart id=btnViewCart 
right=90/
mx:Button label=Checkout id=btnCheckout 
right=10/
/mx:Canvas
/mx:ApplicationControlBar
mx:Label text=(c) 2007, FlexGrocer right=10 bottom=10/
mx:HBox x=0 y=0 width=100% height=100% id=bodyBox
mx:VBox width=100% height=100% id=products
mx:Label text=Milk id=prodName/
mx:Label text=$1.99 id=price/
mx:Button label=Add To Cart id=add/
/mx:VBox
mx:VBox height=100% id=cartBox
mx:Label text=Your Cart Total: $/
mx:LinkButton label=View Cart 
click=this.CurrentState='cartView' 
id=lbtnViewCart/
/mx:VBox
/mx:HBox
/mx:Application


-- In flexcoders@yahoogroups.com, Weldon MacDonald [EMAIL PROTECTED] wrote:

 What exactly is the problem, I did those examples and they worked perfectly.
 
 On 1/25/07, primemate10 [EMAIL PROTECTED] wrote:
 
Could anyone assist me with a section of the Training from the Source
  book on Adobe Flex?
 
  Specifically, the section Working with View States (pages 52-56)
  just doesn't work as expected. I did the example over third times
  without any success.
 
  Any assistance that anyone can provide will be greatly appreciated.
 
   
 




Re: [flexcoders] Ogg Vorbis Tremor in AS3?

2007-01-27 Thread Abdul Qabiz

Cool! That's amazing..

-abdul

On 1/26/07, Martin Wood-Mitrovski [EMAIL PROTECTED] wrote:


  Its been done. :)

http://flash.j-ogg.de/

Hopefully the source will be released at some point.

I know that its built on top of the audio engine made by Chris Sperry of
FlashCodersBrighton fame.

http://www.flashcodersbrighton.org/wordpress/?p=9

There is a version of the core audio engine in the SID branch of the FC64
project if you are interested in seeing some source. (and it includes the
sample
rate fix)

Chris said that he has made some improvements to the engine but they are
not
public yet, hopefully these will be released soon.

for now thats all I know :)

martin.

Kevin Newman wrote:
 Hello,

 I was wondering what the feasibility of porting an integer based audio
 decoder like Ogg Vorbis Tremor to Actionscript 3 is. Are there APIs in
 place that would allow you to load a vorbis file, decode it and output
 the audio? Does AVM2 have the horse power to pull off something like
that?
 



Re: [flexcoders] sort compare more than 2 items?

2007-01-27 Thread Impudent1
Brendan Meutzner wrote:
 Why not use numeric values for your priority... you wouldn't have to use a
 special sort function, but instead just use a labelFunction for display in
 the datagrid to acheive your high/medium/normal/low counts.

Ah nice idea, but I must be thick because I just can't get it to go.

I have the array/collection as:

public var file_prioritylist:Array = [1, 2, 3, 4 ];
[Bindable]
public var file_priority:ArrayCollection = new 
ArrayCollection(file_prioritylist);


I have the labelFunction as:

// priority labelFunction
public function priorityLabelFunc(item:Object):String {
return item.priority + _teststring;
 }

the datagrid is being populated by a remote dataprovider arraycollection which 
contains the priority etc:

Bindable]
public var files_datagrid:ArrayCollection;

mx:DataGrid id=fileDatagrid x=0 y=0 width=715 height=130 
dataProvider={files_datagrid} change=putVideo() selectedIndex=0

and the column in question is laid out as:

mx:DataGridColumn id=prioritycolumn headerText=Priority width=90 
dataField=priority labelFunction=priorityLabelFunc
mx:itemRenderer
mx:Component
mx:ComboBox 
dataProvider={parentDocument.file_priority} 
mx:idfileprioritycb/mx:id
/mx:ComboBox
/mx:Component
/mx:itemRenderer
/mx:DataGridColumn

Which leads to a error of:

Argument count mismatch on Approval_System/priorityLabelFunc(). Expected 1, got 
2.

if I edit it to move the labelfunction to the combobox and parentDocument it to 
get to the function I get:

Cannot access a property or method of a null object reference.

I am sure I am just missing something simple so any insight appreciated

Impudent1
LeapFrog Productions


[flexcoders] tree creation

2007-01-27 Thread sekar r
Dear Friends,
   
  i want creat tree structure in flex using database. how to connect the 
database? how to add the new user on tree. plz give the guide and give me 
sample source code.
   
  thanks in advance
   
  sekar

 
-
Need Mail bonding?
Go to the Yahoo! Mail QA for great tips from Yahoo! Answers users.

[flexcoders] Re: tree creation

2007-01-27 Thread Cato Paus
Hi 
Inside your fds2 dir, if you have installed DataServicesforFlex. In the 
samples.war file there is a nice SQLAdmin sample.
Cato

--- In flexcoders@yahoogroups.com, sekar r [EMAIL PROTECTED] wrote:

 Dear Friends,

   i want creat tree structure in flex using database. how to connect 
the database? how to add the new user on tree. plz give the guide and 
give me sample source code.

   thanks in advance

   sekar
 
  
 -
 Need Mail bonding?
 Go to the Yahoo! Mail QA for great tips from Yahoo! Answers users.





Re: [flexcoders] sort compare more than 2 items?

2007-01-27 Thread Brendan Meutzner

Hi Tia,

I think this accomplishes what you're trying to do...

mx:DataGrid id=fileDatagrid x=0 y=0 width=715 height=130
dataProvider={files_datagrid} selectedIndex=0
   mx:columns
   mx:Array
   mx:DataGridColumn id=prioritycolumn
dataField=file_priority headerText=Priority width=90
   mx:itemRenderer
   mx:Component
   mx:ComboBox
selectedIndex={data.file_priority- 1} dataProvider={
parentDocument.file_prioritylist}
change=data.file_priority =
this.selectedItem.data 
   mx:idfileprioritycb/mx:id
   /mx:ComboBox
   /mx:Component
   /mx:itemRenderer
   /mx:DataGridColumn
   /mx:Array
   /mx:columns
   /mx:DataGrid

   mx:Script
   ![CDATA[
   import mx.collections.ArrayCollection;

   public var file_prioritylist:Array = [{label: 1, data:1},
 {label: 2, data:2},
 {label: 3, data:3},
 {label: 4, data:4}];

   [Bindable]
   public var file_priority:ArrayCollection = new
ArrayCollection(file_prioritylist);


   [Bindable]
   public var files_datagrid:ArrayCollection = new ArrayCollection;

   private function init():void
   {
   var tmpArray:Array = new Array();
   tmpArray.push({file_priority: 1});
   tmpArray.push({file_priority: 2});
   tmpArray.push({file_priority: 3});
   tmpArray.push({file_priority: 4});
   files_datagrid.source = tmpArray;
   }




   ]]
   /mx:Script


Brendan


On 1/27/07, Impudent1 [EMAIL PROTECTED] wrote:


  Brendan Meutzner wrote:
 Why not use numeric values for your priority... you wouldn't have to use
a
 special sort function, but instead just use a labelFunction for display
in
 the datagrid to acheive your high/medium/normal/low counts.

Ah nice idea, but I must be thick because I just can't get it to go.

I have the array/collection as:

public var file_prioritylist:Array = [1, 2, 3, 4 ];
[Bindable]
public var file_priority:ArrayCollection = new
ArrayCollection(file_prioritylist);

I have the labelFunction as:

// priority labelFunction
public function priorityLabelFunc(item:Object):String {
return item.priority + _teststring;
}

the datagrid is being populated by a remote dataprovider arraycollection
which contains the priority etc:

Bindable]
public var files_datagrid:ArrayCollection;

mx:DataGrid id=fileDatagrid x=0 y=0 width=715 height=130
dataProvider={files_datagrid} change=putVideo() selectedIndex=0

and the column in question is laid out as:

mx:DataGridColumn id=prioritycolumn headerText=Priority width=90
dataField=priority labelFunction=priorityLabelFunc
mx:itemRenderer
mx:Component
mx:ComboBox dataProvider={parentDocument.file_priority} 
mx:idfileprioritycb/mx:id
/mx:ComboBox
/mx:Component
/mx:itemRenderer
/mx:DataGridColumn

Which leads to a error of:

Argument count mismatch on Approval_System/priorityLabelFunc(). Expected
1, got 2.

if I edit it to move the labelfunction to the combobox and parentDocument
it to get to the function I get:

Cannot access a property or method of a null object reference.

I am sure I am just missing something simple so any insight appreciated

Impudent1
LeapFrog Productions
 





--
Brendan Meutzner
Stretch Media - RIA Adobe Flex Development
[EMAIL PROTECTED]
http://www.stretchmedia.ca


[flexcoders] Help needed working with backgroundImage

2007-01-27 Thread paulwelling
Hello,

I need a little help from the Flexperts on this list...  This seems
like it should be easy, so I'm feeling that I've missed something...

I have a .jpg that I want to use as our backgroundImage, 600x800, for
the Application.

I do NOT want it to be stretched to fill up larger browser areas, so
backgroundSize=auto (default.)

I also want this backgroundImage to be positioned at x=0 y=0, all the
time, no matter how big or small the browser becomes...  

The problem is that the backgroundImage for the Application gets
centered, for the browser's' current size, no matter what I do.

A weak work-around is to create a Canvas x=0 y=0
backgroundImage=image.jpg/ and use absolute positioning for the
Application.  But I wanted to avoid absolute positioning and keep the
image at the Application level...

Is this a limitation with FLEX, or more likely my thinking..?

Thanks for the help,
Paul







[flexcoders] Re: Gestion des images dans un datagrid

2007-01-27 Thread wifi19
Merci,

je teste cela, mais je suis plutot a la recherche d'une solution pour 
eviter les temps d'attente

n'est il pas possible de mettre le binaire des images dans le fichier 
xml ?

Merci.
Gilles
--- In flexcoders@yahoogroups.com, Dimitrios Gianninas 
[EMAIL PROTECTED] wrote:

 Salut,
  
 L'example que tu as montré ne chargera pas l'image, il faut que ca 
soit comme ca:
  
 mx:Image src={data} height=70/
  
 Tu ne pas chargez tout les images parceque le DataGrid charge les 
images qui sont seleument visible sure l'ecran. Quand tu navige le 
grid pour voir d'autres lignes, la il va chargez le reste des images.
 Si c'est toujours les memes images, peut etres que tu peut les 
chargez une fois est les gardez dans un modele, ca sera plus vite 
apres dans le DataGrid.
  
 Dimitrios Gianninas
 RIA Developer
 Optimal Payments Inc.
  
 
 
 
 From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On Behalf Of wifi19
 Sent: Monday, January 22, 2007 7:11 AM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Gestion des images dans un datagrid
 
 
 
 Bonjour,
 je cree un datagrid avec une colonne image, mon problème est que 
les 
 images ne se chargent que lorsque nous demandons a les affichées, 
 d'ou un temp d'attente long lorsque l'on navigue dans le data grid 
de 
 2000 lignes.
 existe t'il une solution pour le forcé a charger les images de 
toutes 
 les lignes même si nous ne lui demandons pas encore de les 
affichées ?
 
 mon mxml :
 
 mx:DataGridColumn headerText=Image dataField=Cover 
 mx:itemRenderer
 mx:Component
 mx:Image height=70/ 
 /mx:Component
 /mx:itemRenderer
 /mx:DataGridColumn 
 
 mon xml avec le lien sur l'image
 
 Merci
 Coverhttp://fleuvenoir.dyndns.org/livre/Photo.php? 
http://fleuvenoir.dyndns.org/livre/Photo.php? 
 id=2height=60/Cover
 
 
 
  
 
 -- 
 WARNING
 ---
 This electronic message and its attachments may contain 
confidential, proprietary or legally privileged information, which is 
solely for the use of the intended recipient.  No privilege or other 
rights are waived by any unintended transmission or unauthorized 
retransmission of this message.  If you are not the intended 
recipient of this message, or if you have received it in error, you 
should immediately stop reading this message and delete it and all 
attachments from your system.  The reading, distribution, copying or 
other use of this message or its attachments by unintended recipients 
is unauthorized and may be unlawful.  If you have received this e-
mail in error, please notify the sender.
 
 AVIS IMPORTANT
 --
 Ce message électronique et ses pièces jointes peuvent contenir des 
renseignements confidentiels, exclusifs ou légalement privilégiés 
destinés au seul usage du destinataire visé.  L'expéditeur original 
ne renonce à aucun privilège ou à aucun autre droit si le présent 
message a été transmis involontairement ou s'il est retransmis sans 
son autorisation.  Si vous n'êtes pas le destinataire visé du présent 
message ou si vous l'avez reçu par erreur, veuillez cesser 
immédiatement de le lire et le supprimer, ainsi que toutes ses pièces 
jointes, de votre système.  La lecture, la distribution, la copie ou 
tout autre usage du présent message ou de ses pièces jointes par des 
personnes autres que le destinataire visé ne sont pas autorisés et 
pourraient être illégaux.  Si vous avez reçu ce courrier électronique 
par erreur, veuillez en aviser l'expéditeur.





[flexcoders] mettre le binaire d'une image dans le fichier data xml

2007-01-27 Thread wifi19
Bonjour,

je suis a la recherche d'une solution pour inserer dans un canvas une 
photo dont le binaire serait dans un fichier xml

avez vous une solution ?

Merci !



[flexcoders] Re: Initializing components in views

2007-01-27 Thread Marlon Moyer

Nevermind, I was editing the wrong component file :(

creationcomplete on the base component in the view works fine.

On 1/26/07, Marlon Moyer [EMAIL PROTECTED] wrote:


I've got a component, a simple form, that I need to figure out how to
clear out the contents between uses.  The first time the view is activated,
the fields are clear.  The second time the view in activated, the old values
are prefilled.  What event do I need to tie into so that the form is cleared
every time it's activated?

Thanks

Marlon




Re: [flexcoders] Can't seem to customize Flash ContextMenu

2007-01-27 Thread Abdul Qabiz

Jeff,

I would try to reproduce the same at my end and let you know my findings..

-abdul

On 1/25/07, Battershall, Jeff [EMAIL PROTECTED] wrote:


   One thing to know about my app is that it has a jpg on the background
and no backgroundColor.

One way I found to work around it was to wrap a canvas container around
all my UI objects and set the backgroundColor t= 0xFF and
backgroundAlpha = 0.  I don't think a workaround like this should be
necessary.

Jeff

 -Original Message-
*From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On
Behalf Of *Battershall, Jeff
*Sent:* Thursday, January 25, 2007 11:11 AM
*To:* flexcoders@yahoogroups.com
*Subject:* RE: [flexcoders] Can't seem to customize Flash ContextMenu

Just to bump this up a bit - I'm able to confirm this behavior - setting a
contextMenu at the Application container level sets the context menu for any
UI objects contained within it - BUT NOT FOR THE BACKGROUND OF THE APP. So
if there's any app background not covered by a UI object you'll see the
default Flash ContextMenu when you right-click on it.

How can this be handled For sure, I want to suppress the default
context menu in my app for the entire area of the player.

Jeff

 -Original Message-
*From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On
Behalf Of *Battershall, Jeff
*Sent:* Wednesday, January 24, 2007 3:34 PM
*To:* flexcoders@yahoogroups.com
*Subject:* RE: [flexcoders] Can't seem to customize Flash ContextMenu

Abdul,

Thanks - yes, the positioning is absolute but no - the wrapper's
width/height attributes are the same as the mxml width/height.  And you can
get the flash context menu from anywhere on the screen that there isn't a UI
item.  Basically the controls are resting right on top of the application -
there's no intermediary container.  It seems like the reference you get to
the application (Application.application) is still one level (or so) down
from the player itself.  How do you get a reference to the player so you can
set its context menu?

Jeff

 -Original Message-
*From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On
Behalf Of *Abdul Qabiz
*Sent:* Wednesday, January 24, 2007 3:02 PM
*To:* flexcoders@yahoogroups.com
*Subject:* Re: [flexcoders] Can't seem to customize Flash ContextMenu

It should work.

But I am guessing that your Application has absolute width/height
specified in your MXML. And your html-wrapper has different (greater)
width/height.

That's the only case, in my opinion, when flash-player's stage gets
exposed.

Try to keep the dimensions specified in MXML and HTML same.

-abdul



On 1/25/07, Battershall, Jeff  [EMAIL PROTECTED] wrote:

   I've got an app which I create a custom context menu for during
 initialization, but I've noticed that the context menu only shows up
 when I right click on UI objects (Tree, ApplicationControlBar, etc). but
 still I get the default Flash context menu when I right click on the
 background of the app.

 I've tried setting my custom menu to
 Application.application.contextMenu, but the behavior is the same.

 What am I missing here?

 Jeff Battershall
 Application Architect
 Dow Jones Indexes
 [EMAIL PROTECTED] jeff.battershall%40dowjones.com
 (609) 520-5637 (p)
 (484) 477-9900 (c)


  



[flexcoders] How to connect the database by java

2007-01-27 Thread sekar r
Hai Friend,
   
  Thanks and given guide. Actually i want know how we can connect the database? 
by java from flex.
   
  i want create users base tree structre. the user is being online, or offline 
like that.
   
  so i want how we can connect the database using java from flex. i installed 
the Data Services.
   
  give me some samples.
   
  thanks help
   
   
  sekar
   
   
   
  

Cato Paus [EMAIL PROTECTED] wrote:
  Hi 
Inside your fds2 dir, if you have installed DataServicesforFlex. In the 
samples.war file there is a nice SQLAdmin sample.
Cato

--- In flexcoders@yahoogroups.com, sekar r [EMAIL PROTECTED] wrote:

 Dear Friends,
 
 i want creat tree structure in flex using database. how to connect 
the database? how to add the new user on tree. plz give the guide and 
give me sample source code.
 
 thanks in advance
 
 sekar
 
 
 -
 Need Mail bonding?
 Go to the Yahoo! Mail QA for great tips from Yahoo! Answers users.




 



 
 
Warm Regards

Sekar.R 
i-Grandee Software Technologies (P) Ltd






 
-
Expecting? Get great news right away with email Auto-Check.
Try the Yahoo! Mail Beta.

[flexcoders] Re: How to connect the database by java

2007-01-27 Thread Cato Paus
take a look in this folder, samples.war\WEB-INF\src\samples\sqladmin
and look at ConnectionHelper.java.

The Database Manager is a simple application that lets you explore 
and modify the databases that come with the other sample applications 
for Adobe® Flex™ Data Services 2. The Database Manager uses a 
RemoteObject class to access the server and display the results in 
Tree and DataGrid components. The application uses the HSQLDB 
database on the server.



I'm using PostGreSQL - http://www.postgresql.org
 http://jdbc.postgresql.org

if your using msSql og mySql you need the jdbc drivers.


Cato


--- In flexcoders@yahoogroups.com, sekar r [EMAIL PROTECTED] wrote:

 Hai Friend,

   Thanks and given guide. Actually i want know how we can connect 
the database? by java from flex.

   i want create users base tree structre. the user is being online, 
or offline like that.

   so i want how we can connect the database using java from flex. i 
installed the Data Services.

   give me some samples.

   thanks help


   sekar



   
 
 Cato Paus [EMAIL PROTECTED] wrote:
   Hi 
 Inside your fds2 dir, if you have installed DataServicesforFlex. In 
the 
 samples.war file there is a nice SQLAdmin sample.
 Cato
 
 --- In flexcoders@yahoogroups.com, sekar r rsekar_005@ wrote:
 
  Dear Friends,
  
  i want creat tree structure in flex using database. how to 
connect 
 the database? how to add the new user on tree. plz give the guide 
and 
 give me sample source code.
  
  thanks in advance
  
  sekar
  
  
  -
  Need Mail bonding?
  Go to the Yahoo! Mail QA for great tips from Yahoo! Answers 
users.
 
 
 
 
  
 
 
 
  
  
 Warm Regards
 
 Sekar.R 
 i-Grandee Software Technologies (P) Ltd
 
 
 
 
 
 
  
 -
 Expecting? Get great news right away with email Auto-Check.
 Try the Yahoo! Mail Beta.





Re: [flexcoders] Syntax Error: A string literal must be terminated before the line break.

2007-01-27 Thread Troy Gilbert

Sounds to me like there's got to be an attribute that's not closed off
(starts with a quote but doesn't end with a quote). That's what I'd take
that error to mean... double check your code (and you can always try just
copy-n-paste the code from the example and see if it makes a difference).

If you *did* copy-n-paste part of the code from a help doc, you may want to
double-check all of your quotes and make sure they're really quotes (delete
them and re-type them, don't copy-n-paste). That's because I've run into a
few text editors (don't know if Eclipse/Flex Builder is one) where quotes
get copied to the clipboard as richtext and the second quote (or both) will
be corrected quotes that turn in toward the phrase being quoted (smart
quotes I think is what Word calls it). Anyway, some text editors don't
convert them back to straight quotes, but rather interprets it as unicode
character, and in a string, don't recognize it as a closing quote.

Just an idea...

Troy.


On 1/26/07, Roger Ross [EMAIL PROTECTED] wrote:


  Hello,

What does this error mean?
I have compared my code to the code in the tutorial files and it looks
the same.

Syntax Error: A string literal must be terminated before the line break.

I get the error for this code as well;

mx:SetProperty target={products} name=width value=0/
mx:SetProperty target={products} name=height value=0/
mx:SetProperty target={cartBox} name=width value=100%/
mx:AddChild relativeTo={cartBox} position=lastChild
other code
/mx:AddChild

any idea's...

Thanks

Roger

 



[flexcoders] Re: e4x - attribute based selector

2007-01-27 Thread Shailesh Mangal
Thanks Tracy,

Thats exactly what I ended up doing,
1. Clone the original collection
2. get XMLList of the nodes that I dont want
3. Delete them

-sxm

--- In flexcoders@yahoogroups.com, Tracy Spratt [EMAIL PROTECTED] wrote:

 That is a tough one.  It is more of a transformation than a selection.
 
  
 
 If you can't do it directly, consider using the selection expression to
 return the nodes you do NOT want, then deleting them from the XML.
 
  
 
 Tracy
 
  
 
 
 
 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
 Behalf Of Shailesh Mangal
 Sent: Wednesday, January 24, 2007 8:13 PM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] e4x - attribute based selector
 
  
 
 All,
 
 I have a following xml structure retrieved from server
 root
 parent name=good
 child name=abc/
 child name=cba/
 child name=abc/
 /parent
 parent name=notGood
 child name=abc/
 child name=def/
 child name=fed/
 /parent
 /root
 
 and I want to make a selection based on the attribute of child. e.g.
 for child with name abc, get a result as..
 root
 parent name=good
 child name=abc/
 child name=abc/
 /parent
 parent name=notGood
 child name=abc/
 /parent
 /root
 
 I tried following, 
 result..child.(@name==abc)
 result.root.parent.child.(@name==abc)
 but I end up getting following 
 child name=abc
 child name=abc
 child name=abc
 
 Any suggestions?
 sxm





Re: [flexcoders] Weird behavior of mx:Effects on ViewStack

2007-01-27 Thread Jaime Bermudez

I'd like an explanation of this behavior as well Danko.  I perused the
source code of the ViewStack and it seems like the hideEffect of a currently
selected child should play out before the selected index is actually changed
(and the next child is made visible).  Seems like this only happens every
other time.

Anyone from Adobe or anyone who has investigated this further care to
explain?

Thanks,

Jaime

On 1/17/07, Danko Kozar [EMAIL PROTECTED] wrote:


Hi,

I'm using mx:Move effects on ViewStack as it's items showEffect and
hideEffect. HideEffect moves the previous view off-screen; then the
next view slides in.

(btw these views are complex full-screen displays (containing
TabNavigators, DataGrids and TileLists)

First time when changing views, the effect plays properly - e.g. when
switching from view 0 to view 1, or view 1-view 2 etc. everything
works as expected: the first view moves out, the second one moves in.

But: I've noticed a strange behaviour when returning to the ViewStack's
view that was previously shown (created), for instance view 1 -view 0:
for a blink of a second the object is displayed on it's final position
(!); then it dissapears, the effect starts and object moves in as
expected.
Another thing I noticed is that previously created view's showEffect
starts too early: it doesn't wait the hideEffect of the previous view
to play it's part - they play at the SAME TIME.

I've come to conclusion that this first time the effect plays right
because objects aren't created yet (?).

I tried to do the same thing with mx:States - nothing was improved, and
the performance was drastically degraded - seems like States have
problems (?).

The questions are:
- what am I supposed to do with Effects. Did I miss something?
- do I have to destroy objects previously shown?
- how do you destroy objects in Flex?
- what's the problem with mx:States and performance?

Thanks in advance!

Danko



--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
Yahoo! Groups Links






[flexcoders] Provide TREE with PHP

2007-01-27 Thread srcaroule
Hi,

I can't provide my tree with my php result.

?xml version=1.0 encoding=utf-8?node label=lot num    
node label=Professional icon=iconSymbol1 //node

this is my mxml
?xml version=1.0 encoding=utf-8?
mx:Application xmlns:mx=http://www.adobe.com/2006/mxml;
layout=absolute
   mx:HTTPService id=lotRequest
url=http://localhost/flex/php/GetDir.php; useProxy=false method=POST
  mx:request xmlns=
 dir{lotcurrent.text}/dir
  /mx:request
   /mx:HTTPService

   mx:Panel
   mx:Form x=22 y=10 width=493
mx:Button label=Submit click=lotRequest.send()/
   /mx:Form
   mx:Label text=Label width=214 id=lotcurrent/
   mx:Tree id=myTree width=630 height=137 labelField=@label
showRoot=false dataProvider={lotRequest.lastResult} y=10/
   mx:TextArea height=100% width=50%
text=Selected Item: {lotRequest.lastResult}/
   /mx:Panel
/mx:Application

Please
What wrong?
Thanks.




[flexcoders] Re: Does Flex work with Java without FDS?

2007-01-27 Thread Charles Havranek
Oops, here's the XSD for the complex types

FYI constructive comments welcome 





SalesDeveloper.xsd
Description: 2098159505-SalesDeveloper.xsd


RE: [flexcoders] LiveDocs, Release Notes?

2007-01-27 Thread Matt Chotin
Release notes:

 

http://www.adobe.com/support/documentation/en/flex/2/releasenotes_flex20
1_sdk.html

 

If you go here: http://www.adobe.com/support/documentation/en/flex/ all
the linked docs should have 2.0.1 versions.

 

Matt

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of lostinrecursion
Sent: Friday, January 26, 2007 9:52 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] LiveDocs, Release Notes?

 

Hi all,

I have read the Flex 2 documentation like my morning paper since beta,
but my question is since the new 2.0.1 updater rolled out and there is
a new /201 docs out there - is there any place I can see where things
have changed in the docs instead of having to read through and say
Oh, that's new!

Thanks!

 



Re: [flexcoders]Does Flex work with Java without FDS?

2007-01-27 Thread Igor Costa

Dorkie

Has a open-source version that works fine with Flash remoting

http://www.carbon5.com/view/page.basic/open_source


Best

On 1/12/07, dorkie dork from dorktown [EMAIL PROTECTED]
wrote:


  Does Flex work with Java without requiring FDS? I want to load up a Flex
app and using services similar to Flash Remoting run methods of a Java class
and return complex objects back.
 





--

Igor Costa
www.igorcosta.org
www.igorcosta.com
skype: igorpcosta


Re: [flexcoders] Organize imports

2007-01-27 Thread Martin Wood-Mitrovski


Stembert Olivier (BIL) wrote:
 Ho all,
 
 Do you know how to organize imports in FlexBuilder?

CTRL + SHIFT + O

:)



[flexcoders] DataGrid Custom Image Renderer - Random Cache Weirdness

2007-01-27 Thread Anthony Onumonu
I seem to be having very weird results. The correct image from my 
cell renderer does not always display. I'm not sure if it's some 
sort of caching from previous requests.

Is the problem with the way I'm setting the data on the cell 
renderer. I've tried various methods all rendering weird results. 


Sample node from XML returned from HTTP request

file
  file_namefile_directory_list.php/file_name 
  file_size1.8/file_size 
  file_typefile/file_type 
  file_modified27th January, 2007/file_modified 
  file_extensionphp/file_extension 
/file

Cell Renderer

?xml version=1.0 encoding=utf-8?
!-- itemRenderers\dataGrid\myComponents\RendererDGHeader.mxml --
mx:HBox xmlns:mx=http://www.adobe.com/2006/mxml;
mx:Script
![CDATA[

import mx.controls.dataGridClasses.DataGridColumn;
  
[Embed(source=png/php.png)]
[Bindable]
public var php:Class;

private function setCustomIcon(setValue:String):void
{
image_id.source = this[setValue];
}   
]]
/mx:Script
mx:HBox horizontalAlign=center
mx:Image id=image_id x=20 height=20 
creationComplete=setCustomIcon(data.file_extension) /
/mx:HBox
/mx:HBox

Datagrid

mx:DataGrid id=dgUserRequest width=100% 
height=100% dataProvider={userRequest.lastResult.files.file} 
itemClick=itemClickEvent(event); borderStyle=solid
mx:columns
mx:DataGridColumn 
width=120 headerText=  dataField=file_type 
itemRenderer=renderer.icons/ 
mx:DataGridColumn 
headerText=Name dataField=file_name/
mx:DataGridColumn 
headerText=Size dataField=file_size/
mx:DataGridColumn 
headerText=Date Modified dataField=file_modified/
mx:DataGridColumn 
headerText=Extension dataField=file_extension/
/mx:columns
/mx:DataGrid




[flexcoders] can effect target selected item form list or repeater?

2007-01-27 Thread jer_ela
I have a photo gallery application.  The initial view is of the first
image in each gallery arranged in a grid via a repeater inside a tile
layout.  When you click on an image you get another view with a much
larger image that runs as a slide show.  

I've got that working fine, but what I'd like to do is a transition
effect where the selected image moves and resizes to where the slide
show image is and the others go away in some way.  

What I can't figure out is how to apply one effect to the selected
image and another to the rest of them.  Any ideas?



[flexcoders]wmode=transparent kills my remote calls

2007-01-27 Thread Webdevotion

Whenever I set my wmode to transparent, all my remote calls fail.
No errors, nothing.

I saw a thread on this, where an Adobe employee would post a bug
back in april 2006.  But the bug still stands ?

Does anyone have some experience with fixing this ?

Tnx, Bram


RE: [flexcoders]wmode=transparent kills my remote calls

2007-01-27 Thread Matt Chotin
The bug still exists, unfortunately we require browser vendor support to
address some of these issues.

 

Matt

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Webdevotion
Sent: Friday, January 26, 2007 10:41 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders]wmode=transparent kills my remote calls

 

Whenever I set my wmode to transparent, all my remote calls fail.
No errors, nothing.

I saw a thread on this, where an Adobe employee would post a bug
back in april 2006.  But the bug still stands ? 

Does anyone have some experience with fixing this ?

Tnx, Bram

 



[flexcoders] Re: need help on showing line series based on list box selection (Flex Charts)

2007-01-27 Thread arthurcoutinhoonline
Hi Ely,
im going bonkers, trying to filter this arraycollection,
im getting a single selection item filtered perfectly but when i multi
select it combines the series with both the items in the
arraycollection, and displays it as one series instead of two.
what shud i do, please Help.

regards,
Arthur



[flexcoders] Flex 2 profiler

2007-01-27 Thread Dmitry Kochetov
Hello everyone,

Is there any profiler for Flex 2 ? Maybe like profiler for Flex 1.5 :)

thanks.

-- 
Feсi quod potui, faciant meliora potentes


RE: [flexcoders] Flex 2 profiler

2007-01-27 Thread Matt Chotin
There isn't right now.  We are looking to add one into the next major release 
of Flex.

 

Matt

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Dmitry 
Kochetov
Sent: Friday, January 26, 2007 5:08 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Flex 2 profiler

 

Hello everyone,

Is there any profiler for Flex 2 ? Maybe like profiler for Flex 1.5 :)

thanks.

-- 
Feсi quod potui, faciant meliora potentes

 



RE: [flexcoders] Cannot access a property or method of a null object reference

2007-01-27 Thread Tracy Spratt
I bet that is correct.  I have found that it is best to use callLater
for any control manipulation if I have just modified the dataProvider.

 

But, Roger, don't guess.  Debug the code to find out which line is
producing the error.  If you don't have good debugging techniques,
develop them now.

 

Tracy

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Clint Tredway
Sent: Thursday, January 25, 2007 12:07 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Cannot access a property or method of a null
object reference

 

most likely the setting of the selectedIndex is what is causing that
error. Its trying to set a property to a component that doesnt exist
yet.

On 1/25/07, Roger Ross [EMAIL PROTECTED]
mailto:[EMAIL PROTECTED]  wrote:

Hello,

Working my way throught the Training From the Source turorial and
ran into this error message.

Not sure why I am getting it. I compared my code to the completed code
for the lesson and it looks the same with no problems when I compile it.

TypeError: Error #1009: Cannot access a property or method of a null
object reference.
at Dashboard/::catHandler()
at Dashboard/__catRPC_result()
at
flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchEven
tFunction()
at flash.events::EventDispatcher/dispatchEvent()
at
mx.rpc.http.mxml::HTTPService/http://www.adobe.com/2006/flex/mx/internal
::dispatchRpcEvent
http://www.adobe.com/2006/flex/mx/internal::dispatchRpcEvent ()
at
mx.rpc::AbstractInvoker/http://www.adobe.com/2006/flex/mx/internal::resu
ltHandler http://www.adobe.com/2006/flex/mx/internal::resultHandler ()
at mx.rpc::Responder/result()
at mx.rpc::AsyncRequest/acknowledge()
at ::DirectHTTPMessageResponder/completeHandler()
at
flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchEven
tFunction()
at flash.events::EventDispatcher/dispatchEvent()
at flash.net::URLLoader/flash.net:URLLoader::onComplete()

Here is a copy of the code that it has me write with the comboBox that
is to receive the data:


?xml version=1.0 encoding=utf-8?
mx:Application xmlns:mx=http://www.adobe.com/2006/mxml
http://www.adobe.com/2006/mxml 
layout=horizontal
creationComplete=catRPC.send()

mx:Script
![CDATA[
import mx.collections.ArrayCollection;
import mx.rpc.events.ResultEvent;

[Bindable]
private var categories:ArrayCollection=new ArrayCollection();

private function catHandler(event:ResultEvent):void{
categories = event.result.catelog.category;
var catObj:Object = new Object();
catObj.name = All;
catObj.categoryID = 0;
categories.addItemAt(catObj, 0);
catCombo.selectedIndex = 0;
}

]]
/mx:Script

mx:HTTPService id=catRPC
url=http://www.flexgrocer.com/category.xml
http://www.flexgrocer.com/category.xml 
result=catHandler(event)/

mx:ComboBox id=catCombo
dataProvider={categories}
labelField=name/

Any Idea's...

Thanks,

Roger




-- 
http://indeegrumpee.spaces.live.com/
http://indeegrumpee.spaces.live.com/  

 



[flexcoders] deploying a simple Flex app to WebSphere AppServer?

2007-01-27 Thread djbrown_rotonews
I'm trying to deploy a simple flex app to WAS6.1 after having it run 
under the included jrun4. What processes do I need to take, or is 
there a tutorial online that would step me thru the process?



[flexcoders] Crossdomain

2007-01-27 Thread Leonardo Sobral

I´m trying to load an image from outsite of my domain and its giving me an
error, the crossdomain is there, set to permit *... I get the same error
online and from localhost. Any clue?


SecurityError: Error #2122: Security sandbox violation: BitmapData.draw:
http://localhost:8500/Store/bin/index.swf cannot access
http://www.cineminha.com.br/AdvHTML_Upload/photos/poster_diamante.jpg. A
policy file is required, but the checkPolicyFile flag was not set when this
media was loaded.
   at flash.display::BitmapData/draw()
   at mx.effects.effectClasses::MaskEffectInstance/::getVisibleBounds()
   at mx.effects.effectClasses::MaskEffectInstance/::initMask()
   at mx.effects.effectClasses::MaskEffectInstance/startEffect()
   at mx.effects::Effect/play()
   at mx.effects::EffectManager$/::createAndPlayEffect()
   at
mx.effects::EffectManager$/http://www.adobe.com/2006/flex/mx/internal::eventHandler
()
   at
flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchEventFunction
()
   at flash.events::EventDispatcher/dispatchEvent()
   at mx.core::UIComponent/dispatchEvent()
   at mx.core::UIComponent/setVisible()
   at mx.core::UIComponent/set visible()
   at mx.containers::ViewStack/mx.containers:ViewStack::updateDisplayList()
   at mx.core::UIComponent/validateDisplayList()
   at mx.core::Container/validateDisplayList()
   at mx.managers::LayoutManager/::validateDisplayList()
   at mx.managers::LayoutManager/::doPhasedInstantiation()
   at Function/http://adobe.com/AS3/2006/builtin::apply()
   at mx.core::UIComponent/::callLaterDispatcher2()
   at mx.core::UIComponent/::callLaterDispatcher()
   at flash.utils::Timer/flash.utils:Timer::_timerDispatch()
   at flash.utils::Timer/flash.utils:Timer::tick()


[flexcoders] import * vs. import a.b.c performance?

2007-01-27 Thread Mike Crowe
Hi folks,

Any downside of doing an:

   import *
vs.
   import com.adobe.cairngorm.control.CairngormEventDispatcher;

for example?  Any reason not to do this?

TIA
Mike



Re: [flexcoders] Crossdomain

2007-01-27 Thread Brendan Meutzner

On which server, and where is your crossdomain located?  Is the
cineminha.com.br server a multi-hosting environment?

Brendan


On 1/27/07, Leonardo Sobral [EMAIL PROTECTED] wrote:


  I´m trying to load an image from outsite of my domain and its giving me
an error, the crossdomain is there, set to permit *... I get the same error
online and from localhost. Any clue?


SecurityError: Error #2122: Security sandbox violation: BitmapData.draw:
http://localhost:8500/Store/bin/index.swf cannot access 
http://www.cineminha.com.br/AdvHTML_Upload/photos/poster_diamante.jpg
. A policy file is required, but the checkPolicyFile flag was not set when
this media was loaded.
at flash.display::BitmapData/draw()
at mx.effects.effectClasses::MaskEffectInstance/::getVisibleBounds()
at mx.effects.effectClasses::MaskEffectInstance/::initMask()
at mx.effects.effectClasses::MaskEffectInstance/startEffect()
at mx.effects::Effect/play()
at mx.effects::EffectManager$/::createAndPlayEffect ()
at mx.effects::EffectManager$/http://www.adobe.com/
2006/flex/mx/internal::eventHandler()
at
flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchEventFunction
()
at flash.events::EventDispatcher/dispatchEvent ()
at mx.core::UIComponent/dispatchEvent()
at mx.core::UIComponent/setVisible()
at mx.core::UIComponent/set visible()
at mx.containers::ViewStack/mx.containers:ViewStack::updateDisplayList
()
at mx.core::UIComponent/validateDisplayList()
at mx.core::Container/validateDisplayList()
at mx.managers::LayoutManager/::validateDisplayList()
at mx.managers::LayoutManager/::doPhasedInstantiation ()
at Function/http://adobe.com/AS3/2006/builtin::apply()
at mx.core::UIComponent/::callLaterDispatcher2()
at mx.core::UIComponent/::callLaterDispatcher()
at flash.utils::Timer/flash.utils:Timer::_timerDispatch ()
at flash.utils::Timer/flash.utils:Timer::tick()
 





--
Brendan Meutzner
Stretch Media - RIA Adobe Flex Development
[EMAIL PROTECTED]
http://www.stretchmedia.ca


Re: [flexcoders] import * vs. import a.b.c performance?

2007-01-27 Thread JesterXL

import * == for slackers

import a.b.c == for pimp-tastic Flex coders

import * allows the compiler to look in the package to find the class  
it needs.  If you don't have *, you have to set it manually.  Both  
will result in the same amount of classes being exported into the  
SWF, so file size is the same.  Readability of the code, however,  
degrades because you don't know what classes are used in the class.


Caveat with the above is just because you use import doesn't mean the  
class is actually exported into the SWF, you have to actually use it,  
like in a variable defintion for example:


import mx.controls.Button;
var myC:Button;

So, it's presumtious to think just because an import is used that it  
IS IN FACT used... could be cruft.


Devil's Advocate?  No, but I'll play the role.

* is great when you are learning, and know ahead of time you are  
about to import a ton of stuff.  The same reason *, :Object, and  
other loose typing things are there (allowing opt-in strict typing as  
it were) allows you to code faster, and type less.





On Jan 27, 2007, at 9:07 PM, Mike Crowe wrote:

Hi folks,

Any downside of doing an:

import *
vs.
import com.adobe.cairngorm.control.CairngormEventDispatcher;

for example? Any reason not to do this?

TIA
Mike






[flexcoders] Horizontal Accordion component available

2007-01-27 Thread Doug McCune
Horizontal Accordion with full source code on my blog.

http://dougmccune.com/blog/2007/01/27/horizontal-accordion-component-for-flex/ 



[flexcoders] Cairngorm - Question on using ResultHandler

2007-01-27 Thread malik_robinson
Hi,

I have a question using Cairngorm and Commands.  I am new to it but its
making more sense to me each day at least it seems that way.

I have the following in my LoginCommand.as

public function result( data:Object ):void {
  var event:ResultEvent = data as ResultEvent;

   if (event.result.length  0) {
model.workflowState = ModelLocator.VIEWING_HOMEPAGE;
}
else {
   model.login.statusMsg = Your login credentials are invalid,
please try again.;
   }
}

1. Is there anything wrong with the way I am doing the above?
2. I would like to call some other remote objects  so I can populate
some datagrids after the user has been authenticated and then load the
home page of the app as I am doing above.



RE: [flexcoders] Convert Videos to FLV via Web

2007-01-27 Thread Merrill, Jason
Cool - thanks!
 

Jason Merrill 
Bank of America
Learning  Organizational Effectiveness 
  
  
  
  
  

 




From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of 
Abdul Qabiz
Sent: Friday, January 26, 2007 1:22 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Convert Videos to FLV via Web



Merrill,

You can use FFMPEG in .Net also. You need to compile the wrappers and 
link FFMPEG libraries. I was trying to do something using C#.

You can find some examples on FFMPEG site and on some blogs.

Hope that helps..

-abdul


On 1/25/07, Merrill, Jason [EMAIL PROTECTED] mailto:[EMAIL 
PROTECTED]  wrote: 



If I could tap on to this thread, anyone know of anything that 
does the same using .NET?
 

Jason Merrill 
Bank of America
Learning  Organizational Effectiveness 
  
  
  
  
  

 




From: flexcoders@yahoogroups.com 
[mailto:flexcoders@yahoogroups.com http://yahoogroups.com ] On Behalf Of 
Abdul Qabiz
Sent: Thursday, January 25, 2007 10:20 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Convert Videos to FLV via Web




There is php hooks for ffmpeg: 
http://ffmpeg-php.sourceforge.net



On 1/24/07, Steve Gustafson [EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]  wrote: 

ffmpeg should help you out.  Here is a tutorial:

http://soenkerohde.com/tutorials/ffmpeg/ 
http://soenkerohde.com/tutorials/ffmpeg/ 

Gus



On 1/23/07, Marlos Carmo | 5clicks.com.br 
http://5clicks.com.br   [EMAIL PROTECTED] mailto:[EMAIL PROTECTED]  
wrote: 



Hi Folks,

 

I need develop a video conversor to flv 
via Web, using PHP. Anybody have a suggestion for help me?

 

Thanks,

 

Marlos Carmo

 





De: [EMAIL PROTECTED] ups.com [mailto: 
[EMAIL PROTECTED] mailto:[EMAIL PROTECTED]  ups.com http://ups.com ] Em 
nome de Jason Goodwin
Enviada em: terça-feira, 23 de janeiro 
de 2007 17:10
Para: flexcoders@yahoogroups.com
Assunto: [flexcoders] Accessibility and 
imported components

 

I have an app with lots of imported 
components. I can't seem to get
JAWS to read anything that's not on the 
main page. I have tried
several ways of add in the 
accessibility properties to the controls.
Thanks.
























 



[flexcoders] Flash simple question

2007-01-27 Thread Stembert Olivier \(BIL\)
Hi all,

When a swf file is downloaded to my computer, where is it stored? I mean
where on the file system?

Thanks

Olivier

-
An electronic message is not binding on its sender.
Any message referring to a binding engagement must be confirmed in writing and 
duly signed.
-