[Xerte] Xerte3: on Mac?
Peter Huppertz
peter.huppertz at baselgovernance.org
Wed Jul 7 15:54:26 BST 2010
To track down the problem of loading the preview in zinc/mac I did the following:
Replaced in
showPreview()
source=xxx withA
source=mdm.Application.path + 'verysimple.swf'; (mdm.Application.path is the path where the zinc projector resides)
verysimple.swf is just a circle I draw in Flash.
This is what happens:
Loads in the Flash Debug player (Mac) and displays the red circle
Does not load in my Zinc projector (Mac), just displays a broken image icon.
I think it must be bug in Zinc.
Peter
On 07.07.2010, at 16:32, Julian Tenney wrote:
> OK, lets try and get all the rest of it working, then we can tackle the
> issues. Help(?)fully the zinc runtime has BrowseFile for PCs and
> BrowseFileToSave for macs. So much for cross platform...
>
> I'll sort that out and we can go from there,
>
> -----Original Message-----
> From: xerte-bounces at lists.nottingham.ac.uk
> [mailto:xerte-bounces at lists.nottingham.ac.uk] On Behalf Of Peter
> Huppertz
> Sent: 07 July 2010 15:17
> To: Xerte discussion list
> Subject: Re: [Xerte] Xerte3: on Mac?
>
> Yes, I built it and tested it. But as I said, I stuck at the preview.
> The rest seems to work out of the box.
>
>
> On 07.07.2010, at 15:16, Julian Tenney wrote:
>
>> Can you build it? Then once you've tested it you can send me updated
>> code...
>>
>> -----Original Message-----
>> From: xerte-bounces at lists.nottingham.ac.uk
>> [mailto:xerte-bounces at lists.nottingham.ac.uk] On Behalf Of Peter
>> Huppertz
>> Sent: 07 July 2010 14:15
>> To: Xerte discussion list
>> Subject: Re: [Xerte] Xerte3: on Mac?
>>
>> Hopefully ...
>>
>> New project:
>>
>> MainMenu.as
>>
>> replace
>> fileName = mdm.Dialogs.BrowseFile.show();
>> with
>> fileName = mdm.Dialogs.BrowseFileToSave.show();
>>
>> forget about the three lines above.
>>
>> Also I added a settings.as containing
>>
>>
>> package org.xerteEditor
>> {
>>
>> import flash.system.Capabilities;
>>
>> public class Settings
>> {
>> static public function get delimiter():String
>> {
>> var delimiter:String;
>> var os:String = Capabilities.os;
>> if (os.split(" ")[0] == "Windows") {
>> delimiter = '\\';
>> } else {
>> delimiter = '/';
>> }
>> return delimiter;
>> }
>>
>> }
>>
>> }
>>
>> In every file using paths replace the \\ with
>>
>> ' + Settings.delimiter + '
>>
>>
>>
>> On 07.07.2010, at 15:00, Julian Tenney wrote:
>>
>>> I think we have a chance down the zinc / mac road if we work through
>> it
>>> methodically and identify the issues and fix them.
>>>
>>> I got stuck at the first hurdle, as I could not figure out how a mac
>> new
>>> file dialog allows you to create a new file, and so far, no one has
>> told
>>> me...
>>>
>>>
>>>
>>> -----Original Message-----
>>> From: xerte-bounces at lists.nottingham.ac.uk
>>> [mailto:xerte-bounces at lists.nottingham.ac.uk] On Behalf Of Peter
>>> Huppertz
>>> Sent: 07 July 2010 13:58
>>> To: Xerte discussion list
>>> Subject: Re: [Xerte] Xerte3: on Mac?
>>>
>>> I also tried again to get it work with the Mac version of Zinc.
>> Replaced
>>> the \\ with a separator var based on the OS, the user works on. But
>>> every time I try to load the preview (Xerte.swf) it stops and
> crashes.
>>> Apparently there is no log file?!
>>> Tried to replace Xerte.swf with a simple rectangular I drew in Flash,
>>> nothing is displayed at all in the preview pane. Such a waste of
> time.
>>
>>>
>>>
>>>
>>> On 06.07.2010, at 17:42, Julian Tenney wrote:
>>>
>>>> OK. Good to know. With more time we can probably work it out at some
>>>> point,
>>>>
>>>> -----Original Message-----
>>>> From: xerte-bounces at lists.nottingham.ac.uk
>>>> [mailto:xerte-bounces at lists.nottingham.ac.uk] On Behalf Of Peter
>>>> Huppertz
>>>> Sent: 06 July 2010 15:17
>>>> To: Xerte discussion list
>>>> Subject: Re: [Xerte] Xerte3: on Mac?
>>>>
>>>> I spent the last two days to get an air version of Xerte3 running
>>>> without success. I encountered the same problems you describe,
> having
>>>> Sandbox security violations. Tried several tips/tricks that are
>>>> mentioned in the www, without success. So I give up on this :-(
>>>>
>>>>
>>>> On 05.07.2010, at 14:23, Julian Tenney wrote:
>>>>
>>>>> It is a bit cumbersome, and it is the security thing that I cannot
>>>>> resolve. I've also tried it with network services = false, but
> there
>>>>> seems to be a problem with getting one movie (the editor) to load
>>>>> another local swf (the preview). If I could get it to do both
>>> reliably
>>>>> it would speed up the debugging process quite a bit as you wouldn't
>>>> need
>>>>> to build the zinc app, and then try what you need to do.
>>>>>
>>>>> Something changed though: this used to be possible, so I have no
>> idea
>>>>> whether it's a zinc thing, a flash player thing, a security thing
> or
>>>>> just me. I did write most of the app whilst it still worked
>> though...
>>>>>
>>>>> -----Original Message-----
>>>>> From: xerte-bounces at lists.nottingham.ac.uk
>>>>> [mailto:xerte-bounces at lists.nottingham.ac.uk] On Behalf Of Peter
>>>>> Huppertz
>>>>> Sent: 05 July 2010 13:09
>>>>> To: Xerte discussion list
>>>>> Subject: Re: [Xerte] Xerte3: on Mac?
>>>>>
>>>>> I tried around with Zinc on my Mac, more or less just replacing
>>>>> backslashes with slashes. I think Xerte is now trying to create the
>>>>> preview, but the Application just quits on Mac. All in all it is
>>> quite
>>>>> cumbersome to work with Zinc, because you always have to compile a
>>> new
>>>>> XerteEditor and than create a new Application with Zinc. This leads
>>> me
>>>>> to try the Air Path again. I'm able to open my x3o file in my Air
>>>>> application now and the tree is visible in the tree view. But the
>>>>> preview throws a security error. I'm not totally sure, but it could
>>>> be,
>>>>> that a security settings of the xerte.swf causes the problem. Can
>> you
>>>>> compile xerte with the compiler setting "Use network services" set
>> to
>>>>> false for me? (I'm not able to compile Xerte here ...)
>>>>>
>>>>> Peter
>>>>>
>>>>>
>>>>> On 02.07.2010, at 15:15, Dave Burnett wrote:
>>>>>
>>>>>>
>>>>>>
>>>>>>> How am I supposed to name the new file on the mac?
>>>>>>
>>>>>> With latte in hand, you just visualize it.
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>> _________________________________________________________________
>>>>>> The New Busy think 9 to 5 is a cute idea. Combine multiple
>> calendars
>>>>> with Hotmail.
>>>>>>
>>>>>
>>>>
>>>
>>
> http://www.windowslive.com/campaign/thenewbusy?tile=multicalendar&ocid=P
>>>>>
>>>>
>>>
>>
> ID28326::T:WLMTAGL:ON:WL:en-US:WM_HMP:042010_5__________________________
>>>>> _____________________
>>>>>> Xerte mailing list
>>>>>> Xerte at lists.nottingham.ac.uk
>>>>>> http://lists.nottingham.ac.uk/mailman/listinfo/xerte
>>>>>
>>>>> ==================================
>>>>> Peter Huppertz
>>>>> E-learning and IT Specialist
>>>>> International Centre for Asset Recovery
>>>>> Basel Institute on Governance
>>>>> Phone: +41 61 205 55 18
>>>>> Fax: +41 61 267 55 19
>>>>>
>>>>> _______________________________________________
>>>>> 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
>>>>
>>>> ==================================
>>>> Peter Huppertz
>>>> E-learning and IT Specialist
>>>> International Centre for Asset Recovery
>>>> Basel Institute on Governance
>>>> Phone: +41 61 205 55 18
>>>> Fax: +41 61 267 55 19
>>>>
>>>> _______________________________________________
>>>> 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
>>>
>>> ==================================
>>> Peter Huppertz
>>> E-learning and IT Specialist
>>> International Centre for Asset Recovery
>>> Basel Institute on Governance
>>> Phone: +41 61 205 55 18
>>> Fax: +41 61 267 55 19
>>>
>>> _______________________________________________
>>> 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
>>
>> ==================================
>> Peter Huppertz
>> E-learning and IT Specialist
>> International Centre for Asset Recovery
>> Basel Institute on Governance
>> Phone: +41 61 205 55 18
>> Fax: +41 61 267 55 19
>>
>> _______________________________________________
>> 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
>
> ==================================
> Peter Huppertz
> E-learning and IT Specialist
> International Centre for Asset Recovery
> Basel Institute on Governance
> Phone: +41 61 205 55 18
> Fax: +41 61 267 55 19
>
> _______________________________________________
> 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
==================================
Peter Huppertz
E-learning and IT Specialist
International Centre for Asset Recovery
Basel Institute on Governance
Phone: +41 61 205 55 18
Fax: +41 61 267 55 19
More information about the Xerte
mailing list