Adobe Dreamweaver Forums



Last 10 THreads :         spry menubars not lining up in IE (Last Post : orierstiZ - Replies : 149 - Views : 539 )           »          Writing mxml transition in as3 (Last Post : SiHoop - Replies : 0 - Views : 1 )           »          Is There An Extension that Renames Layers Based on MovieClip Names of Files (Last Post : fcastro75 - Replies : 4 - Views : 5 )           »          file directory. (Last Post : Alan - Replies : 10 - Views : 11 )           »          Lining up flash video in different browsers... (Last Post : Jasper Thayer - Replies : 1 - Views : 2 )           »          Uploading Streaming Video (Last Post : K.A.M. - Replies : 2 - Views : 6 )           »          How do I Set Text of Container? (Last Post : lazybones99 - Replies : 2 - Views : 3 )           »          Locking resize handles in browser. (Last Post : emilio_tha_don - Replies : 10 - Views : 11 )           »          gesture driven scrolling list (Last Post : cntpmaxn - Replies : 64 - Views : 953 )           »          Formatting Text Paragraph (Last Post : BudHud - Replies : 0 - Views : 1 )           »         


Home Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
User Info Statistics
Go Back   Adobe Dreamweaver Forums > Other Macromedia/Adobe Products > Authorware
 
Tags: ,

Reply
  #1 (permalink)  
Old 04-13-2008, 01:58 AM
cmacachor
 
Posts: n/a
Diggs:
Default From AW to Flash_Random Navigation

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.

Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 04-13-2008, 01:58 AM
Amy Blankenship
 
Posts: n/a
Diggs:
Default Re: From AW to Flash_Random Navigation


"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


Reply With Quote
  #3 (permalink)  
Old 04-13-2008, 01:58 AM
cmacachor
 
Posts: n/a
Diggs:
Default Re: From AW to Flash_Random Navigation

Thanks for the quick reply. I'm not really that great yet at action scripts, but I'm sure this will be a great help.
Reply With Quote
  #4 (permalink)  
Old 07-16-2008, 04:22 AM
cmacachor
 
Posts: n/a
Diggs:
Default Re: From AW to Flash_Random Navigation

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.

Reply With Quote
  #5 (permalink)  
Old 07-16-2008, 07:08 PM
Amy Blankenship
 
Posts: n/a
Diggs:
Default Re: From AW to Flash_Random Navigation


"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.


Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



© Camley Interactive (camley.info) 2008 - all logos and images are copywrite their respective owners.
Proud member of the Camley Interactive Network
All times are GMT. The time now is 01:56 AM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0 ©2007, Crawlability, Inc.
Inactive Reminders By Mished.co.uk