So, using PHP with Flash...

Hi everyone, appologies in advance if this isn't the correct
forum.
I'm trying to find a way to pass dynamically generated text
for a hyperlink to a SWF that's embedded in my PHP page. I have the
PHP system working as I want it with HTML links but want to add
some animation to a the part of the page with the links in. I'm
having trouble finding a way to pass the info to the SWF - would
the only way be to have the PHP write out to a txt/xml file and
have the SWF read it in?
Thanks to anyone who can help.

Look the gotoandlearn.com for a tutorial that might agree
with what you are attempting.

Similar Messages

  • Using PHP with Flash (contact form)

    I am trying to get a contact form on a flash site to work and
    for some reason the PHP isn't forwarding the message to my email.
    Below is the flash code I have used as well as the document I have
    saved as contact.php. Thank you so much for the help. This is the
    last thing I need to complete for the site and I just can't seem to
    get it right. Thanks.
    Flash Code For the Submit Button:
    onClipEvent (enterFrame) {
    if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
    if (this._currentframe<this._totalframes) {
    this.nextFrame();
    } else {
    if (this._currentframe>1) {
    this.prevFrame();
    on (release) {
    this._parent.getURL ("contact.php","_blank","GET");
    this._parent.name = "Your Name:";
    this._parent.email = "Your Email:";
    this._parent.phone = "Your Phone Number:";
    this._parent.text4 = "e-mail:";
    this._parent.message = "Your Message:";
    Here is what I have for Contact.php:
    <?php
    $your_name = $_GET['name'];
    $your_email = $_GET['email'];
    $your_phone = $_GET['phone'];
    $your_message = $_GET['message'];
    $recipient_email = "[email protected]";
    $subject = "from " . $your_email;
    $headers = "From: " . $your_name . "<" . $your_email .
    ">\n";
    $headers .= 'Content-type: text/html; charset=iso-8859-1';
    $content = "<html><head><title>Contact
    letter</title></head><body><br>";
    $content .= "Name: <b>" . $your_name .
    "</b><br>";
    $content .= "E-mail: <b>" . $your_email .
    "</b><br><hr><br>";
    $content .= "Phone: <b>" . $your_phone .
    "</b><br>";
    $content .= $your_message;
    $content .= "<br></body></html>";
    mail($recipient,$subject,$content,$headers);
    ?>
    <html>
    <body bgcolor="#282E2C">
    <div align="center"
    style="margin-top:60px;color:#FFFFFF;font-size:11px;font-family:Tahoma;font-weight:bold">
    Your message was sent. Thank you.
    </div>
    </body>
    </html>
    <script>resizeTo(300, 300)</script>

    well...that's true..I wanted "name" to be cleared when
    clicked...this version I found doesn't clear "name" when clicked,
    but it needs selected and erased manually...anyway..it's better
    then nothing...
    Reason I want this is because I'm using a design that is not
    giving me much space and I have to trick the low space with this
    option.
    If you want I can send you the fla to get a better
    picture...I believe you deserve it :)

  • Using databases with Flash and PHP

    Hi, everyone!
    I`m a PHP newbie. I just learned PHP so that I can use
    databases with Flash.
    I`ve got a .php script that contains html that loads up my
    .swf file. The .swf file is the core of my site. What I want to
    know is if I can call some PHP functions (that I have wrote in the
    .php script) from within the .swf file... This functions would
    perform the reading and updating of my database.
    The only way I know of to modify a database from Flash is
    using the POST and GET methods. But that opens up a new browser
    window in which the PHP script is called. And that only handles
    writing in the database. So, what if I just want to read from the
    database some values and insert them into a TextField in Flash? How
    do I do that?
    Thanks! Ardy

    1. Goggle "Flash and mySQL" and you'll get a listing of alot
    tutorials
    2. I'm also just learning. Here's a great URL to start:
    Building with Flash and MySQL
    That's right, a Flash-based blog — it sounds a little
    loony, but this blog pulls content from a MySQL database and feeds
    it into the dynamic Flash frontend ...
    www.webmonkey.com/programming/php/tutorials/tutorial2.html -
    20k - Cached -

  • Can we use PHP with Portal.

    Hello !
    Can we use PHP with oracle portal.
    Can we make portlets in PHP and use it in oracle portal.
    If yes then how .
    Any kind of help will be appreciated .
    Regards
    Seemab

    thank U marianfromspringwood..
    one more doubt please tell it clearly,
    i had bought ipad 2 wifi 3g 32gb  AT&T model from sanfrancisco, do i need to activate my ipad2 in america it self
    by AT&T ,or can i activate it in india with airtel,vodafone,bsnl,idea,etc gsm service provider. and weather my ipad2 wil work correctly in india, and if i have any problem in future then can i get assistance from india only or should i send it to america..............??

  • Possible to use PHP with servlets?

    Hello all,
    This may be a weird question, but here goes. I have a java web app that uses Servlets with a JBoss appserve and Interbase db. I am interested in using a php library in my application, is it possible to write php code within my java code to be deployed in my app? Does that even make sense? (I must admit, i have no knowledge of PHP)
    Does anyone have any experience with something of this nature?
    Thanks,
    -Kevin

    No, it doesn't really make sense.
    You can have a PHP application and a Java application installed on the same server and have them interact, but that's probably a lot more hassle than it's worth.

  • Can we use Alchemy with Flash Lite?

    Alchemy can be used with Flash Lite or is it useful only for flash 8?

    Alchemy requires Flash 10 and AS3, neither of which are currently supported by Flash Lite.

  • Using PHP with Dreamweaver and Contribute

    I work for a small to medium government agency and we are re-vamping our website. Money and staff are very minimal here, so any hope of one or two full-time people managing the entire website, or of purchasing a content management system, are totally out of the question.
    My question is: for a group of people that are capable of using either Adobe Contribute or Dreamweaver in Design View only, are there any disadvantages or problems with using PHP?
    Here's more detail: In our situation, we really don't have the choice of editing straight HTML code, since many of our users would not be capable of doing so. If we could afford a full-time web person, that would be an option, but that's not possible at this point. Some of our users are going to be limited to using Adobe Contribute as well, which is a simpler option for some of the less-experienced users. Nonetheless we want our site to have a professional and consistent look, so  a technology like PHP would allow us to repeat content across many websites. By the way, that's all we'd be using PHP for as far as I know; just to enable me to edit a single page and thus change the navigation content across the whole site.
    Does anyone know of a reason why we couldn't build the site using very simple, limited PHP and allow people to edit it using Dreamweaver design view and Adobe Contribute?
    Thanks for any thoughts or suggestions that you can provide!
    P.S. We have also considered Dreamweaver templates, and so far that isn't working, due to the multi-login setup that we have.
    P.S.S. Although I do decently in HTML and CSS and a teeny bit of JS, I know nearly nothing about PHP, other than this:  <?php include("header.php"); ?>

    You can use that extension if you like. You need to make sure that your page that has the SSI have an extension that will process the scripts as mentioned above.
    .shtml, .php
    I always name my SSI so I know that they are includes.
    header.inc.html
    header.inc.php
    header.inc.txt as examples.
    If you are using PHP, then it should process the includes.
    A good simple test is to add a SSI to a page.
    Do something simple like.
    <p>Welcome to our website</p>
    Name it welcome.inc.php
    Then include it in a page, upload it to the webserver and visit the page.
    I am using contribute for people to update areas of our website (hate it) and I manage the overall website myself.

  • Use WCF with Flash CS5

    Hi,
    Is it possible to call WCF service with flash CS5.
    Regards------Amit

    I am trying this with the following code
    import mx.rpc.events.FaultEvent;
    import mx.rpc.events.ResultEvent;
    import mx.rpc.remoting.RemoteObject;
    import mx.rpc.soap.*;
    import mx.rpc.soap.*;
    import flash.events.Event;
    import mx.messaging.channels.StreamingAMFChannel;
    var wcfProxy:RemoteObject= new RemoteObject( "GenericDestination" );
    wcfProxy.source = "http://Domain.org/Service.svc?wsdl";
    wcfProxy.addEventListener( ResultEvent.RESULT, gotResult );
    wcfProxy.addEventListener( FaultEvent.FAULT, gotError );
    var arg1:Number=5;
    var arg2:Number=7;
    var user:String="test";
    var opList:String= "a";
    function calculate(e:Event)
            wcfProxy.logOn(user,user);
    function gotResult( event:ResultEvent ):void
        trace("The Vlue is = "+event.result.toString());
    function gotError(event:FaultEvent):void
        trace("Error is = "+event)
    sndBtn.addEventListener(MouseEvent.CLICK,calculate);
    but it always give the following error
    Error is = [FaultEvent fault=[RPC Fault faultString="[MessagingError]" faultCode="InvokeFailed" faultDetail="null"] messageId="0102BC47-CED4-B019-F8FE-338684D3DBEB" type="fault" bubbles=false cancelable=true eventPhase=2]
    Please help me out
    Thanks

  • Using Away3D with Flash Professional

    Hi guys,
    Flash Rookie here.
    I am simply trying to get up and running with flash professional and Away3D.
    I tried following this guide: https://docs.google.com/document/pub?id=1K3L4JajVRPmsQ_v0RgYNQhRmgIcA4WvknwLIRKjPUyI
    But even then I couldn't get it running.
    Could somone please explain an obvious step by step process of (downloading, installing, linking to then running simple example in Away 3D.) Really clearly written as if talking to a child.
    Thanks very much.
    MrB

    Here are the errors:
    Scene 1, Layer 'Layer 1', Frame 1, Line 1
    1172: Definition away3d.cameras:Camera3D could not be found.
    Scene 1, Layer 'Layer 1', Frame 1, Line 3
    1172: Definition away3d.containers:Scene3D could not be found.
    Scene 1, Layer 'Layer 1', Frame 1, Line 5
    1172: Definition away3d.containers:View3D could not be found.
    Scene 1, Layer 'Layer 1', Frame 1, Line 7
    1172: Definition away3d.core.math:Number3D could not be found.
    Scene 1, Layer 'Layer 1', Frame 1, Line 9
    1172: Definition away3d.core.render:Renderer could not be found.
    Scene 1, Layer 'Layer 1', Frame 1, Line 11
    1172: Definition away3d.primitives:WireCube could not be found.
    Scene 1, Layer 'Layer 1', Frame 1, Line 1
    1172: Definition away3d.cameras:Camera3D could not be found.
    Scene 1, Layer 'Layer 1', Frame 1, Line 3
    1172: Definition away3d.containers:Scene3D could not be found.
    Scene 1, Layer 'Layer 1', Frame 1, Line 5
    1172: Definition away3d.containers:View3D could not be found.
    Scene 1, Layer 'Layer 1', Frame 1, Line 7
    1172: Definition away3d.core.math:Number3D could not be found.
    Scene 1, Layer 'Layer 1', Frame 1, Line 9
    1172: Definition away3d.core.render:Renderer could not be found.
    Scene 1, Layer 'Layer 1', Frame 1, Line 11
    1172: Definition away3d.primitives:WireCube could not be found.
    Scene 1, Layer 'Layer 1', Frame 1, Line 15
    1046: Type was not found or was not a compile-time constant: Scene3D.
    Scene 1, Layer 'Layer 1', Frame 1, Line 21
    1046: Type was not found or was not a compile-time constant: View3D.
    Scene 1, Layer 'Layer 1', Frame 1, Line 25
    1046: Type was not found or was not a compile-time constant: Camera3D.
    Scene 1, Layer 'Layer 1', Frame 1, Line 27
    1046: Type was not found or was not a compile-time constant: WireCube.
    Scene 1, Layer 'Layer 1', Frame 1, Line 41
    1180: Call to a possibly undefined method WireCube.
    Scene 1, Layer 'Layer 1', Frame 1, Line 57
    1046: Type was not found or was not a compile-time constant: Number3D.
    Scene 1, Layer 'Layer 1', Frame 1, Line 57
    1180: Call to a possibly undefined method Number3D.
    Scene 1, Layer 'Layer 1', Frame 1, Line 61
    1180: Call to a possibly undefined method Scene3D.
    Scene 1, Layer 'Layer 1', Frame 1, Line 65
    1180: Call to a possibly undefined method Camera3D.
    Scene 1, Layer 'Layer 1', Frame 1, Line 77
    1180: Call to a possibly undefined method View3D.
    Scene 1, Layer 'Layer 1', Frame 1, Line 85
    1120: Access of undefined property Renderer.

  • Communication PHP with Flash

    Hi,
    Is it possible :
    - from PHP page to pass parameters to Flash (SWF) file ?
    - from Flash (SWF) file to retrieve parameter to PHP page ?
    i'm asking that because i would like to do the following
    things :
    - in my PHP page, user will select interface language and
    automatically
    the flash should turn all text strings (located inside the
    flash) into
    selected language.
    - Flash animation should be able to retrieve variable value
    from
    PHP/HTML in order to use them like : read/save from/to
    database postgresql.
    thanks a lot,
    A.

    Hi Alain,
    It most certainly is. This ability has been around for quite
    a while and
    Flash/PHP work well together. I happen to specialize in
    Flash/PHP/MySQL
    integration (though I'm faimiliar with PostGRE as well). It's
    not complex or
    difficult but a bit lengthy for the forum. Drop me a line and
    I can give
    you more concrete exampled: patrick (AT) baynewmedia (DOT)
    com
    Regards,
    Patrick Bay
    BAY NEW MEDIA
    "Alain R." <[email protected]> wrote in message
    news:fmvvbr$ok2$[email protected]..
    > Hi,
    >
    > Is it possible :
    > - from PHP page to pass parameters to Flash (SWF) file ?
    > - from Flash (SWF) file to retrieve parameter to PHP
    page ?
    >
    > i'm asking that because i would like to do the following
    things :
    > - in my PHP page, user will select interface language
    and automatically
    > the flash should turn all text strings (located inside
    the flash) into
    > selected language.
    > - Flash animation should be able to retrieve variable
    value from PHP/HTML
    > in order to use them like : read/save from/to database
    postgresql.
    >
    > thanks a lot,
    >
    > A.

  • Using php with oracle http server

    Hello folks
    This question might have been answered on this forum, but i haven't found it yet.
    Is it possible to integrate php into the apache server that is supplied with the oracle (9.2) database, the so called Oracle HTTP Server?
    What technical issues are to consider and how do you do it on linux in that case? (SLES8)
    Is there any support issues to consider if somebody modifies this oracle supplied http server?
    Looking very much forward to some help...
    Regards,
    Christian

    Well it was a spelling mistake in the beginning. I get the following output now:
    ./configure --with-oci8=$ORACLE_HOME \
    --with-apxs=/opt/oracle/product/9ir2/Apache/Apache/bin/apxs \
    --enable-sigchildcreating cache ./config.cache
    checking host system type... i686-pc-linux-gnu
    checking for gcc... gcc
    checking whether the C compiler (gcc ) works... yes
    checking whether the C compiler (gcc ) is a cross-compiler... no
    checking whether we are using GNU C... yes
    checking whether gcc accepts -g... yes
    checking whether gcc and cc understand -c and -o together... yes
    checking how to run the C preprocessor... gcc -E
    checking for AIX... no
    checking if compiler supports -R... no
    checking if compiler supports -Wl,-rpath,... yes
    checking for re2c... exit 0;
    checking for ranlib... ranlib
    checking whether ln -s works... yes
    checking for gawk... gawk
    checking for bison... bison -y
    checking for bison version... 1.35 (ok)
    checking for flex... lex
    checking for yywrap in -ll... no
    checking lex output file root... ./configure: line 2425: lex: command not found
    configure: error: cannot find output from lex; giving up

  • Using FABridge with Flash SWF

    Hello Folks,
    FABridge exposes all Flex functionality to JavaScript in a
    beautiful way. However I have a Flash project that spits out an FLA
    and a SWF file. I want to use FABridge to manipulate this SWF and
    Flash through JavaScript. Can FABridge be used for this purpose? If
    so how? In Flex, inserting a simple line of code <fab:FABridge
    xmlns:fab="bridge.*"/> exposes all functionality to JS. But this
    is done in the XML part of the mxml file. Flash has all
    ActionScript code and I am not sure how to use or initialize the
    FABridge from with the ActionScript code in Flash.
    Would appreciate any thoughts or pointers on how to go about
    using JavaScript to access and manipulate Flash through SWF files
    created through Flash project. I would think that if I can
    manipulate the SWF file from Flex why can't I do it thorugh the one
    created through Flash. But sounds like I am missing something very
    basic here.
    TIA,
    Sanjay.

    You cannot do that. Your client will need to scan the image, and then you can allow them to upload the images... but you can't scan from inside Flash.

  • Using Vcam with Flash CS3

    I installed the adobe vcam extension in my Flash CS3 (Mac)
    and it all works
    ok except that the vcam frame comes in with a crosshairs
    located on the
    upper left hand corner of the frame and no matter what I do I
    cant get it to
    set the crosshairs on the center of the frame.
    When I go to use it and test the movie, the vcam action keeps
    giving me a
    lot of extra white space to the top and left of the screen
    rather than show
    me the actual frame area that I want to see and zoom into.
    Can anyone please tell me how the crosshairs of the vcam
    frame can be set to
    the center of the frame so that what I really want to frame
    and zoom on
    actually shows up in the rendered movie? Or is there another
    way to make the
    vcam frame include the areas that I want instead of giving me
    all the
    unweanted extra white space?
    Thanks a lot for any advice.

    I installed the adobe vcam extension in my Flash CS3 (Mac)
    and it all works
    ok except that the vcam frame comes in with a crosshairs
    located on the
    upper left hand corner of the frame and no matter what I do I
    cant get it to
    set the crosshairs on the center of the frame.
    When I go to use it and test the movie, the vcam action keeps
    giving me a
    lot of extra white space to the top and left of the screen
    rather than show
    me the actual frame area that I want to see and zoom into.
    Can anyone please tell me how the crosshairs of the vcam
    frame can be set to
    the center of the frame so that what I really want to frame
    and zoom on
    actually shows up in the rendered movie? Or is there another
    way to make the
    vcam frame include the areas that I want instead of giving me
    all the
    unweanted extra white space?
    Thanks a lot for any advice.

  • Trying to use Flexbook with Flash Player 10

    I'm trying to use the Flexbook from Ely Greenfield, www.quietlyscheming.com/blog/components/flexbook/, with Flex 3 and Flashplayer 10.
    I'm having problems with multiple lines in Flexbook.as but they all have to do with creating a new Vector, like the example below:
    var delta:Vector;
    delta =new Vector(new Point(x,_pointOfOriginalGrab.y),new Point(x+10,_pointOfOriginalGrab.y+1)); 
    If I use the compiler option 'Enable Strict Type Checking' I get the error:
    1137: Incorrect number of arguments.  Expected no more than 0. FlexBook.as PageFlip2/[source path] src/qs/controls line 1215 Flex Problem
    If I don't use the 'Enable Strict Type Checking' option when the application runs I get this error:
    Error #1007: Instantiation attempted on a non-constructor.
    Can anyone tell me what these errors are trying to tell me?
    Thanks,
    Bob

    I guess that was the issue.  I renamed Ely's Vector class and now it work fine.
    Thanks.

  • How to use PHP with SQL?

    how to use sql in php and output a new ERP table contains every order_number, every order_quantity and so on then ouput sum of company and then sum of area
    and so on.
    now i only know a little how to use sql in php and you can give some examples of this?

    This sounds like a nice little homework exercise.
    Check the PHP FAQs for Oracle/PHP help
    http://www.oracle.com/technology/tech/php/htdocs/php_faq.html
    http://www.oracle.com/technology/tech/php/htdocs/php_troubleshooting_faq.html
    For SQL help, check http://asktom.oracle.com/
    -- cj

Maybe you are looking for

  • Creating a new folder in AL11.

    Hello Experts,     I actually need to create a folder in AL11 under a predefined directory which would store all my Input Flat Files together. This if happens, would facilitate me to choose the folder only as the input from the Application server. Th

  • Updating SPAM : Warning , No Response

    While Updating SPAM on my IDES SAP ECC 6.0 server , i got this error log and the update process doesn't respond at "DD IMPORT finished with returncode 4" . Here is the error log file . Sat Oct 20 00:56:08 2007                                         

  • Different Error when compiling

    The originally gcc version is 3.3.1,I installed gcc 4.1.0.Then I use new gcc to compile Berkeley DB 4.5. I added envs: LD_RUN_PATH=/usr/local/BerkeleyDB.4.5/lib:/opt/lib LD_LIBRARY_PATH=/usr/local/BerkeleyDB.4.5/lib:/opt/lib When I attempt to build t

  • Where does Safari save temp pdfs?

    When I open pdfs from safari by clicking the little button at the bottom center of the screen, they open in preview. But I've had preview crash before I had a chance to save them. Can anyone help me locate the folder they get saved to, if only tempor

  • CDDB Database - Can I get names later?

    I am planning a road trip and I would like to import all of my CD's while I am sitting in the car doing nothing. However, I cannot access the CDDB Online Database, while I am on the road. When I get to an internet connection, will I be able to update