Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    Flash




Applying Multiple CSS Classes To A Text Element



Hi everyone!

I'd like to apply multiple CSS classes to a text element (Flash7) like this:
<p class="big orange">Formatted Text</p>
The classes are defined in a seperate file "styles.css":
.big { font-family: Helvetica; font-size: 30px; }
.orange { color:#F39500; }

As far as I know, combining classes like this is CSS1 standard and it surely doesn't cause any problems on an HTML page.
Flash however, only interprets "big" OR "orange" but not both together, which is pretty weird - after all that's what "cascading" should be all about.

I couldn't find anything regarding this in the documentation... Did anyone come across this issue? Maybe there's an AS workaround that does the trick?

Thanks!



ActionScript.org Forums > ActionScript Forums Group > ActionScript 2.0
Posted on: 08-18-2006, 09:41 PM


View Complete Forum Thread with Replies

See Related Forum Messages: Follow the Links Below to View Complete Thread

Applying Commands To Flash CS4 Element
I know in tools like Photoshop and Fireworks CS4 you can save commands (ex: series of filters) to an element and then always have it available in the future so you don't have to go through the whole process for each element you want to style the same way. For example, I create a rectangular item and then apply shadow, alignment, bevel, etc...?

Does Flash CS4 have this same type of functionality? I need to change the publish settings for dozens of .fla files and would just as soon as not have to go through the entire process again if I can just apply a command to the .fla instead. Know what I mean?

Many thanks -

Applying CSS To Externally Loaded Text - Multiple Fields, One .txt File?
Ok, first of all, let me say that THANK YOU KIRUPA for a great site with great tutorials...

Here's my question-

I used the tutorial Applying CSS to Externally Loaded Text and it worked like a charm... I've attached the full source so everyone can see how it works... My question is-

How do I follow the same principle and use multiple text boxes in a .swf that pull the content from the one text.txt file?

In the attached fla, the 1st frame has the text box that works great and a button that goes to frame 2. Frame 2 has the same text box from frame 1 and an additional one "kirupa2."

In the text.txt file, there is the standard "kirupa" that loads flawlessly, as well as a "kirupa2" that does not load.

Any ideas, help?

Thanks!

Joe

Applying Classes To Library Items And XML
I'm using making things move with AS3 book.
I want to use the motion scripts to move photos loaded by xml or library items. ie. Ball class is used by Circle class and I want to addchild to ball
used by circle.Can't find x and y of ball. Could anyone point me in the right direction. Thanks

Custom Classes: One Class Tracks Multiple Other Classes?
I'm working on a coloring that allows kids to place objects on a scene and then color them so the image can be printed out. So assume you have sky background, the child can select a bird object, drag it into place and once they have it in place, color everything on the page (with a given palette of colors.)

So far it going great. However I want to track what objects have been added to the drawing on the fly. I have a potential solution using arrays but I'm thinking this is perfect opportunity to start using custom classes.

I'm thinking that I'd create a new instantiate a copy of the object class each time an object is added to the scene. However to track the objects added to the scene I'm thinking I'll also use an listing class to track them.

What I'm not sure about is the would the listing class simply contain an array of object identifiers? Any thoughts on the structure of the listing class?

I'm very new to oop as I've mainly been doing procedural programming up to this point but I'm eager to give this a shot.

Thanks!

Applying Multiple Effects?
hi everyone, i just wanted to know if it's not possible to apply more than just one effect to an instance of a symbol? e.g. if i change the alpha of an instance, then also want to change the tint it takes away the initial alpha effect.

thx for your help!

Applying Multiple OnEnterFrame()'s
Wanted to ask anyone out there about an issue I am trying to get to work. Basically I am building a couple of Movieclip.prototypes that can get called anywhere in the timeline. They both draw on instantiating the onEnterFrame script of MX. They work great when they are called alone/separately, however when I try to call more that one simultaneously....only one of them fires.

Does anyone have some experience in creating a code-based solution for this?
Hope this explains the issue.

Cheers,
jw

Applying The Same Tween To Multiple Layers?
So Ive split my text into seperate layers, and i would like all of them to come in with a weird fade effect that i would keyframe in

i wanted to know if its possible to apply the same effect to multiple layers without doing it over for each layer?

[F8] Applying The Same Action To Multiple Movieclips
Hi there,

I have a movieclip with loads of instances of the same button inside of it. Each instance name is different, i.e. one might be jeff, the other john another dan etc.

I want to apply the same actions to each instance within the movieclip, but don't really want to have to write the code out again and again e.g.

myMC.jeff.onRelease = function(){
//code goes here
}

myMC.john.onRelease = function(){
//code goes here
}

etc.

Is there a way to find out all the instances within a movieclip and give them all the same code?

Cheers,

Bob
info@bobcooper.org.uk
www.bobcooper.org.uk

Applying AS Tween To Multiple Movieclips
I have several movieclip buttons that I want to apply AS tweened rollover and rollout actions to. I am able to create the functions and tweens for 1 and get them working fine, but am having trouble with applying this same functions to multiple movieclips. I am learning and trying to make my code as tight as possible, but I think I am confused.

Here is what I have so far:


Code:

var NewsArray:Array = [News1, News2, News3, News4];
var i = 1;

function over () {
var tw:Tween = new Tween(NewsArray[i],"_xscale",Strong.easeOut,NewsArray[i]._xscale,NewsArray[i]._xscale+5,0.5,true);
var tw2:Tween = new Tween(NewsArray[i],"_yscale",Strong.easeOut,NewsArray[i]._yscale,NewsArray[i]._yscale+5,0.5,true);
}

function out () {
var tw:Tween = new Tween(NewsArray[i],"_xscale",Strong.easeOut,NewsArray[i]._xscale,NewsArray[i]._xscale-5,0.5,true);
var tw2:Tween = new Tween(NewsArray[i],"_yscale",Strong.easeOut,NewsArray[i]._yscale,NewsArray[i]._yscale-5,0.5,true);
}

for (var i = 1; i <= NewsArray.length; i++) {
NewsArray[i].onRollOver = over;
NewsArray[i].onRollOut = out;
}

Applying Multiple Filters To An Object
Hey all,

How do I go about adding multiple filters to an object?

I currently have a MC (txt_mc) on stage, and i'm trying to add two filters, Drop Shadow and Glow - however only the Drop Shadow gets applied:

My code:


ActionScript Code:
import flash.filters.DropShadowFilter;
import flash.filters.GlowFilter;

// Apply the glow filter to the MC.
var glow:GlowFilter = new GlowFilter();
glow.color = 0x009922;
glow.alpha = 1;
glow.blurX = 25;
glow.blurY = 25;
glow.quality = BitmapFilterQuality.MEDIUM;

txt_mc.filters = [glow];

// Apply the drop shadow to the MC.
var shadow:DropShadowFilter = new DropShadowFilter();
shadow.color = 0x004e1a;
shadow.distance = 2;
shadow.angle = 40;
shadow.alpha = 0.8;

txt_mc.filters = [shadow];

Applying A Function To Multiple Movieclips?
i have a sprite that grows as the mouse nears it, and shrinks as it pulls away using the distance formula (provided by the great wangbar)..

how can i apply this to multiple instances on the stage??

ActionScript.......//


 function scanClip () {
    // distance formula
    diffX = _xmouse-clip._x;
    diffY = _ymouse-clip._y;
    // scaling
    scale = 300-Math.sqrt(diffX*diffX+diffY*diffY);
    scale = (scale<100) ? 100 : scale;
    clip._xscale = clip._yscale=scale;
};
Clip.onEnterFrame = scanClip;
;
//
 
stop();
//

Multiple Display Element Manipulation In Dependency
hi all...

so far a quiet and unregistered reader in this good as-resource i am
now a little bit stucked in a project and need a little help...

the problem
i´ve created a fully xml based dynamic teaser with different boxes that
are folding in/out when activated through a click on a sprite...everything is working
fine, but now i want to extend the functionality a little bit and turn into
a blockhead more and more...
i want to resize / move those clips depending on the position / size of
the other elements. you can see a example of this behaviour on sony.com
at the main page...

for examplefour sprites as a basis
click on sprite two expands it, resizes and repositions one, three and four
click on sprite three expands it, resizes and repositions one, two and four
and so on...
the calculations have to be done depending on the values of the other clips...(x,width)

the display objects are stored in a reference array, and i tried a lot of
manipulations with loops and conditions, but in fact this seemed all to
be the wrong approach (to keep it dynamic enough)...
for animation purposes i am using the tweenLite library....

is there any example source or hint where i can read a little bit about
the concept of multiple transformations of displayElements?

any hint is appreciated....


thanks in advance

tuxedo

Applying Events To Multiple Movie Clips
Hi There,

I am just starting out on the whole Flash and Actionscript thing. I am creating an application in Flash 8 Professional where the user drags icons onto a balance and the balance positions itself accordingly.

The user has 6 icons, one of which will balance the scales correctly. The problem is that when the balance tilts the icon should tilt as well. This is no problem in that I adjust the _x and _y values, but it could apply to any one of 6 icons and I'm not sure how to reference it to whichever one is on the balance. I only know how to reference such actions to a specific movie clip.

I could write multiple if statements I suppose. Something along the lines of:

if movie clip 1 is on the balance do this:
this.movie1_mc._x = 439;
this.movie1_mc._y = 300;

if movie clip 2 is on the balance do this:
this.movie2_mc._x = 439;
this.movie2_mc._y = 300;

etc...

But I feel there should be an easier way than this.

Help: Applying A Single Action To Multiple Targets
Hi I'm trying to apply a single action to multiple targets. I am currently using the following code, but to no avail... Everything works properly when I try the script with one object. It only stops functioning when trying to target more than one object.


on (release) {
gotoAndPlay('hit');
with ((_root.button01),(_root.button02),(_root.button03)) {
if (_currentframe >= 75)
gotoAndPlay('off');
}


thank you for any help.

AS3 - Applying AS3 Mask To Multiple MovieClip Loads
The code below loads a file into a mask. It always applies it self to the Home button but not to the About Button. The about loads the photo but now in the mask, home always loads in the mask. Does anyone know a solution?

One unrelated question what tag do I use to get your code to show in a window with color syntax.


Code:
/* load movie in masks */
var movieLoader:Loader = new Loader();

addChildAt(movieLoader, 0);
var box:Sprite = new Sprite();
var matrix:Matrix = new Matrix();
matrix.createBox(400, 100, 0, 100, 100)
box.graphics.beginFill(0x000000);
box.graphics.drawRect(0, 170, 1000, 550);
box.graphics.endFill();
this.addChild(box);
movieLoader.cacheAsBitmap = true;
box.cacheAsBitmap = true;
movieLoader.mask = box;



// HOME DESTINATION
home_mc.addEventListener(MouseEvent.CLICK, homeDestination);

function homeDestination(event:MouseEvent):void {
this.gotoAndStop("home");
var movieRequest:URLRequest = new URLRequest("test.jpg");
movieLoader.load(movieRequest);
}


// ABOUT DESTINATION
about_mc.addEventListener(MouseEvent.CLICK, aboutDestination);

function aboutDestination(event:MouseEvent):void {
this.gotoAndStop("about");
var movieRequest:URLRequest = new URLRequest("test2.jpg");
movieLoader.load(movieRequest);
}

Applying A SetInterval Fade Function To Multiple Duplicated Movieclips
After duplicating a movieclip and positioning them on the stage, I would like to have them all individually fade in, stay for a period of time, then fade out. I have a fade function that uses setInterval and works perfectly for one movieclip, but I can't get it to work for each in a series of duplicated movieclips.

I tried to do this using a for loop that references the unique ID of each movieclip (see commented out code), but it didn't seem to work. Perhaps there is a way to use a for loop to pass the movieclip ID into the fade function?

Following is the code I used (which applies the fade, as I intended only to qDup0, because I commented out the loop that calls all movieclip IDs):

CODE:

Code:
//variable declaration
var fadeOutSpeed = 12;//speed of q movieclip fade out
var fadeInSpeed = 12;//speed of q movieclip fade in
var xPos = 0;//initial x Position of q movieclip
var yPos = 100;//initial y Position of q movieclip
var qAlpha = 20;//initial alpha of q movieclip
var displayTime = 1000;//duration in ms that q remains before fade out
var quantityQ = 5;//total number of q to render onto the stage
var maxQalpha = 60;//sets maximum alpha that q gets to

//duplicate and position movie clips
dupQ = function () {
for (i=0; i<quantityQ; i++) {
qDup.duplicateMovieClip("qDup"+i, i,
//set position, alpha, and size/scale of q movieclips
{_x:xPos+(i*50),
_y:yPos,
_alpha:qAlpha});
with (eval("qDup"+i+".qShape")) {
//set size/scale of each movieclip
_xscale = 20;
_yscale= 100;
}
}
};
dupQ();

//code to fade q and keep it on the stage for a certain length of time (thanks kglad!)
function fadeF(dir) {
//for (i=0; i<quantityQ; i++) {
//qDupID = "qDup"+i;
if (dir>0) {
qDup0._alpha += dir*fadeInSpeed;
if (qDup0._alpha>=maxQalpha) {
clearInterval(fadeI);
startFOutI = setInterval(startFOutF, displayTime);
}
} else {
qDup0._alpha += dir*fadeOutSpeed;
if (qDup0._alpha<=0) {
clearInterval(fadeI);
}

}
//}
}
function startFOutF() {
clearInterval(startFOutI);
fadeI = setInterval(fadeF, 50, -1);//initiates fade out
}
fadeI = setInterval(fadeF, 50, 1);//initiates fading functions

Help Needed: Applying Images/links To Multiple Faces On A 3D Cube
I posted a fortnight ago, but it didn't seem to gain any attention, so I was hoping someone who missed it last time may be able to help me.

I've used two differing 3D Cube ActionScripts, each generates a different type of 3D Cube - one has colored faces and individual links for each side and the other has individual images/movie-clips per face but only one link for the whole cube.

What I want to achieve is a cube with 6 different imaged faces and 6 independent links, can anyone suggest how I could achieve this.

Thanks again

Spry Horizontal Navigation Element Covers Flash Element...
i have a spry navigation bar with a flash movie underneath, and when i hover over the navbar and the submenu pops down it covers the flash movie, but it doesn't cover the .jpg image that is next to the flash movie. how can i fix this? thanks.

Text - Creating A User Sizable/positionable Text Element?
Are there any good methods to create a dynamic text field on the screen, allow a user to type in their content, then resize the field size and enable rotation of this element?

I've been playing with this for a while and can't come up with a stellar solution.

Multiple Classes
Information online seems to indicate that you have to have a separate AS file for each class, as the AS file needs to have the same name as the class.

Is there anyway to combine multiple classes in one AS file?

Extending Multiple Classes
Is it possible in AS2.0 to extend multiple classes?

like :


PHP Code:




class someClass extends oneClass, secondClass{
    // Statements;
}







Help, greatly appreciated.

AS 2.0 Classes (multiple Superclasses?)
Does anyone know an alternative to bypass the fact that AS2 can only implement one superclass? (I'm not talking about interface here)

Also, if I am import the same class within different classes.as throughout the site, can I just combine them into a single import??

Importing Multiple Classes?
I have two .as files and both of them I am trying to import but I get the following error:


Code:
The class 'uweap.as' cannot be imported because its leaf name is already being resolved to imported class 'eSet.as'.
can anyone clarify what the problem is or what a leaf name is?

AS 2.0 Classes (multiple Superclasses?)
Does anyone know an way to bypass the fact that AS2 can only implement one superclass? (I'm not talking about interface here)

Also, if I am import the same class within different classes.as throughout the site, can I just combine them into a single import??

Using Multiple Classes In One Project
Is it possible to use more than one custom class or package in one flash project using CS3? If not how can I build something more complex without writing a 10 page package?

thank you,
Chris.

Multiple Classes And Movieclips?
hello,

yes, its me again

Umm... can you declare multiple classes and then register each movieclip from the library to a different class? It isnt working for me.

I created two different classes and created two entire different movieClips and registered each movie clips to a different class.

However, I can only use on movieClip at a time, when I use the duplicateMovieClip... command to create copies of the movieclip, i find that only those movieclips, whose class i declared first, appear on stage.

Individually both peices of code work ok.

Help?

gopaldass

Help With Instantiating Multiple Classes...
First of all, please go easy on me... I am a newbie in Actionscript.

I am trying to instantiate multiple classes (Node) using the n0 -> n117 variable names. Can someone please point me in the right direction?


Code:
for (var i:Number = 0; i < 118; i++) {
var radius:Number = centerY - 20;
var angle:Number = (2 * Math.PI * i) / 118;
var X:Number = centerX + Math.cos(angle) * radius;
var Y:Number = centerY + Math.sin(angle) * radius;
var nName:String = "node" + String(i);
var nName:Node = new Node(nName, X, Y); //my guess problem is here
}
Thanks,
Trompeta

Classes And Multiple .as Files
Hi

I got several classes, each in it's own .as file, for better code organization.
I want one of the class to be able to access properties and methods of another class' instance.
So here's my document class (ob.as)

Code:
package
{
import flash.display.MovieClip;

public class ob extends MovieClip
{
public static var ad:SYSTEM;
public static var da:PhysicsRenderer;

public function ob():void
{
ad = new SYSTEM();
da = new PhysicsRenderer();
}
}
}
SYSTEM.as:


Code:
package
{
public class SYSTEM
{
public function SYSTEM():void
{
trace("SYSTEM constructor");
}
public static function lol():void
{
trace("lol()");
}
}
}
PhysicsRenderer.as:

Code:
package
{
public class PhysicsRenderer
{

public function PhysicsRenderer():void
{
ob.ad.lol();
}
}
}
On the PhysicsRenderer class, it seems I can actually access the instance (i.e. tracing ob.ad actually outputs something), but the lol() method doesn't work. Neither does any properties, if I add them.

Has anyone else encountered this problem, or perhaps know a solution to this?
Thanks in Advance, Max

Multiple Classes And Movieclips?
hello,

yes, its me again

Umm... can you declare multiple classes and then register each movieclip from the library to a different class? It isnt working for me.

I created two different classes and created two entire different movieClips and registered each movie clips to a different class.

However, I can only use on movieClip at a time, when I use the duplicateMovieClip... command to create copies of the movieclip, i find that only those movieclips, whose class i declared first, appear on stage.

Individually both peices of code work ok.

Help?

gopaldass

Applying Arc To Text
Is there a way to take dynamically created text and apply an arc to it? So if I entered "Hello World" I could make the text look like a flag or apply any number of "wavey" effects to it.

Thanks,

khanathor

Sharing Classes Between Multiple Swf Files
Hi,

Let's suppose I have a main.swf, which loads sub.swf, and both of them have a MyClass.as with some static variables - for instance, like this :


PHP Code:




class {
    public static var var1:Number;
    public static var var2:Number;
}







Now, both swf files have their own version of this class - if I change var1 from main.swf, sub.swf won't be able to see this change.

I know this can be done in AS3 (using ApplicationDomain I think), but is there a solution in AS2?

I need this for my login system, I have a User.activeUser variable which is a reference to, well, the current logged in user.

One solution would be to do _root.User=User (from within my main.swf), and then use _root.User in my sub.swf, but that's a pretty dirty hack-like solution. I know there must be something a bit more elegant.


Thanks!

Multiple Classes Error 1178
hi guys,

I have this


PHP Code:




package Definition{
  public class Hero extends Sprite {
    
    public var HERO_SPRITE_ARRAY:Array;
      
    public function Hero() {
      HERO_SPRITE_ARRAY = new Array();
    }
  }
}

class helper1{
  public var num1:int;
  public function helper1{
    num1 = 0;
  }
}

class helper2{
  public var num2:int;
  public function helper2{
    num2 = 0;
  }

}







and i get this error

1178: Attempted access of inaccessible property HERO_SPRITE_ARRAY through a reference with static type Definition:Hero.

if I comment either only the second helper class, or the first helper class (or both), program runs ok...

Any ideas?

Can A Class Extend Multiple Classes?
Anyone know if this is possible, and what proper syntax would be?

thx!

Sadly the debugger is telling me NO!


Quote:




Line 9: A class may not extend more than one class.
class XmlMenu extends Sound, extends MovieClip {

Simple Question About Multiple Classes
Hi, Im new to AS3 and trying to figure out how to communicate between classes.

If I have a Document class, that on execution creates some instances of another class, how do I read/write vars and call methods of the document class from within this other (non-document) class?

I can trace (parent) from the non-document class, and it gives me the name of the document class, but I cant seem to access any properties of the doc class. Flash tells me I am trying to access a possible undefined property through a reference with static type. (Which I dont think is the case, as the prop I am trying to read is public)

thanks.

Multiple Documents Classes Problem
I have two swf files Main and External, each with their own individual document class.

At runtime, Main loads External as a child object. (A parent container loading web content at runtime)

In the externally loaded swf, I wish to reference the document class of the parent swf (Main), but sine External is loaded at runtime, any reference to the Main class at compiletime generates an error.

How do I reference to Main swf document class in the externally loaded swf, without getting a compiletime error?

How To Put Multiple Classes In A Single File?
Hello,

I'd like to put mutliple classes in a single file. (This would be useful for grouping children that are minor extensions of parent classes or helper classes that are used by one class only).

When I tried to put two classes in one file, I got this error message:
5006: An ActionScript file can not have more than one externally visible definition: Notation.editField, Notation.labelField1

This is the structure I used. Thanks in advance for your help.









Attach Code

package Notation {

import flash.display.*;
import flash.text.*;
import flash.events.*;

public class labelField1 extends TextField {
//Code inserted here
}

class editField extends labelField1 {
trace( "editField");
}

}

Extends, Can I Extend Multiple Classes?
I have a class with both "import flash.display.MovieClip" and "import flash.media.Sound;".
If I do "public class SoundMove extends MovieClip" then I get errors because I didn't subclass flash.media.Sound. If I do "public class SoundMove extends Sound" then I get errors because I didn't subclass flash.display.MovieClip.

Is there a way to extend both MovieClip and Sound?

Custom Events / Multiple Classes
Alright, so I guess my understanding of custom events isn't that great. For discussion sake, let's say I have three classes: base, object, custom eventdispatcher. The objects is an animation that uses the Tweener class. Once the animation is complete, it dispatches a custom event, "ANIM_DONE." Now, my understanding of events is that it should "bubble up" until reaches it's listener, which I have setup in the base class. But I am getting nothing, which tells me it not making its way up to the base class. Here's the code:

Base

Code:
package{
import flash.events.*;
import flash.display.*;
import Animation;

public class Base extends MovieClip{

public function Base(){
var anim:Animation = new Animation();
var customEvent:CustomEvent = new CustomEvent();
customEvent.addEventListener(customEvent.ANIM_DONE, nextAnimation);
}

public function nextStep(e:Event){
trace("nextStep")
}
}
}
Object

Code:
package{
import flash.events.*;
import flash.display.*;

public class Animation extends MovieClip{
var ce:CustomEvent = new CustomEvent();
public function Animation(){
Tweener.addTween(logo, {alpha:1, time:.5, delay:5.7, transition:"easeInQuart", onComplete:ce.animFinished});
}
}
}
CustomEvent

Code:
package{
import flash.events.*;

public class CustomEvent extends EventDispatcher{
public static const ANIM_DONE:String = "animDone";

public function animFinished():void{
trace("animFinished");
dispatchEvent(new Event(CustomEvent.ANIM_DONE));
}

}
}
What am I missing? Thanks in advance.

Managing Multiple External Classes
Hi,

I'm having some trouble getting mulitple external classes to work simultaneously. I have a little game that is running off the document class. I'd like to add a background scroller. I have an external class for the scroller but I don't know how to make the FLA see this additional AS file. If I make the scroller the doc class, it works fine but of course the game doesn't work. If the game is the doc class, the scroller doesnt work. I've been looking for a good (clear) tutorial on how to manage multiple external classes but have not found anything that tells me the steps how to do it. Can anyone help? Thanks!

M

Referencing Multiple Classes In A For Loop
Hi All,

I have an issue here that has me stumped. I'm trying to reference multiple classes in my for loop:

Code:
for(var a:Number = 0; a < 5; a++){
var img[a]:Img[a] = new Img[a]();
addChild(img[a])
}
I have 5 images I'm trying to add to the stage, but when I run the above code, I get the following error:


Code:
1086: Syntax error: expecting semicolon before leftbracket.
However, when I run the following trace:

Code:
trace("img" + [a])
I see the desired result. I've tried multiple combinations but nothing has worked for me yet. Any ideas?

AS3 - Accessing Classes Multiple Times
Hi all,

I have create an AlignMC class that takes 2 parameters; MovieClip, alingType as String..
now when i call it i use:

Code:
var alg:AlignMC = new AlignMC(mcHolder, "AM");
so lets say i wanted to access the same class a few times in one function.. do i have to create another var as AlignMC or is there a better way to do it?

Any ideas? Thanks !

Applying Formating To Text In A Text Field
Hi guys,

I have been struggling to get a simple (or maybe not so simple as it turns out) formating option for text in a textField in Flash MX.

Here is the idea.
I have an empty textField where the a visitor can enter his/her comments. However, I want to give the ability for the user to make PARTS of the body bold, italic or underlined and I cannot get this working.

First I need to detect the selection the user has made
and then apply either bold, italic or underline button.

Any ideas how to get this working?

Thanks in advance

agfbso
(six years of no significant meaning)

Applying Formating To Text In A Text Field
Hi guys,

I have been struggling to get a simple (or maybe not so simple as it turns out) formating option for text in a textField in Flash MX.

Here is the idea.
I have an empty textField where the a visitor can enter his/her comments. However, I want to give the ability for the user to make PARTS of the body bold, italic or underlined and I cannot get this working.

First I need to detect the selection the user has made
and then apply either bold, italic or underline button.

Any ideas how to get this working?

Thanks in advance

agfbso
(six years of no significant meaning)

Xml Element Vs Text Node
can someone please explain the difference between an xml node and a text node? I got a file in the following format:

<Cold name="Colds" description="industiral use">
<color name="summer" />
<color name="fall" />
<color name="winter" />
<color name="spring" />
</Cold>

and for some reason, the inner nodes (ones that begin with "color") are considered as nodetype=3 which is a mystery to me. why is that?
what does a text node mean? how do I make them into xml element types?

Applying Stroke To Text
Hi guys im using flash 5 and was wondering how to apply a Stroke to text??
please help
thankyou
Stu

Applying Scroll To Text
Hello, I´d like to know how could I apply scroll to a text in my movie. I´ve been trying but I´m not able to. Any help will be welcome.



Happy new year for everyone.

Applying AS To Dynamic Text
Is there a way to apply AS to a specific word in dynamic text?
I need to add this AS to a couple of words within a dynamic text box controlled by a scroll bar. when i highlight the words i want to use for the link i only get URL type options. its not a url though rather a load movie command. make sense?

on (release) {
loadMovieNum("testimonials", 2);
}

Applying Gradient To A Text
Hi, can this be done, applying gradient to a text? For example, orange at the bottom and yellow at the top. Can someone tell me how to do this?

Thanks in advance

Applying AS To Dynamic Text
how do i add the following as to a couple of words in a dynamic text field. basically its a html type link but needs to have AS applied to it. the dynamic text is within a scroll box.


on(press) {if (selected == "testimonials"){break;}
else {loadMovieNum("testimonials.swf",2);}
selected = "testimonials";
trace (selected);
gotoAndPlay(15);
}
on (rollOver) {
unloadMovieNum(1);
loadMovieNum("navigatetest.swf", 1);
}
on (rollOut) {
unloadMovieNum(1);
loadMovieNum("infocenter.swf", 1);
}

thanks

Copyright © 2005-08 www.BigResource.com, All rights reserved