Help With Email Function On VBulletin
hi i am not sure if this is the place to ask i have a vBulletin forum on my site and my server don't have the option needed to send from the forum emails (activation email for example) but i realy need this function to send news and some other things maybe someone knows a way to get the emails working anyway?
my site is : http://dimiboy.dkmhosting.com (its on hebrew)
ActionScript.org Forums > Flash General Questions > Other Flash General Questions
Posted on: 11-26-2005, 06:30 PM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
[MX]Flash In VBulletin
Hello , when i try to use vbulletin commands in flash , it doesn't seems to work.
I replaced the header buttons of a vbulletin board ( user cp , search , calendar , faq , ... ) in a swf and i gave the following action to my button
on (release,releaseOutside) {
tempURL = "/members.php?action=logout=" + session[sessionhash];
getURL(tempURL, "_parent");
}
(this is the logout button)
but when i press it i get this:
/members.php?action=logout=
and not
member.php?s=[sessionhash]&action=logout
can somebody please tell me what to do.
Thx ppl
Flash And Vbulletin
hello everybody
i created a flash file
and now i want to show the forum stats in flash
has anybody a idee how that i can do that?
i try already this
on the first frame of my mc i use the action loadVariablesNum("boardstat.php",0,"GET");
and than for the (example) total members i created a dynamic textfield with the varname: numbermembers
but this won't work
please help me?
Flash In VBulletin V3.0.0 B6
I would like a Flash image as my header on my forum but dont know the code to use and where to place the code in vb3. Can anyone help me with a full explanation please ? [img]images/smilies/smile.gif[/img]
Flash In VBulletin
Hey all, I need to create a Featurific (Wordpress Plugin) type header preview in my vBulletin Forum. Can any one please guide me the best way to do it.
How To Get Variable From Vbulletin Db?
as title say~
i want to get some variables from my vbulletin forum
for example:totalposts etc... some thing show up in forumhome
how should i get those variables and work in flash?
thankz~
Flash Button For Vbulletin
i have done a flash header for my vbulltin, how do i pass this links like this "href="index.php?s=$session[sessionhash]"", i tried using getURL method but its not working, how can i solve this problem?
this is the link for the button button i have done
http://www.dubaimoon.com/vb/Untitled-1.htm
Flash Not Visible In VBulletin
Hello,
I use the code generated by the software and I get a white page. So I contact vBulletin to support me.
vBulletin send me some codes it works this morning. I don't change any thing and now it's not working.
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="
Flash Button For Vbulletin
Hi,
I have done have flash header for vbulletin forum, now how do I put this link "index.php?s=$session[sessionhash]", I tried putting in getURL but its not working properly, so can somebody tell me how to pass aURL with session like this in flash button?
Vbulletin Flash Tutorials
hi i want vbulletin flash tutorial how to install vbulletin forum an dhow to restor the databse from php admin and how to move the serevr i am really need how to restor the backup databse to new server in flash tutorials any one know any flash tutorial help for vbulletin ?
if any one know plzz let me know i am searching ages still searching thanks
Flash Button For Vbulletin
Hi,
I have done have flash header for vbulletin forum, now how do I put this link "index.php?s=$session[sessionhash]", I tried putting in getURL but its not working properly, so can somebody tell me how to pass aURL with session like this in flash button?
Vbulletin Statistics In Flash?
Members: 24,577, Threads: 102,152, Posts: 778,519
Welcome to our newest member, webMD
does any1 know how can i do the statistics in flash?
Flash Problems With Vbulletin In IE
hello,
on my vbulletin forum (http://www.actoguitar.com/showthread.php?t=143) i've embedded swf files into some of the threads. this works fine in firefox, but in IE, i just get a flash logo that, when clicked, takes me to the macromedia site. i have tried this on several different computers and keep getting the same result.
any thoughts on what could be causing this, or how i can fix it? the link in the first sentence illustrates the problem (when viewed in IE).
Flash Button For Vbulletin Forums
i have done a flash header for my vbulltin, how do i pass this links like this "href="index.php?s=$session[sessionhash]"", i tried using getURL method but its not working, how can i solve this problem?
this is the link for the button button i have done
http://www.dubaimoon.com/vb/Untitled-1.htm
Vbulletin Login Screen Through Flash?
I want something like http://www.vbulletin.org/forum/portal.php
where people will be able to type in their username/password and it will direct to the forum that I already run. However I was wondering if I could do this through flash - not just link to the board but have them already logged in after they enter their information. Is this possible?
[MX] Flash Interaction With PHP Inside VBulletin
I need some tips on how to do this. I am new to AS but i havea good knowledge of PHP so its easy to catch on.
What i am trying to do is when a user view a certain thread which has attachment in the first post ( a music attachment ) i want to replace that attachment with a flash player.
Now Most of that is done inside the vB theme options which i can do. But how would I do this: upon a user hitting play the player gets the postid from a phpfile then executes another file which retrieves the media file and sends the info back.
I know this is probably a questions to those certain someone's that have knowledge in both AS and vB. Sorry
Anybody can give me any tips?
PS: I did search and look through some code but i was not able to come up with anything that works.
Looking For BbCode For Enabling Flash On VBulletin
i am not sure if this is the best place to post this..if it is not a forum mod can just move it as needed.. sorry ><
anyways, i am helping another site build their vBulletin
I know kirupa.com used to enable Flash footers.
there was a bbCode for it. i was wondering where i could get the code so that they too on the other site could add flash into their footers with the [swf] tags.
[swf]http://www.address.com/flash.swf[/swf]
is what i am looking to be able to do
i found this mod, but how do i install it?
http://www.phpbb.com/phpBB/viewtopic...er=asc&start=0
Vbulletin Phrases Into A Flash File?
How would i go about getting phrases from my vbulletin forum into a flash file?
Ie hello $bbuserinfo[username]
To show as hello Dave in a flash file..
Flash Calling Text From A VBulletin Page
I want to set up a flash file that will call information either from a vBulletin page, or from the database that the text is stored in.
What I am trying to do it to set up a News page on my main page. This news need to be automatically updated by a News forums in a vBulletin (mysql) page. From what I know about mysql I should be able to call information from the database that the text is stored in, and make it display in a flash file.
However I don't know the syntax, or the actionscript needed in order to do this.
I have also considered makeing this news page automatically sent each new topic to the database as well as a seperate .txt file. this way I could simply have flash call the text from that txt file, and it would always be up to date because each new topic made in the news section would send info to this text file.
any ideas on how to do this, or anyone who can help me in accomplishing either of these methods.
Flash Banner In Vbulletin Header Question/Options
Group,
I am using Vbulletin for my message board and I just added a flash animated banner to my boards header area. I have my banner working fine right now but what I am running into for problems is that with every link I click on and the page refreshes so does the banner and after awhile this is going to get really old considering there is animation and sound.
Does anyone know of a way that I can either place a cookie on my members computer that will stop the banner from repeating itself after so many views and then give them a text link to click on that will let them play the animated version of the banner? (I have a static and an animated version)
Or how about having the static version of the banner as the default view and then giving them a text link that says "Play Intro" or something like that?
Is there anyone here who can give me some good ideas on what is available that I can do with flash? Im freely open to suggestions, ideas, and code if anyone has anything.
Thanks much
Doug
Email/mailto Function.
how do i get a button to perform the mailto function so it opens up a blank email addressed to my desired email address?
Email Request Song Function
hey...hope you guys can help me here!
i'm in the process of redesigning my site about basketball and music, and in the new design i've got a 'beatbox' player thing which basically plays music tracks while viewers surf round my site...anyway, underneath this player, i want to add a small line or two, that users can write in the title of their favourite tracks and email this to me, so that i can post up these tracks in the beatbox player in the next update, etc...
what i would like your help with is i dont know how to set this up!...I want to have an input field where someone can write their name, then one to write the requested tracks..., then obviously i want to add a button to send the inputed text to my email address!...(ya get me?)
i suppose its just like adding a mailing list function, where people write in their email addresses, right?
i hope you understand what i mean!...so, do i need to use any php scripts?..('cause if i do...help!)....also, do i need to create some aort of form within flash?....please bear in mind, i need this to be small, as it wont take up hardly any space on the main screen!....
so, can anyone help...please tell me how i can do this...it may be simple, but i dont know how!!
cheers
AS3 Function To Open End Users Email App?
I am new to AS and am trying to bind my email address (buttonSymbol) to a function that will open end users default email app and populate To: with my address. Any ideas?
Simple Email Function Question?
So I created this simple function
Code:
function emailTo(address):Void {
var address:String;
getURL("mailto:"+address);
}
Now I know this works
Code:
mail_btn.onRelease = function () {
this.address = "test@domain.com";
emailTo(this.address);
}
But I want it to be in this format
Code:
mail_btn2.onRelease = emailTo("test@domain.com");
But now it opens up my email program as soon as I test the flash file, so not on click
Any ideas??
Email File Attachements Function
Hi, the idea is to have an email system which would also allow a user to attachment a file to the email , anyone got any ideas on how to do this?
thanx!
Mailto Function - Adding Text To Email
Hi all,
There was a post in here where it was explained how to use the GetURL action to open an email with the address and also the subject line filled in. mailto:info@mysite.com?Subject=whatever I think it is.
I'd like to know if you can also put some text in the body of the email.
ta
[F8] Flash 8 - Email Form: How To Get Users Specified Email In From Portion Of Email
Hey guys,
I want to add a newsletter to my new website that people can add their email addresses to. First off, I would like to have a field that the user can type his email address in, and have that field check if the email is valid (ie make sure that there is an @something.something).
Next, I would like it to send an email to my email address, with their email address in the from portion of the email (basically as if they have emailed me directly from their email). This way, it will be very easy for me to add them to my mailing list.
Thanks a ton for any help... Ive been searching for a while on how to do this, but couldn't find a way to put the users email in the from portion of the email.
Email Forms That Send Email To Other Email Addresses
hello, well, I'm not sure who to ask about this problem. The thing is I really want to make an email form that can send email to other people. I have seen email feedback forms here that send email to my address but I would really appreciate it if someone could help me make one that sends email to other addresses. I have made an email feedback form already and its at http://www.jeviwebs.com/beatles/mail.swf if you want to view it. If any of you know of any tips, please email me or respond to my post here thanks! BTW, that feedback form was based on matthew summers tutorials here
it is in the send button where I have the problem
here is the action script for the action layer:
recipient = "";
targetpage = "http://www.jeviwebs.com/beatles/ecard.htm";
stop();
this works ok since you will specify the email address of the person to send email to (thus the blank recipient variable) but here is the main problem...the actionscript for the send button....since I want to send emails to other people, I can't use my cgi bin for that.
on (release) {
getURL("http://myaddress.com/cgi-sys/mailform.cgi", "lower", "POST");
}
on (release) {
gotoAndPlay(2);
}
I know that there is a way through this...I can change and do actionscript if someone can help me out...thanks you guys
Send An Email With The Users Email To An Email Address
ok..the subject may be a little confusing but this is what i have...
an input textbox where viewers type in their email address
a submit button
i want it so that when you hit submit after typing in your email address it sends an email to your@address.com providing you with whatever the person typed in the input textbox
is this possible without using php or asp or whatever?
peace
spen
A Good Email List Program In Php And Email Form In Flash MX
Hello guys and Girls. Does anyone know how to setup a and direct me to a good 'Email List' program maybe done in PHP where essentially people come to my flash website....click a button to 'subscribe' to my newsletter' and when they do that.....they just type in their email addy and it is sent to a data base or something . I want to be able to simply type up a new newsletter and have it sent to all my email members who are in that email list in that data base?
I dont want anything more complicated than that!
I'm just paln to have a simlpe button in Flash that they click...and a small popup appears with a small form in flash for their email address and their name.
Let me know if anyone can refer me somewhere or help me out!
Thanks...
How To Email Textbox Attributes To An Email? (Basically A Form)
Hi I have a survey where you need to fill out a few answers, then it will auto email all the answers to one certain email. I'm not sure of the code I would use to email it. Im having a lot of trouble here, basically I would have it send one big string which includes the text variables like
"Name: " + name + "
" + "Age: " + age + "
" + "What Did you Think of the game?: " + feedback
etc. etc.
How would I send that one string to an email? Thanks ahead of time
HTML Formatted Email W/ Flash: Email Link Help
is there a way to put a mailto into a Flash that's embedded in an email without a browser window popping up when the user clicks on it.
The reply email works fine, but a browser window will open with the mailto in the URL and "Action Canceled" in the window. Not too pro looking.
Also, I found the Flash only plays in some email clients, when user views the email. I had to put a 'play' button on the first frame before the loader in case it doesn't play. I tried putting a "gotoAndPlay" but that didn't work either, took the loader out, even put the animation on the main timeline. Funky.
Told the client it's a bad idea, unpredictable, but they never listen to people that know what's up...
[MX04] Making An Email Button Go To Email Client
Good Day,
I have made a button on my website and would like it to do the following:
When pressed it would open the users email client and put my email address in the "TO" box so they can send an email to me.
Sounds simple but I can't work out how to make this happen.
Is there a better way to do this?
Can somebody help me with this?
Email Link On Swf Doesn't Work In Embeded Email, Why?
I am working on a swf file (sort of an ad) for email distribution purpose, the swf has an email link on it for potential clients to reply to us.
I upload the swf on our server, embed the swf into an email, and send the email off to do a test, the animation is playing fine, but there is a problem, when i click on the email link, I receive the following error message:
"Microsoft Outlook has encountered a problem and needs to close. We are sorry for the inconvenience."
And then the Outlook is closed down.
But this problem only happens on NT system, as while i click the same link from my XP, it instantly open up a new reply message fine, anyone has come across this problem and knows how to get around with it, could you help?
Many many thanks
Flash PHP Email , Hide Formatting In End-user Email?
Hello and thanks for taking the time,
I built a Flash email sender, its very simple, it just sends all the variables in the fields, no cross checks or nothing.
Problem: here's what the end-user email looks like:
Subject: Message from <TEXTFORMAT LEADING="2"><P ALIGN="LEFT"><FONT FACE="_sans" SIZE="14" COLOR="#000000" LETTERSPACING="0" KERNING="0">Smiles</FONT></P></TEXTFORMAT>
Name : <TEXTFORMAT LEADING="2"><P ALIGN="LEFT"><FONT FACE="_sans" SIZE="14" COLOR="#000000" LETTERSPACING="0" KERNING="0">Smiles</FONT></P></TEXTFORMAT>
Email:
Comments: <TEXTFORMAT LEADING="2"><P ALIGN="LEFT"><FONT FACE="_sans" SIZE="14" COLOR="#000000" LETTERSPACING="0" KERNING="0">Massage</FONT></P></TEXTFORMAT>
Here's my PHP code:
<?
$destination="jjmorga@gmail.com";
$name=$_POST['name'];
$subject=$_POST['subject'];
$mes=$_POST['message'];
$subject="Message from $name" ;
$mes="Name : $name
Email: $email
Comments: $mes
";
mail($destination,$subject,$mes); ?>
To anyone that helps me tackle this pickle I bid you a million thanks
Email Form Sends Out Email 3 Times?
I am using the Web Service Connector to take text input on a form and email it from the website to the intended party. However, it sends the email out three times and I can't find where the error is. When I test the movie I get the following error: "Binding between <unknown>.. and <unknown>.params.emailFrom: The endpoint of the binding does not exist." It shows this error twice. So I am guessing the problem lies with these errors, which would give me three emails total.
Any ideas? I can't find any other instances of the WSC on the site?
Thanks,
Jim
Email Autoresponder That Includes Recipient's Name In Email
Hi--
I am trying to set up an email autoresponder in Flash MX that includes the recipient's name in the salutation of the email.
For example, if Bob Barker is at my site, I want to give him two boxes to fill in: one for his name (Bob) and the second for his email address. When he clicks the "ok" button, an autoresponder will send him an email that begins with, "Hi, Bob--etc." THEN, once he receives the email, if he answers it, I'd like ANOTHER autoresponse addressed to "Hi, Bob," but this time with a different message.
This must be pretty easy to do, but I have NO idea how. Can anyone direct me to a source on this? Or someone with the know-how?
Many, many thanks!
Flash Email Form -- No Content In Email
I realize that a similar question has been posted many times, but since I've been searching for an answer that works specifically for me for 2 long days, I feel I need to post.
I've created a guestbook-type form in Flash and a perl script to send the contents of that form to my own email address. Things seem to be working fine except that the email I get is blank. I don't know much about scripting outside of Flash, so I'd appreciate some help. I think my perl script is the problem, but I'm copying both scripts below.
Thanks a milion.
-------------------------------------------------------------------
My SendMail.pl script:
-------------------------------------------------------------------
#!/usr/bin/perl
print "Content-type: text/html
";
$title='New Birdie Guestbook Entry';
$to='jessica@jessicaberardi.com';
$from= 'jessica@jessicaberardi.com';
$subject='New Guestbook Entry';
$name = 'name_txt';
$address = 'address_txt';
$city = 'city_txt';
open(MAIL, "|/usr/sbin/sendmail -t");
## Mail Header
print MAIL "To: $to
";
print MAIL "From: $from
";
print MAIL "Subject: $subject
";
## Mail Body
print MAIL "New Guestbook Entry
";
close(MAIL);
print "<html><head><title>$title<
/title></head>
<body>
";
## START HTML content
print "<h1>$title</h1>
";
print "<p>A message has been sent from $from to $to";
## END HTML CONTENT
print "
</body></html>";
-------------------------------------------------------------------
My Flash code:
-------------------------------------------------------------------
stop();
function sendForm () {
my_lv = new LoadVars ();
my_lv.name = _parent.name_txt.text;
my_lv.address = _parent.address_txt.text;
my_lv.city = _parent.city_txt.text;
my_lv.state = _parent.state_txt.text;
my_lv.zip = _parent.zip_txt.text;
my_lv.phone = _parent.phone_txt.text;
my_lv.email = _parent.email_txt.text;
my_lv.message = _parent.message_txt.text;
my_lv.send ("http://www.jessicaberardi.com/test/SendMail.pl", "POST");
gotoAndStop("thankyou");
}
submit_btn.onRelease = function () {
if (name_txt.text == "" || email_txt.text == "") {
status_txt.text = "Please complete the required fields.";
} else {
status_txt.text = "";
sendForm ();
}
};
Used Php Email Tutorial From Kirupa, Need Email Validate Help
Hi,
I followed Senocular's tuorial to be able to send a form thru email in flash, it worked (which is great, since i also followed about 100 far more complicated ones i found on the web wich did not work!) but i need some help including an email validation element...i think its targetting the correct textfield variables i'm having a problem with, but i took all my efforts out of the attached files and now just have the functioning regular version and am awaiting some help...i have been at this for almost a week!!!
Ive attached a zip of my .fla and the php script.
Many many many thanks in advance,
sleeepy
Email Form, Help To Make Email In Html
hi ive made a email form for my site. it works but i want the email that is sent to be in html so i change images and tables.
here is my php script
PHP Code:
<?php
$adminaddress = "gerard@organisedkaos.net";
$siteaddress ="http://www.atr-training.co.uk/";
$sitename = "ATR";
$date = date("m/d/Y H:i:s");
// List and load Flash vars - and convert into PHP vars.
$inputname=$_POST['inputname'];
$address1=$_POST['address1'];
$email=$_POST['email'];
$tele1=$_POST['tele1'];
$selection2=$_POST['selection2'];
$messagebox=$_POST['messagebox'];
if ($REMOTE_ADDR == ""){
$ip = "no ip";
} else {
$ip = getHostByAddr($REMOTE_ADDR);
}
mail($adminaddress,
"Message",
"Name: " . $inputname. "
".
"Address: " . $address1. "
".
"Telephone: " . $tele1. "
".
"email: " . $email. "
".
"how did you find us: " . $selection2. "
".
"------------------------------
".
"message: ". $messagebox. "
".
"
------------------------------
".
"Logged Info :
".
"Using:". $HTTP_USER_AGENT. "
".
"Hostname: ". $ip. "
".
"IP address: ". $REMOTE_ADDR. "
".
"Date/Time: ". $date. "
".
"FROM: ". $adminaddress, "From:". $email);
mail($email, "Auto-response from ATR", "Thankyou for contacting us. We will get back to you shortly. ",
"From: info@atr-training.co.uk".
"Reply-To: info@atr-training.co.uk".
"X-Mailer: PHP/" . phpversion());
?>
please help
gerard
Help Please Email From Page To Another Email With Url Link
This is getting really confusing for me so I need some help! The issue is that I am developming a video player that a client would like to have an ability of users to send (email) the page to a freind, with a link back to that specific page. I have experience sending mail via PHP scripts, and the mailto: commands. Does anyone have any idea how this could be accomplished? I need some direction. Thanks Devon
www.conjuringzoo.com
Email Form Not Sending Email... Please Help
Hi all,
I have a flash-based mailer form that was working at one point, but now it won't send email to the specified account for some reason. The host says that it needs to be sent FROM a valid email address on their server, but I can't figure out where in the code I need to make that work...
Here's the code on my submit button:
Code:
on(release){
formValidation();
if(validForm == true){
form.loadVariables("../email.php", "POST");
}
}
Here's the code in my PHP file:
Code:
<?php
$sendTo = "mail@kavehmedia.com";
$subject = $_POST["subjectTxt"];
$headers = "From: " . $_POST["nameTxt"];
$headers .= "<" . $_POST["emailAddressTxt"] . ">
";
$headers .= "Reply-To: " . $_POST["emailAddressTxt"];
$message = $_POST["messageTxt"];
mail($sendTo, $subject, $message, $headers);
?>
What am I doing wrong? Since it was working when I first made it, I assume the host changed something on their end, but they're being very unhelpful...
Email Form Need To Add Telephone # To Email
Hi,
I am using this email form and it works just fine, but I am trying to figure out how to add additional input feilds that show up in the email body. For example, when you receive the email the body of the email would look like this:
Name:
E-mail:
Telephone:
Feedback:
Below is the AS and the PHP code. Attached is the FLA. Any help would be appreciated
Code:
/*
AUTHOR : Z Syed
CREATING FEEDBACK FORM IN FLASH USING PHP
*/
/*
create the LoadVars objects. One for sending information to the php file and one for recieving information.
Although this can be done with one loadvars object, it makes for cleaner code to use two
*/
var sendData_lv:LoadVars = new LoadVars();
var receiveData_lv:LoadVars = new LoadVars();
var formValidated:Boolean;
var errorMessages:Array = new Array();
receiveData_lv.onLoad = function():Void{
trace(this.sent);
if(this.sent == "OK"){
message0_txt.text = "Thank you for your feedback";
}else{
message0_txt.text = this.sent;
}
}
submit_btn.onRelease = function() {
//this clears the error text field if they have been populate previously
clearTextFields();
errorMessages.length = 0; //empty the array so next time the submit button is clicked the array is not already populated
formValidated = checkForm();
if (formValidated) {
//the form is valid and so now we can send details to our PHP file
//populate LoadVars object with the field values
sendData_lv.name = name_txt.text;
sendData_lv.email = email_txt.text;
sendData_lv.feedback = feedback_txt.text;
//trace(sendData_lv.email);
//trace("valid");
sendData_lv.sendAndLoad("email.php?ck="+new Date().getTime(), receiveData_lv);
} else {
//populate textfields with the error messages
for (var i = 0; i<errorMessages.length; i++) {
_root["message"+i+"_txt"].text = errorMessages[i];
trace(errorMessages[i]);
}
}
};
function checkForm():Boolean {
//check whether the name field is empty
if (name_txt.text == "") {
errorMessages.push("Please enter your name.");
}
if (email_txt.text == "") {
errorMessages.push("Please enter your email address.");
} else if (email_txt.text.indexOf("@") == -1 || email_txt.text.indexOf(".") == -1) {
errorMessages.push("Please enter a valid email address.");
}
if (feedback_txt.text == "") {
errorMessages.push("Please enter some feedback");
}
//if at this point the array is empty i.e has length 0, then this in effect means the form has passed all checks
if (errorMessages.length == 0) {
return true;
} else {
return false;
}
}
function clearTextFields():Void {
for (var i = 0; i<errorMessages.length; i++) {
_root["message"+i+"_txt"].text = "";
;
}
}
}
PHP Code:
<?php$name = $_POST['name'];$email = $_POST['email'];$feedback = $_POST['feedback'];$subject = 'feedback from your website';$headers = "From: $name <$email>
";$headers .= "Reply-To: $name <$email>
";//ENTER YOUR EMAIL ADDRESS HERE$to = 'email@emailaddress.com';//---------------------------$success = mail($to, $subject, $feedback, $headers);if($success){echo '&sent=OK';}else{echo '&sent=Error';}?>
Email Variables Through Email
I have what might seem like a simple question. However, I can't find the answer. I created a multiple choice test with 5 questions. Each answer is stored as a variable. q1, q2, q3, q4, q5. On the last screen I created a name text field for them to type their name. Now I want to create a submit button that will email me the value of all of the variables separately.
I can't figure out how to format the getURL message to email each variable to me. Here is what I've tried and I get "undefined" in my email body:
on (click) {
getURL("mailto:dsmith@help.com?subject=AEIOUsales" + "&body=" +employee +q1+q2+q3);
}
Please help me with my simple question...Show me an example of how this script should be formatted. Thanks in advance!
Function In A Function In A Function, A Scope Problem
Is this basic or what.. I have a nested functions, and I'm having a hell of a time getting all my variable through.
ActionScript Code:
var canyouseemee;
public function move()
{
for(var i:Number = 0; i < blah; i++)
{
zing, and then zang
if (zing==0)
{
guts
}
if (zang ==0)
{
something else
}
}
}
Now, I had always thought that since var canyouseemee is declared at the topmost layer, that I'd be able to see it from anywhere below it. Well, it turns out that I can only see it from within the move()function, and not anything below it. is this normal? I thought you couldn't see a local variable of a lower (deeper) function, but could see higher (shallower) variables...
Call A Function In A Duplicated Movie Clip Form Another Function : (
i have a movie clip on my root name "pl".
on command, it duplicates with instance name as "y0","y1", etc.
here is the method :
function callPL(transmit,receive,addy,level) {
var newName = "y"+_root.x;
duplicateMovieClip("_root.pl",newName,101);
_root[newName]._x = 400;
_root[newName]._y = 400;
_root.[newName].start(transmit,receive,addy,level); //look here
}
there i attempt to call a function of the newly duplicated clip call "start()".
Start() function is written on the first frame of the movieclip like this :
function start(a,b,address,level) {
a.sendAndLoad(address,b,"Post");
this.path = b;
b.onLoad=function(success) {
gotoAndPlay("start");
}
}
however it seems like the function callPL() could not invoke function start() of the new movieClip.I have no idea how is it so.
Even when i trigger it with a onLoad handler it still doesnt work
pls shed some light.
Calling Constructor In Condition: A Function Call On A Non-function Was Attempted.
Hi guys,
Please help me somebody with this cos I have really no idea. I have made a simply condition calling a constructor of a class. Today I had to add an "else if", what caused the compilator to show me "A function call on a non-function was attempted."...
ActionScript Code:
function loadIt() { if (var1 == "1") { var a:SomeClass = new SomeClass(true); } else if(var2 == "1"){ var a:SomeClass = new SomeClass(false); //<- if this is not here, everything works fine } else { var b:SomeOtherClass = new SomeOtherClass(); b.init(); }}
Any ideas? Thanks for any help!
Poco
Filling Function Arguments With Array Items, Function.call()
HI!
I have this code but I cannot work out how to fill in function parameters based on an array and it's length, see line 7
ActionScript Code:
import com.robertpenner.easing.Cubic;MovieClip.prototype.framesTimeout = function(func:Function, frames:Number, args:Array) { var t:Number = 0; var mc:MovieClip = this.createEmptyMovieClip(String(new Date().getTime()), this.getNextHighestDepth()); mc.onEnterFrame = function() { if (t == frames) { func.call(this._parent,args); delete this.onEnterFrame; this.removeMovieClip(); } else { t++; } };};MovieClip.prototype.movex = function(x:Number, frames:Number) { trace(x+" "+frames) delete this.movex.onEnterFrame; this.movex.removeMovieClip(); if (!frames) { frames = 20; } var t:Number = 0; var sx:Number = this._x; var ax:Number = x-this._x; var mc:MovieClip = this.createEmptyMovieClip("movex", this.getNextHighestDepth()); mc.onEnterFrame = function() { if (t == frames) { delete this.onEnterFrame; this.removeMovieClip(); } else { t++; this._parent._x = Cubic.easeOut(t, sx, ax, frames); } };};MovieClip.prototype.otherfunction = function(param1, param2, param3, param4){ trace(param1+" "+param2+" "+param3+" "+param4)}mc.framesTimeout(movex, 50, [100, 50]) mc.framesTimeout(otherfunction, 200, ["asd", 1, 2, 55])
Is it possible to call a function and fill in the parameters based on an array and it's lenth?
My Function Isn't Functioning/Actionscript To Call A Function Flash MX 2004
Hello,
Well in theory I know how to create a function but for some reason I am unable to call it.
Can someone take a look at it and tell me what went wrong. Basically when I go to "a certain page" I want to click on a button and have it go to another page known as "pics" it then will load a jpeg there known as jpeg loader. Now I know it works properly without a functin, but because I am lazy I do not want to write more code than I have to, there are like 300 differnt jpegs I have to load. Thus I need to create a function.
here is my AS
ActionScript Code:
//this is on frame one of my root timeline
//I am trying to call the function "display" on release of my button
omnihotelButton.onRelease = display ("J010 Omni Hotel.jpg");
//this is my function that I set up it is also on my root, but on a different frame
//this function is named display and it goes to the "pics" page and stops
where it then loads a jpeg which is et up as my variable.
//the xscale and the yscale are just setting up my size of the jpeg.
function display(jpeg){
_root.gotoAndStop("pics");
jpegLoad_mc.loadMovie(jpeg);
jpegLoad_mc._xscale=90;
jpegLoad_mc._yscale=90;
}
|