Reset a variable from flash in the parent php page

I know how to pass vars from php to flash and from flash to a
"new" php page but here is my question.
I have a php page (page1.php) with some HTML and a php
variable called $number. page1.php also has an embedded test.swf
movie. While working with the test.swf movie, I want to send data
back to the $number var on the page1.php without reloading the
page1.php because then it would reload the test.swf movie.
I have been able to use javascript to change background
colors on page1.php from within the test.swf movie but cannot
figure out how to set a php variable from within the test.swf
movie.
Is this possible?

That's what I ended up doing.
I wrote the var to a db from page1.php using a separate php
page and then changed the data in the db from flash using the same
separate php page.
Doing this made the same var or data available to both
page1.php and test.swf without changing state.
Just wanted to know if there were another way without using a
db or xml file.

Similar Messages

  • LoadVars-using send to pass a variable from flash to php

    For the life of me, I've tried everything:
    I've researched LoadVars on Adobe forum, used David Powers'
    books, googled 'flash to php', LoadVars, etc. and tried
    sendAndLoad, send, and using $_POST, $_GET, $_REQUEST.
    $HTTP_POSTVARS but I keep getting this same error. any advice
    please?
    I have a Unix server running Apache/PHP 4 - LoadVars worked
    to load name-value pairs into an array -see thread)
    My goal with this simple app is to prototype being able to
    pass a variable from flash to a variable in php.
    Parse error: syntax error, unexpected T_VARIABLE in
    flash_to_SQL.php on line 5
    Actionscript 2.0 code:
    var c :LoadVars = new LoadVars();
    c.testing = "123FOUR";
    c.send ("
    http://127.0.0.1/flash_to_SQL.php","_self","POST");
    php code: (I also tried $_POST, $_GET, $_REQUEST.
    $HTTP_POSTVARS)
    <?php
    //mysql 4.1.2, php 4 , NO mysqli
    ecbo $_REQUEST ['testing'];
    /?>

    var formData:LoadVars = new LoadVars();
    formData.fname = "Name";
    formData.send("
    http://www.website.com/flash_php.php",
    formData, "POST");
    <?php
    $name = $_POST['fname'];
    echo $name;
    ?>

  • Is there any way at all of accessing captivate variables from flash?

    Hi,
    I would be grateful for any help on this one.  I have been working in flash and I wanted to know whether there is any way at all of calling/accessing captivate 4 variables from flash (I'm working in flash Cs4 Actionscript 3.0 and I'm trialling Captivate 4, but I just want to know whether there is any way/method of communicating between a flash file and a captivate 4 file, and if so, can this be done with an embedded captivate 4 file/swf).  Surely there must be a way of communicating between the two - they are both Adobe products!
    Thanks for any help, pointers, advice, tips in advance.

    Hi Louon,
    Don't know if this would help you.
    http://blogs.adobe.com/captivate/2009/09/captivate_variables_-_how_to_a.html
    We have many experts here who could give more precise answers.
    Cheers.
    Miguel

  • Is it possible to pass variables from Tidal to the Peoplesoft run controls?

    Does anyoen know
    •1) Is it possible to pass variables from Tidal to the Peoplesoft run control page such as current date?
    An example would be updating run control parameters for a PSQUERY.
    •a) From date
    •b) To date
    •c) Business units
    Thanks,
    Jay

    Edit the job - go to Run Controls Parameters tab - select the param you want in the Override column then click on the Variables button on the bottom and select the variable you want

  • What happened to the parental controls page

    I have not had occasion to mess with any parental controls recently until today.  I had the page bookmarked that allowed me to control what email addresses my minor child could send and receive email to/from and that page is gone.  I cannot for the life of me find anywhere on this site where to adjust parental control settings.  I now have another minor child for whom we've created a sub account for and I have no way of controlling what email is allowed in.  Why I try to go to Manage Sub Accounts I get an error message that that page no longer exists.  Argh!  I've been fooling with this site and the Verizon Yahoo site for over an hour.  Where is the parental controls page that actually lets me set the parameters?!

    Thank you. That does the trick.
    As a suggestion, you might want to put something in the tool tip for that star, saying that double click opens controls.

  • Passing SolveRegular Expression Variable from Child Script to Parent Script

    I am having two scripts; Parent and Child, calling the child script user defined method in parent script.
    I need to pass a child script's SolveRegularExpression variable present in the user defined method to the parent script's next StepGroup, just after invoking the Custom method in Child Script.
    Any help is much appreciated.
    Regards

    Got the solution.
    We have to use the eval() function to evaluate the variable with a value from an OpenScript transform variable.
    Thanks

  • Passing a variable from subreport to the main report

    Hi guys, was unable to google this, so Im urning to you guys:
    I was wondering whether it was possible to do this:
    I have a subreport taking data from a table. In the main report, in the suppres condition of details section containing this subreport, I need to have a variable containing the total count of rows in that table. I know there are shared variables for that, but the problem is, that the variable in the condition is processed sooner than the one in the subreport.
    Any ideas on this?
    Thanks a lot

    To Sharma:
    Hi, unfortunately I can't. The subreport has its specific position in constallation with previous and following sections and must be right there.
    To Raghavendra:
    Hi, that was my first idea, but the problem is as I explained in my first message.
    To both:
    I have a table in subreport. This subreport is in main report positioned in details section "x". and I want to use that shared variable in the suppress condition of section "x". The problem is that the formula in suppress condition is processed sooner than the formula assigning a value to the shared numbervar inside the subreport.
    and thats what im looking for - a workaround for that. btw im using CR 8.5
    thanks again guys

  • Exposing functions from af:inlineframe to the parent JSP page - possible?

    I have an <af:inlineframe src=../../myotherpage.jsp />
    is it possible to call a function on myotherpage.jsp from the parent page??
    I'm using Oracle ADF, and JSPX.

    Hi,
    If you are in 11g you can use trinidad ExtendedRenderKitService
    FacesContext fctx = FacesContext.getCurrentInstance();
    ExtendedRenderKitService service = Service.getRenderKitService(fctx,ExtendedRenderKitService.class);
    service.addScript(fctx,"alert('alert');");
    Regards,
    Branislav

  • Send data from flash to a popup ASP page

    how can I send data from a flash webpage to an ASP page which
    has to open in a popup window.
    I can do them both seperatly, but how to integrate those 2 in
    1....
    Here's my script...

    I'm not sure if this will work, so you'll have to forgive me
    if I'm way off here. I use php for all my server-side goodness. I
    recently was doing sort of the same thing, but what I did to solve
    it was this (oversimplified of course)...
    variableSTRING =
    "?variableA=valueONE&variableB=valueTWO";
    getURL("javascript:popup('
    http://test.php"+variableSTRING+"
    ','myPopUp',800,600)");
    does that help?

  • How to cancel the event in Item Adding and display javascript message and prevent the page from redirecting to the SharePoint Error Page?

    How to cancel the event in Item Adding without going to the SharePoint Error Page?
    Prevent duplicate item in a SharePoint List
    The following Event Handler code will prevent users from creating duplicate value in "Title" field.
    ItemAdding Event Handler
    public override void ItemAdding(SPItemEventProperties properties)
    base.ItemAdding(properties);
    if (properties.ListTitle.Equals("My List"))
    try
    using(SPSite thisSite = new SPSite(properties.WebUrl))
    SPWeb thisWeb = thisSite.OpenWeb();
    SPList list = thisWeb.Lists[properties.ListId];
    SPQuery query = new SPQuery();
    query.Query = @"<Where><Eq><FieldRef Name='Title' /><Value Type='Text'>" + properties.AfterProperties["Title"] + "</Value></Eq></Where>";
    SPListItemCollection listItem = list.GetItems(query);
    if (listItem.Count > 0)
    properties.Cancel = true;
    properties.ErrorMessage = "Item with this Name already exists. Please create a unique Name.";
    catch (Exception ex)
    PortalLog.LogString("Error occured in event ItemAdding(SPItemEventProperties properties)() @ AAA.BBB.PreventDuplicateItem class. Exception Message:" + ex.Message.ToString());
    throw new SPException("An error occured while processing the My List Feature. Please contact your Portal Administrator");
    Feature.xml
    <?xml version="1.0" encoding="utf-8"?>
    <Feature Id="1c2100ca-bad5-41f5-9707-7bf4edc08383"
    Title="Prevents Duplicate Item"
    Description="Prevents duplicate Name in the "My List" List"
    Version="12.0.0.0"
    Hidden="FALSE"
    Scope="Web"
    DefaultResourceFile="core"
    xmlns="http://schemas.microsoft.com/sharepoint/">
    <ElementManifests>
    <ElementManifest Location="elements.xml"/>
    </ElementManifests>
    </Feature>
    Element.xml
    <?xml version="1.0" encoding="utf-8" ?>
    <Elements xmlns="http://schemas.microsoft.com/sharepoint/">
    <Receivers ListTemplateId="100">
    <Receiver>
    <Name>AddingEventHandler</Name>
    <Type>ItemAdding</Type>
    <SequenceNumber>10000</SequenceNumber>
    <Assembly>AAA.BBB, Version=1.0.0.0, Culture=neutral, PublicKeyToken=8003cf0cbff32406</Assembly>
    <Class>AAA.BBB.PreventDuplicateItem</Class>
    <Data></Data>
    <Filter></Filter>
    </Receiver>
    </Receivers>
    </Elements>
    Below link explains adding the list events.
    http://www.dotnetspark.com/kb/1369-step-by-step-guide-to-list-events-handling.aspx
    Reference link:
    http://msdn.microsoft.com/en-us/library/ms437502(v=office.12).aspx
    http://msdn.microsoft.com/en-us/library/ff713710(v=office.12).aspx
    Amalaraja Fernando,
    SharePoint Architect
    Please Mark As Answer if my post solves your problem or Vote As Helpful if a post has been helpful for you. This post is provided "AS IS" with no warrenties and confers no rights.

    Recommended way for binding the list event handler to the list instance is through feature receivers.
    You need to create a feature file like the below sample
    <?xmlversion="1.0"encoding="utf-8"?>
    <Feature xmlns="http://schemas.microsoft.com/sharepoint/"
    Id="{20FF80BB-83D9-41bc-8FFA-E589067AF783}"
    Title="Installs MyFeatureReceiver"
    Description="Installs MyFeatureReceiver" Hidden="False" Version="1.0.0.0" Scope="Site"
    ReceiverClass="ClassLibrary1.MyFeatureReceiver"
    ReceiverAssembly="ClassLibrary1, Version=1.0.0.0, Culture=neutral,
    PublicKeyToken=6c5894e55cb0f391">
    </Feature>For registering/binding the list event handler to the list instance, use the below sample codeusing System;
    using Microsoft.SharePoint;
    namespace ClassLibrary1
        public class MyFeatureReceiver: SPFeatureReceiver
            public override void FeatureActivated(SPFeatureReceiverProperties properties)
                SPSite siteCollection = properties.Feature.Parent as SPSite;
                SPWeb site = siteCollection.AllWebs["Docs"];
                SPList list = site.Lists["MyList"];
                SPEventReceiverDefinition rd = list.EventReceivers.Add();
                rd.Name = "My Event Receiver";
                rd.Class = "ClassLibrary1.MyListEventReceiver1";
                rd.Assembly = "ClassLibrary1, Version=1.0.0.0, Culture=neutral,
                    PublicKeyToken=6c5894e55cb0f391";
                rd.Data = "My Event Receiver data";
                rd.Type = SPEventReceiverType.FieldAdding;
                rd.Update();
            public override void FeatureDeactivating(SPFeatureReceiverProperties properties)
                SPSite sitecollection = properties.Feature.Parent as SPSite;
                SPWeb site = sitecollection.AllWebs["Docs"];
                SPList list = site.Lists["MyList"];
                foreach (SPEventReceiverDefinition rd in list.EventReceivers)
                    if (rd.Name == "My Event Receiver")
                        rd.Delete();
            public override void FeatureInstalled(SPFeatureReceiverProperties properties)
            public override void FeatureUninstalling(SPFeatureReceiverProperties properties)
    }Reference link: http://msdn.microsoft.com/en-us/library/ff713710(v=office.12).aspxOther ways of registering the list event handlers to the List instance are through code, stsadm commands and content types.
    Amalaraja Fernando,
    SharePoint Architect
    Please Mark As Answer if my post solves your problem or Vote As Helpful if a post has been helpful for you. This post is provided "AS IS" with no warrenties and confers no rights.

  • When printing to Adobe PDF from Microsoft Publisher, the text on page 2 is not 100% black

    Hi there
    I'm using Microsoft Publisher 2013 to print to an Adobe PDF file (I have a trial version of Adobe Acrobat Pro DC.)
    I sent the PDF to my printing house but they can't print it because the text on page 2 is not 100% black. In Publisher, the text colour on both pages is CMYK 0/0/0/100.
    I created a test file in which I copied the text from page 1 onto page 2 so both pages are identical. However, the PDF created from that file, when I click Print Production, Output Preview and de-select Process Black, all the text on page 1 disappears (as expected) but none of the text on page 2 disappears! It seems that Publisher and/or Acrobat is printing the text on page 1 correctly but not page 2. Does anyone know why? Am I doing something wrong?
    Here's a link to the two files: Dropbox - ShareAdobeComm
    Would much appreciate some help if anybody can please point me in the right direction. Thank you.
    (I'm seriously evaluating upgrading from my current 3rd party PDF writer to Adobe.)

    Do not use the PDF Maker, but print to the Adobe PDF printer and see if that meets you need. If you need some of the tools of PDF Maker, then turn on only those you need, not them all. Check to be sure that the graphics are indeed being downsampled and possibly go back and reduce the graphics you have in the WORD file so that you are at least not using millions of colors, 256 max. Also consider using straight B&W if color is not needed, or at least gray-scale.

  • Where has the drop down button for page history gone from next to the Forward/Back page buttons?

    in previous versions of Firefox(and most other Browsers) there is a drop down next to the back/forward page buttons, that shows the last 10 of so pages browsed in the current tab......
    has this feature been removed from Firefox 4 and why, or is there a way to enable it?
    Currently using Firefox 4 on a Macbook running OSX 10.5.8

    You can get the drop down list by either control-clicking on the back/forward buttons, or holding down the left button until the list appears.
    If you want the drop-down arrow you can add it with the Back/forward dropmarker add-on - https://addons.mozilla.org/firefox/addon/backforward-dropmarker

  • Passing a variable from Flash Cs3 (AS2) to C#

    I am working on what I thought would be a simple microsoft windows form application.  In the application I load a .swf file, straight and simple, but when the last frame is reached I need to pass information to the C# program that the last page has been reached - I thought a variable [finished = 1] or a string [end="Finished"] would work best.
    I have google,d binged, and searched through these forums but I cannot find anything that I can understand.  As you can tell I am a very casual flash and C# user (=noob), any help would be greatly appreciated.
    Thank you in advance for any assistance
    Woodtd

    Thank you for your response.
    Do you have a code snippet or other example that shows how to do this?
    Thanks
    Tim

  • Select X# of variables from array at the furthest possible intervals.

    Ok, I've been working on this one for a while and I'm thinking I'm either missing something really stupidly simply because of it, or I've got my equation wrong still. 
    Basically, what I'm trying to do is select X number of items out of an array.  The only catch is, these items need to be as far apart from each other as possible.  So for example, one time I might have an array with 93 items in it which I need to grab 36 of them, evenly spaced through the array (so the first one would be the first one in the array, and the last one would be the last in the array.
    How would I go about telling the script to grab the correct array values (the most evenly spaced ones), ending up with only the X amount of output values?
    Thanks!
    dgolberg

    Hmm, this is kind of a different perspective than what I was originally thinking, but it might work.  I'll have to test it out, though it would require me running the array twice; the first time picking out the specific ones and splicing them out of the array, the second simply grabbing the remainder.
    To put it a little differently, what I was originally thinking is cycling through an array (this array's length and content varries depending on the input), and would grab the the "masters" out of the array at the set intervals (these intervals are where I'm having the most trouble), and anything it finds matching a set range for the current loop cycle that isn't considered a "master" is placed under the master as a "slave" (or essentially, a duplicate).  Below is an example of one of the loops I'm using (I have 3 nested loops in order to cycle through 3 "dimensions" of values) with my last attempt at this issue (which is only correct in certain ranges rather than all ranges like I need).
    var DF = tA.length / mNum;  //tA.length is the array length, mNum is the number of masters desired from that array.  For example, array length of 100, mNum of 75; DF = 1.333333....
    var master = 0;
    for(var z=range[1];z<range[2]+2;z=z+5) { //Cycles through the array 5 units at a time (to speed up the script)... There are 2 other loops above this using the y and z variables seen in the if statements below.
         for(var i=0;i<tA.length;i++) { //Cycles through the tempArray to find matches to the current cycle of the above loops, +/- 2
               if(tA[i][0] <= x + 2 && tA[i][0] >= x - 2 && tA[i][1] <= y + 2 && tA[i][1] >= y - 2 &&tA[i][2] <= z + 2 && tA[i][2] >= z - 2 && master < 1) { //Checks for a match, and if the master is less than 1, it sets the match as a master.
                   master = master + DF; //Adds the DF (short for Dupe Frequency) to the current master number.
                   outArray.push(tA[i]); //Set the match as a master
              } else if(tA[i][0] <= x + 2 && tA[i][0] >= x - 2 && tA[i][1] <= y + 2 && tA[i][1] >= y - 2 &&tA[i][2] <= z + 2 && tA[i][2] >= z - 2 && master >= 1) { //Checks for a match, and if the master is greater than 1, it sets a duplicate.
                   master = master - 1;
                   outArray[outArray.length-1].push(tA[i][3]); //Set the match's name as a slave under the last master
    Basically, using the code above; I need it to somehow (while cycling through the tA.length loop), figure out how often it should grab either a slave or a master (depending on which there are more of), and then the next X number of matches are either a master or a slave (again, depending on which there are more of).  So, for example, if there are 25 masters, out of 100 total items in the array, it would pick one master, the next 3 matches would be slaves, and then it would pick another master, 3 more slaves, etc. etc.  Where things start getting out of whack is when the intervals start ending up in fractions (say every 1.5 is a slave).  Obviously, you can't grab half of one, so you'd need to do a pattern more like: 1 master, 1 slave, 1 master, 2 slaves, 1 master, 1 slave; etc.
    The part I'm having trouble with is getting a working equation that knows how often to pick the (in the example above) slaves based on this varying pattern, and do so accurately regardless of the array length to master/slave ratio (the above method seems to get further off as the mNum gets closer to the tA.length).
    I guess, more than anything really, I'm just having trouble getting the math to work out right as I'm apparently using the wrong equation in my code.  If anyone has any ideas though, let me know.

  • How do I prevent firefox from automatically opening the plugin checker page every time I open the browser because it is damned annoying?

    I don't like being bothered with pages I am uninterested in opening automatically. It's not a service, it's an annoyance. I want to open my home page, not pages of ANY kind that your browser wishes to open for me. Adblocker doesn't seem to work on this plugin checking page. I do not approve of your browser hijacking my system-I decide what pages get opened, not firefox.

    Start Firefox in [[Safe Mode]] to check if one of your add-ons is causing your problem (switch to the DEFAULT theme: Tools > Add-ons > Themes).
    See [[Troubleshooting extensions and themes]] and [[Troubleshooting plugins]]

Maybe you are looking for

  • What cables to connect to the VGA monitor

    Hello, From what I know the Mini Mac 2010 includes a HDMI to DVI monitor adapter. I have a LCD display with a VGA port. How do I use this adapter to connect it to the monitor VGA port. I am thinking about connecting HDMI --> DVI adapter (included)to

  • Down payment document differs from print layout since SBO 2007A PL45

    Since upgrade from PL42 to PL45, we have ceveral problems. - Print Layout wrong: 1. We have a sales order with 7 positions, 2 of these 7 positions are already delivered and paid. Based on the sales order, we post a down payment invoice that has the c

  • C6280: Can't select automatic two-sided printing

    Hi: I am using an HP laptop running Windows Vista 32-bit Home Premium. I had previously fully uninstalled my HP Photosmart C6280 all-in-one printer. Today, I reinstalled it using the CD-ROM that came with the printer. When I went to print an MS Word

  • Upgrade from 10.1.2.0.0 to 10.1.2.0.2 is not support ??!!

    I was hoping to be able to upgrade our App. Server from 10.1.2.0.0 to the 10.1.2.0.2 version which now includes Forms and Reports, but Oracle is saying that there is NO upgrade path from 10.1.2.0.0 to 10.1.2.0.2 . I find this very disconcerting, as i

  • Installation problem, SQL developer does not start

    Hi, I have tried to install both version of SQL Developer, with and without JRE. But when I click the sqldeveloper.exe file nothing happens. Nothing at all! Do any of you have any tips or ideas what the problem could be? I have the latest java jdk in