A Flash Developer Resource Site

Results 1 to 4 of 4

Thread: Why name an "Imbedded Video" Instance?

  1. #1
    Senior Member pup100's Avatar
    Join Date
    Oct 2004
    Location
    Close
    Posts
    575

    Why name an "Imbedded Video" Instance?

    When you import a video into Flash you get the chance to give the instance a name in the property pannel.

    What can you do with this named instance of an imbedded video?

    I have tried using actionscript to control it as in


    Code:
    stop();
    _root.embedVid.onRelease = function() {
    	trace("here");
    };
    but no joy - What is the point of allowing you to be able to name an imbedded video instance?
    You will know everything when you know you never will.

  2. #2
    Moderator enpstudios's Avatar
    Join Date
    Jun 2001
    Location
    Tampa, Fl.
    Posts
    11,282
    Place the embedded video into a mc, then you can control it !!

  3. #3
    Senior Member pup100's Avatar
    Join Date
    Oct 2004
    Location
    Close
    Posts
    575
    ok estudioworks & thanks for taking the time to reply;

    Now to test this out I have a movie clip on the main timeline - Instance name "in_mc" with an embedded video inside it - Instance name "lew" - this has a stop action on the first frame.

    From a button on the main timeline I have an onRelease script that targets the embedded video.

    Code:
    stop();
    red_mc.onRelease=function(){
    	_root.in_mc.lew.play();
    }
    I can get it to work if I just target the holding MC (in_mc) but not the embedded vid - So I can't really see the point of nameing the embedded vid?
    You will know everything when you know you never will.

  4. #4
    Senile member! :)
    Join Date
    Dec 2001
    Location
    Saunaswamp (transl)
    Posts
    2,296
    I would assume that an imported videoclip put on stage is an instance of a Video-object not a movieclip. So you can look up Video in the online AS reference manual to check what properties and methods the object supports.

    /Mirandir

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center