[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 159
  • Last Modified:

how to load a PHP page into Flash (Not a MySQL DB, it is a Blogger generated PHP page)

I'm trying to load a blogger generated PHP page into this SWF file:

http://home.comcast.net/~llpatte/testing/dom_main.swf

Any suggestions as to how I go about this?

There is no MySQL database in this case.  
0
llpatte
Asked:
llpatte
  • 4
  • 2
2 Solutions
 
badrulnmCommented:
To do that, you have to use php to generate an external format that Flash can load. You can either load external variables or xml into Flash.
0
 
vickerleungCommented:
llpatte,

You can use text box to get the content
But the PHP page should be printed in XML format

Actionscript to load the content:

content.multiline= true;
content.wordWrap = true;
content.html = true;

var ss:TextField.StyleSheet = new TextField.StyleSheet();
ss.load("css/style.css");
content.styleSheet = ss;

story = new XML();
story.ignoreWhite = true;
story.load("something.php");
story.onLoad = function () {      
      content.htmlText = story;
}

the content here is the name of the text box

Vicker
0
 
llpatteAuthor Commented:
Do I put this actionscript code in the first frame of the actions layer?

0
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 
llpatteAuthor Commented:
Also, will Flash be able to "display" images that are part of this PHP file?
0
 
llpatteAuthor Commented:
I entered the above code, but changed "content" to "updates"

My code reads as:

updates.multiline= true;
updates.wordWrap = true;
updates.html = true;

var ss:TextField.StyleSheet = new TextField.StyleSheet();
ss.load("css/style.css");
updates.styleSheet = ss;

story = new XML();
story.ignoreWhite = true;
story.load("http://www.dominique-moceanu.com/updates/updates.php");
story.onLoad = function () {     
     updates.htmlText = story;
}



After publishing, I got these 2 errors:

**Error** Scene=Scene 1, layer=actions, frame=1:Line 12: Operator '=' must be followed by an operand
     story.onLoad = function () {     

**Error** Scene=Scene 1, layer=actions, frame=1:Line 13: Syntax error.
          updates.htmlText = story;

Total ActionScript Errors: 2        Reported Errors: 2


I'm really new to this, so would appreciate any corrections that you all can help with.
0
 
vickerleungCommented:
llpatte,

What's your Flash version?

Vicker
0
 
llpatteAuthor Commented:
MX 2004 Pro
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

  • 4
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now