Digital Workshop

Welcome to the Digital Workshop Message Boards
It is currently December 22nd, 2024, 12:22 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 8 posts ] 
Author Message
 Post subject: Flex & script action "SetRotation"
PostPosted: December 14th, 2013, 12:11 pm 
Offline

Joined: November 25th, 2004, 2:23 pm
Posts: 24
Location: Wiltshire, UK
Opus: 9.03
OS: Win7 x64
System: ACER i7 4GB RAM
I'm having problems with the 'SetRotation' script action when publishing to Flex. I'm using Opus 9.01 but have also tried reverting to 8.12. Latest Adobe Player is installed. The problems are:

1. If I publish to a target Flash player higher than v6 the browser freezes.
2. Using target v6, no matter what combination of parameters I use, the final angle of the object is alway 'zero'.

Can someone else test the attached or confirm if they experience the same issue?


You do not have the required permissions to view the files attached to this post.

_________________
Glen


For this message Glen Burn has been thanked by : mackavi


Top
 Profile  
 
 Post subject: Re: Flex & script action "SetRotation"
PostPosted: December 14th, 2013, 11:18 pm 
Offline

Joined: October 25th, 2004, 3:03 pm
Posts: 540
Location: Tyalgum Creek. Australia
Opus: Opus Pro Latest version 9.02 Build 16458
OS: Won 10
System: Asus laptop Intel Core i5 8 gig ram, big monitor, reading glasses
Hi Glen

I had a play and found the following;

1. There is no information in the help file about the Adobe Flash swf html publish options (Inline, Popup or No html)

2. Publishing in ver 9.02 with target version 6 and running in a ff browser causes the box object to rotate 360 degree counterclockwise once, not clockwise. Script parameters are obviously ignored.

3. Publish in target version 7 and you get the following

Attachment:
errormsge.jpg


Followed by an Adobe crash report screen screen inviting comments.

4. Publication crashes in every target version above 6 as you say.

5. Opus help does say that roll, spin and skew actions are now supported. Are you sure rotate is supported?


6. If you delete the script and use the rotate animation action, the publication works using FF and target version 10.6.

http://www.sundry.asciimanor.net/index.html I will leave this link for a day or so for you to test.

New imp file attached

Hope this helps

Cheers

Graham


You do not have the required permissions to view the files attached to this post.

_________________
Too much coffee can result in frequent toilet breaks!


For this message Graham Baglin has been thanked by : mackavi


Top
 Profile  
 
 Post subject: Re: Flex & script action "SetRotation"
PostPosted: December 16th, 2013, 4:49 am 
Offline

Joined: December 29th, 2004, 12:00 pm
Posts: 230
Location: Auckland NZ
Opus: v 7.04
OS: xp & win7
not answering your question but just for a laugh here's a bit of flex rotation...

http://macsnapper.com/flash/clock.htm

_________________
Opus Pro 7.04 - win10


For this message mac has been thanked by : mackavi


Top
 Profile  
 
 Post subject: Re: Flex & script action "SetRotation"
PostPosted: December 16th, 2013, 12:47 pm 
Offline

Joined: November 25th, 2004, 2:23 pm
Posts: 24
Location: Wiltshire, UK
Opus: 9.03
OS: Win7 x64
System: ACER i7 4GB RAM
Graham - thanks for the thorough testing, which seems to confirm the issue. The rotation action option will not meet my needs, as I want to use a variable-based angle value - hence the use of the scripted command.

Mac - V nice clock!! - but is it using action based rotations or scripted values? If the latter, it seems at odds with my issue. Can you clarify?

_________________
Glen


For this message Glen Burn has been thanked by : mackavi


Top
 Profile  
 
 Post subject: Re: Flex & script action "SetRotation"
PostPosted: December 16th, 2013, 1:26 pm 
Offline
Godlike
Godlike

Joined: November 12th, 2005, 1:56 am
Posts: 1474
Location: SFBay Area
Opus: OpusPro v9.0x, & Evol.
OS: Vista32
System: Core 2 duo 2Ghz, RAM 3GB, Nvidia Go 7700 - laptop
Glen,

Have you tried putting the script inside some other object's Std Actions? That way you might be able to get creative with the timing and the triggers. You might try that object initially disabled, then enable (or Show) it.

Otherwise, according to the help files: opusscripts in flex return immediately.

Quote:
Using OpusScript with Flex

Opus Flex does support a limited sub-set of the OpusScript functions. However, it is strongly recommended that you begin with new scripts for Flex publications, as few existing scripts are likely to work without alteration. Please note, there are several limitations that are described below.

Functions all return immediately. In OpusScript many functions do not return a value until the action they perform has completed (such as the Move() function). It is not possible to replicate this behaviour in Flash, therefore all functions return immediately.

_________________
_good things come to those who wait(0)_


For this message Lar_123 has been thanked by : mackavi


Top
 Profile  
 
 Post subject: Re: Flex & script action "SetRotation"
PostPosted: December 16th, 2013, 7:03 pm 
Offline

Joined: November 25th, 2004, 2:23 pm
Posts: 24
Location: Wiltshire, UK
Opus: 9.03
OS: Win7 x64
System: ACER i7 4GB RAM
Lar

Thanks for the suggestion but no improvement. The test publication uses a fixed parameter of 45 degrees (in the finished pub this would be a variable). As Graham observed, the object "myImage" merely rotates a full circle counter-clockwise over 5 seconds. The SetRotation command is listed as supported for a Flex publication in the help file.

Script in the test pub is as follows: myImage.SetRotation(45,true,5.0,false).

I'm beginning to suspect it's a bug?

_________________
Glen


For this message Glen Burn has been thanked by : mackavi


Top
 Profile  
 
 Post subject: Re: Flex & script action "SetRotation"
PostPosted: December 16th, 2013, 8:08 pm 
Offline

Joined: December 29th, 2004, 12:00 pm
Posts: 230
Location: Auckland NZ
Opus: v 7.04
OS: xp & win7
Glen
I wrote a script to set the initial position of the clock face components- e.g. 'minutes' object (a frame) which contains the vectors to draw the minute hand: minutes.Rotate(minangle,0.0)
The rotation after the minutes.Rotate occurs is done by an on show rotate action.

here is my script- don't know if it helps...

var myDate = new Date()
var currHour = myDate.getHours()
var currMins = myDate.getMinutes()
var currSecs = myDate.getSeconds()
minangle=currMins*6
secangle=currSecs*60
if (currHour > 12)
{currHour = currHour-12
}
currHour = currHour+(currMins/60)
hourangle=currHour*30
hours.Rotate(hourangle,0.0)
minutes.Rotate(minangle,0.0)
seconds.Rotate(secangle,0.0)

_________________
Opus Pro 7.04 - win10


For this message mac has been thanked by : mackavi


Top
 Profile  
 
 Post subject: Re: Flex & script action "SetRotation"
PostPosted: December 16th, 2013, 8:37 pm 
Offline

Joined: November 25th, 2004, 2:23 pm
Posts: 24
Location: Wiltshire, UK
Opus: 9.03
OS: Win7 x64
System: ACER i7 4GB RAM
Mac

Thanks. I have swopped to the 'Rotate' command in order to move on.

I will report the SetRotation issue to DW as I suspect it's a bug (or non-functional in Flex, despite the Help documentation)

_________________
Glen


For this message Glen Burn has been thanked by : mackavi


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

All times are UTC [ DST ]


Who is online

Users browsing this forum: No registered users and 34 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:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group