These forums are provided for community interactions only. For official support please submit a support ticket.
You are not logged in.
Is there a halt function for Thumbgrid and should/how it be called?
Offline
Hello,
I'm getting the following errors when I try to publish using SSP and ThumbGrid:
1046: Type was not found or was not a compile-time constant: SSPImageEvent.
1046: Type was not found or was not a compile-time constant: TGRequestEvent.
I've placed ThumbGrid to completely cover SSP so that users will first see ThumbGrid, then clicking on an image in ThumbGrid will hide ThumbGrid, thus revealing SSP and the full-size image. Clicking on the action area of the image would then take the user back to ThumbGrid. At least, in theory... This is quite common - I see lots of sites out there that have such galleries using SSP and ThumbGrid, but I can't seem to get mine to work. I have very little experience with AS, especially AS3. Here is my AS3 code so far:
my_ssp.addEventListener(SSPImageEvent.IMAGE_CLICK, onImageClick);
my_tg.addEventListener(TGRequestEvent.LOAD_THUMB, onThumbEvent);
function onThumbEvent(event: TGRequestEvent) {
if (event.type=="loadThumb") {
my_ssp.visible=true;
my_tg.visible=false;
}
}
function onImageClick(event:SSPImageEvent) {
if (event.zone=="action") {
my_tg.visible=true;
my_ssp.visible=false;
}
}
Any help anyone might offer is greatly appreciated!
Thank you!
-James
Offline
Go to the COMPONENT INSPECTOR of your SSP and look for CONTENT AREA. Set Interactivity to "Action Area and Navigation" and Action to "Event". Should work.
Last edited by vhansen (2010-05-10 03:51:30)
Offline