Results 1 to 14 of 14

Thread: need a module [?]

  1. #1
    New user
    Join Date
    07-03-09.
    Posts
    11

    Default need a module [?]

    hi all!
    I am developing a flash site using Typolight's Flash Content module.
    I am looking for someone to help me extend/add a module that will:
    1. be able to browse tl_files folder and select files (images) with a check box[/*:m:2j4a1ht1]
    2. enable user to set the order of selected files[/*:m:2j4a1ht1]
    3. export list of selectet files to a XML file that I could load into my flash site and parse it.[/*:m:2j4a1ht1]


    is it a simple or hard challange?

    I really don't know very much PHP and so I need someone's help...

  2. #2
    Experienced user
    Join Date
    06-10-09.
    Location
    Cape Town, South Africa
    Posts
    1,387

    Default Re: need a module [?]

    You can look at some other extensions that extend CE's. You can add a TYPE field to the flash content DCA, then you make the "default" palette the standard flash element that comes with TL. Then you add a second type, with another palette that adds a image (checkbox) field and sorting field (e.g. name asc, name desc, date asc, date desc, random, meta, etc.). That would be enough to get it to go into your flash as a variable. You might also have to deserialize the image selection array and convert that into a JS array format (which is better than doing is with XML), which can be passed to your flash file as a variable.

    Up for a challenge?

    Actually most of the image stuff is present in the CE gallery or the Gallery module (check my signature). You can copy paste some stuff from there.

  3. #3
    New user
    Join Date
    07-03-09.
    Posts
    11

    Default Re: need a module [?]

    thanks for reply!
    I'll try to figure it out with CE Gallery.
    I thought that XML file would be better than connecting to TL's core every time I load a gallery list.
    The gallery's content won't be changed very often. I just need to pass it to flash file from TL's backend.

  4. #4
    New user
    Join Date
    07-03-09.
    Posts
    11

    Default Re: need a module [?]

    second idea: maybe I could use a Catalog Extention? :D

  5. #5
    Experienced user
    Join Date
    06-10-09.
    Location
    Cape Town, South Africa
    Posts
    1,387

    Default Re: need a module [?]

    Actually, you can do the following, but it has a risk to it. The dfGallery already uses a XML file mechanism, but the XML is cached, so if you do this procedure below and you then remove your cache, you will have to redo this to regen the xml file, otherwise, move the XML to tl_files/...

    • Create a hidden from navigation page[/*:m:1gycs8fs]
    • Place an Article with a dfGallery CE in it, and select the files, etc. You can control the descriptions of each image by using the meta.txt method in TL [/*:m:1gycs8fs]
    • Then display the page, whilst logged into the back-end, which will generate the df_gallery and then you can see if it looks ok.[/*:m:1gycs8fs]
    • Go to the /system/html/ folder and look for the .xml file that matches the time you just opened the page -- that would be the XML file you need. Copy it and you'll be safe.[/*:m:1gycs8fs]


    You can just repeat this process when you need to update the content.

  6. #6
    New user
    Join Date
    07-03-09.
    Posts
    11

    Default Re: need a module [?]

    this is really smart idea.
    the last problem is that there will be 2 users to edit the gallery (me as site's admin, and user editor) ;-/
    but it can be done by teaching the editor to copy XML file or just not to clear cache files

  7. #7
    Experienced user
    Join Date
    06-10-09.
    Location
    Cape Town, South Africa
    Posts
    1,387

    Default Re: need a module [?]

    You can also hack the CE_dfGallery.php file to auto-copy the XML file into a tl_files folder, but this won't be upgrade safe (e.g. overwritten in a upgrade to a newer TL version). You can however, create a Module COPY of CEdfGallery.php and insert the module into the list of modules (this can be done as an extension and will be upgrade safe). Then you can use this as your XML generator instead).

    An Even better idea would be to add this to the gallery module (which I write), so that people can create galleries, and when they SAVE the gallery, I can render the XML file to the relevant folder. This can be done in the back-end, so you won't need any pages. It could be something like:

    [x] Place dfGallery XML copies in this folder
    [ Then display a filetree root point to save to ]

  8. #8
    New user
    Join Date
    07-03-09.
    Posts
    11

    Default Re: need a module [?]

    Quote Originally Posted by thyon
    An Even better idea would be to add this to the gallery module (which I write), so that people can create galleries, and when they SAVE the gallery, I can render the XML file to the relevant folder. This can be done in the back-end, so you won't need any pages. It could be something like:
    this is brilliant :D don't you think

  9. #9
    Experienced user
    Join Date
    06-10-09.
    Location
    Cape Town, South Africa
    Posts
    1,387

    Default Re: need a module [?]

    Use the hack for now, as the dfGallery file format won't change. I'll place it into my cue of features, but it should be fairly easy to implement.

  10. #10
    New user
    Join Date
    07-03-09.
    Posts
    11

    Default Re: need a module [?]

    good luck! give a sign when it's done :D

  11. #11
    New user
    Join Date
    07-03-09.
    Posts
    11

    Default Re: need a module [?]

    I've done as you said:
    1. created hidden site
    2. created dfGallery
    3. viewed a site

    the only new file in /system/html is gallery-102en.json
    but this is not pure XML file :?

    it's contnent looks like this:
    Code:
    {"albums":[{"properties":{"album_type":"custom","title":"szkolenia","description":"","icon":"","exif-type":"none"},"images":[{"title":"Proj01 main","timestamp":1243416689,"thumbnail":"system\/html\/proj01_main-ab705f56.jpg","image":"tl_files\/szkolenia\/proj01_main.jpg"},{"title":"Proj02 main","timestamp":1243416713,"thumbnail":"system\/html\/proj02_main-bdd2002c.jpg","image":"tl_files\/szkolenia\/proj02_main.jpg"},{"title":"Proj03a1 main","timestamp":1243441852,"thumbnail":"system\/html\/proj03a1_main-a99f3f85.jpg","image":"tl_files\/szkolenia\/proj03a1_main.jpg"},{"title":"Proj03a2 main","timestamp":1243441857,"thumbnail":"system\/html\/proj03a2_main-96180501.jpg","image":"tl_files\/szkolenia\/proj03a2_main.jpg"},{"title":"Proj03a3 main","timestamp":1243441862,"thumbnail":"system\/html\/proj03a3_main-56c9c567.jpg","image":"tl_files\/szkolenia\/proj03a3_main.jpg"},{"title":"Proj03a main","timestamp":1243416800,"thumbnail":"system\/html\/proj03a_main-7fb7e281.jpg","image":"tl_files\/szkolenia\/proj03a_main.jpg"},{"title":"Proj03b main","timestamp":1243416838,"thumbnail":"system\/html\/proj03b_main-8e49d844.jpg","image":"tl_files\/szkolenia\/proj03b_main.jpg"},{"title":"Proj03c1 main","timestamp":1243634161,"thumbnail":"system\/html\/proj03c1_main-ed8c0e60.jpg","image":"tl_files\/szkolenia\/proj03c1_main.jpg"},{"title":"Proj03c2 main","timestamp":1243839677,"thumbnail":"system\/html\/proj03c2_main-0cd1248e.jpg","image":"tl_files\/szkolenia\/proj03c2_main.jpg"},{"title":"Proj03 main","timestamp":1243416757,"thumbnail":"system\/html\/proj03_main-c9a78849.jpg","image":"tl_files\/szkolenia\/proj03_main.jpg"}]}],"meta":{"generator":"TYPOlight webCMS","version":"2.7.0","description":"dfGallery configuration file","author":"Leo Feyer","timestamp":1246880395},"config":{"global":{"theme":"http:\/\/rwpg.org\/system\/modules\/dfGallery\/resources\/themes\/standard","skin":"mac.png"},"theme":{"config_theme_music":"","config_theme_slideshow_pauseAtStart":true,"config_theme_slideshow_interval":5,"config_theme_use_skin_config":true},"skin":{"config_xml":"<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<skin>\n\t<beans>\n\t\t<script type=\"text\/json\">\n\t\t<![CDATA[\n\t\t\n[\n\n{ \tid\t\t\t: \"background\",\n\ttype\t\t: \"com.df.dfg.themes.core.ThemeElement\" ,\n\targuments\t: [ {value:\t\t[0,0,100,100]\t\t}],\n\tproperties\t: [\t{name:\"scaleWidth\", \t\t\tvalue:100\t},\n\t\t\t\t\t{name:\"scaleHeight\", \t\t\tvalue:100\t},\n\t\t\t\t\t{name:\"widthUnit\", \t\t\t\tvalue:\"%\"\t},\n\t\t\t\t\t{name:\"heightUnit\", \t\t\tvalue:\"%\"\t}\n\t\t\t\t  ]\n},\n\n\n\n\n\n\n{ \tid\t\t\t: \"MenuSystem.background\",\n\ttype\t\t: \"com.df.dfg.themes.core.ThemeElement\" ,\n\targuments\t: [ {value:\t\t[0,300,100,38]\t\t}],\n\tproperties\t: [\t{name:\"scaleWidth\", \t\t\tvalue:100\t},\n\t\t\t\t\t{name:\"widthUnit\", \t\t\t\tvalue:\"%\"\t}\n\t\t\t\t  ]\n},\n\n{ \tid\t\t\t: \"MenuSystem.albumButton.normal\",\n\ttype\t\t: \"com.df.dfg.themes.core.ThemeElement\" ,\n\targuments\t: [ {value:\t\t[425,0,102,38]\t\t}]\n},\n{ \tid\t\t\t: \"MenuSystem.albumButton.over\",\n\ttype\t\t: \"com.df.dfg.themes.core.ThemeElement\" ,\n\targuments\t: [ {value:\t\t[425,38,102,38]\t\t}]\n},\n{ \tid\t\t\t: \"MenuSystem.albumButton.down\",\n\ttype\t\t: \"com.df.dfg.themes.core.ThemeElement\" ,\n\targuments\t: [ {value:\t\t[425,76,102,38]\t\t}]\n},\n{ \tid\t\t\t: \"MenuSystem.albumButton.hit\",\n\ttype\t\t: \"com.df.dfg.themes.core.ThemeElement\" ,\n\targuments\t: [ {value:\t\t[425,114,102,38]\t\t}]\n},\n\n\n\n{ \tid\t\t\t: \"MenuSystem.settingsButton.normal\",\n\ttype\t\t: \"com.df.dfg.themes.core.ThemeElement\" ,\n\targuments\t: [ {value:\t\t[1179,0,49,38]\t\t}]\n},\n{ \tid\t\t\t: \"MenuSystem.settingsButton.over\",\n\ttype\t\t: \"com.df.dfg.themes.core.ThemeElement\" ,\n\targuments\t: [ {value:\t\t[1179,38,49,38]\t\t}]\n},\n{ \tid\t\t\t: \"MenuSystem.settingsButton.down\",\n\ttype\t\t: \"com.df.dfg.themes.core.ThemeElement\" ,\n\targuments\t: [ {value:\t\t[1179,76,49,38]\t\t}]\n},\n{ \tid\t\t\t: \"MenuSystem.settingsButton.hit\",\n\ttype\t\t: \"com.df.dfg.themes.core.ThemeElement\" ,\n\targuments\t: [ {value:\t\t[1179,114,49,38]\t\t}]\n},\n\n\n\n{ \tid\t\t\t: \"MenuSystem.volumeButton.high.normal\",\n\ttype\t\t: \"com.df.dfg.themes.core.ThemeElement\" ,\n\targuments\t: [ {value:\t\t[1131,0,49,38]\t\t}]\n},\n{ \tid\t\t\t: \"MenuSystem.volumeButton.high.over\",\n\ttype\t\t: \"com.df.dfg.themes.core.ThemeElement\" ,\n\targuments\t: [ {value:\t\t[1131,0,49,38]\t\t}]\n},\n{ \tid\t\t\t: \"MenuSystem.volumeButton.high.down\",\n\ttype\t\t: \"com.df.dfg.themes.core.ThemeElement\" ,\n\targuments\t: [ {value:\t\t[1131,0,49,38]\t\t}]\n},\n{ \tid\t\t\t: \"MenuSystem.volumeButton.high.hit\",\n\ttype\t\t: \"com.df.dfg.themes.core.ThemeElement\" ,\n\targuments\t: [ {value:\t\t[1131,0,49,38]\t\t}]\n},\n\n\n{ \tid\t\t\t: \"MenuSystem.volumeButton.medium.normal\",\n\ttype\t\t: \"com.df.dfg.themes.core.ThemeElement\" ,\n\targuments\t: [ {value:\t\t[1131,38,49,38]\t\t}]\n},\n{ \tid\t\t\t: \"MenuSystem.volumeButton.medium.over\",\n\ttype\t\t: \"com.df.dfg.themes.core.ThemeElement\" ,\n\targuments\t: [ {value:\t\t[1131,38,49,38]\t\t}]\n},\n{ \tid\t\t\t: \"MenuSystem.volumeButton.medium.down\",\n\ttype\t\t: \"com.df.dfg.themes.core.ThemeElement\" ,\n\targuments\t: [ {value:\t\t[1131,38,49,38]\t\t}]\n},\n{ \tid\t\t\t: \"MenuSystem.volumeButton.medium.hit\",\n\ttype\t\t: \"com.df.dfg.themes.core.ThemeElement\" ,\n\targuments\t: [ {value:\t\t[1131,38,49,38]\t\t}]\n},\n\n\n\n{ \tid\t\t\t: \"MenuSystem.volumeButton.low.normal\",\n\ttype\t\t: \"com.df.dfg.themes.core.ThemeElement\" ,\n\targuments\t: [ {value:\t\t[1131,76,49,38]\t\t}]\n},\n{ \tid\t\t\t: \"MenuSystem.volumeButton.low.over\",\n\ttype\t\t: \"com.df.dfg.themes.core.ThemeElement\" ,\n\targuments\t: [ {value:\t\t[1131,76,49,38]\t\t}]\n},\n{ \tid\t\t\t: \"MenuSystem.volumeButton.low.down\",\n\ttype\t\t: \"com.df.dfg.themes.core.ThemeElement\" ,\n\targuments\t: [ {value:\t\t[1131,76,49,38]\t\t}]\n},\n{ \tid\t\t\t: \"MenuSystem.volumeButton.low.hit\",\n\ttype\t\t: \"com.df.dfg.themes.core.ThemeElement\" ,\n\targuments\t: [ {value:\t\t[1131,76,49,38]\t\t}]\n},\n\n\n{ \tid\t\t\t: \"MenuSystem.volumeButton.mute.normal\",\n\ttype\t\t: \"com.df.dfg.themes.core.ThemeElement\" ,\n\targuments\t: [ {value:\t\t[1131,114,49,38]\t\t}]\n},\n{ \tid\t\t\t: \"MenuSystem.volumeButton.mute.over\",\n\ttype\t\t: \"com.df.dfg.themes.core.ThemeElement\" ,\n\targuments\t: [ {value:\t\t[1131,114,49,38]\t\t}]\n},\n{ \tid\t\t\t: \"MenuSystem.volumeButton.mute.down\",\n\ttype\t\t: \"com.df.dfg.themes.core.ThemeElement\" ,\n\targuments\t: [ {value:\t\t[1131,114,49,38]\t\t}]\n},\n{ \tid\t\t\t: \"MenuSystem.volumeButton.mute.hit\",\n\ttype\t\t: \"com.df.dfg.themes.core.ThemeElement\" ,\n\targuments\t: [ {value:\t\t[1131,114,49,38]\t\t}]\n},\n\n\n\n{ \tid\t\t\t: \"MenuSystem.fullscreenButton.normal\",\n\ttype\t\t: \"com.df.dfg.themes.core.ThemeElement\" ,\n\targuments\t: [ {value:\t\t[1009,0,122,38]\t\t}]\n},\n{ \tid\t\t\t: \"MenuSystem.fullscreenButton.over\",\n\ttype\t\t: \"com.df.dfg.themes.core.ThemeElement\" ,\n\targuments\t: [ {value:\t\t[1009,38,122,38]\t\t}]\n},\n{ \tid\t\t\t: \"MenuSystem.fullscreenButton.down\",\n\ttype\t\t: \"com.df.dfg.themes.core.ThemeElement\" ,\n\targuments\t: [ {value:\t\t[1009,76,122,38]\t\t}]\n},\n{ \tid\t\t\t: \"MenuSystem.fullscreenButton.hit\",\n\ttype\t\t: \"com.df.dfg.themes.core.ThemeElement\" ,\n\targuments\t: [ {value:\t\t[1009,114,122,38]\t\t}]\n},\n\n\n{ \tid\t\t\t: \"MenuSystem.playButton.normal\",\n\ttype\t\t: \"com.df.dfg.themes.core.ThemeElement\" ,\n\targuments\t: [ {value:\t\t[772,0,118,38]\t\t}]\n},\n{ \tid\t\t\t: \"MenuSystem.playButton.over\",\n\ttype\t\t: \"com.df.dfg.themes.core.ThemeElement\" ,\n\targuments\t: [ {value:\t\t[772,38,118,38]\t\t}]\n},\n{ \tid\t\t\t: \"MenuSystem.playButton.down\",\n\ttype\t\t: \"com.df.dfg.themes.core.ThemeElement\" ,\n\targuments\t: [ {value:\t\t[772,76,118,38]\t\t}]\n},\n{ \tid\t\t\t: \"MenuSystem.playButton.hit\",\n\ttype\t\t: \"com.df.dfg.themes.core.ThemeElement\" ,\n\targuments\t: [ {value:\t\t[772,114,118,38]\t\t}]\n},\n\n\n{ \tid\t\t\t: \"MenuSystem.pauseButton.normal\",\n\ttype\t\t: \"com.df.dfg.themes.core.ThemeElement\" ,\n\targuments\t: [ {value:\t\t[890,0,118,38]\t\t}]\n},\n{ \tid\t\t\t: \"MenuSystem.pauseButton.over\",\n\ttype\t\t: \"com.df.dfg.themes.core.ThemeElement\" ,\n\targuments\t: [ {value:\t\t[890,38,118,38]\t\t}]\n},\n{ \tid\t\t\t: \"MenuSystem.pauseButton.down\",\n\ttype\t\t: \"com.df.dfg.themes.core.ThemeElement\" ,\n\targuments\t: [ {value:\t\t[890,76,118,38]\t\t}]\n},\n{ \tid\t\t\t: \"MenuSystem.pauseButton.hit\",\n\ttype\t\t: \"com.df.dfg.themes.core.ThemeElement\" ,\n\targuments\t: [ {value:\t\t[890,114,118,38]\t\t}]\n},\n\n\n{ \tid\t\t\t: \"MenuSystem.photosUpButton.normal\",\n\ttype\t\t: \"com.df.dfg.themes.core.ThemeElement\" ,\n\targuments\t: [ {value:\t\t[528,0,122,38]\t\t}]\n},\n{ \tid\t\t\t: \"MenuSystem.photosUpButton.over\",\n\ttype\t\t: \"com.df.dfg.themes.core.ThemeElement\" ,\n\targuments\t: [ {value:\t\t[528,38,122,38]\t\t}]\n},\n{ \tid\t\t\t: \"MenuSystem.photosUpButton.down\",\n\ttype\t\t: \"com.df.dfg.themes.core.ThemeElement\" ,\n\targuments\t: [ {value:\t\t[528,76,122,38]\t\t}]\n},\n{ \tid\t\t\t: \"MenuSystem.photosUpButton.hit\",\n\ttype\t\t: \"com.df.dfg.themes.core.ThemeElement\" ,\n\targuments\t: [ {value:\t\t[528,114,122,38]\t\t}]\n},\n\n\n{ \tid\t\t\t: \"MenuSystem.photosDownButton.normal\",\n\ttype\t\t: \"com.df.dfg.themes.core.ThemeElement\" ,\n\targuments\t: [ {value:\t\t[650,0,122,38]\t\t}]\n},\n{ \tid\t\t\t: \"MenuSystem.photosDownButton.over\",\n\ttype\t\t: \"com.df.dfg.themes.core.ThemeElement\" ,\n\targuments\t: [ {value:\t\t[650,38,122,38]\t\t}]\n},\n{ \tid\t\t\t: \"MenuSystem.photosDownButton.down\",\n\ttype\t\t: \"com.df.dfg.themes.core.ThemeElement\" ,\n\targuments\t: [ {value:\t\t[650,76,122,38]\t\t}]\n},\n{ \tid\t\t\t: \"MenuSystem.photosDownButton.hit\",\n\ttype\t\t: \"com.df.dfg.themes.core.ThemeElement\" ,\n\targuments\t: [ {value:\t\t[650,114,122,38]\t\t}]\n},\n\n\n\n\n\n\n{ \tid\t\t\t: \"ImageViewer.outerBackground\",\n\ttype\t\t: \"com.df.dfg.themes.core.ThemeElement\" ,\n\targuments\t: [ {value:\t\t[0,200,100,100]\t\t}],\n\tproperties\t: [\t{name:\"scaleWidth\", \t\t\tvalue:100\t},\n\t\t\t\t\t{name:\"scaleHeight\", \t\t\tvalue:100\t},\n\t\t\t\t\t{name:\"widthUnit\", \t\t\t\tvalue:\"%\"\t},\n\t\t\t\t\t{name:\"heightUnit\", \t\t\tvalue:\"%\"\t}\n\t\t\t\t  ]\n},\n\n\n\n\n{ \tid\t\t\t: \"ThumbnailViewer.background\",\n\ttype\t\t: \"com.df.dfg.themes.core.ThemeElement\" ,\n\targuments\t: [ {value:\t\t[0,200,100,100]\t\t}],\n\tproperties\t: [\t{name:\"scaleWidth\", \t\t\tvalue:100\t},\n\t\t\t\t\t{name:\"scaleHeight\", \t\t\tvalue:100\t},\n\t\t\t\t\t{name:\"widthUnit\", \t\t\t\tvalue:\"%\"\t},\n\t\t\t\t\t{name:\"heightUnit\", \t\t\tvalue:\"px\"\t}\n\t\t\t\t  ]\n},\n\n\n\n{ \tid\t\t\t: \"Thumbnail.outerBackground\",\n\ttype\t\t: \"com.df.dfg.themes.core.ThemeElement\" ,\n\targuments\t: [ {value:\t\t[100,50,100,100]\t\t}],\n\tproperties\t: [\t{name:\"scaleWidth\", \t\t\tvalue:100\t},\n\t\t\t\t\t{name:\"scaleHeight\", \t\t\tvalue:100\t},\n\t\t\t\t\t{name:\"widthUnit\", \t\t\t\tvalue:\"px\"\t},\n\t\t\t\t\t{name:\"heightUnit\", \t\t\tvalue:\"px\"\t}\n\t\t\t\t  ]\n},\n\n\n\n{ \tid\t\t\t: \"ThumbnailTitle.background\",\n\ttype\t\t: \"com.df.dfg.themes.core.ThemeElement\" ,\n\targuments\t: [ {value:\t\t[0,100,100,100]\t\t}],\n\tproperties\t: [\t{name:\"scaleHeight\",\t\t\tvalue:75\t},\n\t\t\t\t\t{name:\"widthUnit\", \t\t\t\tvalue:\"%\"\t}\n\t\t\t\t  ]\n},\n\n{ \tid\t\t\t: \"ThumbnailTitle.title.textFormat\",\n\ttype\t\t: \"flash.text.TextFormat\" ,\n\tproperties\t: [\t{name:\"size\", \t\t\tvalue:\"18\"\t\t\t},\n\t\t\t\t\t{name:\"font\", \t\t\tvalue:\"Lucida Grande\"\t\t},\n\t\t\t\t\t{name:\"color\", \t\t\tvalue:\"0x292929\"\t},\n\t\t\t\t\t{name:\"bold\", \t\t\tvalue:false\t\t\t}\n\t\t\t\t  ]\n},\n{ \tid\t\t\t: \"ThumbnailTitle.description.textFormat\",\n\ttype\t\t: \"flash.text.TextFormat\" ,\n\tproperties\t: [\t{name:\"size\", \t\t\tvalue:\"11\"\t\t\t},\n\t\t\t\t\t{name:\"font\", \t\t\tvalue:\"Arial\"\t\t},\n\t\t\t\t\t{name:\"color\", \t\t\tvalue:\"0x454545\"\t},\n\t\t\t\t\t{name:\"leading\", \t\tvalue:10\t\t\t},\n\t\t\t\t\t{name:\"bold\", \t\t\tvalue:false\t\t\t}\n\t\t\t\t  ]\n},\n\n\n\n\n{ \tid\t\t\t: \"OverlayMenu.previousImageButton.normal\",\n\ttype\t\t: \"com.df.dfg.themes.core.ThemeElement\" ,\n\targuments\t: [ {value:\t\t[325,0,50,50]\t\t}]\n},\n{ \tid\t\t\t: \"OverlayMenu.previousImageButton.over\",\n\ttype\t\t: \"com.df.dfg.themes.core.ThemeElement\" ,\n\targuments\t: [ {value:\t\t[325,50,50,50]\t\t}]\n},\n{ \tid\t\t\t: \"OverlayMenu.previousImageButton.down\",\n\ttype\t\t: \"com.df.dfg.themes.core.ThemeElement\" ,\n\targuments\t: [ {value:\t\t[325,100,50,50]\t\t}]\n},\n{ \tid\t\t\t: \"OverlayMenu.previousImageButton.hit\",\n\ttype\t\t: \"com.df.dfg.themes.core.ThemeElement\" ,\n\targuments\t: [ {value:\t\t[325,150,50,50]\t\t}]\n},\n\n\n\n{ \tid\t\t\t: \"OverlayMenu.nextImageButton.normal\",\n\ttype\t\t: \"com.df.dfg.themes.core.ThemeElement\" ,\n\targuments\t: [ {value:\t\t[376,0,50,50]\t\t}]\n},\n{ \tid\t\t\t: \"OverlayMenu.nextImageButton.over\",\n\ttype\t\t: \"com.df.dfg.themes.core.ThemeElement\" ,\n\targuments\t: [ {value:\t\t[376,50,50,50]\t\t}]\n},\n{ \tid\t\t\t: \"OverlayMenu.nextImageButton.down\",\n\ttype\t\t: \"com.df.dfg.themes.core.ThemeElement\" ,\n\targuments\t: [ {value:\t\t[376,100,50,50]\t\t}]\n},\n{ \tid\t\t\t: \"OverlayMenu.nextImageButton.hit\",\n\ttype\t\t: \"com.df.dfg.themes.core.ThemeElement\" ,\n\targuments\t: [ {value:\t\t[376,150,50,50]\t\t}]\n},\n\n\n\n{ \tid\t\t\t: \"OverlayMenu.centerPanel.background\",\n\ttype\t\t: \"com.df.dfg.themes.core.ThemeElement\" ,\n\targuments\t: [ {value:\t\t[100,0,125,50]\t\t}]\n},\n\n\n{ \tid\t\t\t: \"OverlayMenu.infoButton.normal\",\n\ttype\t\t: \"com.df.dfg.themes.core.ThemeElement\" ,\n\targuments\t: [ {value:\t\t[226,0,50,50]\t\t}]\n},\n{ \tid\t\t\t: \"OverlayMenu.downloadButton.over\",\n\ttype\t\t: \"com.df.dfg.themes.core.ThemeElement\" ,\n\targuments\t: [ {value:\t\t[226,50,50,50]\t\t}]\n},\n{ \tid\t\t\t: \"OverlayMenu.downloadButton.down\",\n\ttype\t\t: \"com.df.dfg.themes.core.ThemeElement\" ,\n\targuments\t: [ {value:\t\t[226,100,50,50]\t\t}]\n},\n{ \tid\t\t\t: \"OverlayMenu.downloadButton.hit\",\n\ttype\t\t: \"com.df.dfg.themes.core.ThemeElement\" ,\n\targuments\t: [ {value:\t\t[226,150,50,50]\t\t}]\n},\n\n\n{ \tid\t\t\t: \"OverlayMenu.downloadButton.normal\",\n\ttype\t\t: \"com.df.dfg.themes.core.ThemeElement\" ,\n\targuments\t: [ {value:\t\t[276,0,50,50]\t\t}]\n},\n{ \tid\t\t\t: \"OverlayMenu.downloadButton.over\",\n\ttype\t\t: \"com.df.dfg.themes.core.ThemeElement\" ,\n\targuments\t: [ {value:\t\t[276,50,50,50]\t\t}]\n},\n{ \tid\t\t\t: \"OverlayMenu.downloadButton.down\",\n\ttype\t\t: \"com.df.dfg.themes.core.ThemeElement\" ,\n\targuments\t: [ {value:\t\t[276,100,50,50]\t\t}]\n},\n{ \tid\t\t\t: \"OverlayMenu.downloadButton.hit\",\n\ttype\t\t: \"com.df.dfg.themes.core.ThemeElement\" ,\n\targuments\t: [ {value:\t\t[276,150,50,50]\t\t}]\n},\n\n\n{ \tid\t\t\t: \"AlbumList.background\",\n\ttype\t\t: \"com.df.dfg.themes.core.ThemeElement\" ,\n\targuments\t: [ {value:\t\t[326,152,100,25]\t\t}]\n},\n\n{ \tid\t\t\t: \"AlbumList.listItem.normal\",\n\ttype\t\t: \"com.df.dfg.themes.core.ThemeElement\" ,\n\targuments\t: [ {value:\t\t[426,152,100,25]\t\t}]\n},\n{ \tid\t\t\t: \"AlbumList.listItem.over\",\n\ttype\t\t: \"com.df.dfg.themes.core.ThemeElement\" ,\n\targuments\t: [ {value:\t\t[426,177,100,25]\t\t}]\n},\n{ \tid\t\t\t: \"AlbumList.listItem.down\",\n\ttype\t\t: \"com.df.dfg.themes.core.ThemeElement\" ,\n\targuments\t: [ {value:\t\t[426,202,100,25]\t\t}]\n},\n{ \tid\t\t\t: \"AlbumList.listItem.hit\",\n\ttype\t\t: \"com.df.dfg.themes.core.ThemeElement\" ,\n\targuments\t: [ {value:\t\t[426,227,100,25]\t\t}]\n},\n\n\n\n{ \tid\t\t\t: \"AlbumList.listItem.textField\",\n\ttype\t\t: \"flash.text.TextField\" ,\n\tproperties\t: [\t{name:\"selectable\", \tvalue:false\t\t\t},\n\t\t\t\t\t{name:\"autoSize\", \t\tvalue:\"left\"\t\t},\n\t\t\t\t\t{name:\"height\", \t\tvalue:\"18\"\t\t\t}\n\t\t\t\t  ]\n},\n\n\n{ \tid\t\t\t: \"AlbumList.listItem.textFormat\",\n\ttype\t\t: \"flash.text.TextFormat\" ,\n\tproperties\t: [\t{name:\"size\", \t\t\tvalue:\"12\"\t\t\t},\n\t\t\t\t\t{name:\"font\", \t\t\tvalue:\"Arial\"\t\t},\n\t\t\t\t\t{name:\"color\", \t\t\tvalue:\"0xFFFFFF\"\t},\n\t\t\t\t\t{name:\"leftMargin\", \tvalue:10\t\t\t},\n\t\t\t\t\t{name:\"rightMargin\", \tvalue:10\t\t\t},\n\t\t\t\t\t{name:\"bold\", \t\t\tvalue:true\t\t\t}\n\t\t\t\t  ]\n},\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n{\n\tid        : \"my_format\" ,\n\ttype      : \"flash.text.TextFormat\" ,\n\targuments : [ { value:\"arial\" } , { value:24 } , { value:0xFEF292 } , { value:true } ]\n}\n,\n{\n\tid         : \"my_field\" ,\n\ttype       : \"flash.text.TextField\"  ,\n\tproperties :\n\t[\n\t    { name : \"autoSize\"          , value  : \"left\"            } ,\n\t    { name : \"defaultTextFormat\" , ref    : \"my_format\"       } ,\n\t    { name : \"text\"              , value  : \"HELLO WORLD\"     } ,\n\t    { name : \"x\"                 , value  : 10                } ,\n\t    { name : \"y\"                 , value  : 10                }\n\t]\n}\n,\n{\n\tid               : \"root\" ,\n\ttype             : \"flash.display.MovieClip\"  ,\n\t\/\/factoryReference : \"#root\" ,\n\tsingleton        : true ,\n\tproperties       :\n\t[\n\t    { name : \"addChild\" , arguments  : [ { ref:\"my_field\" } ] }\n\t]\n}\n\n\n\n] ;\n\n\n\n\t\t]]>\n\t\t<\/script>\n\t<\/beans>\n<\/skin>"}}}

  12. #12
    Experienced user
    Join Date
    06-10-09.
    Location
    Cape Town, South Africa
    Posts
    1,387

    Default Re: need a module [?]

    There are usually common routines to convert JSON (javascript object notation) into XML. This can be done in php or javascript. JSON is much more compact than XML, therefore more and more people are using it instead of XML.

    Using JSON directly as an object in flash (no XML required):
    http://www.actionscript.org/resources/a ... Page1.html

    If you HAVE to convert it first, then do it in PHP (you can write a utility for this):
    http://www.php.net/manual/en/function.json-decode.php

    Then you can use the PHP array structure, to convert it back to XML write-outs.

  13. #13
    New user
    Join Date
    07-03-09.
    Posts
    11

    Default Re: need a module [?]

    I've found another solution: http://www.typolight.org/extension-list ... 26.en.html
    As I wanted my gallery to look almast as AutoViewer (http://www.simpleviewer.net/autoviewer/)
    and AutoViewer and SimpleViewer are from one family, I could try to use flashGal extention to generate the XML file and use it for my own gallery

  14. #14
    New user
    Join Date
    07-03-09.
    Posts
    11

    Default Re: need a module [?]

    finally done! 8-)
    I hacked a flashGal module (have renamed it to myFlashGal)
    I reviewed and hacked generated XML file structure and changed destination path from /system/html to /tl_files
    Works fine.

    Now I have the ActionScript to do :D

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •