Jump to:

17452 Posts in 4473 Topics by 1971 members

Archive

SilverStripe Forums » Archive » Flash Incorporation

Our old forums are still available as a read-only archive.

Moderators: martimiz, Sean, biapar, Willr, Ingo, simon_w

Page: 1
Go to End
Author Topic: 1637 Views
  • Duane
    Avatar
    Community Member
    4 Posts

    Flash Incorporation Link to this post

    I'm building a site that uses flash buttons instead of css (only 6 pages). Is there a way to incorporate these flash buttons using SilverStripe CMS?

  • Liam
    Avatar
    Community Member
    470 Posts

    Re: Flash Incorporation Link to this post

    It shouldn't be a problem. Just setup your flash buttons to link to the page URLs you setup in the CMS.

    Then just hard code the stuff in a template.

    If you want it so every time you make a new page in the CMS a flash button is made, doubtful.

  • Blackdog
    Avatar
    Community Member
    156 Posts

    Re: Flash Incorporation Link to this post

    you could get the flash to generate the menu based on a xml feed of the parent sections from silverstripe.

    I have seen plenty of xml driven menus on FlashDen.

  • Duane
    Avatar
    Community Member
    4 Posts

    Re: Flash Incorporation Link to this post

    LeeUmm,

    Thanks for the reply. I'd really just like the ability to edit the current pages (that are referenced by the flash buttons) in the CMS. Is this a possibility?

  • Liam
    Avatar
    Community Member
    470 Posts

    Re: Flash Incorporation Link to this post

    Nice idea about the XML, didn't think of that. Not much of a Flash guru

    Yes, you can edit the pages just fine, it has nothing to do with the Flash buttons unless I'm not understanding your post.

  • joelg
    Avatar
    Community Member
    129 Posts

    Re: Flash Incorporation Link to this post

    Hi Duane

    I'm using flash a lot in my silverstripe cms and it's working great...

    I haven't tried using flash in menus though, but maybe you could try creating a menu control inside your swfobject javascript code and add it in your varibables parametre. I've used a lot of controls inside javascript code, and it actually works. It would then be something like this:

    var so = new SWFObject("$project/yourFlashFile.swf", "header", "950", "160", "7", "#FFFFFF");
    so.addVariable("myMenuArray","<% control Menu(2) %>$Link, $MenuTitle;;;<% end_control %>");
    so.write("yourDiv");

    From here you could get to the array inside flash and create your dynamic menu... Use code like this in flash:

    var flashMenuArray = root.loaderInfo.parameters.myMenuArray;
    if(!flashMenuArray) flashMenuArray = "yourDefaultLink1;;yourDefaultTitle1"
    flashMenuArray = flashMenuArray.split(";;;");

    As said this is only theory, haven't tried it nor worked with it, but maybe it's helpful.
    Hope to hear from you if you find an easier solution.

    Joel

  • Duane
    Avatar
    Community Member
    4 Posts

    Re: Flash Incorporation Link to this post

    Hi Joel,

    I'm still learning the SS system, so you're talking a bit over my head. In the mean time, I thought I'd just create a css menu below the footer, then I can just use action script for the flash buttons to direct them to the appropriate URL extension. The only drawback is that you can't change the page name/extension in the cms without changing the action script as well.

    Duane

    1637 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.