Welcome, Guest. Please login or register.
Did you miss your activation email?
05/23/12, 12:40
Home Help Search Login Register
News: Parsley Flex framework review featuring quiz application, in our Flex frameworks series
Flex SDK 4.5 mobile roadmap: begin with your mobile development
Swiz Flex framework review featuring quiz application
New homepage we release our new Homepage, take a look ...

+  Flash-db
|-+  Server side Scripting and Database Support
| |-+  PHP, Perl, ASP, JSP, CFM (Moderators: Flash-db, Musicman, vesa kortelainen, Ronald Wernecke, Jorge Solis, nothingGrinder)
| | |-+  response from ASP to flash (2): HELP!!!
0 Members and 1 Guest are viewing this topic. « previous next »
Pages: [1] Print
Author Topic: response from ASP to flash (2): HELP!!!  (Read 2724 times)
hyperhappy
Server what's that
*
Posts: 16



View Profile WWW Email
« on: 02/01/02, 11:42 »

Hi lovely flash people,

I have been having serious issues with this, and I am still confused. I am loading my ASP (I am doing a form) into a movie clip (on the send button) and then I want the movie clip to check if the variable has been loaded and if so, move to the next frame! I wish it was so easy....

For a start, I thought Flash did not understand my variables.  But, I ran a little test, on the clipevent, I put:

onClipEvent (data) {
   gotoAndPlay (2);
}

So, it is not checking for any variables, it is just checking to see if anything has loaded, right? (correct me if I am wrong, I am new at this) and I get nothing, nothing at all. It is almost as if, although I have told Flash to load the ASP into the movieclip, it isn't. I mean, the form works fine, I get the email confirmation but none of the actions are executed. So, is this bad technique, is there another way? I can't load the ASP from a frame action, it doesn't work....

I am still trying to figure it out, I am so CONFUSED! I know my variables are fine in the ASP, but I can't think of any other way...boo hoo.

Jag
Logged

I am outta here, Jag
Musicman
Administrator
Systems Administrator
*****
Posts: 2685



View Profile WWW Email
« Reply #1 on: 02/01/02, 14:53 »

hi,

your loadvariables lso references that _data_ clip, and the variables you are sending are inside?
If yes, what happens when you open the asp in the browser?

Musicman
Logged
hyperhappy
Server what's that
*
Posts: 16



View Profile WWW Email
« Reply #2 on: 02/01/02, 14:59 »

Hey Musicman:

Thanks for your reply. I actually realised that I should have had the following on the movieclip:

onClipEvent (data) {
_root.gotoAndPlay(37);
}

the _root made all the difference! I got that part to work, so it recognises that once the ASP has loaded into the Movieclip, it goes to that frame. However, this works fine when I export the swf and play it by itself. But, I have a main.swf that loads this movie into it, and the code stops working. I think there is something wrong with the way it's communicating with the timeline.

So, I am trying to figure this one out. If it is not one thing it is another, it's beginning to do my head in!!!

There has to be a way around this, right? I tried _parent too and nothing.

Any ideas?
Logged

I am outta here, Jag
Musicman
Administrator
Systems Administrator
*****
Posts: 2685



View Profile WWW Email
« Reply #3 on: 02/02/02, 04:27 »

Hi,

the _parents are quite often the key to successful operation....
In any case if your movie works with this, _parent, or probably even _parent._parent, it will work both by itself and loaded into a master movie.
If the button triggering the loadvariables is inside the data mc, it should do loadvariables('script.asp', this, POST)
If it is on the main timeline, just replace "this" by "data". If it is in a different mc, the target for variables could actually be _parent.data

Musicman
Logged
hyperhappy
Server what's that
*
Posts: 16



View Profile WWW Email
« Reply #4 on: 02/05/02, 15:21 »

what a nice suprise to get your message! I didn't even know you responded, thanks!!!

I have tried all the combinations of bleedin' _parent, .this and _root and it works when I test the swf on it's own but once I load the file from another movie, I get nothing, it doesn't make any sense at all. In theory it should work. I even put the whole path _level0.dropzone.gotoandplay (37) (I got the path from Debugging) and nothing.

I am about to try replacing, this with data....my head really hurts, I have been messing with this line of code for days..........!!!

Happy Thoughts.
Logged

I am outta here, Jag
Pages: [1] Print 
« previous next »
Jump to:  


Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!