LoadVars always undefined when viewing uploaded movie

Hello,
I created a flash movie that has a "Contact us" form, that
sends name, email, phone number and comments to an ASP.NET web page
that acts as an email relay. If it is able to contact the ASP page,
then it displays a "success" message. If it is unable to contact
the server or if the ASP page returns an error, then it displays an
"error" message.
When I test the movie on my computer (be it directly from
Flash or from a webpage in my hard drive) it does what it's
supposed to do: send the contact info to the webserver and then
display a "success" or "error" message, but when I upload the movie
to a server (even a local server) it always returns "undefined". I
have already tested it on 4 different servers (including the local
server) and it always behaves the same.
What am I missing that causes this behavior?
Thank you for any help that you may provide.

1. Place last
email.sendAndLoad('
http://www.promocasa.com.mx/tools/formaCorreo.aspx',
emailResponse, "GET");
You have a potential timing issue where emailResponse.onLoad
=
function(success:Boolean) is not assigned before the response
is registered.
something = function is a run time assignment and needs to be
processed
before it has potential to be used.
2. Did you try "POST" instead of "GET"?
3. Is Flash Movie on the same domain as www.promocasa.com.mx.
If not you
need a crossdomain.xml file.
4. Try a very basic Flash movie that simply sends and
receives some static
data from your server.
5. Add some traces to the emailResponse.onLoad
trace ("emailResponse.onLoad - succes:"+success);
6. Be sure you do not have a cached old version of the Flash
movie in your
web browser. A quick way is to rename it temporarily and
upload.
7. Not sure about your scoping since it works locally, but
for a test define
var email:LoadVars = new LoadVars();
var emailResponse:LoadVars = new LoadVars(); on the timeline
and comment
inside the on(click)
Lon Hosford
www.lonhosford.com
Flash, Actionscript and Flash Media Server examples:
http://flashexamples.hosfordusa.com
May many happy bits flow your way!
"saldillo" <[email protected]> wrote in
message
news:[email protected]...
> Yup, I already did that.
>
> I created a basic HTML page that has a bunch of hidden
fields that
> represent
> the data being sent by the flash movie. I uploaded it to
the same server
> where
> I uploaded the SWF to see if it had anything to do with
the server but
> alas,
> when I press the submit button on the HTML page it shows
the OK message
> that is
> being sent by the ASP page, and I received the email
just fine.
>
> I never receive the email when I press the submit button
on my uploaded
> SWF
> movie, which leads me to believe that the ASP page is
not receiving the
> information.
>
> I'm attaching my AS code, I forgot to do so in my
original posting.
>
> Thank you for your replies.
>
>
>
> on (click) {
> var email:LoadVars = new LoadVars();
> var emailResponse:LoadVars = new LoadVars();
>
> // This is the data that the user entered in the contact
form.
> email.txtNombre = _parent.txtNombre.text;
> email.txtEmail = _parent.txtEmail.text;
> email.txtTelefono = _parent.txtTelefono.text;
> email.txtComentarios = _parent.txtComentarios.text;
>
> // My ASP page should work for any SWF movie so I put
this here for each
> movie that
> // sends data to the server. Once I get this working the
way it
> should, I'll load the info from a text file to
> // avoid hard coding it in the movie.
> email.txtEmailReceptor =
"[email protected]"; // Who should
> receive the email
> email.txtEmailEmisor =
"[email protected]";
> email.txtDesarrollo = "Barcelona Residencial"; // What
webpage
> originated
> this request
> email.txtAsunto = "BARCELONA: Forma de contacto del
sitio web Barcelona
> Residencial"; //Subject
> email.txtMensaje = "Se ha recibido una petici?n de
informaci?n del sitio
> web
> Barcelona Residencial."; //
> email.sendAndLoad('
http://www.promocasa.com.mx/tools/formaCorreo.aspx',
> emailResponse,
> "GET");
>
> emailResponse.onLoad = function(success:Boolean) {
> var strSuccess:String = "?Gracias por tu inter?s! Uno de
nuestros
> asesores
> recibi? tu petici?n y se pondr? en contacto para
atenderte.";
> var strError:String = "Lo sentimos. Hubo un error
t?cnico al enviar tu
> informaci?n. Por favor cont?ctanos por tel?fono para
poder atenderte.
> Disculpa
> las molestias.";
> var strMensaje:String = this.mensaje;
>
> if ( success) {
> _parent.estado_txt.text = strMensaje; // Print the
message to a
> dynamic text field called "estado_txt"
> _parent.nextFrame(); // This removes my input form and
shows the
> estado_txt field.
> }
> /*
> if ("OK" == strMensaje.substr(0,2) )
> _parent.estado_txt.text = strSuccess;
> else
> _parent.estado_txt.text = strError;
>
> _parent.nextFrame();
> */
> };
> }
>

Similar Messages

  • Distortion with sound when viewing burned movie from idvd

    I created a movie in iMovie that included tracks from iTunes and exported it to create the dvd in iDVD.
    When viewing it in iMovie, it sounds great.
    When I exported and viewed the movie in iDVD, it sounds great.
    But after I burn the dvd and view it on any of my tv's, the sound is distorted. I've tried playing the settings in iMovie changing the track volume to a lower setting but that isn't helping.
    Can anyone help?

    I had a similar problem. Some of the music in my movie was distorted playing on my TV. Burning the dvd in disk utility did not make a difference, but the file was 3 times larger. Anyway while trouble-shooting I found that it played much better through the HDMI cable as opposed to the component cables. It also played ok on my older TV through the AV cables. So it is either my component out jacks on my dvd player or my component cable. I have noticed other dvd's that I made from my Imac do play very loud on all my TV's.

  • Browser Security Error When Viewing Published Movie

    We've made our Captivate movies, we've published them as
    SWF's with 'Export HTML' checked with Flash Player 7 (and also
    tried FP 9) selected. When we view our movies in our our browser
    (Mac Safari, Mac Firefox, PC I.E., PC Firefox) the following error
    message pops up:
    Adobe Flash Player has stopped a potentially unsafe
    operation.
    The following local application on your computer or network:
    /Users/admin/Documents/.../filename.swf
    is trying to communicate with this Internet-enabled location:
    /Users/admin/Documents/.../filename.htm
    To let this application communicate with the Internet, click
    Settings.
    You must restart this application after changing settings.
    (OK) (SETTINGS)
    We can of course click settings and make adjustments to view
    the movies but we're making a stand alone CD and don't want our end
    users to have to deal with this error message. Is there a setting
    we need to adjust so this message won't pop up every time a movie
    is opened in a web browser?

    Hi jlee250
    See if the following link helps.
    Click
    here.
    Cheers... Rick

  • Contrast and color saturation way too heavy when viewing the movie in FCP:

    When I view the clips on the same Mac they look neutral (outside of FCP). But when I drag them into FCP (6.06) it looks like my film already has been color graded (sort of). Too much saturation and too much contrast (the blacks are pretty solid). When I export the film it looks like it did in the beginning (neutral and low contrast). How may I adjust the preview contrast and saturation in FCP to show it more neutral (or like the clips are suppose to be)?

    but why on earth is there no setting to adjust the gamma for the application itself (FCP)?
    Because it isn't designed to be used in such a manner. You can't do this with ANY EDITING APP. Not Avid, not FCP, not Premiere, not Vegas, not Media 100. NONE of them do this. They are designed to just show you what you are working with. If you want proper monitoring, you need the proper gear.
    And why is there a mismatch of gamma in the first place?
    I can only guess. And my guess is so that you can see into the shadows more, in case there is something in the frame that shouldn't be. A person, a light, C-stand...whathaveyou.
    Why could they not just have the same gamma for the finder QT and FCP?
    Again, I can only guess. I am not a programmer. Because they wanted to make sure that you can see the image on ANY computer monitor, because there are so many different types of computer monitors, settings for those monitors. Look at a computer store and all those monitors...they all look different. But again, that is only a guess.
    But would a calibrated monitor like Eizo SX2761 which is mostly for Photoshop working (stills) be good enough in a combo with for example MATROX MXO2 MINI?.
    I doubt it. It is a COMPUTER monitor, and balancing for photo work and video work is VERY differnt. If you use the Mini, you need an HDTV at least, and a GOOD one. Or the regular MXO.
    Or do I also have to buy a tv / HDTV?
    Yes...you'd need a VIDEO monitoring device, like a TV.
    And can you please recommend a decent HDTV (
    A good PANASONIC model will work.
    Shane

  • TS3297 no sound when viewing HD movie from iTunes via Apple TV?

    Recently added AppleTV to the home theater (via HDML).  Downloaded HD movie from iTunes, but there's no sound.  Pretty picture, just no sound.  Other AppleTV functions have sound (movie previews, Hulu), and viewing photos and listening to songs from MacBook work fine.  Any suggestions?
    AppleTV
    MacBook (recent upgrade to Mountain Lion)

    I turned off "Dolby Digital" - now it´s working!

  • Fonts are substituted when viewing uploaded InDesign/Illustrator documents

    In my test InDesign page in the Cloud, the document fonts (Futura, Zapfino Extra) are replaced by Myriad when the page is displayed. Needless to say this negates the value of having it in the cloud in the first place: I can't share with clients or collaborators for comments and feedback, since they won't see the actual layout. I could put a PDF in the cloud, but I could more quickly, and just as easily send them a PDF via Dropbox or email.
    The same problem exists with live text in an Illustrator document.
    Any word on when this will be fixed/upgraded?

    Thanks, David. I had a feeling that was the problem so I wanted to check. It's a pity, because it vitiates the feature a great deal. I don't recall the same problem with CS Review, but then I also didn't use it much as I had little application for it at the time. Illustrator has its embedded PDF that could be used for a web preview, but perhaps if an INDD is saved with the maximum size preview that could also be a solution. At least 1024x1024 would be a comfortable size for viewing.
    I've not tested a PSD with live text, but I assume the embedded comp would be what's displayed, so that should not be an issue.
    [By the way, someone should have a strong word with the marketing folks. This limitation is not hinted at anywhere in the CC promo. Quite the reverse, in fact. Like the unexpected requirement to purchase tablet apps, which the promo says are "included", marketing missteps like this can backfire badly, as anyone familiar with the field will tell you. I've already seen negative reactions in various forums to what is perceived as (and is, in fact, even if unintentional) false advertising. Just because it seems like a minor detail doesn't mean it won't upset customers who feel they've been misled.]

  • Image size for 4:3 format appears somewhat zoomed in when viewed on my TV

    I am using Final Cut Express HD to create movies and have just started using iDVD '08 to create dvds, and have run across something bothersome in iDVD:
    When I view the iDVD movies on my TV that were created in a 4:3 format (640x480 resolution) in Final Cut, the image appears somewhat zoomed in versus what I see on my computer. This is causing problems with the composition of the image as it appears on the TV screen that do not appear when viewing the movie on my computer. Here's how:
    When viewd on the TV:
    1) the TV image's edge is zoomed in about 5-10% on all four sides relative the image edge as viewed on the computer screen
    2) when the scale of an image is reduced over time from 100% to something less (e.g. 50%) based on motion/scale keypoints in the clip's motion tab), the image detail starts zooming out but with the image size still filling the TV screen, then somewhat afterwards, the image size on the TV grows smaller as zooming out progresses.
    Overall this disparity between computer screen image size and TV screen image size is causing two miscues with how the movie shows:
    a) the composition of the picture is altered because it defaults to being somewhat zoomed in relative to the image I see when creating the movie on my computer, with whatever image I have on the true edge (per the computer screen composition) not appearing on the TV screen and
    b) the timing of changes in image SIZE relative to audio or other video cues is thrown off in a way that seems difficult to predict when designing the motion effects in Final Cut.
    Any advice on how to fix this?

    Hello phdtobe,
    what you're experiencing is overscan - a normal phenomenon with CRT monitors - and has nothing to do with neither FCE nor iDVD.
    Try using the "Action Safe" setting in FCE's Viewer to see the "crop area".
    hope this helps
    mish

  • Facebook photos teeny-tiny when I upload from iPhoto

    Whenever I upload pictures from my iPhoto to facebook they are really small. It doesn't matter what camera they come from...they are always tiny when I upload from iPhoto. If I upload directly from my phone they are a normal size.. Anyone know how to help??

    exactly how are you uploading to facebook?
    The best way is to select the photos and click on the facebook icon in the tool bar and use the iPhoto uploader
    LN

  • After Mountain Lion upgrade iMovie crashes when uploading movie to You Tube

    I also found upgrading to Mountain Lion slowed my mid2009 MacBook Pro 13" down. I just upgraded my memory from 2 to 8GB and it is running much better. One glitch I'm having since the upgrade is when I try to upload a movie from iMovie the program crashes. Any ideas about that? The movie I am trying to upload is 15 seconds, and the smallest size (for mobile devices).
    Thanks for any help.

    vaughaag2004 wrote:
    …considering the same problem existed after a 100% clean OS…
    After a clean install of the OS, I would definitely and without exception run Disk Utility and Repair Permissions. Always.
    When buying a new machine the first two things I always do are (1) wipe the drive clean and write it to zeros, and (2) Repair Permissions right after installing a fresh OS on it as well as after any immediate update of said OS.  If the update does not happen immediately after the new installation of the OS, I would definitely Repair Permissions again before the update too, then immediately afterwards.
    On the other hand, if by "ML" you are referencing Mountain Poop, then all bets are off, of course. 
    Maybe Apple will get it that OS right by version 10.8.6.  They never seem to get a new OS right before the dot-six release, that's why Lion never had a chance to mature.
    (I thought I had already posted this message earlier, but inexplicably, it's not here.  I hope it was not removed because of my deservedly derogatory reference to the latest Apple Mac OS.)

  • Movie width expands when viewed in QT7, blurry

    Hi Guys!
    New to the forum and to iMovie, although lost in both for DAYS. Just got iMovie 4 to edit clips from client's dvd for use in Powerpoint and Web movies (not making movies from camera or for TV viewing). Everything is blurry in iMovie--clips (pulled from VOB with MPEGstreamclip), iMovie-generated titles, even photos from photoshop (regardless of orig resolution). Whatever export format or program my edited clips are view in, the ratchet effects remain.
    Plus, even though when previewed in iMovie the height/width ratio is correct (albeit blurry), when viewed in Quicktime (7) or exported, the movie stretches widthwise, further enhancing the funhouse mirror effect.
    I'm hope this stuff is elementary to you all--cause my head is about to fall off. Can anyone offer some wisdom?

    IMovie display is just a preview -- it is not full quality display.
    The same applies also to QT Player -- by default it shows a low-resolution deinterlaced image. You have to turn on high quality via the display options. ...And doing so may reveal those interlacing comb lines that are normal but look ugly on a computer monitor.
    Always judge the quality via a TV monitor. A computer monitor can just imitate the correct interlacing, overscan or gamma.
    The .dv clip is PAL 720x576 or NTSC 720x480. It uses rectangular pixels so by default the aspect ratio is wrong when viewed via the QT Player. iMovie automatically scales the image to (approximately) the correct ratio.
    You can scale it to square pixel ratio in QT Player. With PAL you must scale to 788x576. With NTSC scale to 656x480. Often this is then cropped to PAL 768x576 or NTSC 640x480.
    For more info, check:
    http://www.iki.fi/znark/video/conversion/

  • I do a movie whith iMovie. I finalize the project and I pass it to iDvd. Then I do a little menu and I burn my DVD. When I play my DVD on a computer or in my TV it ALWAYS begins directly with the movie and not with the menu... PLEASE HELP!!!!

    I do a movie whith iMovie. I finalize the project and I pass it to iDvd. Then I do a little menu and I burn my DVD. When I play my DVD on a computer or in my TV it ALWAYS begins directly with the movie and not with the menu... PLEASE HELP!!!!

    Go to the Map mode in your iDVD project and make sure the blue bin at the left is empty.  That's where you drag slideshows to if you want the DVD to open immediately to that slideshow and bypass the menu. 
    Click to view full size
    If there is an item in there drag it out.
    OT

  • Why do I get an error message in safari 5.1 telling me to restart in 32 bit mode in order to "view the movie" when I first start safari on opening page?

    why do I get an error message when I start safari 5.1 telling me I need to open browser in 32 bit mode in order to "view movie" ? This occurs when I start safari on the opening page (the page with all the boxes for most viewed web sites). This had never occurred with safari up until the latest updates to safari & OSX [Version 5.1 (6534.50)] and OSX 10.6.8.
    also, I'm not trying to view a movie - this occurs for the page previews that load when safari opens.
    thanks.

    go here:
    http://get.adobe.com/shockwave/otherversions/
    choose "different version">full 64 bit and download - seems to have solved probem...let you know if it happens again

  • After creating a new slideshow I export it with the  setting HD 1080p it is then saved as a .mov i then create a dvd in idvd and the quality is not  as good as the original photo's when viewed on the monitor or a TV, am i doing something wrong?

    After creating a new slideshow I export it with the  setting HD 1080p it is then saved as a .mov i then create a dvd in idvd and the quality is not  as good as the original photo's when viewed on the monitor or a TV, am i doing something wrong?

    DVD's are only 640 x 480 (interlaced), so yes, the quality is not nearly as good.  You should probably create your .mov in DV format to best match the DVD format

  • On my PC, iTunes 11.0.3.42 causes it to hang when attempting to view a .MOV (1.6GB) requiring a cold boot. What could be causing this?

    On my PC running windows XP Service Pack 3, iTunes 11.0.3.42 causes it to hang when attempting to view a .MOV (1.6 GB) requiring a cold boot. What could be causing this? Corrupted .MOV? Too little RAM? It successfully plays a 162 MB .MOV.

    Hello David,
    Thank you for providing all that information about the iTunes issue you are experiencing.  We would first want to rule out any software issues before we can determine if it has to do with RAM.  I found an article that will help you isolate and troubleshoot software issues that could be causing iTunes to behave this way:
    iTunes for Windows XP: Troubleshooting unexpected quits, freezes, or launch issues
    http://support.apple.com/kb/TS1421
    I hope this helps you get back on track with watching movies in iTunes! 
    Best,
    Sheila M.

  • We uploaded a pdf to our web site but when viewed in Modzilla items are boxed and masked. Is there a way to make a pdf that is friendly to all browsers?

    When viewed in Safari and other browsers the pdf looks like it was intended. In Modzilla there are shaded boxes covering headlines and artwork. Makes it look like a jumble. Here is a link
    http://www.needlepointnow.com/wordpresstest/wp-content/uploads/NN_NWSLTR-0713.pdf
    I'm using Firefox 22.0

    Hello,
    Try looking at this article: https://support.mozilla.org/en-US/kb/view-pdf-files-firefox-without-downloading-them
    When you select "Use adobe acrobat in firefox" The problem goes away.
    Hope this helps :)

Maybe you are looking for