codewala

code it

Adobe Flash Player 11 Video Playback issue

After installing Flash Player 11 – we noticed that audio with-in the FLV video was not playing smoothly.

Here are following solutions

Solution 1

  1. If learner has on his machine RealPlayer application installed , then upgrade it to the latest version.
    solution1  did not work for me

 Solution 2 : if updating the RealPlayer does not solve the issue then

  1. Uninstall the Flash Player 11 and
  2. Install the Flash Player 10.3 version.
    solution2 worked for me

Solution 3:

  1. Install the latest Flash Player (11.3.300.271) released by Adobe.
    http://get.adobe.com/flashplayer/
    solution3 worked for me

August 20, 2012 Posted by | actionscript 2.0, actionscript 3.0, Flash | Leave a comment

Flash 8 comboBox dropdown issue

While working with an interactivity which consisted of Flash 8 comboBox component – I am across an unusual problem. While the stand-alone SWF file worked fine – but when this SWF was externally loaded into another SWF file – the comboBox dropdown menu did not show-up when the comboBox down arrow button was clicked.

The solution to fix this problem is to set _lockroot = true on the frame where the comboBox has been placed.

January 15, 2012 Posted by | actionscript 2.0, Flash | | Leave a comment

Fullscreen Mode in AS2

To enable fullscreen mode using AS2 for a SWF file embedded within HTML page, add the parameter allowFullScreen in the object and embed tags in the HTML page and set its value to true.

param name="allowFullScreen" value="true"

Note:
1. This only works for SWF files published for Flash Player 9 and above
2. Full-screen mode does not work if wmode is set to opaque or transparent
3. When in full-screen mode, all keyboard input is disabled except for the keyboard shortcuts which exists the full-screen mode.

add a button with the following code which will toggle the browser window between Fullscreen and Normal mode when clicked

on(release)
{
if(Stage.displayState == "normal")
{
Stage.displayState = "fullscreen"
}
else
{
Stage.displayState = "normal"
}
}

June 26, 2011 Posted by | actionscript 2.0, Flash, HTML | 3 Comments

Flash wrapper for Adobe Captivate

Found a nice component build by Andrew Chemey which can used for creating a Flash wrapper for Captivate.
To view the documentation and to download the component click the link given below
http://www.connectusers.com/tutorials/2009/03/flash_wrapper/

May 21, 2011 Posted by | actionscript 2.0, Captivate, Flash | Leave a comment

Disable mouse click events in Adobe Captivate from Flash 8

A friend of mine and myself were looking for a way to disable captivate mouse click events from flash, after hours of RnD on it found a very simple workaround to disable/enable mouse click events of Captivate from Flash8. Below are the steps.

1. Create following objects in Flash
– a movieclip having instance name cpContainer_mc
– two buttons having instance name disableListener_btn and enableListener_btn

2. Place your captivate file on the same path and name it as cp.swf

3. On the first frame of Flash paste this code

// prototype to disable listeners
MovieClip.prototype.disableListeners = function ()
{
// store old listeners
if(this.onMouseUp != null)
{
this.$_onMouseUp = this.onMouseUp;
}
// clear listeners array
this.onMouseUp = null;
}
//
// prototype to enable listeners
MovieClip.prototype.enableListeners = function ()
{
// set listeners back to previous state
if(this.onMouseUp == null)
{
this.onMouseUp = this.$_onMouseUp;
}
}
//
// code for the buttons
disableListener_btn.onRelease = function()
{
for(var i in cpContainer_mc)
{
if(typeof(cpContainer_mc[i]) == "movieclip" )
{
cpContainer_mc[i].disableListeners()
}
}
}
//
//
enableListener_btn.onRelease = function()
{
for(var i in cpContainer_mc)
{
if(typeof(cpContainer_mc[i]) == "movieclip" )
{
cpContainer_mc[i].enableListeners()
}
}
}
cpContainer_mc.loadMovie("cp.swf")

4. Compile and run the Flash file – click the buttons to enable/disable the Captivate mouse click events.

April 29, 2011 Posted by | actionscript 2.0, Captivate, Flash | 4 Comments

Skinning Flash 8 Components

A nice video tutorial on how easily the skin of Flash 8 Components can be changed.
http://www.youtube.com/embed/ZnydAauvd8k

February 8, 2011 Posted by | actionscript 2.0, Flash | Leave a comment

XPath with Flash actionscript 2.0

Nice links to learn how XPath can be used with actionscript 2.0

http://blog.northernbinary.org/articles/xpath-for-actionscript-20/
http://download.macromedia.com/pub/documentation/en/flash/fl8/XpathAPI.pdf

February 7, 2011 Posted by | actionscript 2.0, Flash | 2 Comments