A Flash Developer Resource Site

Results 1 to 12 of 12

Thread: How do I go about doing this?

  1. #1
    Registered User
    Join Date
    Jan 2012
    Posts
    1

    How do I go about doing this?

    Ok, I want to create sort of image gallery in flash for my mother's business.

    Here's a quick mockup

    What would I need to do to achieve this?

    Here's what I've got so far:
    Rooms 1 - 4 will be buttons which will scroll up and down via scrollbar 1

    Room X thumb 1-4 will appear depending on which of the rooms are selected from the left navigation bar (rooms 1-4). this will be controlled via scrollbar 2 at the bottom

    Room X Thumb X Image will change depending on which Room X Thumb 1-4 is selected.

    How would I do this? I'm a beginner.

  2. #2
    Senior Member
    Join Date
    Feb 2005
    Posts
    1,834
    For starters break up the project and ask more specific questions, right now you're basically asking someone to do the whole project for you. Don't take this the wrong way, I do want to help you but I don't want to shoot into the dark in order to do it.
    .

  3. #3
    Senior Member
    Join Date
    Mar 2011
    Location
    Riverside ish...
    Posts
    173
    learn how to link xml into flash.

  4. #4
    Senior Member
    Join Date
    Feb 2005
    Posts
    1,834
    Depends if you want to use xml. Personally I hate xml, I'd rather use a text file to take care of it. To each their own I guess. That is if you want to learn how to do proper formatting with xml as well as the interpreting tools to extract what you need from an xml file.
    .

  5. #5
    Senior Member
    Join Date
    Mar 2011
    Location
    Riverside ish...
    Posts
    173
    but he could quickly redo the references to the images, and have the ability to edit the flash without editing the fla! ^_^

  6. #6
    Senior Member
    Join Date
    Feb 2005
    Posts
    1,834
    That can be done without xml. You can use plaintext and do your own parsing, also json. I prefer json if I have to use a formatted one.
    .

  7. #7
    Senior Member
    Join Date
    Mar 2011
    Location
    Riverside ish...
    Posts
    173
    link please?

  8. #8
    Senior Member
    Join Date
    Feb 2005
    Posts
    1,834
    http://www.republicofcode.com/tutori...3externaltext/ So what you can do is in the text file, preselect a character to separate everything. Like a , or you can use a combination of characters like <> It doesn't matter as long as you don't use the same character in the saved data. Something that I've gotten to like recently is using this class: http://help.adobe.com/en_US/FlashPla...ictionary.html to hold the data, then you can link each variable with a name like this:
    blah:43><hot:asdf><ask:forget your question><return:and so forth
    Then you can do this: data.split("><") and then do a loop through the array and assign every data point into the dictionary by splitting each one using ":' and use the name on the left side for the lookup key.
    .

  9. #9
    Senior Member
    Join Date
    Mar 2011
    Location
    Riverside ish...
    Posts
    173
    hmm, i dont know why I did not think of that. Its very similar to textfile data parsing in visual basic...

    in fact to deal with csv files you can do the very same thing...

    the question now become performance, which will you achieve a quicker parsing of variables, running trough a loop that spilts the data down two ways, or a xml reference that just looks for a tag and grabs the info...

    i think i may do an investigation and make a program to post on here to see which one is quicker!

  10. #10
    Senior Member
    Join Date
    Feb 2005
    Posts
    1,834
    That's a thought although if you think about it, xml is pretty much doing the same thing. It's just with this way you're doing it with your own structure. In fact, xml has a lot more cleaning up to do because of all the extra formatting. I know this because I've had to deal with getting a json parser to work (different language). Speedwise will all depend on how much optimisation xml parsing gets outside of actionscript.
    .

  11. #11
    Senior Member
    Join Date
    Mar 2011
    Location
    Riverside ish...
    Posts
    173
    as soon as I have some free time Ill program and investigation into that, that counts every millisecond and we will test speeds on different methods.

  12. #12
    Junior Member
    Join Date
    Nov 2012
    Posts
    6
    Quote Originally Posted by swak View Post
    That's a thought although if you think about it, xml is pretty much doing the same thing. It's just with this way you're doing it with your own structure. In fact, xml has a lot more Bond Cleaning Brisbane up to do because of all the extra formatting. I know this because I've had to deal with getting a json parser to work (different language). Speedwise will all depend on how much optimisation xml parsing gets outside of actionscript.
    You are absolutely right.. I really hate xml formatting just because of cleaning which we need to do in this format.

Posting Permissions

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




Click Here to Expand Forum to Full Width

HTML5 Development Center