Home Tutorials Forums Articles Blogs Movies Library Employment Press
Old 02-02-2004, 09:13 PM   #1
spectrewhite
dreamer
 
Join Date: Aug 2003
Location: OKC, OK
Posts: 56
Default htmlText, php, and cafelog blog

I am using b2 (www.cafelog.com) to do a blog site.

The client is all in php.

I am trying to pull my blog with comments into flash. I have the loadVariables working just fine. I am getting the most recent blog to show up, but only one, and the php tags that put in the links to the comments popup are not working.

my options for my blog are set to show 20 posts at a time, and the same format works fine in an html page, so the problem is somehting to do with flash importing the code/functions.

my question is this: what characters kill the html formatting in dynamic text fields? I have several links I found from searching, but nothing is giving me a specific list of what to watch for. I have ASDG by Moock and that isn't helping either.

also, if anyone has any experience with this, take a look at the code in my blog's template. Maybe than can provide some answers.

I would really appreciate any pointers, links, etc., that can be given, b/c I'm at a loss of where to go next.

Thanks!!

Last edited by spectrewhite; 02-02-2004 at 09:27 PM.
spectrewhite is offline   Reply With Quote
Old 02-02-2004, 09:28 PM   #2
spectrewhite
dreamer
 
Join Date: Aug 2003
Location: OKC, OK
Posts: 56
Default

sorry here's the file. posted the wrong one.
Attached Files
File Type: zip index.php.zip (384 Bytes, 215 views)
spectrewhite is offline   Reply With Quote
Old 02-02-2004, 09:58 PM   #3
CyanBlue
Super Moderator
 
CyanBlue's Avatar
 
Join Date: Jan 2002
Location: Centreville, VA
Posts: 26,666
Default

Howdy...

Your PHP script doesn't mean much to me... Do you have it up on your server where I can see what the result is when I type http://www.domain.com/path/index.php ??? If the server is not up, can you type it onto the web browser and then copy and paste the output into this thread???
__________________
CyanBlue / Jason Je / Macromedia Certified Flash Developer & Designer
http://CyanBlue.FlashVacuum.com
http://www.FlashVacuum.com
http://tutorials.FlashVacuum.com

Do NOT PM, Email or Call me... Your question belongs right in this forum...
CyanBlue is offline   Reply With Quote
Old 02-02-2004, 10:36 PM   #4
spectrewhite
dreamer
 
Join Date: Aug 2003
Location: OKC, OK
Posts: 56
Default

well....i'm ashamed of how it looks but here:

http://forever-tentative.attherockshow.org/index2.html

it's all in that Iframe. I had the site running fine embedding the fonts in css, etc, etc, but then i realized it only worked in IE, so I want to bring it all into flash if I can.

thanks for the quick response!!

edit: here's what it looks like pulled into flash is if helps.

http://forever-tentative.attherockshow.org/index3.html
spectrewhite is offline   Reply With Quote
Old 02-02-2004, 10:46 PM   #5
CyanBlue
Super Moderator
 
CyanBlue's Avatar
 
Join Date: Jan 2002
Location: Centreville, VA
Posts: 26,666
Default

Well... I don't see any faulty text in the text box on http://forever-tentative.attherockshow.org/index2.html page... Basically '&' the problem when used, so it has to be escaped when sending out from PHP, but you don't use that one...

And, I see no text at all from http://forever-tentative.attherockshow.org/index3.html page... Am I supposed to see some or not??? And, can you show us the ActionScript that takes care of loading the data from the PHP file and displaying it into the textfield???
__________________
CyanBlue / Jason Je / Macromedia Certified Flash Developer & Designer
http://CyanBlue.FlashVacuum.com
http://www.FlashVacuum.com
http://tutorials.FlashVacuum.com

Do NOT PM, Email or Call me... Your question belongs right in this forum...
CyanBlue is offline   Reply With Quote
Old 02-03-2004, 08:40 AM   #6
spectrewhite
dreamer
 
Join Date: Aug 2003
Location: OKC, OK
Posts: 56
Default

huh....index3.html shows some text when I go there. I am going crazy.

Basically I have a scrollpane on the main stage set to scroll content my "blogContent" mc.

the blogContent mc contains a dynamic text field called "container_txt" with it's var set to "container." The html button is depressed and it is set to multiline.

the following code is on frame one. pretty straight forward:

ActionScript Code:
this.loadVariables("b2/index.php"); this.container_txt.embedFonts=true;

I am having problems with the scrollpane scrolling correctly as well. The vertical scrollbar does not show up. Do I need to do some more formatting on the textbox? Is it possible that since I drew the textbox to be a certain size it won't resize when it imports more text than there is space?

thanks for your help!
spectrewhite is offline   Reply With Quote
Old 02-03-2004, 09:01 AM   #7
CyanBlue
Super Moderator
 
CyanBlue's Avatar
 
Join Date: Jan 2002
Location: Centreville, VA
Posts: 26,666
Default

Well... The way it sounds in your post, it sounds like it should be working... That loadVariables() could be the problem if you don't give enough time to load the external data fully... Other than that, I do not know what's going on...

Why use ScrollPane for it??? I think ScrollBar should be enough for scrolling text...

If you can come up with some sample, I'll take a look...
__________________
CyanBlue / Jason Je / Macromedia Certified Flash Developer & Designer
http://CyanBlue.FlashVacuum.com
http://www.FlashVacuum.com
http://tutorials.FlashVacuum.com

Do NOT PM, Email or Call me... Your question belongs right in this forum...
CyanBlue is offline   Reply With Quote
Old 02-03-2004, 01:50 PM   #8
spectrewhite
dreamer
 
Join Date: Aug 2003
Location: OKC, OK
Posts: 56
Default

http://forever-tentative.attherockshow.org/index3.html

i got the scrollbar working. you were right. fscrollbar worked way better than fscrollpane.

do you guys see the text?? i sure hope so...

I just tested it on a mac IE and safari and netscape and it looks great. the font is embedding correctly it seems.

Now I guess I have to go through the php stuff and figure out what the problem is. When I stick a "<b>" tag in whatever I want bolded disappears. Something wierd is going on. I am going to have a buddy of mine who knows php help me out.

When I get it figured out, I'll post here. If anyone has suggestions on what could be causing the problem, le tme know!!

thanks for the help, cyanblue. MUCH appreciated.
spectrewhite is offline   Reply With Quote
Old 02-03-2004, 03:11 PM   #9
spectrewhite
dreamer
 
Join Date: Aug 2003
Location: OKC, OK
Posts: 56
Default

okay one other thing....

when i "<u>" tags in, they work just fine, but "<b>" tags still won't work. maybe for some reason flash won't accept the bold tags because of how the font is embedded? I tried the bold checkbox in the font item in the library and it just didn't show up altogether. If I select bold when the textbox is selected, everything will just be bold won't it. ANy suggestions?

thanks again...
spectrewhite is offline   Reply With Quote
Old 02-03-2004, 08:58 PM   #10
CyanBlue
Super Moderator
 
CyanBlue's Avatar
 
Join Date: Jan 2002
Location: Centreville, VA
Posts: 26,666
Default

Yeah... I can see the text fine...

The bold not being displayed... That's because the FFF font that you are using does not really have the bold face included in the FFF xxx font you are using... You could separate the text and apply different text formats, one with the FFF xxx regular and another with the FFF xxx Bold font, but it's really tedious... What I ended up with the similar instance was to use U instead of B, as you have experimented already, and it cut down some time for me...
__________________
CyanBlue / Jason Je / Macromedia Certified Flash Developer & Designer
http://CyanBlue.FlashVacuum.com
http://www.FlashVacuum.com
http://tutorials.FlashVacuum.com

Do NOT PM, Email or Call me... Your question belongs right in this forum...
CyanBlue is offline   Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump


All times are GMT. The time now is 06:34 PM.

///
Follow actionscriptorg on Twitter

 


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2013 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.