Giter VIP home page Giter VIP logo

wimas3's People

Watchers

 avatar  avatar  avatar

Forkers

oullah

wimas3's Issues

superfluous code in Session.encodeStrPart

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

timeLeft function in AuthToken

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

Ilog Issue

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

WIMAS3 wont function in web applications

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.