FORUM

how to include php within flash?

Home / Forum / General Discussions / how to include php within flash?

TAGS flash php blog

Started 1 year ago by lenglain

Last reply by lenglain

Recent posts in this topic

  • Hi im teaching myself how to use flash to make my own webpages. Right now im making a site that is exclusively flash, except that I want my friend to update it via wordpress. so if she wants to update her "aboutme" page then she goes into the wordpress blogging dashboard and updates it herself.

    I've achieved this perfectly but then I decided to make the site in flash and see how i could pull off the same thing.

    on a regular html page all I have to do is include the wordpress loop:

    <div id="content">
    <?php query_posts('cat=-4');?>

    <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
    <div class="post">
    <h1>" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></h1>
    <div class="postmeta"><img src="<?php bloginfo('template_directory'); ?>/images/calendar.png" align="center" alt="Calendar" /> <?php the_time('F j, Y'); ?> | Posted by <?php the_author(); ?> <?php edit_post_link('edit', '', ' '); ?></div>
    <?php the_content('More »'); ?>

    </div>

    so there's thediv and the php code that calls for the blog posts of a specific category.

    Is it possible to do this in flash? if so how?

    I appreciate any advice thanks for reading.


    #  /  posted on Mar 04, 2010
  • HI :) you can't write such HTML code into flash..I mean you can but it won't appear like in HTML(PHP)

    Flash is good for making shiny animated things (I usually use it for webpages because I like to work with this technology) but you have to do tricky things in order to update flash VIA PHP (database)

    you can call php file from flash (see "call php from flash, get info with php to flash" via google search) where php will access the database (because wordpress uses a database on your hosting) for info. and then you have to make a text/image holder in flash and load the data given by the php into them :) This is an advanced operation so you should search for some tutorials in order to complete this task


    #  /  posted on Mar 05, 2010
  • thanks for the reply, i began figuring out that it requires some tricky coding, im about to venture into it today but doubt that i'll get very far. I found many quick overviews but no tutorials per se, which would be ideal for a novice like me. But hopefully i'll manage with what i've found thanks!


    #  /  posted on Mar 05, 2010
  • Anonymous

    It is actually quite easy to communicate with Flash via PHP and MySQL and vice versa. But you shold install a local server to test and have basic knowledgement of PHP and MySQL then...

    Basicly you write PHP code which takes variables via GET or PUT HTTP commands from Flash and so on. It is also quite good possible to communicate via XML with Flash (especially fine if sent as a response to Flash) ...


    #  /  posted on Mar 24, 2010

Please login to post replies.