Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

error message... 2

Status
Not open for further replies.

coldfused

Technical User
Jan 27, 2001
2,442
US
on (release) {
with (pillows) {
gotoAndPlay (2);
}
}


movie clip pillows...drag the movie clip onto the main time line..give it the instance name pillows..should be it..test movie i get this..

Error: A 'with' action failed because the specified object did not exist.

well i don't get it..the object clearly exist..the instance has been named..

whyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy...is it not working..

e.gif


virtuality2001@aol.com
 
ok old thanks for real man..but no i do have the instance named on this one,don't understand it..and do me a favor and post that fla so i can get it tomorrow..off to bed now..have a good night..
e.gif


virtuality2001@aol.com
 
that link to prohosting you gave me was dead..don't know..and the fla you shrunk down..see ya tomorrow..by the way i just sent out my first invoice for a logo i created for a lady in texas..pretty cool huh..first paying job..anyway have a good night..
e.gif


virtuality2001@aol.com
 
hi virt

check to make sure that your "pillows" mc is in the same frame number as your button or is in a layer which has overlapping frames with the layer containing the button.

dave davdesign@pinkzeppelin.com

^^^^^^^^^^^^^^^^^^^^^
 
dave..main timeline is all one frame..i have the buttons in a mc that alpha's from 0 to 100 into the timeline..a button inside the buttons mc calls the pillows mc with actions above..is that the problem..can a button inside a mc call another mc with the with command?.don't understand why it is not working..named the instance and everything..any ideas...and what do ytou mean by overlapping frames?.
e.gif


virtuality2001@aol.com
 
Ok! Downloaded!
Having diner in a few minutes, will have a look at it a little later!
Income tax return night! Got to be in by Monday night!
Sheeeeeeeeeeeeeeeeesh!

;-)
 
What's with using the with statement?
According to Macromedia (only info I could find - do you have another example using the with statement?), this is supposed to somewhat replace tellTarget, but I can't get it to work either!
Your .fla works fine if you use tellTarget, so why not use that?

on (release) {
tellTarget ("/pillows") {
gotoAndStop (2);
}
}

;-)
 
cool thanks....i am reducing everything now to 800/600..plus i am re-doing the pics in photoshop cutting the k's down from 30 to about 6..big difference..hopefully will change the movie remarkably..wonder why the with action won't work..will use tell target though..doesn't matter to me..thanks for looking at that for me..will have the size done in a few minutes..will you be around to check the download for me?
e.gif


virtuality2001@aol.com
 
i would if i could download from you..the second link you sent did not work as well..don't know why..
e.gif


virtuality2001@aol.com
 
i used it in another project i was working on..came from dave..but was not specified particularly for this one by him..was just something i used before in something else..
e.gif


virtuality2001@aol.com
 
explain to me the pre-loader..were was i going wrong..why four clips instead of two..
e.gif


virtuality2001@aol.com
 
If you're button is within the button mc and 'pillows' is on the main timeline, then you still have to target the pillow mc correctly when using the with statement:

on (release) {
with (_root.pillows) {
gotoandPlay(2);
}
}

.....assumes that "pillows" is on the main timeline

on (release) {
with (_parent) {
gotoandPlay(2);
}
}

.....could be used if the button mc was contained 'within' "pillows" mc.

on (release) {
with (_child) {
gotoandPlay(2);
}
}

.....could be used if the "pillows" mc was contained with the button mc.

on (release) {
with (_root.othermc.pillows) {
gotoandPlay(2);
}
}

.....could be used if the "pillows" mc was contained within another mc which was located on the main timeline.

However, you could simplify all the above into the following forms, respectively:


on (release) {
_root.pillows.play(2);
}


on (release) {
_parent.play(2);
}


on (release) {
_child.play(2);
}


on (release) {
_root.othermc.pillows.play(2);
}

OK? sorry for the delay in explaining, very very busy.

dave
davdesign@pinkzeppelin.com

^^^^^^^^^^^^^^^^^^^^^
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top