Targeting A Movie Clip In A Scroll Pane
Hello mates.....i want to know how to target a movieclip which is in a scroll pane....i want to zoom in and zoom out the mc size in scroll pane. It would be great someone experiment with the fla and post the solution.http://rapidshare.de/files/24533482/test.fla.html
KirupaForum > Flash > ActionScript 1.0/2.0
Posted on: 06-30-2006, 04:07 AM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
How Do I Control A Movie Clip Within A Scroll Pane
What is the correct way to assign an action to a movie clip in a scroll pane?
I am trying to get a button to start an animation in a picture (movie clip)that I have in a scroll pane movie clip.
Any help would be greatly appreciated!
Targeting A Scroll Pane
I'm having trouble targeting my movie clip that's nested in s scroll pane component. I can't figure out how to control it from outside the scroll pane. I've tried all different kinds of paths but it doesn't twork. I've called my scroll pane ' panel ' and the mc inside is ' quoteform ' Every thing works as it should except the targeting. Does anyone know what I'm doing wrong?
yeffer
Load A Movie Clip From An External.swf Into A Scroll Pane Component
Hi Guys
Is it possible to load a movie clip from an external.swf into a scroll pane component.
Therefore 2 different swf movies. 1 for the scroll pane and 1 for the content.
I am aware that I have to give the content of the scroll pane an identifier such as ‘scrollpanecontent’ or whatever, however how will I target the scroll pane when the content is in an external .swf (if this is possible)
Thanks for any help that can be provided
Targeting MC 's Using Scroll Pane Componet?
Hi,
I am using a scrollpane componet to scroll a movie clip. In that mc is a list of names (which are images) that have invisible mc's on top of them. Problem is I can't target those buttons in the target finder.
Is there a way to target movie clips that are contained in a ScrollPane?
Your help is GREATLY appreciated.
Thanks, Pete
Targeting MC 's Using Scroll Pane Componet?
Hi,
I am using a scrollpane componet to scroll a movie clip. In that mc is a list of names (which are images) that have invisible mc's on top of them. Problem is I can't target those buttons in the target finder.
Is there a way to target movie clips that are contained in a ScrollPane?
Your help is GREATLY appreciated.
Thanks, Pete
Imbedded Dynamic Scroll Pane Movie Clip Wont Load - WTF
Hello group again,
Back with another scrol pane issue. So I got the dynamic scroll pane working - see the thread "Dynamic FScrollPane" but again have a loading issue, this time when I try to load a Library Movie Clip with the dynamically loading scroll pane onto a main timeline.
that is to say...I've created a scollpane that loads images via XML. To get that to work I had to build a loop to wait for the images to load before refreshing the scrollPane. Now I want to use that object as a library movie clip. However when I attach the Movie Clip the scroll pane does not load.
Seems the movie plays automatically when loaded (when I comment out the scroll pane the movie clip plays fine). But the scroll pane is not loading or not refreshing. Do I need another loop? Can I not imbed the scroll pane movie in another movie clip?
Referencing A Clip Inside A Scroll Pane Component?
can someone please tell me how to reference am MC placed inside a scroll pane component?
so i can controll it with actionscript
i tried giving the scroll pane instance a name and then using the name as though it was just part of the path but it doesnt work.....what am i doing wrong???
please ...help
Loading Movie In A Scroll Pane
I did some searches and wasn't able to find the answer. Im close to tearing out my hair. I have a scrolle pane that is inside of a movie. Now i just want to be able to do a load movie in it. Is there any easy way to do this? Any help would be appreciated.
Frank
Dragging Movie Clips Out Of Scroll Pane.
hi, i'm trying to figure out a way to get all these movie clips to drag out of the scroll pane. one of the problems is, i'm using a drag and drop component to add snapping and alpha to the drag. i've read all the other posts about how others have done this, but i just haven't been able to apply it to my problems here. any help out there? thanks.
here's just a sketch of what i'm trying to do with a scrollpane:
check it out here.
Load Movie/Scroll Pane Component
i am new to the ui components so if my question is confusing i am sorry. i'm building a video player and in order to properly display the movie list i thought i could use the ui scroll pane component. the only problem is it calls for an external .swf file to be loaded in. my concern is i don't know how to set up the load movie function from an external .swf loading into the root flash file. also is there a way to attach the ui component to a movie clip?
Changing Location Of Movie In A Scroll Pane
Hi,
I would like to reset the location of the movie that will be scrolled inside a scrollpane component. How can I do that? I assumed this will have to be done in actionscript, where should I put the code? the frame which contains the scrollpane? or?
Please help. Thanks.
Scroll Pane And Attaching Movie Clips Inside It
Hi Guys. Does anyone know how to do this as its doing my head in
I have a scroll pane which is called 'mypane' on the main timeline. I then have a movie clip called mymc which I want to duplicate 5 times into the scroll pane and have it scroll vertically.
I can duplicate the mc's fine normally but cant seem to get them to duplicate inside the scroll pane and then allow it to scroll through them.
Can anyone offer some help?
Thanks.
Scroll Pane / Levels / Dynamic Movie ISSUES *$##@
Ok, lets see who can solve this one. I am a newbie to Flash MX. However, I have pretty extensive development and design knowledge. I am in the process of building a "datagrid" like component that allows for movieClips as well as text.
I have all of the duplicateMovieClip and the likes working fine. However, as soon as I try to insert the dynamically created movie in to the scroll pane, I only see the very first Element. Which happens to be at level0. The rest of the movies move from there..
So I am assuming that I am having level issues. Well being from a 2d world, I seemingly can not wrap my mind around the whole levels thing. Can someone please check out this code, and tell me what a crack head I am?
Code:
myarray = new Array();
myarray[0] = {jobtitle:"Creative Director", company:"PCMI, Inc", description:"This is the descirption"};
myarray[1] = {jobtitle:"Creative Assistant", company:"UN Printing", description:"This is the descirption"};
myarray[2] = {jobtitle:"Creative Assistant", company:"UN Printing", description:"This is the descirption"};
myarray[3] = {jobtitle:"Creative Assistant", company:"UN Printing", description:"This is the descirption"};
this.createEmptyMovieClip("container", 1);
for (i=0; i<myarray.length; i++) {
container.attachMovie("BCJobListElement", "name"+i, i);
container["name"+i]._y = this._y+i*61;
container["name"+1]._x = this._x;
container["name"+i].thisCompany.text = myarray[i].company;
container["name"+i].thisJobTitle.text = myarray[i].jobtitle;
container["name"+i].thisDescription.text = myarray[i].description;
trace(container["name"+i]);
}
mypane_sp.setScrollContent(container);
Movie With Scroll Pane Component Won't Publish For Flash 4....
Using Flash MX, I'm creating a website that uses the scroll pane component. I need for this site to be viewable by Flash 4 players. When I export my movie, it will not allow me to do so b/c of the scroll pane component. Any suggestions? Any other way to do a scroll pane that is Flash 4 and 5 friendly?
Thanks!
Furpants
MX Scroll Pane Component And Duplicated Movie Clips
I have a movie clip, inside of which is a movie clip instance that i am duplicating many times (currently 116). my AS that duplicates the script creates rows and columns as it should just fine, but the MX scrollpane component that i've put on the stage is not reacting to the increased size of the MC - that is, it's not seeing extra vertical content and consequently not scrolling it. i thought maybe i could fix this by initially specifying the _height of the main MC in question, but that did nothing.
do i need to dynamically attach the scroll pane component once the main MC has been satisfactorily built by the AS?
Thanks a lot for your help.
Dynamically Adding Movie Clips To A Scroll Pane
i ve got a movie clip inside a scroll pane and that movie clip spawns child clips on its timeline which spread down past the scroll pane's bottom border but the scroll bar doesnt turn on, vertical scroll is set to auto.
any ideas? its been a thorn in my side for 2 days now
Scroll Pane Selection Puts Movie Instance On Stage?
I have a flash movie (Flash MX) where users can move furniture around and place it in different places to see how they want to arrange their room.
I have an autocad 2D file room layout as my main stage. Then I make furniture (individual movie clips) and place the clips on the stage in an arrangement that fits inside the room. After I place a movie clip on the stage, I put the following action on it:
onClipEvent (mouseDown) {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
this.startdrag(false);
}
}
onClipEvent(mouseUp) {
stopdrag();
}
onClipEvent (keyDown) {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
if (Key.getCode()==Key.Right) {
this._rotation +=15;}
else if (Key.getCode() == Key.Left) {
this._rotation -=15; }
}
}
I want to take this to a more sophisticated level.
What I am wanting to do is make a scollable box where the user can select a piece of furniture, and then it pops on the stage with the drag/rotation action on it (the above code). That way, the user can use a piece of furniture as many times as they want and it is not dependant on what I put on the stage when I design it. The stage would be blank (except for the background as a autocad 2-d room drawing. currently, I just place the exact number of pieces on the stage and then the user can only move the clips I have put on the stage.
Is there a tutorial anywhere that can guide me?
Thanks in advance for the help.
Modifying Position Of Scroll Arrows In Scroll Pane
Does anyone out there know how to modify the code of the standard Flash component scroll pane to allow you to place the arrows anywhere you want on the page? I was able to go in and assign x and y coordinates for them, but they seem to be linked to the bounding box somehow and whenever I raise or lower them the box follows suit, which ends up cutting of the content inside the box...
I didn't post any code because there is so **** much of it and I can't figure out where it is that the position of the arrows is linked to the position of that ****ed box (this is what I suspect the problem is, but please tell me if you know different!)!!!
HELP!!!!
Modifying Position Of Scroll Arrows In Scroll Pane
Does anyone out there know how to modify the code of the standard Flash component scroll pane to allow you to place the arrows anywhere you want on the page? I was able to go in and assign x and y coordinates for them, but they seem to be linked to the bounding box somehow and whenever I raise or lower them the box follows suit, which ends up cutting of the content inside the box...
I didn't post any code because there is so **** much of it and I can't figure out where it is that the position of the arrows is linked to the position of that ****ed box (this is what I suspect the problem is, but please tell me if you know different!)!!!
HELP!!!!
Targeting A Nested Movie Clip From Within The Movie Clip
Hi all,
I am making a quiz game for which my requirement is like this :
I have a nested movie clip in the main timeline instance name which is like this
mcimg1 > img1 > imgg1 > imggg1
I have a button in imggg1 on which I want to play from the 2nd frame of movie mcimg1.
I can directly do it with tell target and then targeting teh mcimg1, but I have kept 10 instances of mcimg1 and given them instance name like mcimg1, mcimg2..... etc.
How can I solve this problem. I was trying to get the instance name of the main movie (i.e. mcimg1.....10) on clicking the button and then tell target.
but I am unable to do so.
Kindly help me out..
thanks in advance
Targeting From A Movie Clip
ok I have four sections to a project Im working on. These are 4 mc's.... i also have 4 corisponding buttons for the four sections.... the buttons are animated and in turn are MC's... now... I can have the buttons do what I want when clicked as far as there own animation is concerned... but I cant have them target a Frame # on Scene 1 the main scene.... how do I do this?
I know this is such a stupid and easy question Im sure no one will have a problem answering it.... Thanks =)
John
Targeting SWF In A Movie Clip
How would I target a .swf that I have loaded in a MC. Say for example that I have an empty MC that I am loading a swf into. On the clip instance how would I write for example a preloader that targeted the swf that I have loaded into it.
Targeting A Movie Clip
Hello Board,
I have 2 movie clips in a scene. One movie clip has an instance name of "photos". The other movie clip has no instance name but has within it a button. How can I target the "photos" MC on my main stage with the button inside of the other movie clip? I've tried to tell target "photos" from the button but it says 'target not found'. I would put the "photos" movie clip into the other movie clip and tell target it that way but this 'other' movie clip is a mouse trailer so if I did it that way the "photos" movie clip would move with the user's mouse and that will not work out well. Thanks for your time in reading.
Best,
KQ
Need Some Help On Targeting A Movie Clip
could someone please help me.. i can't figure out why this isn't working..
----
_root.content.contenthome.gotoAndPlay(2);
stop();
----
i have that on the end of a movie clip and i want it to open up the content on the content home movie clip.. well take a look at the fla
Targeting Within A Movie Clip
i created a button and i want to target within a movie clip, is this possible? can someone give me detailed instructions? thanks in advance.
jgatienza
Targeting A Movie Clip
I am trying to target a movie clip that is in my main scene,
I am doing the telltarget script but I don't know how to make it look at a movie clip instead of the main scene.
I looked at a couple other files and some people used "/nameofmovieclip" but that didn't work for me.
help please
Targeting A Movie Clip
I am trying to target a movie clip and tell it to play on a rollover
this is the script I am using but it is not working
on (rollOver) {
_target_root.mc2;
gotoAndPlay(4);
}
mc2 is the instance name of the movie clip
I did one with telltarget and everything worked fine, but I was told to use dot instead.
please help
Targeting A Movie Clip
Hi, i am in the process of creating an interactive control panel in flash. I have some lights that are inside a movie clip and i have a button that is just inside the root area.
How do i use actionscript to direct a button to a frame inside the movie clip?
Thanks in advance, Dan
Movie Clip Targeting Another
seems oh so simple....but I can't figure out why it's not working.
I'm trying to create a drop down menu for a website. When I roll over the link, which I had as a button, there's a movie clip animation that I've placed in the Over state. Part of this animation is displaying the drop down of the subpages within the link. For the hit state of my button, I included the space underneath for that dropdown list. I tried to make each sublink a movie clip so that I can target it with actionscript....I quickly found out that I guess you can't have a movie clip within a movie clip within a button trying to do something...b/c Flash kept crashing whenever I attached code to the innermost MC and tried to test the movie.
SOOO...instead of making my main link a button, I made it a movie clip. And basically I now have a movie clip (my subpage link) within a movie clip (my link) that's trying to target another movie clip on my main timeline (instance name "testing"). Like I said, sounds simple enough...on my subpage link movie clip I have:
on(release){
_root.testing.play();
}
Am I missing something fundamental? Find attached the file...
Movie Clip Targeting
Quick question. I have code like this to load an SWF into an empty movie clip:
Code:
//load question.swf into empty QUESTION movie clip;
loadMovie("myFile.swf", mcHolder);
Now say I wish to make myFile.swf invisible. How do I target myFile.swf? I tried this without success:
Code:
this.mcHolder._visible = false;
I think I'm telling mcHolder to be invisible when I REALLY need to tell myFile.swf to be invisible.
Any suggestions?
MA
Targeting A Different Scene From A Movie Clip
I've got alot of help from this board and wanna say thanks before I ask my question.
Now, I've got a MC on Scene 1..Inside the clip I have buttons that I want to get to different scenes...and then possibly different frames of a scene.
Why doesn't the code below get this done?
Below is the action on the button inside the MC:
on (release) {
gotoAndPlay ("Scene 2", "1");
}
Much Respect,
shaggy
Targeting A Movie Clip Via A Function
i wish to target a movie clip that is within a function...this is what i have on frame one of the main timeline:
function myFunction(var1){
_root.var1.gotoAndStop("play");
}
and on a buttion i have something that says:
on(release){
_root.myFunction(clip1);
}
i have also tried it with clip1 in quotes...
is it something that i have to convert it to a string?
thank you...
Targeting A Frame In Another Movie Clip
flash MX,
I have several movie clips, each in a different scene.
with three buttons in each movie clip:
"Back", "Contents", "Forward"
I am having trouble going to the last frame in another movie clip in previous scene using the back button, This is what the code looks like:
on (release) {
_root._Edge2.gotoAndPlay("E2");
}
I have also tried gotoAndStop this does not work either
I have no problem with the forward because I just sent it to a label on the main time line.
the movie clip has an instance name of _Edge 2
Can someone please help
Movie Clip Targeting Question
I have a movie clip nested within a movieclip, and am having targeting problems.
Trying to have the nested clip play a particular frame and scene in the MAIN movie.
I have it like this:
mc_clip1.onRelease=function() {
_parent.gotoAndPlay("photography",'pic1');
}
I think the _parent part is wrong. Any ideas?
Thanks in advance,
sAint
Targeting A Movie Clip On A Button...
Hi,
I have a movie clip on a button's "up" state that I'm trying to target so that after the button is released, the movie clip will go to frame 1 and stop -- I've named all the instances on the pathway to the button's movie clip, but I can't seem to be able to target it with the targeting tool; the movie clip on the button is not represented.
Should I not be using movie clips on buttons that I want to target?
Thanks,
-Todd
Targeting A Child Movie Clip
Hi,
i have a parent_mc and a child_mc within parent_mc.
Now the parent_mc has 10 frames and the child_mc appears only on frame 10 of parent_mc. Also there is a stop action on this frame.
The MAINTIMELINE has an actions layer and parent_mc on stage.
Now when i try to target child_mc from the maintimeline using ...
Code:
parent_mc.child_mc.onRelease=function(){
trace("hello");
}
it does NOT work. I have seen that it only works if i make child_mc appear on the FIRST frame of parent_mc and carry on to the 10th, not if its only on the 10th frame...
does any why know why this is so?
cheers
Targeting A Movie Clip Within A Button
trying to set a movie clip as visible
the movie clip is within a button
tried using
setProperty( _root.example.button.movieclip, _visible, true)
checked export for actionscript on the button
when previewing it has a whinge about the linkage identifier
**Warning** The linkage identifier 'button' was already assigned to the symbol 'button', and cannot be assigned to the symbol 'button', since linkage identifiers must be unique.
there is only one button with this name and identifier
had this problem before and only just realised it's because it's a button
never had that problem when exporting a mc for actionscript
if i can't give the button an identifier, how am i to target a mc within the button to turn it's visibility on and off?
help greatly appreciated
weston
Targeting A Duplicated Movie Clip
here is what i am working on-
http://five12productions.com/project/website.swf
When each bar is placed on the stage it's length is it's total value. Everytime a shape is selected it subtracts it's width from the bar length until it's < 0. At that point it doesn't allow anymore shapes on the bar. The only issue I have is that some combinations don't work with this formula so I am trying to have each shape on the bar do a hitTest to see if it's on top of another shape. If so, I want to have a message appear saying that no shapes can overlap. Each shape that is placed on the bar is done with the attachMovieclip method but I can't figure out how to target if one is touching the other. Any ideas?
Targeting A Movie Clip On The Stage In AS 3
I have loaded a movie into a container on the stage like this:
// load Home Movie
var loader:Loader = new Loader();
var request:URLRequest = new URLRequest("home.swf");
loader.load(request);
// use addChild() to use your movieclip as the Loader object's container:
container.addChild(loader);
Next, I would like to tell the movie inside the container to do something. My button is on the main stage.
first, I tried this:
container.gotoAndPlay("closing");
That didn't work.
So, I read online to do something like this:
container(this.parent.parent).gotoAndPlay("closing ");
That didn't work either.
Any ideas?
Targeting A Loaded Movie Clip
Here's my problem, I have navigation buttons on the root timeline that load different swf's into a target movieclip.
Example:
loadMovie("Videos2.swf", Target_mc);
Is there a way I can tell the the loaded movie Videos2.swf to go to a certain frame and play from the root timeline?
I can adjust all the parameters of Target_mc, _x, _y and _alpha but Target_mc.gotoAndPlay(50) doesn't work, neither does Target_mc.play(). Any help would be greatly appreciated.
Thanks in advance
Targeting Of Movie Clip Not Working
from a frame action, I am loading a movie in to an empty movie clip named "container_mc"
Then I wish to go to a specific label in the swf file I loaded in that container_mc clip.
The first statement works, the movie loads properly in the container_mc. However the second statement does not work: it just stays at frame 1. I did make sure there was a label named "montreal" in the loaded swf. Any suggestion?
Thanks,
Yvan
Attach Code
loadMovie("exported_clips/quebec.swf", container_mc);
container_mc.gotoAndStop("montreal"); //does not work
Targeting A Child Movie Clip:
I have a movie clip on the main timeline calledbg_graphics, I want to target a movie clip within that movieclip called bg1_mc. to gotoAndPlay frame 2.
if anyone can help me out with this code that would be great, but wait theres more.
The bg_graphics clip goes to a random frame within that movieclip, there are 3 frames. 1st has bg1_mc, 2nd has bg2_mc, and 3rd has bg3_mc. How could i determine which file to gotoAndPlay frame 2 in bg_graphics when i don't know exactly which frame its going to be on, let alone target a movie clip within a movie clip.
I used this code to generate the random frame if that is of any use to anyone who is willing to reply.
function randomBg() {
//generate random BG based on random frames within the MC
randFrame = random(3)+1;
bg_graphics.gotoAndStop(randFrame);
}
Can anyone help??? that would be great.
Targeting Movie Clip Animation
Hi all,
I have a small movie that I'm trying to assemble. I have three small images on the stage in frame 1. I also have an invisible button symbol over one of the images and have given this button an instance name. On frame 2 there are the same three images but with a lower opacity level and also on this frame 2 is a movie clip instance containing an animation. I need an onRollover event connected to the button on frame 1 so that when the user rolls over it, the playhead jumps to frame two and shows the images and also plays the animation in the movie clip.
I've applied the following code to the button symbol on frame 1:
stop();
specialised_btn.onRollOver = function() {
gotoAndPlay(2);
}
and I've also put a stop action on the last frame of the animation within the movie clip in frame 1 so that it won't loop.
The problem is that when I test the movie, when you roll over the image on frame 1 it just continually loops between frames 1 and 2 - it doesn't play the animation on frame 2 as I thought it would.
Have I got the code wrong on the button instance? Or is something else happening?
Would appreciate any help offered.
Targeting A Seperate Movie Clip
*EDIT* Moving a better explaination up in hopes it gets viewed.
Let me try and explain this a little better...
I am working on a project that is using a lot of frame labels in various MC's. I am trying to target a specific frame label in a specific MC. I have done this a hundred times before but for some reason I can't get this to work. My hierarchy goes like this; scene1 > page_home > arrow Arrow is the button I want to use to target the frame label "pp2" in scene1 > pages1 > pages2 I wrote my code as follows
on (release) {
_root.pages1.pages2.gotoAndPlay("pp2");
}
and it refuses to work. I hope this is all making sense. Anyone have any ideas??
Targeting A Child Movie Clip:
I have a movie clip on the main timeline calledbg_graphics, I want to target a movie clip within that movieclip called bg1_mc. to gotoAndPlay frame 2.
if anyone can help me out with this code that would be great, but wait theres more.
The bg_graphics clip goes to a random frame within that movieclip, there are 3 frames. 1st has bg1_mc, 2nd has bg2_mc, and 3rd has bg3_mc. How could i determine which file to gotoAndPlay frame 2 in bg_graphics when i don't know exactly which frame its going to be on, let alone target a movie clip within a movie clip.
I used this code to generate the random frame if that is of any use to anyone who is willing to reply.
function randomBg() {
//generate random BG based on random frames within the MC
randFrame = random(3)+1;
bg_graphics.gotoAndStop(randFrame);
}
Can anyone help??? that would be great.
Problem Targeting Movie Clip
I created a movie in FlashMX using a 'toolbar' movieclip to target a 'slideshow' movieclip. The 'toolbar' movieclip holds the navigation buttons to either play the slideshow from beginning to end, or view each individual photo one-by-one at the user's own pace. Everything was working until I added a 'preloader' scene.
Now, the preloader scene works, and jumps me to the scene with the orginal working movieclips, but now none of the buttons work. Do I need to reference which Scene I'm in to target the movieclip 'slideshow' from the movieclip 'toolbar'? If so, what's the proper syntax?
Here's my code for various parts of the movie:
Scenes Used:
'preloader' -- contains script below
'elements' -- holds frames containing large media elements to be loaded before starting main interactive content
'main' -- the actual interactive content of the movie
Preloader scritp is as follows (and is working):
total = 6;
loaded = getProperty(this, _framesloaded);
a = total/loaded;
percent_loaded = 100/a;
if (percent_loaded>=100) {
gotoAndPlay("main", 1);
}
endif;
Button action script (within Scene titled 'main' -- was working until added the 'preloader' and 'elements' Scenes):
on (release) {
_root.slideshow.gotoAndStop(39);
}
Please let me know if you have any suggestions/fixes.
Thanks!
|