|
Post by Hippani on Jun 28, 2013 14:06:24 GMT
Well if you use my previous example...
var NumberOfImages=5; //The number of images in the sequence var RandomIndex=1+Math.floor(Math.random()*NumberOfImages); OpenImageSequenceIndex("MySequenceName",RandomIndex);
if(RandomIndex==1){Total+=100;} if(RandomIndex==2){Total+=150;} etc..
|
|
vivek
New Member
Posts: 17
|
Post by vivek on Jun 29, 2013 9:10:37 GMT
i have used five image sequence with three images in each scene. can i set a attribute of each image that loading randomly and save their value temporarily (in cookies) and can display calculation in last scene ?
|
|
|
Post by Hippani on Jun 29, 2013 13:43:10 GMT
I'm not sure how much more I can help. i'm really struggling to understand what you are doing.
|
|
vivek
New Member
Posts: 17
|
Post by vivek on Jul 1, 2013 6:15:09 GMT
actually i am making a animation with six scene and in each scene i am loading three images randomly(one image at a time) in image sequence and at the end it is like
1. first scene loading image1 from images sequence having 3 images 2. second scene loading image5 from images sequence having 3 images 3. third scene loading image2 etc.
means five scene loading five images only from the 15 images. can i give any alt or value to images and calculate their sum at the end ?
now in 6th frame can i know that which image is loading in each scene and can i give some values to images and calculate them in 6th scene ?
Thanks
|
|
|
Post by Hippani on Jul 1, 2013 8:10:44 GMT
Well if you use my previous example... function LoadRandomImage(){ var NumberOfImages=5; //The number of images in the sequence var RandomIndex=1+Math.floor(Math.random()*NumberOfImages); OpenImageSequenceIndex("MySequenceName",RandomIndex); if(RandomIndex==1){Total+=100;} if(RandomIndex==2){Total+=150;} etc.. }
|
|
vivek
New Member
Posts: 17
|
Post by vivek on Jul 1, 2013 8:50:41 GMT
the above example i have placed in all five scene as all scene has different images. That's working fine but how can i know that which image is loading in particular scene and how to get their value at last to calculate the sum.
|
|
|
Post by Hippani on Jul 1, 2013 11:52:02 GMT
You can work out which image using the RandomIndex value.
|
|
vivek
New Member
Posts: 17
|
Post by vivek on Jul 2, 2013 14:41:32 GMT
Hi Guys, I generated random images which is displayed at every scene.I am using SetCookie()and getCookie() function to set and get cookie value.I am using same cookie name for each scene,is it correct or any other solution? One more question: How to pass image unique number to resume button which is placed over the each image?Plz.help me.. Thanks, Vivek
|
|
|
Post by Hippani on Jul 3, 2013 9:26:10 GMT
I don't know weather you need the same cookie name for each scene. I'm not sure what you're doing. What is the image unique number?
|
|
vivek
New Member
Posts: 17
|
Post by vivek on Jul 3, 2013 10:45:07 GMT
I have 5 scene.Each scene have one random image at a time.For each image,there is cost associated with it like img1 have 100,img2 have 440 and so on....There is resume button present on each image.Means there are 5 images present in my circle.
My Logic:I am using cookie to store each image cost.When i click on each resume button,I have to sent the associated cost with resume button then i store that cost in cookie.After each resume i collect all cookie values and sum all costs and i get final O/P.But my problem is that,How i sent the cost associated with image and collect each scene image's cost and finally get the sum of all image cost?.....k...
Please suggest the way...
Thanks Vivek
|
|
|
Post by Hippani on Jul 3, 2013 13:36:16 GMT
I don't think you need to use cookies for this. In general script add a variable. var Total=0; Add your cost to this variable. You can then access the value Total from anywhere in the movie.
|
|
vivek
New Member
Posts: 17
|
Post by vivek on Jul 3, 2013 14:25:07 GMT
i sent you a mail to describe exact scenario.
|
|
vivek
New Member
Posts: 17
|
Post by vivek on Jul 11, 2013 13:47:01 GMT
The Animation is working fine in player and producing random images and their sums perfectly but there are some problem after exporting the animation to HTML
1. Random images not loading , it show only same image . 2. Values and it's sums not displaying in text box. 3. images disappears in some places.
is there any setting for exporting it to HTML ?
|
|
|
Post by Hippani on Jul 11, 2013 15:35:45 GMT
You'll have to send us the .hani to see if we can work it out.
|
|