Help get this topic noticed by sharing it on Twitter, Facebook, or email.

Find the status of the "sound on and off"

Hello Dan,

It is not easy to explain, sorry.

On my Master page, I have a button the "on" and "off" (two images HP on and HP off) for every book. (Ambient, objects sounds and voices)
It works very well.

On the “menu” page of the book you can choose a page where there is a video clip.
On this page vidéo when you touch the “button video clip” with your finger, the clip start.
The behavior of the button I put "Play movie, mute all effects on, speech and music on it."
No problem, all sounds stop and the clip plays normally.

But then, I do not know how to find the behavior of the "sound" button at the end of the clip.
That is, if the button was "on" or "off" before the clip.
If I put the clip "if movie ended-mute all effects off music off speech off".
and the "sound" button was "on" before the clip, is ok.
But if the button sound was on "off" before the clip, the sound restart again with the image of button sound on "off".
My pictures "sound" are reversed.
I don’t want that.

I can not find the solution to find the exact state of the "sound" button before the clip.
Can you help me with that, please?

Thank you in advance.
Jim
1 person has
this question
+1
Reply
  • Dan (Official Rep) July 08, 2014 12:38
    Ok....
    Simple HACK

    Have an empty Index Page. Set all Audio objects to Pause When Index is Shown.
    Show index. Play Movie.
    Movie did finish > Index Hidden On.

    No good?

    Ok.

    We need to make Proxies. And use Hot Zones .
    Make 3 image objects that have the app icon as their image ( So small 72x72 )
    Name 1, Effects Muted, another Speech Muted and another Music Muted.
    Put them at 0,-100
    Make a Hot Zone at 0,-100 that is 100,100 big.
    Set Hot Zone To Target All 3 image objects.
    Set Hot Zone To Ignore Touches. ( this will tell it to not detect what is in it )

    On the behaviour that Mutes a type, Moves Type Muted To X 100( so that way it enters the Hot Zone ) When you turn Mute off, Move Type Muted to X 0 ( so that it is NOT in the Hot Zone )

    When you want to restore what was Muted.
    Hot Zone Set Ignore Touches OFF ( OK check what is in you )
    Wait 0.5
    Set Ignore ON ( go back to ignoring again )

    This will cause the Hot Zone To fire Object Entered Events On any of the 3 Images That ARE in it.

    So
    IF Speech Muted Object Entered Hot Zone
    THEN Speech Mute OFF

    IF Effects Muted Object Entered Hot Zone
    THEN Effects Mute OFF
    ...

    Dan
  • (some HTML allowed)
    How does this make you feel?
    Add Image
    I'm

    e.g. sad, anxious, confused, frustrated kidding, amused, unsure, silly happy, confident, thankful, excited indifferent, undecided, unconcerned

  • Hi Dan,

    I'll try your second solution.
    I say I will try because it is not easy for me.
    You're a developer, I'm illustrator and musician and I like Composer Pro.

    1 / I have a button (two images on and off) for the sound that I put on the Master page.
    I have two ambient sounds that start on the cover page.
    1 - Music for all the book.
    2 - Beach sound, for all the book.
    It's ok for you or not?
    Should I put these two sounds on the Master page?

    2 / Where do I create the 3 images and Hot Zone.
    Master on my page or on my video?

    When I have solved this problem I have finished my book.
    thank you very much again.
    Jim
  • (some HTML allowed)
    How does this make you feel?
    Add Image
    I'm

    e.g. sad, anxious, confused, frustrated kidding, amused, unsure, silly happy, confident, thankful, excited indifferent, undecided, unconcerned

  • Dan (Official Rep) July 09, 2014 18:11
    1.) No they stay were they are.

    2.) On the master off the top of the page were nobody can see them.
  • (some HTML allowed)
    How does this make you feel?
    Add Image
    I'm

    e.g. sad, anxious, confused, frustrated kidding, amused, unsure, silly happy, confident, thankful, excited indifferent, undecided, unconcerned

  • Dan thank you for your answers but I admit that it’s hard for me to know what image object or page I have to follow your example.
    Forgive me but I could be a little stupid.
    Yet I already do all alone in my book Composer fairly difficult things, but then I'm stuck.
    If you want I can post a picture to make you understand my problem.

    Questions.

    * We need to make Proxies. And use Hot Zones .
    Make 3 image objects that have the app icon as their image ( So small 72x72 )
    Name 1, Effects Muted, another Speech Muted and another Music Muted.
    1- ( ok 3 images 3 muted) name, effect: if entered zone then mute all effects on) the same for the other

    Put them at 0,-100
    Make a Hot Zone at 0,-100 that is 100,100 big.
    Set Hot Zone To Target All 3 image objects.
    *Set Hot Zone To Ignore Touches. ( this will tell it to not detect what is in it )
    2-(ok i do this in the inspector of the Hot Zone )

    *On the behaviour that Mutes a type, Moves Type Muted To X 100( so that way it enters the Hot Zone )
    3- (On the behaviour off my HP off ?) image without cross for cut the sound.

    *When you turn Mute off, Move Type Muted to X 0 ( so that it is NOT in the Hot Zone )
    4- (On the behaviour off my HP on ?) image with cross for open the sound.

    When you want to restore what was Muted.
    *Hot Zone Set Ignore Touches OFF ( OK check what is in you )
    Wait 0.5
    Set Ignore ON ( go back to ignoring again )
    5-(What object do i put this behaviours? in my movie?)

    This will cause the Hot Zone To fire Object Entered Events On any of the 3 Images That ARE in it.

    So
    *IF Speech Muted Object Entered Hot Zone
    THEN Speech Mute OFF

    IF Effects Muted Object Entered Hot Zone
    THEN Effects Mute OFF

    6-(What object do i put this behaviours? )

    Thank again and again

    jim
  • (some HTML allowed)
    How does this make you feel?
    Add Image
    I'm

    e.g. sad, anxious, confused, frustrated kidding, amused, unsure, silly happy, confident, thankful, excited indifferent, undecided, unconcerned

  • Dan sorry it's me again.
    I allowed myself to make a drawing because I understand better with a drawing.
    If you could write in this drawing behavior that would be really fantastic.
    All alone I can not do it and this is very important for the quality of my book

    What I want:
    When the movie begins, the sound loops stop.
    When the movie is finished, the sounds start again.
    But if the reader has the sound off button before the movie, the "on" button appears.
    But if the reader has the sound on button before the movie, the "off" button appears
    That the image of the button is the same as before the start of the movie.

    Forgive me, I know I'm asking a lot.
    Thank you in advance.
    Jim

  • (some HTML allowed)
    How does this make you feel?
    Add Image
    I'm

    e.g. sad, anxious, confused, frustrated kidding, amused, unsure, silly happy, confident, thankful, excited indifferent, undecided, unconcerned

  • Dan (Official Rep) July 14, 2014 07:46
    Let us just focus on the concept and not care how it is done in Composer for the moment. Once you have the concept we can then work on how to do it in Composer.

    Say you have 3 children, each one has a t shirt. One says Music, one says Effects and one says speech.

    So you draw 2 squares on the ground with chalk and tell all 3 children to stand in the left square.

    Now when you turn off Music you tell the child to go and stand in the right square. When you turn it back on you tell the child to stand in the left square again.
    And when you tun off effects you tell the child to go and stand in the right square and so on.

    When you play the movie, and fire up your projector, you turn the music and the effects and the speech off. but you DON'T tell the children to move, they stay exactly were they are.

    When you movie ends, you call out and say "Who is standing in the left box" to which the children who are standing there will reply "ME I AM", and you look at their t-shirt and it says music, so you turn music on. and then the next child says ME, and you look at their tshirt and it say effects so you turn effects on. But Speech says nothing they are standing on the left.

    Work through it, use toy soldiers and bits of cardboard if you need to, once you understand it, let me know and we discuss how to make children and boxes in composer.
  • (some HTML allowed)
    How does this make you feel?
    Add Image
    I'm

    e.g. sad, anxious, confused, frustrated kidding, amused, unsure, silly happy, confident, thankful, excited indifferent, undecided, unconcerned

  • Thank you sincerely for your time and your great teaching.
    In fact, this tutorial is really interesting.
    I understood this first part and I hope that the following will be also clear, especially for the placement of code and its objects.

    Jim
  • (some HTML allowed)
    How does this make you feel?
    Add Image
    I'm

    e.g. sad, anxious, confused, frustrated kidding, amused, unsure, silly happy, confident, thankful, excited indifferent, undecided, unconcerned

  • Dan (Official Rep) July 15, 2014 12:58
    Ok
    So the children are Image Objects, and the squares on the ground are Hot Zones.

    Normally Hot Zones ask all of its "targets" every frame. We don't want this. So well set it to "Ignore Touches On" this way it doesn't ask.

    When we do
    Ignore Touches Off
    Wait 0.5
    Ignore Touches On

    This is effectively asking the Image Objects Are you In me.

    Each object that IS in the Hot Zone when it asks will yell "Object Entered 1"

    But we only care if the children are In the Left square, the right square doesn't matter, all we care is that they are NOT in the left square or ARE in the left square.

    So Move To X 0 over 0 = In Square
    Move To X 200 Over 0 = Out Square

    So when you start they are Not muted, so all the Image Objects start at 0.

    When they turn Mute On, move the correct image ( music, effects or speech ) out of the Hot Zone with the Move To X 200 Over 0

    If they turn Mute Off, move the correct image back into the Hot Zone. Move To X 0 over 0

    When you play the movie, Mute all, Don't move the image objects
    When the movie ends do the
    Ignore Touches Off
    Wait 0.5
    Ignore Touches On

    Then for each object Object Entered 1 event do the right thing.
    Image Object with Music T-shirt Object Entered 1 THEN SET Mute Music OFF
    ...

    Make sense now?
  • (some HTML allowed)
    How does this make you feel?
    Add Image
    I'm

    e.g. sad, anxious, confused, frustrated kidding, amused, unsure, silly happy, confident, thankful, excited indifferent, undecided, unconcerned

  • This reply was removed on 2014-07-16.
    see the change log
  • Thank you very much Dan

    Without you, I will not find myself.
    Thank you again for your patience and your time.
    You are the Best.

    ps: (If you want I can delete my message Previous with drawing)

    Jim
  • (some HTML allowed)
    How does this make you feel?
    Add Image
    I'm

    e.g. sad, anxious, confused, frustrated kidding, amused, unsure, silly happy, confident, thankful, excited indifferent, undecided, unconcerned

  • Dan (Official Rep) July 17, 2014 13:44
    It maybe a case that something else in your setup, and old behaviour maybe or something else I'm not factoring in has caused it to break. Send me a Dropbox link to you dcb and I will at it, this way I will be able to see ALL of the state and the setup to see what is going wrong.
  • (some HTML allowed)
    How does this make you feel?
    Add Image
    I'm

    e.g. sad, anxious, confused, frustrated kidding, amused, unsure, silly happy, confident, thankful, excited indifferent, undecided, unconcerned

  • I do not understand Dan.
    Your answer is for me?

    I understand your demonstration and finally found how.
    Just one thing is that when I set the Hot Zone 3 Target does not work. So I set to 1 on 1 Target and there it works.
    It is true that it is strange.

    Do you really want my DCB?
  • (some HTML allowed)
    How does this make you feel?
    Add Image
    I'm

    e.g. sad, anxious, confused, frustrated kidding, amused, unsure, silly happy, confident, thankful, excited indifferent, undecided, unconcerned

  • (some HTML allowed)
    How does this make you feel?
    Add Image
    I'm

    e.g. sad, anxious, confused, frustrated kidding, amused, unsure, silly happy, confident, thankful, excited indifferent, undecided, unconcerned

  • But I can send you my DCB to have your opinion on my Book if you have any doubts.
  • (some HTML allowed)
    How does this make you feel?
    Add Image
    I'm

    e.g. sad, anxious, confused, frustrated kidding, amused, unsure, silly happy, confident, thankful, excited indifferent, undecided, unconcerned

  • Hello Dan,

    I come to you because I always have a problem with the button "and it's off."
    It works once, but then it does not work anymore and I do not know why.
    I can send you my DCB if you can help me.

    thank you
    Jim
  • (some HTML allowed)
    How does this make you feel?
    Add Image
    I'm

    e.g. sad, anxious, confused, frustrated kidding, amused, unsure, silly happy, confident, thankful, excited indifferent, undecided, unconcerned