dcsimg
A Flash Developer Resource Site

Results 1 to 4 of 4

Thread: Question, need some guidance...please!

  1. #1
    Member
    Join Date
    Mar 2000
    Location
    Burlington, NJ
    Posts
    52

    Question, need some guidance...please!

    Hi everyone!

    This is kind of complicated, so please bear with me.

    I am trying to make a flash page for something unique.

    I play a game called Counter-Strike and there is a plugin it uses to allow people to view the current map being played (as well as other information) over the web.

    I have spent 3 days banging my head trying to get this to work. I currently don't have a solution.

    Here is the link to view over the web:

    http://63.217.31.146:27015/test/mytest.w

    If you were to view the source code from the browser you would see the following code: (I am aware of the missing '<' in the code. This is the only way I could show the code. It kept generating the code as a page.)

    (This code is generated/dynamic to the original source code, which is listed below.)
    Code:
    html>
    head>
    title>*SDD* CS 1.5 Server</title>
    /head>
    body bgcolor="#999999">
    
    center>
    !-- Show the hostname in the title and as title on the page -->
    h1>*SDD* CS 1.5 Server</h1>
    
    !-- Show the current map pic -->
    
    
    
    img src="/mappics/cs_havana.gif" border="2" width="300" height="225">
    
    !-- Show the map name -->
    h4>cs_havana</h4>
    /center>
    
    /body>
    /html>
    This is the original source code which I wrote:
    Code:
    html>
    head>
    title>{c.hostname}</title>
    /head>
    body bgcolor="#999999">
    
    center>
    !-- Show the hostname in the title and as title on the page -->
    h1>{c.hostname}</h1>
    
    !-- Show the current map pic -->
    {v.mappic:/mappics/{W.map}.gif}
    {v.mapok:{@file_exists:{W.moddir}/addons/w/www{v.mappic}}}
    
    img src={v.mapok?"{v.mappic}"} border="2" width="300" height="225">
    
    !-- Show the map name -->
    h4>{W.map}</h4>
    center>
    
    /body>
    /html>
    Now this might sound strange, but the original source code is called mytest.w. Not mytest.html. This is the file extention the plugin uses to recognize to process the highlighted variables.

    I would like to grab the variables and be able to display them in flash. Could anyone please, please offer some guidance on how I should approach this?

    Many, Many Thanks in advance.

    Take Care,

    - Alex

  2. #2
    Child Prodigy Fat_N_Furry's Avatar
    Join Date
    Oct 2002
    Posts
    551
    I believe you should be able to do this with a little PHP. This is what you would need to do:

    Make a script that relays variables to Flash, then send the variables to the script.

    Now - I don't know how to DO this, I just know how to go ABOUT doing it. Now that you know what you need to do, you should post this in the 'Scripting and Backend' section of this forum. They'll probably be able to help you out.


    Furry
    Code:
      hobby = webDesign; waitYears(3);
      job = webDesign; this.love(job);

  3. #3
    Member
    Join Date
    Mar 2000
    Location
    Burlington, NJ
    Posts
    52
    Thank You Fat_N_Furry!

    I already made the post there after I read your message. Makes better sense to post it there!

    LOL!

    Take Care,

    - Alex

  4. #4
    Child Prodigy Fat_N_Furry's Avatar
    Join Date
    Oct 2002
    Posts
    551

    You take care too, and good luck with that project of yours!
    Code:
      hobby = webDesign; waitYears(3);
      job = webDesign; this.love(job);

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center