tag:robotlegs.tenderapp.com,2009-10-18:/discussions/problems/336-1070-context-was-not-foundRobotlegs: Discussion 2018-10-18T16:35:29Ztag:robotlegs.tenderapp.com,2009-10-18:Comment/81614982011-06-24T18:18:51Z2011-06-24T18:18:53Z1070..... Context was not found<div><p>I have an odd issue here, I am creating a Flash project and
using Flash Builder 4, I added both the robotlegs framework.swc and
SwiftSuspenders.swc files to my Library Path in Flash Builder,
Created a Class through Flash Builder and extended the Context. As
soon as the class is created Flash Builder throws the following
error on the line of my class declaration:<br>
<em>1017: The definition of base class Context was not
found.</em></p>
<p>If i type manually <code>public class MenuContext extends
org.robotlegs.mvcs.Context</code> flash builder will code complete,
but yet I still get the 1017 error above.</p>
<p>`Here is my Code:</p>
<pre>
<code> import flash.display.DisplayObjectContainer;
import org.robotlegs.mvcs.Context;
public class MenuContext extends Context
{
//- PROPERTIES - //
//- CONSTRUCTOR - //
public function MenuContext(contextView:DisplayObjectContainer=null, autoStartup:Boolean=true)
{
super(contextView, autoStartup);
}
}`</code>
</pre>
<p>Any Ideas?</p></div>Joetag:robotlegs.tenderapp.com,2009-10-18:Comment/81614982011-06-24T20:02:56Z2011-06-24T20:02:56Z1070..... Context was not found<div><p>Ok, This seems to happen only when I create a property of the
MenuContext Type in my document class for my flash file. I am not
even instantiating a new object. like so:<br>
`</p>
<pre>
<code> import com.jc.contexts.MenuContext;
import flash.display.Sprite;
public class ItemSelectionMenu extends Sprite
{
//- PROPERTIES - //
public var context:MenuContext;
//- CONSTRUCTOR - //
public function ItemSelectionMenu()
{
}
}</code>
</pre>
<p>`</p>
<p>I am very confused as the <a href=
"http://www.developria.com/2010/06/an-introduction-to-robotlegs-a-1.html">
An Introduction to Robotlegs AS3 Part 2:</a> Models tutorials says
to do just that.</p></div>Joetag:robotlegs.tenderapp.com,2009-10-18:Comment/81614982011-06-25T07:22:34Z2011-06-25T07:22:34Z1070..... Context was not found<div><p>Not sure whether it's related to the error you're getting, but
the framework.swc already contains the swiftsuspenders lib, so you
shouldn't add it separately. My guess is, that since the context
creates the swiftsuspendersadapter, which in turn references the
swiftsuspenders lib FB actually gets confused on what version of SS
to use and therefore is not able to pre-compile the context class,
hence it's "missing". Or something like that ;)</p></div>creynderstag:robotlegs.tenderapp.com,2009-10-18:Comment/81614982011-07-05T16:27:33Z2011-07-05T16:27:34Z1070..... Context was not found<div><p>creynders,</p>
<p>I did remove the linkage to the swftsuspenders in my build path
and left only the framework-v1.0.0swc. This did not solve the
issue.</p></div>visniktag:robotlegs.tenderapp.com,2009-10-18:Comment/81614982011-07-06T10:10:27Z2011-07-06T10:10:27Z1070..... Context was not found<div><p>Hi Joe,</p>
<p>There is definitely a problem with the Build Path in your
project.</p>
<p>I tried to reproduce the error you’ve got in a very
rudimentary example that works just fine for me:</p>
<p>ApplicationContext</p>
<pre>
<code>package org.robotlegs.examples.rltest
{
import flash.display.DisplayObjectContainer;
import org.robotlegs.base.ContextEvent;
import org.robotlegs.mvcs.Context;
import org.robotlegs.examples.rltest.views.mediators.ApplicationMediator;
public class ApplicationContext extends Context
{
public function ApplicationContext(contextView:DisplayObjectContainer=null, autoStartup:Boolean=true)
{
super(contextView, autoStartup);
}
override public function startup():void
{
mediatorMap.mapView(FlashSiteTest, ApplicationMediator);
}
}
}</code>
</pre>
<p>Main View:</p>
<pre>
<code>
package
{
import flash.display.Sprite;
import flash.text.TextField;
import org.robotlegs.examples.rltest.ApplicationContext;
public class FlashSiteTest extends Sprite
{
private var context:ApplicationContext;
public function FlashSiteTest()
{
context = new ApplicationContext(this);
}
public function createChildren():void
{
var myText:TextField = new TextField();
addChild(myText);
myText.text="ApplicationMediator wrote this";
}
}
}</code>
</pre>
<p>ApplicationMediator:</p>
<pre>
<code>
package org.robotlegs.examples.rltest.views.mediators
{
import org.robotlegs.mvcs.Mediator;
public class ApplicationMediator extends Mediator
{
[Inject]
public var view:FlashSiteTest;
override public function onRegister():void
{
view.createChildren();
}
}
}</code>
</pre>
<p>To reproduce the error 1017: The definition of base class
Context was not found. :<br>
I deleted the robotlegs.swc file from the libs folder.</p>
<p>Then I added it to the libs folder again, and I still got the
same error.</p>
<p>Then I went to <strong>Project->Clean</strong> and after that
everything went back to normal.</p>
<p>So maybe that’s what happened to you: at some time you
deleted the robotlegs.swc and maybe added a new version, but
FlashBuilder didn’t notice the change. “Clean” is
refreshing the bin-debug and the project settings, that somehow
contain mixed values, old and new, which confuses the poor
FlashBuilder :)</p>
<p>If that doesn’t work for you try this:</p>
<p>What I do when something goes really wrong with a
project’s settings in FB is:<br>
1. right click on the project in the Package Explorer, choose
Delete<br>
2. radiobutton: DO NOT DELETE CONTENTS !!<br>
3. go to the folder of the project on your hard-disk<br>
4. delete :bin-debug, .settings, .actionScriptProperties,
.flexProperties, .project<br>
5. and eventually the libs content<br>
6. don’t delete src !!<br>
7. go back to FB, create a new Flex Project with the same name
(RLTest) and location<br>
The structure of your project will be intact, you’ll just
have new settings.<br>
( from my response in this thread <a href=
"http://knowledge.robotlegs.org/discussions/problems/246-the-definition-of-base-class-context-was-not-found">
http://knowledge.robotlegs.org/discussions/problems/246-the-definit...</a>
)</p>
<p>In your case I would add the robotlegs.swc to the libs folder
before opening FB again and in FB I would go to
Project->Properties->Build Path-> add swc folder</p>
<p>Tell me if it helped :)<br>
Ondina</p></div>Ondina D.F.tag:robotlegs.tenderapp.com,2009-10-18:Comment/81614982011-07-06T16:48:04Z2011-07-06T16:48:07Z1070..... Context was not found<div><p>Ondina,</p>
<p>Last night I created an new flash project, and got the same
thing from the get go, I saw your reply above today and did exactly
what you said, no go still have the same issue. I then looked at
your link above, and it is exactly the same issue Kyle had..</p>
<p>In Kyle's post you asked him <em>"Can you see the robotlegs swc
under your Referenced Libraries (FB Package Explorer) and the
Context.abc under org.robotlegs.mvcs there?"</em> I can see the
Context.abc file, I will include a screenshot. I also looked under
my .actionScriptProperties and it shows the following</p>
<p>`<?xml version="1.0" encoding="UTF-8"
standalone="no"?><br></p>
<pre>
<code><compilerSourcePath>
<compilerSourcePathEntry kind="1" linkType="1" path="${FLASHPRO_APPCONFIG}/ActionScript 3.0/Classes"/>
</compilerSourcePath>
<libraryPath defaultLinkType="0">
<libraryPathEntry kind="3" linkType="1" path="${FLASHPRO_APPCONFIG}/ActionScript 3.0/FP10/playerglobal.swc" useDefaultLinkType="false"/>
<libraryPathEntry kind="1" linkType="1" path="${FLASHPRO_APPCONFIG}/ActionScript 3.0/libs"/>
<libraryPathEntry kind="1" linkType="1" path="src"/>
<libraryPathEntry kind="3" linkType="1" path="${FLASHPRO_APPCONFIG}/ActionScript 3.0/libs/11.0/textLayout.swc" useDefaultLinkType="false"/>
<libraryPathEntry kind="1" linkType="1" path="C:/Users/jcolumbe/Desktop/External swc and AS Libraries/RobotLegs"/>
</libraryPath>
<sourceAttachmentPath/></code>
</pre>
<pre>
<code><application path="CarouselMenu.as"/></code>
</pre>
<p>`</p>
<p>This is a Flash project and not a air or flex project. I will
include the entire project if you or anyone else wants to take a
look.</p>
<p>the two errors I get is:<br>
<code>1017: The definition of base class Context was not
found.</code></p>
<p><code>1020: Method marked override must override another
method.</code></p>
<p>Thanks,<br>
Joe</p></div>visniktag:robotlegs.tenderapp.com,2009-10-18:Comment/81614982011-07-06T17:14:22Z2011-07-06T17:14:22Z1070..... Context was not found<div><p>Hey Joe,<br>
I just took a look at your project :) It works - as an ActionScript
project!!!</p>
<p>Could you read this?<br>
<a href=
"http://knowledge.robotlegs.org/discussions/solutions/13-some-flashbuilder-issues-and-some-solutions">
http://knowledge.robotlegs.org/discussions/solutions/13-some-flashb...</a></p>
<p>I wrote it after my first reply in this thread.<br>
If it still doesn’t work, we should take it step by step. Let
me know how it goes.</p>
<p>Ondina</p></div>Ondina D.F.tag:robotlegs.tenderapp.com,2009-10-18:Comment/81614982011-07-06T17:35:52Z2011-07-06T17:35:52Z1070..... Context was not found<div><p>Hmm, I took a closer look at your .actionScriptProperties, and I
think, I found your problem.<br>
It is because the Link type you chose was External.<br>
Try Merged into code. It worked for me and it will work for you
too!! If not, shoot me;)<br>
Ondina</p></div>Ondina D.F.tag:robotlegs.tenderapp.com,2009-10-18:Comment/81614982011-07-06T18:05:20Z2011-07-06T18:07:44Z1070..... Context was not found<div><p>Ondina,</p>
<p>I did read it right after I made my last post as i saw it pop up
and was directly related. I noticed i did not have a libs folder so
I created one and placed the swc files in it. I then went into my
build path and removed the path I originally had to the swc files
and added the path to reflect my libs directory in my project....
still no change. If you were able to get it to run with out issue,
I was wondering if it is my machine. I took the project over to a
coworkers machine and see if i could get it to run there, but same
thing happened.</p>
<p>[edit] I saw your above post after I posted this one. I went
into flash builder build path and made sure Framework linkage was
Merged into code. I then looked at my actionscriptproperties and
saw a linkType="1", should this be 0 or some other value?</p>
<p>Thanks.<br>
Joe</p></div>visniktag:robotlegs.tenderapp.com,2009-10-18:Comment/81614982011-07-06T18:18:43Z2011-07-06T18:24:09Z1070..... Context was not found<div><p>That’s what I get in an air app, if I change the linkage
type from merged into code to external:<br>
VerifyError: Error <a href="/discussions/problems/1014" title=
"Discussion #1014">#1014</a>: Class org.robotlegs.mvcs::Context
could not be found.<br>
I always had the Link type: Merged into Code, so it never happened
to me before. I didn’t know that could be a problem with the
robotlegs.swc until now.</p>
<blockquote>
<blockquote>
<p>I then looked at my actionscriptproperties and saw a
linkType="1", should this be 0 or some >other value?</p>
</blockquote>
</blockquote>
<p>I don’t know. I’ll have to take a closer look at my
.actionScriptProperties.<br>
But I will have to go in a few minutes, so I guess I won’t be
able to help you right now.</p>
<p>Just a quick question:<br>
Have you tried any of the many robotlegs examples?<br>
Do they work, or are you getting errors?</p>
<p>Later today or most probably tomorrow I will try to see what
else could be an issue.<br>
Maybe you could try to create a new project on the other machine
and also to load a robotlegs example, to see if they work
there.<br>
What version of FlashBuilder do you use? Maybe it’s a bad bad
bad version?;)<br>
Ondina</p></div>Ondina D.F.tag:robotlegs.tenderapp.com,2009-10-18:Comment/81614982011-07-06T19:32:06Z2011-07-06T19:32:06Z1070..... Context was not found<div><p>No worries, I don't have a deadline with it or anything, just
wanted to build a RL project as Flash instead of Air or Flex. I
have built other projects with robot legs, flex and air, both have
no context issue, it just seems to only happen when I do a Flash
project.</p>
<p>I am Running Flash Builder 4, and tried compiling with both Flex
SDK 4.0/Flash Player 1.0.0 and Flex 4.5.1/Flash Player 10.2.0 and
still get the class Context was not found error. I am looking at an
Air app that is using robot legs and the actionscriptproperteis has
a linkType="1", so I will assume that is what it should be with my
flash projects as well.</p>
<p>I will see if i can find some RL flash examples and see if i get
he same issue.</p>
<p>I'll check back tomorrow</p>
<p>I appreciate that you are taking the time to help me with this
issue. Thanks Ondina.</p></div>visniktag:robotlegs.tenderapp.com,2009-10-18:Comment/81614982011-07-07T14:58:07Z2011-07-07T14:58:07Z1070..... Context was not found<div><p>O.K. I’m back.</p>
<blockquote>
<p>I appreciate that you are taking the time to help me with this
issue.</p>
</blockquote>
<p>My pleasure, I like to find bugs :)</p>
<p>You said that you followed all the steps I described in my
previous posts, so your ActionScript project has a valid robotlegs
library linked to it.</p>
<p>Could it be that after trying so many times that many different
options, you became increasingly frustrated and overlooked a little
detail? :)</p>
<p>Let’s recap and clarify some things.<br>
Sorry for repeating myself and for stating the obvious or for
telling you to do things you’ve already done, but I
don’t know how else to address this issue.</p>
<p>I am using:<br>
FlashBuilder 4.5<br>
Flash SDK 4.5.1<br>
Flash Player 10.2<br>
robotlegs-framework-v1.4.0.swc<br>
We both have the same FB , FP and robotlegs versions, right?<br>
We both use the same project files, namely your CarouselMenu -
ActionScript Project<br>
It works on my machine. You tried it on 2 different machines
without success.<br>
You have other robotlegs projects (flex and air) running with no
issues.</p>
<p><strong>So, the culprit seems to be Flash Builder when creating
an ActionScript project.</strong></p>
<p>As already mentioned, the difference between an AIR and/or Flex
Project and an ActionScript Project is the fact<br>
that FlashBuilder creates an empty libs folder only for air and/or
flex projects, if there wasn’t one already,<br>
or if there is a libs folder containing a library, FlashBuilder
automatically includes the library file.</p>
<p>What I did:</p>
<p>after unzipping your file to a CarouselMenu folder,<br>
I deleted your .settings, bin-debug, htm-template,
.actionScriptproperies, .project ,<br>
I created a libs folder, and put the robotlegs-framework-v1.4.0.swc
in there,<br>
I created a new ActionScript project using the location of
CarouselMenu,<br>
and in Build Path I added the libs folder and made sure the link
type was merged into code</p>
<p>Just for clarification:<br>
In my panel ActionScript Build Path there are 2 folders listed:<br>
-Flex 4.5.1 (the flex framework sdk ) and libs (robotlegs
framework)</p>
<p>There is also a dropdown “Framework linkage”.
That’s referring to the Flex sdk.<br>
If I open the libs folder, I see<br>
-<strong>Link Type: Merged into code - this is the linkage for my
own libraries</strong></p>
<p>-robotlegs-framework-v1.4.0.swc</p>
<p>If I click on the Link type in the lib folder or hit Edit while
Link type is selected, a new panel appears and there I can switch
between merged and external.<br>
When I was talking about changing the linkage type, I was referring
to the one in the libs folder. I just wanted to make sure, that we
were talking about the same options. I think that the dropdown
“Framework linkage” is a bit confusing - it changes
only the flex framework’s linkage. But actually I’m
looking now at the attached screenshot and I see that you know
about the option I talked above.</p>
<p>I also see that you have other libraries listed and also a src
folder?? There isn’t a flex sdk.<br>
Are you sure you were selecting ActionScript Project and not a
Flash Professional Project from the menu when you created a new
project?? I can’t see how FB behaves with a Flash Project,
because I don’t have the latest Flash Professional
installed.</p>
<p>I still think that the linkage type is an issue or that
FlashBuilder doesn’t have the proper url for the library or
that it get’s confused by the settings in your Library
Path.</p>
<p>To verify that theory you should try to:</p>
<p>A.<br>
Load the appended project that I created from scratch. Actually is
the same as yours, just added a mediator for the main view and
there is a different package structure. See if it works.</p>
<p>You can try it by keeping my setting and also one more time
after deleting them.<br>
You can copy the .actioScriptProperties to another location before
deleting it, and maybe compare it with your own, after FB is
generating it for the project?</p>
<p>I’ve noticed your<br>
libraryPathEntry kind="1" linkType="1"
path="C:/Users/jcolumbe/Desktop/External swc and AS
Libraries/RobotLegs"/</p>
<p>It seems there is a shared folder containing the robotlegs swc
on your C drive. I don’t think that should cause problems,
but just for the sake of finding a solution, try to use the libs
folder in your project. You don’t need to specify the path
for the attachment, if you select the right libs folder.</p>
<p>Mine:<br>
when it’s external<br>
libraryPathEntry kind="1" linkType="2" path="libs"</p>
<p>when it’s merged<br>
libraryPathEntry kind="1" linkType="1" path="libs"</p>
<p>B.<br>
1. <strong>create an ActionScript project from
scratch</strong>,<br>
letting FlashBuilder create the folders for you, at a location of
your choice, not the default one<br>
2. give the project a complete different name from the one that
doesn’t work<br>
3. go to the project location<br>
4. Create a folder libs on your hard drive<br>
5. put <strong>only</strong> the robotlegs-framework-v1.4.0.swc
inside the libs folder<br>
6. go back to FB - Build Path and add the libs folder<br>
7. create you robotlegs classes with a different package
structure<br>
8. run the project</p>
<p>N.B. I tried to see if there is an issue with adding both
robotlegs and swiftsuspenders libraries. It worked fine, but
creyenders is right, robotlegs already contains the
swiftsuspenders, so you don’t need it and who knows how
confused FB can get ;)</p>
<p>C.<br>
Since you mentioned it in your post, download SimpleListExample
from <a href=
"http://www.developria.com/2010/06/an-introduction-to-robotlegs-a-1.html">
http://www.developria.com/2010/06/an-introduction-to-robotlegs-a-1....</a>
( I tried it, and it worked) try to load the project and run it</p>
<p>D.<br>
In case it still doesn’t work:<br>
- has the project references to other projects?</p>
<ul>
<li>
<p>are you using the default project location when you create a new
project?</p>
</li>
<li>
<p>are you linking the libs folder from another project?</p>
</li>
<li>
<p>try to close all other projects</p>
</li>
<li>
<p>verify that the classes you import are in the right package</p>
</li>
<li>
<p>restore defaults in all the properties panels, if you can afford
it</p>
</li>
</ul>
<p>I’m out of ideas:) Oh wait! Reinstall FlashBuilder? Some
may say, use another IDE?</p>
<p>Maybe you already did all of the above mentioned, so sorry again
for the redundancy.<br>
But since I wrote so much already, I will post it as is.<br>
I hope very much that you get this one sorted:) I know how
frustrating it is even if there isn’t a deadline.<br>
Ondina</p></div>Ondina D.F.tag:robotlegs.tenderapp.com,2009-10-18:Comment/81614982011-07-07T19:26:30Z2011-07-07T19:26:30Z1070..... Context was not found<div><p>Ondina,</p>
<p>Just a quick reply to your post, I am about to start
systematically going through each option you have listed above, but
here is some info about my project setup.</p>
<p>I am using:<br>
Flash Builder 4.0<br>
Flash SDK 4.0<br>
Flash Player 10.0.45<br>
robotlegs-framework-v1.4.0.swc</p>
<p>I can change it to Flash SDK 4.5.1 and Flash Player 10.2.0, I
will give that a shot as well.</p>
<p><em>“Are you sure you were selecting ActionScript Project
and not a Flash Professional Project from the menu when you created
a new project??”</em></p>
<p>I am selecting a Flash Professional Project (as my Graphic
Designers use Flash Professinal), not an actionscript project</p>
<p>I will post back after I got through each option you have listed
above.</p>
<p>Thanks,<br>
Joe</p></div>visniktag:robotlegs.tenderapp.com,2009-10-18:Comment/81614982011-07-07T19:52:41Z2011-07-07T19:52:41Z1070..... Context was not found<div><p>OK, tried the following:</p>
<p><em>after unzipping your file to a CarouselMenu folder, I
deleted your .settings, bin-debug, htm-template,
.actionScriptproperies, .project ,<br>
I created a libs folder, and put the robotlegs-framework-v1.4.0.swc
in there,<br>
I created a new ActionScript project using the location of
CarouselMenu,<br>
and in Build Path I added the libs folder and made sure the link
type was merged into code</em></p>
<p>This fixed it, the error looking for the missing context error,
however this does not allow integration with the CarouselMenu.fla
file (or at least that not that I am aware of.), so I opened the
fla file in Flash Professional CS5 and set the CarouselMenu.as to
be the document class…. Boom error popped right back up, but
only in the compile errors tab of the Flash Professinal CS5 IDE,
not in FB.<br>
This leads me to believe this context issue might be because I am
using a .fla file.</p>
<p>Trying the next option.</p></div>visniktag:robotlegs.tenderapp.com,2009-10-18:Comment/81614982011-07-07T20:37:40Z2011-07-07T20:37:40Z1070..... Context was not found<div><p>ok, just did your second suggestion:</p>
<p><em>Load the appended project that I created from scratch.
Actually is the same as yours, just added a mediator for the main
view and there is a different package structure. See if it
works.</em></p>
<p>no issue, worked just fine.</p>
<p>on to the next one.</p></div>visniktag:robotlegs.tenderapp.com,2009-10-18:Comment/81614982011-07-07T20:54:47Z2011-07-07T20:54:47Z1070..... Context was not found<div><p>As I work through these, it is seeming more and more like using
a Flash Professional project that incorporates an .fla file is the
culprit.</p></div>visniktag:robotlegs.tenderapp.com,2009-10-18:Comment/81614982011-07-08T12:55:08Z2011-07-08T12:55:08Z1070..... Context was not found<div><p>My bad!!</p>
<p>You specified that it was a Flash Project from the beginning of
this thread, but I don’t know why, I first assumed that you
were opening it as an ActionScript Project in FB.</p>
<p>I’ve never loaded a Flash Project in FB until now. For a
while now I’ve been working on AIR and Flex projects almost
exclusively and I use only FlashBuilder for that.</p>
<p>As I don’t have the Flash CS 5.5 installed on this
machine, I had to try it on someone else’s machine. Now
I’m writing this post without seeing the Flash Professional
5.5 settings, so I hope I remember everything correctly.</p>
<p><strong>Flash Professional</strong></p>
<ul>
<li>
<p>I loaded your CarouselMenu.fla in Flash</p>
</li>
<li>
<p>I set CaruselMenu.as as to be the document class</p>
</li>
<li>
<p>tested the project</p>
</li>
<li>
<p>and voilà, the errors, you had trouble with, appeared</p>
</li>
<li>
<p>Then I went back to Publish Settings - Script Settings and I
added libs (merged) to the library path and the src</p>
</li>
<li>
<p>Tested the fla again</p>
</li>
<li>
<p>Same errors</p>
</li>
<li>
<p>Then I went to <strong>Preferences-ActionScript-Language
ActionScript3 - Advanced Settings</strong> and I added the path for
the src folder in the Source path window, the path for the libs
folder in the Library path window and I left External library path
empty</p>
</li>
<li>
<p>Tested again and it worked!!!!!!! The errors disappeared,
meaning that setting the path (in the Preferences) for the included
actionscript library is essential</p>
</li>
</ul>
<p><strong>Flash Builder</strong></p>
<ul>
<li>
<p>In FB I chose new Flash Professional Project and specified the
paths for fla and src (the src folder in the flash professional
project, not the default)</p>
</li>
<li>
<p>FB created the project, but all the flex/flash imports
couldn’t be found</p>
</li>
<li>
<p>So I went to FB Build Path and saw something similar to your
screenshot. There was no Flex SDK. I added it and then everything
was ok. Since I added the robotlegs swc in Flash there was no need
to add it again in FB</p>
</li>
<li>
<p>I ran the FB project and it worked!!!</p>
</li>
</ul>
<p>After that I saw that it’s possible to specify the path to
the Flex SDK in Flash Pro in Preferences-ActionScript-Language
ActionScript3-, before creating a Flash Project in FB. Doing so you
don’t have to add the flex SDK in FB.</p>
<p>Conclusion: Robotlegs and Flash Builder are behaving as they
should.<br>
Flash Professional is the culprit. I find its menus pretty
confusing, especially for someone like me, who is not using it on a
daily basis.<br>
It took me a while to remember where you can set a document class
and a library path.<br>
Then I accidentally added the robotlegs in the Publish Settings
panel instead of Preferences.</p>
<p>Could it be that happened to you too?</p>
<p>Hopefully my explanation wasn’t too confusing and you can
make your CarouselMenu work on your computer too :)</p>
<p>Ondina</p></div>Ondina D.F.tag:robotlegs.tenderapp.com,2009-10-18:Comment/81614982011-07-09T10:02:54Z2011-07-09T10:02:54Z1070..... Context was not found<div><p>Just for the sake of completeness I created a new Flash project
in Flash Professional (CS4), to see if a robotlegs project works in
there without issues.</p>
<p>I wanted to see under which circumstances I’d get an error
(of any kind) related to the robotlegs framework.</p>
<ul>
<li>
<p>So I started without modifying the default settings in
Publishing and Preferences => Error: Context not found etc.
That’s a missing path issue.</p>
</li>
<li>
<p>I did the same, as explained in my previous post, added the
<strong>libs folder under Preferences</strong> => Errror: Cannot
access a property or method of a null object reference.
That’s the famous metadata issue.</p>
</li>
<li>
<p>In Publishing Settings - SWF Settings I made sure <strong>Export
SWC</strong> was checked. (That’s the same as adding compiler
arguments in FB -keep-as3-metadata)=> no more issues.</p>
</li>
</ul>
<p>So obviously Export SWC was checked in my experiment from
yesterday, that’s why it was working.</p>
<p>I think it would work in Flash CS5 as well.</p>
<p>I’m curious if that solves your problem. I’ll be on
vacation for a week, but I will be able to at least read your
feedback. Good luck, Joe :)</p>
<p>Ondina</p></div>Ondina D.F.tag:robotlegs.tenderapp.com,2009-10-18:Comment/81614982011-07-09T11:04:04Z2011-07-09T11:04:04Z1070..... Context was not found<div><p>And because the installation of Flash Professional CS5.5 has
just been completed, I opened the flash project in there, and I saw
that the Publish SWC is selected by default under Publish
Settings.</p>
<p>I just had to specify the document class under Publish Settings
- ActionScript3- Advanced Settings and to add the libs path under
Preferences. I created the Flash Project in FB and didn’t
have to change or add anything in Build Path.</p>
<p>I had no problems running it.<br>
I don’t know if it’s of any use, but I appended the
project.</p>
<p>Ondina</p></div>Ondina D.F.tag:robotlegs.tenderapp.com,2009-10-18:Comment/81614982011-07-12T14:51:46Z2011-07-12T14:51:46Z1070..... Context was not found<div><p>Ondina,</p>
<p>That is awesome, I have gotten a little busy at work, but I will
defiantly try your suggestions and play around with this asap. I am
confident it will work for me, I'll keep you posted. Thanks for all
the help, and time you have taking to help me with this
problem.</p>
<p>Joe</p></div>visniktag:robotlegs.tenderapp.com,2009-10-18:Comment/81614982011-07-29T20:12:29Z2011-07-29T20:12:29Z1070..... Context was not found<div><p>Sorry it took me so long to get back to this thread, but I did
what you said and all is good, it worked fine, Export swc defiantly
seems to be the culprit.... Thanks your your help on this one.</p></div>visniktag:robotlegs.tenderapp.com,2009-10-18:Comment/81614982011-07-30T09:06:52Z2011-07-30T09:06:52Z1070..... Context was not found<div><p>You’re welcome, Joe, and I’m glad that we found the
culprit (Flash Professional) and that our discussion led to a
solution :)</p>
<p>( fake tags: Actionscript Project, Flash Professional Project in
FlashBuilder, Context could not be found, Cannot access a property
or method of a null object reference, Export SWC )</p>
<p>You can close the discussion, if there are no more
questions.</p>
<p>Ondina</p></div>Ondina D.F.tag:robotlegs.tenderapp.com,2009-10-18:Comment/81614982011-08-02T15:53:03Z2011-08-02T15:53:03Z1070..... Context was not found<div><p>I can't seem to close the discussion, the link is grayed out,
wont let me click it.</p></div>visnik