Connecting Movie Clips In Different Time Lines
Hi Masters, I need some Help. My problem it's the next: I have a presentation like a power point style, in the principal time line i have some labels (A,B,C), in the frame with the label "B" I have a MovieClip called "textoSERVICIOS" that contains inside other labels (A,B,C,D,E,F,G), when I arrive to label "G" I got going to Frame "C" of the principal time line with this sript:
------------------------------------- on (keyPress "<Right>"){ _root.gotoAndStop("C"); } -------------------------------------
But I don't know how do I to get from frame "C" to "B"/"textoSERVICIOS"/"G". Could someone tell me what can I do please???
Thanks a LOT ¡¡¡
ActionScript.org Forums > ActionScript Forums Group > ActionScript 1.0 (and below)
Posted on: 03-19-2005, 08:28 PM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Connecting Movie Clips Via API (LOSTINBETA)
I've been trying all afternoon to get this down, but I'm starting to lose focus.
Lostinbeta created a file using this feature, but is pretty core and hard to dissect. How do I start the line at the first movie clip ("container1") and connect to the other movie clips ("container"+j)? I can't hard-code the coordinates because I intend to have the movie clips move.
Thanks~
Connecting Movie Clips Via API (LOSTINBETA)
I've been trying all afternoon to get this down, but I'm starting to lose focus.
Lostinbeta created a file using this feature, but is pretty core and hard to dissect. How do I start the line at the first movie clip ("container1") and connect to the other movie clips ("container"+j)? I can't hard-code the coordinates because I intend to have the movie clips move.
Thanks~
Connecting 2 Movie Clips Simulating Strings
How can i simulate a string that attach 2 movie clips?? i have no clue how to do this... i thouth about testing distance beteween points but how do i simulate elastic behavior??
thanks for the time
Connecting Buttons To Embedded Movie Clips
I have created a button and would like to connect this button to a movie clip. I would like to click the button and have the movie clip play in an embedded player within the flash file.
I have assigned an instance to both the button (aguasviva_btn) and the movie clip (aguasviva_mc).
I am not sure where to start with the actionscripting.
I have 30 buttons to connect to 30 videos ... is this even possible?
kw
Connecting Movie Clips To Buttons In An XML Mp3 Flash Player
I'm a bit of a novice when it comes to action script. I'm creating an XML flash mp3 player with Stop, Play, Forward, and Reverse functions. The XML file contains the names and file locations of all the songs. Within the player, all of these song titles are listed. When a song title is clicked on, a movie plays underneath the name of the song, indicating it has been clicked. This then plays the approrpriate song.
My problem is that I don't know how to create a variable so that the correct movie plays underneath the correct song when the Forward or Reverse buttons are pressed. ie. when you are listening to one song and press forward, the movie for the following song would light up under the song that is being played.
If that isn't exactly clear, I actually have an example posted online right now.
www.theepochs.com/ricecracker/playertest.html
Can tell me how I should configure this so that the forward and reverse buttons will play the correct movie?
Thank you...
-Aaron
Lines Connecting To Dynamic MCs?
Hi,
I've created a mini drawing application where I'd like users to be able to draw lines between MCs (duplicated). The line should connect and move with the MCs (if moved). I have managed to create the lines properly but have no idea how they can connect and move with the clips. Could someone help me please?
Root
code:
_root.currentcolor = 0;
stop();
_root.base.palette._visible = !_root.base.palette._visible;
_root.base.swapDepths(11);
_root.createEmptyMovieClip("drawing", 0);
_root.createEmptyMovieClip("layer", 1);
_root.layerone = false;
_root.layerzero = true;
Mc with code outside stage:
code:
onClipEvent (mouseDown)
{
if (_root.layerzero == true)
{
draw = true;
_root.linex = _root._xmouse;
_root.liney = _root._ymouse;
_root.drawing.lineStyle(_root.base.bsize, _root.currentcolor, _root.base.opac);
_root.drawing.moveTo(_root._xmouse, _root._ymouse);
}
}
onClipEvent (mouseMove)
{
if (_root.layerzero == true)
{
if (draw == true && _root.base.helptabs._visible == false)
{
if (_root.isactive == "line")
{
_root.createEmptyMovieClip("linetracker", 2);
_root.linetracker.moveTo(_root.linex, _root.liney);
_root.linetracker.lineStyle(1, _root.currentcolor, 100);
_root.linetracker.lineTo(_root._xmouse, _root._ymouse);
} // end if
} // end if
} // end if
}
onClipEvent (mouseUp)
{
if (_root.layerzero == true)
{
draw = false;
if (_root.isactive == "line")
{
_root.drawing.lineTo(_root._xmouse, _root._ymouse);
_root.linetracker.clear();
} // end if
} // end if
}
Line button:
code:
on (release)
{
_root.isactive = "line";
_root.base.linebutton = _root.activebutton;
}
on (rollOver)
{
_root.base.tooltip.text = "Line Tool";
_root.base.tooltip.textColor = 0;
}
onClipEvent (enterFrame)
{
if (_root.isactive == "line")
{
myColor = new Color(this);
myColorTransform = new Object();
myColorTransform = {ra: "50", rb: "40", ga: "60", gb: "112", ba: "80", bb: "200", aa: "100", ab: "100"};
myColor.setTransform(myColorTransform);
}
else
{
myColor = new Color(this);
myColorTransform = new Object();
myColorTransform = {ra: "100", rb: "0", ga: "100", gb: "0", ba: "100", bb: "0", aa: "100", ab: "100"};
myColor.setTransform(myColorTransform);
} // end if
}
Gabs
Lines Connecting Orbs
I have several orbs and lines conecting them.
I´d like to make some nice effect on the orbs as they are mouse over...
I´m thinking about making them to stick on the mouse, and the lines should remain conected to the orbs... how to make thins effect?
Lines Connecting Orbs
I have several orbs and lines conecting them.
I´d like to make some nice effect on the orbs as they are mouse over...
I´m thinking about making them to stick on the mouse, and the lines should remain conected to the orbs... how to make thins effect?
Accessing Movie Time Lines
Hi
I have one main movie and one movie loaded into a container mc I am trying to print text in a textarea in the loaded movie from the main movie I can trace the the text but cannot get it into the textarea.
I have uploaded the files.
Thanks for any help
Movie Clips On Different T/lines
Can anyone help! I am trying to get a movie clip to play on my cars.swf page. If I remove the stop() action from the first frame the movie loads ok
BUT I want the movie to load when I press a button
I have place stop() action on the 1st and last frame. This is the code on the button:
on (release) {
this.audi.Mc.play(2);
}
I have also tried, onreleaseGoTo
and an instance of audi.MC on the cars.swf timeline
Connecting Lines, Telling Distance
I'm making a golf course (a bird-eye view) and I want the users to be able to connect points from first stroke to the next and so on. At the same time, while the lines are drawn, I need to have the distance shown next to the lines. I have been searching for the code, but I do not even know how to call this. Have you seen anything like it some where? Thank you so much.
Connecting Objects With Resizable Lines
Well, now i have the biggest problem which I ahve no clue how to even start. So any hints at all would be usefull.
I have to create and application to model relationship between objects.
So to create the model, I would drag sevral objects from the menu onto the working space. This I already battled through.
Now comes the hard part - I must be able to drag a relationship ( a line basically) from the menu and connect two objects with it. So that when I move any of the two connected objects - line scales. However, 2 objects can have several relationships. So scaling a simple diagonal line wont work here >.<
So the steps should be as follows:
1) drag relationship line to workspace
2) drag one end of it on an object and then the linke connects to it
3) drag the other end of the line scaling it, changing its shape to try and avoid intersecting, onto the second object and connect to it
4) when u drag either of the objects - all the relation lines scale accordingly..
For my understanding this is very complex. So I would appreciate any hints at all on the srategy. OR perhaps a link where I can read up on this - cause browsing the net I dind't find any proper material. <.<
please help T_T
Connecting Dynamic Lines And Nodes
I have been trying several weeks to get this to work and so far just cannot seem to figure it out. Hopefully you can offer some help.
I want to load a list of nodes from and XML file and have them dynamically displayed. This part I have managed.
I would also like to be able to dynamically draw lines connecting various movie clips based on the XML file. This is where I cannot seem to get it to work.
I also would like the nodes to be draggable but remain attached to the line.
Any suggestions or help would be greatly appreciated!!
THanks,
WOOF
Here is the AS code I am using:
Code:
myXML = new XML();
myXML.ignoreWhite = true;
myXML.onLoad = function(ok) {
if (ok) {
// trace('data loaded');
// trace(this.firstChild.attributes.value);
allData = this.firstChild.childNodes;
for (i=0; i<allData.length; i++) {
// trace(allData[i].attributes.text);
newBut = _root.attachMovie('butTemp', 'but'+i, i);
_root.createEmptyMovieClip('mc', 'mc'+i, i);
newBut.but_txt.text = allData[i].attributes.text;
newBut._x = random(700);
newBut._y = random(500);
// set our line style
mc.lineStyle(2, 0x000000);
// draw the line based on handle locations
mc.moveTo(newBut._x, newBut._y);
mc.lineTo(newBut1._x, newBut1._y);
}
} else {
trace("error");
}
};
myXML.load('node_test.xml');
Here is the XML I am using:
Code:
<?xml version="1.0" encoding="iso-8859-1"?>
<nav>
<but text="Node 1" ID="1" Parent="3"></but>
<but text="Node 2" ID="3" Parent="2"></but>
<but text="Node 3" ID="2" Parent="5"></but>
<but text="Node 4" ID="4" Parent="5"></but>
<but text="Node 5" ID="5" Parent="4"></but>
<but text="Node 6" ID="6" Parent="1"></but>
<but text="Node 7" ID="7" Parent="11"></but>
<but text="Node 8" ID="8" Parent="9"></but>
<but text="Node 9" ID="9" Parent="8"></but>
<but text="Node 10" ID="10" Parent="7"></but>
<but text="Node 11" ID="11" Parent="6"></but>
<but text="Node 12" ID="12" Parent="3"></but>
</nav>
Connecting Dynamic Lines And Nodes
I have been trying several weeks to get this to work and so far just cannot seem to figure it out. Hopefully you can offer some help.
I want to load a list of nodes from and XML file and have them dynamically displayed. This part I have managed.
I would also like to be able to dynamically draw lines connecting various movie clips based on the XML file. This is where I cannot seem to get it to work.
I also would like the nodes to be draggable but remain attached to the line.
Any suggestions or help would be greatly appreciated!!
THanks,
WOOF
Here is the AS code I am using:
Code:
myXML = new XML();
myXML.ignoreWhite = true;
myXML.onLoad = function(ok) {
if (ok) {
// trace('data loaded');
// trace(this.firstChild.attributes.value);
allData = this.firstChild.childNodes;
for (i=0; i<allData.length; i++) {
// trace(allData[i].attributes.text);
newBut = _root.attachMovie('butTemp', 'but'+i, i);
_root.createEmptyMovieClip('mc', 'mc'+i, i);
newBut.but_txt.text = allData[i].attributes.text;
newBut._x = random(700);
newBut._y = random(500);
// set our line style
mc.lineStyle(2, 0x000000);
// draw the line based on handle locations
mc.moveTo(newBut._x, newBut._y);
mc.lineTo(newBut1._x, newBut1._y);
}
} else {
trace("error");
}
};
myXML.load('node_test.xml');
Here is the XML I am using:
Code:
<?xml version="1.0" encoding="iso-8859-1"?>
<nav>
<but text="Node 1" ID="1" Parent="3"></but>
<but text="Node 2" ID="3" Parent="2"></but>
<but text="Node 3" ID="2" Parent="5"></but>
<but text="Node 4" ID="4" Parent="5"></but>
<but text="Node 5" ID="5" Parent="4"></but>
<but text="Node 6" ID="6" Parent="1"></but>
<but text="Node 7" ID="7" Parent="11"></but>
<but text="Node 8" ID="8" Parent="9"></but>
<but text="Node 9" ID="9" Parent="8"></but>
<but text="Node 10" ID="10" Parent="7"></but>
<but text="Node 11" ID="11" Parent="6"></but>
<but text="Node 12" ID="12" Parent="3"></but>
</nav>
How To Stop Flash From Connecting Lines?
whenever i have a line close to another, flash keeps adjusting them so that they connect. it's driving me nuts! i've clicked every option i could fine regarding lines...
Drawing Lines Over Movie Clips
I have been banging my head against my 96" LCD (the wall for the projection screen :-) to no avail.
How do I draw lines over movie clips? My lines always go behind it. My code:
ActionScript Code:
on(press) {
lastXDown=_root._xmouse;
lastYDown=_root._ymouse;
}
on(release) {
if (lastXDown<>0) {
this.lineStyle(5,0x000000,100);
this.moveTo(lastXDown-34,lastYDown-57);
this.lineTo(_root._xmouse-34,_root._ymouse-57);
}
}
on(releaseOutside) {
lastXDown=0;
lastYDown=0;
}
I don't want to make the movie clip opaque. HELP!
Thanks,
Ross.
Lines Between Movie Clips - Suggestions?
I have managed to get my code to access all the links and to begin to draw the connecting lines. But only for the first link in my XML data. Can anyone help me with getting this to loop through the links and show them all? Please?
Code:
this.dataArray = new Array();
this.drawNetwork = function(dataSrc){
for (var ID=0;ID < dataSrc.length;ID++){
if (dataSrc[ID] != undefined){
var mc = _root['mc'+ID];
var thisBut = _root['but'+ID];
var prntBut = _root['but'+ dataSrc[ID].prnt];
mc.clear();
mc.lineStyle(2, 0x999999);
mc.moveTo(thisBut._x, thisBut._y);
mc.lineTo(prntBut._x, prntBut._y);
}
}
}
myXML = new XML();
myXML.ignoreWhite = true;
myXML.onLoad = function(ok) {
if (ok) {
allData = this.firstChild.childNodes;
for (i=0; i<allData.length; i++) {
nodeID = Number(allData[i].attributes.ID);
_level0.dataArray[nodeID] = new Object();
var thisNodeObj = _level0.dataArray[nodeID];
thisNodeObj.text = allData[i].attributes.text;
thisNodeObj.prnt = Number(allData[i].firstChild.attributes.to);
// can't create two clips at same depth
var newBut = _root.attachMovie('butTemp', 'but'+nodeID,
(nodeID*2)+1);
_root.createEmptyMovieClip( 'mc'+nodeID, nodeID*2);
newBut.but_txt.text = thisNodeObj.text;
newBut._x = random(600);
newBut._y = random(500);
}
_level0.drawNetwork(_level0.dataArray);
} else {
trace("error");
}
};
myXML.load('node_link.xml');
_root.onEnterFrame = function (){
if (_root.draggingNode) _level0.drawNetwork(_level0.dataArray);
};
Here is the XML data (node_link.xml):
Code:
<?xml version="1.0" encoding="iso-8859-1"?>
<nodes>
<but text="Node 1" ID="1">
<link to="2"></link>
<link to="3"></link>
<link to="4"></link>
<link to="5"></link>
</but>
<but text="Node 2" ID="2">
<link to="3"></link>
<link to="4"></link>
<link to="5"></link>
</but>
<but text="Node 3" ID="3">
<link to="4"></link>
<link to="5"></link>
</but>
<but text="Node 4" ID="4">
<link to="5"></link>
</but>
<but text="Node 5" ID="5">
</but>
</nodes>
Dotted Lines Around Text Box / Button / Movie Clips?
Can someone tell me what the dotted lines are on these movie clips?
The 3 words in the screen shots are movie clips w/ buttons inside. The buttons have actionscript code added to enable the words to be dragged and dropped on the stage.
The drag and drop isn't working. After checking the file over and over, I think the dotted lines have something to do w/ the drag and drop not working.
Any ideas what the problem is or maybe just where those dotted lines come from?
Screenshot:
http://www.instructionaldc.com/dottedlines.html
Edited: 11/22/2006 at 02:15:04 PM by joestmc
Can I Read The Time To Alter Movie Clips Within The Movie
Hi there all,
I looking at making a screensaver that changes over time. i.e. I want actionscripit to detect the time from the system clock and depending on the time alter the state of the movie playing...for example darkens the sky in the screen saver....tells you it is saturday and you shouldn't be at work..etc...
Want I want to know is this possibile....
any thoughts!..any known examples to look at....
cheers...out there..enjoy your day!
stu
Can I Read The Time To Alter Movie Clips Within The Movie
Hi there all,
I looking at making a screensaver that changes over time. i.e. I want actionscripit to detect the time from the system clock and depending on the time alter the state of the movie playing...for example darkens the sky in the screen saver....tells you it is saturday and you shouldn't be at work..etc...
Want I want to know is this possibile....
any thoughts!..any known examples to look at....
cheers...out there..enjoy your day!
stu
Duplicating Two Movie Clips At The Same Time
Hi,
It is probably a very basic question, but I don't know how to duplicate two MC with one mouse event.
I've tried a code like this, but it doesn't seem to work:
(It only duplicates "MC", but not "otherMC".)
on (release) {
duplicateMovieClip ("MC", "MC"+ counter, counter);
setProperty ("MC"+ counter, _y, counter*20);
setProperty ("MC"+ counter, _X, + 485);
duplicateMovieClip ("otherMC", "otherMC"+ counter, counter);
setProperty ("otherMC"+ counter, _y, counter*20);
setProperty ("otherMC"+ counter, _X, + 475);
counter ++;
}
Thanx in advance.
Zoo_Mann
Time Delay On Movie Clips
can you set a time deley on a movie clip so that it plays then waits say 10 seconds before playing again. So far i just do a load of frames on the end that are blank, it works fine but not the most technical method!
Many thanks
Time Controlled Movie Clips
I want To have an animation change every 12 second.
ex.
every 12 seconds it goes to a certain frame in a certan movie clip. Is there a turorial that i can look at or could someone help me out.
Movie Clips Playing At The Same Time
Hi,
I have two MC's playing at the same time. The first movie clip has the following AS:
this.createEmptyMovieClip("vhost_mc", 1000);
vhost_mc.loadMovie ("http://.....");
When I put a stop(); at the beginning or end to this code, it only plays the first movie clip and the second movie clip doesn't play.
Please help. Thanks!
Loading 2 Movie Clips At The Same Time
How do I load two movies at the same time without having one override the other?
if someone can show me how to achieve this using the MovieClipLoader class I will greatly appreciate it.
thanks
Duplicating Movie Clips @ Time Intervals
SO I have created a movie clip which i want to duplicate 4 times, but I want each to start in a different position and with a delayed time factor. How do I do it? All I have achieved so far is loading all duplicates at the same time, in different x&y positions. PLEASE HELP!
Pre-thanks!
Controlling Movie Clips With Their Own Time Line
I'm having trouble in playing one movie clip (animated text swf)and then another text swf afterwards. In the main time line they just take up 1 Keyframe each even though the movie clips are 60 frames. When you Test Movie they both play at the same time (undesirable). Placing 1 keyframe after the other on the Main Time Line results in the latter movie playing only.
How do you control from the Main Time Line movie clips (which have their own time line) when they should play or stop onto the stage?
Any help is appreciated
Removing Movie Clips One At A Time With Delay - Help Please
I tried for 3 hours to make this code work so I wouldn't need to bother anyone here, but apparently I need help...sorry to be posting so much.
Imagine 300 bricks on a wall, each a movie clip. I have manually named 125 of them b1 - b125. What I want to do is on EnterFrame start removing the numbered bricks one at a time with a 1/100th of a second delay between each brick. I am using a for statement which works fine, but not sure how to make the delay inside the loop. Here is the code:
onEnterFrame = function(){
for (var i:Number = 0; i < 126; i++) {
this["b" + i]._alpha = 0; //makes the brick invisible but keeps it on the stage to reappear later.
loadInt = setInterval(this, "startPause", 20);
}
}
function startPause() {
clearInterval(loadInt);
}
I just can't seem to grasp the setInterval command. I have tried it many times, including using the code exactly from the Adobe LiveDocs, and I can't seem to make it work. Any help would be greatly appreciated.
Thanks
Play Multiple Movie Clips At One Time.
Hi. I have a website that I'm designing and I need a way so that when I press a button it goes to a frame it creates two new emptyMovieClips and plays the two movies at the same time. I have it working with just one movie clip and the code I have is:
on (press) {
gotoAndPlay("mar");
this.createEmptyMovieClip("original_mc", depth++);
mcA = ["IceAd_next_mc", "Marriott_fade_mc"];
index = 0;
xx = 448;
yy = 105;
mc = this.attachMovie(mcA[index], "mc", 0);
mc._x = xx;
mc._y = yy;
trace(mc);
this.onEnterFrame = function() {
if (mc._currentframe == mc._totalframes) {
index++;
if (index<mcA.length) {
mc.removeMovieClip();
attachMovie(mcA[index], "mc", 0);
mc._x = this.xx;
mc._y = this.yy;
}
}
};
}
I also can make it work for the second movie clip alone, but not together the code for the second movie clip is just below. Is there a way to combine the two so that they both play at the same time?
this.createEmptyMovieClip("text_mc", depth++);
mcA = ["ICE_txt_mc", "MAR_txt2_mc"];
index = 1;
xx = 217.5;
yy = 367.5;
mc = this.attachMovie(mcA[index], "mc", 1);
mc._x = xx;
mc._y = yy;
trace(mc);
this.onEnterFrame = function() {
if (mc._currentframe == mc._totalframes) {
index++;
if (index<mcA.length) {
mc.removeMovieClip();
attachMovie(mcA[index], "mc", 1);
mc._x = this.xx;
mc._y = this.yy;
}
}
};
Thanks!
Multiple Movie Clips On The Same Time Line
Please help...
How do you get 2 movieclips to work in the same timeline?
I have movie1 in frame1, and movie2 in frame2. I can control movie1 with action script, with stop() in frame1 on the action script layer. What do I do next? I've tried a bunch of different scripting combos.
PLEASE HELP!!!!!!!
Removing Movie Clips One At A Time With Delay
tried for 3 hours to make this code work so I wouldn't need to bother anyone here, but apparently I need help...
Imagine 300 bricks on a wall, each a movie clip. I have manually named 125 of them b1 - b125. What I want to do is on EnterFrame start removing the numbered bricks one at a time with a 1/100th of a second delay between each brick. I am using a for statement which works fine, but not sure how to make the delay inside the loop. Here is the code:
onEnterFrame = function(){
for (var i:Number = 0; i < 126; i++) {
this["b" + i]._alpha = 0; //makes the brick invisible but keeps it on the stage to reappear later.
loadInt = setInterval(this, "startPause", 20);
}
}
function startPause() {
clearInterval(loadInt);
}
I just can't seem to grasp the setInterval command. I have tried it many times, including using the code exactly from the Adobe LiveDocs, and I can't seem to make it work. Any help would be greatly appreciated.
Thanks
Refreshing Movie Clips Each Time Problem
Hi i am modifying a page turn source file to load jpgs dynamically for each page. However this page turn system works by refreshing the movie clips on stage each frame. However this means the jpg has to be reloaded each time as appossed to just loading the movie clip.
Basically i think the only workaround to this problem would be to alter the movie clip in the library so that each time the page movie clip is loaded the image is already in there. Thus is there a way to alter a movie clip in the libary - so when its loaded using a linkage identifyer the image is already in the movie clip
TY in advance
Mark
Same Movie Clips But Run At Different Time Frame... Hope Y'all Understand
I have so many doubts ......
I am always curious what is the explanation behind of some movies clip that seems to be so impossible for me to do.
How can you all deal with this scenario.
Let say, I have 1 movie clip called 'ball'. This ball is moving in its own movie clip. How can I duplicate a 'ball2' that runs 3 frames behind the 'ball'. It means, when ball is on frame 3, the ball2 will start moving from frame 1.
Pretty confusing huh?
Dynamic Movie Clips And Determining Running Time
Flash 7 As2.0
I want to be able to load an swf file dynamically and tell it to play through once and the return. If I create a scene and place a load movie action in the first frame, the movie runs in a loop until the last keyframe of the scene timeline. If I look at the duration of the called swf in frames and set the number of frames in the calling stage the same, for some reason the two don't always match up. Finding the right number seems to require hit and miss and may not be the same from implemtation to implementation.
I suspect the difference may be in the load time although this doesn't seem to add up either. Adding a preloader still doesn't make the two line up accurately.
Is there a way to tell a scene to loop through a couple of frames while the loaded SWF plays and then know when the SWF had played through once so it could trigger an unload/return?
Communicate Between Author Time Created Movie Clips
Hello All,
I am new to AS 3 and need to figure out how get some Movie Clips to communicate with with each other or with the Main timeline (Scene 1) .
I have created two movie clips during author time not dynamically
- a movie clip instance named menu_mc and a movie clip named screen_mc.
Inside menu_mc are buttons that I have 'wired' to communicate with a movie clip on the main stage/main timeline .
How can I successfully reference the 'main' timeline and/or the 'screen_mc' clip.
So far the only thing that works is:
this.parent["screen_mc"].gotoAndStop("flower") ; // <-- (Script is written in a keyframe inside menu_mc)
Any help is much appreciated as this was so easy to achieve in AS 2.
How Do I Load Two External Swf's In Empty Movie Clips At The Same Time? Help...
Sorry if the title is a bit confusing.
OK, I have a swf of a menu that I need to load when a link is selected. All external pages I have at the moment load into one empty movie clip in a file called index.swf. However, I need my menu to load in another (side nav) movie clip as specfic links are selected from another navigation area. Right now, I have a news scroller, which is part of my index.swf page so it currently does not change as the external swf's load. But, I'd like that to change once links from another bottom navigation menu in the index.swf are clicked instead of just loading the external files in one place, I'd like the menu to load into its own side movie clip accordingly.
Does this make sense? When a button from the already existing nav on index.swf is selected, I need 2 external swf's (the new side menu to replace the news as well as the existing main movie clip) to load instead of just one.
The solution would seem to be a simple, but I'm a novice (steadily learning), so I'm having trouble figuring it out.
Also, existing movie clip that loads the swf's into index.swf covers the height and width of index.swf like Kirupa's full site tutorial (as my site is a full site as well).
To relate my problem to that tutorial, which I followed feverishly, I have two nav area's instead of one, one exists (is constant) on index.swf, the other will load into a new movie clip as a side nav menu.
I'm using MX (not 2004) by the way.
Any help is much appreciated.
Thanks
How Do I Load Two External Swf's In Empty Movie Clips At The Same Time? Help...
Sorry if the title is a bit confusing.
OK, I have a swf of a menu that I need to load when a link is selected. All external pages I have at the moment load into one empty movie clip in a file called index.swf. However, I need my menu to load in another (side nav) movie clip as specfic links are selected from another navigation area. Right now, I have a news scroller, which is part of my index.swf page so it currently does not change as the external swf's load. But, I'd like that to change once links from another bottom navigation menu in the index.swf are clicked instead of just loading the external files in one place, I'd like the menu to load into its own side movie clip accordingly.
Does this make sense? When a button from the already existing nav on index.swf is selected, I need 2 external swf's (the new side menu to replace the news as well as the existing main movie clip) to load instead of just one.
The solution would seem to be a simple, but I'm a novice (steadily learning), so I'm having trouble figuring it out.
Also, existing movie clip that loads the swf's into index.swf covers the height and width of index.swf like Kirupa's full site tutorial (as my site is a full site as well).
To relate my problem to that tutorial, which I followed feverishly, I have two nav area's instead of one, one exists (is constant) on index.swf, the other will load into a new movie clip as a side nav menu.
I'm using MX (not 2004) by the way.
Any help is much appreciated.
Thanks
Movie Clips Into Loaded Movies Into The The Main Time Line...Please Help
Hi there flashy boys and girls.
I have a movieclip in a movie. At the end of the timeline of this movieclip I put the _root.GotoAndPlay(number of frame in the main timeline) command to return to the main movie. This works well, so far so good...
If however, I load this movie (movieA) as an .swf into another movie (movie B) it goes all wrong at the point where the movieclip in movie A is finished and it should return to the main time line of movie A to play the rest of this movie...
My guess is that the _root.GotoAndPlay command in the movieclip inserted in movie A suddenly effects the timeline of movie B, instead of the one of movie A that it should effect...could this be correct?
If so, please help me out..if not so, please help me out! All help will be most apprecciated! Thanx!
Lines On Run Time
I've got an interface with moving(draggeable) objects. Each object is linked to the others with a curved line. I want the lines to follow the objects when they move, and the curve to bend along. In other words, it's like two objects tied by a rope and the rope bends and moves when the objects move. Is there a way to do that? If yes, can anyone help? I understand that this may require lots of involvement so I'm not asking for full help; that'd be too much. Instead, can anyone hand over a cool tutorial about that subject, or at least some guidelines? Thanks in advabce
Controlling Mc Time Lines From Other Mc's
ok this is my problem, i have a movie clip (intance name : About_Button) on the main time line, in the actions layer of the main time line i have the following:
Code:
About_Button.onRelease = function() {
About_Button.gotoAndPlay(2);
About_Button._y =150;
};
This part works fine, on frame 5 of this mc is another mc (instancename: About_Holder) this mc holds 5 movieclips: 4 are mc that are just suposed to play to frame 5, and one that tells the About_Holder movie clip to gotand play frame 6-10 of About_Holder, at frame 10 is a command to gotoandplay frame 6 of About_Button.
none of this works however, i have tested to see if the code is even being read in the 5 movieclips held in the About_Holder using a trace, nothing happens, the buttons function but dont move the time line, any idea y this is happening?
if u need any more in for please ask.
all of these mc's (except the About_Holder) work as buttons using similar functions as the code above.
-WTheF
Drawing Lines Over Time
I'm going to try to make a homepage with flash now which I've never tried before. One of my problems so far is how to best draw lines over time. I've thought about 2 different approaches to this issue.
The first one would be to draw a small portion of the line, then on the update, remove it and create a longer one.
+ The capsStyle, JointStyle and miterLimit will look good.
- Speed issues I'd presume. Creating and removing movieclips many times a second is probably not the best thing for netstreaming.
The other way would be to draw small lines after eachother. It would be like, laying out pieces after eachother.
+ Will still create a line many times a second, but won't remove any previous one. (+ for speed issues?)
- capsstyle, jointstyle and miterlimit will most likely mess up since the lines would overlap eachother (with the capsstyle) and the joints and emiter would also mess up due to the small lines.
Another problem I'm having with this is that I'm not sure how to best do a loop with a wait in it (perhaps setInterval() could work?) locally (think it's named private in.. AS) for every line.
I'd appreciate any thought about this problem, so please, go ahead and post.
Cheers
Symbols And The Time Lines
I was just wondering where is the symbols in the timeline? Someone asked me this question and I did not know the answer. I do not know if they exist or not just wondering what they are? If anyone knows how to answer this please let me know.
How To Make Lines Draw Over Time?
I want to make a line grow from a small point to an elaborate design, kind of like the way a lit fuse follows a path.
*Shape tweening doesn't always follow the line directly.
*Motion tweening straight lines is too restrictive, because I need soft corners.
*A mask is too blunt because the line crosses over itself and the rate of draw changes too much with different masks for different sections.
How can it be done? Many thanks.
Quick Question About Time Lines
This is probably a really simple question for most of you , but I am wondering, ... How do you make one frame come in later than the another frame.
IE ..I am wanting my flower to show first and then my buttons. And they are on two different frames.
Thanks in advance
|