Title: MooseHead's Replies | WordPress.org

---

# MooseHead

  [  ](https://wordpress.org/support/users/moosehead/)

 *   [Profile](https://wordpress.org/support/users/moosehead/)
 *   [Topics Started](https://wordpress.org/support/users/moosehead/topics/)
 *   [Replies Created](https://wordpress.org/support/users/moosehead/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/moosehead/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/moosehead/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/moosehead/engagements/)
 *   [Favorites](https://wordpress.org/support/users/moosehead/favorites/)

 Search replies:

## Forum Replies Created

Viewing 4 replies - 1 through 4 (of 4 total)

 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Pass a post title to a .swf file within the loop](https://wordpress.org/support/topic/pass-a-post-title-to-a-swf-file-within-the-loop/)
 *  Thread Starter [MooseHead](https://wordpress.org/support/users/moosehead/)
 * (@moosehead)
 * [19 years, 1 month ago](https://wordpress.org/support/topic/pass-a-post-title-to-a-swf-file-within-the-loop/#post-541740)
 * Ok this is the code to include the swf (containing a dynamic textfield) and to
   assign a variable to be displayed.
    `<div align="center"><object type="application/
   x-shockwave-flash" data="http://myserver/wp-content/themes/mytheme/var loader.
   swf" width="300px" height="40px"> <param name="FlashVars" value="&Title=myTitle"/
   > <param name="movie" value="http://myserver/wp-content/themes/mytheme/var loader.
   swf"></param><param name="menu" value="false" /> </object></div>`
 * one step forward..if i put this code outside the loop in the index.php of my 
   theme it works fine. Instead, I want each post to have its instance of flash 
   movie to display the relevant title. To do this i’d need to put the code directly
   inside the loop and get a string to send to the swf about the title. Interestingly
   the variable becomes undefined if I put the code within the loop!
    Does _the\
   _title()_ pass a string which i can put as variable for the flash movie?
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Pass a post title to a .swf file within the loop](https://wordpress.org/support/topic/pass-a-post-title-to-a-swf-file-within-the-loop/)
 *  Thread Starter [MooseHead](https://wordpress.org/support/users/moosehead/)
 * (@moosehead)
 * [19 years, 1 month ago](https://wordpress.org/support/topic/pass-a-post-title-to-a-swf-file-within-the-loop/#post-541511)
 * The idea I had is to circumvent the problem of embedding nonstandard fonts inside
   a css. Usual drawback for those who wish to have their web pages to display contents
   in a more fancy way. Well, to make it short, I though of using a .swf file to
   load the title of my posts and display them according to the font embedded in
   the swf!
    I’m trying to find out a way but so far no improvements…
 *     ```
       <?php
       $titolo = the_title();
       $vars = "" ;
       $vars .= "titolo=" . $titolo ;
   
       echo $vars ;
       ?>
       ```
   
 * this is not the way apparently.
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Pass a post title to a .swf file within the loop](https://wordpress.org/support/topic/pass-a-post-title-to-a-swf-file-within-the-loop/)
 *  Thread Starter [MooseHead](https://wordpress.org/support/users/moosehead/)
 * (@moosehead)
 * [19 years, 1 month ago](https://wordpress.org/support/topic/pass-a-post-title-to-a-swf-file-within-the-loop/#post-541451)
 * Damn i’m bad at coding…ok I’m trying to create a variable inside the loop:
 * `<?php $the_title=$_POST["myTitle"]; ?>`
 * is this correct sintax or? I’m trying to say ‘the variable myTitle correspond
   to the title of the post’.
    Then i should find a way to pass this variable to
   a swf so that the title will be displayed inside the flash file (which contains
   a dynamic textfield). Any idea?? 🙁
 *   Forum: [Themes and Templates](https://wordpress.org/support/forum/themes-and-templates/)
   
   In reply to: [Use WP Data in PHP script](https://wordpress.org/support/topic/use-wp-data-in-php-script/)
 *  [MooseHead](https://wordpress.org/support/users/moosehead/)
 * (@moosehead)
 * [19 years, 1 month ago](https://wordpress.org/support/topic/use-wp-data-in-php-script/#post-541055)
 * Hiey Alphawolf,
    could you pleas show me how u did it? I have a similar problem
   since I’m trying to send a variable to a .swf file (instead of a popup page).
   More specifically I’m trying to assign the string called by `the_title();` within
   the loop to a variable (&myTitle) and make it displayable inside a swf file which
   contains a dynamic textfield. Here is my [post](http://wordpress.org/support/topic/111234?replies=1)

Viewing 4 replies - 1 through 4 (of 4 total)