Anything Wrong With My Target Path?
Let's say I have a movie clip in "A" movie. I wanted to load "B" movie to an empty movie clip. On the first frame of "B" movie, I have this script:
_root.gameLevel = "1"; function check() { _root.temp1 = _root.gameLevel; //_root.temp1 is a dynamic txt field on the _root of movie "B"; } _root.check();
When I tested movie "B" independly, it works. But when I test movie "A" (it'll load movie B into an movie clip), the text field couldn't show anything.
FlashKit > Flash Help > Flash MX
Posted on: 03-23-2004, 04:08 AM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
What's Wrong With This Target Path?
nothing is happening when i click the thumbnails that are being loaded from xml into an attached movie. this has got to be a really easy answer here. any ideas?
Code:
for (var z = 0; z < articleNos; z++){ // start looping through xml
var item_mc = thumb_list.attachMovie("indiv_thumbs","indiv_thumbs"+item_count, item_count, {_x:5, _y:0});
item_mc._y = item_count * item_spacing;
item_count++;
item_mc.loadMovie(seasArts.firstChild.childNodes[z].childNodes[5].firstChild.nodeValue,5);
}// end for xml loop
item_mc.thumb_list["indiv_thumbs"+item_count].onRelease = function(){
//if(i < articleNos){
//i = i+1;
//} else {
trace("Hello");
_root.art_count = "5";
}
thanks!
Using Eval Function And Variable In A Path (target Path)
Hello,
I have to reprogram some of my website and it calls to conjugate strings in a way that's beyond my understanding. Please help me with some suggestions. Kind regards.
the original code is:
code:
if (_global.useCount<10) {
//hide
var diff = 10-_global.useCount;
for (diff; diff>0; diff--) {
eval(String(11-diff))._visible = false;
}
}
There are buttons named 1 to 10 and this turns off the ones that are not used. Now I want to nest those buttons in subclip "buttonsRow", instead of having them on main timeline. How do I rewrite that code to make it work with new path?
I have already tried the "associative array" method, but it don't really know how to pack the whole eval function in there. I've tried many combinations, like:
code:
this.buttonRow[eval(String(11-diff))]_visible = false;
//or
this.buttonRow["eval(String(11-diff))"]_visible = false;
//or
buttonRow[eval(String(11-diff))]._visible = false;
//or
buttonRow["eval(String(11-diff))"]._visible = false;
//or
buttonRow[eval(11-diff)]._visible = false;
// or
buttonRow[8]._visible = false;
//the last one at least turns off button 8, lol
Some of those return syntax error and some just don't work. Anyone have any ideas? Thank you again.
Wrong Path Given, What Path To Use?, And Why?
Since the beginning of my Flash time, i never solved the 'giving path' problem in Action Script.
Most of the time my paths work, but sometimes they only work in an empty .fla file and not in my homepage.fla file with the code in another scene.
This time it's the code in the timeline (layer: actions, frame 2, scene: control_panel_sc, .fla file: homepage.fla):
stop();
ccbTime.addItem("tidfme2");
I tried naming the path to:
this.ccbTime.addItem("tidfme2");
super.ccbTime.addItem("tidfme2");
_root.ccbTime.addItem("tidfme2");
_parent.ccbTime.addItem("tidfme2");
_global.ccbTime.addItem("tidfme2");
_level.ccbTime.addItem("tidfme2");
_leven0.ccbTime.addItem("tidfme2");
this._root.ccbTime.addItem("tidfme2");
even adding the scene name to it:
this._root.control_panel_sc.ccbTime.addItem("tidfm e2");
etc. (thus the above paths again + scene name)
All paths above don't work, meaning, i can't see the value in a component ComboBox, though in an empty .fla file i do see this value.
Because you can't help me out without actually seeing the .fla file, i uploaded it:
(every link is the same file, so just choose one URL).
http://pcxpert.dyndns.org/homepage.fla
http://pcxpert.dyndns.org/homepage.zip
http://www.uploading.com/?get=YQ0G1UIC zip version
http://www.uploading.com/?get=VWE6WZKO .fla version
http://members.lycos.nl/johnwhello/homepage.fla
http://members.lycos.nl/johnwhello/homepage.zip
ftp://pcxperting:flash@pcxpert.dyndns.org/homepage.fla
ftp://pcxperting:flash@pcxpert.dyndns.org/homepage.zip
Also, you're authorized to change any file at ftp://pcxperting:flash@pcxpert.dyndns.org (the future pcxperting.com that is made by and made for pcxperts)
Wrong Path.
This is going to sound like a simple question but...
I have a button inside a movie clip in Scene2 and when clicked I want it to make the main timeline in Scene2 go to the next scene (Scene3).
What is the path for that? I've tried _parent and _root and nothing has been successful.
Wrong Path, Please HELP
I am trying to get something to scroll, I have done this before but just not working for me this time, so here is what I have:
_root timeline with everything inside of that, I have a MC here called walkThrough
So double click and I am within walkThrough
here I have a bunch of thumnails on its own layer, a mask layer and 2 scroll bar, left and right. I have a "fake" MC called right scroll, instance name right, same with the left (left scroll, left). If you click within this MC I have 3 frames set up.
Frame 1: stop();
Frame 2:
movespeed = 10;
if (this._parent.scroll._x<=-4000) {
gotoAndStop(1);
} else {
this._parent.scroll._x -= movespeed;
}
Frame 3: gotoAndPlay(2);
Frame 2 is where my path is wrong I am guessing, but I have messed around with it and can't seem to get it right. The -4000 may be the problem as well but I have messed around with this number as well.
On the actual scroll buttons I have this;
on (press) {
tellTarget ("right") {
gotoAndPlay(2);
}
}
on (release) {
tellTarget ("right") {
gotoAndStop(1);
}
}
Or left for the left one.
Anyone have an idea?
Wrong Path
Hi,
I try to do a gallery but i got wrong target
Actually i have my flash movie struture like this
(type of clipe / name of clip)
Main swf
///Clip -> "Load1"
/////Scrollpane -> "Scroll1"
//////////clip -> "gallery"
////////// there is my following code :
Actually, when i click on thumbnails, the big image is load in clip "gallery", so inside a scroll panel. :-/
I would like to adapt the code to load the big movie when i click on it on "_root"
COuld somebody help me
Best regards
i got the following code
ActionScript Code:
MovieClip.prototype.traceRectangle=function(xPos,yPos,width,height,fillColor,lineColor,alpha){
this.beginFill(fillColor,alpha);
this.lineStyle(1,lineColor,alpha);
this.moveTo(xPos,yPos);
this.lineTo(xPos+width,yPos);
this.lineTo(xPos+width,yPos+height);
this.lineTo(xPos,yPos+height);
this.lineTo(xPos,yPos);
this.endFill();
}
MovieClip.prototype.setPreloader=function(clip){
infos={x:0,y:-15,width:100,height:10,fillColor:0xeeeeee,lineColor:0x000000,alpha:100,message:" loading..."};
this._x=clip._x+infos.x;
this._y=clip._y+infos.y
this.createEmptyMovieClip("barre",1);
this.createTextField("message",2,infos.width,-5,100,20);
this.message.text=infos.message;
this.onEnterFrame = function() {
this.barre.clear();
this.barre.traceRectangle(0,0,infos.width*this.barre.percent,infos.height,infos.fillColor,infos.lineColor,infos.alpha);
this.barre.percent=clip.getBytesLoaded()/clip.getBytesTotal();
if (this.barre.percent>=0.99) {
clip.onRelease=function(){ clip.removeMovieClip();}
this.removeMovieClip();
}
}
}
MovieClip.prototype.loadFile=function(file){
this.createEmptyMovieClip("pic", 102);
this.createEmptyMovieClip("control",103);
this.pic.loadMovie(file);
this.control.setPreloader(this.pic);
}
movieClip.prototype.loadGalerieFromXml = function(file,zoneTaille,zoneEspace,affichage,nombre,clipCible){
this.galerieXml = new XML();
racine=this;
this.galerieXml.ignoreWhite = true;
this.galerieXml.onLoad = function(){
racine.zoneTaille = zoneTaille;
racine.zoneEspace = zoneEspace;
racine.picsLoaded = true;
racine.affichage = affichage;
racine["nb"+affichage] = nombre;
racine.galeriev = this.firstChild.childNodes;
racine.lon = racine.galeriev.length;
for (var i = 0; i<racine.lon; i++) {
var nom = racine.galeriev[i].attributes.small;
racine.createEmptyMovieClip("bitmap_mc"+i, i+10);
racine["bitmap_mc"+i].loadMovie(nom);
}
racine.onEnterFrame=function(){
this.picsLoaded=true;
for (var i = 0; i<this.lon; i++){
racine["bitmap_mc"+i]._visible=false;
if(this["bitmap_mc"+i].getBytesLoaded() !=this["bitmap_mc"+i].getBytesTotal()||this["bitmap_mc"+i].getBytesLoaded()==0)
{this.picsLoaded=false;break;}}
if(this.picsLoaded==true){
this.onEnterFrame=null;
this.a = 0;
this.b = 0;
for (var i=0; i<this.lon; i++) {
racine["bitmap_mc"+i]._visible=true;
if (this.a == this["nb"+this.affichage]) {
this.a = 0;
this.b++;
}
this["bitmap_mc"+i]._x =(this.affichage=="Colonnes"? this.a : this.b)*(this.zoneTaille+this.zoneEspace);
this["bitmap_mc"+i]._y =(this.affichage=="Colonnes"? this.b : this.a)*(this.zoneTaille+this.zoneEspace);
this.a++;
this["bitmap_mc"+i].big=this.galeriev[i].attributes.big;
}
for (var i = 0; i<this.lon; i++) {
this.facteur=Math.max(this["bitmap_mc"+i]._width,this["bitmap_mc"+i]._height)/this.zoneTaille;
this["bitmap_mc"+i]._xscale = this["bitmap_mc"+i]._yscale /=this.facteur;
this["bitmap_mc"+i].onRelease= function(){clipCible.loadFile(this.big);}
this["bitmap_mc"+i].onRollOver= function(){this.gotoAndStop('2');}
this["bitmap_mc"+i].onRollOut= function(){this.gotoAndStop('1');}
}
}
}
}
this.galerieXml.load(file);
}
this.createEmptyMovieClip("galerie",1);
this.createEmptyMovieClip("bigPhoto",2);
this.galerie._x=10;
this.galerie._y=10;
this.bigPhoto._x=10;
this.bigPhoto._y=100;
this.galerie.loadGalerieFromXml("_script/data.xml",120,10,"colonnes",4,this.bigPhoto);
stop();
Wrong Path?
I'm working with an email form in flash which is supposed to send data to a PHP form but it seems to freeze after the send button is pushed which leads me to believe that the PHP form isn't being communicated with.
the "email.php" file is located in the same place as the flash file on the server.
this is the code on the "send" button. all of the input text fields and dynamic response field have variable names which are called in this code
Code:
on (release) {
if (!email.length || email.indexOf("@") == -1 || email.indexOf(".") == -1) {
results = "Please check your e-mail address.";
} else if (!comments.length) {
results = "Please enter your comments.";
} else if (!name.length) {
results = "Please enter your name.";
} else {
loadVariablesNum ("http://www.orcaproductions.com/email.php?name=NTD&email=tania.alexis@gmail.com", 0, "GET");
results = "Sending Data...";
}
}
one thing i'm wondering is if i should have a "_root" command before loadvariablesNum because this form does not exist on the main timeline..
the PHP code is as follows:
Code:
<?php
$TextVariable = '&results=';
$response = 'Data Sent. Thank You..';
echo $TextVariable;
echo $response;
$recipient .= "tania.alexis@gmail.com" ;
$subject = "Your Automail";
$message .= "Name: $name
Email: $email
Comments: $commentsn";
$headers .= "From: $name <$email>n";
mail($recipient, $subject, $message, $headers);
?>
when i use the form it just keeps saying "sending data..." in the response box.
I've tried so many different things and nothing seems to change it.
Thank you to anyone who may be able to help..i owe ya one.
Wrong Path?
I'm working with an email form in flash which is supposed to send data to a PHP form but it seems to freeze after the send button is pushed which leads me to believe that the PHP form isn't being communicated with.
the "email.php" file is located in the same place as the flash file on the server.
this is the code on the "send" button. all of the input text fields and dynamic response field have variable names which are called in this code
Code:
on (release) {
if (!email.length || email.indexOf("@") == -1 || email.indexOf(".") == -1) {
results = "Please check your e-mail address.";
} else if (!comments.length) {
results = "Please enter your comments.";
} else if (!name.length) {
results = "Please enter your name.";
} else {
loadVariablesNum ("http://www.orcaproductions.com/email.php?name=NTD&email=tania.alexis@gmail.com", 0, "GET");
results = "Sending Data...";
}
}
one thing i'm wondering is if i should have a "_root" command before loadvariablesNum because this form does not exist on the main timeline..
the PHP code is as follows:
Code:
<?php
$TextVariable = '&results=';
$response = 'Data Sent. Thank You..';
echo $TextVariable;
echo $response;
$recipient .= "tania.alexis@gmail.com" ;
$subject = "Your Automail";
$message .= "Name: $name
Email: $email
Comments: $commentsn";
$headers .= "From: $name <$email>n";
mail($recipient, $subject, $message, $headers);
?>
when i use the form it just keeps saying "sending data..." in the response box.
I've tried so many different things and nothing seems to change it.
Thank you to anyone who may be able to help..i owe ya one.
Whats Wrong With My Path Here?
copy this AS and test it out. Click on the text and the trace statement returns a value of "The undefined button was pressed". Can someone help me determine what is wrong with my path. The result should be the content of the text box.
Code:
var initialY = 20;
var menuX = 50;
var counter = 1;
var menuItems = new Array ("Restuarant", "Hotel & Resort", "Gaming", "Entertainmet", "Meetings");
for (var i = 1 ; i <= menuItems.length ; i++ ) {
//trace(menuItems.length);
_root.createEmptyMovieClip("buttonMC" + counter, counter);
_root["buttonMC" + counter].createTextField(menuItems [counter-1], counter, menuX, initialY * counter, 70, 20);
//trace(counter);
_root["buttonMC" + counter][menuItems [counter-1]].text = menuItems [counter-1];
_root["buttonMC" + counter].onRelease = function() {
trace ("The " + _root[this[menuItems [counter-1]].text] + " button was pressed");
}
counter++;
}
Thanks
Component And Wrong Path
Hello
I need to load xml to component which is in the same directory as fla file. After trace(loaderInfo.url); included in component class I receive this:
Component in fla file trace (wrong path) :
///C|/Documents%20and%20Settings/st01/Ustawienia%20lokalne/Dane%20aplikacji/Adobe/Flash%20CS3/en/Configuration/TMPdpvp0zu119.swf
Component in swf file trace (correct path):
///D|/Work/Components/paths/t1.swf
Path from fla file makes it impossible to load xml file with relative path. Maybe someone know how to bypass this. Thank you in advance.
Target Path
I can't get the code below to work when one movie clip is placed inside another. The code does work however, if the movie clip is not nested.
"ins_buttons" = the instance name given to the movie clip.
on (release) {
_root.ins_buttons.nextScene();
play ();
}
Any help will be greatly appreciated.
Ike Austin
Help With Target Path...
I'm having a lot of trouble targeting a different swf, I have a "shell" movie that loads a file into level1, I also have a file that loads into an instance of a blank movieclip in the shell file. So we have three swf files interelating. The trouble I am having is in trying to get a button in the level 1 movie to tell the movie that had loaded into the instance in level 0 to goto and stop at a different named scene. Anyone have an idea how to do this?
It would probably work if I loaded the target movie into another level, but I'd like to get it to work as it is.
For the sake of simplicity I will try to detail the scripting:
Movie:BG contains an instance of a blank MC named "Nav" that loads a file named main_nav.swf into it.
Movie:BG then loads a file called "home.swf" into level1.
I want a button in home.swf to cause main_nav.swf to go to a different scene.
Thanks to anyone who can help me!
TARGET PATH... HELP ME PLS
how wud i target a movie clip called "textbox" in my library... the movie is under scene 1.. for some darn reason "_root.textbox" is not working!!! it says TARGET NOT FOUND... pls help me asap!
Target Path
How to control action betwen two different loaded movies in diferent frames (html frameset - each frame with it's name)?
Target Path, Please Help
I want to access a movie clip inside a button, it it doesn't work.
I have a button wich i named "button"
Inside it a have a clip named "clip".
I try to access the clip with the "telltarget" command(on the button), and it doesn't find the clip.I tried with the "level0.button.clip" path.
What am i doing wrong?
Target Path
Hi guys!
This may seem simple but its confusing me!!
How do you get things onto that target path thing?
Where its like
_root.movieclip
I have done it before but I dont know how!!
Thanks!
[CS3/AS2] Target Path Help
Hi I am having some issues with communicating with a loaded movie clip and I can't understand why...
I have a root .swf which calls in external .swf's into a movieclip on the root timeline called contentHolder.
now i need to communicate firstly to the root timeline then to a movieclip within an externally loaded swf, so i use _root.contentHolder.movieclipname but this doesn't work...
Seems so basic but causing me untold grief lol
Var In Target Path
How can I assign a var into a target path? This seems like it should work but the alpha is not changing. All my MC's inside map are named to match the labels in the node passed from the XML file. Thanks in advance.
Code:
var myTreeDP:XML = new XML();
myTreeDP.ignoreWhite = true;
myTreeDP.load("xml/menu.xml");
myTreeDP.onLoad = function() {
myTree.dataProvider = this.firstChild;
};
var treeListener:Object = new Object();
treeListener.change = function(evt:Object) {
var menuClk = evt.target.selectedNode.attributes.label;
trace(menuClk);
_root.map[menuClk]._alpha = 100;
};
myTree.addEventListener("change", treeListener);
Help With Target Path....
Acckkkk it is driving me crazy...
Set up.
A movie clip of a clock. inside that clip is a movie clip of the hand with the instance name of hand_mc
The clock is on the root timeline with the instance name clock_mc
a button starts the clock moving.
the script on frame one of the main timelinestop();
this.clock_mc.hand_mc.stop();
this.clock_mc.stop();
_root.clock_mc.hand_mc.onRelease = function() {
_root.gotoAndStop(2);
};
go_btn.onRelease = function() {
clock_mc.play();
};
clock_mc.onRelease = function() {
clock_mc.gotoAndStop(24);
};The problem....
I can click on clock_mc and it goes to the correct frame and stops. Thats good. but when I click on the hand_mc nothing.
If I remove the script clock_mc.onRelease = function() {
clock_mc.gotoAndStop(24);
};then I can click on hand_mc and it goes to frame 2 of the main timeline.
How can I get both working together.
Thanks.
Target Path
Hi everyone,
I have a button inside a movie clip. The link available on this button should go to a different scene available on the main timeline. Using the target path feature available on the Action Panel, the following piece of code was generated:
on (release) {
_root.gotoAndplay("scene2", 1);
}
No error was detected by the Check Sintax feature. However, nothing happens when after the button is clicked.
Any idea about what is wrong? Thanks.
Gustavo
Target Path?
I have 2 movies: movieA and movieB
movieB gets loaded into movieA.
I need navigation from movieA to talk to items inside movieB but I can't figure out the target path if there even is any.
any ideas?
Target Path
I'm trying to acess myLoader located on a timeline above the navBar mc where my function is located and for some reason I am not able to acces the loader. The trace show that th button hears the addEventListener and the evt.target.name is working properly.
I get the following compile error:
1119: Access of possibly undefined property myLoader through a reference with static type flash.display:DisplayObjectContainer.
Can someone help me determine why?
Attach Code
The code on the main timeline is as follows:
//create a sprite container and add to the stage
var container:Sprite = new Sprite();
container.x=200;
container.y=134;
addChild(container);
var myLoader:Loader = new Loader();
myLoader.load(new URLRequest("features.swf"));
container.addChild(myLoader);
The code in the navBar mc is as follows:
stop();
function buttonClick(evt:MouseEvent):void {
gotoAndStop(evt.target.name);
//users see the hand icon over the button
home.enabled=true;
about.enabled=true;
contact.enabled=true;
galleries.enabled=true;
news.enabled=true;
//set the enable property of the button the user clicked to false
evt.target.enabled=false;
trace ("button click");
trace(evt.target.name +".swf");
this.parent.myLoader.load(new URLRequest(evt.target.name +".swf"));
}
home.addEventListener(MouseEvent.CLICK, buttonClick);
about.addEventListener(MouseEvent.CLICK, buttonClick);
contact.addEventListener(MouseEvent.CLICK, buttonClick);
galleries.addEventListener(MouseEvent.CLICK, buttonClick);
news.addEventListener(MouseEvent.CLICK, buttonClick);
Edited: 11/23/2008 at 04:01:12 PM by tboornaz
Var In Target Path
How can I assign a var into a target path? This seems like it should work but the alpha is not changing. All my MC's inside map are named to match the labels in the node passed from the XML file. Thanks in advance.
Code:
var myTreeDP:XML = new XML();
myTreeDP.ignoreWhite = true;
myTreeDP.load("xml/menu.xml");
myTreeDP.onLoad = function() {
myTree.dataProvider = this.firstChild;
};
var treeListener:Object = new Object();
treeListener.change = function(evt:Object) {
var menuClk = evt.target.selectedNode.attributes.label;
trace(menuClk);
_root.map[menuClk]._alpha = 100;
};
myTree.addEventListener("change", treeListener);
Target Path For Btn In Mc In Mc?
I am a starting Flash amateur and I am very impressed with this site... wow!
So much to learn...
I have read through the forum and some tutorials, but I can't find my solution. Perhaps I missed it?
Therefor I will try it this way; hopefully someone can help me. The following is the problem:
In my 'main' scene I have a menu (consisting of btn symbols).
When you click on a btn, an external swf file is loaded into a movieClipLoader component (mainLoader). Also, a sub menu appears (ie subMenu1_mc).
This sub menu mc again contains some btns in a mc (sub1_mc).
Now, I can't seem to activate these btns through AS and load the external swf into the loader!
The target option in AS gives me the path:
this.subMenu1_mc.sub1_mc.btnProfiel_btn (the btn IS recognized... and the rollOver state works too).
To me, the logical AS code (in the main timeline) for the btn was as followed:
this.subMenu1_mc.sub1_mc.btnProfile_btn.onRelease = function () {
mcLoader.loadClip("profile.swf",mainLoader);
}
... but of course, this doesn't work. Except for the rollOver effect, nothing happens.
What am I doing wrong? If more specifications are needed, please let me know!
John
About Target Path?
Hi everyone,
I attached 1 obj movie in the main movie such as:
ActionScript Code:
var mb = this.attachMovie("bar",mb1,i++);
when I attach the main movie in main scene
ActionScript Code:
var mcload = this.attachMovie("loader",mcload1,i++);
and I want to use the instant bar in main movie, what should I call?
this.mcload.mb1._xscale ?
I dont know, I try many times, many ways but I always get the same result is 'undefined'.
Please give me a advise, how can I use that instant in main movie.
Thanks,
Best regards,
Target Path
Hello All,
Help Arrrggg targeting path!!!!
If you have a minute I'd like you to take a look at the simple code below.
The code is attached to a button that appear in a movie clip(mc1)
This movie clip is placed on the main timeline or root of the movie.
The first line of code works, it jumps up one level out of mc1 to the main time line and then finds the frame name "storyboard".
on(release){
//_parent.gotoAndStop("storyboard");//ok
_parent.iSB.screenumbers.gotoAndStop("sb3010");//does not work!!!???
}
But that 's not what I want!
On the same main timeline is a second mc2(iSB). Nested inside iSB is a third clip(mc3) named "screenumbers".
But here's what's stumping me for the past several days...
The second line of code is suppose to jump to the main timeline, point to iSB(mc2), then point to iAnswers(mc3), then move to frame label "sb3010". it doesn't.
Look it over and see if you can find the problem.
Any help will be greatly appreciated.
Ike
What's Wrong With My Path? (help :( Deadline Approaches)
Scenerio:
my movie contains 3 symbols: sym1;sym2; sym3;
sym 2's timeline contains a stop action on frame 10.
sym3 needs to play to the end of its timeline, at which point it tells sym2's timeline to play the next frame (which is labeled "go").
Here's the script I'm using at the end of sym3's timeline:
Code:
_root.sym1.sym2.gotoAndPlay("go");
any idea why this doesn't work?
cheers
jenny
LoadMovie Won't Work. Wrong Path?
Hello again good folks!
I've got an empty MC called "picture".
This MC has the following path:
Code:
_root.container.picture
So, it's an external SWF (photography.swf) loaded in thru the container MC.
When I make button at the first frame of photography.swf everything works fine. BUT, when I place the same button inside a MC (called "allphotos") I cannot get this to work.
I use he following code for the button:
Code:
tb1.onRelease = function() {
_root.container.picture.loadMovie(image[6],6);
gotoAndStop(1);
}
It seems to "semi-work", because it loads blank. So at least the current photos disapears.
What am I doing wrong? I've used _parent, _level0 etc. Nothing.
PLEASE help me out
Why Does My Target Path Not Work?
Hey Y'All,
And happy Friday.
OK, got some weirdness here....I got a graph going on, and want to display detailed information about specific points on the graph when the user hovers over the points with the mouse. However, I get the feeling I've got too many nested movie clips, and that Flash can't work out the correct target path to populate the text boxes with the right information from the arrays I'm using.
This line should do it, but doesn't:
Code:
//populate InfoBoxes
for (n=0; n<=LongDolPlotArray.length; n++) {
_root["LongLabel"+n].InfoFloater.InfoText = "Sector: "+SectorArray[n]+";"+" Proportion of Assets: "+LongPercentArray[n]+"%";
}
...where there are several levels of movie clip nested within each other. InfoText is also a movie clip that contains a dynamic text field.
LongLabel contains a button determining user interaction as follows:
Code:
on (rollOver) {
gotoAndStop(2);
ColumnShade.gotoAndStop(2);
InfoFloater._xscale = 200;
InfoBg._xscale = 200;
InfoFloater._x = _xmouse;
InfoFloater._y = _ymouse-10;
InfoBg._x = _xmouse;
InfoBg._y = _ymouse-10;
}
on (rollOut) {
gotoAndStop(1);
ColumnShade.gotoAndPlay(3);
}
So, when you roll over a section of the graph, ColumnShade highlights that section, and InfoFloater and InfoBg follow the mouse and should display the appropraite data. The rest of it works fine, except for displaying the data!
Any clues? As far as I know, there shouldn't be a limitation to nesting clips, so I'm assuming my target path is incorrect.
Thangyouverymuch
Lassi
Target Path Confusion
I'm loading a movie (prod.swf) into another movieclip named "theClip" which is in the movie default.swf. I'm using theClip as a stage to contain movies,...right.
The movie I'm loading into theClip has a preloader. How do reference the getBytesLoaded() or getBytesTotal() of prod.swf?
String To Target Path
Hopefully this is an easy one. I just can't seem to figure it out.
I have a string that describes a target path. Ex: "_root.shapes.square". How can I make that string useful so that I can get/set properties with it?
Here's essentially what I'm trying to do:
var myString = "_root.shapes.square";
trace(myString._x);
But that syntax returns nothing. Likewise:
trace([myString]._x);
What am I doing wrong?
Thanks, Justin.
No Target Path To Choose From?
I am a total novice running through a "basics" actionscript tutorial.
I am trying to add button actions to shift a movie in the library. My problem: when i go to insert target path the only movie for selection is _root. I have a clip eyes in another layer but cannot select it. If I type in the path as I think it should be. The debugger tells me the object does not exist.
What am I doing wrong?? It must be simple as I have only created one scene, 4 graphic layers, a navigation layer and an actions/labels layer.
Any Ideas would be greatly appreciated. I can get the whole movie to shift but not the clip I want to shift.
Thanks in advance I've read many tutorials without success.
Mike
Using Variables In A Target Path?
how do I put a variable into a target path?
for example
_root.myMovie._x, but I want to do this to different myMovie files, eg.
myMovie_1,
myMovie_2
etc, and I have a variable var s = 1
eg. the number that changes for each movie. Is it then
_root.myMovie+s._x?
or what???
thanks, and I hope this is not a stupid question.
Target Path Question
Hi!!
I am i my main swf and i would like to target a mc in a external swf.
So my external swf load in a blank mc in my main swf why is the script to control a mc in a external swf..
ex is not good so cheeck this
wood.swf.wood1.gotoAndPlay ("done"); look like this maybe!!! i don;t know
Specifying Target Path With Buttons
i have a movie clip inside a button, and when the button is released i want the movie clip to play
the button's name is "laughbutton", the mc's name is "laugh" (i gave them those names, those aren't the library names)
on(release){
this.laugh.play();
}
doesn't work, which i tried originally, and
on(release){
_root.laughbutton.laugh.play();
}
doesn't work either. is it true after all, that like flash 5, mx can't do target paths through buttons?
Target Path Arrrrggg
Help Arrrggg targeting path!!!!
If you have a minute I'd like you to take a look at the simple code below.
The code is attached to a button that appear in a movie clip(mc1)
This movie clip is placed on the main timeline or root of the movie.
The first line of code works, it jumps up one level out of mc1 to the main time line and finds the frame name "storyboard".
on(release){
//_parent.gotoAndStop("storyboard");//ok
_parent.iSB.screenumbers.gotoAndStop("sb3010");//does not work!!!???
}
Also, on the same main timeline is a second mc2(iSB). Nested inside iSB is a third clip(mc3) named "screenumbers".
But here's what's stumping me for the past several days...
The second line of code is suppose to jump to the main timeline, point to iSB(mc2), then point to iAnswers(mc3), then move to frame name "sb3010". it doesn't. I have used this code many times before.
Look it over and see if you can find the problem.
Ike
Target , Path Problem
hi all,
can u pls help me.....
i have main.swf 6 buttons & calling external swf all at level 1 & main.swf is at level0...in one of my swf named multimedia.swf i have 6 different label... for 6 buttons placed at main.swf......
i want to give a path i tried doing it by
loadmovienum.......
but i am not able to solve a problem when i click the button it plays the animation with first label but when i click on second button the second label animation should appear but it plays the 1st label animation???????why is this????????is it bcoz after each label stop is there......
pls can u help me ?????????????
thanks......
help appreciated.......
amrapali
(MX) External Swf Target Path...
heres the idea...
I am importing an external swf into an empty movie clip in my main movie on keypress. In this swf I have a preloader to show how much of another external swf has loaded when the user pushes on a button. How would I target this preloader in my main movie?
greg
Target Path On Flashkit
hi there used to be on flashkit a swf that someone made to make it easy to know what's your target.
the old link was
http://www.flashkit.com/tutorials/Ti...87/index.shtml
and now that link is no longer working.
anyone know where the new one is?
when i do a search for target path i come up with zero.
thanks
pixi
Can't Get A Target Path To Work...
Hi folks, I'm trying to control a movie timeline to loadmovies via a seperate controling mc, I clicke the next button, and it has the code: on (release) { _root.acontrol.nextFrame(); }
and the "acontrol mc has 12 frames the first one containing a stop;
and all subsequent frames holding: stop;
loadMovie.("moviename.swf", aloader);
acontrol being the control mc and aloader being the target, what I end up with is the movies being loaded into the control mc rather than the loader mc.
Any help would as always be very appriciated.
Cheers
Can't Figure Out What The Target Path Is
Ok I have a main .swf that loads up a separate swf named tent_bdy.swf.
tent_bdy.swf has a movieclip in named ts2 which contains a button. The button points to a named frame on the main .swf. I've tried every target path I could think of to no avail. Please sombody help!
Jason Harle
Target Path Question
Hi,
Can someone have a look at this flash file and tell me why the values of _root.count and _root.clipheight in the track movie on the main timeline aren't getting back to the code on the main timeline?
I've tried the target path generator to no avail, feel like chuckin the whole lot outa the window!
From there I want to do some simple math to get the scrolling working properly, but I need to get the movieclip talking to the main timeline first.
Can someone please help me?
File.zip
Target Path Problem
I have a simple question here.
I have a movie clip of a deck of cards, 56 frames long. I have given each card a specific frame. I put this animation in a new folder on the timeline. Now, on my top layer I can't figure out what to write to make the deck goto a specific frame and stop.
The target path to the deck is: _level0.2_1_mc
I tried the code _level0.2_1_mc.gotoAndStop(25);, but it didn't work.
However I have a movie clip outside of the folder on the top layer named deck1_mc, and the code deck1_mc.gotoAndStop(23); works.
What code do I have to use to make the movie clip inside of the folder go to a specific frame from the top layer?
--Blatex24--
Tell Target Path Problems
Hello,
I have a site i am building, and i'm having some problems with something i sure somebody has an answer too....thanks ahead of time.
I have broken the site into seperate .SWF files (_level1) that load into a main "frame" .SWF (_level0).
I have buttons that target MC's when the user rolls over them. Everything works fine up to this point. The published SWF works just as suspected........BUT when the same SWF file loads into the main "frame" SWF the buttons doesn't work? I feel like i'm floating in twilight zone...:-0
I realize there must be some type of path issue, but i can't figure it out...If anyone could help, it would be greatly appreciated.
thanks
frenzy
Target Path Serious Troubles
ok, this is truly mind boggling so bear with me, i really hope i am just missing some small nugget, cause i have never had trouble like this in all the yeas i have been working with flash.
i have a movieClip onstage called bgPics in the first frame of the movieClip is has a stop action. i can put a button on the main timeline with bgPics and put the script
on (release) {
with (bgpics) {
play();
}
}
and the output window tells me that the specified object does not exist, i even used the "insert target path" button in the script window. however, when i copy and past the movieclip and button into a blank movie and test it, it works fine, without changing anything. it was working fine before, and now it is not. i am about to have to rebuild my whole movie to sort this out, i REALLY do not want to go to that extent.
Target Path Trouble
Hey people...
I was wondering if I could get an assist with this scroll problem I'm having.
I have a dynamic textfield called blog1
an up and a down button that is supposed to scroll the blog 1 textfield when they are rolled over. The buttons are contained in movie clips.
The blog1 textfield and the movie clips that contain my buttons are all in a movie clip called "chooseblog".
"Chooseblog" is in a movieclip called "blue_mc"
On an actions level in chooseblog I load the .txt file that populates blog1 with this command:
this.loadVariables("blog.txt") and I show the text using this command:
blog1 = blogtext.
The file is loading just fine into the textfield but the scroll isnt working.
In order to scroll I'm using:
on (rollOver) {
chooseblahg.blog1.scroll--;
}
and
on (rollOver) {
chooseblahg.blog1.scroll++;
}
I'm pretty sure I just have no idea what I'm doing with the target and reciver paths for this. Can someone please help?
How Do I Add Onto _root Target Path?
Hi there, this seems like an embarrasing question to ask...
I'm trying to use the " telltarget" action, but I forgot how to add onto the _root target path, since my movie clips don't show up under _root in the Insert Target Path window. Am I missing something obvious?? Pls help! thanks~
Target Path Trouble
We have a project here where we need to get a movie to play a certain frame, and it's not happenning. Here's the deal: In the main timeline, lies a movie clip ("argue") that advances frame-by-frame as the user types, revealing new images every keystroke. On certain frames within that movie clip, we want a different movie clip ("boil_mc"), in the main timeline, to gotoAndPlay certain frame labels. We know that we need to use _root.boil_mc but we just can't get any script to actually make this happen. Totally frustrating. Any help here would be greatly appreciated. Thanks.
twiggarts
Component Target Path
What would the target path be to a movie clip within the scrollPane component.
example: trying to target ScrollUpArrowUp movieClip in the scrollpane component. I have the linkage identifier set as "ScrollUpArrowUp" and I have give and instance name to my component. I'd like to set the color value of specific movie clips in the component dynamically. I can't seem to figure out what the target path would be. please help. Thanks!
|