rsattar / wimas3 Goto Github PK
View Code? Open in Web Editor NEWAutomatically exported from code.google.com/p/wimas3
Automatically exported from code.google.com/p/wimas3
Look at encodeStrPart in Session.as (r37)
private function encodeStrPart(s:String):String {
var r:String = encodeURIComponent(s);
r = r.replace(/\+/, "%2B");
r = r.replace(/_/, "%5F");
return r;
}
encodeURIComponent is defined to encode '+' so why replace(+, %2B)?
http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/package.html#encodeURI
Component()
Solution: remove superfluous statement.
Original issue reported on code.google.com by [email protected]
on 15 Jun 2008 at 9:34
Reported against com.aol.api.openauth.AuthToken (r30)
1. Look at expirationTime assignment in AuthToken.as constructor
Note that assigned value is expiresIn milliseconds from [now], as expected,
but comment says "in seconds":
_expirationTime = new Date();
// Expiration time is [now] + expiry, in seconds
_expirationTime.time += 1000 * expiresIn;
Solution: Fix comment.
2. Look at timeLeft function in AuthToken.as
Note that value returned is supposed to be a time interval, but a time
value is returned instead:
/**
* Returns the amount of time (since creation) of this object
* that this token is valid.
*/
public function get timeLeft():Number {
return _expirationTime.time;
}
Solution: return difference between [now] and expirationTime, in seconds?
(_expirationTime.time - (new Date()).time) / 1000
~~
Original issue reported on code.google.com by [email protected]
on 15 Jun 2008 at 8:28
Getting compiler error:
Id 1046: Type was not found or was not a compile-time constant: ILog.
AIM/src/com/aol/api/wim/events
EventController.as
line 105
Original issue reported on code.google.com by [email protected]
on 8 Apr 2010 at 7:56
What steps will reproduce the problem?
1. Publish flash as3 SWF
What is the expected output? What do you see instead?
Originally I thought that flash just wasn't exporting the WIMAS3 libraries,
but I created a debugger that sh
What version of the product are you using? On what operating system?
Latest svn release of wimas3
Please provide any additional information below.
When I run the code in Flash CS3 it functions perfectly and flaw less. the
out put shows all my buddies, who's online, ect. When I put it on my test
server nothing functions. I made it debug so it shows everything that would
be in the output in the textarea. Here's the example:
http://68.4.109.51:8503. Also heres the code to work with. Thank you.
***Start Code***
import flash.display.*;
import flash.events.*;
import flash.external.ExternalInterface;
import com.aol.api.wim.Session;
import com.aol.api.wim.events.UserEvent;
import com.aol.api.wim.*;
stage.scaleMode = StageScaleMode.NO_SCALE;
stage.align = StageAlign.TOP_LEFT;
var devId:String = "(my dev id)";
var session:Session = new Session(this.stage, devId, "test client", ".1");
function login() {
session.signOn("myaimid", "myaimpassword");
}
login();
function log(item) {
cuelog.text = cuelog.text+'\n'+item;
}
function onBLReceived(event:BuddyListEvent):void
{
trace(event.buddyList.groups[0].users[i].aimId.toString())
// and to log everything so it shows on the website
log(event.buddyList.groups[0].users[i].aimId.toString())
}
function onStateChange(event:SessionEvent):void {
trace(session.sessionState.toString())
log(session.sessionState.toString());
}
//events
session.addEventListener(BuddyListEvent.LIST_RECEIVED, onBLReceived);
session.addEventListener(SessionEvent.STATE_CHANGED, onStateChange);
*** end code ***
(keep in mind the log function should show up on the page as anything that
would be in a trace action)
Original issue reported on code.google.com by [email protected]
on 6 Aug 2008 at 4:20
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.