[flexcoders] new XMLList() problem

2006-11-07 Thread arnold_charming
Hi!

I'm using XMLList to transform XML data to XMLList object. When I try
to  transofrm below XML file to XMLList with

var s:String = node label='Organigram' oddelki_id='0'node
label='Uprava' oddelki_id='6'node label='Marketing'
oddelki_id='3'/nodenode label='Prodaja' oddelki_id='4'node
label='Knjigarna' oddelki_id='11'/nodenode label='Promocija'
oddelki_id='10'/nodenode label='Skladi#65533;#65533;e'
oddelki_id='9'/node/nodenode label='Ra#65533;unovodstvo'
oddelki_id='2'/nodenode label='Raziskave in Razvoj'
oddelki_id='7'/nodenode label='Uredni#65533;tvo' oddelki_id='8'node
label='Repro studio' oddelki_id='12'/node/node/node/node;

new XMLList(s);

it works as it should. But when I try to get the same XML from a
database via AMFPHP I get an XML parser error. Both XML files, the one
above and the one from database, are IDENTICAL. Can someone help me out?




--
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

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* Your email settings:
Individual Email | Traditional

* To change settings online go to:
http://groups.yahoo.com/group/flexcoders/join
(Yahoo! ID required)

* To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 



[flexcoders] Re: new XMLList() problem

2006-11-07 Thread arnold_charming
Hi!

You were right, the problem was in funny charachters. TNX!

--- In flexcoders@yahoogroups.com, Tom Chiverton [EMAIL PROTECTED]
wrote:

 On Tuesday 07 November 2006 13:09, arnold_charming wrote:
  above and the one from database, are IDENTICAL. Can someone help
me out?
 
 Even down to the encoding of the funny characters ?
 Exactly what is the error you get ?
 
 -- 
 Tom Chiverton
 Helping to proactively orchestrate principle-centered clusters
 
 
 
 This email is sent for and on behalf of Halliwells LLP.
 
 Halliwells LLP is a limited liability partnership registered in
England and Wales under registered number OC307980 whose registered
office address is at St James's Court Brown Street Manchester M2 2JF.
 A list of members is available for inspection at the registered
office. Any reference to a partner in relation to Halliwells LLP means
a member of Halliwells LLP. Regulated by the Law Society.
 
 CONFIDENTIALITY
 
 This email is intended only for the use of the addressee named above
and may be confidential or legally privileged.  If you are not the
addressee you must not read it and must not use any information
contained in nor copy it nor inform any person other than Halliwells
LLP or the addressee of its existence or contents.  If you have
received this email in error please delete it and notify Halliwells
LLP IT Department on 0870 365 8008.
 
 For more information about Halliwells LLP visit www.halliwells.com.






--
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

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* Your email settings:
Individual Email | Traditional

* To change settings online go to:
http://groups.yahoo.com/group/flexcoders/join
(Yahoo! ID required)

* To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 



[flexcoders] charts with AS

2006-10-30 Thread arnold_charming
Hi!

I'm trying to build a simple gantt chart. For that I'm using
LineSeries object to represent the number of days a given task lasts.
Because number of task are not fixed, they change with every gantt
chart, I have to build several LineSeries object. I tried this code

for(var i:int = 0; i  numberOfTasks; i++) {
var test = new LineSeries();
test.yField = Name;
test.displayName = Name;
test.form = horizontal;   

h[i] = test;
}

gantProjekt.series = [h];

mx:LineChart  x=10 y=10 id=gantProjekt width=626
dataProvider={expenses} showDataTips=true/


But unfortunetlly this code doesn't work, because AS need several
different LineSeries() object and not as in my case, only one (test
object), which is every time overwritten. Can somehow tell me how can
I solve this problem? Thank you.




--
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

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* Your email settings:
Individual Email | Traditional

* To change settings online go to:
http://groups.yahoo.com/group/flexcoders/join
(Yahoo! ID required)

* To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 



[flexcoders] Re: creating charts with AS

2006-10-30 Thread arnold_charming
Hi!

It gives me below error.

1084: Syntax error: expecting identifier before this.

The line that produces the error is

var this[test + i]= new LineSeries();

I also tried like this

for(var i:int = 0; i  b.length; i++) {
var test= new LineSeries();
test.yField = b[i];
test.displayName = b[i];


h[i] = test;
}

It compiles without errors, but the chart is not displayed. The reason
lies in the fact, that gantProjekt.series has to have access to all
it's array members, which is not the case in my example. Any help
would be great!!!

--- In flexcoders@yahoogroups.com, Tom Chiverton [EMAIL PROTECTED]
wrote:

 On Sunday 29 October 2006 16:22, arnold_charming wrote:
  gantProjekt is a LineChart. This code above gives me an error. 
 
 What error, on which line ?
 
 -- 
 Tom Chiverton
 Helping to elementarily initiate transparent experiences
 
 
 
 This email is sent for and on behalf of Halliwells LLP.
 
 Halliwells LLP is a limited liability partnership registered in
England and Wales under registered number OC307980 whose registered
office address is at St James's Court Brown Street Manchester M2 2JF.
 A list of members is available for inspection at the registered
office. Any reference to a partner in relation to Halliwells LLP means
a member of Halliwells LLP. Regulated by the Law Society.
 
 CONFIDENTIALITY
 
 This email is intended only for the use of the addressee named above
and may be confidential or legally privileged.  If you are not the
addressee you must not read it and must not use any information
contained in nor copy it nor inform any person other than Halliwells
LLP or the addressee of its existence or contents.  If you have
received this email in error please delete it and notify Halliwells
LLP IT Department on 0870 365 8008.
 
 For more information about Halliwells LLP visit www.halliwells.com.






--
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

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* Your email settings:
Individual Email | Traditional

* To change settings online go to:
http://groups.yahoo.com/group/flexcoders/join
(Yahoo! ID required)

* To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 



[flexcoders] creating charts with AS

2006-10-29 Thread arnold_charming
Hi!

I'm trying to create a chart with AS. Because data is supplied from
database, the number of LineSeries is not known every time. Becuase of
that, I have to make variables dynamic. Look below:

var b:Array = new 
Array(Epsenses,Amount,Profit);
var h:Array = new Array();

for(var i:int = 0; i  b.length; i++) {
var this[test + i]= new LineSeries();
this[test + i].yField = b[i];
this[test + i].displayName = 
b[i];


h[i] = this[test + i];

}

var horizont:CategoryAxis = new CategoryAxis();
horizont.categoryField = Month;

gantProjekt.horizontalAxis = horizont;
gantProjekt.series = [h];

gantProjekt is a LineChart. This code above gives me an error. Can
someone help me out so I can solve this problem?




--
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

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* Your email settings:
Individual Email | Traditional

* To change settings online go to:
http://groups.yahoo.com/group/flexcoders/join
(Yahoo! ID required)

* To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 



[flexcoders] gant chart

2006-10-20 Thread arnold_charming
Hello!

I'm currently working on builidng a gant chart for my application. And
I have some question for which I would be very gratefull if you could
help me out.

1. Because gant chart doesn't have a fix number of tasks, how to setup
a chart legend?
2. How can I build a gant chart from XML file? Till now I just found
solutions with ArrayColletions.
3. How to build a dynamic (programmable) gant chart?

Thank you.




--
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

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* Your email settings:
Individual Email | Traditional

* To change settings online go to:
http://groups.yahoo.com/group/flexcoders/join
(Yahoo! ID required)

* To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 



[flexcoders] what's going on with this Flex?!?

2006-09-14 Thread arnold_charming
Hi!

I have some tabs in my flex application and when I want to access a
text field on my last tab I get an error about null reference. If I
click on this tab and try again then it works. I guess the error
happens because the last tab isn't yet loaded. So please explain to me
how can I solve this and how can someone build a sirious business
application if there are such strange errors?








--
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

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* Your email settings:
Individual Email | Traditional

* To change settings online go to:
http://groups.yahoo.com/group/flexcoders/join
(Yahoo! ID required)

* To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 





[flexcoders] Error #2044: Unhandled NetStatusEvent:. level=error, code=NetConnection.Call.Bad

2006-09-14 Thread arnold_charming
Hi!

Now and then I get the above error. Does somebody know why is this
happening? I'm using amfphp to talk with database.





--
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

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* Your email settings:
Individual Email | Traditional

* To change settings online go to:
http://groups.yahoo.com/group/flexcoders/join
(Yahoo! ID required)

* To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 





[flexcoders] Flex Data Services with AMFPHP

2006-09-06 Thread arnold_charming
Hi!

HAs anyone done any work on combining Flex Data Services and AMFPHP?






--
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

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 





[flexcoders] loading whole Application

2006-08-28 Thread arnold_charming
Hi!

How to load the whole application? I'm asking this because I'm using
sevral viewstack and it is evident that the screens have to be loaded
every time.






--
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

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 





[flexcoders] dispatching events on a change of a variable

2006-08-16 Thread arnold_charming
Hi!

I'm passing a string to my component with

view:myComponent myVar=some string/

What I would like to do now is the following. When the value of myVar
changes I would like to dispatch an event, which would tell me the
current value of myVar. But now I don't know how to register this type
on an event in myComponent so it will be fired every time the myVar
changes. Can someone help me out? I'm really lost with these events
and I looked thru Adobe Developmnent Guide but nothing usefull.






--
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

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 




[flexcoders] Re: How to check that uploaded file is image?

2006-08-13 Thread arnold_charming
Hi!

I don't want to open another thread about file upload so I'll post my
question here.
I'm using ProgreesEvent to check if uploaded file already exists on
the server. Because of that I was wondering if the uploaded file
(name) already exists on the server, how can I then manually break up
the transfer without overwritting the existing file on the server? 


--- In flexcoders@yahoogroups.com, Sergey Kovalyov
[EMAIL PROTECTED] wrote:

 Hi All!
 
 When file filter like *.jpg; *.gif; *.png is used, it does not
 guarantee that file uploaded is actually an image, because any file
 could have such extension. Is there any way without server side code
 to check that uploaded file is image?
 
 Sergey.







--
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

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 




[flexcoders] Re: window and firering functions

2006-08-12 Thread arnold_charming
Hi!

i've made it work :)
I think the problem was in the way how I changed views in viewstack.
Now I change the view and make the component invisible. Because of
that, now every time I make my component visible, a visible event is
fired. And in that visible event I can change my views. 
Thanks for help me out.

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

 Yes, creationComplete only fires when the component's creation is
 complete which only happens once. This is by design.
 
  
 
 But you still haven't said how you are passing in your data.  From what
 you say it sounds like you are not binding.  Bindings are independent of
 events like creationComplete (they use their own internal event
 structure).
 
  
 
 If you have the binding set up correctly, it will just work.
 
  
 
 It sounds like you are doing something specific in the creationComplete
 event. I need some more detail.
 
  
 
 Tracy
 
  
 
  
 
 
 
 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
 Behalf Of arnold_charming
 Sent: Friday, August 11, 2006 3:20 PM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Re: window and firering functions
 
  
 
 --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
 , Tracy Spratt tspratt@ wrote:
 
  That component architecture is fine.
  
 Hi!
 
  Do you have the {Bindable] metadata tag over the selecteIndex variable
  in file2?
 
 Yes I have. I don't think the problem is in binding. Because my
 variable is always sent (I've double checked). I think the main
 problem lies in creationComplete event. This event is only triggered
 once. I'm positive in this. Why? Because I also tried creating a
 simple function with Alert box inside it and it was also displayed
 only once. And that occured when the window was for the first time 
 viewed. 
 Please help me out, because I really have no idea how to solve this
 problem.
 
  
  
  If this works the first time, but not subsequently, that sounds to me
  like binding is not set up properly. You do not say how you are
 passing
  the selectedIndex value you want into the File2 component. Are you
  binding?
  
  
  
  Do you have the {Bindable] metadata tag over the selecteIndex variable
  in file2?
  
  {Bindable]
  
  Public var iSelectedIndex:int;
  
  
  
  Are you passing a binding expressing into File2?
  
  myFile2 iSelectedIndex={iSelectedIndex} .../
  
  And does iSelectedIndex in File1 have the {Bindable] tag?
  
  
  
  You should perhaps bind the File2 viewstack's property to the
 variable:
  
  mx:ViewStack selectedIndex={iSelectedIndex}.../
  
  
  
  Or are you passing in the value by directly referencing the File2
  viwestack selectedIndex property?
  
  
  
  Tracy
  
  
  
  
  
  
  
  From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
 [mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
 ] On
  Behalf Of arnold_charming
  Sent: Friday, August 11, 2006 11:11 AM
  To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com 
  Subject: [flexcoders] window and firering functions
  
  
  
  Hi!
  
  I'm stuck :(
  I have a file called File.mxml which has inside a custom component
  based on a mx:Panel called File2.mxml. Inside this new component,
  File2.mxml, I have a viewstack with 4 views. Every single view is in
  its' own custom component. Something like this:
  
  File2.mxml
  
  mx:ViewStack id=myViews width=100% height=100%
  mx:Panel id=knjigaScreen width=100% height=100%
  view:DodajTehSpec_Knjiga /
  /mx:Panel
  mx:Panel title= id=tiskovinaScreen width=100% height=100%
  view:DodajTehSpec_Tiskovina /
  /mx:Panel
  mx:Panel width=100% height=100% id=dodatekScreen title=
  view:DodajTehSpec_Dodatek /
  /mx:Panel
  mx:Panel width=100% height=100% id=skatlaScreen title=
  view:DodajTehSpec_Skatla /
  /mx:Panel
  mx:Panel width=100% height=100% id=raznoScreen title=
  view:DodajTehSpec_Razno width=100% height=100% /
  /mx:Panel
  mx:Panel width=100% height=100% id=zgoscenkaScreen title=
  view:DodajTehSpec_Zgoscenka width=100% height=100%/
  /mx:Panel 
  /mx:ViewStack
  
  But the problem arises when I want to change from one view to another.
  From File1.mxml to File2.mxml I'm passing a variable called 'myVar'
  which tells' File2.mxml which view should be shown. But to my luck :(
  this only works the first time (when this File2.mxml is generated -
  creationComplete event). I tried with shown, hide nearlly everything
  but nothing works. 
  Please tell me what should I do so this will work as it should. Thank
  you.
 








--
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

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL

[flexcoders] window and firering functions

2006-08-11 Thread arnold_charming
Hi!

I'm stuck :(
I have a file called File.mxml which has inside a custom component
based on a mx:Panel called File2.mxml. Inside this new component,
File2.mxml, I have a viewstack with 4 views. Every single view is in
its' own custom component. Something like this:

File2.mxml

mx:ViewStack id=myViews width=100% height=100%
mx:Panel id=knjigaScreen width=100% height=100%
view:DodajTehSpec_Knjiga /
/mx:Panel
mx:Panel  title= id=tiskovinaScreen width=100% 
height=100%
view:DodajTehSpec_Tiskovina /
/mx:Panel
mx:Panel width=100% height=100% id=dodatekScreen 
title=
view:DodajTehSpec_Dodatek /
/mx:Panel
mx:Panel width=100% height=100% id=skatlaScreen title=
view:DodajTehSpec_Skatla /
/mx:Panel
mx:Panel width=100% height=100% id=raznoScreen title=
view:DodajTehSpec_Razno width=100% height=100% /
/mx:Panel
mx:Panel width=100% height=100% id=zgoscenkaScreen 
title=
view:DodajTehSpec_Zgoscenka width=100% 
height=100%/
/mx:Panel 
/mx:ViewStack

But the problem arises when I want to change from one view to another.
 From File1.mxml to File2.mxml I'm passing a variable called 'myVar'
which tells' File2.mxml which view should be shown. But to my luck :(
this only works the first time (when this File2.mxml is generated -
creationComplete event). I tried with shown, hide nearlly everything
but nothing works. 
Please tell me what should I do so this will work as it should. Thank you.






--
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

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 




[flexcoders] Re: window and firering functions

2006-08-11 Thread arnold_charming
--- In flexcoders@yahoogroups.com, Tracy Spratt [EMAIL PROTECTED] wrote:

 That component architecture is fine.
 
Hi!

 Do you have the {Bindable] metadata tag over the selecteIndex variable
 in file2?

Yes I have. I don't think the problem is in binding. Because my
variable is always sent (I've double checked). I think the main
problem lies in creationComplete event. This event is only triggered
once. I'm positive in this. Why? Because I also tried creating a
simple function with Alert box inside it and it was also displayed
only once. And that occured when the window was for the first time 
viewed. 
Please help me out, because I really have no idea how to solve this
problem.

  
 
 If this works the first time, but not subsequently, that sounds to me
 like binding is not set up properly.  You do not say how you are passing
 the selectedIndex value you want into the File2 component. Are you
 binding?
 
  
 
 Do you have the {Bindable] metadata tag over the selecteIndex variable
 in file2?
 
 {Bindable]
 
 Public var iSelectedIndex:int;
 
  
 
 Are you passing a binding expressing into File2?
 
 myFile2 iSelectedIndex={iSelectedIndex} .../
 
 And does iSelectedIndex in File1 have the {Bindable] tag?
 
  
 
 You should perhaps bind the File2 viewstack's property to the variable:
 
 mx:ViewStack selectedIndex={iSelectedIndex}.../
 
  
 
 Or are you passing in the value by directly referencing the File2
 viwestack selectedIndex property?
 
  
 
 Tracy
 
  
 
  
 
 
 
 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
 Behalf Of arnold_charming
 Sent: Friday, August 11, 2006 11:11 AM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] window and firering functions
 
  
 
 Hi!
 
 I'm stuck :(
 I have a file called File.mxml which has inside a custom component
 based on a mx:Panel called File2.mxml. Inside this new component,
 File2.mxml, I have a viewstack with 4 views. Every single view is in
 its' own custom component. Something like this:
 
 File2.mxml
 
 mx:ViewStack id=myViews width=100% height=100%
 mx:Panel id=knjigaScreen width=100% height=100%
 view:DodajTehSpec_Knjiga /
 /mx:Panel
 mx:Panel title= id=tiskovinaScreen width=100% height=100%
 view:DodajTehSpec_Tiskovina /
 /mx:Panel
 mx:Panel width=100% height=100% id=dodatekScreen title=
 view:DodajTehSpec_Dodatek /
 /mx:Panel
 mx:Panel width=100% height=100% id=skatlaScreen title=
 view:DodajTehSpec_Skatla /
 /mx:Panel
 mx:Panel width=100% height=100% id=raznoScreen title=
 view:DodajTehSpec_Razno width=100% height=100% /
 /mx:Panel
 mx:Panel width=100% height=100% id=zgoscenkaScreen title=
 view:DodajTehSpec_Zgoscenka width=100% height=100%/
 /mx:Panel 
 /mx:ViewStack
 
 But the problem arises when I want to change from one view to another.
 From File1.mxml to File2.mxml I'm passing a variable called 'myVar'
 which tells' File2.mxml which view should be shown. But to my luck :(
 this only works the first time (when this File2.mxml is generated -
 creationComplete event). I tried with shown, hide nearlly everything
 but nothing works. 
 Please tell me what should I do so this will work as it should. Thank
 you.







--
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

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 




Re: [Junk E-Mail - LOW] [flexcoders] which event?!

2006-08-10 Thread arnold_charming
Hi!

As it seems this doesn't work. I tried everything and show doesn't
even raise an Alert.show() box. Belowis my code:

File.mxml
-
mx:ViewStack id=myViews width=100% height=100%
mx:Panel  id=knjigaScreen width=100% height=100%
view:DodajTehSpec_Knjiga 
myViews={eventHandler(event)}/
/mx:Panel
mx:Panel   id=tiskovinaScreen width=100% height=100%
view:DodajTehSpec_Tiskovina 
myViews={eventHandler(event)}/
/mx:Panel
mx:Panel width=100% height=100% id=zgoscenkaScreen 
view:DodajTehSpec_Zgoscenka width=100% height=100%
myViews={eventHandler(event)}/
/mx:Panel
/mx:ViewStack


File.mxml should tell viewstack which view should it load. Because of
that I need a function which will be triggered every time File.mxml is
ran. 

--- In flexcoders@yahoogroups.com, Shannon Hicks [EMAIL PROTECTED] wrote:

 show should do what you need. hide might be useful too.
  
 Shan
 
_  
 
 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
 Behalf Of arnold_charming
 Sent: Wednesday, August 09, 2006 9:01 AM
 To: flexcoders@yahoogroups.com
 Subject: [Junk E-Mail - LOW] [flexcoders] which event?!
 
 
 
 Hi!
 
 I'm currently using ViewStack to scroll between different windows.
 I'm now looking for an event which will be triggered every time when a
 user enters a specific view. I tried creationComplete but it is only
 runned at the beggining of creating every container. 
 
 
 
  
 
 
 --
 No virus found in this incoming message.
 Checked by AVG Free Edition.
 Version: 7.1.405 / Virus Database: 268.10.8/414 - Release Date: 8/9/2006
 
 
 
 -- 
 No virus found in this outgoing message.
 Checked by AVG Free Edition.
 Version: 7.1.405 / Virus Database: 268.10.8/414 - Release Date: 8/9/2006








--
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

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 




[flexcoders] which event?!

2006-08-09 Thread arnold_charming
Hi!

I'm currently using ViewStack to scroll between different windows.
I'm now looking for an event which will be triggered every time when a
user enters a specific view. I tried creationComplete but it is only
runned at the beggining of creating every container. 






--
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

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 





[flexcoders] XML2ArrayCollection

2006-08-07 Thread arnold_charming
Hi!

I want to transfer below XML to ArrayCollection. I'm going to use it
with mx:tree container. I know I can also use XML but I would prefer
arraycollection. Thank you for your help.

node label=menu1/node
node label=menu2
node label=submenu1/node
node label=submenu2/node
/node
node label=menu3/node






--
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

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 





[flexcoders] reset forms

2006-08-03 Thread arnold_charming
Hi!

How to reset input forms when a user returns to a screen where he has
already been? By default all previous typed text is shown in input boxes.






--
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

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 





[flexcoders] sending parameters from Flex2 to AMFPHP

2006-08-02 Thread arnold_charming
Hi!

I'm having some difficulties sending parameters from Flex to AMFPHP.
Because flex has to send 2 parameters, AMFPHP always complains I
haven't sent the second argument, never the less the second argument
in in the array.

Below is my code:

var arrPosredovani:Array = new Array();
 arrPosredovani[0] = [1,1];
 arrPosredovani[1] = [2,2];

gateway.call(Projekt.shraniProjekt, new Responder(onResult,
onFault), arrPosredovani);

I also tried like

var arrPosredovani:Array = [[1,1],[2,2]]

and still AMFPHP complains about not sending the right number of
parameters. If I change my AMFPHP function to allow only one parameter
then passing variables from Flex to AMFPHP works as it should. Also
this function works just fine in browser of AMFPHP.

What am I doing wrong?
I'm using the latest version of AMFPHP 1.2






--
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

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 




[flexcoders] new Responder()

2006-08-01 Thread arnold_charming
Hi!

I'm using AMFPHP to get/send data to PHP. Currently the gateway looks
something liek this:

gateway = new RemotingConnection( http://localhost/amfphp/gateway.php; );
gateway.call(Projekt.izpisUporabnik, new Responder(onResult,
onFault),2);  

Because I need several of such calls and I want to have only one
onResult responder I was wondering how can I expand this one
(onResult) so it will handle all the results. Am I making some sence?!?





--
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

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 





[flexcoders] Re: php and flex

2006-08-01 Thread arnold_charming
Hi!

I see you are doing quite a lot with PHP and Flex 2.
I was wondering if you can help me out on some things, not just you
anyone can help :)

I'm using below code to access remoting on PHP

gateway.call(Projekt.izpisProjekt, new Responder(onResult, onFault));

When an error occurs' I just see [object Object] and nothing else.
What should I do to make these errors a bit more friendlier?

I know if you want to pass variables from Flex2PHP you have to pass a
third parameter to cal() method. But what to do, if I have to pass
several parameters back to PHP? Thank you in advance.



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

 You'll need XMLSocket.  PHP can do it.
 http://www.enobrev.com/chat_tutorial.php
 
 - Original Message - 
 From: arnold_charming [EMAIL PROTECTED]
 To: flexcoders@yahoogroups.com
 Sent: Sunday, July 30, 2006 5:00 AM
 Subject: [flexcoders] Re: php and flex
 
 
 --- In flexcoders@yahoogroups.com, Stefan Schmalhaus stefan@ wrote:
 
  --- In flexcoders@yahoogroups.com, arnold_charming
  arnold_charming@ wrote:
   
   Can I also push data? Because till now I was justing using pull
  mechanism.
  
  AMFPHP works in both directions. Please take a look at the AMFPHP
  documentation for details:
  
  http://www.amfphp.org/docs/
  
  
  Stefan
 
 
 
 I've looked and looked but can't seem to find anything about data
 push. I'm going to use data push in application because time to time
 my application will send some messages to all current users of
 application.
 
 
 
 
 
 
 --
 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 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

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 




[flexcoders] Re: php and flex

2006-07-30 Thread arnold_charming
--- In flexcoders@yahoogroups.com, Stefan Schmalhaus [EMAIL PROTECTED] 
wrote:

 --- In flexcoders@yahoogroups.com, arnold_charming
 arnold_charming@ wrote:
  
  Can I also push data? Because till now I was justing using pull
 mechanism.
 
 AMFPHP works in both directions. Please take a look at the AMFPHP
 documentation for details:
 
 http://www.amfphp.org/docs/
 
 
 Stefan


What should be done on the Flex side to enable data push?





--
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

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 




[flexcoders] Re: php and flex

2006-07-30 Thread arnold_charming
--- In flexcoders@yahoogroups.com, Stefan Schmalhaus [EMAIL PROTECTED] 
wrote:

 --- In flexcoders@yahoogroups.com, arnold_charming
 arnold_charming@ wrote:
  
  Can I also push data? Because till now I was justing using pull
 mechanism.
 
 AMFPHP works in both directions. Please take a look at the AMFPHP
 documentation for details:
 
 http://www.amfphp.org/docs/
 
 
 Stefan



I've looked and looked but can't seem to find anything about data
push. I'm going to use data push in application because time to time
my application will send some messages to all current users of
application.






--
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

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 




[flexcoders] php and flex

2006-07-29 Thread arnold_charming
Hi!

I'm using php as my server pages while flex is used for presentation
logic. What bugs me the most is the exchange of data between PHP and
Flex. I always have to generate a XML file and then passed it to Flex.
Can this be done any simplier and faster? How about passing mysql data
results from PHP directly to Flex without the hasle of transforming it
to XML? Is AMFPHP the right tool for this job?






--
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

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 




[flexcoders] Re: php and flex

2006-07-29 Thread arnold_charming
--- In flexcoders@yahoogroups.com, Stefan Schmalhaus [EMAIL PROTECTED] 
wrote:

 --- In flexcoders@yahoogroups.com, arnold_charming
 arnold_charming@ wrote:
  Is AMFPHP the right tool for this job?
 
 Yes, it is:
 
 http://www.adobe.com/devnet/flex/articles/flex2_amfphp.html
 
 http://renaun.com/blog/2006/07/25/70/
 
 http://www.narancs.net/flex/ClassMappingExample/ClassMappingExample.html


Can I also push data? Because till now I was justing using pull mechanism.





--
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

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 





[flexcoders] what is beeing sent via HTTPSerice?

2006-07-28 Thread arnold_charming
Hi!

I'm using HTTPService class to send some form data to my server
scripts. Is there any way how to find out what exactly (what variables
and  values) are beeing send via HTTPService?






--
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

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 





[flexcoders] Re: what is beeing sent via HTTPSerice?

2006-07-28 Thread arnold_charming
Tnx.

--- In flexcoders@yahoogroups.com, Vikas Bhatia [EMAIL PROTECTED] wrote:

 http://livehttpheaders.mozdev.org/
 with firefox
 
 On 7/28/06, arnold_charming [EMAIL PROTECTED] wrote:
 
Hi!
 
  I'm using HTTPService class to send some form data to my server
  scripts. Is there any way how to find out what exactly (what variables
  and values) are beeing send via HTTPService?
 
   
 








--
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

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 




[flexcoders] Problems with ComboBox control

2006-07-27 Thread arnold_charming
Hi!

I have a XML file (look below) which is then send to the ComboBox as
'dataProvider={xmlFile.urednik.label}'. But now I want to access the
required id of selected item/label. I tried several things but none of
them worked. Please help me out.

XML File
--
root
urednik
id5/id
labelSomething/label
/urednik
/root







--
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

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 





[flexcoders] Pointing to Dynamic variables

2006-07-25 Thread arnold_charming
Hi!

I have 3 labels with three different IDs:
mx:Label id=label1
mx:Label id=label2
mx:Label id=label3

Now I want to use a for...loop statement to dynamicly get access to
these labels and change their .text property. Something like this:

for(var i:int = 0; i  xmlOut.zalozbe.children().length(); i++) 
{
txtZalozba[i].text = xmlOut.zalozbe.zalozba[i];
}

How can this be done?






--
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

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 





[flexcoders] dispatching TextEvent on image click

2006-07-25 Thread arnold_charming
Hi!

How to dispatch a TextEvent when a user clicks on an image? Thank you.





--
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

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 




[flexcoders] Re: Pointing to Dynamic variables

2006-07-25 Thread arnold_charming
Anyone?

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

 Hi!
 
 I have 3 labels with three different IDs:
 mx:Label id=label1
 mx:Label id=label2
 mx:Label id=label3
 
 Now I want to use a for...loop statement to dynamicly get access to
 these labels and change their .text property. Something like this:
 
 for(var i:int = 0; i  xmlOut.zalozbe.children().length(); i++) 
 {
 txtZalozba[i].text = xmlOut.zalozbe.zalozba[i];
 }
 
 How can this be done?







 Yahoo! Groups Sponsor ~-- 
Check out the new improvements in Yahoo! Groups email.
http://us.click.yahoo.com/7EuRwD/fOaOAA/yQLSAA/nhFolB/TM
~- 

--
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

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 




[flexcoders] Re: dispatching TextEvent on image click

2006-07-25 Thread arnold_charming
--- In flexcoders@yahoogroups.com, arnold_charming
[EMAIL PROTECTED] wrote:

 Hi!
 
 How to dispatch a TextEvent when a user clicks on an image? Thank you.


Can this be done? Tnx.






 Yahoo! Groups Sponsor ~-- 
See what's inside the new Yahoo! Groups email.
http://us.click.yahoo.com/3EuRwD/bOaOAA/yQLSAA/nhFolB/TM
~- 

--
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

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 





[flexcoders] what is wrong with this code?

2006-07-18 Thread arnold_charming
Hi!

I'm having difficulties to find out what is wrong with this code.
Please help me out.

Kategorije.mxml
---
?xml version=1.0 encoding=utf-8?
mx:Panel xmlns:mx=http://www.adobe.com/2006/mxml; layout=absolute
width=245 height=465 title=Kategorije

mx:XML source=http://localhost/~arnold/bla/izpisKategorij.xml;
id=reqKategorije/

mx:List x=10 id=bla y=10 width=205 height=298
dataProvider={reqKategorije.kategorija} labelField=@label
textAlign=center/
mx:Label x=10 y=316  text={bla.selectedItem.label} width=169/
/mx:Panel
---

izpisKategorij.xml
---
kat
kategorija label=X data=3/
kategorija label=Zi data=1 /
kategorija label=Rlec data=2 /
kategorija label=Sci data=4 /
kategorija label=Pkti data=5 /
/kat
---

The XML is displayed in mx:List tag but I can check which item is
selected. What could be wrong? selectedIndex works fine, but not
selectedItem.






 Yahoo! Groups Sponsor ~-- 
Yahoo! Groups gets a make over. See the new email design.
http://us.click.yahoo.com/XISQkA/lOaOAA/yQLSAA/nhFolB/TM
~- 

--
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

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 




[flexcoders] Re: what is wrong with this code?

2006-07-18 Thread arnold_charming
Hi!

What can I say.THANK YOU! Now it works as it should.
But please excuse my language...WTF do we have manuals? I'm using the
latest version of Flex Builder anf Flash player and something that is
written in official Adobe manul doesn't work. What's the purpose of
this manual? 

--- In flexcoders@yahoogroups.com, Jeff Tapper [EMAIL PROTECTED] wrote:

 Try
 mx:Label x=10 y=316 text=[EMAIL PROTECTED] width=169/
 
 At 08:29 AM 7/18/2006, arnold_charming wrote:
 
 Hi!
 
 I'm having difficulties to find out what is wrong with this code.
 Please help me out.
 
 Kategorije.mxml
 ---
 ?xml version=1.0 encoding=utf-8?
 mx:Panel 

xmlns:mx=http://www.adobe.com/2006/mxmlhttp://www.adobe.com/2006/mxml;

 layout=absolute
 width=245 height=465 title=Kategorije
 
 mx:XML 

source=http://localhost/~arnold/bla/izpisKategorij.xmlhttp://localhost/~arnold/bla/izpisKategorij.xml;
 id=reqKategorije/
 
 mx:List x=10 id=bla y=10 width=205 height=298
 dataProvider={reqKategorije.kategorija} labelField=@label
 textAlign=center/
 mx:Label x=10 y=316 text={bla.selectedItem.label} width=169/
 /mx:Panel
 ---
 
 izpisKategorij.xml
 ---
 kat
 kategorija label=X data=3/
 kategorija label=Zi data=1 /
 kategorija label=Rlec data=2 /
 kategorija label=Sci data=4 /
 kategorija label=Pkti data=5 /
 /kat
 ---
 
 The XML is displayed in mx:List tag but I can check which item is
 selected. What could be wrong? selectedIndex works fine, but not
 selectedItem.
 
 
 
 No virus found in this incoming message.
 Checked by AVG Anti-Virus.
 Version: 7.1.394 / Virus Database: 268.10.1/389 - Release Date:
7/14/2006
 
 
 
 -- 
 No virus found in this outgoing message.
 Checked by AVG Anti-Virus.
 Version: 7.1.394 / Virus Database: 268.10.1/389 - Release Date:
7/14/2006







 Yahoo! Groups Sponsor ~-- 
Great things are happening at Yahoo! Groups.  See the new email design.
http://us.click.yahoo.com/TISQkA/hOaOAA/yQLSAA/nhFolB/TM
~- 

--
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

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 





[flexcoders] mx:List and displaying images

2006-07-17 Thread arnold_charming
Hi!

I'm using XML to get the required data for mx:List component. Every
node has an attribute called myIcon which stores the name of the
image. Now I just want to read the name of image which is stored in
myIcon attribute and display thta image in mx:List. And hint would be
great. thank you.





 Yahoo! Groups Sponsor ~-- 
Check out the new improvements in Yahoo! Groups email.
http://us.click.yahoo.com/6pRQfA/fOaOAA/yQLSAA/nhFolB/TM
~- 

--
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

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 




[flexcoders] Developing RIA book

2006-06-26 Thread arnold_charming
Hi!

As a newcomer to Flex, I was wondering if it is wise to buy the book
Developing Rich Clients with Macromedia Flex? AFAIK this book was
made for flex 1.0 to 1.5, while the most up to date version of Flex is
2.0. Are these versions of Flex so much different?





 Yahoo! Groups Sponsor ~-- 
Yahoo! Groups gets a make over. See the new email design.
http://us.click.yahoo.com/XISQkA/lOaOAA/yQLSAA/nhFolB/TM
~- 

--
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

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 





[flexcoders] Re: working with XML data

2006-06-24 Thread arnold_charming
Hi!

Tnx for all the help...it was very usefull. But still I'm getting some
strange errors when running the application for the first time. 

When I for the first time try to submit blank text fields I get this
error:

Error #1088: The markup in the document following the root element
must be well-formed.

As soon as I type something in the text fields the application starts
to work. Even if I again supply blank fields. What could be the
problem? Below is my XML file and MXML:


XML file

izhod
spremenljivke
spremlogin/sprem
vrednost1/vrednost
/spremenljivke
/izhod

If 1 then user can proceed otherwise wrong password/username.

MXML

?xml version=1.0 encoding=utf-8?
mx:Canvas xmlns:mx=http://www.adobe.com/2006/mxml; width=400
height=300
mx:Script
![CDATA[
import mx.rpc.events.ResultEvent;

public function onResult(oEvent:ResultEvent):void {
var xmlResult:XML = new XML(oEvent.result);

tekst.text = 
xmlResult.spremenljivke[0].vrednost;
}
]]
/mx:Script
mx:HTTPService resultFormat=e4x result=onResult(event)
url=http://localhost/~iztok/rokus_v2.com/vstop.php; method=POST
showBusyCursor=true id=reqLogin 
mx:request
uporabnik{txtUporabnik.text}/uporabnik
geslo{txtGeslo.text}/geslo 
/mx:request
/mx:HTTPService

mx:Canvas x=0 y=0 width=400 height=300
mx:VBox x=0 y=0 width=400 height=300
horizontalAlign=center verticalAlign=top verticalGap=0
mx:Text text=[EMAIL PROTECTED] fontSize=30 
width=283
textAlign=center height=57/
mx:Form height=131
mx:FormItem label=Uporabnik: required=true
mx:TextInput id=txtUporabnik/
/mx:FormItem
mx:FormItem label=Geslo: required=true
mx:TextInput displayAsPassword=true 
id=txtGeslo/
/mx:FormItem
mx:FormItem
mx:Button label=Prijava 
click=reqLogin.send();/
/mx:FormItem
/mx:Form

mx:TextArea id=tekst/
/mx:VBox
/mx:Canvas
/mx:Canvas

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

 If you are currently binding to the dataGrid's dataProvider property,
 you could intead use a result handler function.
 
 mx:HTTPService result=onResult(event)... resultFormat=e4x /
 
 import mx.rpc.events.ResultEvent;
 Private function onResult(oEvent:ResultEvent):void
 {
   var xmlResult:XML = XML(oEvent.result);
   //traverse the xml as needed to perform desired logic
   myDataGrid.dataProvider = xmlResult;  //same reference as you use in
 the binding expression
 }
 
 Tracy
 
 -Original Message-
 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
 Behalf Of Tom Chiverton
 Sent: Thursday, June 22, 2006 10:33 AM
 To: flexcoders@yahoogroups.com
 Subject: Re: [flexcoders] Re: working with XML data
 
 On Thursday 22 June 2006 12:29, arnold_charming wrote:
  1. How to transfer XML I got from HTTPService to AS so I can check if
  he/she is allowed to enter the application?
 
 If you are displaying it in a datagrid, it must all ready be in AS.
 You want to read up on E4X etc. from the manual.
 
  2. What is the best way/method to redirect a user to a different
  screen? Is it wise just to turn components from 'visible=true' to
  'visible=false' or should I destroy the component with removeChild()?
 
 Look at changing the selectedIndex of a viewstack.
 
  stupid
 
 We're all new to it :-)
 -- 
 Tom Chiverton
 
 
 
 This email is sent for and on behalf of Halliwells LLP.
 
 Halliwells LLP is a limited liability partnership registered in England
 and Wales under registered number OC307980 whose registered office
 address is at St James's Court Brown Street Manchester M2 2JF.  A list
 of members is available for inspection at the registered office. Any
 reference to a partner in relation to Halliwells LLP means a member of
 Halliwells LLP. Regulated by the Law Society.
 
 CONFIDENTIALITY
 
 This email is intended only for the use of the addressee named above and
 may be confidential or legally privileged.  If you are not the addressee
 you must not read it and must not use any information contained in nor
 copy it nor inform any person other than Halliwells LLP or the addressee
 of its existence or contents.  If you have received this email in error
 please delete it and notify Halliwells LLP IT Department on 0870 365
 8008.
 
 For more

[flexcoders] accessing from custom component

2006-06-24 Thread arnold_charming
Hi!

I have a main.mxml file. This file holds inself a viewstack. One
viewstack is filled with a custom component (login.mxml). The question
now is, how can I access a text field (mx:Text) which is in
main.mxml from login.mxml. Tnx.





 Yahoo! Groups Sponsor ~-- 
Great things are happening at Yahoo! Groups.  See the new email design.
http://us.click.yahoo.com/TISQkA/hOaOAA/yQLSAA/nhFolB/TM
~- 

--
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

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 




[flexcoders] Re: working with XML data

2006-06-22 Thread arnold_charming
Hi!

I've done almost everything. I'm receiving the XML via
mx:HTTPService and diplaying it in DataGrid. It works great. But I
don't know how to redirect the user to a different screen or even ask
my self if he/she is allowed to enter the application. So here are my
questions:

1. How to transfer XML I got from HTTPService to AS so I can check if
he/she is allowed to enter the application?

2. What is the best way/method to redirect a user to a different
screen? Is it wise just to turn components from 'visible=true' to
'visible=false' or should I destroy the component with removeChild()?

Sorry for asking stupid question but I'm new to Flex 2.0
Thank you in advance.


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

 How far have you gotten? What do you want help with?  We can't build
 your whole app for you.
 
  
 
 Tracy
 
  
 
  
 
 
 
 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
 Behalf Of arnold_charming
 Sent: Wednesday, June 21, 2006 1:14 PM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] working with XML data
 
  
 
 Hi!
 
 I'm new to Flex 2.0 so please help me out.
 
 I'm trying to build a simple flex application which excepts userpass
 which is then send via mx:httpservice to my php script. If the login
 is OK, then the flex application receives a XML file which states that
 the user can log-in. Now I have to build a checking
 mechanism, which will check if the user can be logged in or not. If yes,
 then it should be forwarded to another screen. 
 Please help me out.
 Thank you.








 Yahoo! Groups Sponsor ~-- 
Yahoo! Groups gets a make over. See the new email design.
http://us.click.yahoo.com/XISQkA/lOaOAA/yQLSAA/nhFolB/TM
~- 

--
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

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 




[flexcoders] working with XML data

2006-06-21 Thread arnold_charming
Hi!

I'm new to Flex 2.0 so please help me out.

I'm trying to build a simple flex application which excepts userpass
which is then send via mx:httpservice to my php script. If the login
is OK, then the flex application receives a XML file which states that
the user can log-in. Now I have to build a checking
mechanism, which will check if the user can be logged in or not. If yes,
then it should be forwarded to another screen. 
Please help me out.
Thank you. 






 Yahoo! Groups Sponsor ~-- 
See what's inside the new Yahoo! Groups email.
http://us.click.yahoo.com/2pRQfA/bOaOAA/yQLSAA/nhFolB/TM
~- 

--
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

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/