Copy link to clipboard
Copied
Here is the code for the slideshow. I feel like the answer is in the function below but I don't know how to rewrite the code. I do not work in Flash very much except as a designer.
import flash.events.Event;
import flash.net.URLRequest;
import caurina.transitions.*;
import flash.display.Loader;
// General Set up items
var presModeSlides : Boolean = true;// shows slides or pictures when jumping to pres template
var currentSlideNumber : int = 0;
var slides : Array = [{numSlides:11 , directory:"01_Barcellos", title: "Welcome and Introductions", speaker:"Speaker: Michael Barcellos", university : "Bio-Rad Laboratories - USA" },
{numSlides:35 , directory:"02_Davis", title: "BioPlex® 2200 WW-Program: Past, Present and Future", speaker:"Speaker: Tamara Davis", university : "Bio-Rad Laboratories - USA" },
{numSlides:43 , directory:"03_Teste", title: "How to Integrate a BioPlex® System into Routine Testing", speaker:"Speaker: Laurent Teste", university : "Bio-Rad Laboratories - Marnes, France" },
{numSlides:18 , directory:"04_Mbwana", title: "Heterophillic Antibody Interference in Multiplexed Bead Immunoassay", speaker:"Speaker: Melody Mbwana", university : "Manchester Royal Infirmary, Manchester, UK" },
{numSlides:35 , directory:"05_YenLieberman", title: "Identification of False-Positive Syphillis IgG Results by using Semi-Quantitative Values in the Test Algorithm", speaker:"Speaker: Belinda Yen-Lieberman, PhD", university : "Cleveland Clinic - USA" },
{numSlides:36 , directory:"06_Marangoni", title: "Syphillis Diagnosis in the Modern Era", speaker:"Speaker: Antonella Marangoni, PhD", university : "University of Bologna S. Orsola - Bologna, Italy" },
{numSlides:17 , directory:"07_McDonald", title: "EBV Testing Algorithm on the BioPlex® 2200 System", speaker:"Speaker: David McDonald", university : "Laverty Pathology - North Ryde, Australia" },
{numSlides:20 , directory:"08_Link", title: "BioPlex® 2200 HIV Ag-Ab — A Mulitplex 4th Generation HIV Assay", speaker:"Speaker: Bill Link", university : "Bio-Rad Laboratories - USA" },
{numSlides:29 , directory:"09_Blasutig", title: "Comparison of the BioPlex® 2200 ANA Screen to Indirect Immunoflourescence in a Large Tertiary Care Center ", speaker:"Speaker: Ivan Blasutig, PhD, FCACB", university : "University Health Network - Toronto, Canada" },
{numSlides:21 , directory:"10_Yip", title: "Performance of BioPlex® 2200 Anti-dsDNA in Monitoring of Systemic Lupus Erytheratosus Disease Activity", speaker:"Speaker: Paul Yip", university : "University Health Network - Toronto, Canada" },
{numSlides:36 , directory:"11_Hurst", title: "The Transition from ELISA MIcroplate to BioPlex® for ENA/dsDNA Testing", speaker:"Speaker: Dr. Miriam Hurst, FRACP, FRCPA", university : "Labtests - Auckland, New Zealand" },
{numSlides:22 , directory:"12_Walker", title: "BioPlex® Celiac IgA and IgG Panels", speaker:"Speaker: Roger Walker, PhD", university : "Bio-Rad Laboratories - USA" },
{numSlides:14 , directory:"13_Tozzoli", title: "Autoantibody Profiling in Patients with Celiac Disease Evalution of the BioPlex® 2200 Celiac IgA abd IgG Panels", speaker:"Speaker: Renato Tozzoli, MD", university : "S. Maria delgi Angeli Regional Hospital - Pordenone, Italy" },
{numSlides:21 , directory:"14_Holding", title: "A Clinical Evaluation of Coeliac Screening on the BioPlex® 2200 System", speaker:"Speaker: Steven Holding, PhD, FRCPath", university : "Hull Royal Infirmary - Hull, UK" },
];
function doSlides(e:Event) {
currentSlideNumber = int(e.currentTarget.name.substr(1,1))-1;// Holds which set of slide to show
presModeSlides = true;// We're showing slides instead of pictures so set this to true
gotoAndStop("Pres Template");
}
Copy link to clipboard
Copied
What is the point of asking this in the Adobe Reader forum? I'm sure the experts in the ActionScript 3 forum could answer this much better...
Copy link to clipboard
Copied
I apologize beforehand because I am an ignorant in programing, but it seems to me that your question refers to Flash, not to the free Reader. This is the Reader forum; the Flash one is here:
Copy link to clipboard
Copied
Sorry folks this is my first time asking a question and I was at one point on the Flash page but somehow got diverted. Sorry for the confusion.
Copy link to clipboard
Copied
[topic moved to ActionScript3 forum]
Copy link to clipboard
Copied
Problem is here:
currentSlideNumber = int(e.currentTarget.name.substr(1,1))-1
//with this function you only reach slideshows with one digit (1-9)
//example; slide "10_Yip..." will be reduced to 0 and subtracting from that gives you a negative number
it should be
currentSlideNumber = int(e.currentTarget.name.substr(0,2))-1
//example; slide "10_Yip..." will be reduced to 10 and subtracting from that gives you 9
//example; slide "09_..." will be first reduced to "09", casting it as int will remove the 0 from the beginning and leave 9 subtracting 1 will result in 8
Copy link to clipboard
Copied
Thank you so much! That did it! I knew the answer was in that line and the count was wrong but I did not kow how to rewrite it. You are a lifesaver!
Find more inspiration, events, and resources on the new Adobe Community
Explore Now