[Xerte] swf inside xerte navigation question

KnowledgeWare knowledgeware at kccsoft.com
Tue Dec 27 21:04:14 GMT 2011


This is going to sound complicated but I think its probably simple, but my
low level of actionscript navigation obscures the answer to me. I think it
is all a matter of properly addressing the nodes, which I'm obviously not
doing.

 

Everything is fine in my desktop xerte app. The program navigates from a
flash menu to any of a number of frameworks with entrypanes which includes a
'Next' and 'Previous' button to take the user through the FW pages. Once at
the end of the pages in the FW it goes back to the main menu (shows the menu
as visible). This is the structure for this:

 



 

Next Page script code: (works fine)

 

if(fw.currentPage < fw.pages.length - 1)

{

fw.nextPage();

dummy = '<b>Part '+ part + ' - Module ' + module + ' - Page
'+(fw.currentPage+1) + ' of ' + fw.pageCount + ' - '+partname;

showcurrentpage.setText(dummy);

 

}

else

{

                  _level0.engine.rootIcon.navigate('menu');

}

 

Problem: I inserted Flash swf buttons (tutorialnavbuttons icon below) - and
am attempting to use similar navigation code as above inside the swf button
file. This breaks the navigation - I believe the 'fw.currentpage' etc. is no
longer recognized..but I don't know how to have the SWF file recognize the
framework that I am in, and 'currentpage', etc. How should I address those
nodes in the SWF file?

 



 

SWF file code on the 'Next' button:  (it now always flows through the 'else'
statement and goes to the menu - is there a way I can make it recognize the
'fw.currentpage' etc?

 

NextButton.onRelease = function() 

{

                

                if(fw.currentPage < fw.pages.length - 1)    //THIS STATEMENT
IS NO LONGER WORKING

{

fw.nextPage();

dummy = '<b>Part '+ part + ' - Module ' + module + ' - Page
'+(fw.currentPage+1) + ' of ' + fw.pageCount + ' - '+partname;

showcurrentpage.setText(dummy);

 

}

else

{

                  _level0.engine.rootIcon.navigate('menu');

}

                

}

 

Thanks for any suggestions!

 

RonM2

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.nottingham.ac.uk/pipermail/xerte/attachments/20111227/855c8c18/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.png
Type: image/png
Size: 11184 bytes
Desc: not available
URL: <http://lists.nottingham.ac.uk/pipermail/xerte/attachments/20111227/855c8c18/attachment-0002.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image002.png
Type: image/png
Size: 13612 bytes
Desc: not available
URL: <http://lists.nottingham.ac.uk/pipermail/xerte/attachments/20111227/855c8c18/attachment-0003.png>


More information about the Xerte mailing list