Black rat, in your example you have the thumbPath and title parms up against each other, like so; thumbPath=""title= ...

You need to separate them with whitespace.

Were you able to get escaped markup to work in the title using SV Pro? I found I had to edit the script to tell Flash the text is an HTML field before it would work that way.


(4 replies, posted in SimpleViewer v1)

I don't believe SV Pro 1.8 differentiates between the content you feed it. It's simply going to display what you tell it to display, e.g. JPEG bitmaps, PNG bitmaps or SWF content.

In your gallery.xml, for instance, if you include references to PNG files then SV will display them. Just like JPEGs; put a copy in the thumbs folder and the images folder. Same goes for SWF content.

There is no code in SV that respects one file type over another (that I could see). And everything works; the nav arrows, the dogear symbol, framing -- everything.

All you need to do in your Flash editing environment is publish for Flash Player 8. Your viewer.swf file, and the version of Flash Player loaded on the target computer, determine whether you can view PNG graphics in SV.

What I'm about to discuss here is pretty simple, but I'll take the time to post it in case somebody wants to do some very simple customization.

You'll need SV Pro 1.8 and Macromedia Flash (I use v8).

Let's say you wanted to specify the text color of your captions, and your title. Currently, both of those can be adjusted by editing your file and then republishing the viewer.swf file. But who wants to do all that just to change a text color?!

We have an external config file, after all. That's the point! I should be able to control color values all day long via my gallery.xml.

So, let's edit some ActionScript. We want to expose the settings for titleTextColor and captionTextColor and make them available to gallery.xml by doing the following:

1) Using Flash, open for editing.

2) At line 66 or so, look for public function set xmlData(xmld:XML)
(This is the function that grabs the variables from your gallery.xml file and loads them into SV at runtime.)

3) Look for the line of script that reads like
captionTextColor = setIfValidNumber(xmlRoot.attributes.textColor,captionTextColor);

Should be about line 93. We are concerned with this line and the very next line, where we'll control the caption and title colors, respectively.

As you can see, both of these take their cues from textColor which can be set in your gallery.xml. But that does us little good if we want to specify caption and title colors independently.

4) I suggest changing line 93 to something like this:
captionTextColor = setIfValidNumber(xmlRoot.attributes.captionColor,captionTextColor);

Now, all we're doing is creating a unique variable for the caption text color, a variable we can tag in our gallery.xml just like any of the other variables there.

5) Change line 94. Insert titleColor in place of textColor.

6) Save your script and republish.

7) Edit gallery.xml by adding, as an example,

to the file. (Them there are zeros, not the letter Oh.)

The titleColor and captionColor references here correspond exactly to the edits you just made in the script. Now you can control caption and title text colors independently. No need for a Flash editing environment.

I'd like to point out that simple customizations like this are well, quite simple... because of the clear and straightforward manner in which the ActionScripts are written by AirTight. It's always a pleasure to work with good, clean, concise code. Thanks, guys!


(3 replies, posted in SimpleViewer v1)

No, there isn't. There is *no* 100% certain way to prevent images from being copied. Having said that, you may want to look closer at your website -- very nice images of the Chelsea Hotel by the way -- you have an image directory that's wide open. You'll want to turn your indexing off (Apache server) or insert a simple index.html file in there like Cliff mentions.

I'd like to set my Simpleviewer so my photos cannot be copied? Anyway to do this on Simpleviewer? *I also use Porta*

Works great. Thanks, Felix.

If your client is concerned his images may be "stolen," i.e. by a circumventing any payment mechanism installed on the site, his concerns are valid. Most any content rendered in a browser can be "acquired."

Simply put, all I need to do is browse the contents of your gallery.xml file, and I'll see the path and file names of your photographer's images. It's not rocket science.

And please note this is not the fault of Airtight Interactive's software, either (which is excellent IMHO).

If you don't want the images stolen, just serve thumbnails (and perhaps watermark those). Only serve the "paid for" high resolution photo after your payment mechanism verifies a valid transaction.

Just a thought.

One more thing, blackrat...

Your gallery.xml file is malformed. You have a redundant backgroundImagePath setting. (The first one points to your jpeg background, the second is null.)

After you get your gallery going with a transparent window, you can delete backgroundImagePath="swfbackground.jpg"

You have this...

  <object classid="clsid&#58;D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="your_url_here..." width="534" height="417">
    <param name="movie" value="viewer.swf" />
    <param name="quality" value="high" />
    <param name="BGCOLOR" value="#831401" />
    <embed src="viewer.swf" width="534" height="417" quality="high" pluginspage="your_url_here..." type="application/x-shockwave-flash" bgcolor="#831401"></embed>

... and you'll want to make the following changes to it:

  <object classid="clsid&#58;D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="your_url_here..." width="534" height="417">
    <param name="movie" value="viewer.swf" />
    <param name="quality" value="high" />
    <param name="BGCOLOR" value="#831401" />
    <param name="wmode" value="transparent">
    <embed src="viewer.swf" width="534" height="417" quality="high" pluginspage="your_url_here..." type="application/x-shockwave-flash" bgcolor="#831401" wmode="transparent"></embed>

You're inserting this: <param name="wmode" value="transparent"> right after <param name="BGCOLOR"...
Make sure to insert this into your <embed> tag as well.

This tells the player to render content against a transparent background (the default behavior is opaque). That should fix you up!

I don't believe it's your "problem." Those lines of script Felix mentions don't exist anywhere in any of the source files delivered with SimpleViewer Pro 1.8.