--pMembers: Just specify how many members you want to animate from your cast member
--pName: You have to rename the total number of cast members you wish to animate. Here I have specified my members as "BALAN" and I have seven members for a slide show, so I will name the members as "BALAN1, BALAN2, BALAN3.....BALAN7
--pChar: After naming your all members you should specify the number of characters of your member, in my case it"s 6.
property pMembers, pName, pChar
on getBehaviorDescription
return "pMembers: Just specify how many members you want to animate from your cast member"&RETURN&RETURN& "pName: You have to rename the total number of cast members you wish to animate. Here I have specified my members as "BALAN" and I have seven members for a slide show, so I will name the members as "BALAN1, BALAN2, BALAN3.....BALAN7"&RETURN&RETURN& "pChar: After naming your all members you should specify the number of characters of your member, in my case it"s 6."
end getBehaviorDescription
on getPropertyDescriptionList
set description = [:]
addprop description, #pMembers, [#comment: "How many members you want to animate", #format:#integer, #range:[#min:2, #max:20], #default:7]
addprop description, #pName, [#comment: "What is the name of your member", #format:#string, #default:"BALAN"]
addprop description, #pChar, [#comment: "How many characters is there in your member", #format:#integer, #range:[#min:2, #max:10], #default:6]
return description
end getPropertyDescriptionList
on mousedown me
set pMemberNumber = the memberNum of sprite the currentspritenum
set pMemberName = the name of member pMemberNumber
set pictNumber = integer(char pChar of pMemberName)
if pictNumber >= pMembers then
set newpictNumber = 1
-- Type in your command if you wish to navigate after slide show.
else
set newpictNumber = pictNumber + 1
end if
set newMemberName = pName & newpictNumber
set newMemberNumber = the number of member newMemberName
set the memberNum of sprite the currentspritenum to newMemberNumber
updateStage
end
Contact
MMI
36 South Court Sq
Suite 300
Newnan, GA 30263
USA