Is there a way to add transitions to dynamic photogallery

I have completed the adding thumbnails tutorial and I would like to add a dynamic transition called PixelDissolve instead of the fade. This is the code I have.

import mx.transitions.*;
import mx.transitions.easing.*;

var dissolving = {
    type: PixelDissolve,
    direction: 1,
    duration: 3,
    xSections: 20,
    ySections: 20,
    easing: Strong.easeInOut,
    numStrips: 10,
    dimension: 1

TransitionManager.start(image1_mc, dissolving);