Flash CS3 Compiler in Strict Mode errors out 1120: Access of undefined property
Hi,
I am following a code example in a book and have the final fla and as files, so I know the project works when fully coded.
This is my problem:
In the book, it tells me I can test the movie to make sure that it is working so far. When I do that, I get the error 1120: Access of undefined property.
The "property" is a component instance. If I take the example completed code and remove everything up to the point I am at, I receive the same errors, so I know it's not a spelling/syntax mistake.
I have a feeling it is the Compiler in Strict Mode. But, when I change it to Standard Mode, then I get error 5001: The name of package 'com.foundastionAS3.ch12' does not reflect the location of this file. etc.
So, in the end, I feel if I can't check my code until everything is completely finished, how do I check it as I am working?
Can someone help?
Thanks.
note:: attached is a file of the compiler when it gives me multiple 1120s.
It's funny. I checked the code from the book, it does not have it imported, but it still works. When I complete the code without the import, it works.
When I do add the import (which is the first thing I did when the errors were thrown) while building the code, it removes that error, but the same 1120's are there. I checked the properties of the components to make sure they are runtime, and also the properties of the actionscript is runtime, so what is it?
All of the more complex examples in the book are throwing these errors while building the code. The problem is, how do I check my code while creating it... That's why when I found this post "http://forums.adobe.com/message/2844566#2844566" I replied.
Similar Messages
-
Error Code 1120 access of undefined property...help please
I am fairly new to Flash - I have CS4 and am not sure if I am in the right place to get help.
I am trying to build a click through gallery with small buttons that you click on and it switches the larger image out as you click through.
I copied over a gallery I had successfully built with 10 images. The new gallery has 20 images.
Basically the movie just runs continuously without being able to click on the thumbnails.
I am getting the following compiler errors
Scene1 Layer 'actions', Frame 1, Line 42 1120:Access of undefined property btn11_btn Source - btn11_btn.addEventListener(MouseEvent.CLICK, showimage11);
I get this for image 11 through 20
The following is my code
stop();
btn1_btn.addEventListener(MouseEvent.MOUSE_OVER, showimage1);
function showimage1(event:MouseEvent):void {
gotoAndPlay("label1");
btn2_btn.addEventListener(MouseEvent.CLICK, showimage2);
function showimage2(event:MouseEvent):void {
gotoAndPlay("label2");
btn3_btn.addEventListener(MouseEvent.CLICK, showimage3);
function showimage3(event:MouseEvent):void {
gotoAndPlay("label3");
btn4_btn.addEventListener(MouseEvent.CLICK, showimage4);
function showimage4(event:MouseEvent):void {
gotoAndPlay("label4");
btn5_btn.addEventListener(MouseEvent.CLICK, showimage5);
function showimage5(event:MouseEvent):void {
gotoAndPlay("label5");
btn6_btn.addEventListener(MouseEvent.CLICK, showimage6);
function showimage6(event:MouseEvent):void {
gotoAndPlay("label6");
btn7_btn.addEventListener(MouseEvent.CLICK, showimage7);
function showimage7(event:MouseEvent):void {
gotoAndPlay("label7");
btn8_btn.addEventListener(MouseEvent.CLICK, showimage8);
function showimage8(event:MouseEvent):void {
gotoAndPlay("label8");
btn9_btn.addEventListener(MouseEvent.CLICK, showimage9);
function showimage9(event:MouseEvent):void {
gotoAndPlay("label9");
btn10_btn.addEventListener(MouseEvent.CLICK, showimage10);
function showimage10(event:MouseEvent):void {
gotoAndPlay("label10");
btn11_btn.addEventListener(MouseEvent.CLICK, showimage11);
function showimage11(event:MouseEvent):void {
gotoAndPlay("label11");
btn12_btn.addEventListener(MouseEvent.CLICK, showimage12);
function showimage12(event:MouseEvent):void {
gotoAndPlay("label12");
btn13_btn.addEventListener(MouseEvent.CLICK, showimage13);
function showimage13(event:MouseEvent):void {
gotoAndPlay("label31");
btn14_btn.addEventListener(MouseEvent.CLICK, showimage14);
function showimage14(event:MouseEvent):void {
gotoAndPlay("label14");
btn15_btn.addEventListener(MouseEvent.CLICK, showimage15);
function showimage15(event:MouseEvent):void {
gotoAndPlay("label15");
btn16_btn.addEventListener(MouseEvent.CLICK, showimage16);
function showimage16(event:MouseEvent):void {
gotoAndPlay("label16");
btn17_btn.addEventListener(MouseEvent.CLICK, showimage17);
function showimage17(event:MouseEvent):void {
gotoAndPlay("label17");
btn18_btn.addEventListener(MouseEvent.CLICK, showimage18);
function showimage18(event:MouseEvent):void {
gotoAndPlay("label18");
btn19_btn.addEventListener(MouseEvent.CLICK, showimage19);
function showimage19(event:MouseEvent):void {
gotoAndPlay("label19");
btn20_btn.addEventListener(MouseEvent.CLICK, showimage20);
function showimage20(event:MouseEvent):void {
gotoAndPlay("label20");
Any advice would be great
I dont know if I have to start from scratch - which would be a pain for sure
ThanksI feel foolish - I solved my own problem!
I figured out that I had not given buttons 11 - 20 an instance name
Once I did that - voila problem solved
Sorry for bothering you all. -
Need help with error msg 1120: Access of undefined property
I am not a coder, so I need coding help. Any help would be greatly appreciated.
I'm doing a Flash banner that has clickTAG instructions from Google. The code they said to put on the button is:
ClickTAG parameter code for ActionScript 3:
import flash.events.MouseEvent;
import flash.net.URLRequest;
someButton_or_displayObject_to_receive_mouseClick.addEventListener(
MouseEvent.CLICK,
function(event: MouseEvent) : void {
flash.net.navigateToURL(new URLRequest( root.loaderInfo.parameters.clickTAG), "_blank");
Replace someButton_or_displayObject_to_receive_mouseClick with the actual name of button that will receive the click.
Note that it's not necessary to specify the destination URL for the ad anywhere in this code; this is taken care of through the usage of clickTAG. Also, depending on the structure of your Flash ad, it may be necessary to prepend "_root." or "_level0." to "clickTAG" above, resulting in "_root.clickTAG" or "_level0.clickTAG". It is strongly recommended to upload the ad into your account and verify that the ad is behaving normally prior to it going live, allowing time for any necessary changes.
And this is the code I put in (btnClickTag is the name of my button):
import flash.events.MouseEvent;
import flash.net.URLRequest;
btnClickTag.addEventListener(
MouseEvent.CLICK,
function(event: MouseEvent) : void {
flash.net.navigateToURL(new URLRequest( root.loaderInfo.parameters.clickTAG), "_blank");
and this is the error I got:
Scene1, Layer 'actions', Frame 1, 1120: Access of undefined property btnClickTag. btnClickTag.addEventListener(First, make sure you have assigned that name to the button via the properties panel, then, be sure to adjust the code so that it is not spread out over several lines... normally it needs to be on one line. You should not nest the function in the event listener either, so try the following (no need for the import statements)...
btnClickTag.addEventListener(MouseEvent.CLICK, tagClick);
function tagClick(event:MouseEvent):void {
navigateToURL(new URLRequest( root.loaderInfo.parameters.clickTAG), "_blank"); -
GotoAndStop error 1120:Access of undefined property on MC's loaded from .swc
I am trying to tell a MovieClip added from a .swc library to do simple things like "gotoAndStop()" and all I get is a red X error message 1120: Access of undefined property whenever I do.
I can add the MovieClip to the application and position it without any problem. I cannot make it do anything. In my Flash IDE library the CustomCheckBox()'s base class is
import flash.display.MovieClip;
import mx.flash.UIMovieClip;
// **** TRIED EACH IMPORT STATEMENT AND BOTH**** (NEITHER of which work at all).
private var _checkPlaylist:MovieClip = new CustomCheckBox();
private var _checkClassroom:MovieClip = new CustomCheckBox();
_checkPlaylist.gotoAndStop(1);
_checkClassroom.gotoAndStop(2);
I can declare my CustomCheckBox as a MovieClip and in my Symbol Properties panel it's base class is — mx.flash.UIMovieClip — and it shows up just fine. I just can't make the thing stop or do anything else a MovieClip is supposed to be able to do.
One of the other developers here who is way more advanced than I am also cannot get a ******* movie clip to stop either.
I am new to Flash Builder — yet have been using Flash and AS3 for years and I have never had a more difficult time getting up to speed with a new technology than Flex / Flash Builder has become for me. I feel stupid that I keep spending days on end just trying to figure out basic things like this.I keep answering my own questions. When I added a gotoAndStop command to the referenced MC inside of the init function it stopped throwing that error at me. I was trying to initialize the button states after declaring them as MC variables, but the compiler did not like that.
-
Error, please help? 1120: Access of undefined property event
I have ActionScript 3 in two frames of my piece. In this 2nd frame, I get an error: "1120: Access of undefined property event" for "myXML=XML(event.target.data);" Can anyone help? I am not sure how to fix this.
var myloader:URLLoader=new URLLoader();
myloader.dataFormat=URLLoaderDataFormat.VARIABLES;
myloader.addEventListener(Event.COMPLETE, guestBookWriteFunc);
function guestBookWriteFunc(e:Event):void{
var loader:URLLoader=URLLoader(e.target);
var vars:URLVariables=new URLVariables(loader.data);
var url:String="makexml.asp";
var sendloader:URLLoader=new URLLoader();
var request:URLRequest=new URLRequest(url);
trace("xml page created");
var urlRequest:URLRequest=new URLRequest("makexml.asp");
var urlLoader:URLLoader=new URLLoader();
urlLoader.addEventListener(Event.COMPLETE, fileLoaded);
urlLoader.load(urlRequest);
//Setting up the XML
var myXML:XML=new XML();
myXML.ignoreWhitespace=true;
var xmlList:XMLList;
//Setting up the data holder Arrays
var theUserName:Array=new Array();
var theUserEmail:Array=new Array();
var theUserComment:Array=new Array();
function fileLoaded(e:Event):void{
myXML=XML(event.target.data);
xmlList=myXML.children();
for (var i:int=0; i<xmlList.length(); i++){
var xmlName:String=xmlList[i].username;
var xmlEmail:String=xmlList[i].useremail;
var xmlComment:String=xmlList[i].usercomment;
theUserName.push(xmlName);
theUserEmail.push(xmlEmail);
theUserComment.push(xmlComment);
if(i==xmlList.length()-1){
updateText();
//Populating the text field to display messages
var maximumMessages:Number=5;
var currentMessages:Number=0;
function updateText(){
guestText.htmlText="";
for (var i=currentMessages; i<maximumMessages; i++){
guestText.htmlText+=("<b><u>Name:</u></b>" + theUserName[i]);
guestText.htmlText+=("<b><u>Email:</u></b>" + theUserEmail[i]);
guestText.htmlText+=("<b><u>Comment:</u></b>" + theUserComment[i]);
guestText.htmlText+=(".................................");
currentMessages=i;
myScroller.scrollTarget=guestText;You are more likely to get a reply if you ask in the Flash or ActionScript forum.
-
Scene 1, Layer 'actions', Frame 1, Line 47, Column 2
1120: Access of undefined property instrument_txt.
this is my problem. any ideas. thanksI did try this and nothing happened, same error codes. The code works fine from CS5 and CS6 Flash versions. The animation runs well, the text displays where it should in the instrument_txt frame. It is when I try this in Flash CC that it creates the code error. here was an error that came up regarding text problems, something with FLT text converted to another text (I am not sure of the name of the text-type and the "FLT" I am not sure of either).
thanks -
FB 4.5: Flash Professinal Project - Access to undefined property
I have a "Flash Professinal Project" in my Flash Builder. So, I have a FLA file with the scene and some symbols on it. And a pack of AS files with code.
The trouble is with symbols in FLA file.
For example, I have a movieclip with instance name "dlg" on my scene.
And when I try to access this movieclip like "dlg.gotoAndStop(2)" in some code, the Flash Builder 4.5 underlines "dlg" and puts the orange question mark to the left saying "Access to undefined property dlg". Of course, FB doesn't know about existance of this movieclip. But 4.0 version didn't underline it orange.
Project compiles ok, but some code parts looks very annoying.
Half of my code looks like this:
The additional uncomfortable thing is that when I use FB4 and type dlg. , it opens the autocomplete dialog assuming that "dlg" is a MovieClip by default. FB4.5 doesn't do autocomplete even after I type "dlg.gotoAndS" and press "Ctrl+Space".
So, is there any way to get rid of this annoying orange question makrs? Maybe, there's a way to describe such instances specially for FB so it can find out their existance? Or just return the way it was in 4.0 ?Ok, I have finally found my issue. the "switch" syntax must have changed somewhere between Flex Builder 3 and Flash Builder 4.5.1
This used to work in Flex Builder 3. The 'case "t", "tr"' will cause code completion to stop working, and also give the "?" warnings all over the souce. Jusr use a separate line for each "case" fixed the issue.
This has been extremely frustrating for me, I don't have a half a day to google all over with no luck. I wound up making a copy of the project and commenting out most of the code a bit at a time to find this. Sure hope this helps someone else out there!
<?xml version="1.0" encoding="utf-8"?>
<s:WindowedApplication xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:mx="library://ns.adobe.com/flex/mx"
invoke="onInvoke(event);" >
<fx:Script>
<![CDATA[
private function onInvoke(invokeEvent:flash.events.InvokeEvent):void {
var s:String;
try {
switch ( s.toLowerCase() )
case "t", "tr":
case "trace":
s = "trace";
break;
case "l":
case "log":
s = "log";
break;
default:
s = "?";
break;
catch ( err:Error ) {
s = "error";
]]>
</fx:Script>
<fx:Declarations>
</fx:Declarations>
</s:WindowedApplication> -
CS4 Flash Access of undefined property ...
cs4 flash don't compile cs3 code.
I get 35 errors Access of undefined property and Attempted
access of inaccessible property.
What difference in lang?
Where I can read about?I have found difference.
I used nondocumented feature, place some class definitions
under public class
package{
public class Main{
var a:A= new A;
var b:B= new B;
class A{
class B{ -
I'm using amxmlc to build a SWF from an MXML source code file. I'm passing -swf-version=13 to amxmlc.
In the MXML source, I have the following line:
<s:TextArea id="inputTextArea" width="100%" height="100" fontSize="28" borderColor="#000000" skinClass="spark.skins.mobile.TextInputSkin" />
I get these errors when running the amxmlc command:
...App.mxml(428): Error: Access of undefined property TextInputSkin.
<s:TextArea id="inputTextArea" width="100%" height="100" fontSize="28" borderColor="#000000" skinClass="spark.skins.mobile.TextInputSkin" />
...App.mxml(428): Error: Definition spark.skins.mobile:TextInputSkin could not be found.
<s:TextArea id="inputTextArea" width="100%" height="100" fontSize="28" borderColor="#000000" skinClass="spark.skins.mobile.TextInputSkin" />
Why am I getting these errors? I need to be able to use the spark.skins.mobile.TextInputSkin in order to have use of the soft keyboard on iOS devices.you need the classes mentioned after 'Definition" in the lines below and they should be place in de/alex_uhlmann/animationpackage subdirectory of your default directory.
Symbol 'nms_new_all.flv', Layer 'Layer 6', Frame 1, Line 2, Column 50
1172: Definition de.alex_uhlmann.animationpackage.animation could not be found.
Symbol 'nms_new_all.flv', Layer 'Layer 6', Frame 1, Line 3, Column 48
1172: Definition de.alex_uhlmann.animationpackage.drawing could not be found.
Symbol 'nms_new_all.flv', Layer 'Layer 6', Frame 1, Line 4, Column 48
1172: Definition de.alex_uhlmann.animationpackage.utility could not be found.
you also need penner's easing class in com/robertpanner -
HTTPService error: Access of undefined property ...
For some reason, I get the error message "Access of undefined
property" for each element in the request ... and I only get the
error messages if the HTTPService is placed in an MXML Component
that is referenced from the main application. I don't get the error
messages, however, if the service is placed in the main
application.
What am i missing?
Here's my httpservice code:
<mx:HTTPService id="userRequest" url="
http://www.pixeldose.com/guestbook/comments.php"
useProxy="false" method="POST">
<mx:request xmlns="">
<username>{username.text}</username>
<emailaddress>{emailaddress.text}</emailaddress>
<website>{website.text}</website>
<comments>{comments.text}</comments>
</mx:request>
</mx:HTTPService>
Thanks in advance.
pixelflipI'm guessing that username, emailaddress, website and
comments are all variables in your application - so they won't be
in scope when you're in your MXML component.
You could
a) make all of these properties in your component and bind
them in your applciation.
b) make a single object with all these properties, make that
object a public property in your component and bind the object from
your application.
c) make a bindable variable in your component called
myApplication = Application.application as Application, and add
that to the front of your bindings.
d) make an public XML property in your component and define
the XML literal in your application.
e) put the HTTPService in your application.
Tim -
Flash cs3 and php problem (system error)
Hi All,
Been checking out a free utility, called Tell A Friend - followed the instructions to a t but still getting system error.
Here is the php code:
<?php
$to = ($_POST['friend']);
$link = ($_POST['link']);
$subject = "Tell a friend";
$message = "Your friend ";
$message .= $_POST['name'] . " wants advice you the following link: ".$link;
$headers = "My WebSite Name";
if(@mail($to, $subject, $message, $headers))
echo "answer=ok";
else
echo "answer=error";
?>
The main swf has a main.as attached:
* Flash Tell A Friend
* http://www.FlepStudio.org
* Author: Filippo Lughi
* version 1.0
package
import flash.display.*;
import flash.events.*;
import flash.utils.*;
import flash.external.*;
import flash.net.*;
public class main extends MovieClip
private const PHP_URL:String="sendMail.php";
private var checker:CheckEmail;
private var timer:Timer;
public function main()
addEventListener(Event.ADDED_TO_STAGE,init);
private function init(evt:Event):void
removeEventListener(Event.ADDED_TO_STAGE,init);
stage.frameRate=31;
checker= new CheckEmail();
addInputListener();
addSendListener();
private function addInputListener():void
clip_mc.name_txt.background=true;
clip_mc.name_txt.backgroundColor=0x999999;
clip_mc.name_txt.addEventListener(FocusEvent.FOCUS_IN,onFocusIn);
clip_mc.name_txt.addEventListener(FocusEvent.FOCUS_OUT,onFocusOut);
clip_mc.email_txt.background=true;
clip_mc.email_txt.backgroundColor=0x999999;
clip_mc.email_txt.addEventListener(FocusEvent.FOCUS_IN,onFocusIn);
clip_mc.email_txt.addEventListener(FocusEvent.FOCUS_OUT,onFocusOut);
private function onFocusIn(evt:Event):void
evt.target.background=true;
evt.target.backgroundColor=0xFFFFFF;
private function onFocusOut(evt:Event):void
evt.target.backgroundColor=0x999999;
private function addSendListener():void
clip_mc.send_mc.mouseChildren=false;
clip_mc.send_mc.buttonMode=true;
clip_mc.send_mc.addEventListener(MouseEvent.MOUSE_DOWN,onSendDown);
private function onSendDown(evt:MouseEvent):void
if(clip_mc.name_txt.text!="")
if(checker.initCheck(clip_mc.email_txt.text))
sendEmail();
else
displayPhrase("Invalid Email");
else
displayPhrase("Invalid name");
private function sendEmail():void
clip_mc.send_mc.mouseEnabled=false;
var variables:URLVariables=new URLVariables();
variables.name=clip_mc.name_txt.text;
variables.friend=clip_mc.email_txt.text;
variables.link=ExternalInterface.call('window.location.href.toString');
var request:URLRequest=new URLRequest();
request.url=PHP_URL;
request.method=URLRequestMethod.POST;
request.data=variables;
var loader:URLLoader=new URLLoader();
loader.dataFormat=URLLoaderDataFormat.VARIABLES;
loader.addEventListener(Event.COMPLETE,onMessageSent);
try
loader.load(request);
catch (error:Error)
trace('Unable to load the document.');
private function onMessageSent(evt:Event):void
var vars:URLVariables=new URLVariables(evt.target.data);
if(vars.answer=='ok')
displayPhrase("Message Sent!");
else
displayPhrase("System Error!");
clip_mc.send_mc.mouseEnabled=true;
clip_mc.name_txt.text="";
clip_mc.email_txt.text="";
private function displayPhrase(s:String):void
clip_mc.display_txt.text=s;
resetPhrase();
private function resetPhrase():void
timer=new Timer(1500,1);
timer.addEventListener(TimerEvent.TIMER,hidePhrase);
timer.start();
private function hidePhrase(evt:TimerEvent):void
clip_mc.display_txt.text="";
Any help appreciated. This is a great viral marketing tool, when it ever works
Kind Regards,
Boxing BoomNever seen such an error, but if it's in the status bar of the browser then it shouldn't be Flash problem. You can check what's happening in your swf by creating a dynamic text field and setting it's text in every major action, that is: requesting PHP and getting back response, to what's just happened.
So, on the Flash side you can see whether the browser error stops the PHP script and immobilizes further actions.
What I'd do is create a new Flash file and PHP file and just send 1 variable to PHP, change it somehow and send it back to Flash and print it in a text field. That way you can check whether it's the method you're using to request PHP or just PHP or something else. Step by step adding complexity and checking on which of these steps the error occurs.
I wish you good luck.
Ps. It's probably a very rookie problem, we just don't know the source. -
Compile Apps schema got errored out FAILED: file adinvset.pls on worker 1
Hi All,
While compiling the apps schema through adadmin i got the below error message
FAILED: file adinvset.pls on worker 1.
ATTENTION: Please fix the above failed worker(s) so the manager can continue.
i checked the worker log file below is the error message from worker log file:
Time when worker started job: Wed Mar 24 2010 18:11:45
Start time for file is: Wed Mar 24 2010 18:11:45
sqlplus -s APPS/***** @/u04/appldev/devappl/ad/11.5.0/admin/sql/adinvset.pls &systempwd 16 0 FALSE FALSE
Arguments are:
SYSTEM_password = *****, Total_workers = 16
Logical_worker_num = 0, Is_incremental = FALSE
Load_without_compile = FALSE
ERROR:
ORA-01017: invalid username/password; logon denied
but we did not changed the apps password,i am able to connect both apps and system at sqlplus with out any issue,before running the adadmin all environment variables are set.
Please advice,Hi,
for password managment policy for the sys and system users for auditing purpose.
So we can not put the restriction for the sys and system users passwords containd atleast one alphabit,one number and one special charecter?You cannot, and according to the MOS document there is no workaround. You can simply change the system and sys passwords for now (with no special characters), and apply the patch then change the passwords back.
You could also log a SR to confirm with Oracle support if there are any workaround which is not published for public access.
Regards,
Hussein -
Hello,
I am running Application using XP mode and Virtual PC on Windows 7. I have 8 GB RAM and more than 300 GB free disk space. When I launch application in XP, I receive following error
Required configuration:
- Windows must be configured in mode 800x600 minimum
- Windows must be configured in mode 'true colors'.
My screen resolution is 1024
× 768
and I do not see any other options to resolve this problem.
Any guidance is greatly appreciated.
GaneshThis is a thread that discusses your problem.
https://social.technet.microsoft.com/Forums/windows/en-US/12a17fa5-ddab-4480-8973-1a13bfb2e8fd/need-more-than-16bit-color-depth-on-windows-xp-mode?forum=w7itprovirt
Your app is probably calling for 32-bit color, and XP Mode with
integration features doesn't support that. There's 3 ways around it.
one, is to enable remote desktop in XP Mode and connect to the VM with
remote desktop.
2nd is to turn off the integration features and then you can set the XP
Mode desktop to 1024x7687 and 32-bit color
and 3rd, if you app supports 24-bit color, there's a registry hack to do
it. It's in the thread I posted above.
Bob Comer -
Flash 8 compiler throwing an JSFL error when action scrit code increased
Hi All,
I am facing problm when i publish FLA file in macro media flash 8. It showing an JSFL error.
Anyonw know why it shows jsfl error and how can i solve this issue.
Thanks in Advance
Regards
Subba ReddyHi all
by doing some research and development, i found macro media flash 8 throwing an error in Action Script 2.0 when it exceeds code size limt. does anyone how to solve this.
Thanks in Advance
Regards
Subba Reddy -
Error 1120 in Flash CS3...Access of Undefined Property.
PLEASE HELP!!
I am new at Flash, but am getting the hang of it pretty quickly.
So far I've got a nice animation of an intro going, which is made up of 90 frames.
At the 90th frame I put a (stop) action...test it and it stops as it's supposed to.
I add another layer for other actions and, following code almost verbatum from a website, I declare 3 buttons, and give them functions.
Code shown below:
arch_btn.addEventListener(MouseEvent.CLICK, archPageClick);
studio_btn.addEventListener(MouseEvent.CLICK, studioPageClick);
personal_btn.addEventListener(MouseEvent.CLICK, personalPageClick);
function archPageClick(e:MouseEvent):void
gotoAndStop("Architecture");
function studioPageClick(event:MouseEvent):void
gotoAndStop("Studio");
function personalPageClick(event:MouseEvent):void
gotoAndStop("Personal");
I have checked other sites for the error (1120). From what I get from them, is that my buttons are not named correctly or the Instance names do no correlate to the buttons in the actions...Well this is not correct. I have double and triple checked the instance names and they are correct. They are exactly as listed above. Here is a screen shot of my Architecture button...
As you can see the instance name of the Architecture button is "arch_btn". Same as in the action code. I don't understand why I'm getting this error!! I get it for all 3 of the buttons btw.
***ALSO...after I add this layer of actions for my buttons, the stop action on the other layer stops working. The movie play right through frame 90 now...After I delete the layer with the button actions, the stop action layer works again...Weird???
If anyone could help it would be greatly appreciated!
Thank you.
Message was edited by: mmellonphotographyWhen you have coding issues, files will not usually play correctly, so once you fix the coding issue it should play fine again.
Make sure you have assigned the instance names to the buttons in all keyframes, not just the ones in frame 90. If you didn't name them in frame 75, that lack of a name will be inherited in frame 90.
Maybe you are looking for
-
Os 10.4.4 combo update
I am trying to fix a conflict between QT 7 and Premiere 6.5. I downloaded the 10.4.4 combo update from the apple website because I am trying to follow someone else's set up where he reports no problems. The update is 'not recognised' by my computer.
-
Every time I close Firefox and try to restart it my computer leaves a message that I still have Firefox running and that it is unresponsive and needs to be closed. The problem is that there isn't a still-running Firefox to be found, consequently it i
-
This is my first post in this forum regarding query tuning, so my sincere apologies in advance if I have: 1) not included sufficient information, 2) included too much information, 3) not posted to the correct forum I read through Randolf Geist's web
-
In Reader 9 there was a pdf optimizer panel that you could check off to have the form fields flattened. Is there a way to do this in Reader X, not Pro but Reader X?
-
Photos App and images that have no place data
I am considering moving to the Photos App from iPhoto, but I have a large number of old photos and documents that have no location data. Most were scanned several years ago, such as genealogy records, birth certificates, etc. How does Photos handle t