Flash XML Question

13 posts by 4 authors in: Forums > CMS Builder
Last Post: July 8, 2009   (RSS)

By greatjakes - June 22, 2009

Hi,

I have a flash element setup with xml. I noticed that XML stops working when I have the field setup in CMS Builder as a WYSIWYG editor. It displays "undefined". Does it only work with text field?

Thanks

Re: [greatjakes] Flash XML Question

By Toledoh - June 22, 2009

Shouldn't be a problem. I have flash files reading XML based on text fields, lists, uploads etc...
Cheers,

Tim (toledoh.com.au)

Re: [Damon] Flash XML Question

By greatjakes - June 23, 2009

Thanks Guys for your help. I got the WYSIWYG field working. [font "Verdana"]I have one more question. [font "Verdana"]
[font "Verdana"]Reason I'm using the WYSIWYG editor field is because I want the ability to style the text. Most importantly, I want to be able to link certain words and have the link appear underlined.
When I view the page, it displays the content but doesn't display the styles applied throught the WYSIWYG field. Am I doing something wrong or does the style function not work for flash content?

Thanks!

Re: [greatjakes] Flash XML Question

By ross - June 23, 2009

Hi there.

Glad it's all coming together :).

My first thought on this styling issue is that the page you are working on isn't actually linked to the same stylesheet as your WYSIWYG.

Could you double check that? The WYSIWYG editor style sheet should be here:

/cmsAdmin/css/wysiwyg.css

Have a look and let me know :).
-----------------------------------------------------------
Cheers,
Ross Fairbairn - Consulting
consulting@interactivetools.com

Hire me! Save time by getting our experts to help with your project.
Template changes, advanced features, full integration, whatever you
need. Whether you need one hour or fifty, get it done fast with
Priority Consulting: http://www.interactivetools.com/consulting/

Re: [ross] Flash XML Question

By greatjakes - June 30, 2009

Ross, I'm having difficulty in getting the xml file to work with CMS. I took the working XML file and converted to .PHP file and it doesn't load the data. Can't figure out what I'm doing wrong and would appreciate your help on this. Here is what I have:

<?php header('Content-type: application/xml; charset=utf-8'); ?>
<?php echo '<?xml version="1.0" encoding="UTF-8"?>'; ?>

<?php
require_once "D:/Inetpub/irvingplacecapital/cmsAdmin/lib/viewer_functions.php";
list($homenewsRecords, $homenewsMetaData) = getRecords(array(
'tableName' => 'homenews',
));
?>

<menu>
<?php foreach ($homenews as $record): ?>
<menu text='<?php echo $record['title'] ?>' url='<?php echo $record['url] ?>'></menu>
<?php endforeach; ?>
</menu>


thanks.

Re: [greatjakes] Flash XML Question

By ross - July 3, 2009

Hi there.

Thanks for posting!

I think what you'll want to do first is change the name of that file to:

whatever.xml.php

That should get the PHP parts running. Then, you'll likely need to update the flash file so it loads that new page instead of the default .xml page.

Give that a shot and let me know how you make out :).
-----------------------------------------------------------
Cheers,
Ross Fairbairn - Consulting
consulting@interactivetools.com

Hire me! Save time by getting our experts to help with your project.
Template changes, advanced features, full integration, whatever you
need. Whether you need one hour or fifty, get it done fast with
Priority Consulting: http://www.interactivetools.com/consulting/

Re: [ross] Flash XML Question

By greatjakes - July 6, 2009

Hi Ross,

I have the page saved as menu.xml.php and flash is set to load the right file. However, it's still not loading the file. I've attached the file in case you want to take a look.

Thanks again for all your help.

Re: [greatjakes] Flash XML Question

By ross - July 6, 2009

Hi there.

Thanks for the update!

There aren't any attachments on the post though :). What I am thinking for the time being would be to just focus on menu.xml.php

What happens when you run that? That would is just a basic viewer page now with XML tags instead of HTML tags. You'll want to start the troubleshooting process with this page.

Let me know :).
-----------------------------------------------------------
Cheers,
Ross Fairbairn - Consulting
consulting@interactivetools.com

Hire me! Save time by getting our experts to help with your project.
Template changes, advanced features, full integration, whatever you
need. Whether you need one hour or fifty, get it done fast with
Priority Consulting: http://www.interactivetools.com/consulting/

Re: [ross] Flash XML Question

By greatjakes - July 6, 2009

sorry about that. I've attached the file.

When I run the file it displays a blank page - http://208.106.227.225/menu.xml.php

I have the flash implemented on this page - http://208.106.227.225
Where it says "dummy text" is where the data is suppose to load.

thanks.
Attachments:

menu-xml.php 1K