[Xerte] Importing Flash into Xerte

Garry Lunn garry.lunn at tic.ac.uk
Tue Jul 21 13:19:16 BST 2009


Yes, what's the secret?

Regards, Garry



-----Original Message-----
From: xerte-bounces at lists.nottingham.ac.uk
[mailto:xerte-bounces at lists.nottingham.ac.uk] On Behalf Of Patrick
Lockley
Sent: 21 July 2009 13:05
To: Xerte discussion list
Subject: RE: [Xerte] Importing Flash into Xerte

http://www.nottingham.ac.uk/toolkits/play_1318

working?

-----Original Message-----
From: xerte-bounces at lists.nottingham.ac.uk
[mailto:xerte-bounces at lists.nottingham.ac.uk] On Behalf Of Garry Lunn
Sent: 21 July 2009 12:26
To: Xerte discussion list
Subject: RE: [Xerte] Importing Flash into Xerte

Hi Gavin,
Yes I'm using this code in the first frame:

// ----------------------------------------------
// Code for Xerte
// ----------------------------------------------
this._lockroot= true;
_root._lockroot= true;
// ----------------------------------------------

Regards, Garry




-----Original Message-----
From: xerte-bounces at lists.nottingham.ac.uk
[mailto:xerte-bounces at lists.nottingham.ac.uk] On Behalf Of Gavin
Reynolds
Sent: 21 July 2009 11:59
To: Xerte discussion list
Subject: RE: [Xerte] Importing Flash into Xerte

Hi Gary
 
Have just had a quick look at the source code for the drag n drop. I'm
thinking that the problem may be where the code makes reference to
'this'. It may be that this is a similar problem to the one that was
solved by using _lockroot as when embedded in Xerte, the call to 'this'
on the root timeline will perhaps call the root of the Xerte package
(the new root).
 
Have you tried setting this._lockroot = true on the first frame before
any of the other code?
 
Just a thought.
 
Regards
 
Gavin Reynolds
Multimedia Content Developer
ILT Development Unit
The College of West Anglia, Isle Campus - B9
Tel: 01945 582561 Ext. 232
greynolds at col-westanglia.ac.uk <mailto:greynolds at col-westanglia.ac.uk> 
 

________________________________

From: xerte-bounces at lists.nottingham.ac.uk on behalf of Garry Lunn
Sent: Tue 21/07/2009 11:43
To: xerte at lists.nottingham.ac.uk
Subject: [Xerte] Importing Flash into Xerte



Hi Julian,

The drag and drop exercise found in Adobe's Learning interactions folder
work Ok when embedded in Xerte.

 

Unfortunately I don't have simple drag and drop exercises. All our
content has been developed by two experienced coders, both of which have
left. What I do have however, is the source code and detailed
instructions on how they work. 

 

The exercise below uses Arrays to store the coordinates and interactions
between the drag and drop items but when the drag items are dropped on
their target they don't stick. Do you know why?

 

Working example (Outside Xerte)

http://www.tic.ac.uk/assets/flash/simpleFlash/DragNDrop.html

 

Not working example (Imported into Exerte)

http://xerte.vledev.bcu.ac.uk/play.php?template_id=25

 

Source code including detailed explanation of how this activity works:

http://www.tic.ac.uk/assets/flash/simpleFlash/DragNDrop.zip

 

 

Regards, Garry

 

 

-----Original Message-----

From: Julian Tenney [mailto:Julian.Tenney at nottingham.ac.uk] 

Sent: 14 July 2009 10:13

To: Garry Lunn

Subject: RE: [Xerte] RE: Importing Flash into Xerte

 

Not had a chance to look - what seems to be the problem? Can you get a

simple example to work? What's different?

 

-----Original Message-----

From: Garry Lunn [mailto:garry.lunn at tic.ac.uk] 

Sent: Tuesday, July 14, 2009 9:40 AM

To: Julian Tenney

Subject: RE: [Xerte] RE: Importing Flash into Xerte

 

OK 24 fps it is.

 

Do you have any thoughts on the second issue (drag and drop)

 

Regards, Garry

 

 

-----Original Message-----

From: Julian Tenney [mailto:Julian.Tenney at nottingham.ac.uk] 

Sent: 14 July 2009 09:19

To: Garry Lunn

Subject: RE: [Xerte] RE: Importing Flash into Xerte

 

Set your swf to 24 fps. Xerte runs at 24fps.

 

Resubscribe using your new address.

 

-----Original Message-----

From: Garry Lunn [mailto:garry.lunn at tic.ac.uk] 

Sent: Tuesday, July 14, 2009 9:10 AM

To: Julian Tenney

Subject: RE: [Xerte] RE: Importing Flash into Xerte

 

Hi Julian,

I've managed to get my imported Flash to work by inserting this code:

this._lockroot= true; 

at the beginning of the Action script in frame one but I have

encountered two anomalies

 

1. My imported Flash is playing at twice the speed it was designed to

play at. i.e. 24 fps NOT 12 fps (See frame 1 )

2. The drop items on my drag and drop exercise cannot find their target

(See frame 2): http://xerte.vledev.bcu.ac.uk/play.php?template_id=25

 

 

 

I've included a link to the source code which was saved as Flash version

8 so you can open it. I appreciate any help you can give me.

http://www.tic.ac.uk/assets/flash/simpleFlash/T2LU3S4P1E.zip

 

 

P.S. The University is being reorganised and all emails are being reset

from tic to bcu. Unfortunately this means I am sending emails using my

old address and not the new one. I've reported this issue to our ICT

Support. 

 

Regards, Garry

 

-----Original Message-----

From: Julian Tenney [mailto:Julian.Tenney at nottingham.ac.uk] 

Sent: 10 July 2009 13:12

To: Garry Lunn

Subject: RE: [Xerte] RE: Importing Flash into Xerte

 

You are subscribed to the list under garry.lunn at bcu.ac.uk

 

But you are posting from garry.lunn at tic.ac.uk

 

So you need to either resubscribe your new address or post from the old

one.

 

-----Original Message-----

From: Garry Lunn [mailto:garry.lunn at tic.ac.uk] 

Sent: Friday, July 10, 2009 10:34 AM

To: Xerte discussion list

Subject: RE: [Xerte] RE: Importing Flash into Xerte

 

Julian,

I'm on the Xerte subscribers list but I don't know why this message

doesn't appear on the web site! However everyone on the list seams to be

receiving this email.

 

Regards, Garry

 

 

 

-----Original Message-----

From: xerte-bounces at lists.nottingham.ac.uk

[mailto:xerte-bounces at lists.nottingham.ac.uk] On Behalf Of Julian Tenney

Sent: 10 July 2009 10:17

To: Xerte discussion list

Subject: FW: [Xerte] RE: Importing Flash into Xerte

 

You need to subscribe to the list, or post from an address subscribed,

 

-----Original Message-----

From: Garry Lunn [mailto:garry.lunn at tic.ac.uk] 

Sent: Friday, July 10, 2009 10:10 AM

To: Xerte discussion list

Subject: RE: [Xerte] RE: Importing Flash into Xerte

 

Yes it woks for me too. I'm going to try some of our complex swf's to

see if there are any other issues but for now it looks promising.

 

PS. My correspondence to you and Julian is still not appearing on the

web site

 

Regards, Garry

 

 

-----Original Message-----

From: xerte-bounces at lists.nottingham.ac.uk

[mailto:xerte-bounces at lists.nottingham.ac.uk] On Behalf Of Gavin

Reynolds

Sent: 10 July 2009 08:28

To: Xerte discussion list

Subject: RE: [Xerte] RE: Importing Flash into Xerte

 

Julian, you are legend!! That is exactly the problem with my swf, I have

looked into and implemented _lockroot and the swf is now working spot

on! All I did was put 'this._lockroot' in the first frame of my swf and

the magic happened! :)

 

Garry - Have you managed implement the _lockroot method to your code?

 

Many Thanks

 

Gavin Reynolds

Multimedia Content Developer

ILT Development Unit

The College of West Anglia, Isle Campus - B9

Tel: 01945 582561 Ext. 232

greynolds at col-westanglia.ac.uk <mailto:greynolds at col-westanglia.ac.uk> 

 

 

________________________________

 

From: xerte-bounces at lists.nottingham.ac.uk on behalf of Julian Tenney

Sent: Thu 09/07/2009 12:07

To: Garry Lunn; Xerte discussion list

Subject: RE: [Xerte] RE: Importing Flash into Xerte

 

 

 

I cannot open your flash file in Flash 8 to see why this is failing, but

I can load the swf into a raw xerte file using the graphic icon. The

interactivity fails.

 

If I load it up in a component icon, it works.

 

You need to make sure that you are setting _lockroot to true in the swf,

and that your code in the swf is not making any assumptions about where

in the Flash movieclip hierarchy it is. If you use '_root' in your code,

when it is loaded into Xerte, _root wont be where it was when the swf

runs alone, and so things get screwed up.

 

Componetn icons take care of the _lockroot thing themselves, graphic

icons don't. So I imagine that is your problem,

 

J

 

 

-----Original Message-----

From: Garry Lunn [mailto:garry.lunn at tic.ac.uk]

Sent: Thursday, July 09, 2009 9:37 AM

To: Xerte discussion list

Subject: RE: [Xerte] RE: Importing Flash into Xerte

 

Hi Julian,

I've simplified my Flash component so there are only two frames and used

ActionScript to control moving from one frame to the other. I've

inserted it into the Xerte on-line tool kit. I made sure "interactivity

Native SWF" was added but When you view the published page it loads the

first frame of the component but I cant navigate to second frame.

 

In all my trials I haven't been successful in navigating to the next

frame. Do you know why this is?

 

Simple Flash file in Xerte (Not working correctly):

http://xerte.vledev.bcu.ac.uk/play.php?template_id=25

 

Simple Flash file in HTML (Working correctly):

http://www.tic.ac.uk/assets/flash/simpleFlash/simpleFlash.html

 

Simple Flash File source code:

http://www.tic.ac.uk/assets/flash/simpleFlash/simpleFlash.zip

 

Complex Flash File source code (Example of the media I want to insert

into Xerte):

http://www.tic.ac.uk/assets/flash/FlashImport.zip

 

Regards, Garry

 

 

 

From: xerte-bounces at lists.nottingham.ac.uk

[mailto:xerte-bounces at lists.nottingham.ac.uk] On Behalf Of Julian Tenney

Sent: 07 July 2009 15:44

To: Xerte discussion list

Subject: RE: [Xerte] RE: Importing Flash into Xerte

 

Lets simplify things.

 

Does it work if you use it as a component in a raw, empty Xerte file?

 

________________________________________

From: xerte-bounces at lists.nottingham.ac.uk on behalf of Gavin Reynolds

Sent: Tue 07/07/2009 09:43

To: Xerte discussion list

Subject: RE: [Xerte] RE: Importing Flash into Xerte Hi Julian

 

Thanks for this, unfortunately I have already tried this and had no joy.

I also removed any rollover text just in case that was blocking

interactivity.

 

The resource behaves very strangely, the rollover on the button on the

first frame works but the code to move onto the next frame doesn't

work...

 

I did a bit of research into the template and noticed that the flash

animation is being treated as a graphic and when I am not using the

template I embed it as a component, I wonder if this has anything to do

with it?

 

Kind Regards

 

Gavin Reynolds

Multimedia Content Developer

ILT Development Unit

The College of West Anglia, Isle Campus - B9

Tel: 01945 582561 Ext. 232

greynolds at col-westanglia.ac.uk <mailto:greynolds at col-westanglia.ac.uk>

 

 

________________________________

 

From: xerte-bounces at lists.nottingham.ac.uk on behalf of Julian Tenney

Sent: Tue 07/07/2009 09:12

To: Xerte discussion list

Subject: RE: [Xerte] RE: Importing Flash into Xerte

 

 

you need to set the interactvity to nativeSWF - its one of the options,

 

________________________________

 

From: xerte-bounces at lists.nottingham.ac.uk on behalf of Gavin Reynolds

Sent: Mon 06/07/2009 13:26

To: Xerte discussion list

Subject: RE: [Xerte] RE: Importing Flash into Xerte

 

 

 

Hi

 

I have had exactly the same problem. I was using the pageTemplates file

to create a learning module and any flash files that I imported were

being treated as images and lost all interaction.

 

I did receive some helpful advice on this and tried this with a

different swf that was provided and this appeared to function

correctly!!

 

I would be very interested to hear if you are able to get this problem

solved!

 

Regards

 

Gavin Reynolds

Multimedia Content Developer

ILT Development Unit

The College of West Anglia, Isle Campus - B9

Tel: 01945 582561 Ext. 232

greynolds at col-westanglia.ac.uk <mailto:greynolds at col-westanglia.ac.uk>

 

 

________________________________

 

From: xerte-bounces at lists.nottingham.ac.uk on behalf of Julian Tenney

Sent: Mon 06/07/2009 13:18

To: Garry Lunn; xerte at lists.nottingham.ac.uk

Subject: [Xerte] RE: Importing Flash into Xerte

 

 

No, theose files should work, but it depends on how they were put

together, and without a bit more info I can't really offer any more

insight. Check the archives. Do you have the flash source code?

 

________________________________

 

From: Garry Lunn [mailto:garry.lunn at tic.ac.uk]

Sent: Mon 06/07/2009 11:08

To: xerte at lists.nottingham.ac.uk

Subject: Importing Flash into Xerte

 

 

 

Hi Guys,

 

I have to migrate 180 hours of e-learning material from our proprietary

VLE into Moodle and was hoping to use Xerte to display the media rich

content. I've tried to import the current Flash content into Exerte but

it doesn't animate and the ActionScript doesn't work. The content was

created in Flash CS3 Professional using ActionScript 2 and I'm trying to

import it into Xerte v2.5.9. I remember reading in the manual that

Exerte was written using ActionScript 1. Is this the reason why the

imported content doesn't display correctly?

 

 

 

I've attached a zip file which includes the HTML, JavaScript, swf and

fla files in the hope you can identify the problem.

 

 

 

Regards, Garry

 

 

Team Leader: E-learning Development and Support

 

Technology, Innovation and Development

 

Birmingham City University

 

w:_www.tic.ac.uk/elearning <http://www.tic.ac.uk/elearning>

 

e:_garry.lunn at bcu.ac.uk

p:_0121 331 7540

 

 

 

 

Ofsted, the Government`s inspection body for schools and colleges, rates

The College of West Anglia as "Outstanding". Read their report on our

website: www.col-westanglia.ac.uk <http://www.col-westanglia.ac.uk/> 

**********************************************************************

This email and any files transmitted with it are confidential and

intended solely for the use of the individual or entity to whom they are

addressed. If you have received this email in error you must take no

action based on them - nor must you copy or show them to anyone.  Please

notify the College of West Anglia via email to

groups-support-itservicedesk-kl at col-westanglia.ac.uk.

 

This email contains the views of the sender and may not be

representative of the views of The College of West Anglia.

 

This footnote also confirms that this email message has been swept for

the presence of computer viruses.

**********************************************************************

 

 

_______________________________________________

Xerte mailing list

Xerte at lists.nottingham.ac.uk

http://lists.nottingham.ac.uk/mailman/listinfo/xerte

 

 

_______________________________________________

Xerte mailing list

Xerte at lists.nottingham.ac.uk

http://lists.nottingham.ac.uk/mailman/listinfo/xerte

 

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

 

_______________________________________________
Xerte mailing list
Xerte at lists.nottingham.ac.uk
http://lists.nottingham.ac.uk/mailman/listinfo/xerte
_______________________________________________
Xerte mailing list
Xerte at lists.nottingham.ac.uk
http://lists.nottingham.ac.uk/mailman/listinfo/xerte


More information about the Xerte mailing list