Scrollable area, needs movie clip?
If I want to have an area that scrolls when you put your
mouse over a left or right button.
I think I can do this by making a movie of the scrolling, and
then using action script to play the move backwards or forwards
when there is a mouse-hover over the buttons.
Is this the only way to do this or is there an action-script
only way which makes an area scrollable without having to make a
movie first?
thanks
you can control that kind of thing with where the mouse is on
the stage. i found this bit of code somewhere...
//SCROLL NASTY
root.addEventListener(MouseEvent.MOUSE_MOVE,f);
var t:Timer=new Timer(40,0);
t.addEventListener(TimerEvent.TIMER,moveF);
function f(e:MouseEvent) {
// t.stop();
t.start();
var speed:Number = .9;
function moveF(e:TimerEvent) {
front_mc.x
=speed*front_mc.x+(1-speed)*(stage.stageWidth-front_mc.width)*root.mouseX/stage.stageWidt h;
back_mc.x =
speed*back_mc.x+(1-speed)*(stage.stageWidth-back_mc.width)*root.mouseX/stage.stageWidth;
if (Math.abs(front_mc.x-
(stage.stageWidth-front_mc.width)*root.mouseX/stage.stageWidth)<1
Math.abs(back_mc.x-(stage.stageWidth-back_mc.width)*root.mouseX/stage.stageWidth)<1)
front_mc.x =
(stage.stageWidth-front_mc.width)*root.mouseX/stage.stageWidth;
back_mc.x =
(stage.stageWidth-back_mc.width)*root.mouseX/stage.stageWidth;
t.stop();
e.updateAfterEvent();
just have to give one clip the instance name of front_mc and
another with back_mc... dont know if thats what your looking for?
but i love that bit of code!
Similar Messages
-
Why are my movie clips cut off when imported?
I am importing movie clips from my flip camera and only half the clip is being imported. HELP!!!
Are the episodes being shortened when you publish to a local folder and launch them in the browser as well as when published to the server? See this page under "Troubleshooting"...
http://www.iwebformusicians.com/iWeb/iWeb-Tips.html
If the local files are OK it would suggest the problem is on the server. Otherwise you need to troubleshoot iWeb.
If the problem is files that are too large, you can reduce the sampling rate and/or convert to mono if the content is mostly speech rather than music. -
Why are my movies clips freezing?
I am editing some video clips in iMovie 11 & when I hit the space bar it will play some then stop & start again. The audio is still playing & the bar skips to catch up with it. I have never had this issue before. Software is current.
The reason I asked about disk space is that what you described could be caused by not enough space. Movie projects take up alot of hard drive real estate, as you probably know.
I'd keep an eye on it and post back if it happens again. -
Flash Newbie needs help with Movie Clips/Action Scripting
Hi -
I'm having a problem with my movie clips playing
simultaneously and cannot, for the life of me, figure out what I
have done wrong. I'm new to flash, so I may have set something up
incorrectly, but here's what I have so far:
11 layers, total: 1 layer with 10 control buttons, each
button with the following actionscript:
on (release) {
gotoAndPlay(85);
Where the number changes in relation to which keyframe the
next movie is on.
I have 10 movies, total, but they are only movie clips,
essentially photo slide shows with audio, made all in the library.
The problem happens when I click on the second or third
button. Not only does the movie that I have selected begin to play,
but all of the previous clips do as well, so it all sounds quite
garbled. I don't know what I am missing in the action script, as my
Action Layer has a stop command on it at each keyframe where there
is a new clip to play.
I have tried to add a stopAllSounds command, but I'm afraid
that doesn't do anything because it is not a "sound file" per se,
playing in the timeline.
I'm at the end of my rope and really need some help in
figuring this one out. My project is hanging in the balance on
this, as I have scripted everything else correctly and it runs
beautifully.
Please help!
Thanks,
CarolineEach layer has a blank keyframe before and after each
movieclip. Each movie clip is at a different frame. Even with the
blank keyframes added, the second video starts to play and then the
first video begins to play. Same happens if I click on the third
button. Third plays, and starts 1st and 2nd shortly thereafter. Is
there an action script I can put in that will tell the timeline
that, when a button is clicked, no matter where the movieclip is,
it will stop and start the newly selected movieclip? -
How can I call in swf file to movie clip?
Hi all ...
This is my first post for advise, although fairly conversant
with flash and as2.
I am developing a new full screen background style website
and have menu buttons contained within a movie clip (nav_c1) ...
this re-aligns to the top centre of a page when user scales the
browser window.
I then have the content area (centre_content) movie clip ...
this realigns to the centre of the page when a user scales the
browser window.
I have scripted the menu buttons to goto a labelled frame in
the main timeline but I need, when at the labelled frame, to be
able to call/load in an external swf file to play 'inside' the
centre_content movie clip?
for example:
If I click my news button the flash file moves to the frame
label news on the main timeline. This then shows a duplicate of the
moive clip 'centre_content' which is called 'centre_news'. I need
to be able to call/load an external news.swf, containing all the
animated news info, to sit and play 'within' the movie clip
'centre_news' ... so that it is effectively contained 'within' the
movie clip file but loaded in place from an external swf file.
Can anyone help please?
I can post a rough working example online if need be.
Many thanks
A puzzled Adrian
ps: I don't think I am needing to load the swf to a level 1
area as I have tried this and instead of the swf file being loaded
and contained within my movie clip file/area it instead seems to
sit fixed on the main timeline (ie: not contained within the movie
clip area).Thanks Sketchsta for you code. This looks like we're on the
right lines as I see what the code is trying to do.
Unfortunately though I can't seem to get this to work?
I created a new file to get rid of other scripting that was
going on and have placed a movie clip called centre_content onto
the main timeline in frame 1 ... then I have applied your script to
an actions frame above the movie clip also on frame 1. I change the
path_to_file line with my swf name (callin.swf) which is a 1 frame
flash file with some text on it ...
... but it doesn't bring in the callin.swf file ... it just
shows the centre_content clip.
Am i doing anything wrong?
I also tried putting the script onto the first frame inside
the centre_content movie clip but this doesn't appear to work
either.
Regarding the pre-loader ... can I simply build this into the
swf file that is being called in to the movie clip?
Thanks in advance for your support, it is much appreciated.
Adrian -
Hi -
I'm having a problem with my movie clips playing
simultaneously and cannot, for the life of me, figure out what I
have done wrong. I'm new to flash, so I may have set something up
incorrectly, but here's what I have so far:
11 layers, total: 1 layer with 10 control buttons, each
button with the following actionscript:
on (release) {
gotoAndPlay(85);
Where the number changes in relation to which keyframe the
next movie is on.
I have 10 movies, total, but they are only movie clips,
essentially photo slide shows with audio, made all in the library.
The problem happens when I click on a the second or third
button. Not only does the movie that I have selected begin to play,
but all of the previous clips do as well, so it all sounds quite
garbled. I don't know what I am missing in the action script, as my
Action Layer has a stop command on it at each keyframe where there
is a new clip to play.
I have tried to add a stopAllSounds command, but I'm afraid
that doesn't do anything because it is not a "sound file" per se,
playing in the timeline.
I'm at the end of my rope and really need some help in
figuring this one out. My project is hanging in the balance on
this, as I have scripted everything else correctly and it runs
beautifully.
Please help!
Thanks,
CarolineThey do not have to be on the same layer, but they should not
exist on the timeline for the entire movie, just where they are
necessary.
Lets say you have three movieclips ten frames apart on the
timeline. Mc1 (movieclip1) is on frame 1, Mc2 is on frame 11, and
Mc3 is on frame 21. Mc1 should only be on the timeline from frame
1-10, then it should not exist on frame 11. This way if you jump to
frame 11 only Mc2 will play, because Mc1 isn't on the timeline
anymore.
They do not have to be on the same layer.
It may help if you email me the file. My address is on my
name on the lefthand side of this forum post. -
One script for multiple loaded movie clips
Hello,
I am sure that this has been asked or answered before, but
could not locate the correct response.
Problem:
There are 20 movie clips loaded onto the stage through
actionscript. I have 20 different onPress scripts to start the drag
for each (which also contain custom variable).
Problem, I have one single onRelease script which is to be
used for each, but do now wish to give 20 custom handled scripts.
Can I somehow use certain scripting for using one single
generic script for the onRelease? So no matter what was released it
will go through this one script.
Thanks
Dlike this...
activate
set the_folder to choose folder with prompt "Select the folder you want to add folders to..."
tell application "Finder"
set the_name to "Name"
set the_count to 3
repeat with this_num from 1 to the_count
set new_num to this_num as string
if (count new_num) is 1 then set new_num to "0" & new_num
make new folder at the_folder with properties {name:the_name & " " & new_num}
end repeat
end tell -
Animated drop down buttons not working in movie clip
Hi,
I am working on this site: (AS2)
http://www.steamandclean.com/Index_w_1.html
I have two types of drop down menu. One under Commercial and one under Technical
The buttons are movie clips. The drop downs are also movie clips that start in frame 2 and are triggered on rollover.
The child buttons are buttons living on the drop down movie clips. They are set to getURL
As you see they are not willing to neither link to any url or will they run their move clip animation. One is a button and one is a movie clip.
The left movie clip has a mask, but it makes no difference if I remove the mask . It also has a emboss filter and no difference is I take that away either.
All of it is in one flash movie right now, but I will be splitting it up in a master navigation movie and individual swf's soon.
Right now I have the main movie, then the button MC then the dropdown MC and in the drop down MC I have placed either a animated (button) MC or a button. So it nested in nested in.......
In both cases I scripting the child buttons like this:
on (rollOver) {
gotoAndPlay(2);
on (rollOut) {
gotoAndPlay(6);
on (release) {
getURL("http://steamandclean.com");
I have also tried to use
_parent.getURL and _root.getURL in stead of just get URL, but it does not work.
The drop down buttons seem to be buried. In the left side the whole drop down panel seems to act like a link?
What am I doing wrong?
Can you help?
ggaardeHi Ned
Thank you for your reply again.
I figured it out.
Your reply prompted me to have my main button on rollover to go to a frame number on the main time line and then move the content of the drop down movie clip to that frame.
The drop down panel now work and the child buttons animation now work as well. I just had to find a way to make the drop down panel disappear on rollout. Since I could not script the actual drop down panel I created three skinny invisible buttons and placed them on the right, left and button of the drop down panel. I scripted them to go back to frame 1 on both rollover and rollout. Done.
See the result there:
http://www.steamandclean.com/Index_w_1.html
(Left side only)
Thank you for your help.
ggaarde -
Drag variety of movie clips with one script
Hello,
I am sure that this has been asked or answered before, but
could not locate the correct response.
Problem:
There are 20 movie clips loaded onto the stage through
actionscript. I have 20 different onPress scripts to start the drag
for each (which also contain custom variable).
Problem, I have one single onRelease script which is to be
used for each, but do now wish to give 20 custom handled scripts.
Can I somehow use certain scripting for using one single
generic script for the onRelease? So no matter what was released it
will go through this one script.
Thanks
Dsomething like
upListener = new Object();
uplistener.onMouseUp = function (){
doSomething();
Mouse.removeListener(this);
and the line
Mouse.addListener(upListener);
in every onPress action could do.
[Code not tested, likley full of typos - but hopefully useful
as a general example;] -
Controlling a movie clip timeline
I am using a loaded movie clip in my movie. This script is on
a button:
loadMovie("largeWorks_mc.swf",_root.largeWorksE_mc);
Why can''t I control this loaded movie clip from a button in
another movie clip:
large1_btn.onPress = function (){
_root.largeWorks_mc.gotoAndStop(5);quote:
Originally posted by:
Opera Rat
Yes, I'm loading largeWorks_mc into the target movie clip
_root.largeEmpty_mc.
Let me see if I can explain this better. If you look at the
old version (the one that loads the entire flash file at once), you
can see the different areas of the movie I am talking about. You
can see it at anthonysmithjr.com
There is nothing there for me.
and then view the gallery. I've just added about 50 new pics
and don't want to keep the gallery the way it is now - loading
everything at once. So each section of the gallery will load when
you go to it - large works and small works.
The thumbnails are a movie clip within the root movie. Then
the large version of the pics are another movie clip in the root
movie. So when your looking at the large work section your seeing
the main movie (the purple background and buttons) and 2 movie
clips (thumbnails and largeWorks). I no longer want large works
movie clip to load when the movie is opened because it takes too
long. So in a version that I have not put up yet I have the code:
gotoAndStop(6)
loadMovie("largeWorks_mc.swf",_root.largeWorksE_mc);
Ok.. this code will work just fine, but instead of having
both LoadMovie() and gotoAndStop() on the same frame, it might be
easier to simply have
gotoAndStop() on your buttons, THEN, on the frame that it
goes to and stops, have the loadMovie()
when you click on the large works tab. This loads the movie
clip of the large version of the pics and it also take you to frame
6 or the root timeline (where the large works thumbnail clip is
located).
So if you were to do what i suggested, on frame six you would
also have your LoadMovie() command.
When I click on a thumbnail in the movie clip
largeThumbnails_mc in the root movie it should tell the movie clip
that loaded next to it to go to the frame that contains that the
large version of that thumbnail.
yes you would use something like this to target it...
this. HOLDER . WHAT WAS LOADED . gotoAndStop()
im using that instead of your instance names because im still
abit fuzzy on what is loaded and when.
So I do want to control the only timeline in largeWorks_mc
(just 50 frames of pics) from the other movie clip in the root
movie. See the site and see if this is any clearer.
I really appreciate your help. I'm gutting my bathroom at the
same time I'm trying to get this thing to work and it's driving me
insane.
No problems.
________________________________________________ -
Single droptarget for multiple movie clips
I have a movie clip which i use as a drop target. And I have four additional movie clips which can be dragged and dropped into the droptarget movie clip. But when I place a movie clip into a droptarget and I drop the second one too, the droptarget for the second one becomes the first movie clip but not the actual droptarget movie clip.
Please suggest.Thank you for the reply. Can you give me an idea what the below code does?
mainContainer is a movie clip. mc1, mc2 are three movie clips
mainContainer.addChild( mc1 );
and while dropping mc2
mc2._droptarget - what this will refer to? -
Hello,
I have been working on a Flash File with a lot of animations / symbols etc, and on thursday (during the Adobe Update), when I opened my file, all the symbol (movie clip) are empty, use count : 0.
The size of the file is still the same though, 35mo.
I had only this file, I really need help to repair it...
Please let me know if you have a solution.
Thank you!hi,
Can you please share the file which got corrupted?
Was the original file created in older version(CS6 and below) of Flash?
Were you trying to open the file in Flash CS6?
Did your original file had symbol names containing | : ; & * , etc.characters or leading/trailing spaces?
Rgds,
Mukesh -
I am trying to move across & view my home movie clips from my old PC to my new Mac but I am unsure what software I need to view them. They are from a Canon video camera originally. Please advise how this is done!
Do they have a file extension?
How about anything on the camera which might indicate what it is, like AVCHD? -
My iPhone 5 does not download my movie clips to iPhoto on my mac. Do I need to change something in settings?
There are 9 different versions of iPhoto and they run on 10 different versions of the Operating System. The tricks and tips for dealing with issues vary depending on the version of iPhoto and the version of the OS. So to get help you need to give as much information as you can. Include things like:
- What version of iPhoto.
- What version of the Operating System.
- Details. As full a description of the problem as you can. For example, if you have a problem with exporting, then explain by describing how you are trying to export, and so on.
- History: Is this going on long? Has anything been installed or deleted? - Are there error messages?
- What steps have you tried already to solve the issue.
- Anything unusual about your set up? Or how you use iPhoto?
Anything else you can think of that might help someone understand the problem you have. -
Hello,
I am looking for a way to create a scrollable movie clip.
Similar to a scrollable text box. In fact a scrollable text box
would work perfectly if I could insert images within the text.
I am hoping to find a way to have a series of areas within a
single stage that can scroll independent of each other. Each area
within the stage must be able to have a combination of text and
images.
Is there a way to make this possible. I have a cursory
knowledge of action script.
Thanks in advance for any help...Try the scrollPane component. There is tons of helpful
information online
(just do a google search) but the long and short is that you
add the
component to your stage and size it in the properties
inspector. Then set
the linkage of the movieClip in the library and in the
component inspector,
type the name of the linkage identifier under the "source"
field. There are
a bunch of other options to play with and you can skin the
component as
well.
(Just in case you've never had to use linkages before, right
click on the
movieClip in the library, select "linkage" and then checkmark
the "export
for actionscript" selection)
Hope that helps.
"BO-TH" <[email protected]> wrote in message
news:fg0dnj$ejj$[email protected]..
> Hello,
> I am looking for a way to create a scrollable movie
clip. Similar to a
> scrollable text box. In fact a scrollable text box would
work perfectly if
> I
> could insert images within the text.
>
> I am hoping to find a way to have a series of areas
within a single stage
> that
> can scroll independent of each other. Each area within
the stage must be
> able
> to have a combination of text and images.
>
> Is there a way to make this possible. I have a cursory
knowledge of action
> script.
>
> Thanks in advance for any help...
>
Maybe you are looking for
-
MS Office Report Express VI and Array Problem
Hello all, I have a strange issue with the MS Office Report VI that's included with the Report Generation Toolkit. I created an Excel template which I linked using the "Custom template for Excel" preference and applied all the named ranges. However,
-
Upgraded to itunes 11.4 and now it crashes on every sync
I upgraded to itunes 11.4 (Win 7 64Bit), now every time I try to sync my iphone itunes crashes when syncing apps. Before it comes to syncing the apps everythings works fine. Calendar, contacts etc are being synced. I already de- and reinstalled every
-
Why can't I copy and paste from Illustrator to Flash?
I have this silly but frustrating problem. I've drawn a series of objects in Illustrator and have copied and pasted many of them into separate frames in Flash and all of a sudden they won't paste. There are 3 objects I'm trying to paste onto each fra
-
Checksum to flashplayer download.
Hi. Im going to install flash player in a secure enviorment. Could you please help me with the checksum to the download? I downloaded install_flash_player_11_active_x.
-
HT1338 How do I install iweb on my mac?
Please advice me how I could install iweb on my mac. it came without it.