Skip to main content
Known Participant
December 2, 2009
Question

More Contact Sheet Help needed!

  • December 2, 2009
  • 1 reply
  • 565 views

Hi, I have been making a website entirely in flash CS4 AS3 and I decided to buy a contact sheet to add into it, when I added it in though it didn't work. I would click the button of the contact sheet and it didn't work. I contacted the creator if the contact sheet and this is what he told me:

Actionscript 3.0 hates timelines

They way you have it set up it wont work
First get the emailer working in its own flv, swf.
Then when you have it working loaded it as an external swf.
You tie line coding was normal in 1.0 acceptable in 2.0 but wont cut it in 3.0
All Actionscript needs to be in one key frame. all pages need to be externally loaded swf,s not just a new location on a timeline.

So if someone could tell me how to create a contain file and external .swf for my contact sheet and also how to call up the external .swf it would be great help.

I attached my Flash file as a zip file so you can look at it and give me the best help possible. Thorough instructions would be much appreciated.

What I've done is i simply took that contact sheet and put it into the time line where the correct frame label is. I am using frame labels to call up the different pages on the site when i click on the buttons. So like I said i put it at the frame label "contact" and so when i click on the Contact Me button it goes to the contact sheet. That part works but as far as the contact sheet responding and sending the email nothing is happening. I have the PHP file and everything set up.

Here's the website it's on it it helps to look at it online so that you can experience the problem yourself.

http://citiesrebuildingcities.com/AnthonyFlashSite/index.html

This topic has been closed for replies.

1 reply

Participating Frequently
December 3, 2009

1. Publish the ContactForm.fla as a separate .swf, say contactForm.swf.

2. On the timeline of your main file (index.fla), add code at the frame labelled "contact", to load in the "external" contact form swf, contactForm.swf. Look up the Loader Class in the ActionScript 3.0 reference to see how to do this.

http://help.adobe.com/en_US/AS3LCR/Flash_10.0/flash/display/Loader.html

I haven't looked at the code in ContactForm.fla but hopefully there are no scope issues and the loaded swf works independently of your main file. Just make sure that sendEmail.php is in the same directory as your index.swf.

ajm97221Author
Known Participant
December 7, 2009

Yeah so i did this and it works but now when i click it, it pops up but when i try to go to a different page it doesn't go away. As well as the actual sheet still doesn't work.