Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    Flash








Form Doesn't Work When Loaded Onto Server


I have a pretty simple form with only 3 variables and a dynamic text field to display the results sent back from the server.

It works fine when I test the movie from flash but when I load the swf file onto my server, it doesn't work. It looks as if the variables arent being sent. Anybody help?




KirupaForum > Flash > Flash 8 (and earlier) > Flash MX
Posted on: 09-03-2003, 08:43 PM


View Complete Forum Thread with Replies

Sponsored Links:

Form Loaded Into Main Movie Doesn't Work
Hi

I have created a main swf file which holds a movie container which other swf's load into. One of the sections has a form in it. When I preview this section on its own the form works, but when I preview through the main swf file (or online) the text fields cannot be typed into. How can I fix this? Files can be downloaded from;
www.fullfatdesigns.co.uk/files.zip

or you can view the site as it is online
www.fullfatdesigns.co.uk

Thanks
Wayne

View Replies !    View Related
A Correct SWF Doesn't Work On The Server. Why?
Hey.

Do you have any idea why a correct swf that works alright on the hard drive doesn't when uploaded to a server?
The file isn't damaged in transfer, for it works fine again when downloaded.
The browser should make no difference if the file's up there or down here, shouldn't it?

The reason fails my feeble brain.
Please bring in some light, guys.

weirdoldman

View Replies !    View Related
SetInterval Doesn´t Work At Server
hello, I am making a scroll that depends on the "drag" position (drag is a movieclip) and, I did a setInterval to control the drag position in event on roll over....every things work ´perfectly at home, but when I put it on a server, the set interval is more slow, the interval that I am using is 1 milliseconds, but at server it seems 10 milliseconds....

what could it be??

this is the link to my page

www.chan.art.br

to see the effect, click on "Fotos" and the pass the mouse over the fotos below....it should be faster then it is in fact

thank you all

Chan

View Replies !    View Related
SetInterval Doesn´t Work At Server
hello, I am making a scroll that depends on the "drag" position (drag is a movieclip) and, I did a setInterval to control the drag position in event on roll over....every things work ´perfectly at home, but when I put it on a server, the set interval is more slow, the interval that I am using is 1 milliseconds, but at server it seems 10 milliseconds....

what could it be??

this is the link to my page

www.chan.art.br

to see the effect, click on "Fotos" and the pass the mouse over the fotos below....it should be faster then it is in fact

thank you all

Chan

View Replies !    View Related
Flash Email Form (but Server Doesn't Support Php)...
Hello, first of all, I would like to say that I would REALLY appreciate it if someone please helped me with this topic!!! Thanks!

Ok, I am currently building a Flash site and was wanting to create an email form for people to type in a message with a subject and all and when the send button was clicked it would send the info through a php file and to my email. Well, I checked with my host server and unfortunately, it doesn't support php. So, my question is: Is there another way to do this? I don't want it to go through like a computer client but where anyone can do it! Thanks!

View Replies !    View Related
Actionscript Doesn't Work On Hosting Server?
It works on my local PC but doesn't work on hosting server.why?

The code is very basic.

I want to pass data to ASP page and also get back data by querystring.

I just use it with a text fie for simple.it works on my local machine but it doesn't work on server.why???

Please help me.

Thanks

Mark

1. Fla fie (actionscript)

submit_btn.onRelease=function(){
//
var var_name:String=name_txt.text;
var var_email:String=email_txt.text;
//
var loader:LoadVars = new LoadVars();
var receiver:LoadVars = new LoadVars();
//
loader.myname=var_name;
loader.myemail=var_email;
//
loader.sendAndLoad("email.txt",receiver,"POST");
//
receiver.onLoad = function() {
//
response_txt.text=receiver.myresult;
//

}

}

2. email.txt

myresult=good

View Replies !    View Related
Flash Doesn't Work When Grabbed From Server
Hi!

I have a flash that works fine on my computer but not from a server. It's a schedule for my favorite hockey team. The flash worked properly last year on geocities server. The only thing I changed is the xml file that reads the info for the games. I did add about 7 more images of other teams. I didn't touch the code.

I've tried the flash from both my comcast space and anglefire space. I also used IE and firefox. Same thing happens in all cases. The schedule and month appear but the team logos don't appear at the top nor do the stats at the bottom appear unless the page is refreshed. I can move from month to month forward and back as should happen. I can click the days on the calender a game is to take place and the correct info, ie team and time, appears. But still no team logos at the top or the stats at the bottom unless the page is reloaded.

Now what's weird is that I took the swf, it's html page, and the xml file from last year and I get the same thing happening even tho it worked fine last year on geocities. So I checked and updated my flash plugins for IE and fire fox and same-o.

Now these logos are in a mc and the playhead is controlled by the info from the xml data. Team names are read from an entry in the xml file and when a date is pushed, the opponent's team name is read and the playhead goes to frame labled with that team name.

What baffles me even more is that the stats on the bottom have headings like Wins,losses, ties ect. The headings don't show up and these are static text written on the background. The info is dynamic text and is written after the number of games played, wins, loses, ect is calculated when the flash is started.

Any ideas?

http://home.comcast.net/~gotbootz/re...wschedule.html

Thanks!
Whammer

Here's how the flash works. There are 2 frames on the main stage. The first frame is just used to read the xml file and send the playhead to the 2nd frame and stop.

In the 2nd frame are the images used to make the background, the mc's are placed, and and all the static and dynamic text. The action script in this frame only changes the game info when a day is pressed. Info includes opponent, team logos, time and after a game the score.

There's a movie clip for the team logos at the top. It's never made visible. Below this is a mc that draws the squares for a calender that shows game days by grey, red, or white squares, depending if a game is played, or home or away.

This calender movie clip has most of the action scripts. It sets all the variables and retrieves the date from a person's computer. Then a function is called that determines the next game based on the computer date. This date is highlighted and the logo mc is sent to the proper opponent and made visible. Then if first run, wins and loses are tallied along with the goals for and against. The points are then calculared and written into dynamic text fields.

Above the calender and below game info is the month and 2 bittons to scroll from month to month. The month is a dynamic text field and doesn't get written to. the 2 buttons to scroll the months work. And the proper game dates and game nifo is correct.

The problem is the team logos mc doesn't become visible, the month isn't written, and the stats along with the stat headings don't get written unless the page is reloaded.

Oh yeah there is a preloader. I don't know how it works since I have cable. But I did remove the preloader scene and same=o.

Thanks!
Whammer

View Replies !    View Related
LoadVars() Doesn't Work After Swf Is Uploaded To Server
I'm certainly no actionscript expert, and I need help figuring this one out.

I have loadVars() working on my local system, loading an external html file, but after I upload my swf and html file to my host... it no longer loads the html file. Is there something I'm missing?

Thanks!

Here's my AS:

ActionScript Code:
source = "about.htm";
about_txt.html = true;
myData = new LoadVars();
myData.load(source);
myData.onLoad = function(){
   about_txt.htmltext = this.content;
}

stop();
the swf and htm file are in the same directory

View Replies !    View Related
Flash Player 9 Doesn't Work On My Server
We host several flash ads on our servers that affiliate websites link to remotely. Browsers with Flash 9 can view the banners but when clicked, nothing happens (they're suppossed to link to our homepage). The banners work correctly in browsers running Flash 8 and below. Also, the banners work in Flash 9 when I host them on a different server.

So this all leads me to think that the problem is on the server end, but our server guys don't know what the problem is. Any suggestions?

View Replies !    View Related
Mail Form Movie Doesn't Communicate With A File Other Server
I got the mail form movie from this site that communicates with a .php file in order to send all the info the user has input to an email address.

Everything works fine when both files are in the same server.

The problem is that my client doesn't allow .php on his server so the best choice is to have the mail form movie on my clients server and the .php file on a server that allows php scripting.

I did practise that and changed the flash file to point to the new address where the .php file lies but with no success.

Is there an issue with flash files not being able to communicate with files on other servers. Is there a solution?

thanx in advance

View Replies !    View Related
[CS3][AS2] Swf File Doesn't Start When Loaded From The Server
Hi, I'm newbie so please excuse me if my question is more than stupid:

I created new flash file in CS3 with ActionScript 2 and started my presentation at the frame 10 (leaving some space at the beginning for the future use). To prevent delayed presentation start (to skip those 9 empty frames at the beginning) a put this line on the frame 1:

gotoAndPlay(10);

Running presentation in authoring environment ( CTRL + Enter ) works as expected. Then I have published the presentation ( HTML + SWF file) - running HTML file from the local disk works as expected as well.

But the problem started when I uploaded all necessary files - without ANY editing - (html, swf and javascript) to the server and tried to run from the server - flash loaded but nothing displayed.

I did right-click on the space where presentation was supposed to be displayed - and choose "Play" from the menu - it run all my slides and after that started over with the presentation.

I'm confused - is it some kind of security mechanism or .. ? Removing the ActionScript code from frame1 helped - but that way I'm not preventing delay (playing 9 empty frames at the beginning) - which isn't that bad as it is only 9 frames - but I would like to solve that anyway.

THANK YOU!

View Replies !    View Related
LoadMovie Doesn't Work On Server, Works Locally?
so i've developed this portfolio thingy for our company site. i'm using flash MX, but publishing in flash 5, if that matters.
here's the URL:

http://www.nycd.com/test/portfolio/p...io_update.html

the way it works: when you click on one of the thumbnails, it loads the appropriate SWF into a blank movie clip. pretty straightforward.
it works fine locally (running off my hard drive), but when uploaded to the server, it behaves strangely. the movieclips load, but skip the preloader that i've put in them, and just display nothing. however, i know they're loading, because if you wait a few seconds and click on them again, they work... i'm at a loss. any help if appreciated it. if you want to look at the FLAs, they're here:

http://www.nycd.com/test/portfolio/portfolio_update.fla
(the main portfolio piece)
http://www.nycd.com/test/portfolio/ml.fla
(one of the SWFs that loads in)

View Replies !    View Related
Scroll Pane Component Doesn't Work On Server
I have a movie which loads up a lot of other movies, pulling much of it out of xml files. Works lovely on my computer. Problem occurs when I upload the site to my server. Suddenly one of these parts, a Flash component called 'cspThumbnails' which basically loads a group of thumbnails, doesn't load the thumbnail .jpgs. The contentPath of cspThumbnails- 'mcEmptyMC2'- does load, I can see it.
I've checked the paths to the .jpgs numerous times, and have other pictures that are loading fine.

The actual code where this stuff occurs looks like this:

code:
this.cspThumbnails.contentPath = "mcEmptyMC2";
for(i=0; i<=_root.aContentArray.length-1; i++) {
this.cspThumbnails.content.createEmptyMovieClip("m cHolder"+i, cspThumbnails.content.getNextHighestDepth());
this.cspThumbnails.content["mcHolder"+i].createEmptyMoveiClip("mcJPEG", 1);
this.cspThumbnails.content["mcHolder"+i].mcJPEG.loadMovie(_root.aContentArray[i][1]);
this.cspThumbnails.content["mcHolder"+i].index = i;
this.cspThumbnails.content["mcHolder"+i].onRelease = function() {
loadFullImage(this.index);
setCaptionText(this.index);
}
}


I'm stumped, man. Like I say, the line that defines the contentPath works, because "mcEmptyMC2" shows up-- it isn't actually empty. On my computer locally all of this works just fine. Uploaded to the server however and the thumbnail .jpgs don't show up.
Now the loadMovie command calls a path stored in '_root.aContentArray[i][1]'-- but thos paths work fine in other parts of the movie, so I'm thinking there must be something about the Flash ScrollPane component going on.
Argh!

thanks,
Richard

View Replies !    View Related
Access Plug-in Doesn't Work In Development Server
I have downloaded the Linux development version of the flash media server version 3.0. Video streaming works fine.

I want to write a C/C++ access plugin to control accessing the video streams. I changed adaptor.cpp that comes in the samples directory. I modified the onAccess method to always execute pAccess->reject(). After compiling libconnect.so, I put this file in /opt/adobe/fms/modules/access. I stop and restart the server.

I would expect I cannot stream the videos. However, I can still stream them with the access plugin enabled. There is no error in the log.

What have I done wrong?

View Replies !    View Related
Form Doesn't Work
ignore this
just sorted it out

View Replies !    View Related
HELP...My Form Doesn't Work Online....
Hi guys:

I have a little dilemma....! I have built a form in flash that uses an ASP file to send the form results to an email. Now, it works perfectly locally but once I post it online, I get nothing, no results, no email. Does anyone know what the problem could be? I worked sooooooooo hard on the form and I would be utterly indebted to anyone out there who can help me!

Thanks a bunch, I owe you in advance.

View Replies !    View Related
HELP My PHP Mail Form Doesn't Work...
i have a problem... i want to create an email form in Flash MX. I've downloaded a FLA from FlashKit, but when i want to test the form, it doesn't work...

I think is because he can't connect with a mail server.

The test URL is:
http://www.surfdude.org/test/form/contact2.html

How can I let it work?!?!!?

greetz...

View Replies !    View Related
Button On Form Doesn't Work
Hey guys,

I've created a form using one of the tutorials to send an enquiry email to myself, I've done it as the tutorial says but when I click my send button it just comes up with the 'sending...' in the status box but doesnt send an email. Aint sure why this is, can anyone give me any suggestions?

The Tutorial is http://www.flashkit.com/tutorials/Dy...-658/index.php.

If its any help I've done the form as a movie clip.

Thanks

Kev

View Replies !    View Related
Mail/Php Form Doesn't Work
My form doesn't work.

Following is on my timeline:

ActionScript Code:
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 = "Thanks for your mail.";
    }else{
     message0_txt.text = this.sent;
        }
}

send_btn.onRelease = function() {
    clearTextFields();
    errorMessages.length = 0;
    formValidated = checkForm();
    if (formValidated) {
    sendData_lv.navn = navn_txt.text;
    sendData_lv.email = email_txt.text;
    sendData_lv.tlf = tlf_txt.text;
    //trace(sendData_lv.email);
    //trace("valid");
        sendData_lv.sendAndLoad("email.php?ck="+new Date().getTime(), receiveData_lv);
    } else {
        for (var i = 0; i<errorMessages.length; i++) {
             _root["message"+i+"_txt"].text = errorMessages[i];
              trace(errorMessages[i]);
        }
    }
};

function checkForm():Boolean {
    if (navn_txt.text == "") {
        errorMessages.push("Indtast venligst dit navn.");
    }
    if (email_txt.text == "") {
        errorMessages.push("Indtast venligst din email.");
    } else if (email_txt.text.indexOf("@") == -1 || email_txt.text.indexOf(".") == -1) {
        errorMessages.push("Indtast en gyldig email.");
    }
    if (tlf_txt.text == "") {
        errorMessages.push("Indtast venligst dit tlf.nr.");
    }
    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 = "";
;
    }
}
AND, following in php-file:

PHP Code:



<?php
$name = $_POST['navn'];
$email = $_POST['email'];
$tlf = $_POST['tlf'];
$subject = 'Partner site feedback';
$headers = "From: $name <$email>
";
$headers .= "Reply-To: $name <$email>
";

$to = 'mail@mail.dk';

$success = mail($to, $subject, $tlf, $headers);
if($success){
echo '&sent=OK';
}else{
echo '&sent=Error';
}
?>




The problem is, basically, that nothing works. Can anybody tell me why? (I did check the send button's instance name.)

View Replies !    View Related
Form Doesn't Work Under Masking?
Hello,
I am using flash 8 pro.
I have a problem with my Form mail. The form (formail.pl type) is working ok but when I insert it in my flash movie and I make a mask on it, just to hide it for some animation, it doesn' t work anymore . When I publish it I see only the graphic elements of the form without the input text boxes!
When I remove the mask, everything is again visible. I tried to put some other forms downloaded form internet but always the same problem.
Is that a bug from Flash? Any help?

thanks

sepas

View Replies !    View Related
Email Form Using PHP Doesn't Work
ok, so I followed the tutorial by senocular here on kirupa, but it doesn't send the email right...
This is my PHP-script:


PHP Code:



<?php$sendTo = "danulf@gmail.com";$subject = "My Flash site reply";$headers = "From: " . $_POST["firstName"] ." ". $_POST["lastname"] . "<" . $_POST["email"] .">
";$headers .= "Reply-To: " . $_POST["email"] . "
";$headers .= "Return-path: " . $_POST["email"];$message = $_POST["message"];mail($sendTo, $subject, $message, $headers);?>




and the swf, php and fla file is here: http://danvir.coconia.net/

I don't know the first thing about PHP, and I dont' really get why there's firstname and lastname, but I hope that you can help me sort that out aswell! I don't think that those are needed, but I don't know how much to delete from it...

EDIT: the .fla can't be downloaded from there, so it's here: www.freewebs.com/danulf/emailform.fla

View Replies !    View Related
Php & Flash Form Doesn't Work
I'm using kirupa's php & flash form on a web page and it doesn't work. I think it's because all the sections are in external files, including the contact one. Can somebody help me pleaaase?????
Here is the site:
http://www.bausa.cl/home.html
thanx!

the_light

View Replies !    View Related
Followed Tutorial, But Form Doesn't Work
I followed a tutorial step-by-step in order to set up a form on my Flash site. But, it's just not doing the things the code tells it to. I have a button (and actionscipt to go with it) that clears the form, but when you push it, nothing happens. I have all this code that tells a message box to pop up whenever someone doesn't fill in a certain form, but the only box that will pop up is the one that is for when someone fills out everything correctly (even if they don't fill in anything at all). On top of all that, the information that should be sent to me in the form, never gets to me.

I don't have any idea what is wrong. When I was following the tutorial everything seemed to make sense to me. Now, I'm totally lost.


Here's the file, not stripped down but in a zip file. I didn't strip this one down because of the possibility that the problem has something to do with the way everything is put together. The form is in a movie clip, called mcTopNav, on the "phone" frame, inside a movie clip called mcPhoneContact.

Here's the file, stripped down to just the form in a zip file for easy downloading.


Oh, the files were created in MX 2004, but saved as MX, because the tutorial only worked with MX.

View Replies !    View Related
E-mail Form - Script Doesn't Seem To Work
Hi there!

This is probably a stupid (and hopefully easy) question. I am an intermediate Flash user, but I know nothing about PHP... and I never had to create an e-mail form before!

Here's the deal: I have a SWF file that is my main web site, and I have another SWF file that is just for sending e-mail, with a regular Flash-based form. When you access the site and click the "e-mail" link, it loads the other SWF into a target MovieClip, called "Email". So far, so good.

The problem comes to when you hit the "send" button. It sends nothing!

I'm using a PHP script, which was made by a friend of mine, who is hosting it. I can't understand it, but he tested it and said it's working. Here's the code:

PHP Code:



<?php
$dest = 'e-mail address removed for privacy reasons'; // put your email here
$subject = 'User submitted form';
$from = 'e-mail address removed for privacy reasons';

// put your required fields here like: '[field]' => '[type]'
// supported types are:
// 'num' (convert to number and check if identical to original)
// 'email' (check if it's 'something@something.something')
// 'text' or anything else (check if not void)
$req = array('address' => 'email', 'message' => 'text');

function check($field, $value) {
global $req;
    if (isset($req[$field])) switch ($req[$field]) {
        case 'email':
            if (preg_match('/^www./', $value)) return false;
            return preg_match('/^[a-z0-9_]([a-z0-9._-]*[a-z0-9]_)*@([a-z0-9]+[a-z0-9.-])*[a-z0-9].[a-z]{2,}$/', $value);
        case 'num':
            return (strval(intval($value))==$value);
        default:
            return $value;
    }
    return true;
}

foreach ($_POST as $field => $value) {
    if (check($field, $value)) {
        unset($req[$field]);
        $body .= "$field: $value
";
    }
}

if (count($req)) {
    echo 'The following required fields didn't match:<br>';
    foreach ($req as $field => $type) {
        echo "$field<br>";
    }
} else {
    mail($dest, $subject, $body, "From: $from");
    echo 'Email sent. Have a nice day.';
}
?>




My form has only three simple fields: name (an optional field for the user's name), address (a required and validated field where the user fills in with his e-mail address) and message (the actual body of the e-mail).

All three input fields are correclty set in Flash with the right vars: The input field for the name with the name var, the input field for the address with the address var and the input field for the message with the message var.

[to be continued...]

View Replies !    View Related
[CS3] Contact Form Doesn't Work When Exported
Hey guys,

I'm working on a contact form using flash and PHP based on a tutorial I found. I've got it working offline, but when I convert it to a swf it won't send emails anymore. I've spent a long time looking online, but can't find a solution. Any help would be appreciated!

here's the zip files

Thanks!

View Replies !    View Related
PHP Contact Form From Flash - Used To Work And Now Doesn't
I have a PHP contact form that used to work but now is giving me nothign but problems.

mail.php

PHP Code:



<?php
$name = $_POST['name'];
$email = $_POST['email'];
$message = $_POST['message'];
$subject = $_POST['subject'];

$to="sintax321@hotmail.com";

$msg="$name

";
$msg.="$email

";
$msg.="$message

";

echo "<pre>"; print_r($_POST); echo "</pre>";

mail($to, $subject, $msg, "From: Contact
Reply-To: $email
X-main: PHP/");
?>




Flash send function from contact.swf

ActionScript Code:
on (release) {    if (subject eq "" or message eq "" or email eq "" or name eq "") {        stop();    } else {        lineAdapt();        loadVariablesNum("mail.php", 0, "POST");        sent.gotoAndPlay(2);        subject="";         message="";         name="";        email="";    }}


I put mail.php in both the root folder and the folder contact.swf so it should find it in one of the locations but it fails to work. Any one got any ideas?

View Replies !    View Related
PHP Contact Form From Flash - Used To Work And Now Doesn't
I have a PHP contact form that used to work but now is giving me nothign but problems.

mail.php

PHP Code:



<?php
$name = $_POST['name'];
$email = $_POST['email'];
$message = $_POST['message'];
$subject = $_POST['subject'];

$to="sintax321@hotmail.com";

$msg="$name

";
$msg.="$email

";
$msg.="$message

";

echo "<pre>"; print_r($_POST); echo "</pre>";

mail($to, $subject, $msg, "From: Contact
Reply-To: $email
X-main: PHP/");
?>




Flash send function from contact.swf

ActionScript Code:
on (release) {    if (subject eq "" or message eq "" or email eq "" or name eq "") {        stop();    } else {        lineAdapt();        loadVariablesNum("mail.php", 0, "POST");        sent.gotoAndPlay(2);        subject="";         message="";         name="";        email="";    }}


I put mail.php in both the root folder and the folder contact.swf so it should find it in one of the locations but it fails to work. Any one got any ideas?

View Replies !    View Related
Sending Form From Swf, Doesnt Work On Server, Only Desktop
Hello All,
I have a form in my flash movie, that sends the form data to an external ASP file, that in turn sends me an email with the information.

The wierd part is this, If I run the SWF file on my desktop with an internet connection open, it works, as soon as I upload it to my server, it doesnt work. I have tried 2 different servers, with the same results

Can anyone help please

Code:
on (release) {
if (!email.length || email.indexOf("@") == -1 || email.indexOf(".") == -1) {
EmailStatus = "Please enter a valid E-mail address";
}
else if (!name.length) {
EmailStatus = "Please enter your name";
}
else {
loadVariablesNum("http://www.disneypromotions.com/sendmailJB.asp", "0", "POST");
EmailStatus = "Sending... one Moment ..";
gotoAndPlay(2);
}
}

View Replies !    View Related
Simple Email Form Flash & PHP Doesn't Work
Hey, Im trying to create a simple email form and it wont work!
Im using the flash -> PHP system.
The PHP is fine as Ive tested it seperately and it works but through flash nothing happens.

AS code - on a button:

Code:
on(release) {
sender = new LoadVars();
receiver = new LoadVars();
sender.n = "vijizzle";
sender.e = "test";
sender.me = "test";
sender.num = "3535";
sender.sendAndLoad("email.php", receiver, "POST");
}
PHP Code:

PHP Code:



<?php

$msg =    "Name: ".trim($_POST['n'])."
".
    "Email: ".trim($_POST['e'])."
".
    "Number: ".trim($_POST['num'])."
".
    "Message: ".trim($_POST['me']);

mail("someone@emailaddress.com","Query" , $msg);

?>




Any help appreciated - thanks.

View Replies !    View Related
Scrolled Text Form With Mask Doesn't Seems To Work
Hi everybody,
I wonder if you could help me with this:
I have a MC with a text form with several input and combo boxes (flash <=> php) it as a scroll and it works fine, except when I put the MC under a mask.
It still scroll's but nothing shows inside the input boxes when I type on it.
Is this "normal" procedure for flash or It's a bug of some kind?

Thank's

View Replies !    View Related
Why The Heck Doesn't This Work? (PHP / Flash Mail Form.)
I'm trying to make a really basic contact form using Flash and PHP. I've done this many times before, but this particular one doesn't work at all.

I'm starting to rip my hair out.

Here is my PHP file, which is in the same directory as the .SWF file:


PHP Code:



<?php$sendTo = "ryanragona@gmail.com";$subject = "Ragonadesign.com Contact Form";$headers = "From: " . $_POST["name"];$headers .= "<" . $_POST["email"] . ">
";$headers .= "Reply-To: " . $_POST["email"] . "
";$headers .= "Return-Path: " . $_POST["email"];$message = $_POST["message"];mail($sendTo, $subject, $message, $headers);?>




I've attached my .FLA file. It behaves just fine locally (doesn't send me an email, of course, but it does go to the 'thank you' screen and appear to work) but when I put it on my server it doesn't do a damned thing.

http://ragonadesign.com/contact.html

I'm going nuts. I have no idea what I botched with this one. Any ideas?

Thanks.

See lower post for .FLA file attachment.

View Replies !    View Related
Scrolled Text Form With Mask Doesn't Seems To Work
Hi everybody,
I wonder if you could help me with this:
I have a MC with a text form with several input and combo boxes (flash <=> php) it as a scroll and it works fine, except when I put the MC under a mask.
It still scroll's but nothing shows inside the input boxes when I type on it.
Is this "normal" procedure for flash or It's a bug of some kind?

Thank's

View Replies !    View Related
LoadVariablesNum Is Server Sensitive? My Email Form Wont Work
Hello,
I use an email form i got from a tutorial here, i got it to work once with loadVariablesNum, but only on one server.. 2 other servers dont allow it to happen, right now it is using a ASP backend..

I tested the code with a getURL and it worked, any ideas how to make this work, this is my code on my form button


Code:
on (release) {
if (!email.length || email.indexOf("@") == -1 || email.indexOf(".") == -1) {
EmailStatus = "Please enter a valid E-mail address";
}
else if (!name.length) {
EmailStatus = "Please enter your name";
}
else {
loadVariablesNum("http://www.disneypromotions.com/sendmailJB.asp", "0", "POST");
EmailStatus = "Sending... one Moment ..";
gotoAndPlay(2);
}
}

View Replies !    View Related
Hittest Doesn't Work In Loaded Mcs?
I've tried _lockroot, as well as using _root, this, setting a global variable to 'this' and using it, but nothing seems to work!?

I set up the attached files (testDrawPolyShell.swf loads drawPoly.swf), so that the first mouseClick uses attachMovie to add the poly and the second clip does a hitTest between the poly and the cursor position. It works fine stand-alone, but the hitTest doesn't work in the loaded movie...here's the code that's in drawPoly.swf:


Code:
this._lockroot=true;
this.createEmptyMovieClip("draw_area", 5);
this.onMouseDown = function() {
poly = new Object();
poly.x = _xmouse;
poly.y = _ymouse;
draw();
};
function draw() {
if (this["draw_area"].start_point.hitTest(_root._xmouse, _root._ymouse, false)) {
removeMovieClip(this["draw_area"].start_point);
} else {
temp = this["draw_area"].attachMovie("start_point", "start_point", 2);
temp._x = poly.x;
temp._y = poly.y;
}
}


Any ideas??

Thanks!!!

View Replies !    View Related
HitTest Doesn't Work In Loaded Mcs?
I've tried _lockroot, as well as using _root, this, setting a global variable to 'this' and using it, but nothing seems to work!?

I set up the attached files (testDrawPolyShell.swf loads drawPoly.swf), so that the first mouseClick uses attachMovie to add the poly and the second clip does a hitTest between the poly and the cursor position. It works fine stand-alone, but the hitTest doesn't work in the loaded movie...here's the code that's in drawPoly.swf:


Code:
this._lockroot=true;
this.createEmptyMovieClip("draw_area", 5);
this.onMouseDown = function() {
poly = new Object();
poly.x = _xmouse;
poly.y = _ymouse;
draw();
};
function draw() {
if (this.draw_area.start_point.hitTest(_root._xmouse, _root._ymouse, false)) {
removeMovieClip(this.draw_area.start_point);
} else {
temp = this.draw_area.attachMovie("start_point", "start_point", 2);
temp._x = poly.x;
temp._y = poly.y;
}
}
Any ideas??

Thanks!!!

View Replies !    View Related
Why Doesn't CSS Work In A Loaded Movieclip?
hello
I'm having a rather irritating issue with stylesheets and have found no solution on this forum or the net in general. I am loading a css file into a text area to provide basic formating of html (link, hover etc.) - now when the textarea is on the main timeline this works perfectly. However when the textarea is in a movieclip the CSS gives me the middle finger.
any help would be greatly appreciated, thanks in advance

:theory

View Replies !    View Related
HitTest Doesn't Work In Loaded Mcs?
I've tried _lockroot, as well as using _root, this, setting a global variable to 'this' and using it, but nothing seems to work!?

I set up the attached files (testDrawPolyShell.swf loads drawPoly.swf), so that the first mouseClick uses attachMovie to add the poly and the second clip does a hitTest between the poly and the cursor position. It works fine stand-alone, but the hitTest doesn't work in the loaded movie...here's the code that's in drawPoly.swf:


Code:
this._lockroot=true;
this.createEmptyMovieClip("draw_area", 5);
this.onMouseDown = function() {
poly = new Object();
poly.x = _xmouse;
poly.y = _ymouse;
draw();
};
function draw() {
if (this.draw_area.start_point.hitTest(_root._xmouse, _root._ymouse, false)) {
removeMovieClip(this.draw_area.start_point);
} else {
temp = this.draw_area.attachMovie("start_point", "start_point", 2);
temp._x = poly.x;
temp._y = poly.y;
}
}
Any ideas??

Thanks!!!

View Replies !    View Related
Loaded MC Doesn't Work - External Does
Ok, I'm stuck. I've got a swf that works fine on its own, but when I load it into a scrollpane nothing displays (it's all dynamically created from XML).

Here's the code in the SWF:


Code:
var url = "singleScreen.as";
var x = new XMLloader();
x.ignoreWhite = true;
var myListener = new Object();
x.addEventListener("onLoad", myListener);
x.load(url);

myListener.onLoad = function(evt:Object):Void
{
_root.screen = new EditScreen(_root);
screen.parseXML(evt.target.firstChild);
screen.draw();
screen.setMode("move");
}
and the code that loads it in the scrollPane:

Code:
pane_mc._lockroot = true;
pane_mc.contentPath = "editScreenLayout.swf";
Anyone have an idea why it doesn't work?

View Replies !    View Related
Loaded External Swf Doesn't Work
Hello everyone,

I have a swf gallery, and it works perfectly if I run the gallery.swf directly, but I have an index.swf where I'm loading the gallery.swf. Everything works and it loads all the different thumbnails on the xml file, but I can't load the bigger images.

It works if I run the gallery.swf directly, but it doesn't work if I run it inside the index.swf. I simply use the following loading method:


Code:
var loader:Loader = new Loader();
var request:URLRequest = new URLRequest("gallery.swf");

loader.load(request);
addChild(loader);

View Replies !    View Related
Ext. Movie Loaded, But Code Doesn't Work
I have this movie ,www.kreativdesigns.com/soccer it loads the player roster movie dynamically, and the player roster movie loads the bios dynamically. if you click on this one www.kreativdesigns.com/soccer/player.swf you'll notice that you can scroll, and click on the first player (jimmy ivacic) and it loads his 'bio' fine. But on the original page www.kreativdesigns.com/soccer i am not able to scroll, and it loads the movie into the wrong place.

View Replies !    View Related
Loaded External Movie Nav Doesn't Work
I have a main fla 'rock.swf' that pulls in an external movie called 'basenav.swf'. The 'basenav.swf 'has four buttons with the following code on each button.

on (release) {
this.targetx = -325;
slide.gotoAndPlay("move");
}

The 'basenav.swf' works perfectly when tested alone but when I test the main movie 'rock.swf' - the navigation in 'basenav.swf' doesn't respond.

I have the following code within the 'rock.swf' movie that pulls in 'basenav.swf'.

loadMovie("basenav.swf", "basenav");

Both of these files sit in a folder on the main level and I think that this is a path problem but i'm not sure how to go around fixing it. Please could someone enlighten me?

Tasvin

View Replies !    View Related
Masking A Dynamically Loaded JPG.. Doesn't Work
i found a couple of topics on this problem, but it wasn't resolved

I load a jpg into a masked layer and it comes up with nothing. If i take the mask away it loads fine

Is there a workaround for this?

Many thanks

View Replies !    View Related
Preloader Doesn't Work When Loaded Into Another Movie
There must be a simple explanation for this. Can someone help me?

I have a main.swf and a child.swf. The child.swf is loaded into the main.swf using the loadMovie method. The preloader script is in the child.swf and works fine when the child.swf is run by itself, but doesn't work when loaded into the main.swf. Any ideas? I'm using Flash 5 mx.

View Replies !    View Related
External Swf Loaded Into Main Swf Doesn't Work
Hi all,

I have use loadmovieclip to load an external swf into my main swf. but the external is not working after loaded into the main.. it is a guestbook that i found on the internet but i got the source files. the guestbook doesn't work BUT it DOES load into my main swf.

Do i have to change anything in the guestbook.swf in order for it to work? their values are all referenced by _root.xxxxxx = xxxxx.

Thanks in advance.

View Replies !    View Related
Preloader Doesn't Work When Loaded Into Another Movie
I've got this preloader working nicely on a standalone movie. The problem arises when I load it into a main movie. It loads and counts up to 100% but the playhead doesn't go on to frame 3 with this.gotoAndStop(3);

I've also tried it with unique variable names but still no success. Why does it work alone but not in another movie?

View Replies !    View Related
Resizing Loaded Image Should Work, But Doesn't...
I have a movie in which I have a series of buttons that load an image in a movieclip that's on the root called photo_holder_holder.

I use this code on the buttons that load the images:


Code:

on(release){
var mcl:MovieClipLoader = new MovieClipLoader();
var listener:Object = new Object();
mcl.addListener(listener);

mcl.loadClip(_parent.photo_loc[current_photo],
listener.onLoadInit = function (){


if (_root._photo_holder_holder._width >= 200 ) {
var ctnrWidth = _root._photo_holder_holder._width;
// Calculate percentage by which image will need to change to fit
scalePercent = (ctnrWidth > maxWidth)?maxWidth*100/ctnrWidth:scalePercent;
_root._photo_holder_holder._xscale = scalePercent;
}
if (_root._photo_holder_holder._height >= 100) {
var ctnrHeight = _root._photo_holder_holder._height;
// Calculate percentage by which image will need to change to fit
scalePercent = (ctnrHeight>maxHeight)?maxHeight*100/ctnrHeight:scalePercent;
_root._photo_holder_holder._yscale = scalePercent;
}}





this code should work. but it doesn not do a single thing...
Is there anything wrong with it? cause I can not find it...


I'd really appreciate some help on this... Many thanks, kind regards game

View Replies !    View Related
Basic Loaded Movieclip Will Work On Server But Not Locally
Hello! I'm new to this forum but have been a fan of Kirupa for years, and I know someone here must be able to help me. I have a problem with a Flash movie that will work perfectly when testing inside Flash, and when published on the web server, but the exact same files will not work when opened locally in a browser. Specifically, this is what doesn't work:

1.) Load external swf (B) into a an empty container movieclip (A) - this works fine
2.) Now try to change the properties (alpha, color, whatever) of a movieclip (C) INSIDE the loaded swf

It seems I can't access the inside mc at all, as tracing it brings up "undefined." Will continue to debug, but has anyone else ever had this problem?? Thanks!

View Replies !    View Related
Doesn't Work: Scrolling Form In A Separate Movie And Mixing Variables
How's that for a descriptive title?

Well I've run into a multitude of problems trying to do this.

In my site, a user will fill out a form that gets submitted to the server. There are six different forms, but the user will fill out only one of these. The form that is displayed is directly related to a choice the user made previously.

For design simplicity, and keeping the movie size down, I thought it would be a good idea to build each of these forms in a separate movie.

So, here are my problems: (I think ranging from simplest to hardest)[list=1][*]I can't seem to position the movie. My Main movie is 700x400, and my form is much narrower. I wanted it to be about 20px from the right side. I can do this with movie clips, but apparently these movies are different. (no Movie._x ?)[*]Related to 1:, I can't seem to scroll the form. How do you reference this movie? When you use the loadmovienum function, it doesn't appear to return an object reference.[/list=1]
I attempted to put the form into a movie, but I had to convert it to a symbol to scroll it. This brought the following problems:[list=1][*]How do you access the field names once they're a symbol? Do you have to convert it to a smartclip?[*]Do you really have to load all 6 movies into parent movie forcing the users to download them, even though they only need one?[/list=1]

I guess I'm used to working in multiuser development environments where they assume a project must easily be broken into separate parts. I hope Flash 6 supports more of these features.

In thinking about it, Flash 5 is much like PHP 3. PHP 3 was an extremely powerful tool that could do some phenominal things. It lacked a little bit of the polishing that made it a truly professional design environement for high end appplications (even though many people were able to use it as such). PHP 4 came out and satisfied most (if not all) of the needs of these environments.

I hope that Macromedia experiences much the same generational change with Flash. There's no doubt we have a great product in our hands, and people are using it in amazing ways. It needs a little tweaking to tie it into the server side of things, and once done, it'll take the web to new levels.

Who will mess with DHTML once FLASH, a cross platform product with a consistent DOM and scripting enviroment can do all this and more?

Thanks for any advise and for listening to my ranting.

Matt (P.S. Ranting is allowed, right?)

View Replies !    View Related
LoadMovie : Loaded Movie Contains Scrollpane That Doesn't Work :(
I have a photo gallery which is divided into different sections chosen from a menu. The menu consists of several movieclips within a scrollpane. Each movieclip contains a button which will load a different gallery section into an empty movieclip (empty_clip) on the main stage. This works fine, I pasted the code below:

on (release) {
_root.empty_clip.loadMovie("g_030214.swf");
_root.empty_clip._x=207;
_root.empty_clip._y=112;
}


However, the loaded movieclip ("g_030214.swf") also contains a scrollpane with several thumbnails (buttons). Clicking the thumbnails will display larger versions of the images (each image is located in a different frame within the loaded movie). This is where I have a problem as I can't get this to work.

This is the code for one of the buttons:

on (release) {
_parent.gotoAndStop("feb03_11");
}

When I click the button, nothing happens. "feb03_11" is the frame label containing img11 from this section.

I am quite new to Flash and I suppose I'm just mixing up the terms here, but I really don't know how to sort this out. Can anyone please help me out?

Thanks

tori03

View Replies !    View Related
[MX04] Loaded Variable Doesn't Work With Array
Hi All,

First frame:
Loaded external variables from txt file. "movies" is the variable I need to work with the arrays in the last frame. "data" is the variable that changes to 1 when the variables are loaded.

PHP Code:



done=0;
movies=0;
loadVariables("data2.txt",_root);




Second frame: checks if load is complete:

PHP Code:



if(done==1){
    gotoAndPlay(4);
}




Third frame: loops:

PHP Code:



gotoAndPlay(2);




Last Frame: has arrays on it:

PHP Code:



//new array
arr1 = [];
//create entries with number of entries as required
for (var n=0; n!=movies; n++) arr1.push(n);

//new array
arr1b = [];
//create entries with content from arr1 +".swf"to string
for (var b=0; b!=movies; b++) arr1b.push(arr1[b]+".swf");

stop();




Now I know that the variables successfully load, and if I declare the variable "movies" as a number instead of loading it the arrays work also.

So why can't I get the loaded variable to work in the last frame?
HELP PLEASE!

View Replies !    View Related
AttachMovie() Doesn't Work Properly When Swf Is Loaded Externally
I'm using Actionscript 2 in CS3.

My problem is a little bit hard to explain, so I just try to make it as clear as possible . . .

I have a main swf, which loads another swf using loadMovie, like so:


PHP Code:



loadMovie ("photogallery.swf", _root.empty_mc);




This swf (photogallery.swf) then loads other external movies depending on which button is clicked, in the same way:


PHP Code:



loadMovie ("ranges/obsession.swf", _root.empty_mc);




The other external swfs (such as "obsession.swf" in the example above) are slideshow galleries which load clips from the library using attachMovie(), show them for an amount of time specified by an interval, then attach the next movie over the top.

The code for these is a bit long winded, but looks like this:


PHP Code:



stop();

delay = 9000;
total = 7;
p = 0;
currThumb = "";
prevThumb = "";
names = new Array ("one_mc", "two_mc", "three_mc", "four_mc", "five_mc", "six_mc", "seven_mc");
xPosition = new Array (130, 97, 165, 128, 73, 131, 101);
yPosition = new Array (25, 104, 52, 52, 52, 22, 47);
th_names = new Array (th_one_mc, th_two_mc, th_three_mc, th_four_mc, th_five_mc, th_six_mc, th_seven_mc);

firstImage();



function displayPictures (pic, xPos, yPos)
{
    tran_mc.gotoAndPlay("play");
    empty_mc.attachMovie(pic, "pic_mc", this.getNextHighestDepth(), {_x:xPos, _y:yPos});
};

function nextImage()
{
    if (p < (total-1)) {
    p++;
    displayPictures(names[p], xPosition[p], yPosition[p]);
    currThumb = th_names[p];
    currThumb.gotoAndPlay("over");
    prevThumb = th_names[(p-1)];
    prevThumb.gotoAndStop("up");
    picture_num();
    slideshow();
    }
};

function firstImage()
{
    displayPictures(names[p], xPosition[p], yPosition[p]);
    currThumb = th_names[p];
    currThumb.gotoAndPlay("over");
    prevThumb = th_names[(total-1)];
    prevThumb.gotoAndStop("up");
    picture_num();
    slideshow();
};


function slideshow()
{
    myInterval = setInterval(pause_slideshow, delay);
    
    function pause_slideshow()
    {
        clearInterval(myInterval);
        if (p == (total-1))
        {
            p = 0;
            firstImage();
        } else {
            nextImage();
        }
    }
} ;




So far, so good - the swfs all load OK and the galleries work how they should . . . the first time around. But if you click a button in the main swf that takes you a different part of the timeline, then return to where you were (i.e. loading both lots of external swfs again), the galleries go a bit haywire - the first interval gets very short, much less than the 9000 milliseconds it's supposed to be, and some of the clips in the library don't load.

I put in a series of diagnostic trace statements, and as far a I can tell from that, the code still runs through (i.e. it's not skipping anything), but for some reason it doesn't execute properly - instead of showing the first picture followed by the second, it shows the first, third, fifth; then if you click away and then back again it shows the first, fourth, seventh and so on.

I can't figure this out, because as far as I can tell, the external swfs should just be doing their own thing every time you click on them. There are no functions in the main movie that affect them or anything.

Does anyone have any suggestions or explanations? I would welcome any help that anyone could give. Sorry the post is such an epic . . .

View Replies !    View Related
Copyright © 2005-08 www.BigResource.com, All rights reserved