send and receive dynamic parameter from php to flex 3
there are several ways to communicate flex to php, usually i’m using xml in some case we cannot using xml so in this ocasion i’ll use flashvars. here the deal : wel’ll get the username that sent by login.php to our list.swf that embedd at list.php. okey, here the login.php
it just like a common login script
<form name="form1" method="post" action="list.php"> <input name="username" type="text" id="username"> <input type="submit" name="Submit" value="Login"></form>
now we’ll make the list.swf using Adobe flex 3.
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" creationComplete="initVars()">
<mx:Script><![CDATA[
// Declare bindable properties in Application scope.
[Bindable]
public var username:String;
// Assign values to new properties.
private function initVars():void {
username = Application.application.parameters.username;
}
]]></mx:Script>
<mx:VBox>
<mx:HBox>
<mx:Label text="Name: "/>
<mx:Label text="{username}" fontWeight="bold"/>
</mx:HBox>
</mx:VBox>
</mx:Application>
July 3, 2009 No Comments
delete browsing history for a certain website how to
as we know that if we want to delete the browsing history is using the ctrl + shift + delete. but how if we only want to delete a certain browsing history. i know it sound strange, why we just delete all of the browsing history,but for me as a student that “pretty close to google” i mean that i really love to surfing on the net. personally for me, sometimes i forgot to bookmarks the website, so i’m counting on the history.. but..some times me/my friends open an inappropriate website(lie xxx or something disturbing), since we using campus computer (iam an administrator so i ‘m using on of lab’s box) so i need to keep the histry “clean”.
so we need to delete the “inappropriate” history, and here’s the way :
* Suppose the url was arifwicaksono.com.
* Type the url that u want to delete eg: arifwicaksono so at the address bar and I am sure you will find all the webpages and sub-pages with the name of that, lined up.
* Just press the down key to reach the page you wish to delete and press Shift+Delete. That’s it.
Easy I know. but its extremely useful nonetheless,So why don’t you start wiping the evindences of your crime. LoL.
June 7, 2009 No Comments
how to create red5 application
i think i should post this post before thetwo previous post about basic sharedObject example and clientManager on red5 or even before the my first post here red5 tips and trick, we’ll discuss how to create a new application on red5, what we need to know red5 have a unique structure, and of course dont forget about the 3 main files that our jetty/tomcat will read. Well this is some list that you need before getting started using red5.
- JDK 1.5 or above
- JRE 1.5 or above
- eclipse , this will make it easier.
- and of course red5 server.
April 11, 2009 No Comments
get userlist using client manager on red5
before i’ve post an simple example about shared object on red5 now we discuss about how to get a userlist from a connected user, so we can track all our user on a list, and of course when a user disconnected from the server, he will removed from the list. hope you enjoy this one.
how we get the userlist from all connected user? well, red5(Joachim Bauch) already provide a client manager serverside code, his code already put the all users on an array that we will called that remote functino at the client side. the code even handle abotu remove users and setID for all user. now we only need to code the client side, if you dont have the server side client manager code here’s the code
April 11, 2009 No Comments
sharedObject basic on red5
very simple and basic sharedObject example given by robsilverton here, i’ve stuck with red5 sharedObject for several days, try to understand how it works and finally after read robsilverston example code i have little conclusion how to make a sharedObject application, usually we’ll use this for red5 chat application like robsilverton does, or to retrieve the synchronized user list in a red5 application, i haven’t done the second one but i’m sure after we discuss rob code it will give us more undestanding to explore the sharedObject
here the some of server site code:
public boolean connect(IConnection conn, IScope scope, Object[] params) {
appScope = scope;
/* we create a shared object called message here */
createSharedObject(appScope, "message", false);
return true;
}
/* this fuction for retrieve handle the new message and send it to all connected users */
public void sendMessage(List<String> params) {
ISharedObject so = getSharedObject(appScope, "message");
so.sendMessage("receiveMessage", params);
}
April 9, 2009 No Comments
free online manga/comics reader script
well, i’ve search onemanga or manga fox clone script for a long time, but of course i found nothing, i even almost decide to make the onemanga clone script by my self, but i very busy lately because i’m still doing my thesis for my bachelor degree. glad i found this script, and better it using wordpress to run, so it’s like plugin to our site. it’s called comicpress
Using the popular blogging software, WordPress, is ideal for publishing comics online as it’s very similar to blogging in that it involves regularly posting and archiving blocks of content to the Web. ComicPress provides you a WordPress theme with the necessary comic display and navigation features built in as well as display and archiving built to present all your content together, both comics and blog posts.
it’s very clean and simple to use, now we can post a comic or post, if we running out of idea, we can simply post a blog posts. isn’t it great huh? enjoy.
April 4, 2009 1 Comment
access reiserfs on windows how to
i was a linux user, since i was at the second grade at my campus and join my labrotary. i like it because it free and an “anti virus” operating system. well you know at campus espesially informatics one, computer virus is a common thing.
this is a way how to access our reiserfs file system using windows. if you have search it at google, you’ll find some tools to access it,like yareg, or rfstools. but i personally dont know how to use this tool. glad i found this one, it’s a reiserfs driver for windows.you can get it here http://rfsd.sourceforge.net/
and this is how to use this reiserfs driver on our box.
===================================
STEP 1: INSTALL THE DRIVER
===================================
Copy rfsdfsd.sys into C:\Windows\System32\drivers\
====================================
STEP 2: INSTALL THE DRIVER SERVICE
====================================
Merge rfsdfsd.reg into the registry (right click-chose merge )
March 28, 2009 2 Comments
simple red5 explanation
i’m very much newbie on red5, just know about it several weeks ago, it come tricky to understand how this thing work, i’ll try to give my point of view about red5, this help me to remember at the future too
so, red5 is at the server side,it will produce and handle any request from client, in my study the client is a flash, i’m using flex 3 and action script 3 to code the client, there’s nothing hard to understand this, but sometimes when i want to create a new application in red5, there is several problem, like the jetty not recognize our application. or it not listed. several thing that we must understand when we want to develop aplication using red5 are :
- we need to restart the red5 server every change.yes, it must be like that.
March 26, 2009 No Comments