IT Community - Software Programming, Web Development and Technical Support

Flash Tips & Tricks

This is a discussion on Flash Tips & Tricks within the Flash Actionscript Programming forums, part of the Web Development category; Hi, I have started this thread only for FLASH tips & tricks. Here I am going to give the tips ...


Go Back   IT Community - Software Programming, Web Development and Technical Support > Web Development > Flash Actionscript Programming

Register FAQ Members List Calendar Mark Forums Read

Reply
 
Thread Tools Display Modes
  #1  
Old 03-28-2007, 02:07 PM
Karpagarajan Karpagarajan is offline
D-Web Analyst
 
Join Date: Mar 2007
Posts: 301
Karpagarajan is on a distinguished road
Default Flash Tips & Tricks

Hi,

I have started this thread only for FLASH tips & tricks. Here I am going to give the tips and tricks in Flash.

Here is the first one.

When Working with MovieClip object, Donot use onPress, OnRelease event for the movieclip, if it is containing the button objects in it.

Because if you enabled the onpress or on release event, then the button click will not be raised.

thanks
__________________
Karpagarajan. R
Necessity is the mother of invention
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2  
Old 03-29-2007, 02:22 PM
Karpagarajan Karpagarajan is offline
D-Web Analyst
 
Join Date: Mar 2007
Posts: 301
Karpagarajan is on a distinguished road
Thumbs up Re: Flash Tips & Tricks

Flash Tip: Convert Lines to Fills

Flash has the option to take any line/stroke that you’ve drawn and convert it to a fill instead, affecting its behavior and how various Flash drawing tools and their settings will operate on them. To do this, select the fill that you want to convert, and click Modify->Shape->Convert Lines to Fills.

thanks
__________________
Karpagarajan. R
Necessity is the mother of invention
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3  
Old 03-29-2007, 02:28 PM
Karpagarajan Karpagarajan is offline
D-Web Analyst
 
Join Date: Mar 2007
Posts: 301
Karpagarajan is on a distinguished road
Thumbs up Re: Flash Tips & Tricks

Paint Bucket Tool

The options for the Paint Bucket tool control just how "tolerant" the flood fills are.
If you set it to Don't Close Gaps, then the Paint Bucket Tool will only work to fill completely enclosed areas of a shape (that is, shapes that are completely bounded by a line with no broken spaces).

But if you set it to Close Small Gaps, it will ignore small breaks in the bounding lines to fill the enclosed area. Close Medium Gaps and Close Large Gaps will cause the Paint Bucket tool to ignore larger and larger spaces in the bounding lines to treat them as enclosed areas.

thanks
__________________
Karpagarajan. R
Necessity is the mother of invention
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4  
Old 03-29-2007, 02:51 PM
Karpagarajan Karpagarajan is offline
D-Web Analyst
 
Join Date: Mar 2007
Posts: 301
Karpagarajan is on a distinguished road
Thumbs up Re: Flash Tips & Tricks

Working with text in FLASH tips

Add a text into your flash document.

Select your text and press Ctrl +b, which breaks the text into separate letters, you can move the letters around and make the text look strange if you want to.

But if you want to edit your text even more select all of the letters and press Ctrl + b again. Now they are all shapes that you can freely edit. So have a play around and change how your text looks. Use the arrow tool and change the edges of the text.

thanks
__________________
Karpagarajan. R
Necessity is the mother of invention
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5  
Old 03-29-2007, 07:51 PM
aquariancore aquariancore is offline
D-Web Sr.Programmer
 
Join Date: Feb 2007
Posts: 160
aquariancore is on a distinguished road
Default Re: Flash Tips & Tricks

The last tip about text was something I have been overlooking and yet probably knew about. Thanks it will help me with one of my projects.
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6  
Old 04-02-2007, 02:41 AM
Karpagarajan Karpagarajan is offline
D-Web Analyst
 
Join Date: Mar 2007
Posts: 301
Karpagarajan is on a distinguished road
Thumbs up Re: Flash Tips & Tricks

Hi,

Here I have given the short cut key for image open and scaling.

To add a jpeg image to your flash document, press Ctrl+r.

If you want to scale the selected image file, Press Ctrl+Alt+S, the scale window will be appeared. Give the scale value.

thanks
__________________
Karpagarajan. R
Necessity is the mother of invention
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7  
Old 04-04-2007, 02:12 AM
Karpagarajan Karpagarajan is offline
D-Web Analyst
 
Join Date: Mar 2007
Posts: 301
Karpagarajan is on a distinguished road
Default Re: Flash Tips & Tricks

Scripting Filters
Professional 8 includes a range of filters that allow
you to add special effects to objects on the Stage.
here I have given the list of filters:
Bevel
Blur
ColorMatrix
Convolution
DisplacementMap
DropShadow
Glow
Gradient Glow
Gradient Bevel
You can apply these filters in design time itself to the movie clip or any other objects.

In action script, you can use like this...
var theBevelFilter = new flash.filters.BevelFilter();
var theBlurFilter = new flash.filters.BlurFilter();
var theColorMatrixFilter = new flash.filters.
ColorMatrixFilter();
var theConvolutionFilter = new flash.filters.
ConvolutionFilter();
var theGlowFilter = new flash.filters.Glow-
Filter();
var theGradientBevelFilter = new flash.filters.
GradientBevelFilter();


thanks
__________________
Karpagarajan. R
Necessity is the mother of invention
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #8  
Old 04-05-2007, 08:28 AM
Karpagarajan Karpagarajan is offline
D-Web Analyst
 
Join Date: Mar 2007
Posts: 301
Karpagarajan is on a distinguished road
Thumbs up Re: Flash Tips & Tricks

Here is the tips to find a string in a given string. In action script, there is no function available like "instr()" in VB. to find a string we need to write a function like ..

function IsStr(SourceStr:String,FindStr:String):Number
{
var dumArr:Array=new Array();
dumArr=SourceStr.split(FindStr);
if (dumArr.length==1)
{
return -1;
}
else
{
var ActualStr:String=dumArr[0];
return ActualStr.length;
}
}

The above sample function will return a pos of the find string in the source string and if it is not found, then it will return -1.

hope it will be useful for you.

thanks
__________________
Karpagarajan. R
Necessity is the mother of invention

Last edited by Karpagarajan : 04-05-2007 at 08:46 AM.
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #9  
Old 07-20-2007, 02:11 AM
Karpagarajan Karpagarajan is offline
D-Web Analyst
 
Join Date: Mar 2007
Posts: 301
Karpagarajan is on a distinguished road
Default Re: Flash Tips & Tricks

Hi All,

Here is the Code tips for creating the Tool tip in your flex application.
class Tooltip {

private var theTip:MovieClip;
private var tFormat:TextFormat;

function Tooltip(hex:Number,hex2:Number) {

this.theTip = _root.createEmptyMovieClip("tooltip", _root.getNextHighestDepth());
this.theTip.createTextField("theText",this.theTip. getNextHighestDepth(),3,1,130,20);
this.theTip.beginFill(hex);
this.theTip.lineStyle(1, hex2, 100);
this.theTip.moveTo(0, 0);
this.theTip.lineTo(135, 0);
this.theTip.lineTo(135, 20);
this.theTip.lineTo(20, 20);
this.theTip.lineTo(10, 20);
this.theTip.lineTo(0, 20);
this.theTip.lineTo(0, 0);
this.theTip.endFill();
this.theTip._visible = false;
this.theTip.theText.selectable = false;
this.tFormat = new TextFormat();
this.tFormat.font = "Arial";
this.tFormat.size = 11;
this.tFormat.align = "center";
this.theTip.theText.setNewTextFormat(this.tFormat) ;

}

public function showTip(theText:String):Void {

this.theTip.theText.text = theText;
this.theTip._x = (_root._xmouse - this.theTip._width)+25;
this.theTip._y = _root._ymouse + 35;
this.theTip._visible = true;
this.theTip.onMouseMove = function()
{
this.theTip._x = (_root._xmouse - this.theTip._width)+25;
this._y = _root._ymouse+35;
updateAfterEvent();
}

}

public function removeTip():Void {

this.theTip._visible = false;
delete this.theTip.onEnterFrame;

}

}
to implement the tooltip class in your application, please copy the below code
var tt:Tooltip = new Tooltip(0xFFFFEC, 0x000000);
btn.onRollOver = function() {
tt.showTip("Previous Slide");
};
btn.onRollOut = function() {
tt.removeTip();
};
Hope it will be very useful for you

thanks
__________________
Karpagarajan. R
Necessity is the mother of invention
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #10  
Old 07-20-2007, 05:24 AM
pesc pesc is offline
D-Web Trainee
 
Join Date: Jul 2007
Posts: 7
pesc is on a distinguished road
Default Re: Flash Tips & Tricks

Quote:
Originally Posted by Karpagarajan View Post
Hi,

Here I have given the short cut key for image open and scaling.

To add a jpeg image to your flash document, press Ctrl+r.

If you want to scale the selected image file, Press Ctrl+Alt+S, the scale window will be appeared. Give the scale value.

thanks

Hi Karpagarajan,

its good, if we dont know the exact value for scaling, there is a another option for scalling an object (may be image or shape or a movieclip somthing) press q when your object is selected the sacling mode appear arround the the selected object (now you can scale or rotate as your wish)
__________________
Thanks
-pesc-
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
C# .Net Tips & Tricks oxygen C# Programming 85 01-08-2009 12:25 AM
SAP Tips & Tricks leoraja8 Operating Systems 0 03-29-2008 12:11 AM
PHP Tips and Tricks Sabari PHP Programming 20 12-18-2007 05:26 AM
.NET tricks & Tips Karpagarajan VB.NET Programming 1 04-23-2007 08:17 AM
SEO Tips & Tricks spid4r Search Engine Optimization 0 03-08-2007 11:03 PM


All times are GMT -7. The time now is 12:48 PM.


Copyright ©2004 - 2007, DiscussWeb. All Rights Reserved.
Our Partners
One Way Moving Companies | Stamford Dentist | Euro Millions Lottery | Home Loans| Furniture

SEO by vBSEO 3.0.0