PDA

View Full Version : guestbook doesn't work when loaded into empty movie clip?



brintonwhite
January 20th, 2004, 12:35 PM
I will initially explain my problem before I upload any files to the forum or the server and pray to god you can help (I have a deadline approaching)

I have made a simple site with some simple transitions. each button on my site loads in an external swf file into an empty movie clip.

One of these swf files is a guestbook which works when i dont load it into the empty clip and test it alone on my server (sending in the guestbook swf, html, php, and empty text file)

Now then, when i load in the guestbook into the main swf, nothing happens on the server when I test it - I am lost and now come to you people for advice. It obviously has something to do with being loaded into an empty movie clip that is causing conflict.

I am very new to actionscript and know nothing about php. As I said earlier, I will upload any files for you to look at but I thought i'd ask first, so you could have a think about whether or not you might be able to help.

I DESPERATELY need help here.

Thank you very much.

lunatic
January 20th, 2004, 12:46 PM
I'm sure you've already thought of this but have you looked for _root in the guestbook? I did the same as you - loading a guestbook into a container clip and I had to double and triple check all my paths. The thing that makes you crazy is that when you get everything lined up the guestbook won't work on it's own but WILL work when you test the whole site because it's looking for that container clip on the main file.

brintonwhite
January 20th, 2004, 12:59 PM
Thanks lunatic, As I say, I'm not too hot with actionscript, Yes, I thought it would be something to do with _root but I simply have no idea where to put it (in fact I'm not even sure whether I should be putting root in or taking it out.) There's bits of actionscript all over the place and one wrong move and the whole thing is ruined. I just pray that someone will look at the files because this whole project looks like collapsing if I don't get it fixed. I promised my client I could do the guestbook in flash after doing a tutorial and everything worked fine, but as I say, I load it in and it doesn't work and I don't understand enough about code to change it.

Thanks and if you can help any further I would be delighted to here from you.

lunatic
January 20th, 2004, 01:04 PM
If you are loading the guestbook swf into a container clip then the guestbook fla itself should not contain any references to _root. You can either change it to _parent or hardcode in the path using the main swf as _root.

Maybe if you could post or attach your guestbook fla and let me know how you want it loaded into your main swf (e.g. is it just loading into a container clip on the main timeline or is it one of those movieclips buried in 6 other movieclips?) then maybe I can help you out.

brintonwhite
January 20th, 2004, 01:20 PM
Thanks. It is fairly simple really. The guestbook loads into an empty movie clip in my main swf site. The empty clip is called container

Now then, the actual guestbook fla itself - the actual input text filelds for message, email etc are within a movie clip on the main stage, these input text fields have variable names. also in this movie clip are two buttons - send - and clear all - these buttons have a bit of script also.

All the other stuff is not in movie clips and can be seen on the main stage (the other buttons, text fields etc)

That's it really, you'll have no problem finding the actions because I managed it easily enough when I downloaded the initial FLA and pulled it apart,

I really appreciate you taking the time for this. And will love yo always if you can sort it out.

Thank you. I'm sending the FLA for you

brintonwhite
January 20th, 2004, 01:22 PM
Perhaps I should mention, in case you need to know, my main movie is called spree

lunatic
January 20th, 2004, 01:33 PM
So what is happenning (or not happenning I should say :P ) when you test it on the server? Does it not appear at all or it just doesn't work? And if the latter, what exactly about it is not working? Are your messages not getting submitted/stored or . . . ? Because the file looks fine to me as written.

brintonwhite
January 20th, 2004, 01:39 PM
Yes, it opens up ok but the messages don't appear in the large text box. Shall I upload two versions to the server one that works and one that doesn't and write back shortly with the address? I also noticed when I looked at the guestbook file that there is reference to root which you said earlier should be removed and replaced with something different. Shall I do that - upload the files?

Coolidge
January 20th, 2004, 01:49 PM
Brintonwhite, check your PM.

lunatic
January 20th, 2004, 01:56 PM
Hey did Coolidge help you? :hr:

If not then if you can hang on until I get home I can compare your project to mine since we did ours the same. But I can't remember how I did it and I'm at work right now. :(

Let me know if you still need help and I'll get back to you as soon as I get home.

Coolidge
January 20th, 2004, 01:57 PM
Still waiting for him to contact me.
I might be able to help him out, need to see his PHP tho.

brintonwhite
January 20th, 2004, 02:05 PM
I'm just uploading to the server, I will also upload the files as requested shortly - php included.

Thanks guys

brintonwhite
January 20th, 2004, 02:49 PM
Ok guys I've uploaded to the server so you can now see what is happening.

This first one is the full site, when you press the forum button, it does load the file but it doesn't work at all - doesnt load text into the large box.
http://www.galaxymusic.co.uk/spree.html


This one is just the forum on its own in its own html page, It used to work but now knocks out the previous post for some reason and the date also doesn't show any more even though the code hasn't been changed at all (this is what I want to load into my main movie - and work):
http://www.galaxymusic.co.uk/guestbook.html


And just so you can see what effect I am trying to achieve, This is the tutorial I followed which works perfectly, It doesn't load into a blank movie clip, it loads into its own html page as does my second example:

http://www.galaxymusic.co.uk/guestbook2.html

Coolidge, is it still ok to send those files to that email address you sent me? Can you say exactly which ones you need.

Once again, thanks guys.

Coolidge
January 20th, 2004, 02:58 PM
Try this version of the .Fla file.
I changed it so it loads the variables to "_self"- not "0" like it was.
If it doesn't work, send the PHP file.

I have the same problem too. It lags a little before it loads the .txt file.

Coolidge
January 20th, 2004, 02:59 PM
File

brintonwhite
January 20th, 2004, 03:18 PM
Hey thanks man, i'll look at that, i'll write back a little later

brintonwhite
January 20th, 2004, 04:04 PM
Coolidge, Here is the php file because it still doesn't work at the moment.

Thank you

brintonwhite
January 20th, 2004, 06:52 PM
Lunatic,

Can I ask, if you can't see where my error is, would it be possible for you to post me the files that you succesfully completed and got to work? - with all the design taken out of course, just a bare bone version with text boxes and relevant actionscript etc, and of course it would have to be a version that would work inside a movie clip (I also note that you mentioned your version was able to do this) - inside an empty movie clip.

If you could it would be great. I am now in a panic.

Thank you very much.

I'm going to bed now. Goodnight

lunatic
January 20th, 2004, 06:58 PM
lol - no problem. You must be in a completely different time zone - It's only 4 pm here! I'll be home about 5 and will pm you the stuff tonight. No worries about design - looks like we used the exact same guestbook anyway and I didn't change it much! You can see how I used it at this website:
www.marysuetobin.com

Yes, I used it as an external swf and loaded it into a blank movie clip on my main stage.

Talk to you tomorrow! :bu:

lunatic
January 20th, 2004, 08:08 PM
Check your pm ;)

brintonwhite
January 21st, 2004, 05:35 PM
I'd just like to say Thanks once again to both you guys for helping me out, Thanks also for the private messages.

Coolidge. No I wasn't offended by the site you showed me in your private message:thumb:

Also I will be posting the guestbook for you both to look at when I have changed the graphics.

Just out of curiosity, When I embedded my own pixel fonts into the text fields it stopped the messages being posted when I tested it on the server to test it. Do either of you know if there is any issues with this? Just curious, Thats all.

Lunatic,

I am in England.:hangover:

lunatic
January 21st, 2004, 05:37 PM
Don't really know much about pixel fonts but have seen little things like, make sure you turn off the selectable option and such.

England is cool! :thumb: Got weather much like here in the Pacific Northwest of the US, heh-heh.

brintonwhite
January 21st, 2004, 08:34 PM
Hey,

Here goes then. I've done it.


http://www.galaxymusic.co.uk/spree.html


Please leave a message if you want. In fact that would be good.

Ps

what do you think of the site so far? only home, contact and forum work at the moment.

Ps, lunatic. I had to take out that set interval thing you had in your actionscript because it kept sending the main movie back to frame one when i left a message, posted it and then went to home or contact (home or contact would load and then after a couple of seconds, it went back to frame one of the main movie and got stuck there at frame one for some reason)

lunatic
January 22nd, 2004, 12:56 AM
lol - yeah, I forgot about that. I did that because otherwise it just stayed on the 2nd frame which said, you know, "thanks for posting" and I hated that. I wanted it to clear itself and go back to the form. Glad you got it to work - the site looks great!

Coolidge
January 23rd, 2004, 09:36 PM
looks good!
Lunatic-Thanks for the help as well.
Your version loads the text much faster!
Nice job Brinton on the site.



"Oh look...it's HANSEL, he's so hot right now."

lunatic
January 23rd, 2004, 10:35 PM
Thanks Coolidge! What version were you using?

"Orange mocha frappacino!"

Coolidge
January 23rd, 2004, 10:40 PM
check your PM Lunatic.




"What IS this?! A center for ANTS!!"

lunatic
January 23rd, 2004, 10:48 PM
Right back at ya.

"I bet you never thought we'd be writing our own ugoogalee."

craschnburn
May 18th, 2004, 02:50 AM
hey guys,

did you guys ever figured out what to do in resolving the issue with an external swf (guestbook) unable to load when loaded through a container.

could you guys advise?

thanks
t