1009 error that I can't understand...
I have a video player with commands that I exported as swf (dialogue). I'm trying to get that video player to open in an another fla (holder.fla) when a certain button is clicked. The problem is when we click the button I get an error #1009 that I can't understand:
TypeError: Error #1009: Cannot access a property or method of a null object reference. at 3_fla::main_mc_1/initVideoPlayer() at 3_fla::main_mc_1/frame1()
initVideoPlayer() is the dialogue function that implements the player controls:
function initVideoPlayer():void { // hide buttons mcVideoControls.btnUnmute.visible = false; mcVideoControls.btnPause.visible = false; // set the progress/preload fill width to 1 mcVideoControls.mcProgressFill.mcFillRed.width = 1; mcVideoControls.mcProgressFill.mcFillGrey.width = 1; // add global event listener when mouse is released stage.addEventListener( MouseEvent.MOUSE_UP, mouseReleased); // add event listeners to all buttons mcVideoControls.btnPause.addEventListener(MouseEvent.CLICK, pauseClicked); mcVideoControls.btnPlay.addEventListener(MouseEvent.CLICK, playClicked); mcVideoControls.btnStop.addEventListener(MouseEvent.CLICK, stopClicked); mcVideoControls.btnMute.addEventListener(MouseEvent.CLICK, muteClicked); mcVideoControls.btnUnmute.addEventListener(MouseEvent.CLICK, unmuteClicked); mcVideoControls.mcVolumeScrubber.btnVolumeScrubber.addEventListener(MouseEvent.MOUSE_DOWN, volumeScrubberClicked); mcVideoControls.mcProgressScrubber.btnProgressScrubber.addEventListener(MouseEvent.MOUSE_DOWN, progressScrubberClicked); // create timer for updating all visual parts of player and add // event listener tmrDisplay = new Timer(DISPLAY_TIMER_UPDATE_DELAY); tmrDisplay.addEventListener(TimerEvent.TIMER, updateDisplay); // create a new net connection, add event listener and connect // to null because we don't have a media server ncConnection = new NetConnection(); ncConnection.addEventListener(NetStatusEvent.NET_STATUS, netStatusHandler); ncConnection.connect(null); // create a new netstream with the net connection, add event // listener, set client to this for handling meta data and // set the buffer time to the value from the constant nsStream = new NetStream(ncConnection); nsStream.addEventListener(NetStatusEvent.NET_STATUS, netStatusHandler); nsStream.client = this; nsStream.bufferTime = BUFFER_TIME; // attach net stream to video object on the stage vidDisplay.attachNetStream(nsStream); // set the smoothing value from the constant vidDisplay.smoothing = SMOOTHING; // set default volume mcVideoControls.mcVolumeScrubber.x = (53 * DEFAULT_VOLUME) + 645.25; mcVideoControls.mcVolumeFill.mcFillRed.width = mcVideoControls.mcVolumeScrubber.x - 698.25 + 53; setVolume(DEFAULT_VOLUME); }
The function is called at the bottom of the rest of the code.
The code I use to enter dialogue in holder.fla is:
var img1Request: URLRequest = new URLRequest("videos/3-2-10.swf"); var img1Loader: Loader = new Loader(); btns_mc.marchImg_btn.addEventListener(MouseEvent.CLICK, clickEvent); function clickEvent(event:MouseEvent):void{ img1Loader.load(img1Request); img1Loader.contentLoaderInfo.addEventListener(Event.COMPLETE, loadNowEvent); function loadNowEvent(event:Event):void{ container_mc.addChild(img1Loader); } }
Any help is greatly appreciated!
pigeon7081
It is close.
Just remove this line of code to myconst() and you should be good to go.
p.s. Please mark this thread as answered.
Tags: Adobe Animate
Similar Questions
-
I keep getting installation errors that it can't find some files for installation.
Original title: How can I stop MSInstaller? I got errors when reinstalling the CA anti-virus software and it continually seeks to install parts of the show.
I get installaer error that it can't find some files for installation. Since she cannot complete the task, I can not install other updates, because he wants the other installation before proceeding with a new.
HelloWhat is the full error message?
Please follow the steps mentioned below:Method 1:
Diagnose and resolve program install and uninstall problems automatically:
http://support.Microsoft.com/mats/Program_Install_and_Uninstall/Method 2:
How to solve the problems when you install or uninstall programs on a Windows computer:
http://support.Microsoft.com/kb/2438651 -
Remember - this is a public forum so never post private information such as numbers of mail or telephone
Device base system driver code (28)... I use a sony vgn z555dn laptop after I've upgraded to windows 7 this is the error that I can't fix all the others, I managed to solve... Please help
Hello
You updated the BIOS and motherboard (chipset drivers)? All device drivers? By checking
manually on the link above?If so you need to contact the Sony Support as the error is in the provided OEM drivers and not
Windows 7.Rob Brown - MS MVP - Windows Desktop Experience: Bike - Mark Twain said it right.
-
I start the download for cs5 and it comes back with an error that it can not install updates. and try later. I've tried about 6 times
Hello Tracy,.
How exactly you are trying to download and install updates?
Is it a mac or windows?
Manually download CS5 CS5 download products
Download the updates manually CS5 for Windows here: https://www.adobe.com/support/downloads/product.jsp?product=39&platform=Windows
Download the updates manually CS5 for Mac here: https://www.adobe.com/support/downloads/product.jsp?product=39&platform=Macintosh
Concerning
Jitendra
-
An error in this Applescript that I can't understand
Hi, I searched some forums and found this script below which I modified. It works great except for a single statement:
runScript If = 1 then number error -128 I want the script to do is, when a USB drive is mounted and is in the ignoredVolumes as "USB Untitled" I want the script to stop. What I can't understand is, runScript is set to 1, "Untitled USB" Monte, runScript is not changed, why don't the script stops with an error "user cancelled"? On the other hand, if a key USB Monte is not in the ignoredVolumes, runScript is set to 2 and copy the file I want it. What hurts? It's probably something that will be very obvious when I see the answer.
Thanks for any help with this problem,
Mike.
property ignoredVolumes: {'10,10 30 1. 5 't', 'files 1. 5 't', "Untitled USB"} - add if necessary
property videoExtensions: {"avi", "mov", "mpg", "wmv", "mp4" and "mkv"}
the value newVolume to the alias (POSIX file "/ Volumes/files 1.") ("5T / new")
the value oldVolume to the alias (POSIX file "/ Volumes/files 1.") ("5T / old")
game runScript to 1
tell application "System events".
the value rootVolumes to disk (POSIX file ' / Volumes ' in the text)
the value allVolumes to name of every element of disc of rootVolumes
the value numofallVolumes to the County of allVolumes
Repeat with the present book in allVolumes
say application 'Finder '.
if (the present book is not in ignoredVolumes and (this book as text) is not '. ') DS_Store') then
if there are alias (POSIX (' / Volumes / "& the present book) as text file ) then game runScript to 2
runScript If = 1 then number error -128 - it does not give a 'User cancelled' error when "Untitled USB" is mounted
runScript If = 2 then
try
duplicate (elements whose name is in the videoExtensions extension) in alias (POSIX file (' / Volumes / "& the present book &" / new ") as text) to newVolume
on error number errorNumber errorMessage
_error value of errorMessage
_errorNum the value to errorNumber
If errorNumber is -15267 then
display the dialog box "This file already exists in folder a." buttons {"OK", "No"} default button 1 with the title "Film copy error?" giving upwards after 10
If the returned button of result is 'No' then
Error number-128
on the other
If the result is 'OK' or back button gave up lead and then of
eject the present book
display the dialog box "U S B D r i v e E j e c t e d - K O t o R e m o v e" {"no need to click on this button"} default button 1 button give up after 5
return
end if
end if
end if
end try
Try
duplicate (elements whose name is in the videoExtensions extension) in alias (POSIX file (' / Volumes / "& the present book &" / old ") as text) to oldVolume
on error number errorNumber errorMessage
_error value of errorMessage
_errorNum the value to errorNumber
If errorNumber is -15267 then
display the dialog box "This file already exists in the folder B" buttons {"OK", "No"} default button 1 with the title "Film copy error?" giving upwards after 10
If the returned button of result is 'No' then
Error number-128
on the other
If the result is 'OK' or back button gave up lead and then of
eject the present book
display the dialog box "U S B D r i v e E j e c t e d - K O t o R e m o v e" {"no need to click on this button"} default button 1 button give up after 5
return
end if
end if
end if
end try
display the dialog box "USB key will Auto Eject in 10 seconds or click OK... "buttons button 1 with the title"copy Complete - Eject? "default {'OK', 'No'} which gives after 10
If the returned button of result is 'No' then
Error number-128
on the other
If the button returned of result is "OK" or gave up a result then ejection of the this book
display the dialog box "U S B D r i v e E j e c t e d - K O t o R e m o v e" {"no need to click on this button"} default button 1 button give up after 5
end if
end if
end if
end say
end Repeat
end say
The way in which your external block If is currently based, the script can't do anything when this book is in the ignoredVolumes, it can not yet test the runScript value. Try something like this:
If the present book is in the ignoredVolumes then
game runScript to 1
on the other
if (the present book as text is not '. ') DS_Store') then
if there are alias (POSIX (' / Volumes / "& the present book) as text file ) then game runScript to 2
end if
end if
Of course, you need to remove a "end if' the end of the script.
-
Confused about replacement of the object style that I can't understand
Hello
So I'll try to understand and to clean up a book a bit messy, I inherited (lots of inconsistent style and replacements). There are a bunch of boxes that have a style of object applied to them, but seem to have odd substitutions, which I can't understand how even got implemented Medallion.
In particular, they have a substitution of "text frame General Options (spacing inset at left; Inset spacing on the right. I can't understand how you can even replace the object for this style.
Even more strange, the paragraph style has a right of withdrawal. 0625 "and the withdrawal to the left of 0, but on the screen, I see the left indent is also. 0625 ". Even if it is not specified anywhere.
Inside the style, is the inset spacing. 0.25 "right and left 25" and it's actually how the text is aligned. But it is clear lines on screens as if there is a left and right inset of 0,1875 "and a withdrawal of paragraph 0,0625 on both sides, when styles don't say this.
Why do I care about all this? Well, I need to convert this CS6, and when I did, I found an extra. 0625 "Indent on the right side causing overset text. This led me down this rabbit hole.
I know I have to get rid of all completely replacements and I intend to do at some point, but I can't do it right now for reasons of time, and I'm also actually really curious what is happening here. Anyone have any ideas? Thank you.
You have shown a paragraph style, but not necessarily one that is actually used. I have no way of knowing what calls for the definition of object style (but I see a substitution for the paragraph style), or what style is assigned to the text in this framework.
Messed up, it is probably a good description of the current state, but to understand what is wrong, you will have to dig into what is really defined as opposed to what the appeal of styles to, then delete the replacements or redefine styles to give you what you want and probably some of both.
You can use find/replace to find a style and replace it with itself to remove the replacements, I recall.
-
mistake, that I can't understand
Hello
I have this script in a submit button:
Create a variable to hold the document object
var oDoc = event.target;
oDoc.mailDoc({)
bUI: true,
cTo: heading.system.rawValue,.
cCc:
' bassujetti: heading.sevLevel.rawValue ' - '+ heading.description.rawValue' - '+ heading.location.formattedValue,
"CMSG: formFields.symptoms.rawValue ' - '+ formFields.whoExp.rawValue' - '+ formFields.whereOccurred.rawValue' - '+ formFields.whatEquip.rawValue' - '+ formFields.troubleShooting.rawValue,
});
{When I check the script, I get a message waited} line 9. I can't understand what is wrong.
Thank you
MDawn
You are missing a plus + before your ' - '.
Kyle
-
I get an error BCCode windows that I can't understand. Help! -BCCode: ea
I'm getting "BCCode: ea BCP1: FE902DA0 BCP2: 82592308 BCP3: 828D9AD8 BCP4: 00000001 OSV: 5_1_2600 SP: 3_0 product: 256_1" is - anyone know what it is?
Hello
1. what operating system is installed on the computer?
2. when exactly you get the error?
3. don't you make changes to the computer before the show?Step 1: I suggest to start the computer in safe mode and check if the problem persists.
Start your computer in safe mode
http://Windows.Microsoft.com/en-us/Windows7/start-your-computer-in-safe-modeStep 2: If the problem is resolved in safe mode, I suggest you perform the clean boot and remove the program that is causing the problem.
How to troubleshoot a problem by performing a clean boot in Windows Vista or in Windows 7
http://support.Microsoft.com/kb/929135
Note: Follow step 7 clean boot KB929135 article to reset the computer in normal mode.Additional information:
Resolve stop (blue screen) error in Windows 7
http://Windows.Microsoft.com/en-us/Windows7/resolving-stop-blue-screen-errors-in-Windows-7Note: When looking for errors of memory you may lose data. When you perform the upgrade in place make sure that you back up the data.
-
I do not know if someone there realized this yet, but the main reason on why someone would want to change the language on FF, it's because we want to understand.
To make a tutorial simply writes things like 'click settings, then select the languages', etc, that's exactly what to say to a blind person lost in a maze of look at the map to find the way out (!), do you think I would be here if I understand that a she who? Honestly!
What you need to do, is be written a tutorial that say things like "click on the first, second, third line and then uncheck the item 6, etc.", or add images, so we can figure out who's who.
I tried to select random items in the menu, and I find something about the language, but no luck! There is something else that should be changed.
I'm sure many would appreciate an effective solution to this headache... Oh and if you would give a choice to choose in which language to install your browser as almost all software developers do decent, it would almost be no need for this tutorial, a user of IE9.Type of topic: preferences #content< enter > in the address bar.
On the bottom of the page, find languages.
To his right, press the Choose button. Make sure that the
District and the correct language is selected. -
I'm unable to set up Outlook, or now called windows mail, I think. but for the life of me I do not understand how to configure the e-mail program that comes with now it windows Vista 64 that came on my new pc. can someone please? Thank you
Windows Mail is/was not Outlook.
Windows XP e-mail program called Outlook Express.
Outlook is a part of the office.
Windows Mail in Vista is the replacement of e-mail for Outlook Express (XP) program.
Read this section on how to set up Windows Mail in Vista:
http://www.SimpleHelp.NET/2007/02/07/a-beginners-guide-to-setting-up-Windows-Mail/
Link above has an easy to follow Guide to set up Windows Mail.
Contact your ISP (Internet Service Provider).
They offer your broad band/Dial-up connection.
Ask them to:
username
password for your service account to wide band/Dial-Up with themServer of incoming POP3 mail
outgoing mail SMTP serverThe above information is required to set up Windows Mail.
ISPS are usually happy to help you set up your email account.
See you soon.
Mick Murphy - Microsoft partner
-
Script error, that I can't get rid
I have 7 of Microsoft and I started having pop boxes that say script error. an error has occurred in the script on this page. do you want to continue running scripts on this page? Yes No
He won't disappear soon whatever I do. Help!
Hello
Can you please check if this link helps:
How to troubleshoot script errors in Internet Explorer
https://support.Microsoft.com/en-us/KB/308260
In addition, let us know if you are facing this problem with all the sites you are trying to access? What version of Internet Explorer work?
-
Apparently easy AS2 code that I can't understand...
Long story short, I just want to be a mc (acting as a button), when I click it tells an instantiated mc to move one image, and if I click on the button again the mc instantiated goes back one frame. Another way to look at it is, click on advance once an image, click on go back again a framework. Clicking repeatedly alternates.
Using AS2 I am a bit confused and I tried from Google and I ask my friend who is more than an AS3 coder. Initially, I put the var function in the event after the one (release) which gave me no errors. My friend said that if the var statement is in the result will always be true.
I must admit that I am certainly not familiar with conditional statements and this will be my first attempt to do so. My confusion was how does the know what true and false. I was told to put forward =! before would be inherent in the mechanism of switching based on the Boolean statement active.
var before: Boolean = true;
We (Release)
{
If (towards front = true) {}
_parent.keyboards.nextFrame ();
} else {}
_parent.keyboards.prevFrame ();
}
Forward =! front
}
You are welcome. AS2 can be written in the timeline like AS3... If some Protocol obliges to use code on(), who defined it needs to be educated.
-
I used Firefox without problem, on my Mac, for several years. I've recently updated to v22.0. Now everytime I open Firefox, there is a dialog box (marked "Firefox, 2 parts in stock") that appears with the Firefox icon and arrow pointing to the right and a folder icon. Looks like I wonder again to install Firefox. I've done several times, but the dialog box never goes away. I clicked and press "eject only firefox." The dialog box disappears, but reappears the next time I open Firefox. Firefox seems to work normally, but this installation glitch is annoying. How can I solve this?
How do you open Firefox... leave an icon on the desktop or in the dock?
What happens when you open Firefox from the Applications folder?
-
For so long now, I've been download my photos in Lightroom and oversaturaturated they arise and broken. I can't explain the flaws of the saturation but have a screenshot. I thought for a long time it was a problem with my camera but recently noticed in the file of the photo outside of Lightroom, the photo looks very good. I have a screenshot of a side by side. Can someone help me?
THE LEFT - ORIGINAL FILE LAW - LIGHTROOM DOWNLOAD
WHAT IS GOING ON HERE?
That's your problem. They should all be zero. These settings will cause that solarization effect you see.
-
I get a SyntaxError: syntax error 160: at line 161, I tried some things but I'm sure it's a simple thing that I do not see because of the forest... See text in red at the bottom of the code
var = {} dialog box
DueValue:
WorkOrderValue:
QuantityValue:
IssueDateValue:
IssueToValue:
cb1Value:false,
cb2Value:false,
cb3Value:false,
cb4Value:false,
cb5Value:false,
Initialize:function (Dialog)
{
var diginit =
{
"Chk1":this.cb1Value. "
"Chk2":this.cb2Value. "
"Chk3":this.cb3Value. "
"Chk4":this.cb4Value. "
"Chk5":this.cb5Value. "
};
Dialog.Load (diginit);
},
function: Commit (dialogue) / / called pressed OK
{
results var = dialog.store ();
This. DueValue = results ["tx1"];
This. WorkOrderValue = results ['txt2"];
This. QuantityValue = results ['txt3"];
This. IssueDateValue = results ['txt4"];
This. IssueToValue = results ['txt5"];
var oRslt = dialog.store ();
This.cb1Value = oRslt ["CHK1'];
This.cb2Value = oRslt ["Chk2"];
This.cb3Value = oRslt ["Chk3"];
This.cb4Value = oRslt ["Chk4"];
This.cb5Value = oRslt ["Chk5"];
},
Description:
{
name: 'Information stamp control', / / title of the dialog box
elements:
[
{
type: "display."
elements:
[
{
name: "reason: «,»»
type: 'static_text. "
},
{
item_id: "txt1"
type: 'edit_text. "
Multiline: true,
Width: 100,
height: 30
},
{
name: "w/o #: «,»»
type: 'static_text. "
},
{
item_id: "txt2."
type: 'edit_text. "
Multiline: true,
Width: 100,
height: 30
},
{
name: ' Quantity ',:
type: 'static_text. "
},
{
item_id: "txt3."
type: 'edit_text. "
Multiline: true,
Width: 100,
height: 30
},
{
name: "Date of issue: «,»»
type: 'static_text. "
},
{
item_id: "txt4."
type: 'edit_text. "
Multiline: true,
Width: 100,
height: 30
},
{
name: "question to: ',"
type: 'static_text. "
},
{
item_id: "txt5."
type: 'edit_text. "
Multiline: true,
Width: 100,
height: 30
}, [
{
type: "display."
char_height: 10,.
elements:
[
{
type: 'static_text. "
item_id: "stat."
name: "check what applies."
char_width: 15,.
alignment: "align_fill",.
Police: 'dialogue ',.
},
{
type: "display."
char_width: 8.
char_height: 8.
align_children: "align_top."
elements:
[
{
type: "display."
char_width: 8.
char_height: 8.
elements:
[
{
type: 'check_box. "
item_id: "Chk1."
name: "1st, 10th, last."
},
]
},
]
},
]
},
{
type: "ok_cancel."
ok_name: "Ok."
cancel_name: "Cancel".
},
[
},
[ ] I; ve tried "{,}, [' none of them worked SyntaxError here..."] "
}
};
If (event.source.forReal & & (event.source.stampName == "#TabIjeb2ZLdGVyiRhzvfNA"))
{
If ('ok' is app.execDialog (dialog))
{
/ / var CMSG = dialogue. DueValue;
Event.Value = "\n" + CMSG;
/ / event.source.source.info.ControlStamp CMSG =;
CMSG = "\n" + dialog box. DueValue;
this.getField("Due").value = CMSG;
CMSG = "\n" + dialog box. WorkOrderValue;
this.getField("WorkOrder").value = CMSG;
CMSG = "\n" + dialog box. QuantityValue;
this.getField("Quantity").value = CMSG;
CMSG = "\n" + dialog box. IssuesDateValue;
this.getField("IssueDate").value = CMSG;
CMSG = "\n" + dialog box. IssuesToValue;
this.getField("IssueTo").value = CMSG;
this.getField("cb1").checkThisBox (0, DiaBOx.cb1Value);
/ / this.getField("cb1").value = dialog.cb1Value? "Yes '." "" Stop ";
}
}
This line:
this.getField("cb1").value = dialog.cb1Value? "Yes '." "" OFF. "
must be:
this.getField("cb1").value = dialog.cb1Value? 'Yes': 'Off '.
Maybe you are looking for
-
How can I stop my iPhone and the iPhone and my wife to keep each other recent call logs?
On my iphone and on my wife's iPhone, you can find each other's recent call history. It's new. Since the beginning of the iPhone, we have synchronised calendars and contacts, but never synchronized "recent call" logs. How can prevent us this? We are
-
Use two assistants for the acquisition of data at the same time
Hello I want to read multiple data channels of analog inputs on my DAQ hardware. However, when I try to create two separate data acquisition assistants for each entry, it gives an error saying "is reserved for the specified resource. The operation co
-
Convert from 5.1 to 8.6
Can someone convert this vi of 5.1 to 8.6? It's an oldie but goodie! Thank you.
-
When I try to download an update such as KB971514, the States of MS web page validation is necessary. When I press on continue takes you to a page of validation with another button continue to validate. I click on that and you get a result of vaild
-
Can I change my pavilion n245se graphics card
Hello I have a HP Pavilion n245se-15 Notebook Laptop and I want to know if I can improve my graphics from nvidia gtx 680? HP Pavilion 15 laptop-n245se (Intel Core i7-4500U 4th-Gen, 15.6 inch, 1 TB, 8 GB, black) Graphics card is integrated intel 4000