Mailing List
Home
Forum Home
Flash Pro
Subjects
Firework Effect
setInterval bug identified and fixed
setInterval bug identified and fixed
ScrollPane component doesn 't auto update
Help: MX 2004 How to script a print button to print the entire sli
Event Dispatcher between classes
memory management removeMovieClip /
MX2004 Dataset itemClassName
Order of events per frame
XML to Object help
Textfield prototype question
Flash and QuickTime VR
Reading and displaying RSS feeds in Flash MX
Flash MX 2004 Sucks
AW: [Flashcoders] Switch/Case vs If/else
AW: [Flashcoders] Switch/Case vs If/else
Flash Interface with 10mb xml file
Web Service Results
Listener Object 's best practice
 
Search:  
Power your search with and, or, +, -, or "some phrase" operators.
loadVars problem

loadVars problem

2005-09-26       - By metr0area

 Back
i'm using loadVars.sendAndLoad with a php script and i'm having a problem when
i get my
results back... all the php script is returning is one variable with value
(right now its a
number either 1 or 0). now the onLoad works for my dataReciever object, and i
can display
the value of the recieved variable in a text field, but i cant use that value
in my if else
statements for comparisons. flash will ignore any if statements that contain a
comparison
to that value as if they were incomaprible items (therefore totally bypassing
my if
statements). i've tried converting the value before comparisions as well as
assigning that
value to a new variable and comparing that but it never works.

on a side note, the php script recieves 2 values (user and a value) that are
sent from flash
and sends back either a 1 or 0 depending on the user entry. my other problem is
that i
cant dynamically set the outcome of 1 or 0 in the php because then flash doest
recieve any
value at all (as opposed to me hard setting the value just to see that i am
actually getting
something back). the inablity to dynamically set the php isnt in my lack of php
knowledge
because i've tested the php seperately to ensure that i was getting the correct
value when
the values were being set dynamically.

can anyone help? i've been wrestling with this for 2 days and i cant see why
flash wont use
that value in comparisons.




-- ---- ---- ---- ------ Yahoo! Groups Sponsor -- ---- ---- ---- --~-->
Fair play? Video games influencing politics. Click and talk back!
http://us.click.yahoo.com/T8sf5C/tzNLAA/TtwFAA/IHFolB/TM
-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- -----~->

=========================
Pro_Flash: Professional Web Developers Using Macromedia Flash
To subscribe: mailto:pro_flash-subscribe@(protected)
To UNSUBSCRIBE: mailto:pro_flash-unsubscribe@(protected)

Yahoo! Groups Links

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

<*> To unsubscribe from this group, send an email to:
   pro_flash-unsubscribe@(protected)

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




Earn $52 per hosting referral at Lunarpages.