![]() ![]() Absolute URLs must be prefixed with otherwise, Flash treats them as relative URLs. An example of an absolute reference to a URL is an example of a relative reference is /index.html. >href : Specifies a URL or an ActionScript link event.The URL can be either absolute or relative to the location of the SWF file that is loading the page.The _self option specifies the current frame in the current window, _blank specifies a new window, _parent specifies the parent of the current frame, and _top specifies the top-level frame in the current window. Options include _self, _blank, _parent, and _top. target : Specifies the name of the target window where you load the page.The tag creates a hypertext link and supports the following attributes: So we are going to start off by making it change the way the tag is displayed: p HTML tags and CSS properties available in Flash 9 : We will now create our CSS file, again use any simple text editor to create a blank text file and name it you are familiar with CSS you would know that CSS can format the way any HTML tag looks. Our text file is now ready, save and then close the file. Check it out for the best AS3 tutorials on the internet. Simply paste the following inside your text file: Inside this text file our text will be will HTML formatted so that we can manipulate it using CSS later. Create a new folder for this project, and inside this folder create a blank text file using any simple text editor. So we will create the file to host this text. The text which we will be using in this tutorial will be loaded externally. We are going to start by creating all the backend files and then code our project. Our CSS will be stored in a standard CSS style sheet. This tutorial will teach you how to format some externally loaded text by using CSS.We are going to learn how to use external loaded CSS in AS3 by using it to format some text which we also have loaded externally.This approach offers a lot of flexibility because you can modify the CSS file at any time and your text will look different, you can do that without republishing your swf file. changing the the color of links) and to update the look of the text without having to go back to the source file. Using CSS in Flash provides a number of advantages such as being able to customize your text in deeper ways (e.g. It could be used in Flash projects to format the way text fields look in Flash. ![]() The basics of using CSS in AS3 SeptemPosted by Tournas Dimitrios in Actionscript.Ĭascading Style Sheets (CSS) are simple code sheets that are used to configure the visual look of pages and texts on the web. ![]()
0 Comments
Leave a Reply. |