Link to home
Create AccountLog in
Adobe Flash

Adobe Flash

--

Questions

--

Followers

Top Experts

Avatar of chrismarx
chrismarx🇺🇸

debugging flex - Error #2044: Unhandled IOErrorEvent:. text=Error #2035: URL Not Found.
newbie to flex/flash

wondering how to properly debug flex applications. when i run my flex app, i get the following error message

Error #2044: Unhandled IOErrorEvent:. text=Error #2035: URL Not Found.

i realize this must relate to a resource url, but how am i do determine what line in the code threw this error?
i tried running the app in debug mode, and got the

"Where is the Flash debugger host running?"

message, localhost didnt work.

can someone point me to some resource about learning how to debug flex apps and perhaps help with this issue?

Zero AI Policy

We believe in human intelligence. Our moderation policy strictly prohibits the use of LLM content in our Q&A threads.


Avatar of bgloddebglodde🇺🇸

Start with searching for "new URLRequest" in the source and inspect URLs of the resources being loaded. You also can set a breakpoint in the first function that is executed (typically triggered by creationComplete or init event in the Application tag) and step through the app (F6) until you see it throw the exception.

Avatar of chrismarxchrismarx🇺🇸

ASKER

ok,
 i've got the debugger/developer version of flash installed, and now i no longer see the message about where the flash debugger is. interestingly, i also no longer see my error message, but I haven't changed anything in the app. however, i put a simple trace statement in the init() function in the main.mxml page and i dont even see that in the console. i am running the app by pressing the debug button. what am i missing?

Avatar of bgloddebglodde🇺🇸

Can you post the relevant parts of the code so your situation can be further clarified? init() is called by the creationComplete event right?

Reward 1Reward 2Reward 3Reward 4Reward 5Reward 6

EARN REWARDS FOR ASKING, ANSWERING, AND MORE.

Earn free swag for participating on the platform.


Avatar of chrismarxchrismarx🇺🇸

ASKER

im using the cairngorn framework if that makes any difference. it would appear that the init method is being wired up in the application mxml
<mx:Application 
	xmlns:mx="http://www.adobe.com/2006/mxml"
	xmlns:services="vnw.services.*" 
	xmlns:control="vnw.control.*"
	xmlns:inc="vnw.view.includes.*"
	xmlns:include="vnw.view.include.*"
	xmlns:special="vnw.view.level1.special.*"
 
	xmlns:local="*"
	pageTitle="title"
	initialize="init()" 
	layout="absolute" 
	frameRate="14" xmlns:windows="vnw.view.level1.windows.*">
 
etc...then
 
<mx:Script>
	<![CDATA[
		
		import com.adobe.cairngorm.control.CairngormEventDispatcher;
		
		import flash.utils.Timer;
		import flash.events.TimerEvent;
		
		import mx.binding.utils.ChangeWatcher;
		import mx.events.PropertyChangeEvent;
		
		import mx.core.Container;
		import mx.managers.PopUpManager;
 
....etc
 
private function init() : void {
			
			//model.debug_win = PopUpManager.createPopUp(this, DebugWindow, false) as DebugWindow;
			
			//model.debug_win.debug("hello");  
			trace("hello");
			
			//Production
			model.initModel.initVO.workStreamID = Application.application.parameters.workStreamID;
			
 
			model.initModel.initVO.workStreamID = "WS100076";
 
			// create and dispatch init event
			var event : GetInitEvent = new GetInitEvent();
	  	event.dispatch();
			
			currentState = "level0";		
		}

Open in new window


Avatar of chrismarxchrismarx🇺🇸

ASKER

also,
 i put in breakpoints in the init() function, and nothing ever happened (execution didnt stop at those points)-

Avatar of bgloddebglodde🇺🇸

There's absolutely no reason that initialize method is not fired - try an Alert.show("hello"); - I've had similar issues with the debugger before....

Free T-shirt

Get a FREE t-shirt when you ask your first question.

We believe in human intelligence. Our moderation policy strictly prohibits the use of LLM content in our Q&A threads.


Avatar of chrismarxchrismarx🇺🇸

ASKER

and im actually quite sure that the inti method is fired, i mean, the application is loading and working as expected. using Alert.show results in compilation error. thanks so much for helping with this-

Avatar of bgloddebglodde🇺🇸

You'd have to import mx.controls.Alert; to use the Alert box ;)

There is another issue that seems to rear it's ugly head on occasion with Flex Builder - the resources sometimes do not get copied to the bin and bin-debug directories. Try manually copying over your resources to those locations and see if that fixes it.

Avatar of chrismarxchrismarx🇺🇸

ASKER

yeah, that worked i can see the alert, checking the bin thing now-

Reward 1Reward 2Reward 3Reward 4Reward 5Reward 6

EARN REWARDS FOR ASKING, ANSWERING, AND MORE.

Earn free swag for participating on the platform.


Avatar of chrismarxchrismarx🇺🇸

ASKER

do i need to enable to console or something to see the messages? the bin folder has the images and styles folder, along with the main.swf, main-debug.swf, etc.,

i dont have any other flash debugging tools installed. on the console tab is says (on the header section)
<terminated> main[Flex Application] file:/C:/workspace/flex/bin/main-debug.html


ASKER CERTIFIED SOLUTION
Avatar of bgloddebglodde🇺🇸

Link to home
membership
Log in or create a free account to see answer.
Signing up is free and takes 30 seconds. No credit card required.
Create Account

Avatar of chrismarxchrismarx🇺🇸

ASKER

thank you!!
yes, i am using firefox 3, when im using a product for some time, i would know to check for these kinds of things, but being new to flex, i couldnt imagine that was the problem. thank you!!

Avatar of bgloddebglodde🇺🇸

Glad we could solve it - happy Flexing

Free T-shirt

Get a FREE t-shirt when you ask your first question.

We believe in human intelligence. Our moderation policy strictly prohibits the use of LLM content in our Q&A threads.

Adobe Flash

Adobe Flash

--

Questions

--

Followers

Top Experts

Adobe Flash (formerly Macromedia Flash) is a cross-platform multimedia and software platform used to embed animations, video, and interactive applications into web pages and desktop and mobile applications and games. Flash displays text, vector and raster graphics to provide animations, video games and applications. It allows streaming of audio and video, and can capture mouse, keyboard, microphone and camera input. The ActionScript programming language allows creation of interactive animations, video games, web applications, desktop applications and mobile applications.