User Profile

Collapse

Profile Sidebar

Collapse
jiwas78
jiwas78
Last Activity: Jul 20 '08, 03:45 AM
Joined: Jun 9 '08
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • jiwas78
    replied to How to get vars from PHP into Flash
    Thanks. But I think I sorted it out by using an absolute path. Like so..

    Code:
    _root.bgHostAnim_MC.bgHost_MC.loadMovie("http://localhost/hopscotch/images/"+cPage+"Bg.jpg");
    One thing I'm still trying to figure out is how Flash treats relative paths. Are they relative to where the SWF is or relative to where the .php or .html that it's embedded in is.. I've tried both and I still don't know. hmm..
    See more | Go to post

    Leave a comment:


  • jiwas78
    started a topic Flash / XML mp3 playlist problem

    Flash / XML mp3 playlist problem

    Hey there.
    I am learning XML and Actionscript.
    I have a problem with getting my XML data to load when my SWF is in an HTML page in a browser. When I open the SWF on it's own whether in Flash Player or browser, my playlist of songs comes up. But in the HTML page it's a no go. Here is what my XML looks like:

    Code:
    <?xml version="1.0" ?>
    <playlist>
    	<song title="Alliance" artist="Jack
    ...
    See more | Go to post

  • jiwas78
    started a topic XML / Flash Mp3 player playlist problem
    in XML

    XML / Flash Mp3 player playlist problem

    Hey there.
    I am learning XML and Actionscript.
    I have a problem with getting my XML data to load when my SWF is in an HTML page in a browser. When I open the SWF on it's own whether in Flash Player or browser, my playlist of songs comes up. But in the HTML page it's a no go. Here is what my XML looks like:

    Code:
    <?xml version="1.0" ?>
    <playlist>
    	<song title="Alliance" artist="Jack
    ...
    See more | Go to post

  • jiwas78
    replied to How to get vars from PHP into Flash
    Also, in case this helps..

    When I go to preview the swf, Flash gives me an error:

    Error opening URL 'file:///....images/undefinedBg.jpg '

    Which I understand because flash needs to get the data from the php file.

    So I then refresh my browser. But the swf still file doesn't find the image.

    It's called indexBg.jpg so it should work with the bit of actionscript I have but I still...
    See more | Go to post

    Leave a comment:


  • jiwas78
    started a topic How to get vars from PHP into Flash

    How to get vars from PHP into Flash

    Hey there guys,
    After some research into PHP and Actionscript, I think I have come close to doing what I want to do. Except now I'm stuck.

    Here is what I have in my header.php file:

    <?php
    $c_page = $_SERVER['PHP_SELF'];
    $c_page = basename($c_pag e, ".php");
    ?>

    So I have the current file name of the php page stored in a variable called $c_page. Right?
    ...
    See more | Go to post

  • Can you get AS2 to recognise current page and store it as a var?

    Hi there. I am very much a novice with actionscript, and am wondering if anyone can provide an answer for what I want to do:

    I have a 5-6 page website. At the top of each page I have a Flash menu with a scrolling background image. Now what I want to do is have the background image different for each page, ie. the swf file is the same one for each page, but dynamically loads a different background image depending on what html page is...
    See more | Go to post
No activity results to display
Show More
Working...