Feed on
Posts
Comments

Just recently, I have encountered a really simple problem that I have hard time figuring out the solution, but in hours of looking for that solution I just found one.

In the web, if we search for reversing a timeline in flash, we will find mostly solutions that are done using another movie clip, but It doesn’t solve my problem. I only need to reverse the timeline without creating another movie clip.

Here’s how I figure it out. The solution that worked for me, is to use the setInterval and the clearInterval.

To do so, create a simple animation/tween, then on the last frame, insert the following action script:

stop();
var speed:Number = 40;
function goto(destination) {
if (_root._currentframe == destination)
clearInterval(nIntervals);
else
prevFrame();
}
var nIntervals = setInterval(goto, speed,15);

In this, example I assumed you have more than 15 frames in your animation, let say you have 60-frame animation, From frame 60 the timeline will reverse play until frame 15.

I just found this tool in the web and find it useful, save it with .bat extension then execute. It helps alot.

@ECHO OFF
cls
echo Zabyer Flash Disk Virus Cleaner v1.0.3
echo http://www.zabyer.org
echo Last Updated: October 14, 2007 8:06am
echo ———————————
echo Files that will be deleted:
echo imgkulot, INFO.exe, Desktop.ini, scvhosts.exe
echo TTM*.vbs, krag.exe, sysdll.exe, RavMon.exe, msv*.dll
echo and other flash disk pest!!!
echo ———————————
echo Resetting Stupid Virus attributes…
echo (Disarming flash disk pest!)
attrib -r -h -s -a autorun.*
attrib -r -h -s -a TTM*.*
attrib -r -h -s -a imgkulot*.*
attrib -r -h -s -a RECYCLER\INFO.exe
attrib -r -h -s -a RECYCLER\Desktop.ini
attrib -r -h -s -a sysdll.exe
attrib -r -h -s -a krag.exe
attrib -r -h -s -a RavMon*.*
attrib -r -h -s -a msv*.dll
attrib -r -h -s -a scvhosts.exe
attrib -r -h -s -a svhost.exe
attrib -r -h -s -a C:\Windows\svhost.exe
attrib -r -h -s -a C:\Windows\svhost32.exe
attrib -r -h -s -a “New Folder”.exe
echo ———————————
echo Attributes Reset!
echo Preparing Clean-Up Procedures…
echo Next step is to delete all the pest.
echo ———————————
pause
echo ———————————
echo Deleting Stupid Virus…
echo ———————————
del autorun.*
del TTM*.*
del imgkulot*.*
del RECYCLER\INFO.exe
del RECYCLER\Desktop.ini
del sysdll.exe
del krag.exe
del RavMon*.*
del msv*.dll
del scvhosts.exe
del svhost.exe
del C:\Windows\svhost.exe
del C:\Windows\svhost32.exe
del “New Folder”.exe
echo ———————————
echo Flash Disk Cleaned-Up!
echo ———————————
echo Please report for new virus so that this Virus Cleaner will be updated. :)
echo Send to admin@zabyer.org or camilord@zabyer.org you feedbacks…
echo ———————————
pause

<html>
<head></head>
<body>
<script language=”javascript”>
var Person = function(name,address){
this.name = name;
this.address = address;
};

Person.prototype.display = function(){
alert(this.name + ” ” + this.address);
};

var juan = new Person(’Juan Dela Cruz’,'Cebu City Philippines’);
juan.display();

var Student = function(name,course){
this.name = name;
this.course = course;
};

Student.prototype = {
display: function(){
alert(this.name + ” “  + this.course);
},
graduate: function(){
alert(”Congrats ” + this.name);
}
};

var s1 = new Student(”Jerson”,”BSIT”);
s1.display();
s1.graduate();
</script>
</body>
</html>

Simple Multi-Form(Frame) Java Application using the Basic Swing components. This sample contains for java classes : Main.java, MainForm.java, EditForm.java and AddForm.java. Download the sample files and have fun. If download doesn’t start try this link also : http://zendfile.ymirror.com/files/777BC8185F93/sample.zip

This simple tutorial will guide you, on how to create an executable jar for small Java application that are developed using simple text-editor. This may not be applicable for applications that are built on advance Java Editor such as the NetBeans IDE, WebSphere, etc.

Assuming that an application has the following classes:

Main.java

import java.awt.*;
import javax.swing.*;

public class Main
{
public static void main(String[]args)
{
JFrame frame = new JFrame();
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
frame.setTitle(”Welcome to Java”);
frame.setSize(400,300);
frame.setResizable(false);
frame.setContentPane( new TestForm() );
frame.setVisible(true);
}
}
TestForm.java

import java.awt.*;
import javax.swing.*;

public class TestForm extends JPanel
{
JLabel label;

private void initComponents()
{
label = new JLabel();
label.setText(”Hello Welcome to Java”);
this.add(label);
}

public TestForm()
{
initComponents();
}
}

With these classes we will create an executable jar “welcome.jar” and will save the Main.java and TestForm.java in C:\java-code directory or folder.

Here are the steps to create welcome.jar

  1. Start Command Prompt.
  2. Navigate to the folder that holds your class files:
    C:\>cd\
    
    C:\>cd java-code
  3. Set path to include JDK’s bin.
    For example:

    C:\java-code> SET PATH=%PATH%:c:\Program Files\Java\jdk1.5.0\bin
  4. Compile your class(es):
    C:\java-code> javac TestForm.java
    C:\java-code> javac Main.java
  5. Create a manifest file:
    C:\java-code> echo Main-Class: Main >manifest.txt
  6. Create a jar file:
    C:\java-code> jar cvfm welcome.jar manifest.txt Main.class TestForm.class
  7. Test your welcome.jar:
    C:\java-code> welcome.jar

And that’s it we’re done.

The Java Tutorial

Please click this link http://www.jmaglasang.phpnet.us/etc/java/ to view the Java Tutorial Page. Lots of stuff more to come on my new site

Our first visit to Mama Mary’s Monastery in Simala was very exciting yet fulfilling.

Here are some of the pictures we’ve taken from the Monastery:

The Monastery - Still Under Construction
Wishing Bell
Fountain
Me and My cute daughter Hansine
We're Going Home Now
Pond water below the fountain and bridge
My baby hansine and wife ann
Flower in Simala
Mama Mary Shrine