property pURLString -- the URL of the asset property pNetMember -- the cast member to assign the URL to ------------------------------------------------------------------------- -- Attach this behavior to a frame script or sprite. -- -- This behavior assigns a user-specified URL filename string -- to a cast member and stores a reference to it in a property variable. -- -- Ken Loge - http://diginoodles.com ------------------------------------------------------------------------ on getPropertyDescriptionList me list = [:] addProp list, #pURLString, [#comment: "URL of asset:", #format: #string, #default: "http://diginoodles.com/dreamedia/mov/Expand-Colors-1.mov"] addProp list, #pNetMember, [#comment: "Cast Member to assign the URL to:", #format: #member, #default: "Video1"] return list end on exitFrame me -- set the filename of the specified member to the specified URL member(pNetMember).fileName = pURLString end