ActiveDen

Floating Media Gallery

FAQ : How to set galllery dimension with specific size instead of full screen

The gallery is set to scale to stage, to use width and height open FMGallayer.as, look for

env = new PV3DEnvironment(Number(data.config.@viewWidth), Number(data.config.@viewHeight), true);

change to

env = new PV3DEnvironment(Number(data.config.@viewWidth), Number(data.config.@viewHeight), false);

FAQ : How to make a link for each category book ?

Open FMGallery.xml and insert link tag for each category

<category type="image" style="4x4">
  <xmlPath src="xml/art.xml"/>
  <image src="asset/art/categoryImage.jpg"/>
  <link src="http://www.activeden.net/user/RimV"/>
</category>

Open FMGallery.as, add this in the import section of the script:

import flash.net.*;

In createGallery function, add this line of code:

...

category[i].link = String(data.categories.category[i].link.@src);
...

inside the for loop

In categoryClicked function, add this in the beginning of the function:

navigateToURL(new URLRequest(category[e.target.extra.index]), "_blank");
return;

FAQ : How to change the maximum size of enlarged item:

Open FMGallery.as, look for addedToStage(e:Event) function, add these code:

mediaHolder.imageLoader.maxWidth = yourMaximumWidthValue;
mediaHolder.imageLoader.maxHeight = yourMaximumHeightValue;

below the new declaration of mediaHolder object

FAQ : How to enlarge full item holder area ? (the gray background)

Look for MediaHolder in library, there you can resize background movie clip

You may also need to tweak

 var z1 = item.extra.z - 910; 

in bringToFront() function

How to use special character like Chinese ?

Hit F11 to open Library, look for DynamicTextScroller movie clip (in MediaHolder – Dynamic Text Scroller folder).

Open textClip – textArea, look at Property Panel and choose Embed under Character section. Choose a proper font and select and necessary character.

How to change font size and font color of description textfield and caption ?

  • Hit F11 to open Library, look for DynamicTextScroller movie clip (in MediaHolder – Dynamic Text Scroller folder).
  • Open textClip – textArea, change the font size and color in Property panel
  • Repeat the same process with the textfield of SimpleTooltip movie clip
by
by
by
by
by