Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

Migrating a Site to Silverstripe /

What you need to know when migrating your existing site to SilverStripe.

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

Where to place my action script files and XMLs


Reply


4 Posts   1702 Views

Avatar
RolfChen

Community Member, 6 Posts

16 May 2010 at 3:03pm

Hi,

I've got a flash file called "menu.swf", and it calls an external ActionScript file "linkButton.as". I uploaded the menu.swf through the upload functionality, so now it's sitting in assets/upload. I then insert it into one of the pages, but when I preview the published page, the files shows blank.

It appears that the menu.swf is loaded, but it can't locate the linkButton.as. Where should I be placing the linkButton.as? I tried putting it in mysite folder, asset/upload (same level as menu.swf) and just the root folder with no avail, can someone help?

Regards

Rolf

Avatar
bartvanirsel

Community Member, 94 Posts

17 May 2010 at 6:45am

hi,

assets/upload should work, does firebug give any errors when getting the file?
i'm not sure but isn't the as file being used when compiling your swf file only or
is it needed to run the swf?

Avatar
RolfChen

Community Member, 6 Posts

17 May 2010 at 10:12am

Hi,

The as file is required externally to run some other classes. I've had a few more goes with this, and I think the problem might be the URL rewrite, like when I insert an image, I noticed that new images were created in the "_resampled" folder, if I place my swf manually under that folder it'll work, but otherwise it won't. Anywayz, I'll give it a few more goes, thank you so much for helping out.

Avatar
studio6

Community Member, 14 Posts

20 July 2010 at 1:44am

hay im trying to do the same thing with a flv movie did you have any luck