TellTarget Error
Hi, I dowloaded a check box type of form entry with this code when choosing a gender
on(release){ gotoAndPlay(2); // a check appeares on female box /:Sex = "female"; }
How do i reset it????
heres my code on reset button
on(release){ tellTarget(/Sex){ gotoAndStop(1); } } with this code i get an error target not found!!!Help me !!
FlashKit > Flash Help > Flash ActionScript
Posted on: 11-25-2001, 10:59 PM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Telltarget Error
well i made a button in the movie and i want to call a move clip in flash within from my library and im calling it from the name which i gave to the movie clip but when i click on the button which play that movie clip it gives this error
Target not found: Target="box" Base="_level0"
i dont know where im getting it wrong what im doing is
im using macromedia flash mx 6 and there i give the action on the button as tell him the target of the movie which is in my library like this
on (release) {
tellTarget ("box") {
}
}
pls help me here ... im waiting for you ppl response
Telltarget Error
well i made a button in the movie and i want to call a move clip in flash within from my library and im calling it from the name which i gave to the movie clip but when i click on the button which play that movie clip it gives this error
Target not found: Target="box" Base="_level0"
i dont know where im getting it wrong what im doing is
im using macromedia flash mx 6 and there i give the action on the button as tell him the target of the movie which is in my library like this
on (release) {
tellTarget ("box") {
}
}
pls help me here ... im waiting for you ppl response
I Got An Error When Writing Telltarget
Hi Im very new to flash and trying to learn the ropes of actionscript.
I read Kirupa's article on the telltarget command and have duplicated it in my own project i am working on. but when I click on the button contaion the tell target, I get an error which says:
Target not found: Target="/landmenu" Base="_level0"
Maybe one of you may know the answer to this.
Thanks Alex
TellTarget Error "target Not Found" When Trying To Play Movie
I'm trying to target a movie from a nested movie and just can't seem to get it right as I keep getting the "Target not found" error.
I've attached the fla and here's what I'm trying to do:
- in layer> NavigationMC: is the MC>"mainMC": inside which is the instance of MC> "webMC" with the instance name of "cat2".
When "cat2" is clicked it should play the mc instance name "aaa" which is the instance of mc "a" in layer 15.
Hope someone can rescue me.
Telltarget Inside A Telltarget
ok... inside a movie clip i tell another mc "text_mc" to go to and stop frame 10, and insde "text_mc" i also have a stop command... but for some friggen reason it goes to frame 10 then goes to the beginning of the movie clip. and nowhere is there other actions instructing "text_mc" to do anything different. is there a reason it goes, stops, and then goes back to the start???????
thanks,
hp
**Error** TempInit : Line 1, Column 5 : [Compiler] Error #1084: Syntax Error: Expecti
Hi,
I'm trying to convert my AS2 project to AS3. I got rid of all errors but one :
**Error** tempInit : Line 1, Column 5 : [Compiler] Error #1084: Syntax error: expecting identifier before 45.
var 45:MovieClip;
I got no idea what tempInit is, and no where do I declare a variable called 45...
After searching the web for hours I am tired and thus asking for your help.
Thank you,
Error #2044: Unhandled IoError:. Text=Error #2032: Stream Error. Cannot Be Caught
Error #2044: Unhandled ioError:. text=Error #2032: Stream Error. URL: file:///C|/LocalWorkspace/Simulation%20Platform/sim/assets/conversations/14/Maria/NPC_104.MRK
Hi all, I'm getting this error, and I damn well know why. Its because I'm trying to load a file that doesn't exist. But the thing is, I'm wrapping the code in a try catch, and I'm still getting the error. Also, I'm being told that the error is on this line:
ActionScript Code:
var loader:URLLoader = new URLLoader();
I need to do it this way because i know that some of the files I'm trying to load do not yet exist.
But what could possibly be wrong with this line? And either way, it should be caught by the try, catch. So, whats the problem?
ActionScript Code:
try {
var loader:URLLoader = new URLLoader();
loader.addEventListener(Event.COMPLETE, completeHandler);
loader.load(new URLRequest(_filename));
} catch (error:Error) {
trace("DATA: loadAnimData(): Error loading lip synch data.");
}
Error Message ? Error #2044: Unhandled IoError:. Text=Error #2032:
Can anyone give me any advise on why in safari 3 and firefox i am getting this error:
Error #2044: Unhandled ioError:. text=Error #2032: Stream Error. URL: http://www.nayomusic.com/music/1.mp3
URL: http://www.nayomusic.com/home
The error occurs when a any link is clicked on from within homepage
If anyone has got any idea why this error occurring then this would be much appreciated
Thanks
Jon
Error #2044: Unhandled IoError:. Text=Error #2032: Stream Error.
I'm trying to open a new centred window with a javascript in AS3, the code is working in the browser but when tested in flash I got this error:
"Error #2044: Unhandled ioError:. text=Error #2032: Stream Error. URL: javascript:void(newWin=window.open('http://www.actionscript.org','newWindow','width=500,heigh t=500,left=590,top=262.5'))"
This is the code that I'm using.
Code:
var resX:int = flash.system.Capabilities.screenResolutionX
var resY:int = flash.system.Capabilities.screenResolutionY
var winW:int = 500
var winH:int = 500
var winX:int = (resX/2) - (winW/2)
var winY:int = (resY/2) - (winY/2)
var jsCode:String = "javascript:void(newWin=window.open('http://www.actionscript.org'," + "'newWindow','width=" +winW + ",height=" + winH +"," +"left=" + winX +",top=" + (winY-winY/2) + "'))";
var urlLoader:URLLoader = new URLLoader()
urlLoader.load(new URLRequest(jsCode))
What is wrong becouse if you test a compiled .swf with this code in the browser a centred window opens.???
Error #2044: Unhandled IOErrorEvent:. Text=Error #2032: Stream Error.
Hi all,
I created a simple streaming mp3 player and it works perfectly fine locally, but when i upload it i get the below error. I only get this error if i go to refresh or leave the page. The flash itself loads but does not function.
Error #2044: Unhandled IOErrorEvent:. text=Error #2032: Stream Error.
at player.audio.actions::SoundLoader()
at player.audio.actions::Mp3Player()
at main_fla::MainTimeline/frame1()
The code that includes the url is below:
Code:
var songs:Array = ["believe.mp3", "newSong.mp3"];
the swf file is saved in the same directory as the mp3 files but i am still getting the stream error.
I have tried changing the path to a full url with no luck.
What is strange is that if i load the mp3 directly via the URL i have uploaded it to, and then go back to the player, it works. but only in firefox and IE. safari for windows does not work either way.
the class i used to load the url is below:
Code:
public function SoundLoader(songs:Array, player:Mp3Player)
{
songList = songs;
musicPlayer = player;
soundReq = new URLRequest(songList[songIndex]);
loader.load(soundReq);
loader.addEventListener(Event.COMPLETE, songLoaded);
}
Does anyone have any ideas? It's driving me nuts!
Much appreciated!
Error #2044: Unhandled IOErrorEvent:. Text=Error #2032: Stream Error
This is my code. (Even though this error occours, it doesnt affect my file in anyway, except when you look at it on a website a little error comes up (click it away) and everything is still exactly fine)
ANyway its annoying me now, so iw ont to get rid of it:
Heres my code:
ActionScript Code:
var s:Sound = new Sound(new URLRequest("Galactik_Football.mp3"));
s.play(0, 1000);
var ba:ByteArray = new ByteArray();
addEventListener(Event.ENTER_FRAME, loop);
var bmd:BitmapData = new BitmapData(700, 400, true, 0x000000);
var bm:Bitmap = new Bitmap(bmd);
addChild(bm);
var sp:Sprite = new Sprite();
addChild(sp);
var blur:BlurFilter = new BlurFilter(10,10,3);
var colorMatrix:ColorMatrixFilter = new ColorMatrixFilter([
1, 0, 0, 0, 0,
0, 1, 0, 0, 0,
0, 0, 2, 0, 0,
0, 0, 0, 0.99, 0
]);
function loop(e:Event):void
{
sp.graphics.clear();
sp.graphics.lineStyle(2, 0xFFFFFF);
sp.graphics.moveTo(-1, 150);
SoundMixer.computeSpectrum(ba);
for(var i:uint=0; i<256; i++)
{
var num:Number = -ba.readFloat()*200 + 150;
sp.graphics.lineTo(i*2.75, num*1.3);
}
bmd.draw(sp);
bmd.applyFilter(bmd,bmd.rect,new Point(),blur);
bmd.applyFilter(bmd,bmd.rect,new Point(),colorMatrix);
bmd.scroll(3,0);
}
Error #2044: Unhandled IOErrorEvent:. Text=Error #2032: Stream Error
Hi, i've written out some code that doesn't seem to want to work and im not too sure why. Basically i've imported a sound file in to flash and i have two buttons to play and pause. I've set up a custom class thing in the linkage properties of the sound file.
ActionScript Code:
var audio:Sound = new Sound(new URLRequest("Phil.mp3"));
var audioChannel:SoundChannel = audio.play();
pauseBtn.addEventListener(MouseEvent.MOUSE_UP, pauseSound);
playBtn.addEventListener(MouseEvent.MOUSE_UP, playSound);
function pauseSound(e:MouseEvent):void
{
audioChannel.stop();
}
function playSound(e:MouseEvent):void
{
audioChannel = audio.play(audioChannel.position);
}
When i try and run the code, it comes up with this message
"Error #2044: Unhandled IOErrorEvent:. text=Error #2032: Stream Error.
at Untitled_fla::MainTimeline/Untitled_fla::frame1()"
if anyone can give any assistance as to why this doesn't work - it'd be super.
Error #2044 Unhandled IoError:. Text=Error #2032: Stream Error. URL:
Hey Everyone
Can someone explain this to me. I am using Go Live CS2 to upload my files and I only get the Error (below) when I upload my files to the internet. I have one FLA file and inside the FLA I have a request to a .xml doc to load in my images. The images appear when I test the file in FLash, and when I test my published html page. But as soon as I upload the files to the internet I get the error below. The flash file runs correctly but the images do not appear.
My page www.ii-designs.com/maybe then click on the works tab and where the bottom gray lines is where the images are suppose to be
I get this error
Error #2044: Unhandled ioError:. text=Error #2032: Stream Error. URL: file:///private/var/tmp/folders.501/TemporaryItems/AdapterTemp/Server_1/public_html/maybe/data/photoImages.xml at _photoImages/frame1()
please help this is driving me crazy
Thanks
Ryan
Error #2044: Unhandled IOErrorEvent:. Text=Error #2038: File I/O Error.
Gday guys,
im making a lil flex app to upload images for guys on my forum.. problem is, it works fine in opera and firefox im told now also, but in internet explorer.. im getting this error..
"Error #2044: Unhandled IOErrorEvent:. text=Error #2038: File I/O Error.
at uploadd$iinit()
at _uploadd_mx_managers_SystemManager/create()
at mx.managers::SystemManager/::initializeTopLevelWindow()
at mx.managers::SystemManager/::docFrameHandler()"
this is my code? its str8 off the adobe site itself. from what i gather, its the way the scipt is handling the error itself? its terminating itself bcos of it.?
Code:
<mx:Script>
<![CDATA[
import mx.controls.Alert;
import flash.events.DataEvent;
public var fileRef:FileReference = new FileReference();
public function upload():void {
// listen for the file selected event
// listen for the upload complete event
fileRef.addEventListener(Event.SELECT, selectHandler);
fileRef.addEventListener(Event.COMPLETE, completeHandler);
fileRef.addEventListener(DataEvent.UPLOAD_COMPLETE_DATA , uploadCompleteHandler);
// browse for the file to upload
// when user selects a file the select handler is called
try {
var imageTypes:FileFilter = new FileFilter("Images (*.jpg, *.jpeg, *.gif, *.png)", "*.jpg; *.jpeg; *.gif; *.png");
var allTypes:Array = new Array(imageTypes);
var success:Boolean = fileRef.browse(allTypes);
}
catch(error:IOErrorEvent) {
trace("IOErrorEvent catch: " + error);
}
}
// when a file is selected you upload the file to the upload script on the server
public function selectHandler(event:Event):void {
var request:URLRequest = new URLRequest("upload.php")
try {
// upload file
fileRef.upload(request);
textarea1.text = "uploading " + fileRef.name + "...";
}
catch(error:IOErrorEvent) {
trace("IOErrorEvent catch: " + error);
}
}
// dispatched when file has been given to the server script. does not receive a response from the server
public function completeHandler(event:Event):void {
trace("file uploaded complete");
}
// dispatched when file has been uploaded to the server script and a response is returned from the server
// event.data contains the response returned by your server script
public function uploadCompleteHandler(event:DataEvent):void {
trace("uploaded... response from server:
" + String(event.data));
textarea1.text += event.data as String;
}
]]>
</mx:Script>
Also id like to be able to directly have the link traced into the message box itself, so people dont have to copy n paste.. is there an easy solution in the php code?
Heres the link, the upload is on the left of the main reply box.. heres a direct link to the forum, use
User: Ryann
Pass: temp
http://www.weride.net/ThrashedMinis/phpBB2/
, and press a reply or new topic sumwere to view it.. thanks for anyone taking a look..
Ryann.
Error #2044: Unhandled IoError:. Text=Error #2032: Stream Error.
Hi all I really need help. What I understand from this error is that Flash can't find the file which is a bit of confusing, because if I copy the code to other file it works. Is there something with that I have 2 urloaders in the code I load 2 different type of files one txt and one xml? This is the structure of my xml file
Code:
<xml>
<name>Some Name</name>
<address>Some Address</address>
<option>Some Option</option>
<other>Some Other</other>
<bank>Some Bank</bank>
<iban>12300 0000 0000 0000 0000 00</iban>
<bic>25500000</bic>
</xml>
Please help
Error #2044: Unhandled IoError:. Text=Error #2032: Stream Error.?
I get this message "Error #2044: Unhandled ioError:. text=Error #2032: Stream Error." when I try to get parameters from a .asmx doc that looks like this:
.net:
flUser.Movie = string.Format(@"{3}?UID={0}&strUserName={1}&strWsUrl......
In as3:
var oParam:Object = LoaderInfo(root.loaderInfo).parameters;
strUserID = oParam.UID;
I get the parameters written into a textfield but it doesn't work? Anyone know what's wrong? Could it have something to do with Sandbox issue? Do a miss an "import.display"?
TellTarget
I want to do the following:
I have a movie within the timeline of scene 1
I want the movie to play to the end, at the end, I want to add an action to advance in the timeline of scene 1 to the next movie in that timeline.
similar to using a button, however, I want it to be automatic for the user.
Any help would be great. thanks.
HELP WITH TELLTARGET
Hello everybody...
I am really new to this so please be so patient and help me with it.
I am using this code as an action on one of the buttons in my flash movie...
on (release) {
tellTarget ("/buttonaction") {
gotoAndPlay (1);
}
}
I created an animation (movie) and named it : "buttonaction"
But when I click on button its telling me:
Target not found: Target="/buttonaction" Base="_level0"
What the heck I am doing wrong people?
When I click on button shouldn't load the movie "buttonaction"?
What else do I have to do?
With Vs TellTarget
Has anyone got any ideas why this "tellTarget" works:
tellTarget (_parent) {
varVerifyViewed = false;
varAuthoriseViewed = false;
varReleaseViewed = false;
varRepairViewed = false;
varDeleteViewed = false;
varViewViewed = false;
}
but this "with" does not:
with (_parent) {
varVerifyViewed = false;
varAuthoriseViewed = false;
varReleaseViewed = false;
varRepairViewed = false;
varDeleteViewed = false;
varViewViewed = false;
}
According to macromedia, the "tellTarget" action has been depreciated in favour of the "with" action but I've found that in many cases "tellTarget" works and "with" doesn't - what gives??
TellTarget To Go And F$£& *@€...help Me Please
Is there anyway I can export a working flash 4 swf from flash 5 that has a TellTarget command in it? It works when I export it as a Flash 5 swf!!!!!!
Helpers will be rewarded with gold and happiness!
Dave
TellTarget Help
hey,
i have a MC that has a (STOP) in the first frame, and i try to run it from the main scene:
Code:
tellTarget ("/TopBorder1") {
_this.TopBorder1.gotoAndStop(2);
_this.TopBorder1.play();
}
it goes to the second frame and it just sits there... i also tried doing gotoAndPlay(2) but still no results...
what am i doing wrong?
thx
TellTarget - No More?
Hi all
The script below works sweatly ...
Code:
tellTarget(["_root.lives.man" + lives]){
gotoAndPlay(2);
}
But what would be the proper Flash 5 syntax?
TIA
/podenphant
2-way Telltarget
I need a way to do a two-way telltarget. That is, I have two objects and if I hover over either of them, they both display their "over" appearance.
A good example of what I'm looking for can be found at the following web site:
http://www.1800contacts.com/vision101/
A flash window will popup, skip the intro. Then click on chapter 1.2 from the menu on the left. Another menu will pop up, as well as a diagram on the right. If you hover over either the sub menu or the corresponding part of the diagram, they both highlight.
My dilemma (or lack or knowledge) is that TellTarget can only affect MovieClips, and "On (rollover)" only works on Buttons. So at first glance, it appears that it can only work one way. One needs to be a button, the other a MC.
Thanks,
Michael
TellTarget From Within MC's?
please help me!,
basically ive got a button inside a MC, thats inside another MC (level2?) and i want to target and control a MC on the 1st level but i traget it using this code...
on (rollOver) {
tellTarget (_root.teach_blur.nikecombutt) {
gotoAndPlay (2);
}
}
but when i test the movie it doesn't see it,
i get this error -
Target not found: Target="_root.teach_blur.nikecombutt" Base="_level0.teach_blur"
TellTarget?
Hi,
This might be silly. I have a movie that contains thumbnails (buttons) that call each an .swf movie, that is basically a big photo. This was done with loadMovie, etc.
Now I also need that the big images can be controlled by a forward and back arrows, so this arrows would call in a relative way, the next movie. I have named the swf files consecutive numbering...
http://studiocom.com/scott/work.html
Can I do this? Is it an action script? Does anyone here can help me out?
Thank you!
With() Vs. TellTarget()
OK, I am trying to leave TellTarget() in the dust but I am having trouble doing similar things with with() ...
With TellTarget(), I could use expressions. Like,
TellTarget("/throw/target" add number){
actions;
}
Using with, it seems all the examples I have seen do not use quotes. In fact, it seems to botch things up. In other words, doing:
with("_root.throw.target" add number)}
actions;
}
doesn't seem to work at all.
So my question is, how do I work variables in?
Help With Telltarget
Ok, I'll try to explain this as simply as possible and hopefully someone can tell me what I'm doing wrong.
I create a new movie. In the first frame I create a ball then hit Insert-Convert to Symbol - MovieClip
I name this movieclip "ball", create the animations, and set an actionscript at the end to send it back to frame 1, a simple looping animation.
Now, on the main movie (which only has the one frame containing the "ball" movie, I want to create a button that tells the "ball" movie to stop on a certain frame (in this instance frame 3), when the mouse goes Over the button, so I try:
on (rollOver) {
tellTarget ("ball") {
gotoAndStop (3);
}
}
No luck - I test the movie and I get the error:
Target not found: Target="ball" Base="_level0"
What am I doing wrong??
TellTarget
i am trying to do a tell target, but it will not work, my button is on the main timeline and then I also have my movie there that I want it to play also, only when i do a tell target it doesnot work properly....when i go to insert target path my movie clip is not listed there...why can anyone help me out please?????
by the way when i test the movie, it says target not found??????
[Edited by DeadManWalkin on 04-22-2002 at 08:22 PM]
**tellTarget Fun**
I'm sending high scores and names from a game to a database. Had problems sending them from Flash to ASP (despite using load variables etc), then I made a breakthrough when I was advised to add tellTarget ("/") to the Send button which I've done. Now I'm getting the name through to the database but not the score.
Not too hot on tellTarget - any advice on how to improve the above bit of code to get the score through too?
TellTarget
Is it possible, to use telltarget (or sth. similar) action to control an external (not loaded) .swf movie?
thx!
The New TellTarget()
Ive had people tell me that the tellTarget action is outdated. If this is true, which i believe becuase i cant even find it in normal mode with Flash mx, than what is the new action. Please someone help me out. Im sure there are a few, but whats the best way, and does it work in Flash 5 Player? Also wondering out of the blue if anyone knows the percentage of web users who have the flash 6 player. Is it alot? Should i still be designing for 5? Thanks again.
TellTarget Or What
i have a man MC walking, he has frames in him that make him look like he is walking, and when he gets to a certain point, he stays in the same place, and the ground starts to move.
this is what i have so far: this code is on the ground MC.
onClipEvent (load) {
if (man._x=250) {
this._x-=5;
}
}
I don't know what the problem is.
Please help me.
Also, if you can help me, when the man gets to the point and stops but the ground moves, i would like his frames to keep playing until i let go of the key.
With Vs TellTarget
FlashMX
Imagine 3 movieClips on the stage named ball1, ball2 and ball3.
For example, I want to hide them. I could write:
_root.ball1._visible = false;
_root.ball2._visible = false;
_root.ball3._visible = false;
But, what if, instead of three, I had fifty? (ball1 to ball50)
I tried to use
for (i=1; i<=3; i++) {
tellTarget ("_root.ball"+i) {
_visible = false;
}
}
and it does work.
But first, I had tried
for (i=1; i<=3; i++) {
with ("_root.ball"+i) {
_visible = false;
}
}
and this doesn't!!!
As "tellTarget" is deprecated, and "with" should be used instead, I can't understand what the problem is. Is "tellTarget" the only way to do this? Is there a different way suing something else? And what is behind of the failure of "with"?
TellTarget
allo allo.
Very basic problem, I think!
I have two movie clips on the main timeline, MC one(instance "birth") is in frame one(an intro animation) and as a stop action on the frame; the second MC(instance "rotate") is on frame 2. I have a button nested in MC one that I want to play MC two when it is pressed. Here is the current scripting:
on (release) {
tellTarget (_root.rotate) {
play ();
}
}
What happens is that MC one just plays again when I hit the button. I have tried the with action with gotoAndPlay as well.
Can you help please?
respect L
TellTarget
Hope someone can shed some light...
I have a back button in an MC on the main timeline, when I click on a button in this MC I want to go to another MC within an another MC.
The first MC to go back to has instance name 'navi' and the second MC within 'navi' has the instance name 'workingWithNavi2'
This is my code...
on (release) {
tellTarget ("_root.navi.workingWithNavi2") {
gotoAndPlay(1);
}
}
Of course it doesn't work and when testing the button in the movie I get this error:
Target not found: Target="_root.navi.workingWithNavi2" Base="_level0.instance20"
Any help most grateful!
TellTarget
hi everyone,
not run much on MX and its been a while since i got heavily into scripting...
just wondered what the new preference is for tellTarget and where can i find an index, of sorts, as to the new actions and updates. thanks.
_
by the way this is what i had for the flash5 a/s that i want to add a tellTarget to:
onClipEvent (load) {
this.clickX = 100;
this.clickY = 300;
this.clicked = false;
this.stopped = false;
this.friction = this.orgF=.8;
this.tension = this.orgT=.4;
this.scalar = 3;
this.orgX = this.xTarget=this.curX=this._x;
this.orgY = this.yTarget=this.curY=this._y;
this.boxWidth = 50;
this.boxHeight = 100;
this.left = this._x-boxWidth*.5;
this.right = this._x+boxWidth*.5;
this.top = this._y-boxHeight*.5;
this.bottom = this._y+boxHeight*.5;
}
setProperty("_root.un", _alpha, "0");
setProperty("_root.jburg", _alpha, "0");
setProperty("_root.competition", _alpha, "0");
setProperty("_root.man", _alpha, "0");
setProperty("_root.downloads", _alpha, "0");
setProperty("_root.box_office", _alpha, "0");
removeMovieClip("_root.un");
removeMovieClip("_root.jburg");
removeMovieClip("_root.competition");
removeMovieClip("_root.man");
removeMovieClip("_root.downloads");
removeMovieClip("_root.box_office");
}
onClipEvent (enterFrame) {
if (!clicked) {
curX = _root._xmouse;
curY = _root._ymouse;
if (curX>left && curX<right && curY>top && curY<bottom) {
xTarget = curX;
yTarget = curY;
friction = (friction>orgF) ? orgF : friction += .1;
tension = (tension>orgT) ? orgT : tension += .1;
} else {
friction = (friction<.2) ? .2 : friction -= .1;
tension = (tension<.2) ? .2 : tension -= .1;
if (count>move) {
xTarget = (Math.random()*boxWidth-(boxWidth*.5))+orgX;
YTarget = (Math.random()*boxHeight-(boxHeight*.5))+orgY;
move = Math.random()*100;
count = 0;
} else {
count++;
}
}
this.xDist = orgX-this._x;
this.yDist = orgY-this._y;
this.dist = Math.sqrt((xDist*xDist)+(yDist*yDist));
this._xscale = this._yscale=100+dist*scalar;
this._x += ax=(ax+(xTarget-this._x)*tension)*friction;
this._y += ay=(ay+(yTarget-this._y)*tension)*friction;
} else if (!stopped) {
this._xscale = this._yscale += (100-this._yscale)*friction;
this._x += ax=(ax+(this.clickX-this._x)*tension)*friction;
this._y += ay=(ay+(this.clickY-this._y)*tension)*friction;
if (Math.abs(ax)<.2 && Math.abs(ay)<.2) {
this.stopped = true;
}
} else {
continue;
}
}
onClipEvent (mouseUp) {
xm = _root._xmouse;
ym = _root._ymouse;
if (xm>left && xm<right && ym>top && ym<bottom) {
this.clicked = true;
}
}
-
cuse
TellTarget
If tellTarget is depreciated, what replace it?
In other words, how would I re-write this with out tellTarget?
Code:
// begin the movie loop that sends the slider upwards
on (press) {
tellTarget ("_root.up") {
gotoAndPlay (2);
}
}
// stop the movie loop that sends the slider upwards
on (release, releaseOutside) {
tellTarget ("_root.up") {
gotoAndStop (1);
}
}
TellTarget
hello and thank you for your time.
i have a button in a movie clip (movie is located in frame 4 of scene 1) that i want to, on release, take the viewer to frame 66 in another movie clip (new movie is located in frame 5 of scene 1). the following is not working as none of my other attempts...
on (release) {
tellTarget ("_root.mov_music") {
gotoAndPlay ("Scene 1", 66);
}
}
TellTarget
hello and thank you for your time.
i have a button in a movie clip (movie is located in frame 4 of scene 1) that i want to, on release, take the viewer to frame 66 in another movie clip (new movie is located in frame 5 of scene 1). the following is not working as none of my other attempts...
on (release) {
tellTarget ("_root.mov_music") {
gotoAndPlay ("Scene 1", 66);
}
}
Sorry My Bad... (Telltarget?)
Ok, I think I didn't explain myself well enough? I recently posted a thread and got a few responses that I didn't understand. So this is the scenario again:
I have 1 html page consisting of 2 frames (html pages) one is called mainFrame and the other is called leftFrame.
Also I have a swf plug-in in each frame:
mainFrame = uprizer.swf
leftFrame = left_side.swf
Hope this makes sense?
What I wanna do is hit a button in uprizer.swf movie (located in the mainFrame) and have the left_side.swf movie(located in the leftFrame) goto (ex.) frame 10 and play. Is this possible.
Thanks.....so confused!!!
Telltarget ('s)?
Can I have multiple telltargets? I want 5 different movie instances to goto 1 and stop.....do I have to make 5 different telltarget commands or can I do them all in one? Seperated by commas or something?
This is how it looks now (buttton action, release):
}
on (release) {
tellTarget ("_root.comp") {
gotoAndStop(1);
}
}
on (release) {
tellTarget ("_root.solu") {
gotoAndStop(1);
}
}
on (release) {
tellTarget ("_root.case") {
gotoAndStop(1);
}
}
on (release) {
tellTarget ("_root.contact") {
gotoAndStop(1);
}
}
I tried this...seperating with commas but then it's only the last telltarget command that works?
on (release) {
tellTarget ("_root.comp", "_root.solu", "_root.case", "_root.contact") {
gotoAndStop(1);
}
}
So only _root.contact would goto 1 and stop the rest would be ignored?
Thanks,
Mik
Telltarget Help, Please Help
Yo guys,
I am using a telltarget action on a button to control a movieclip but i am having problems. the movieclip is not on the main scene but not on the same clip as the button and the button is coming up with a message "Target cannot be found". The movieclip is one movie below the button.
It goes:
Scene 1 which contains a movie clip that contains another movie clip that contains the button. The movie clip i want to control in in the first move clip. I kno that if you put a / before the movieclip name in telltarget then it will control the movie clip on the main scene. Could anyone tell me how I can control this movie clip using telltarget without moving the button onto the same movie clip as the one that contains the movie clip i want to control.
Thanks alot!
JAM
TellTarget
since tellTarget isn't supposed to be used anymore with MX, what would I use to do the following:
tellTarget ("box"+x) {
gotoAndStop("Start");
}
TellTarget Or Something Else....
Ok....
I got a question, maybe it's difficult or maybe it's to simple to say...
I got a main movie wich contains out of two layers, in both layers is one frame.
In the top frame is the real movie.
In that movie I have a button, when the button is pressed i want it to start play a movie called login (it has a stop on frame one and a framelabel named start at frame 5)
But everything i try, it does not work, i have tried many different telltarget options and many other scripts but nothing works, i'm getting desperate...
I've tried the next codes allready:
on (release) {
_root.gotoAndPlay("start");
}
And this:
on (release) {
tellTarget ("login") {
gotoAndPlay (5);
}
}
And this:
on (release) {
tellTarget ("login") {
gotoAndPlay (start);
}
}
I also tried to put the movie on the _root of the movie and did this:
on (release) {
tellTarget ("_root.login") {
gotoAndPlay (5);
}
}
And of course the gotoAndPlay (start)....
I've tried a couple of others codes wich I can't remember at this time...
But NOTHING works...what am I doing wrong...plz help because I'm getting really frustrated even when I'm typing this...
Telltarget
in scene 1, i have a movieclip called members,
in members i have some buttons and another movieclip called x9pres
ive assigned this code to one of the buttons
on (release) {
tellTarget ("x9pres") {
gotoAndPlay (25);
}
}
but when i run the movie and press the button
i get the error message
Target not found: Target="x9pres" Base="_level0.instance27"
why isnt it working
TellTarget Vs. With
I need some help making a dynamic function using a "With" statement.
I've got the following function that operates my dropdown menus:
Button Script for "Portfolio" Button:
on(Release) {
MenuDOWN("dd_portfolio");
}
MenuDOWN Function that sets the menu in motion:
function MenuDOWN(menuname) {
tellTarget(menuname) {
gotoandPlay("Down");
}
}
What I really want is to convert the "TellTarget" part into a "With" statement - something like:
function MenuDOWN(menuname) {
with(menuname) {
gotoandPlay("Down");
}
}
However, when I do this, nothing happens! What would be the proper syntax/code to get this working?
Thanks!
Telltarget?
Hi Guys,
Hope someone can help!
I have a movie called controller - presently i have code which point back and plays different sections of another movie called "main".
This is the code i have:
tellTarget ("/main") {
gotoAndPlay(10);
}
stop();
I also need to play a section in the actual Scene 1 - so not a movie, a position in a scene - how can i do this? I can't use telltarget can i as this is only for movies.
Any help would be greatly appreciated!
Using Telltarget
i have just figured out how to use telltarget (in flash mx) and it works fine... only if i have the mc in the root timeline.
Is there a way to control a movie clip which is within a button which is on the main timeline.
flash help tells you to put a level in (_level0) instead of _root but i have no idea what level my button is on.
do you have to define which level the button is on first?
sorry i am not very good at explaining my problems.... any help would be much appreciated.
Telltarget?
Hi guys! A little problem!
I have a button, and when the mouse is push and release i get a text showing with this script:
on(release) {
tellTarget("over") {
gotoAndPlay(2);
}
}
and its working!
But if i ad that script to a button, "in a movie", it dont work. I get this:
Target not found: Target="over" Base="_level0.buttons"
please help me?
|