Help!  need of php in flash variables

Action script below two videos (first.flv, second.flv), and then played consecutively. I want to load the videos as variables to a PHP page that this flash is embeded in - something like:

$first_flv = "first.flv";
$second_flv = "second.flv";

How can I get $first_flv and $second_flv in flash variables that can replace the hardcoded ('first.flv', 'second.flv') below?


action script

var videoLoaderIndex:Number = 0;
var videoPlayerIndex:Number = 0;
var videoList:Array = new Array ('first.flv', 'second.flv');

vidComp.contentPath = videoList [0];

function eready(e:Object):Void {}
If (videoLoaderIndex < videoList.length) {}
videoLoaderIndex ++;
vidComp.activeVideoPlayerIndex = videoLoaderIndex;
vidComp.load (videoList [videoLoaderIndex]);
}
}

vidComp.addEventListener ("ready", eready);
function ecomplete(e:Object):Void {}
++ videoPlayerIndex;
If (videoPlayerIndex > = videoList.length) {}
videoPlayerIndex = 0;
}

vidComp.activeVideoPlayerIndex = videoPlayerIndex;
vidComp.visibleVideoPlayerIndex = videoPlayerIndex;
vidComp.play ();
}

vidComp.addEventListener ("complete", ecomplete);

If you just try to pass vars to a PHP page to an animation flash on a PHP page, take a look at
http://www.Permadi.com/Tutorial/flashQueryString/index.html
It worked for me.

Tags: Adobe Animate

Similar Questions

  • PHP in Flash variables

    Hello friends,
    I m a beginner in flash. I m facing a problem in my project.
    I have some variables in the file php as follows:

    <? PHP
    $a = "Hello";
    $b = "world";
    ? >

    I want to use the values of the variables $a and $b in my action script 3.

    How can I do?

    In Flash, you will need to use the URLLoader class.

    http://livedocs.Adobe.com/Flash/9.0/ActionScriptLangRefV3/Flash/NET/URLLoader.html

  • I can not load or chat it says I need 2 install adobe Flash 10 player I think I deleted a driver by mistake it says its installed but still not working help please

    I can't load my video or chat online it says I need 2 install adobe flash 10 drive I install but when I try always says I need to install 2 I think I deleted a driver by mistake help please thx

    Hello

    Flash can get corrupted

    Download and save the uninstaller flash on your desktop or wherever you like from the link below

    then right click on the uninstall program saved flash and run as administrator and uninstall flash player

    http://kb2.Adobe.com/CPS/141/tn_14157.html

    then download the latest version of the reader direct flash from adobe on the link below

    Uncheck the 1 google toolbar before downloading

    http://get.Adobe.com/flashplayer/

    and for more information on this problem if needed:

    below link is Adobe flashplayer support forums:

    http://forums.Adobe.com/community/webplayers/flash_player

    help troubleshooting Adobe flash player

    http://www.Adobe.com/support/flashplayer/

  • Problem passing variable from PHP to Flash

    I'm moving a single variable from PHP to Flash. However, I can't quite make it work.

    In a PHP file named data.php, I use:
    "$query = SELECT SUM (Debt) As Total OF THE debtclock;
    $result = mysql_query ($query);
    $debt = mysql_result ($result, "Total");
    Print "debttotal = $debt";

    In Flash 8 Actionscript, I use:
    loadVariables("data.php","0");

    If I understand correctly, this should make the variable available in Flash debttotal.

    Can someone tell me where I'm wrong?

    Try this:
    loadVariables ("data.php", _level0);
    The 2nd parameter specifies the target that receives variables, '0' is not a valid value for this. With _level0, variables will be found in the root timeline, so you can access it with _root.debttotal (from _level0) or _level0.debttotal (on a different level than _level0).

    Welcome,
    blemmo

  • Help, I'm controlling a flashing, sending him a value true or false within a box structure.

    Help, I'm controlling a flashing, sending him a value true or false within a box structure. The LED changed to resemble a specific indicator, so I can't just create a property node for LED and the value that flashes (unless someone can tell me how). I can see a number of ways to put my blinker indicator changed positions, but they all use while loops. What I am struggling with is controlling the while loop using a Boolean true or false.

    What I try to achieve is to create a virtual car dashboard and control using serial data. I built a VI as follows 3 bytes from the serial port and the data that I send to the VI will be in the form of a letter followed by 2 numbers. I uses the letter to settle the case structure then change numbers to different cases selected by the letter.

    I compare then 2 numbers and according to the ASCII values, I'm a true or false for the comparison.

    So once I set the indicator flashes, I need that it continues to Flash until he gets another command to stop.


  • I need to uninstall Adobe® Flash® Player for installation/uninstallation 14.0 r0

    I need to uninstall Adobe® Flash® Player for installation/uninstallation 14.0 r0, but have been looking everywhere for how to do this and can not find how doing this can someone help please? I use a Sony Vaio, Windows Vista Home Premium 32-bit, I use Chrome Version 36.0.1985.143 Mr.


    I want to get out of my system because since I installed it I got problems with the loading of Chrome he does not load then if I restart my comptuter & I click on chrome 5 windows open at the same time a white box appears saying "your profile not usable because it comes from a later version of the google chrome browser.» Some features may be available. Please specify a different profile directory or use a different version of chrome"then if you click ok, it closes all the windows down. I figured a way to get a window to stay open, so I use chrome, now I have another browser that I can use but I don't like them at all, & do not have a flash drive since mine is incorporated with Chrome. So now to the other issue that began as soon as I downloaded this & I may not understand that, but I still want to get it out of my computer. I also had problems with my flash drive error messages: saying that it has stopped working constantly, it says upgrade text flash, a flash plug-in Shockwave does not then in (locking pin in) he wants that you hit.  I ran 3 different programs Mallware via my computer just in case it is a question that would arise. No other Java programs downloaded fade.


    I'm not very good with computers, so I have to come to places like this help and I have really to have help explaining what to do because do not know much about other computers then put on them and surf the web and a few basic things. When the message of chrome said specify a different profile directory which went right on head Mr. so, which should give you an idea where I come from. I want to thank you in advance & hope I made sense in what I wrote, I tried to give all the information that I have.

    Uninstall Flash Player | Windows

    Uninstall Flash Player | Mac OS

  • You need to update your Flash Player and enable Javascript to view this content"

    I have recently updated for CS4 to CS6... all my Web Sites & pages still work... But now I get the message "you need to upgrade your Flash Player and enable Javascript" I'm on the last level of Flash Player and JavaScript is enabled?    This could be one that is Version 8 thing? Thank you

    Thanks for the help... I took your clue. Once I saw he worked in Live but NOT design... Who told me my Mgr Extension.   Somehow? DW passed the link to the SSv4_DW_ext.mpx. After I reinstalled it... works very well.   Thanks again.

  • Please help with the installation of flash... :)

    Hey there im im sorry to add the number of people who are trying to get their flash player works, ive read a fair few discussions now and nothing seems to work as well now ive wat some of you more advanced posters have noticed and opened my own discussion, any input would be great.

    he tries to update, you

    up to now im getting no videos, games or anything that uses flash.

    on youtube (I use flash more for really) sound telling me that I need to update adobe flash, so I followed suit and used the Manager of d/l adobe trying to install flash 10, 1 couple of times it says has failed the verification of integrity, but then installed (or told me he had), although nothing had changed. I looked at the adobe help, got the uninstall application, follow the restrted instructions and tried again... nothing, tried to remove the flag thing in the registry... nothing, has also deleted all my software antivirus and anti-spam apps and installed avg d/led only retried the d/l Manager adobe said once again, she had and nothing... any ideas guy? Here are my specs also

    THAT IS TO SAY 8

    win xp HE

    antivirus - AVG FREE

    anything else you need to know?

    Again any help would be greatly appreciated

    Thank you

    function() {return A.apply (null, [this] .concat ($A (arguments)))}

    00zigzag wrote:

    FlashUtil10h_ActiveX.dll version 10.1.53.21

    That explains it - you must have installed version 10.1 beta at some point and not properly uninstalled.

    Download the program uninstaller 10.1 from http://labs.adobe.com/downloads/flashplayer10.html, then follow the instructions in http://labs.adobe.com/technologies/flashplayer10/releasenotes.pdf on how to run the uninstall program with the -force option.

  • sending flash variables

    I imported a file flash inside Director...
    How can I access variables that I used flash, through Director?
    How can I send variables from flash movie to the Director?
    I used this command in the animation flash a button:
    on (release) {}
    getURL ("event: FlashMouseEnter, \"hi\ "" ");
    }
    but I could not send with this command, the variables! only the channels
    What should I do about variables?

    This is how to do it (this is from my memory, so I have not tested this exact code):
    --------------------------------------------
    ACTIONSCRIPT:
    (At the beginning of your script)
    implement the listener passing variables and events Director...
    var directorListener:Object = new Object();
    directorListener.handlerName = function(evt_obj:Object):Void End Sub

    (At the end of the first picture of the script you)
    If (System.capabilities.playerType == "DirectorXtra") {}
    getURL("event:flashLoaded"); Director can now do things with the flash object!
    } else {}
    controls to test the swf outside the Director go here...
    }

    --------------------------------------------
    In the JARGON, the behavior of Flash sprite:

    on flashLoaded me
    set up an interception of calls to the directorListener function...
    SP = Sprite (spriteNum)
    Listener = SP.directorListener
    sp.setCallBack (listener, "handlerName", #lingoHandler, me)
    end

    on lingoHandler me, directorListener, flashVariables
    put flashVariables.type
    put flashVariables.target._x
    put flashVariables.selectedIndex
    end
    --------------------------------------------
    Then, back in ACTIONSCRIPT, to pass variables from Flash, not string values, use this code:
    --------------------------------------------
    call the function in the directorListener event
    directorListener.handlerName ({type: "select", target: this, selectedIndex:23});}) Flash Assoc table accessories. can be anything! Add as many times as you need. It's the object passed as a parameter in your Lingo Manager 3.

    For more information on the events and Flash<->variable Director way, see this post

  • Please can someone help, need password CNU9497P2C

    I have the same problem and its driving me crazy... I need the BIOS password because I can't access to this

    [number of Series edited by Moderator]

    Please can someone help, need password

    HP MINI CQ10

    Sweb try.

    e9lovox27e

    3rd letter tiny L.

    4th and 6th letter lowercase o.

    Use this code to go into the BIOS.

    Disable all passwords that are enabled.

    If demand for CURRENT password using this code.

    Request NEW password just press ENTER.

    If asked to hit just to CHECK password to enter.

    Save and exit.

    REO

    I must inform you that these services are not endorsed by HP, and that HP is not responsible for any damages that may occur to your system using these services. Please be aware that you do so at your own risk.

  • I need to open a Flash 6 file and save it as Flash 5.5 without disabling the AS2 in the file Flash CC

    Is this possible with the current Flash on CC? I own 5.5 Flash but cannot update 6 as Adobe had passed to CC and I need to open a Flash 6 file using AS2.

    It does not seem that Flash supports working on AS2 files longer, so I'm forced to work in a form more old Flash rather than my CC software, if I want to or not.

    Thanks to anyone who can suggest anything...

    Laughing out loud

    You must use flash cs6 for this.  You can install programs cs6 (including flash) as part of your subscription to the cc: open your cc desktop application > click apps > filters & releases > previous versions > click on install for flash and a drop down menu will open allowing you to choose the cs6.

  • Hi, I need to install Adobe Flash Player, because the version I have installed on my Mac Os is old, but I can´t because I need to write my email and my password and I Don t remember my password, what can I do?

    Hi, I need to install Adobe Flash Player, because the version I have installed on my Mac Os is old, but I can´t do it because I need to write my email and my password and I Don t remember my password, what can I do? Thank you

    Email and the password will be the security of your computer, not something for all Adobe products.  You may need to consult the Mac clients if you are unable to determine the required information.

  • I need to install Adobe Flash Player

    I need to install Adobe Flash Player

    I have an iMac

    I get to the Setup screen.  It is said:

    Name: Melanie

    Password:?

    I don't know what my password is.

    I don't have an account called "Melanie."

    You must provide the password for the administrator of your computer.

    [topic moved to the forum of Flash Player]

  • When we need to use a query variable and how to use it?

    Hello

    When we create a line of dashboard, we set the variable, there are two types: variable presentation and application.
    I'm confuse when we need to use a query variable and how to use it?

    Thank you
    Anne

    Hello
    The variable 'demand' can be used if you want to use session related information specific to you.

    See below a:
    http://gerardnico.com/wiki/dat/OBIEE/logical_sql/obiee_set_request_variable_dashboard_prompt

    FYI... example of
    for the example query variable (a good post Nico)

    http://gerardnico.com/wiki/dat/OBIEE/set_variable

    for the variable of presentation with example

    http://gerardnico.com/wiki/dat/OBIEE/presentation_variable

    Thank you

    Deva

  • Using Variables - I pray for you gods of AS3/PHP and Flash help!

    Please oh PLEASE! You kind souls, help this miserable person.

    Cannot get my variables to work.  My relevant articles of the code:

    AS3:
    var request: URLRequest = new URLRequest ("http://www.XXXXX.com/pages/XXXX/XXXXindex.php" ");
    Request.Method = URLRequestMethod.POST;
    var flashvars:URLVariables = new URLVariables();
    flashvars. IdTag = this.loaderInfo.parameters.id;
    flashvars.hoster = "";
    flashvars. Guest = "";
    Request.Data = flashvars;
    var loader: URLLoader = new URLLoader (request);
    loader.dataFormat = pouvez;
    Loader.Load (request);
    loader.addEventListener (Event.COMPLETE, onComplete);
    function onComplete (event: Event): void
    {
    var flashvars:URLVariables = new URLVariables (event.target.data);
    'partner'. String = flashvars.hoster;
    Comments. String = flashvars.guest;
    }

    var 'partner';
    Comments from the var;

    PHP index.php:


    <? PHP
    $hoster = $_COOKIE ['host'];
    $guest = $_POST [invited];
    ? >

    < ! DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict / / IN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd" > ""
    " < html xmlns =" http://www.w3.org/1999/xhtml "lang ="fr"XML: lang ="fr"> "
    < head >
    account < title > < /title >
    < meta http-equiv = "Content-Type" content = text/html"; charset = utf-8 "/ >"
    < script type = "text/javascript" src = "swfobject.js" > < / script >
    < script type = "text/javascript" >
    var swfVersionStr = "10.1.52";
    xiSwfUrlStr var = "";
    var flashvars = "host: <? PHP echo (urlencode ($hoster))? > & Comments: <? PHP echo (urlencode ($guest))? > ';
    var params = {};
    params. Quality = "high";
    params.bgColor = "#d0e2ff";
    params. Play = "true";
    params. Loop = "true";
    params.wmode = "window";
    params. Scale = "showall";
    params.menu = "true";
    params. DEVICEFONT = "false";
    params. SALIGN = "";
    params.allowScriptAccess = "sameDomain";
    attributes of var = {};
    Attributes.ID = "check";
    Attributes.Name = "check";
    Attributes.Align = "middle";
    swfobject.createCSS ("html", "height: 100%;") background-color: #d0e2ff; ») ;
    swfobject.createCSS ("body", "margin: 0;") padding: 0; overflow: hidden; height: 100%; ») ;
    swfobject.embedSWF ("record.swf?" partner ": <? PHP echo (urlencode ($hoster))? > & Comments: <? PHP echo (urlencode ($guest))? > ","flashContent"," 750 ","650 ", swfVersionStr, xiSwfUrlStr, flashvars, params, attributes);

    The page loads, but no action.  Please tell me what I'm missing or doing wrong.

    No matter how you get variables - text file using URLLoader or FlashVars - you need to present them as a url query string. In the query, string equal - not colon - is used to separate pares them.

    Flash cannot directly read the PHP script variables. Again, you must return the text.

    In PHP, your index file should be something like:

    ECHO ("host = $_COOKIE ['host']; & guest = $_POST [guest]");

    If you want to spend flash vars in the embed code:

    To read the FlashVars embed code you get the settings of your application's loaderInfo object.

    Here's the documentation:

    http://livedocs.Adobe.com/Flash/9.0/ActionScriptLangRefV3/Flash/display/loaderInfo.html

Maybe you are looking for

  • How can I using an apple extreme get a better signal around the House?

    How can I using an old apple extreme get a better signal around the House? I use an old apple express and a new express from apple. I need to update my extreme from apple for the last device namely a time capsule. Can I use my apple extreme connected

  • HP dv6 3230us: Bluetooth problem HP Pavilion dv6 3230us

    Hi all I'm having a problem with the BT to my HP laptop driver. I have just reinstalled my system, and although I tried to reinstall the driver of BT, at the end of installation, I get the error of "make sure that the BT module is on. What should do?

  • cannot select the color of the mark on the intensity

    Hi people, I want to add color to my plot intensity, but when I right click on the bar of color card, the mark color is gray. A picture is attached.  I use LV2011. Someone knows how to fix this? Thank you. -Sonny

  • DLNA on server 2008 r2

    windows 2008 server r2 media services allow sharing of media and services dlna

  • My cam easy ge won't work, image in black on windows 7

    I have an easy cam, but the image come in, shootingsaya of evil that it works correctly. I can do___My easy cam ge won't work, black picture, how can I check the cam___ My cam easy ge won't work, image in black on windows 7