Heya guys,
Background Info:
At the moment I'm in the process of trying to create dynamic movieclips onto the stage using information gathered from the database table.
The table structure is:
projID - the project the asset(movieclip) is linked to.
assetType - (this could be text/url/image and refers to the type of movieclip that would be created.)
posX - (x position of the movieclip on the interface)
posY - (y position of the movieclip on the interface)
content - (actual content that will placed inside the generated movieclip)
At the present moment my experience of Flash/PHP has been purely passing variables back and forth to create things such as mail forms or login/registration forms (inc validation).
I have also started playing around with linkage names and attach movieclip and so far have managed to do a test where I attached a Circle instance to the stage and within that I attached Square instance.
Planned Method
My current thinking would be something like this:
- Query the DB for the number of assets
- Return the number and relevant info (x / y pos, content, type) to Flash
- Generate relevant movieclips in positions and add the content (e.g. text)
Question
Is this the best approach at implementing something like this?
As of yet I have limited knowledge of using Arrays in Flash and PHP (let alone both of them together), so I was possibly thinking that it might be better to send the results of each movieclip over to flash in a form of an Array element then break it up in Flash and generate the movieclip.
I was wondering if someone could give me some input on my ideas and possibly point me in the right direction on howto go about constructing the code.
Thanks for your time - and sorry for the headers, I just figured it would break the post up and make it more manageable to read!