Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Need to load multiple skins with only a single .swf and config.xml

Community Beginner ,
Jul 16, 2013 Jul 16, 2013

Hello

These are part of some instructions that were of a AS3 Mp3 Store I purcased

Well guys the new AS3 flash cart system can have skins hot swapped in and out with out having to recompile the actionscript code.

You can even have multiple skins on the same cart and use different ones in different places of your website.

This is all because the flash cart system itself runs seperate from the graphical user interface that the customer visits.

When you purchase a new cart skin, or if you edit your own custom skin, you can place the swf file for it in the "skins" directory of your flash cart installation directory. Then in the config file where you "embed" the cart on your website you include the name of the skin you'd like to use (the skin MUST be available in your skins directory).

The other plus to using the skin system is you can keep the cart application seperate from your site. No longer do you have to have all that ugly php code and cramped swf files floating along side your website html files. No instead you create an install directory then simply embed the cart from where ever it is. The only litigation is that the cart must exist on the same server as the website you are showing it publicly on.

So right now I have a website with the store set up and working, allowing the buyer  to listen to the tracks, add to cart and checkout after which they are given an instant download link to the purcased files.

What I want to do now though is break up the songs into differents carts/skins within a dropdown list in my website as quoted in the instructions above, according to genre.

So I have published 4 different skins  as

MusicSkin 1.fla

MusicSkin 2.fla

MusicSkin 3.fla

MusicSkin 4.fla

and have placed these on my server

The cart works by Index.html > loads the Main.swf >loads MusicSkin.fla which is called by via config.xml 

(<?xml version="1.0"?>

-<config><skin src="MusicSkin"/><db src="/" sandbox="false" type="sql"/></config>

I am having trouble configuring how to call on 4 different Skins into different pages on my site if I only have ONE index.html, Main.swc and config.xml files which according to the instructions is possible!

Hope this makes sense, I get how it works on one skin but not how it works/or to make it work with multple ones on a website.

TOPICS
ActionScript
504
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe Employee ,
Jul 16, 2013 Jul 16, 2013

Moved to the Action Script 3 forum..

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Jul 17, 2013 Jul 17, 2013
LATEST

Is this possible...anyone!!!!!!!!!!!!!!!!

Really hoping to getting this working soon.

I am wondering if i have to copy the instances of the different skins into the config file above and each swf and html file loads the corresponding on in the list, or does each instance require it's own config file, which would then be a problem I think, because I could not have 4 config.xml files in the same directory which is what the Action Script is calling on.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines