Digital Workshop

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

All times are UTC [ DST ]




Post new topic Reply to topic  [ 6 posts ] 
Author Message
 Post subject: GetPosition() fails in published flex
PostPosted: December 17th, 2005, 10:18 pm 
Offline

Joined: December 29th, 2004, 12:00 pm
Posts: 230
Location: Auckland NZ
Opus: v 7.04
OS: xp & win7
Trying to mimic an often seen Flash portfolio displayer I've made a scrolling frame, larger than the page. The script works fine until I publish to flex, then it fails.
Does this mean that GetPostion() cannot read postions off the page after publishing?


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


Top
 Profile  
 
 Post subject:
PostPosted: December 18th, 2005, 7:37 am 
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 Mac

Just reading thne Opus help file

Index = Flex support for Opus script"

It says that GetPosition works for graphical objects and video.

I don't know whether a frame is a strictly by definition, a graphical object and if it is not, this might be the answer.

Might not be the answer either but at least you'll have something to ponder over until the experts arrive on Monday morning and provide you with a definitive answer to your problem. :D

Cheers

Graham

_________________
Too much coffee can result in frequent toilet breaks!


Top
 Profile  
 
 Post subject: GetPosition, SetPosition
PostPosted: December 18th, 2005, 9:03 pm 
Offline

Joined: December 29th, 2004, 12:00 pm
Posts: 230
Location: Auckland NZ
Opus: v 7.04
OS: xp & win7
thanks for looking Graham.
The first SetPostion works fine for the little frame which creates the sliding 'hilite' which slides onto the other "selector button" frames. But they are on the page.
Then the GetPosition returns the postion of a selected image in the wide images frame, relative to the page itself. Usually this image would be off the page.
The last SetPosition moves the images frame relative to the page to centre the image.
I'm guessing the GetPosition is failing because it is trying to locate an object which is off the page.
If I publish to web using the Plexus plugin it works fine. Standalone exe works fine, preview while developing works fine, it just fails as Flex.
:cry:


Top
 Profile  
 
 Post subject: added comments to script for clarity
PostPosted: December 19th, 2005, 10:13 pm 
Offline

Joined: December 29th, 2004, 12:00 pm
Posts: 230
Location: Auckland NZ
Opus: v 7.04
OS: xp & win7
I've included comments within frame img1 script to clarify what I'm trying to do.
I think that I've proved to myself that the script cannot work in Flex.
Ah well...


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


Top
 Profile  
 
 Post subject:
PostPosted: December 20th, 2005, 9:01 pm 
Offline

Joined: November 11th, 2004, 4:05 am
Posts: 636
Location: Christchurch, NZ
Hi Mac,
Try it now -- removed all instances of var from your pub -- looks like variable scope is the problem when publishing as an swf.

Rewriting it without the frame would possibly work, or using GetParent(), GetChild(), etc -- but I've taken the easy route.

Won't make some of the purists happy,
but don't be afraid to break the rules to get something working.

cheers
Paul -- from south of the Bombay Hills


Top
 Profile  
 
 Post subject: funny thing...
PostPosted: December 20th, 2005, 9:37 pm 
Offline

Joined: December 29th, 2004, 12:00 pm
Posts: 230
Location: Auckland NZ
Opus: v 7.04
OS: xp & win7
I knew when I first posted that Paul would nail it.

Thanks Paul.

P.S. what does South of the Bombay Hills mean? I didn't realise there was anything South of the Bombay Hills.

:D


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

All times are UTC [ DST ]


Who is online

Users browsing this forum: Google [Bot] and 60 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