Quantcast
Channel: Adobe Community: Message List
Viewing all articles
Browse latest Browse all 88739

Re: Problem video swf

$
0
0

Hello

-- This behavior was written by Chuck Neal of

-- http://www.mediamacros.com/

 

property spriteNum

property pObject

property pVideoName

 

on exitFrame me

  if pObject = void then

    pObject = sprite(spriteNum).getVariable("_root", 0)

    put the moviePath & pVideoName

    pObject.loadVideo(the moviePath & pVideoName)

  end if

end

 

on doVideo me, vCOmmand, vParam

  case symbol(vCommand) of

    #play :

      pObject.playVideo()

    #pause :

      pObject.pauseVideo()

    #rewind :

      pObject.seekVideo(0)

      pObject.playVideo()

  end case

end

 

on statusEvent me, vEvent, vTime

  case vEvent of

    "NetStream.Play.Start" :

      sendAllSprites(#videoEvent, #start)

   

    "NetStream.Play.Stop", "Complete" :

      sendAllSprites(#videoEvent, #end)

  end case

end

 

on loadVideo me, vVideo

  pObject.loadVideo(vVideo)

end

 

 

on getPropertyDescriptionList me

  p = [:]

  p[#pVideoName] = [#format : #string,  #comment : "Video file relative to the director file", #default : "video.flv"]

  return p

end

I put script Link SWF to FLV my video and I see a parameters window. I read from Using Flash Video - FLV - with Director but I don't understand. Can you tell me an example?

 

Thank you.

 

Alex


Viewing all articles
Browse latest Browse all 88739

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>