Groups > Multimedia > Macromedia Authorware > Re: From AW to Flash_Random Navigation




Re: From AW to Flash_Random Navigation

Re: From AW to Flash_Random Navigation
Thu, 20 Mar 2008 22:34:31 -050
"cmacachor" <webforumsuser@macromedia.com> wrote in message 
news:frv679$qd6$1@forums.macromedia.com...
>I am trying to migrate to Flash, and I'm missing many of Authorware's 
>features
> especially when it comes to interaction.   I'm writing hoping that there's
> someone out there equally at home and familiar with both AW and Flash.
> Specifically, how can I navigate to any random scene (e.g., several quiz 
> items)
> in Flash, the way I could have easily done it with a decision icon in AW? 
> Any
> help will be greatly appreciated.

I'd create an array that contains the names of all the scenes and then 
create an array that randomly includes the indices of the other array and 
key your navigation off of that.  Note this isn't real code since I haven't 
installed Flash on this machine, but something like this.

//assume your scenes are called "scene1" to "scene20"
public var scenes:Array;
public var indices:Array;

for (i=0, i<20, i++){
    scenes.push('scene'+i+1);
    indices.push(i);
}
public function shuffle():Number{
    return Math.floor(Math.random()* 2);
}

indices.sort(shuffle);

HTH;

Amy 

Post Reply
From AW to Flash_Random Navigation
Fri, 21 Mar 2008 02:23:37 +000
I am trying to migrate to Flash, and I'm missing many of Authorware's features 
especially when it comes to interaction.   I'm writing hoping that there's 
someone out there equally at home and familiar with both AW and Flash.  
Specifically, how can I navigate to any random scene (e.g., several quiz items)

in Flash, the way I could have easily done it with a decision icon in AW?  Any 
help will be greatly appreciated.
Post Reply
Re: From AW to Flash_Random Navigation
Fri, 21 Mar 2008 13:11:50 +000
Post Reply
Re: From AW to Flash_Random Navigation
Wed, 16 Jul 2008 04:03:39 +000
Thanks Amy for the idea.  I've gotten around the random problem.  My other 
concern is for the next random scenes to be confined only to those that have 
not yet been chosen, much like limiting to "Unused Paths" in
Authorware, and 
then to exit or go to another scene or frame once all scenes or frames have 
been visited.  I still miss Authorware when it comes to these things.  Any help

in this area will bring back the control and power I once felt with
Authorware.
Post Reply
Re: From AW to Flash_Random Navigation
Wed, 16 Jul 2008 13:49:21 -050
"cmacachor" <webforumsuser@macromedia.com> wrote in message 
news:g5jrur$ep8$1@forums.macromedia.com...
> Thanks Amy for the idea.  I've gotten around the random problem.  My other
> concern is for the next random scenes to be confined only to those that 
> have
> not yet been chosen, much like limiting to "Unused Paths" in
Authorware, 
> and
> then to exit or go to another scene or frame once all scenes or frames 
> have
> been visited.  I still miss Authorware when it comes to these things.  Any

> help
> in this area will bring back the control and power I once felt with 
> Authorware.


Sorry, I can't help you, since I can't see what you're replying to. 

Post Reply
about | contact