|
From: jj1967 on 24 Feb 2006 10:20 basically - i'm re-working the faults in somebody elses Director project. there are a load of links leading to a particular page of a large PDF document. and some of the links go to the wrong page, so what i'm doing is correcting those links. but i can't work otu the code they used to create the link in the first place, this is it: property page global thispage, lastmarker on mouseup put the frame lastmarker = (the frame) thispage = page go marker ("pdf") end on getPropertyDescriptionList me return ]] end i thought it would have been simple, and each link would have the pdf page number on it, but there isn't .. so can anybody help me out with reworking this code?
From: Rob Dillon *TMM* on 24 Feb 2006 10:30 Sorry, my hand went insane and hit send... There is a property variable, page, that is never given a value. So when that nothing is given to the global variable, thispage, that variable will then have no value. The global variable, lastmarker, gets the current frame number for it's value. This is probably used for some sort of go back function. put the frame just puts the current frame number into the message window. go marker ("pdf"), means just that. I'm guessing that this function is meant to place some useful value into the global thispage. Then that value will be used once the playback head jumps to "pdf". I'm guessing that there will be something there that reads the value of thispage and attempts to do something with it. > property page > global thispage, lastmarker > on mouseup > put the frame > lastmarker = (the frame) > thispage = page > > go marker ("pdf") > end > this function below does nothing, you can delete it. > on getPropertyDescriptionList me > > return ]] > > end -- Rob _______ Rob Dillon Team Macromedia http://www.ddg-designs.com 412-243-9119 http://www.macromedia.com/software/trial/
From: Andrew Morton on 24 Feb 2006 11:17 jj1967 wrote: > basically - i'm re-working the faults in somebody elses Director > project. there are a load of links leading to a particular page of a > large PDF document. and some of the links go to the wrong page, so > what i'm doing is correcting those links. but i can't work otu the > code they used to create the link in the first place, this is it: <snip mess> > i thought it would have been simple, and each link would have the pdf > page number on it, but there isn't .. so can anybody help me out with > reworking this code? It does rather look like that was an incomplete script, so look for another script member with the same name and see if that's the one in use. If it had been completed, I would have expected the getPDL handler to be asking for a page. If so, correcting the links would be a simple matter of selecting the sprite the handler is attached to and looking in the property inspector for the script and changing the page property. Andrew
From: Paul Gray on 24 Feb 2006 11:26 The handler on GetPropertyDescriptionList is the key. It is this that sets the property page. This handler allows the user to use the same script in lots of different places but manually change the value of it in director. For example, if on frame 3 you used the script and set page = 3 and then on frame 8 you can use the same script but change the value to 8. The way you do this is by using the property inspector or behaviour inspector. I prefer the property inspector, click on the behaviour tab and it should show you where you can set the value. You can go to ever instance of this behaviour in the score and give it a different value, I presume to get it to go to a different page of the PDF. I hope this helps or clears anything up for you.
From: Andrew Morton on 24 Feb 2006 11:44 Andrew Morton wrote: > It does rather look like that was an incomplete script, so look for > another script member with the same name and see if that's the one in > use. Ah, so the web forum software strikes again! Will someone please go to the web forum server, remove the disk drives with a backhoe, and polish the platters with a bit of wire wool attached to a jack hammer? Andrew
|
Pages: 1 Prev: How to change Hyperlink color without click Next: QuickTime Controls |