Page 1 of 1

Flash connection

Posted: Wed Oct 28, 2009 8:56 pm
by turch2009
Is it possible to have flash grab from a content pages?

I'd like to have a Flash ticker (must be in Flash), but I'd like for the user to be able to change the content in the ticker.  Somethign as simple as opening a content page and editing the content.

I already know how to read from an xml with Flash.  Has anyone tried this?

Re: Flash connection

Posted: Wed Oct 28, 2009 10:15 pm
by calguy1000
did you do a search?

I did... and within 2 minutes came up with the answer.

Re: Flash connection

Posted: Thu Oct 29, 2009 2:39 am
by turch2009
Yes I did a search and found at least one similar question in the forums.  Using CMS Made Simple as a CMS for Flash.  This is the link if that is what you're talking about.  http://forum.cmsmadesimple.org/index.php?topic=23778.0

Unfortunately it's not only overly complicated from what I need, it's also incomplete.  The thread talks mostly about his need for code and what he needs to do in order to finish.

What I was looking for was a clean simple example of the actionScript one would code in order to grab the text from a content page.  There shouldn't be any need for a PHP script for this.  If the only code on the page reads "this is the text", then I simply want the Flash to find that and output it in a Dynamic Text field so that a user would read it in the text instead.  I'm looking to see if anyone has done somethign that simple.

Without knowing what you found in your search, I can't tell you if what you found is any more help to me.

Re: Flash connection

Posted: Thu Oct 29, 2009 4:43 am
by calguy1000
Without knowing what you found in your search, I can't tell you if what you found is any more help to me.
and without a well researched, well explained (or even an effort thereof) post... we can't be of much help to you.  Now that's a conundrum isn't it!  In order for anybody to be able to provide information, they require some information at the start.

Personally, I know the answer to this... but I'm done with this thread.

Re: Flash connection

Posted: Thu Oct 29, 2009 10:17 am
by tomgsd
Couple of ways you could do this.

1. Request your page from flash with the "showtemplate=false" parameter in the URL. eg: index.php?page=page_alias&showtemplate=false.  This will just show the contents of the main content block.

2. Create a new template and format it as XML and request the page as normal from flash.

Hope this helps.

Re: Flash connection

Posted: Sun Nov 01, 2009 11:54 pm
by turch2009
I'm not sure what I did to cause Calguy to be so upset with me.  This is my first thread and posts to this community.

Anyway, thanks Tomgsd.  I think your second plan works best for me since I already know how to communicate with Flash using XML.  I'll try this and let everyone know what happened.