# Need help wif random page. urgent =(

**URL:** <https://forum.kirupa.com/t/need-help-wif-random-page-urgent/181173>\
**Category:** Uncategorized\
**Created:** [March 7, 2006, 2:43am UTC](https://forum.kirupa.com/t/need-help-wif-random-page-urgent/181173 "2006-03-07T02:43:19Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![skytq](https://avatars.discourse-cdn.com/v4/letter/s/f1d935/32.png) [@skytq](https://forum.kirupa.com/u/skytq)\
**Post date:** [March 7, 2006, 2:43am UTC](https://forum.kirupa.com/t/need-help-wif-random-page-urgent/181173/1 "2006-03-07T02:43:19Z")

</div>

hi all,

really need your guys on this. i have tried many times but i dunno why it doesnt seems to work.

ok i have this .asp page tht has a random image from 1-9 and a flash with 1-9 pages too. wat i wanna do is… let’s say on the asp page, the random image is image number 5, when i click on it, it goes to flash page number 5.

but unfortunately, it doesn’t work.

and here’s the flash code:

```auto

loadVariablesNum("storedata.asp", 0, "GET");
if (question_show==1){
    _root.pageone.gotoAndPlay("question1");
}else
if (question_show==2){
    _root.pageone.gotoAndPlay("question2");
}else
if (question_show==3){
    _root.pageone.gotoAndPlay("question3");
}else
if (question_show==4){
    _root.pagetwo.gotoAndPlay("question4");
}else
if (question_show==5){
    _root.pagetwo.gotoAndPlay("question5");
}else
if (question_show==6){
    _root.pagetwo.gotoAndPlay("question6");
}else
if (question_show==7){
    _root.pagethree.gotoAndPlay("question7");
}else
if (question_show==8){
    _root.pagethree.gotoAndPlay("question8");
}else
if (question_show==9){
    _root.pagethree.gotoAndPlay("question9");
}
stop();

```

i have also tried inserting “question\_show=6;” just to see whether it works or not. yes, it does work.

hope to hear from u guys soon. thanx!
