Hi there,
I have a form in flash asking username, email and message. A submit button is there to submit the info to the perl script.
On click of submit button I have written this code:
on (release) {
// send variables in form movieclip (the textfields)
// to email PHP page which will send the mail
form.loadVariables(“http://www.coolgirl.com/perl/cool/mailtofriend.html”, “POST”);
}
**This code is not working and also along with it I just want the ID of the video that is running. **
Sturcture of video.xml is as follows :
<ratings>
<video file=“video1.flv”>
<title>Lays</title>
<runtime>auto</runtime>
<author>Bharati 1</author>
<views>1</views>
<commercialid></commercialid>
</video>
<video file=“video2.flv”>
<title>Incredible India</title>
<runtime>auto</runtime>
<author>Bharati 2</author>
<views>1</views>
<commercialid>2</commercialid>
</video>
<video file=“video3.flv”>
<title>Mc Donals Happy Meal</title>
<runtime>auto</runtime>
<author>Bharati 3</author>
<views>0</views>
<commercialid></commercialid>
</video>
<video file=“video4.flv”>
<title>Last</title>
<runtime>auto</runtime>
<author>Bharati 4</author>
<views>1</views>
<commercialid></commercialid>
</video>
<commercials>
<commercial id=“default”>video1.flv</commercial>
<commercial id=“1”>video1.flv</commercial>
<commercial id=“2”>video2.flv</commercial>
<commercial id=“3”>video3.flv</commercial>
</commercials>
</ratings>
Should I pass ID through this XML like this :
<video file=“video8.flv”>
<title>Eight</title>
<runtime>auto</runtime>
<author>Bharati 8</author>
<views>0</views>
<myID>6567</myID>
<commercialid></commercialid>
</video>
If I do so then how do I get this ID in my this code :
on (release) {
// send variables in form movieclip (the textfields)
// to email PHP page which will send the mail
form.loadVariables(“http://www.afaqs.com/perl/advertising/creative_showcase/mailtofriend.html”, “POST”);
}
Can anybody help me out. Its very urgent.
Thanx.