Forum Moderators: open

Message Too Old, No Replies

External .txt and Jpeg issues....

Controlling the number of items loaded into my swf

         

zackattack

6:04 pm on Nov 26, 2004 (gmt 0)

10+ Year Member



Hi..
I am building (using MX 2004) a flash demonstration for a client's online gift wrapping service, which they will be updating weekly. As each demo may have a different number of steps (depending on the demo that week) anyone got an idea how I can build the demo to accommodate this.

So far I have worked out I will need to decide on Max number of steps - say 10 steps and build 10 swf files each loading a .txt and .Jpg into themsleves, then build a main movie into which I would load each swf.

The reason for doing it all this way is so the client can update the Jpeg and .txt themself. The problem comes when they only have an 8 step demo that week - how can I get flash to allow for this and finsish the demo nicely..?

I need a simple solution really... any help would be very greatfully received

ZA

benihana

9:50 am on Nov 29, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



you could use another text file containing just a variable name and number and load that in so flash knows how many other items it has to load.

could be as simple as

num=8

zackattack

10:41 am on Nov 29, 2004 (gmt 0)

10+ Year Member



Hi, thanks for the reply

Yes that makes total sense.. you might have gathered from my question I am not an AS expert (still on the steep learning curve) Could you show me very simply how flash would check this var first, I mean what the code would look something like..? I should be able to figure the rest out for myself. I am follwoing a tutorial on how to set up a slide show and am adapting this..

any help is appreciated...

ZA

zackattack

8:01 pm on Dec 3, 2004 (gmt 0)

10+ Year Member



Hi

Actually, what I am trying to do is load each Jpeg and corresponding text file in dynamically - as the user clicks 'Next' the movie loads in swf01 which has jpeg01 in it (with transition) and text from external text file. when user clicks on 'Next' again I want to load the next set and so on Also need to have Previous step function too

The problem is sometimes there will only be 8 stpes as opposed to 10 and I dont want to re-publish the movie each time. I also need to have something that indicates the number of steps - bit like 'this is Step 1 of 8'

Any Ideas anyone -? thanks in advance of any help