[Xerte] Autosizing / fullscreen solution

Tenney Julian Julian.Tenney at nottingham.ac.uk
Tue May 6 13:29:15 BST 2008


OK, to get the auto scaling thing to work properly:
 
1. Create the .rlo using the default resolution
 
2. Use this code to setup the rlo:
 
Stage.scaleMode = "exactFit"; //use "showAll" to preserve the aspect
ratio as the browser window is resized
rootIcon._xscale = 200;
rootIcon._yscale = 200;
 
3. Change the code in rloObject.js to this for the div:
 
document.writeln('<div id="rlo' + rloID + '" style="width:100%;
height:100%; ">');
 
4. add the following styles to the html, body and div tag in index.htm:
style="min-height:100%; width:100%; height:100%;"
 
That's it. At some point I'll build in a better way of achieving this,
but for now, it can be done this way if you need LOs that scale to fit
the browser window. Beware that there are issues for layout down this
road, particularly the way fonts render at different sizes as the movie
is scaled, and the impact of this on any relative layouts.
 
Julian
 
 
 
 
 
 
 
 
 

________________________________

From: Ron Mitchell [mailto:RMitchell at tower.ac.uk] 
Sent: 06 May 2008 09:27
To: 'Tenney Julian'
Subject: RE: [Xerte] Xerte vs. Vista



I have CS3 at home but not here at work but I'll have to put this one on
the todo list as I've got other stuff to work on first. I'll let you
know once I've tried this.

 

Re my other messages on % sizing - I'm trying to tweak a copy of the
techdis presentation template to work with 2 different UMPC devices. I
have 4 different pixel dimensions optimised for these devices 2 sets of
which are optimised for full screen display (F11) and the other two for
default browser display. Unfortunately each varies slightly so without
being able to  get the scaling working it means 4 separate template
files. The compromise is to use the lowest common denominator and one
file but that really doesn't make optimum use of the limited screen size
and shows up when compared to other flash content which does scale
dynamically. I've replied to the list message separately re what I've
tried so far and if you could point me to a solution it would be great.
This is my test file:
http://www.tower.ac.uk/curweb/xerte/percentage_test/rloObject.htm which
shows the div resizing and I think the grey area is the .rlt or is it
xmlengine.swf ?

 

Cheers

Ron

 

From: Tenney Julian [mailto:Julian.Tenney at nottingham.ac.uk] 
Sent: 06 May 2008 08:57
To: Ron Mitchell
Subject: RE: [Xerte] Xerte vs. Vista

 

That could be a showstpper then. It depends. It appears the FLVplayback
component has been updated to support h264. If you can use that and
compile it FP8 / AS2 then you could make a swf which will load and play
the video. I don't have CS3 - do you? can you give it a go?

 

________________________________

From: Ron Mitchell [mailto:RMitchell at tower.ac.uk] 
Sent: 06 May 2008 08:55
To: 'Tenney Julian'
Subject: RE: [Xerte] Xerte vs. Vista

Yes I think you're right - I think the h.264 support is from Flash
Player 9.x

I'll try and work out another way of doing this and let you know if I
get anywhere.

R

 

From: Tenney Julian [mailto:Julian.Tenney at nottingham.ac.uk] 
Sent: 06 May 2008 08:50
To: Ron Mitchell
Subject: RE: [Xerte] Xerte vs. Vista

 

What I need to know is whether there is h264 support in AS1 / Flash
Player 8 files.  From what I saw, it was only supported in AS3?

 

J

 

________________________________

From: Ron Mitchell [mailto:Ron.Mitchell at tower.ac.uk] 
Sent: 02 May 2008 15:58
To: Ron Mitchell; Tenney Julian
Cc: Alistair McNaught; Ron
Subject: RE: [Xerte] Xerte vs. Vista

Would help if I included the link L

 

http://www.tower.ac.uk/curweb/xerte/SANY0003.zip 

 

Alistair have copied you in here just to say if you are preparing for
Leon over the weekend and need to send me an email please copy it to
ronm at mitchellmedia.co.uk as our mail server is being upgraded to
Exchange 2007 and I wouldn't be surprised if it's not restored before
Tuesday.

 

Cheers

Ron

 

From: Ron Mitchell 
Sent: 02 May 2008 15:50
To: 'Tenney Julian'
Subject: RE: [Xerte] Xerte vs. Vista

 

Hi Julian

Hope all is well with you and hope you have/had a good Bank Holiday?

 

Actually I'm really hoping you get a chance to quickly read and respond
before you finish for the weekend but if not no worries! 2 questions...

 

1.       I know we've spoken before about having Xerte output scale with
the browser rather than being a fixed size e.g. % rather than fixed
dimensions - do you have a working example of that you could point me
to?

2.       This one is more of a feature request but I'm sort of hoping
you already have a solution... We have some cameras which record in mp4
h.264 format and the latest flash player will play those when
dynamically linked via a swf. I'm wondering if there was a quick way you
could build this into Xerte? E.g. if we could select an mp4 like we
currently select an flv. Actually as I type this I realise I might be
able to cheat it into doing this by passing the name of the mp4 but
displaying a swf which has the code to play the mp4. Anyway perhaps
you've had this issue already but if not the problem is that Windows
Media player doesn't play the h.264 format without third party codecs
which aren't straight forward to install. I've uploaded a sample mp4 in
case you get a chance to look at this at some point.

 

Have a good Bank holiday.

Cheers

Ron

 

From: Tenney Julian [mailto:Julian.Tenney at nottingham.ac.uk] 
Sent: 11 April 2008 13:58
To: Ron Mitchell
Subject: RE: [Xerte] Xerte vs. Vista

 

cheers.

 

Sure you're not doing something wrng if your DIY is up to your neck??

	 

	
________________________________


	From: Ron Mitchell [mailto:Ron.Mitchell at tower.ac.uk] 
	Sent: 11 April 2008 13:51
	To: Tenney Julian
	Subject: RE: [Xerte] Xerte vs. Vista

	Hi Julian

	thanks on leave and up to my neck in DIY - hope all is well with
you too. I did see the question and one or two responses but can only
repeat what you've already said - works fine on my Vista laptop although
mine is Vista Ultimate so I'm not sure if that's the difference. I don't
have any other machines with Vista to try it on. Perhaps worth
suggesting they create another user with admin rights and try with that
account in case it's something in the user profile. The other thing
worth suggesting is trying/running Xerte without installation e.g.
provide a zip with the install directory, get him to uninstall and try
running from the .exe in the extracted zip. I've tested that on XP
machines without Xerte installed and it seems to work fine. Might at
least eliminate or point to the install being the problem

	Can't think of anything else.

	Cheers

	Ron

	 

________________________________

	From: Tenney Julian [mailto:Julian.Tenney at nottingham.ac.uk]
	Sent: Fri 11/04/2008 11:45
	To: Ron Mitchell
	Subject: RE: [Xerte] Xerte vs. Vista

	Hi Ron,

	 

	Hope life is good with you - can you cast any light on this?
You're a Vista user. Why would Xerte just fail on some Vista setups?

	 

	thanks,

	 

	Julian

		 

		
________________________________


		From: xerte-bounces at lists.nottingham.ac.uk
[mailto:xerte-bounces at lists.nottingham.ac.uk] On Behalf Of Jim Taylor
		Sent: 10 April 2008 19:04
		To: 'Paul M Russell (PMS)'; 'Xerte discussion list'
		Subject: RE: [Xerte] Xerte vs. Vista

		Probably more than we want to know! Some of our core
software doesn't work with it. The publisher (in Germany) has been
working for months to make it work. Sometimes the easiest answer is to
set up a dual boot machine.

		 

		Jim Taylor, CPMM

		Director of Operations

		Machinery Management Solutions, Inc.

		 

		765-366-4285

		www.machineryhealthcare.com
<http://www.machineryhealthcare.com/> 

		Healthcare for Production Machinery and Facilities

		 

		 

		
________________________________


		From: Paul M Russell (PMS)
[mailto:paul.russell at pms.ac.uk] 
		Sent: Thursday, April 10, 2008 1:48 PM
		To: 'jim.taylor at machineryhealthcare.com'; 'Xerte
discussion list'
		Subject: RE: [Xerte] Xerte vs. Vista

		Its not really an Xerte issue but I wonder how many
hours developers around the globe are spending on getting perfectly good
software developments to work with Vista- I speak from bitter
experience!

		 

		Paul Russell, PCMD E-learning Officer,

		C203, Portland Square,

		University of Plymouth Campus. PL4 8AA

		01752 238017

		From: xerte-bounces at lists.nottingham.ac.uk
[mailto:xerte-bounces at lists.nottingham.ac.uk] On Behalf Of Jim Taylor
		Sent: 10 April 2008 18:40
		To: 'Xerte discussion list'
		Subject: RE: [Xerte] Xerte vs. Vista

		 

		Thanks. I've already heard from people who have it
running.

		 

		I have a Toshiba Satellite A205 laptop, dual processor,
1.60GHz, 1GB ram, Vista Home premium, 32 bit.

		 

		Xerte installs without issue but when I try to launch it
I get an error from windows "Xerte has stopped working. Windows is
searching for a solution" Then Windows collects info send to Microsoft
and it's over. I do have administrator right and am installing as
administrator.

		 

		I've tried re-downloading and re-installing several
times. I'm using the most current download. Also have rebooted several
times. Nothing changes.

		 

		One thing that is different about my setup: Windows is
on the C:(System) partition, Xerte is on the F:(Application) partition,
data is on the G:(Data) partition. The registry is set for all
applications to be found on the F: partition. 

		 

		E:(Localhost) is the localhost partition.

		 

		I'll keep investigation and will post the resolution
when I find it. Any ideas are greatly appreciated.

		 

		Thanks,

		 

		Jim Taylor, CPMM

		Director of Operations

		Machinery Management Solutions, Inc.

		 

		765-366-4285

		www.machineryhealthcare.com
<http://www.machineryhealthcare.com/> 

		Healthcare for Production Machinery and Facilities

		 

		 

		
________________________________


		From: xerte-bounces at lists.nottingham.ac.uk
[mailto:xerte-bounces at lists.nottingham.ac.uk] On Behalf Of Tenney Julian
		Sent: Thursday, April 10, 2008 10:33 AM
		To: Xerte discussion list
		Subject: RE: [Xerte] xerte vs. Vista

		I certainly expect Xerte to work with Vista. I know
people are using Xerte on Vista and I've not heard of any problems. I
did some work recently with someone who was working on Vista and no
issues came up. Can any Vista users shed any light on this? 

		 

		So what happens? Do you get any errors? Did you install
it as an administrator on your machine? Do you have admin rights when
you try and runt it (though you shouldn't need it)?

		 

		Glad you like it.

			 

			
________________________________


			From: xerte-bounces at lists.nottingham.ac.uk
[mailto:xerte-bounces at lists.nottingham.ac.uk] On Behalf Of Jim Taylor
			Sent: 10 April 2008 13:32
			To: xerte at lists.nottingham.ac.uk
			Subject: [Xerte] xerte vs. Vista

			Morning Julian,

			 

			My computer crashed and I bought a new one, It
has Vista Home Preimum. Xexrte will not start and I found the system
requirement is the Help file says XP is required. Do you expect to be
compatible with Vista soon. I really like the program.

			 

			Thanks,

			 

			Jim Taylor, CPMM

			Director of Operations

			Machinery Management Solutions, Inc.

			 

			765-366-4285

			www.machineryhealthcare.com
<http://www.machineryhealthcare.com/> 

			Healthcare for Production Machinery and
Facilities

			 

	
	
_____________________________________________________________________
	This e-mail has been scanned for viruses by Verizon Business
Internet Managed Scanning Services - powered by MessageLabs. For further
information visit http://www.verizonbusiness.com/uk

	This message has been checked for viruses but the contents of an
attachment may still contain software viruses, which could damage your
computer system: you are advised to perform your own checks. Email
communications with the University of Nottingham may be monitored as
permitted by UK legislation. 


_____________________________________________________________________
This e-mail has been scanned for viruses by Verizon Business Internet
Managed Scanning Services - powered by MessageLabs. For further
information visit http://www.verizonbusiness.com/uk

 

This message has been checked for viruses but the contents of an
attachment may still contain software viruses, which could damage your
computer system: you are advised to perform your own checks. Email
communications with the University of Nottingham may be monitored as
permitted by UK legislation. 


_____________________________________________________________________
This e-mail has been scanned for viruses by Verizon Business Internet
Managed Scanning Services - powered by MessageLabs. For further
information visit http://www.verizonbusiness.com/uk

 

This message has been checked for viruses but the contents of an
attachment may still contain software viruses, which could damage your
computer system: you are advised to perform your own checks. Email
communications with the University of Nottingham may be monitored as
permitted by UK legislation. 


_____________________________________________________________________
This e-mail has been scanned for viruses by Verizon Business Internet
Managed Scanning Services - powered by MessageLabs. For further
information visit http://www.verizonbusiness.com/uk

 

This message has been checked for viruses but the contents of an
attachment may still contain software viruses, which could damage your
computer system: you are advised to perform your own checks. Email
communications with the University of Nottingham may be monitored as
permitted by UK legislation. 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.nottingham.ac.uk/pipermail/xerte/attachments/20080506/9ffbdc5d/attachment.html


More information about the Xerte mailing list