Digital Workshop

Welcome to the Digital Workshop Message Boards
It is currently January 11th, 2025, 12:42 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 5 posts ] 
Author Message
 Post subject: Back Button
PostPosted: October 24th, 2005, 10:42 am 
Offline

Joined: April 21st, 2005, 9:51 am
Posts: 5
Hi

Im currently working on a very large publication in Opus Flex which I have divided into a number of smaller publications so that it will work more efficiently. However my boss wants me to put a back button on every page. I am wondering is it possible to open a specific page on a certain publication, maybe besides the first page from another publication. Otherwise does anyone have any suggestions about how i could do this? I know i could open up a new web page and have the old one still in the background but realistically this isnt the most user friendly way of going about it.


For this message Carlos21 has been thanked by : mackavi


Top
 Profile  
 
 Post subject: Template
PostPosted: October 24th, 2005, 11:11 am 
Offline

Joined: November 3rd, 2004, 12:58 pm
Posts: 230
Location: Australia
Hi, I believe that to create a template page will be what you need in this case. You add all the buttons, actions, etc you want and then use this template page in every new page you create.
I hope this helps
German

_________________
German Silva
Senior Web & Multimedia Developer
E-solutions Inc
Pro version 8.10 user


For this message Koala has been thanked by : mackavi


Top
 Profile  
 
 Post subject:
PostPosted: October 24th, 2005, 11:37 am 
Offline

Joined: April 21st, 2005, 9:51 am
Posts: 5
Thanks for the response.

I have a seperate template page created in each one of the projects but my query relates to opening a page in one project from another project. The back button works fine when going back to pages in the same project but when it opens a page in another project is where i run into problems. I dont want to be opening up another web page for the simple reason it could become confusing for the user as well as the problems people run into with those annoying pop-up blockers!!


For this message Carlos21 has been thanked by : mackavi


Top
 Profile  
 
 Post subject:
PostPosted: October 24th, 2005, 12:21 pm 
Offline

Joined: November 5th, 2004, 6:54 am
Posts: 130
Location: Hengelo, The Netherlands
Opus: 8.5/9.0
OS: Windows 7 64-bits, Android 2.1, Android 4.1.2, iOS 7
System: Pentium 7i, 6GB RAM, 750GB HD, DVD-RW (+/-), DV, 3TB EHD, 3D monitor without glasses
Hi Carlos,

Maybe it's possible to write the last flex publication name to a file on the users computer or on the server in a database.
When you push the back button these data will be read into a variable.
So the back button will open the publication (and page) declared in that file/database.

I used this for not flex publications, but I'm not sure you can use it for flex because you have to use Post Data and Get Data.

Kind regards,

_________________
Oscar Nijst
ON Education & Consultancy
Hengelo, The Netherlands
OPUS Pro 9.5
Pentium 7i, 16GB RAM, 1 TB HD, DVD-RW (+/-), DV, 3TB EHD, 3D monitor without glasses


For this message osni has been thanked by : mackavi


Top
 Profile Visit website  
 
 Post subject:
PostPosted: October 25th, 2005, 2:00 am 
Offline

Joined: November 3rd, 2004, 2:11 pm
Posts: 323
This solution assumes you are setting up your Flex subpubs as "pages" of your whole presentation. It also assumes you are displaying through a browser. It also assumes that probably some other bright fellow can come up with a better/easier solution. :wink:

Create a container HTML page with an IFRAME element the same width and size of your Flex pubs. The source for this IFRAME will be your first flex pub (i.e., page1.swf).

Code:
<iframe id="timer" src="page1.swf" style="width:520px;height:340px"></iframe>


Put two buttons at the top or bottom of this iframe to control navigation. These will either go back or forward to the next Flex pub by changing the IFRAME's source to a new Flex pubname.

Code:
<button onclick="goback()">CLICK ME</button>&nbsp;&nbsp;<button onclick="gofwd()">CLICK ME</button>


Functions for these codes would go in a javascript section in the HEAD of your HTML page.

Code:
<script language="JavaScript" type="text/JavaScript">
<!--
var cntr=0;

var moviename= new Array ()
moviename[0]='tst1.swf';
moviename[1]='tst2.swf';


function goback()
{
if (cntr!=0){
cntr=cntr-1;
mvnm = document.getElementById("timer");
stuff=mvnm.getAttribute('src');
mvnm.setAttribute('src',moviename[cntr])
}
else {
mvnm = document.getElementById("timer");
stuff=mvnm.getAttribute('src');
mvnm.setAttribute('src',moviename[0])
}
}

function gofwd()
{
if (cntr!=moviename.length){
cntr=cntr+1;
mvnm = document.getElementById("timer");
stuff=mvnm.getAttribute('src');
mvnm.setAttribute('src',moviename[cntr])
}
else {
mvnm = document.getElementById("timer");
stuff=mvnm.getAttribute('src');
mvnm.setAttribute('src',moviename[cntr])
}
}

//-->
</script>


You create an array of all of your Flex pubs (moviename[x]), and then using the counter and the functions determine where you are at and the button will change the source to either the previous or next movie in the moviename array.

I have tested this out on IE 6, Firefox, and Opera and it works. Not tremendous, but like I said, I'm sure someone else has a better idea.

THe other idea I can think of off the top of my head is to use a controlling Flash file with a sprite containing your first Flex pub movie and then do something similar but it would all be self-contained in Flash. The drawback is you would need to have Flash or some Flash generating application to be able to create the container movie.

Hope this helps, and feel free to ask questions.

_________________
Opus Pro XE 9.1 Win7 64-bit Core i3 8MB RAM


For this message bwpatric has been thanked by : mackavi


Top
 Profile Visit website  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: Google [Bot] and 32 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group