I am getting below errors while editing & saving the changes into zion page builder & I used the theme kallayas
Uncaught TypeError: Cannot read property 'addClass' of undefined
color-picker.min.js .close (color-picker.min.js)
HTMLInputElement. (widget.min.js)
Please help if someone knows how to get rid of this.
Related
I am running into the DOM exception (title) and have no clue how to resolve it. This is the same exception from this other stackoverflow post. As per the solution in the other post, I tried moving the createElement call into the connectedCallback hook, but I am still seeing the exception.
Simplest code that produces the exception is:
connectedCallback() {
document.createElement('toggle-switch');
}
where toggle-switch is a custom element I defined earlier. Any clues as to why this is still happening / how I can get this resolved will be greatly appreciated!
Oops. Totally my mistake. I did have some DOM manipulation in the constructor of toggle-switch. I accidentally added .innerHTML on the element instead of it's shadowroot.
I am new to flashbuilder. I have got this existing code to maintain. All of the mxml files have outermost tag s:WindowedApplication. The navigation from one page to another is done using code as follows:
public function help_clickHandler(event:MouseEvent):void
{
var dTracker:aboutProduct = new aboutProduct();
this.addElement(dTracker);
}
After navigating to a new page I get following error on clicking any where on newly loaded page:
ArgumentError: Error #2025: The supplied DisplayObject must be a child of the caller.
at flash.display::DisplayObjectContainer/getChildIndex()
at mx.managers::SystemManager/getChildIndex() [E:\dev\4.y\frameworks\projects\framework\src\mx\managers\SystemManager.as:1823]
at mx.managers.systemClasses::ActiveWindowManager/mouseDownHandler() [E:\dev\4.y\frameworks\projects\framework\src\mx\managers\systemClasses\ActiveWindowManager.as:483]
at flash.events::EventDispatcher/dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at mx.core::UIComponent/dispatchEvent()[E:\dev\4.y\frameworks\projects\framework\src\mx\core\UIComponent.as:13152]
at mx.managers::SystemManager/mouseEventHandler() [E:\dev\4.y\frameworks\projects\framework\src\mx\managers\SystemManager.as:2918]
Error: Error #3003: File or directory does not exist.
at flash.filesystem::File/copyTo()
at studyTopics/studytopic_changeHandler()[C:\flash\46\HondaLMS\src\studyTopics.mxml:81]
at studyTopics/__lst_change()[C:\flash\46\HondaLMS\src\studyTopics.mxml:136]
at flash.events::EventDispatcher/dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at mx.core::UIComponent/dispatchEvent()[E:\dev\4.y\frameworks\projects\framework\src\mx\core\UIComponent.as:13152]
at spark.components::List/commitSelection()[E:\dev\4.y\frameworks\projects\spark\src\spark\components\List.as:1278]
at spark.components::List/commitProperties()[E:\dev\4.y\frameworks\projects\spark\src\spark\components\List.as:1148]
at mx.core::UIComponent/validateProperties()[E:\dev\4.y\frameworks\projects\framework\src\mx\core\UIComponent.as:8219]
at spark.components::List/item_mouseDownHandler()[E:\dev\4.y\frameworks\projects\spark\src\spark\components\List.as:1915]
at flash.events::EventDispatcher/dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at mx.core::UIComponent/dispatchEvent()[E:\dev\4.y\frameworks\projects\framework\src\mx\core\UIComponent.as:13152]
at mx.managers::SystemManager/mouseEventHandler()[E:\dev\4.y\frameworks\projects\framework\src\mx\managers\SystemManager.as:2918]
Please help me solve this runtime error.
Update:
There is a technical error in the design of application, i.e., all of the mxml have WindowApplication. There should be only one WindowApplication and rest of them should be Application type (reference). Still I have to figure out, how to navigate from one page to another page and return back to main page or previous page.
In one flex application there can be only one mxml with WindowApplication container. Rest of the containers should be Group.
I left landing page as WindowApplication and changed rest in Group, this revolved the issue I was facing.
So I'm writing a really basic app for an app dev class but I'm a designer than a developer so bear with me on this.
It involves using Caurina tweeners just moving stuff around.
import caurina.transitions.*;
import flash.events.MouseEvent;
stop();trace(fab_mc);
//Scene 2 Nav Scripts
//fab 1&2
fab_mc.fab2_btn.addEventListener(MouseEvent.CLICK, fab2);
function fab2(event:MouseEvent):void
{
Tweener.addTween(fab_mc,{x:-637.4,time:1,transition:"easeInOutQuart"});
}
fab_mc.fab1_btn.addEventListener(MouseEvent.CLICK, fab1);
function fab1(event:MouseEvent):void
{
Tweener.addTween(fab_mc,{x:-136.70,time:1,transition:"easeInOutQuart"});
}
It blows up (according to the debugger ) at line 7 due to "fab_mc" being apparently null. Frankly, I had no idea what a null is about until just this morning - I wrote the code yesterday, it worked fine.
But when I added some more content and coded it, it started complaining. The code for is essentially a lot of tweeners. Sorry if I'm not providing a lot of info, but it's all I have really.
Error code:
null
TypeError: Error #1009: Cannot access a property or method of a null object reference.
at Arafabricator_fla::MainTimeline/frame2()[Arafabricator_fla.MainTimeline::frame2:7]
at flash.display::Sprite/constructChildren()
at flash.display::Sprite()
at flash.display::MovieClip()
at Arafabricator_fla::fab_mc_10()
at flash.display::MovieClip/nextScene()
at Arafabricator_fla::MainTimeline/menu07()[Arafabricator_fla.MainTimeline::frame1:64]
If fab_mc is null it means it does not exist on the frame that you have that code. Just make sure you put that code on a frame where the fab_mc symbol also exists. You can't, for example, put that code on frame 1 but the symbol first exists on a keyframe on frame 5. In that case put the code on a keyframe on frame 5 as well.
Heyy, Im having some problems with my buttons. What I have is 4 buttons on the page. They will run an animation while not being pressed, and that animation will change when it is being pressed.
I keep getting the error TypeError: Error #1009: Cannot access a property or method of a null object reference.
at MultimediaAssignment_fla::MainTimeline/frame51()[MultimediaAssignment_fla.MainTimeline::frame51:3]
And I have searched high and low but I cant seem to find anyone who is having the same problem as me.
stop();
btn_volcano.addEventListener(MouseEvent.CLICK, volcano);
btn_Storm.addEventListener(MouseEvent.CLICK, stormbtn);
btn_Tsunami.addEventListener(MouseEvent.CLICK, tsunamibtn);
btn_Earthquake.addEventListener(MouseEvent.CLICK, earthquakebtn);
function volcano(e:MouseEvent):void {
gotoAndPlay(52);
}
function tsunamibtn(e:MouseEvent):void {
gotoAndPlay(54);
}
function stormbtn(e:MouseEvent):void {
gotoAndPlay(53);
}
function earthquakebtn(e:MouseEvent):void {
gotoAndPlay(55);
}
My buttons do have correct instance names and for some reason it worked when I turned the "up" movie clip into a button and called it e.g. btn_volcano. Except if I do that the animation doesn't run anymore.
If I remove the instance name from in front of the event listener I don't get the error but it will only ever run the last code.
Please help!
error TypeError: Error #1009: Cannot access a property or method of a null object reference. at MultimediaAssignment_fla::MainTimeline/frame51()
This line suggests you have some code in frame 51. I presume in Flash IDE in main timeline.
Click on this frame on timeline and open actions window. Problem may be there.
Reading up on DataProvider here
The second code example that displays the data of a selected item, from the list, inside the TextArea.
The article's code, while does what it suppose to do, gives me the following error:
TypeError: Error #1009: Cannot access a property or method of a null
object reference. at fl.controls::TextArea/drawLayout() at
fl.controls::TextArea/draw() at
fl.core::UIComponent/callLaterDispatcher()
Why is that?
Turns out I had to also have the TextArea control inside my library.