View Full Version : visibilty of titles
delhicoder74
06-10-2008, 09:24 AM
Hi All
I have this movieclips of titles which fades in and out at different timings. All of them are at the main timeline. Now want I want to do is "how to make them in visible and invisible" at that moment when the slideshow is running. I have a number of images running at different timings they are controlled by a "play", "pause" and a slider.
Now the problem is the subtitles are inside another movieclip running at a different timeline. This title movie clip is controlled by a on/off button on the main timeline.
I have put in visible function for both the buttons, when I run the flash it reacts correctly but the problem when I pull the slider at different times the titles goes of target.
So if there is a solution which i could controlled the titles at any time. please do help.
thanks in advance
gnomeontherun
06-10-2008, 04:38 PM
Well with actionscript you can put a piece of code to switch visibility using the _alpha property like this:
title_mc._alpha = 100; //100% visible
title2_mc._alpha = 0; //0% visible
You can also avoid actionscript and there is a property box in Flash which at the right side you will see a drop down list if you click on a movieclip. There you can selected Alpha Channel or whatever it is called, and change the value.
delhicoder74
06-11-2008, 09:26 AM
Thanks for your help..
The problem is the titles are all in different layer inside another movieclip. There is a title on/off button placed on the main timeline with a slider to drag forward and backwards.
The nested movieclip(titles) is placed on the main timeline on one layer. When we play the flash movie first it runs fine..but as soon as I drag the slider back and forth..the titles doesn't respond to the slider. The images which is on main timeline runs smoothly with the slider but the titles doesn't. So how could I run both the images and titles with the accurate timings when I drag the slider itself.
gnomeontherun
06-11-2008, 10:49 PM
Well that could be because of how you are referencing the movieClip. So for instance if you have a movieClip named 'title' and inside are two movieClips named 'onbutton' and 'offbutton', you would reference the movieClips inside like this:
_root.title.onbutton._alpha = 0;
delhicoder74
06-12-2008, 05:15 AM
It's like...on the main timeline we have the images fading in and out with different timelines. There are titles for each image which I have right now put inside a movieclip and which is running in its own timeline. Now what I want to achieve is to hide and show only the title with a button click whenever I want. I got a slider, a play and pause on the main timeline to control the slideshow.
Now the problem that I facing is when I drag the slider the title doesn't follow the same action as the images do. The images slides smoothly and on time but with the same case with titles movie which occupies a single layer on the main timeline and the contents(titles layers) are inside another timeline.
I hope it is clear..
gnomeontherun
06-13-2008, 12:47 AM
It would be best if you could show us the FLA? Its hard to understand when I can't see your file structure.
delhicoder74
06-13-2008, 05:38 AM
Thanks for your continued support..Yes I could send the fla but the file size limitation(50kb) discard me from doing so. Any other way which I could send the file let me know
gnomeontherun
06-13-2008, 05:48 AM
There are file sharing sites you could post it on, and then link it, or upload it to your website and link it.
delhicoder74
06-13-2008, 05:57 AM
I'll do that and send you the link to download the file...pls could I get the solution by today itself..as it is quite urgent?
thanks
delhicoder74
06-13-2008, 06:07 AM
Here is the fla file link....http://topsecretscience.com/slideshow/fs.fla
I'll wait for your solution
thanks again
gnomeontherun
06-13-2008, 04:47 PM
Everything is urgent, so I appreciate patience when we are volunteering our time to help.
Ok, I'm sorry but this file is a mess. You need to realize that each movieclip is a unique timeline, so by pausing or scrubbing the main timeline, you don't alter any of the movieClips on the stage. You have two basic options: 1) take all of the subtitles out of the movieClip and place them in the main timeline so your scrubbing function will include them (and then do some major coding to make sure each of your subtitle on/off button) or 2) Change the scrubbing function to include the subtitle movieclip.
Honestly the whole thing should be reconstructed in a better manner, and I wouldn't even use Flash for this myself. Javascript slideshow galleries are just as powerful and easy to use, and much smaller often.
delhicoder74
06-13-2008, 08:09 PM
thanks...
Do you know where could I find a tutorial for a soft mask effect on a photograph where is edges are not thick?
thanks
gnomeontherun
06-13-2008, 08:17 PM
No, but I bet Google does.
vBulletin® v3.8.2, Copyright ©2000-2010, Jelsoft Enterprises Ltd.