| Home | Tutorials | Forums | Articles | Blogs | Movies | Library | Employment | Press | Buy templates |
|
|
#1 |
|
Registered User
Join Date: Apr 2003
Posts: 11
|
I'm having trouble copying a RecordSet to a local variable so I can use it outside of the result function.
Here's the code I've tried, I've gone through lots of combinations but still can't get it right. I want to assign the Recordset returned to the local variable myResult and use it elsewhere in the ActionScript. ActionScript Code:
Can anyone point me in the right direction? Thanks |
|
|
|
|
|
#2 |
|
Master of Nothing
Join Date: Dec 2002
Location: San Diego, CA
Posts: 2,468
|
Is that exactly how it looks in your movie, all in the same frame. If so, thats the problem, because the resultset isn't populated until the function is run, and you try to call it before it has loaded. Flash plays the entire frame from top to bottom, and the function never finishes before the trace line is called below the function.
|
|
|
|
|
|
|
|
|
#3 |
|
Registered User
Join Date: Apr 2003
Posts: 11
|
I'd read something like that.
So what's the solution to it, I would of thought that having all the code in the same frame would be ok? Should I put the call to the server in the first frame and all the manipulation in another frame? It doesn't seem quite right somehow Can anyone point me towards good tutorials, all the ones I've found seem to do the same things? Thanks for the reply. Ade |
|
|
|
|
|
#4 |
|
Master of Nothing
Join Date: Dec 2002
Location: San Diego, CA
Posts: 2,468
|
Well just move to the second frame after the result function runs and try tracing it there. Like this
ActionScript Code:
|
|
|
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|