Flash movie in Director

Ask a Question related to Macromedia Director Lingo, Design and Development.

  1. #1

    Default Flash movie in Director

    Hi All, I am new to this user group.

    I am facing a problem in Director MX. I have imported a Flash Movie ( SWF ) in Director. What I require is when the Flash Movie is done playing the control jumps to the next frame...

    My flash movie has 600 frames and in the last frame. I have added a label END.... I am trying to use the FINDLABEL() command of director by means of which I can check if my movie has reached the LAST FRAME / Label so I can jump to the other Marker in the director Movie.

    Can you please please tell me how to code it..... how to create a simple IF statement which checks the last LABEL and if found & Reached... it should jump to the next marker in director.

    Thanks in advance...

    HUMBLE



    Hunble webforumsuser@macromedia.com Guest

  2. Similar Questions and Discussions

    1. Help with flash movie in director
      Im having trouble importing my flash movie into director 8. I created the movie in flash mx and iv imported the swf file into director, but all...
    2. controlling Director movie with Flash
      I have a Director file that has to react to a Flash file. Specifically, I have a director file that includes a Flash file. When the swf reaches a...
    3. possible to import director movie into flash?
      I have a silly little program that i wish to import into a flash movie and I don't really know if its possible. Flash refuses to touch dcr files at...
    4. Working with a Flash Movie into Director
      Hi all ! I'm a newbie ( FRENCH newbie lol ). I imported a flash movie into Director. Everything is fine. But here is my problem: At the end...
    5. Is there something like a flash movie clip in Director
      Hi, In flash we can make movie clips, put inside them code and movement and place them wherever we want on our flash movie. Is there something like...
  3. #2

    Default Re: Flash movie in Director

    You could do something like:

    on exitFrame me
    if sprite(3).playing=0 then
    go to next -- goes to the next marker
    else
    go to the frame
    end if
    end

    This will keep the playback head on that frame until the Flash finishes (the
    above assumes the flash is in sprite #3)

    Michael Hamstra


    "Hunble" <webforumsuser@macromedia.com> wrote in message
    news:blu7r6$t1$1@forums.macromedia.com...
    > Hi All, I am new to this user group.
    >
    > I am facing a problem in Director MX. I have imported a Flash Movie (
    SWF ) in Director. What I require is when the Flash Movie is done playing
    the control jumps to the next frame...
    >
    > My flash movie has 600 frames and in the last frame. I have added a label
    END.... I am trying to use the FINDLABEL() command of director by means of
    which I can check if my movie has reached the LAST FRAME / Label so I can
    jump to the other Marker in the director Movie.
    >
    > Can you please please tell me how to code it..... how to create a simple
    IF statement which checks the last LABEL and if found & Reached... it should
    jump to the next marker in director.
    >
    > Thanks in advance...
    >
    > HUMBLE
    >
    >

    Michael Hamstra Guest

  4. #3

    Default Re: Flash movie in Director

    You don't need to use the frame label, since your Flash movie is
    linear, you can just use the duration of the movie to trigger the
    event.

    Something like this attached to the Flash sprite will work:

    --------
    property thisSprite
    property thisDuration

    on beginSprite me
    thisSprite = me.spriteNum
    thisDuration = sprite(thiSprite).member.frameCount
    end

    on exitFrame me
    go to the frame
    if sprite(thisSprite).frame >= thisDuration then go to the frame + 1
    end
    --------

    --
    Rob
    _______
    Rob Dillon
    Team Macromedia
    [url]http://www.ddg-designs.com[/url]
    412-243-9119

    [url]http://www.macromedia.com/software/trial/[/url]
    Rob Dillon Guest

  5. #4

    Default Re: Flash movie in Director

    You could also use:

    on exitFrame me
    if sprite(x).frame < member("x").frameCount then go to the frame
    else go to the frame +1 -- or use a marker of some sort
    end


    JKLea


    JKLea webforumsuser@macromedia.com Guest

  6. #5

    Default Re: Flash movie in Director

    In article <blu9le$4d7$1@forums.macromedia.com>, Michael Hamstra
    <hamstra@bellsouth.net> wrote:
    > You could do something like:
    >
    > on exitFrame me
    > if sprite(3).playing=0 then
    > go to next -- goes to the next marker
    > else
    > go to the frame
    > end if
    > end
    >
    On slower computers this method can fail, the first test for that
    sprite's playing property can return 0 as it hasn't started playing
    yet. The same problem exists when checking a digital video file.

    --
    Rob
    _______
    Rob Dillon
    Team Macromedia
    [url]http://www.ddg-designs.com[/url]
    412-243-9119

    [url]http://www.macromedia.com/software/trial/[/url]
    Rob Dillon Guest

  7. #6

    Default Re: Flash movie in Director

    In article <blukc6$qo4$1@forums.macromedia.com>, <
    [email]webforumsuser@macromedia.com[/email]> wrote:
    > You could also use:
    >
    > on exitFrame me
    > if sprite(x).frame < member("x").frameCount then go to the frame
    > else go to the frame +1 -- or use a marker of some sort
    > end
    >
    >
    This method causes Director to have to test for the frameCount value at
    every frame loop. Since it never changes, it's better to get the value
    once and then store it in a property variable.

    --
    Rob
    _______
    Rob Dillon
    Team Macromedia
    [url]http://www.ddg-designs.com[/url]
    412-243-9119

    [url]http://www.macromedia.com/software/trial/[/url]
    Rob Dillon Guest

  8. #7

    Default Re: Flash movie in Director

    I think that's called "memory management," right?

    I always forget about that. :/

    Thanks Rob.


    JKLea


    JKLea webforumsuser@macromedia.com Guest

  9. #8

    Default Re: Flash movie in Director

    Thanks to everybody who have taken out time to respond to my query, I am really obliged.

    ROB thanks a bundle, your solution really works. I also agree with you upon that slow machine problem with sprite(3)= 0 code. Also it will skips to next marker if I have paused my flash movie through lingo.

    Now I am submitting another problem :)

    I want to know how can I control flash movie audio / sounds through director. E.g.,

    I have this flash movie which has a background voice over / narration playin in it. I have made a volume slider but I don't know how to control the sound in flash movie through this slider in director.....

    Can you help me with this. Thanks in advance again.

    Regards
    Humble


    Hunble webforumsuser@macromedia.com Guest

  10. #9

    Default Re: Flash movie in Director

    See your other message on this subject...

    --
    Rob
    _______
    Rob Dillon
    Team Macromedia
    [url]http://www.ddg-designs.com[/url]
    412-243-9119

    [url]http://www.macromedia.com/software/trial/[/url]
    Rob Dillon Guest

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139