You can subscribe to this list here.
| 2006 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
(1) |
Aug
|
Sep
|
Oct
(6) |
Nov
(3) |
Dec
(2) |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 2007 |
Jan
|
Feb
(3) |
Mar
|
Apr
(5) |
May
(3) |
Jun
(2) |
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
| 2008 |
Jan
|
Feb
(1) |
Mar
(9) |
Apr
(2) |
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
| 2009 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
(1) |
Oct
(1) |
Nov
|
Dec
|
|
From: John B. M. <jb...@es...> - 2009-10-20 23:47:09
|
I have a new client that had their Flash website done using the ASAP framework. The original programmer is nolonger available.. The website is having some odd behaviors/anomalies which I assume has to do with improper setting of events on menus depending on the sequence of events and the "page" (or so it seems from the description of the problem). There are some cases where menus "just don't work" after a while. Rather than dig into this myself, I would like to find someone that is very (very) familiar with the framework that will review the code and fix these anomalies. If you are interested, please respond to my email directly and indicate your programming hourly rate, and experience. Thank you. -- John Moore Technical Director SonicSpider LLC http://www.sonicspider.com 619.955.6380 ext 111 SonicWebTech Program Tools and Services for the Web Developer Community http://www.sonicwebtech.com The Right Start Website Program We have the solution to dead-end template websites and unorganized marketing materials. http://www.rightstartwebsites.com |
|
From: Vic C. <vce...@gm...> - 2009-09-11 03:10:10
|
Is the fla required or can this be just as a as2? And then I just add child as needed to the main movie clip? .V |
|
From: Stephan B. <be...@xs...> - 2008-04-14 20:58:53
|
Are you using the flv provided by YouTube inside your own video player, or do you load the swf as provided by YouTube? In the latter case, I can imagine that that swf contains code that resizes. I'm not very familiar with that way of playing video, but you could try for example to resize the stage again once the swf has loaded... On 14 apr 2008, at 19:40, Mandy Singh wrote: > This is more of a desperate question in hope that you guys are super > with actionscript and maybe can throw some light on it. > > I have a swf who's stage size is 300x250. > > I load a youtube video in it, resize it using _xscale and _yscale, > all looks good. > > I am able to position the video where i want. > > Now, my movie can be used as 500x500 as well. > > Using Stage.scaleMode = showAll works fine if I load photos (ie they > automatically becomem bigger with the widget). > > However, loading the same youtube video now resizes the root to > 300x250 instead of the embedded 500x500. > > I posted in lot of forums but no one was able to get it to work. > > You are my only hope now. > > Any ideas? > ------------------------------------------------------------------------- > This SF.net email is sponsored by the 2008 JavaOne(SM) Conference > Don't miss this year's exciting event. There's still time to save > $100. > Use priority code J8TL2D2. > http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone_______________________________________________ > Asapframework-support mailing list > Asa...@li... > https://lists.sourceforge.net/lists/listinfo/asapframework-support -- Stephan Bezoen be...@xs... |
|
From: Mandy S. <ma...@gm...> - 2008-04-14 17:40:51
|
This is more of a desperate question in hope that you guys are super with actionscript and maybe can throw some light on it. I have a swf who's stage size is 300x250. I load a youtube video in it, resize it using _xscale and _yscale, all looks good. I am able to position the video where i want. Now, my movie can be used as 500x500 as well. Using Stage.scaleMode = showAll works fine if I load photos (ie they automatically becomem bigger with the widget). However, loading the same youtube video now resizes the root to 300x250 instead of the embedded 500x500. I posted in lot of forums but no one was able to get it to work. You are my only hope now. Any ideas? |
|
From: Stephan B. <be...@xs...> - 2008-03-20 21:17:33
|
Hi,
The formResult object that you get back from myValidator.validate()
contains a property "success", which is a global indication of whether
validation was successful or not, and if not, an array of objects of
type ValidationError is put into the property "error". The
ValidationError objects have a property "rule" of type
IValidationRule, and a property "target", which is the input field
that caused the validation error. As far as I can see from the
traceObject, that is exactly what you get. Be aware that traceObject
only gives you the properties, and not the actual type of objects. So
its use is limited. So as far as I can see, this all works fine. When
validation returns false for the success property, you run through the
array of errors and find out which targets caused the errors.
So off the top of my head this would look something like this:
private function initUI () : Void {
mValidator = new Validator();
// add validation rules
mc_submit.onRelease = EventDelegate.create(this, validate);
}
private function validate () : Void {
var result:ValidationResult = mValidator.validate();
if (result.success) {
// submit the form
} else {
var errors:Array = result.errors;
var len:Number = errors.length;
for (var i:Number = 0; i < len; i++) {
var error:ValidationError = errors[i];
var target:Object = error.target;
// do something with the target
}
}
}
You can use the ErrorInputField class to create input fields with an
error state. It requires two frames, one with label "ok" and one with
label "error". On the frame with the second label, you can for example
put a red box around the input field to show something is wrong on
that field. Otherwise, in your code, you can treat the input fields as
before. After validation, you run through whatever errors validation
comes up with, and call ShowError(true) on any input fields that have
an error. For the others, you call showError(false). In that way you
can show per field if they have an error. The success property can be
used to show a generic error message.
The code above could thus be expanded to the following:
for (var i:Number = 0; i < len; i++) {
var error:ValidationError = errors[i];
var target:ErrorInputField = error.target;
target.showError(true);
}
Cheers,
Stephan
On 20 mrt 2008, at 18:10, Mandy Singh wrote:
> Hi,
>
> I am trying to play with the Validation Class.
>
> However, I am stuck at one place.
>
> I have to_name and to_email input fields on stage and a mc_submit
> movie.
>
> Here is my action script.
>
> import org.asapframework.util.forms.validate.*;
> import org.asapframework.util.*;
>
> myValidator = new Validator();
> myValidator.addValidation(new NumericValidator(to_name));
> myValidator.addValidation(new EmailValidator(to_name));
> myValidator.addValidation(new EmailValidator(to_email));
> mc_submit.onRelease = function() {
> var formResult:ValidationResult = myValidator.validate();
> ObjectUtils.traceObject(formResult, 20);
> };
>
> Here is what I get when I hit submit button without filling anything.
>
> {
> success: false
> errors : [
> 2 : {
> rule : {
> mCondition: null
> mTarget: _level0.to_email
> ]
> target: _level0.to_email
> ]
> 1 : {
> rule : {
> mCondition: null
> mTarget: _level0.to_name
> ]
> target: _level0.to_name
> ]
> 0 : {
> rule : {
> mCondition: null
> mTarget: _level0.to_name
> ]
> target: _level0.to_name
> ]
> ]
> ]
>
> As per the doc, I should get ValidationError.rule : failing rule for
> this target (IValidationRule)
>
> However, I do not get that.
>
> I would need this to throw the error message?
>
> Also, is there a better way to do this, ie, the field with error
> gets highlighted on its own?
>
> Let me know.
>
> Thanks,
> Mandy.
>
> p.s. You svn example doesn't get checked out. I get an error that
> host does not exist.
--
Stephan Bezoen
be...@xs...
|
|
From: Mandy S. <ma...@gm...> - 2008-03-20 18:41:57
|
anyone?
On Thu, Mar 20, 2008 at 10:40 PM, Mandy Singh <ma...@gm...> wrote:
> Hi,
>
> I am trying to play with the Validation Class.
>
> However, I am stuck at one place.
>
> I have to_name and to_email input fields on stage and a mc_submit movie.
>
> Here is my action script.
>
> import org.asapframework.util.forms.validate.*;
> import org.asapframework.util.*;
>
> myValidator = new Validator();
> myValidator.addValidation(new NumericValidator(to_name));
> myValidator.addValidation(new EmailValidator(to_name));
> myValidator.addValidation(new EmailValidator(to_email));
> mc_submit.onRelease = function() {
> var formResult:ValidationResult = myValidator.validate();
> ObjectUtils.traceObject(formResult, 20);
> };
>
> Here is what I get when I hit submit button without filling anything.
>
> {
> success: false
> errors : [
> 2 : {
> rule : {
> mCondition: null
> mTarget: _level0.to_email
> ]
> target: _level0.to_email
> ]
> 1 : {
> rule : {
> mCondition: null
> mTarget: _level0.to_name
> ]
> target: _level0.to_name
> ]
> 0 : {
> rule : {
> mCondition: null
> mTarget: _level0.to_name
> ]
> target: _level0.to_name
> ]
> ]
> ]
>
> As per the doc, I should get ValidationError.rule : failing rule for this
> target (IValidationRule)
>
> However, I do not get that.
>
> I would need this to throw the error message?
>
> Also, is there a better way to do this, ie, the field with error gets
> highlighted on its own?
>
> Let me know.
>
> Thanks,
> Mandy.
>
> p.s. You svn example doesn't get checked out. I get an error that host
> does not exist.
>
|
|
From: Mandy S. <ma...@gm...> - 2008-03-20 17:09:59
|
Hi,
I am trying to play with the Validation Class.
However, I am stuck at one place.
I have to_name and to_email input fields on stage and a mc_submit movie.
Here is my action script.
import org.asapframework.util.forms.validate.*;
import org.asapframework.util.*;
myValidator = new Validator();
myValidator.addValidation(new NumericValidator(to_name));
myValidator.addValidation(new EmailValidator(to_name));
myValidator.addValidation(new EmailValidator(to_email));
mc_submit.onRelease = function() {
var formResult:ValidationResult = myValidator.validate();
ObjectUtils.traceObject(formResult, 20);
};
Here is what I get when I hit submit button without filling anything.
{
success: false
errors : [
2 : {
rule : {
mCondition: null
mTarget: _level0.to_email
]
target: _level0.to_email
]
1 : {
rule : {
mCondition: null
mTarget: _level0.to_name
]
target: _level0.to_name
]
0 : {
rule : {
mCondition: null
mTarget: _level0.to_name
]
target: _level0.to_name
]
]
]
As per the doc, I should get
ValidationError.rule<file:///C:/Users/mandys/Desktop/Votigo/new_contest_widget/asap_doc_0.94/asap_doc_0.94/release_0_94/org_asapframework_util_forms_validate_ValidationError.html#rule>:
failing rule for this target (IValidationRule)
However, I do not get that.
I would need this to throw the error message?
Also, is there a better way to do this, ie, the field with error gets
highlighted on its own?
Let me know.
Thanks,
Mandy.
p.s. You svn example doesn't get checked out. I get an error that host does
not exist.
|
|
From: Arthur C. <ar...@vi...> - 2008-03-18 21:33:17
|
Hi Mandy ASAP Framework has become quiet because we have made the step to ActionScript 3, and renamed our project to ASAP Library. You can find project page at http://asaplibrary.org If you are bound to ActionScript 2, ASAP Framework is still a valid choice. I also still work with it. Did you find the documentation at http://asapframework.org/api/html/ ? Agreed, the docs on XMLLoader are a bit thin. Any additions are welcome by the way! Your code looks alright. But with a photo album you probably want to use an array of pictures. You can use XML2Object.makeArray for this. For example: If you have this XML data: <images> <portfolio_images> <image id="t1"><![CDATA[images/bullet.jpg]]></image> <image><![CDATA[images/C01.jpg]]></image> <image><![CDATA[images/B02.jpg]]></image> <image><![CDATA[images/nikefootbal.jpg]]></image> </portfolio_images> </images> function onXMLLoaded (e:XMLEvent) : Void { var xmlData:Object = XML2Object.parseXML(e.xmlSource); // we only want the list of images: parseImageData(xmlData.images.portfolio_images, "image"); } private function parseImageData (inData:Object, inKey:String) : Void { var images:Array = XML2Object.makeArray(inData[inKey]); var i:Number, ilen:Number = images.length; for (i=0; i<ilen; ++i) { var id:String = images[i].attributes.id; if (id == undefined || id == "") { id = String(i); } var url:String = images[i].data; // etc. } } Hope this gets you started! Cheers Arthur On 18-mrt-2008, at 17:11, Mandy Singh wrote: > Hello Everyone, > > I am actually a backend programmer and now beginning actionscript > to create some widgets. > > In order to do that I first searched on the net for a library/ > framework that might make life simpler and came across asap. > > Is this project still alive? I don't see much activity. > > Anyways, since I am a beginner I have foolish questions and the > little bit documentation didn't help me at all. > > I just wanted to use the XMLLoader class and had to experiment a > little. > > Want to know if my usuage is correct? (If I really get into this > library, I intent to write beginner tutorials for people like me > who find it hard to read code in a language that they have no idea > about :) > > var myXMLLoader:XMLLoader = XMLLoader.getInstance(); > myXMLLoader.addEventListener( XMLEvent.ON_LOADED, this ); > myXMLLoader.addEventListener( XMLEvent.ON_ERROR, this ); > myXMLLoader.load("photoAlbum.xml", "myFile", true); > > function onXMLLoaded (e:XMLEvent) : Void { > //trace(myXMLLoader); > //ObjectUtils.traceObject(e,2); > // handle result > //trace(e.error); > trace(e.xmlSource); > trace('file has loaded'); > var xmlData:Object = XML2Object.parseXML( e.xmlSource ); > ObjectUtils.traceObject(xmlData, 50); > //trace(xmlData.days.subscription.data); > //trace(xmlData.days.subscription.attributes.num); > } > > function onXMLLoadError(e:XMLEvent) { > trace("Error is - " + e.error); > //ObjectUtils.traceObject(e,5); > } > > Have I used the above correctly? > > Can someone shed light on this? > > Thank you, > Mandy > |
|
From: Mandy S. <ma...@gm...> - 2008-03-18 19:33:06
|
Ok I just checked the link - so guess you are working on ASAP *Library *but not ASAP *Framework* - right? :) On Wed, Mar 19, 2008 at 12:59 AM, Mandy Singh <ma...@gm...> wrote: > Thank you Stephen for a speedy response. > > I appreciate the detailed email. > > I spent good part of the last couple of days trying to understand ASAP > written in AS2 and started getting a hang of it. > > I need to finish my project in a week's time. At this time, if I shift to > learning AS3, do you think its going to be a huge learning curve > (considering I stick to ASAP library written in AS3)? > > Also, you say that you are only putting effort on/off into ASAP library > but not actively developing it anymore? > > I had heard about another library in AS3 called AS3Query (port of Jquery > into ActionScript) - did you ever check it out? > > Because it was AS3 I did not dive into it yet but I am very familiar with > Jquery. > > Thanks again, > Mandy. > > On Wed, Mar 19, 2008 at 12:08 AM, Stephan Bezoen <be...@xs...> > wrote: > > > Hi Mandy, > > > > If you're starting with learning Actionscript, we very much recommend > > starting with Actionscript 3, and not Actionscript 2, since AS3 is the > > language of the future for the Flash player. Especially for people with > > backend experience, Actionscript 3 makes a lot more sense, as the API is a > > lot more consistent and logical, and therefore much easier in daily use. So > > get your hands on tools like Flash CS3, Flex Builder 3, FlashDevelop 3, or > > Eclipse with FDT3, and you can write for Flash player 9, AIR, Flex etc. > > > > We wrote ASAPLibrary in AS2, and have now also moved on to AS3, for > > which we are currently working on ASAPLibrary ( > > http://www.asaplibrary.org/). We're not developing ASAPLibrary anymore, > > but put our effort into ASAPLibrary. If you intend to write tutorials, we'd > > be most happy to assist in any way we can, but preferably for AS3, and not > > AS2. > > > > As for the code below, AS2 requires the use of delegate functionality to > > regain scope. Basically, when you write > > myXMLLoader.addEventListener( XMLEvent.ON_LOADED, this ); > > > > the function onXMLLoaded is run in the scope of the object where the > > event originated, i.e. myXMLLoader. So inside the scope of the function, > > you suddenly lose access to the properties & methods of the enclosing class. > > I know, it's a pain, but to circumvent this, Adobe came up with the Delegate > > class, that was extended & enhanced in ASAPFramework by the EventDelegate > > class. This moves the scope back into the enclosing class. So you should > > write: > > > > myXMLLoader.addEventListener(XMLEvent.ON_LOADED, EventDelegate.create(this, > > handleXMLLoaded); > > > > private function handleXMLLoaded (e:XMLEvent) : Void { > > trace("handleXMLLoaded : " + e.name); > > } > > > > In AS3, scope is retained, and you can write > > > > myXMLLoader.addEventListener(XMLEvent.ON_LOADED, handleXMLLoaded); > > > > Hope this helps! > > > > Cheers, > > Stephan > > > > > > On 18 mrt 2008, at 17:11, Mandy Singh wrote: > > > > Hello Everyone, > > > > I am actually a backend programmer and now beginning actionscript to > > create some widgets. > > > > In order to do that I first searched on the net for a library/framework > > that might make life simpler and came across asap. > > > > Is this project still alive? I don't see much activity. > > > > Anyways, since I am a beginner I have foolish questions and the little > > bit documentation didn't help me at all. > > > > I just wanted to use the XMLLoader class and had to experiment a little. > > > > Want to know if my usuage is correct? (If I really get into this > > library, I intent to write beginner tutorials for people like me who find it > > hard to read code in a language that they have no idea about :) > > > > var myXMLLoader:XMLLoader = XMLLoader.getInstance(); > > myXMLLoader.addEventListener( XMLEvent.ON_LOADED, this ); > > myXMLLoader.addEventListener( XMLEvent.ON_ERROR, this ); > > myXMLLoader.load("photoAlbum.xml", "myFile", true); > > > > function onXMLLoaded (e:XMLEvent) : Void { > > //trace(myXMLLoader); > > //ObjectUtils.traceObject(e,2); > > // handle result > > //trace(e.error); > > trace(e.xmlSource); > > trace('file has loaded'); > > var xmlData:Object = XML2Object.parseXML( e.xmlSource ); > > ObjectUtils.traceObject(xmlData, 50); > > //trace(xmlData.days.subscription.data); > > //trace(xmlData.days.subscription.attributes.num); > > } > > > > function onXMLLoadError(e:XMLEvent) { > > trace("Error is - " + e.error); > > //ObjectUtils.traceObject(e,5); > > } > > > > Have I used the above correctly? > > > > Can someone shed light on this? > > > > Thank you, > > Mandy > > > > > > ------------------------------------------------------------------------- > > This SF.net email is sponsored by: Microsoft > > Defy all challenges. Microsoft(R) Visual Studio 2008. > > > > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/_______________________________________________ > > Asapframework-support mailing list > > Asa...@li... > > https://lists.sourceforge.net/lists/listinfo/asapframework-support > > > > > > -- > > Stephan Bezoen > > be...@xs... > > > > > > > > > > > |
|
From: Mandy S. <ma...@gm...> - 2008-03-18 19:29:34
|
Thank you Stephen for a speedy response. I appreciate the detailed email. I spent good part of the last couple of days trying to understand ASAP written in AS2 and started getting a hang of it. I need to finish my project in a week's time. At this time, if I shift to learning AS3, do you think its going to be a huge learning curve (considering I stick to ASAP library written in AS3)? Also, you say that you are only putting effort on/off into ASAP library but not actively developing it anymore? I had heard about another library in AS3 called AS3Query (port of Jquery into ActionScript) - did you ever check it out? Because it was AS3 I did not dive into it yet but I am very familiar with Jquery. Thanks again, Mandy. On Wed, Mar 19, 2008 at 12:08 AM, Stephan Bezoen <be...@xs...> wrote: > Hi Mandy, > > If you're starting with learning Actionscript, we very much recommend > starting with Actionscript 3, and not Actionscript 2, since AS3 is the > language of the future for the Flash player. Especially for people with > backend experience, Actionscript 3 makes a lot more sense, as the API is a > lot more consistent and logical, and therefore much easier in daily use. So > get your hands on tools like Flash CS3, Flex Builder 3, FlashDevelop 3, or > Eclipse with FDT3, and you can write for Flash player 9, AIR, Flex etc. > > We wrote ASAPLibrary in AS2, and have now also moved on to AS3, for which > we are currently working on ASAPLibrary (http://www.asaplibrary.org/). > We're not developing ASAPLibrary anymore, but put our effort into > ASAPLibrary. If you intend to write tutorials, we'd be most happy to assist > in any way we can, but preferably for AS3, and not AS2. > > As for the code below, AS2 requires the use of delegate functionality to > regain scope. Basically, when you write > myXMLLoader.addEventListener( XMLEvent.ON_LOADED, this ); > > the function onXMLLoaded is run in the scope of the object where the event > originated, i.e. myXMLLoader. So inside the scope of the function, you > suddenly lose access to the properties & methods of the enclosing class. I > know, it's a pain, but to circumvent this, Adobe came up with the Delegate > class, that was extended & enhanced in ASAPFramework by the EventDelegate > class. This moves the scope back into the enclosing class. So you should > write: > > myXMLLoader.addEventListener(XMLEvent.ON_LOADED, EventDelegate.create(this, > handleXMLLoaded); > > private function handleXMLLoaded (e:XMLEvent) : Void { > trace("handleXMLLoaded : " + e.name); > } > > In AS3, scope is retained, and you can write > > myXMLLoader.addEventListener(XMLEvent.ON_LOADED, handleXMLLoaded); > > Hope this helps! > > Cheers, > Stephan > > > On 18 mrt 2008, at 17:11, Mandy Singh wrote: > > Hello Everyone, > > I am actually a backend programmer and now beginning actionscript to > create some widgets. > > In order to do that I first searched on the net for a library/framework > that might make life simpler and came across asap. > > Is this project still alive? I don't see much activity. > > Anyways, since I am a beginner I have foolish questions and the little bit > documentation didn't help me at all. > > I just wanted to use the XMLLoader class and had to experiment a little. > > Want to know if my usuage is correct? (If I really get into this library, > I intent to write beginner tutorials for people like me who find it hard to > read code in a language that they have no idea about :) > > var myXMLLoader:XMLLoader = XMLLoader.getInstance(); > myXMLLoader.addEventListener( XMLEvent.ON_LOADED, this ); > myXMLLoader.addEventListener( XMLEvent.ON_ERROR, this ); > myXMLLoader.load("photoAlbum.xml", "myFile", true); > > function onXMLLoaded (e:XMLEvent) : Void { > //trace(myXMLLoader); > //ObjectUtils.traceObject(e,2); > // handle result > //trace(e.error); > trace(e.xmlSource); > trace('file has loaded'); > var xmlData:Object = XML2Object.parseXML( e.xmlSource ); > ObjectUtils.traceObject(xmlData, 50); > //trace(xmlData.days.subscription.data); > //trace(xmlData.days.subscription.attributes.num); > } > > function onXMLLoadError(e:XMLEvent) { > trace("Error is - " + e.error); > //ObjectUtils.traceObject(e,5); > } > > Have I used the above correctly? > > Can someone shed light on this? > > Thank you, > Mandy > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/_______________________________________________ > Asapframework-support mailing list > Asa...@li... > https://lists.sourceforge.net/lists/listinfo/asapframework-support > > > -- > Stephan Bezoen > be...@xs... > > > > > |
|
From: Stephan B. <be...@xs...> - 2008-03-18 18:39:01
|
Hi Mandy, If you're starting with learning Actionscript, we very much recommend starting with Actionscript 3, and not Actionscript 2, since AS3 is the language of the future for the Flash player. Especially for people with backend experience, Actionscript 3 makes a lot more sense, as the API is a lot more consistent and logical, and therefore much easier in daily use. So get your hands on tools like Flash CS3, Flex Builder 3, FlashDevelop 3, or Eclipse with FDT3, and you can write for Flash player 9, AIR, Flex etc. We wrote ASAPLibrary in AS2, and have now also moved on to AS3, for which we are currently working on ASAPLibrary (http://www.asaplibrary.org/ ). We're not developing ASAPLibrary anymore, but put our effort into ASAPLibrary. If you intend to write tutorials, we'd be most happy to assist in any way we can, but preferably for AS3, and not AS2. As for the code below, AS2 requires the use of delegate functionality to regain scope. Basically, when you write myXMLLoader.addEventListener( XMLEvent.ON_LOADED, this ); the function onXMLLoaded is run in the scope of the object where the event originated, i.e. myXMLLoader. So inside the scope of the function, you suddenly lose access to the properties & methods of the enclosing class. I know, it's a pain, but to circumvent this, Adobe came up with the Delegate class, that was extended & enhanced in ASAPFramework by the EventDelegate class. This moves the scope back into the enclosing class. So you should write: myXMLLoader.addEventListener(XMLEvent.ON_LOADED, EventDelegate.create(this, handleXMLLoaded); private function handleXMLLoaded (e:XMLEvent) : Void { trace("handleXMLLoaded : " + e.name); } In AS3, scope is retained, and you can write myXMLLoader.addEventListener(XMLEvent.ON_LOADED, handleXMLLoaded); Hope this helps! Cheers, Stephan On 18 mrt 2008, at 17:11, Mandy Singh wrote: > Hello Everyone, > > I am actually a backend programmer and now beginning actionscript to > create some widgets. > > In order to do that I first searched on the net for a library/ > framework that might make life simpler and came across asap. > > Is this project still alive? I don't see much activity. > > Anyways, since I am a beginner I have foolish questions and the > little bit documentation didn't help me at all. > > I just wanted to use the XMLLoader class and had to experiment a > little. > > Want to know if my usuage is correct? (If I really get into this > library, I intent to write beginner tutorials for people like me who > find it hard to read code in a language that they have no idea > about :) > > var myXMLLoader:XMLLoader = XMLLoader.getInstance(); > myXMLLoader.addEventListener( XMLEvent.ON_LOADED, this ); > myXMLLoader.addEventListener( XMLEvent.ON_ERROR, this ); > myXMLLoader.load("photoAlbum.xml", "myFile", true); > > function onXMLLoaded (e:XMLEvent) : Void { > //trace(myXMLLoader); > //ObjectUtils.traceObject(e,2); > // handle result > //trace(e.error); > trace(e.xmlSource); > trace('file has loaded'); > var xmlData:Object = XML2Object.parseXML( e.xmlSource ); > ObjectUtils.traceObject(xmlData, 50); > //trace(xmlData.days.subscription.data); > //trace(xmlData.days.subscription.attributes.num); > } > > function onXMLLoadError(e:XMLEvent) { > trace("Error is - " + e.error); > //ObjectUtils.traceObject(e,5); > } > > Have I used the above correctly? > > Can someone shed light on this? > > Thank you, > Mandy > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/_______________________________________________ > Asapframework-support mailing list > Asa...@li... > https://lists.sourceforge.net/lists/listinfo/asapframework-support -- Stephan Bezoen be...@xs... |
|
From: Mandy S. <ma...@gm...> - 2008-03-18 16:11:45
|
Hello Everyone,
I am actually a backend programmer and now beginning actionscript to create
some widgets.
In order to do that I first searched on the net for a library/framework that
might make life simpler and came across asap.
Is this project still alive? I don't see much activity.
Anyways, since I am a beginner I have foolish questions and the little bit
documentation didn't help me at all.
I just wanted to use the XMLLoader class and had to experiment a little.
Want to know if my usuage is correct? (If I really get into this library, I
intent to write beginner tutorials for people like me who find it hard to
read code in a language that they have no idea about :)
var myXMLLoader:XMLLoader = XMLLoader.getInstance();
myXMLLoader.addEventListener( XMLEvent.ON_LOADED, this );
myXMLLoader.addEventListener( XMLEvent.ON_ERROR, this );
myXMLLoader.load("photoAlbum.xml", "myFile", true);
function onXMLLoaded (e:XMLEvent) : Void {
//trace(myXMLLoader);
//ObjectUtils.traceObject(e,2);
// handle result
//trace(e.error);
trace(e.xmlSource);
trace('file has loaded');
var xmlData:Object = XML2Object.parseXML( e.xmlSource );
ObjectUtils.traceObject(xmlData, 50);
//trace(xmlData.days.subscription.data);
//trace(xmlData.days.subscription.attributes.num);
}
function onXMLLoadError(e:XMLEvent) {
trace("Error is - " + e.error);
//ObjectUtils.traceObject(e,5);
}
Have I used the above correctly?
Can someone shed light on this?
Thank you,
Mandy
|
|
From: Mandy S. <ma...@gm...> - 2008-03-18 11:08:23
|
Hello Everyone,
I am actually a backend programmer and now beginning actionscript to create
some widgets.
In order to do that I first searched on the net for a library/framework that
might make life simpler and came across asap.
Is this project still alive? I don't see much activity.
Anyways, since I am a beginner I have foolish questions and the little bit
documentation didn't help me at all.
I just wanted to use the XMLLoader class and had to experiment a little.
Want to know if my usuage is correct? (If I really get into this library, I
intent to write beginner tutorials for people like me who find it hard to
read code in a language that they have no idea about :)
var myXMLLoader:XMLLoader = XMLLoader.getInstance();
myXMLLoader.addEventListener( XMLEvent.ON_LOADED, this );
myXMLLoader.addEventListener( XMLEvent.ON_ERROR, this );
myXMLLoader.load("photoAlbum.xml", "myFile", true);
function onXMLLoaded (e:XMLEvent) : Void {
//trace(myXMLLoader);
//ObjectUtils.traceObject(e,2);
// handle result
//trace(e.error);
trace(e.xmlSource);
trace('file has loaded');
var xmlData:Object = XML2Object.parseXML( e.xmlSource );
ObjectUtils.traceObject(xmlData, 50);
//trace(xmlData.days.subscription.data);
//trace(xmlData.days.subscription.attributes.num);
}
function onXMLLoadError(e:XMLEvent) {
trace("Error is - " + e.error);
//ObjectUtils.traceObject(e,5);
}
Have I used the above correctly?
Can someone shed light on this?
Thank you,
Mandy
|
|
From: Joe M. <joe...@gm...> - 2008-02-10 21:28:34
|
Hi all,
can anyone tell me what I'm doing wrong?
why doesn't work? the queue actually start and go in pause...
"mTimeline.namefield" is the reference to an inputText in the MC.
THX
CODE:
var extendedQueue:ExtendedActionQueue = new ExtendedActionQueue("test");
extendedQueue.addEventListener(ActionQueueEvent.QUEUE_STARTED, this);
extendedQueue.addEventListener(ActionQueueEvent.QUEUE_FINISHED, this);
extendedQueue.addPause( 0 );
extendedQueue.addPauseUntilCondition(mTimeline.namefield, "length", 6,
0.1);
extendedQueue.addAction(trace, 'hello' );
extendedQueue.run();
|
|
From: Stephan B. <be...@xs...> - 2007-06-07 07:15:40
|
Owen van Dijk wrote: > Hi all, > > I asked the question a little over 6 months ago and i see a bit of > activity on SVN. What's the roadmap for ASAP in AS3? I'm about to > start a big project in AS3 and i'm looking into frameworks, ASAP being > my preference :) > > Hi Owen, We have indeed started on conversion of the framework to AS3. This is placed in a branche in Subversion. Here at Lost Boys we're also in the process of transitioning to AS3, so you can expect updates of the new framework pretty soon. However, this is more than just conversion of existing classes, since the new language & player classes provide us with so much more functionality that we previously had to provide for ourselves. Among the classes that have disappeared, are Event, EventMovieClip& EventDispatcher. Also the EventButton base class, with its coupling to the LocalController, seems to have lost its need because of the new bubbling of events. Of the current packages in the AS3 branch, the package for data handling is more or less stable & usable. The ActionQueue is in an extended phase of conversion, but doesn't compile with the final release of Flash CS3 yet. Some tweaking needed there therefore. The FramePulse & FrameDelay are also usable. As soon as we have a set of classes that we deem usable as a whole and as a framework, we will release an alpha. After all, the best way to test these classes is by using them in projects. Your feedback at that stage will be more than welcome :) As for a time period, we're aiming to start transitioning to AS3 here at Lost Boys around august. Development around that time should see a significant speedup. But also expect radical changes in interfaces in that period, because of all the new stuff in AS3. Hope this answers your questions! If you have suggestions, feel free to contact us. Yours, Stephan |
|
From: Owen v. D. <owe...@gm...> - 2007-06-04 13:54:06
|
Hi all, I asked the question a little over 6 months ago and i see a bit of activity on SVN. What's the roadmap for ASAP in AS3? I'm about to start a big project in AS3 and i'm looking into frameworks, ASAP being my preference :) -- Owen van Dijk |
|
From: Adam R. <old...@gm...> - 2007-05-01 15:07:10
|
Vish, I normally take the simple route, all the pages I'm loading's names are defined as static consants in an AppData class, these names are given to the MM in loadMovie() and also passed through to the LC in the MovieManagerEvent, so I just have a big switch statement there and check what's just loaded against the page names. I normally then call methods directly on the sub movies from the top LC as they load, but you could fire new page specific events instead. A cleaner approach may be to extend MM and check for your app specific pages in onLoadDone etc, then fire your own events there instead? I guess this approach doesn't scale well if your loading many LC's, but it's all I've needed so far. If you are trying to get things to load in a predictable queue you may try creating a new Loader with only one thread (the default is 4) for your MM, so the items only get loaded one at a time in the order you queue them. A On 5/1/07, Vish Vishvanath <vis...@gm...> wrote: > > Hi Adam - thanks, I got that, but what I really need is to fire off > specific handlers for specific movies and setting the handler when I > call the MovieManager loadMovie method, so that instead of simply > listening for an ON_MOVIE_READY I essentially can load a Navigation > Movie, Search Movie, List Movie etc, all the different controllers and > sections on a screen and run different handlers when each one is > loaded. > > Also, I need to be able to queue up the loading for all these movies, > with full stop and start, but I'm pretty sure the Loading queue in > ASAP is broken for me since I could not use start and stop. I want to > add a sequence of loads with very specific handlers. Is that possible? > > Many thanks > > vv > > > On 01/05/07, Adam Robertson <old...@gm...> wrote: > > Vish, > > > > You don't listen to each movie, you listen to the MovieManager, it sends > > events when each of the movies it's loading is done. The > > SimpleApplicationDemo shows the general concept... > > > > http://asapframework.org/wiki/bin/view/ASAP/SimpleApplicationDemo > > > > Adam > > > > On 5/1/07, Vish Vishvanath < vis...@gm...> wrote: > > > > > > I am creating a new application made up of several movies, which take > > > up various areas on-screen. They are all subclasses of > > > LocalController, and I am trying to figure out a way of using the > > > MovieManager class to handle loading these four or five movies and > > > initializing them. > > > > > > MovieManager does not have a start method, and I am assuming that all > > > the movies load one after the other, except I cannot figure out how to > > > add different listeners to each movie, so as it loads, it runs a > > > specific method. > > > > > > Any help available on dealing with multiple movies? > > > > > > Best regards > > > > > > Vish > > > > > > > > > ------------------------------------------------------------------------- > > > This SF.net email is sponsored by DB2 Express > > > Download DB2 Express C - the FREE version of DB2 express and take > > > control of your XML. No limits. Just data. Click to get it now. > > > http://sourceforge.net/powerbar/db2/ > > > _______________________________________________ > > > Asapframework-support mailing list > > > Asa...@li... > > > > > https://lists.sourceforge.net/lists/listinfo/asapframework-support > > > > > > > > > > ------------------------------------------------------------------------- > > This SF.net email is sponsored by DB2 Express > > Download DB2 Express C - the FREE version of DB2 express and take > > control of your XML. No limits. Just data. Click to get it now. > > http://sourceforge.net/powerbar/db2/ > > _______________________________________________ > > Asapframework-support mailing list > > Asa...@li... > > https://lists.sourceforge.net/lists/listinfo/asapframework-support > > > > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > _______________________________________________ > Asapframework-support mailing list > Asa...@li... > https://lists.sourceforge.net/lists/listinfo/asapframework-support > |
|
From: Vish V. <vis...@gm...> - 2007-05-01 14:00:37
|
Hi Adam - thanks, I got that, but what I really need is to fire off specific handlers for specific movies and setting the handler when I call the MovieManager loadMovie method, so that instead of simply listening for an ON_MOVIE_READY I essentially can load a Navigation Movie, Search Movie, List Movie etc, all the different controllers and sections on a screen and run different handlers when each one is loaded. Also, I need to be able to queue up the loading for all these movies, with full stop and start, but I'm pretty sure the Loading queue in ASAP is broken for me since I could not use start and stop. I want to add a sequence of loads with very specific handlers. Is that possible? Many thanks vv On 01/05/07, Adam Robertson <old...@gm...> wrote: > Vish, > > You don't listen to each movie, you listen to the MovieManager, it sends > events when each of the movies it's loading is done. The > SimpleApplicationDemo shows the general concept... > > http://asapframework.org/wiki/bin/view/ASAP/SimpleApplicationDemo > > Adam > > On 5/1/07, Vish Vishvanath < vis...@gm...> wrote: > > > > I am creating a new application made up of several movies, which take > > up various areas on-screen. They are all subclasses of > > LocalController, and I am trying to figure out a way of using the > > MovieManager class to handle loading these four or five movies and > > initializing them. > > > > MovieManager does not have a start method, and I am assuming that all > > the movies load one after the other, except I cannot figure out how to > > add different listeners to each movie, so as it loads, it runs a > > specific method. > > > > Any help available on dealing with multiple movies? > > > > Best regards > > > > Vish > > > > > ------------------------------------------------------------------------- > > This SF.net email is sponsored by DB2 Express > > Download DB2 Express C - the FREE version of DB2 express and take > > control of your XML. No limits. Just data. Click to get it now. > > http://sourceforge.net/powerbar/db2/ > > _______________________________________________ > > Asapframework-support mailing list > > Asa...@li... > > > https://lists.sourceforge.net/lists/listinfo/asapframework-support > > > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > _______________________________________________ > Asapframework-support mailing list > Asa...@li... > https://lists.sourceforge.net/lists/listinfo/asapframework-support > > |
|
From: Adam R. <old...@gm...> - 2007-05-01 13:37:15
|
Vish, You don't listen to each movie, you listen to the MovieManager, it sends events when each of the movies it's loading is done. The SimpleApplicationDemo shows the general concept... http://asapframework.org/wiki/bin/view/ASAP/SimpleApplicationDemo Adam On 5/1/07, Vish Vishvanath <vis...@gm...> wrote: > > I am creating a new application made up of several movies, which take > up various areas on-screen. They are all subclasses of > LocalController, and I am trying to figure out a way of using the > MovieManager class to handle loading these four or five movies and > initializing them. > > MovieManager does not have a start method, and I am assuming that all > the movies load one after the other, except I cannot figure out how to > add different listeners to each movie, so as it loads, it runs a > specific method. > > Any help available on dealing with multiple movies? > > Best regards > > Vish > > ------------------------------------------------------------------------- > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > _______________________________________________ > Asapframework-support mailing list > Asa...@li... > https://lists.sourceforge.net/lists/listinfo/asapframework-support > |
|
From: Vish V. <vis...@gm...> - 2007-04-30 23:08:31
|
I am creating a new application made up of several movies, which take up various areas on-screen. They are all subclasses of LocalController, and I am trying to figure out a way of using the MovieManager class to handle loading these four or five movies and initializing them. MovieManager does not have a start method, and I am assuming that all the movies load one after the other, except I cannot figure out how to add different listeners to each movie, so as it loads, it runs a specific method. Any help available on dealing with multiple movies? Best regards Vish |
|
From: Owen v. D. <owe...@gm...> - 2007-04-24 19:37:41
|
Hi Stephan, Thanks! I was missing the docs :)) -- Owen van Dijk On 4/24/07, Stephan Bezoen <be...@xs...> wrote: > Hi, > > As you might have noticed, we have an issue with the ISP that is hosting > the main ASAP website. Unfortunately, it doesn't look (yet) like this > will be solved very quickly, since the ISP seems to be unreachable at > this moment. We are looking at other ISPs, but this takes some time, as > you can imagine. > > In the meantime, we have made the documentation of the most recent > release (0.94) available at this url: http://asap.acidcats.nl. The > documentation is also available for download at the sourceforge website > (see http://sourceforge.net/project/showfiles.php?group_id=142444). > > We apologize for the inconvience, and hope to be up and running again soon! > > Thanks for your patience, > > Stephan > > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > _______________________________________________ > Asapframework-support mailing list > Asa...@li... > https://lists.sourceforge.net/lists/listinfo/asapframework-support > -- Owen van Dijk |
|
From: Stephan B. <be...@xs...> - 2007-04-24 19:20:39
|
Hi, As you might have noticed, we have an issue with the ISP that is hosting the main ASAP website. Unfortunately, it doesn't look (yet) like this will be solved very quickly, since the ISP seems to be unreachable at this moment. We are looking at other ISPs, but this takes some time, as you can imagine. In the meantime, we have made the documentation of the most recent release (0.94) available at this url: http://asap.acidcats.nl. The documentation is also available for download at the sourceforge website (see http://sourceforge.net/project/showfiles.php?group_id=142444). We apologize for the inconvience, and hope to be up and running again soon! Thanks for your patience, Stephan |
|
From: Martijn de V. <ma...@ma...> - 2007-04-23 12:03:43
|
Hi Owen, I understood from Arthur Clemens that we're having some issues with our host, shoulsd be resolved by the end of the day (hopefully!). Best, Martijn. On Apr 23, 2007, at 11:53 AM, Owen van Dijk wrote: > Hi, > > I wanted to show some developers the examples on the website, but > www.asapframework.org is empty? What happened? > > -- > Owen van Dijk > > ---------------------------------------------------------------------- > --- > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > _______________________________________________ > Asapframework-support mailing list > Asa...@li... > https://lists.sourceforge.net/lists/listinfo/asapframework-support |
|
From: Owen v. D. <owe...@gm...> - 2007-04-23 09:53:07
|
Hi, I wanted to show some developers the examples on the website, but www.asapframework.org is empty? What happened? -- Owen van Dijk |
|
From: Owen v. D. <owe...@gm...> - 2007-02-06 12:53:29
|
On 2/5/07, Stephan Bezoen <be...@xs...> wrote: > Hi Owen, > As you can see, the function "blur" assumes that only a blur filter will > be applied. It often depends on specific project requirements whether > that's enough (think of stacking of filters), so I think it's a good > idea if you look closely into this and other examples, and get some > skill in writing your own ActionQueue custom functions. With some proper > copy-paste actions you can easily achieve complex effects that apply to > a single project, without necessarily making them very reusable. It > often yields more elegant, understandable and maintainable code than if > you were to use the AQReturnValue or AQProperty functionality. > > The same applies to scrollRect. With a custom function, you can animate > the x- & y-values, and if you wish, the width and height, of a Rectangle > object that is then set as the scrollRect property of a MovieClip. Hi Stephan, Thanks for the reply, I can imagine that a AQScrollRect helper method adds value to asapframework, as it can actually be made reusable ( ie the interface never changes ). I'll be working on a project where tweening filters will be a major part, so i'll see if i can come up with some ideas for a a generic interface. Obviously, stacking filters on top of eachother should be a must-have feature. Maybe a AQFilter helper method that takes a generic filter class and a description how it must handle the tween properties? -- Owen van Dijk |