This content has been marked as final.
Show 2 replies
-
1. Re: [AS] [CS2] Placing images in frames
sstanleyau Jul 2, 2008 9:32 PM (in response to myDwayneSmith)On 3/7/08 1:46 PM, "myDwayneSmith" <member@adobeforums.com> wrote:<br /><br />> How does the script understand the term dsPicItem when it hasn't been defined?<br />> How does the script know to place one instance of each image (rather than,<br />> say, repeating the first image in every frame)?<br /><br />When you say "repeat with dsPicItem in dsPics", you're saying to put a<br />reference to the first item of dsPics into dsPicItem, then next time around<br />put the second item, and so on. It's just a shorter way of saying:<br /><br />repeat with i from 1 to count of dsPics<br />set dsPicItem to item i of dsPics<br /><br />Sometimes it can cause problems (because of the way references work), so the<br />"longer" way is a better habit to get into.<br /><br />-- <br />Shane Stanley <sstanley@myriad-com.com.au> -
2. Re: [AS] [CS2] Placing images in frames
myDwayneSmith Jul 2, 2008 10:37 PM (in response to myDwayneSmith)Thanks for your succinct reply Shane.
It's great to have someone help with navigating through this new, complex language.
I will certainly be integrating your 'longer' (but safer) code into my scripts.
Have a good one,
Dwayne Smith


