Quirky LoadVars won't let me set Send variables in function

So, my last host died at the beginning of the month and I
just got everything migrated to a new host. I was trying to get
back to work on this Flash project that logins via PHP to a mySQL
database. The login script stopped working. I have discovered that
_global.getcards.THISVARIABLE will not let me set THISVARIABLE, but
this only happens from the login function. I can write a test
function with copy/pasted code from the broken one and it will
work. I am pretty sure this function worked before. If I copy/paste
the whole function it breaks again, but the set data is at the
beginning of the function, so I don't understand how that could
change it. . .
Here's the code that calls the script from the login button:
quote:
on (release, keyPress "<Enter>") {
else if (emailbox.length>0 &&
passwordbox.length>0) {
if (scriptbox.length>0){
janeticookie.data.script = scriptbox.text;
calledFromLoginButton = true;
PHPgetCards();
And the beginning of the PHPgetCards function:
quote:
function PHPgetCards(s){
//declare variables
if (s == undefined)
_global.getcards.SCRIPT = janeticookie.data.script;
else if (s != "NULL")
_global.getcards.SCRIPT = s;
_global.getcards.sendAndLoad('
http://mysite.com/getcards.php',
_global.getcards, 'GET');
_global.getcards.onLoad = function (success){
if (success){
If I trace _global.getcards.SCRIPT and
janeticookie.data.script, janeticookie (a shared object) works, but
getcards (a LoadVars) comes back undefined. If I make a test
function
quote:
function testme(){
_global.getcards.user_email = janeticookie.data.email;
_global.getcards.user_password = janeticookie.data.password;
trace(_global.getcards.user_email);
trace(_global.janeticookie.data.email);
and call it right before PHPgetCards in the
login script, it traces properly. Any idea what's going on? Here
are my variable declarations from the frame the login button occurs
on:
quote:
#include "copyright.as"
#include "md5.as"
#include "LphpAS.as" //the PHPgetCards function
include "test.as" //the testme() function
import it.sephiroth.Serializer;
_global.serial = new Serializer();
_global.getcards = new LoadVars();
_global.newscript = new LoadVars ();
_global.savescript = new LoadVars ();
_global.janeticookie = SharedObject.getLocal("janeticookie");
Thanks much!

So I just got back from a long weekend and I found the
problem. Here is the code at the end of the function that handles
how it exits (I faked indentation with backticks cause this forum
deletes tabs):
quote:
if(calledFromLoginButton == true){
` calledFromLoginButton = false;
` if(scriptcookie.data.user == undefined)
``` _root.gotoAndPlay('badlogin');
` if(scriptcookie.data.user != undefined)
``` _root.gotoAndStop('makePanels');
}else if (calledFromTransition == true){
` trace("open");
` calledFromTransition = false;
` updateBigPanel();
` updatePanels();
` //_parent.play();
} else{
` updateBigPanel();
` updatePanels();
The commented _parent.play() breaks it. I don't understand
why, because calledFromTransition is not true and based on the
trace that code snippet is not being invoked by this function call
(calledFromTransition is used in a later call). Can someone please
explain why?
Thanks!

Similar Messages

  • IPad won't let me set up Microsoft Exchange for Gmail

    My new iPad 3 won't let me set up a Microsoft Exchange acct for Gmail.  In Settings / Mail, Contacts, Calendars / Add Account / Microsoft Exchange I add all of the info, hit next and nothing happens - it just takes me back to the same screen with Next grayed out.  I followed the same steps on my iPod Touch and had no problems.  Any help would be appreciated.

    Quit the settings app and restart the iPad - then try again.
    Go to the home screen first by tapping the home button. Double tap the home button and the task bar will appear with all of your recent/open apps displayed at the bottom. Tap and hold down on any app icon until it begins to wiggle. Tap the minus sign in the upper left corner of the app that you want to close. Restart the iPad.
    Restart the iPad by holding down on the sleep button until the red slider appears and then slide to shut off. To power up hold the sleep button until the Apple logo appears and let go of the button.
    If the email account is appearing on the iPad - delete it and then try adding it back on.

  • Mac and iPod won't let me set up iCloud Mail. Server not responding.

    When I first got in to iCloud, my Mail app on my Mac and iPod were fine, but when U went back to them some time later, they kept requesting my password and then not connecting to the servers. I deleted the account from all Mail apps and tried to set them back up again, but now it says the servers aren't responding and won't let me continue setting up my accounts.
    I can send and recieve emails from icloud.com.
    Any help?

    I've just had another look at it, and it seems it doesn't save your password so keeps signing out before it gets a chance to connect with the servers. The tickbox next to the Mail icon under the iCloud section in System Preferences keeps deselecting itself. This also happens when trying to log into icloud.com, where it says "Keep me signed in", it doesn't keep you signed in.

  • Business catalyst won't let me set up email  with .media extension

    I have this domain - www.thinkchurch.media that I am using with a business catalyst hosted site. It will not let me set up an email with this domain for some reason even though I have the right hosting plan. It says, "This cannot be an email address."

    Hi Bradb725,
    We currently have a bug that the email accounts doesn't allow email accounts with more recent domain extensions. File a ticket or reach out to LiveChat support with a list of mailboxes you want and we can create them from our back-end. You won't be able to see these mailboxes in our Email accounts interface, but they'll work properly once they're created from our backend.
    Thanks,
    Florin

  • Monitors are the same, but Mac won't let me set them the same in Preference

    Odd issue.
    Two exactly the same Samsung Synchmaster monitors connected to the Mac Pro to make an extended display.
    The monitor on the right never has the right resolution. When I set it's resolution to the same as the left monitor (1280x800), it looks awful.
    Finally, I checked under Preferences>Displays, and under "Arrangement" I see that the computer has the left monitor set to the right little blue box dimensions (widescreen) but the blue box on the right is more square. How do I change the blue box on the right to match the dimensions of the one on the left?
    Thanks
    Thanks

    Okay, scratch that. I set the one on the right to 1280x800, and now the blue box matches the size, but it looks terrible! I mean, really bad. Yet the same monitor with the same resolution settings on the left side looks fantastic.
    Plus, the right side monitor won't let me choose 60 MHz, whereas that is the setting for the one on the left.
    Any ideas what's going on here?
    Message was edited by: Chris Farrington1

  • Won't Let me Set up iCloud Email

    I am trying to set up an @me.com account with iCloud, but it won't let me. When I try it on Mac, it won't create, it will go back to the "Choosing your email" page, and when I do it on iOS, it says "There was a problem turning on your email, try again", and when I try again, it just repeats the same thing. I really need this email address and I don't know why it will not let me.

    Is the Mac running OS X Lion (10.7.2) or higher?  If so, you can add your account by going to System Preferences>iCloud, signing into your iCloud account, then checking Mail.  This will automatically add the existing email account.

  • MAX won't let me set the duplex mode of my RT target

    We  have a problem with speed in transfering data via
    TCP/IP protocol from RT system (Pharlap) to Windows PC.  For strings of length of 50 kByte it takes around 20 seconds to come to
    PC, which is unacceptable for purposes of our real-time system.  When runing the
    same program and  sending strings of the same lenght from  Windows LabView on
    PC to another PC, things works fine. It seems that this issue with TCP
    data transfer speed comes around only when we try to use intentional TCP
    data sending in our program on Real Time target.   Labview on RT
    target works OK, and refresh rates of online data from real-time target on front
    panel are normal.  Browsing NI discussion forums we learned that there is known
    problem with RT 8186 controlers. RT 818x controllers working in Full-Duplex TCP
    mode causes serious slowdown and data loss in TCP and FTP communicaton. As a
    solution it is recomended to try working with Half-Duplex mode TCP.
    The Problem:
    So in order to change duplex mode of ethernet card on my
    controller I go to MAX->Remote Systems and choose my
    system. Then I go to Advanced Ethernet Settings of that system and from
    drop-down menu of Media Mode choose 100Megabit/ Half-Duplex Mode (I have 4 modes
    offered: 100 Megabit/Full Duplex, 100 Megabit/Half
    Duplex,  10 Megabit/Full Duplex, 10 Megabit/Half Duplex . MAX then asks me to
    reboot my RT system and I say OK. After the system reboots, when I look under
    advanced TCP settings I can see that the mode is still 100 Mbit/ Full Duplex and
    that it hasn´t changed. If I try to change mode to anything else offered than
    100 Mbit/Full Duplex, there is no change after reboot.
    So, the question is: How to force duplex mode of
    controller to change? Is there anything I can write to one of .ini files to
    change it, or do I need some other version of software
    (drivers) maybe?
    We are using  configuration:
    RT Controller NI PXI 8186 
    MAX 4.0.0.3010
    LabView 7.1 Real-Time (on RT Controller)
    NI Daq-mx 8.0.0
    Intel 8254x Ethernet Driver 1.1.0.3.0 (on RT)
    Labview 7.1 (on Windows PC)
    RT system and PC´s are on 100 Mbit LAN
    Thank you!

    I do have to open some ports to set up my Apple TV because of the router I have (I was told this by Customoer Support) and I know what ports to open but there is a fixed number in the IP address section and I can't put in my Apple TV IP address exactly how it reads.

  • Blackberry Curve 8530 won't let me set up my email

    When I go to the Setup file, thre is no icon for my email set up.  When I go to the setup wizard for my email, it doesn't give me the option for my personal email - only for a corporate account.  Help! I want my email on my phone!

    Hi,
    First, try to remove the battery and keep it out for at least 30 seconds.  Then put it back in and allow your device to restart.  See if that works.  If not, lets try something else.  We will now resend your service books.  Normally, you do this under Email Settings, but obviously, you can not do that route.  So, you need to resend your host routing table.  On your device, go to Options>Advanced Options>Host Routing Table.  Now, press the Menu key(button to the left of the trackpad) and select Register Now.  It will take a moment, but your device will be re-registered with the Blackberry Internet Service and you should recieve your service books, which will give you the option for Email Settings.  Hope this helps,
    Doc

  • I have recently copied my iTunes to a new computer using the instructions from Apple site, via an external drive. My iPod will not sync on the new computer. The option to sync automatically is greyed out and it won't let me set it. How do I resolve?

    I have recently installed iTunes on a new Windows 8 laptop and copied from my old XP system using an external drive. This all went ok. The problem is that i can't get my iPod classic to sync on the new laptop. I did a factory reset and re-install. It still won't sync. When I hit the 'sync' icon it does nothing. In the Options screen the option to automatically sync is greyed out and doesn't allow me to enter anything in the box. How can i resolve this?

    You need iTunes on the computer. There is no iTunes for your phone. See:
    Locked Out, Forgot Lock or Restrictions Passcode, or Need to Restore Your Device: Several Alternative Solutions
    1. iOS- Forgotten passcode or device disabled after entering wrong passcode
    2. iPhone, iPad, iPod touch: Wrong passcode results in red disabled screen
    3. Restoring iPod touch after forgotten passcode
    4. What to Do If You've Forgotten Your iPhone's Passcode
    5. iOS- Understanding passcodes
    6. iTunes 10 for Mac- Update and restore software on iPod, iPhone, or iPad
    Forgotten Restrictions Passcode Help
    You will need to restore your device as New to remove a Restrictions passcode. Go through the normal process to restore your device, but when you see the options to restore as New or from a backup, be sure to choose New.
    Also, see iTunes- Restoring iOS software.

  • How can I get my Pro-100 to print 12x12 page size? It won't let me set that size.

    I use 12x12 paper for scrapbooking.  Every time I set the paper size for 12x12, the printer says to choose the A3 size (11 x 16).  But then there's a wide margin of white left over.  How can I get the printer to print edge to edge?

    You need to buy a paper trimer.  Office Depot has several to choose from.  Believe me and save your self a lot of headache and just get the trimmer.  Print what you want on a larger size paper that the Pro-100 accepts and trim away.
    Are you using a post editor like Photoshop Elements?  If not I highly recommend you buy it, too.  There are others, some are even free, but PSE is the best.
    EOS 1Ds Mk III, EOS 1D Mk IV, EF 50mm f1.2 L, EF 24-70mm f2.8 L,
    EF 85mm f1.2 L II USM, EF 70-200mm f2.8 L IS II,
    Sigma 120-300mm f2.8 EX APO, Photoshop CS6, ACR 9, Lightroom 6

  • I updated Firefox to version 29.0.1 and now it won't let me set a home page.

    When I open Firefox, it opens to the Trovi search page, which I don't want. I tried setting the home page by opening the site that I want and dragging its tab to the Home icon, but it didn't change the home page. I also cannot change the default search engine. Selecting a different search engine in the drop-down box does nothing.

    It could be the work of one of your add-ons, or even add / mal-ware.
    Look thru your add-ons list and make sure you know what each one is
    there for. Also,
    '''''Windows > Start > Control Panel > Uninstall Programs.'''''
    Go thru the list and use a web search to check any that you don't
    know what they are.

  • OS 10.7 won't let me set my default printer

    When I go to print, in most programs, it always selects the first lists the first printer in alphabetical order. I set default printer to Last Printer Used and it still brings up the first in line alphabetically. I tried setting default printer to Last Used. Closed the preferences and when I reopen the preferences window, it's been reverted back to Last Printer Used. I even tried clicking the lock to lock the settings, but it still reverts back. It's driving me crazy. The printer that always comes up is a wide format and I have come close to printing emails to it instead of the black and white laser printer.

    See this thread with dominic23’s suggestions:  https://discussions.apple.com/thread/5783326?tstart=0

  • IOS7 won't let me set simple passcode

    I have an iPhone 5 that I just upgraded to iOS7. Before the upgrade, I had a simple passcode on the phone. After the upgrade, it asked me for a FindMyPhone password, and I gave it a complex password (I don't know if this is part of the problem or not, just mentioning for completeness).
    Now, I cannot set 'simple passcode' (the option is grayed out).
    How do I get simple passcode re-enabled?
    Thanks

    Hello,
    My passcode issue is quite different than above, but thought I'd give this a try.  After installing iOS 7 (and skipping the passcode step), my iPhone 4 is locked with a complex passcode even though I never created a complex passcode on my phone.
    I had forgotten my Apple ID passcode, so a rep had me reset it and that works online, but not on my phone.  How can I get into my own phone without a factory restore & loss of data?
    Thank you for your time.
    Appreciative,
    nah

  • Error with Desktop Manager synchronization - won't let me set up synch settings

    I have a new PC laptop and want to set it up to synch with my old Blackberry 8310 Curve just like it used to do with the old laptop.
    I downloaded the latest Desktop Manager software (version 6.0.0.40) and am trying to set up the synchronization settings, but am not able to.  I called Microsoft to see if there was any problem (I'm using Office 2010), and they said I'd need to talk to Blackberry.
    Here's what's happening:
    I connect my Blackberry to my PC laptop.
    I open Desktop Manger 6.0.0.40.
    I choose "Organizer" from the left-hand menu, and then "Configure settings."
    I get a setup pop-up window that asks me to configure Calendar, Tasks, etc. in turn by checking the box.
    I check a box, for example "Calendar Setup" and choose Outlook from the list of programs.
    I click "next" and then choose "two-way sync."
    I click "next" and get a pop-up error message with title "Intellisync" that reads:  "The operation terminated unexpectedly."
    This happens for every type of content I check (calendar, tasks, address book....).
    Can anyone shed some light on this?  I'm anxious to get my Outlook useful again and to have my data synching back and forth!
    Thank you in advance!
    Solved!
    Go to Solution.

    Hey elizabethdw,
    Thanks for the reply.
    To fix this issue, attempt to do a detect and repair in Microsoft Outlook.  Which is done under Help>Office Diagnostics.
    Save your PST information just to cautious!!!  To do this: File>Import and Export>Export to a File>Personal Folder File, then save this file to somewheres where you can find it.
    If that does not resolve the issue, perform a clean uninstall of Microsoft Office, and re-install only the full version, restart the computer afterwards, and then attempt to setup the synchronization.
    I look forward to your reply.
    -ViciousFerret
    Come follow your BlackBerry Technical Team on Twitter! @BlackBerryHelp
    Be sure to click Like! for those who have helped you.
    Click  Accept as Solution for posts that have solved your issue(s)!

  • FMLE won't let me set the sample rate with Blackmagic Decklink Studio 2 (Windows)

    Hi,
    I am trying to set the audio device on FMLE to the Decklink Studio 2's audio inputs. However,
    the sample rate sticks to 44.1k and I can't change it to the 48kHz sample rate that
    the Decklink defaults to (standard for broadcast is 48k).
    Try as I may, it isn't changeable. I seem to remember a similar problem where the
    sample rate defaults to the system audio card (on the motherboard) which is at
    44.1.
      Any ideas on a work-around? The audio from the Decklink is *much* better than
    the built in card.....
    thanks
    jeff

    One thing you might try doing is trashing the preference file in your user directory:
    ~/Library/Preferences/com.apple.compressor.Compressor.plist
    Like repairing permissions, this is a bit of a "catch-all" fix, not something specific to this particular problem.
    Also, have you tried different file types like: TIFF or JPEG, there could be an issue with output from Fireworks. You could use QT Pro to transcode the file. Sometimes that can work to fix funky problems.
    Does the Text Overlay filter work?
    BG

Maybe you are looking for

  • Why can't I connect to MobileMe?

    I am trying to sync my iPad calendar with the one on my Mac. I have gone to "add account" in my calendar settings and click done mobile me. When I enter my Apple ID and password the error message I get is "verification failed. There was a problem com

  • Apple mail - help flagged items

    I deleted flagged items before removing the flag. They are gone but the number of flagged items remains even though there are none! help please.

  • Data Load from DS-- DSO---- Cube

    Hello Guys, I have an issue with the data load. I use the OFI_GL_14 extractor. When I did he innit with data transfer I have around 450 K records. When I loaded to DSO from DS by DTP  it loaded the same 450 K . When I tried to load the data from DSO

  • Quick Migrate from SQL Server error

    I am attempting to migrate my databases from SQL Server 2000 to Oracle 11g. I am attempting to use the quick migrate feature of Oracle SQL Developer and receiving an error, the same error for every database during the build stage. The error is as fol

  • Detect "touch start" and "touch end" event in windows phone default browser.

    Hi, We have a BIG problem, because in all browsers we can detect the "touch start" event and "touch end" event. For iOS, firefox, internet Explorer, safari, Android work well. But in the windows phone default browser the "touch end" doesn't work. Do