ActionScript 2.0 :: Unable To Personalize Dynamic Text Properties?

Feb 5, 2009

So i have a really nice flash gallery that i downloaded from a site but i am trying to personlize it. It uses a dynamic text (for the preloaders and the titles) which is post by this procedure :

fullPreloader.onLoadStart = function(target) {
target.createTextField("my_txt",fullImage_mc.getNe xtHighestDepth(),50,50,200,20);
target.my_txt.selectable = false;
};

So what i did was basically to create a new style (my_fmt) and apply it to dynamic style applied by default (my_txt) :

fullPreloader.onLoadStart = function(target) {
target.createTextField("my_txt",fullImage_mc.getNe xtHighestDepth(),0,0,200,20);
target.my_txt.selectable = false;

[Code]....

Anway nothing changes. The text is always the same (Times New Roman which is by default) I also tried to change de height and width definitions but no difference. It only works when i change the x and y position of the text.

View 2 Replies


Similar Posts:


ActionScript 3.0 :: Unable To Dynamic Text And Changing Text?

Sep 9, 2010

I have a Dynamic Text box in my Library.  I drag it to my main stage and give it a name..it is now a movieclip. The name is 'mcAdmin'  I added an event listener for MOUSE_OVER  I want the text to change color, but for now I'm just trying to change the text; however, it's not displaying the change in text I want.  I do a trace, and the change is in there on the output window, but it is not displayed as such.How can I :1) use AS3 to change the font color of the text2) use AS3 to change the text and have it display? 

function onMouseOver_txtAdmin(e:MouseEvent):void{ Mouse.cursor="button";
//Current mcAdmin text is 'Administration'
//I want to change the color of Administartion on Mouse_Over

[code].....

View 2 Replies

ActionScript 2.0 :: Unable To Format Dynamic Text?

Nov 21, 2010

create a picture gallery with XML. There is a loader progress which simply displays a percentage when you click on any image. I have been trying to fomrat this text but with little luck. I am able to apply colors to the text but unable to change the font, size, weight etc.

Here is the text with a color applied

Actionscript Code:
fullPreloader.onLoadStart = function(target) {target.createTextField("my_txt",fullImage_mc.getNextHighestDepth,230,300,300,300);target.my_txt.textColor = 0xFFF;};

[Code].....

View 4 Replies

ActionScript 2.0 :: Unable To Scaling Dynamic Text?

Dec 29, 2006

I'm working on a project that dynamically loads news articles.There is basically a title text box and a news box, both are the same width.I would like to know if there is a way that I can get the dynamic title to scale up/down in font size to fit the width (and also shift the news text down to be about 3px under the title)

View 1 Replies

ActionScript 2.0 :: Unable To Fade Dynamic Text

Jul 20, 2007

I know I need to embed the font and declare the font in a setFormat string.
Code:
this.createEmptyMovieClip("cat",this.getNextHighestDepth());
cat.createTextField("txt",this.getNextHighestDepth(),0,0,100,50);
var my_fmt:TextFormat = new TextFormat();
my_fmt.font = "Times";
cat.txt.embedFonts = true;
cat.txt.text = "cat";
cat.txt.setTextFormat(my_fmt);
cat._alpha = 50;

View 2 Replies

Professional :: Dynamic Text - Change Font Properties?

Sep 1, 2010

I am loading a small scrolling text box dynamically from a .txt doc in the same folder, but I can't find anything about changing the font properties. No matter what changes I make to the code, the font stays size 12, times new roman, black. I want to change all three of these properties, but most of the related forum posts I have found are about changing the font for a given sentence, manually input into the AS. I need flash to list all font in the text file as Arial, 13, and white in color.This is being set up so members of managment can update news without needing flash to do so, so they obviously can't type everything into the AS.

Here is the code I'm using:
var myTextLoader:URLLoader = new URLLoader();
var myTextField_txt:TextField = new TextField();
myTextField_txt.wordWrap=true;
myTextField_txt.width=200;
var style:TextFormat = new TextFormat();
style.size = "12";
style.color = "0xFFFFFF";
style.font = "Arial";

I have created a new font in the library with the settings required, and named it Arial, but this was still unsuccessful.
myTextLoader.addEventListener(Event.COMPLETE, onLoaded);
function onLoaded(e:Event):void {myTextField_txt.text = e.target.data;addChild(myTextField_txt);}
myTextLoader.load(new URLRequest("myText.txt"));

View 4 Replies

ActionScript 3.0 :: Dynamic Text Field Properties Settings?

Jul 28, 2011

I have a 3d wall and I'm passing images and linking through xml. Now I have added the description, but it just displays in the middle. I don't know how to align it. On mouse over, the description of that photo should display there itself, but it is not displaying in the middle (for all the photos). Instead of displaying on the each photos when the mouseover, it displays in one place.

attached is my code

Code:

var name1:TextField = new TextField();
addChild(name1);
var xmlReq:URLRequest = new URLRequest("XML/ImagesData01.xml");

[code]....

attached is my screenshot of the wall, highlighted is he where text displays for all the images when i mouse over.

View 1 Replies

ActionScript 2.0 :: Unable To Make Dynamic Text Spacing?

Sep 24, 2005

is there a way to space dynamic text?through actionscript?the letters of my dynamic text are to dense and i would like to change this.

View 14 Replies

ActionScript 3 :: Flash - Dynamic Text Field Properties Settings?

Jul 27, 2011

I have created a 3d wall and I'm passing images and linking through xml. Now I have added the description, but it just displays in the middle. I don't know how to align it. On mouse over, the description of that photo should display there itself, but it is not displaying in the middle (for all the photos).

Here is my complete code:

var name1:TextField = new TextField();
addChild(name1);
var xmlReq:URLRequest = new URLRequest("XML/ImagesData01.xml"); // rename to your file!!!

[Code]....

View 2 Replies

Flash 4 :: Unable To Find The Properties Menu ?

Apr 10, 2009

I can't find the properties menu in flash 4, my text book references flash 3.

View 1 Replies

ActionScript 3.0 :: Unable To Use Some Properties In Netstream Class?

Sep 13, 2011

I am trying to use "maxPauseBufferTime" property in NetStream class.I am using Adobe Flash Pro CS3. I have defined an object by the name nsStream of NetStream class. When I write nsStream and put a dot next to nsStream it shows me a drop down list of the properties of NetStream. However it doesn't show me maxPauseBufferTime property. I also tried the same with Adobe Flash Pro CS5. Even there the drop down list for nsStream doesnt show me the maxPauseBufferTime property.The adobe help page (first link that shows up when I google for as3 NetStream. Forum rules doesn't allow me to post the link here) indicates that this property is part of NetStream class.

View 3 Replies

ActionScript 2.0 :: Possible To Personalize Browser Scrollbar

Aug 24, 2009

Any way of personalizing your browser scrollbar using actionscript? If so, could you point me in the way of a valuable tutorial. I have a feeling it is uncontrollable through flash though and through Javascript.

View 0 Replies

ActionScript 2.0 :: How To Modify / Personalize Rotating Menu

Sep 17, 2004

Thought this menu was kind of interesting, but I have no idea where or how to modify/personalize it.

View 4 Replies

ActionScript 3.0 :: Unable To Access The Public Properties Of Custom Class

Nov 28, 2008

i wonder why i am unable to access the public properties of this custom class the public var w:Number; and the Public var h:Number; i am tracing them and on an instance of the PreLoader() Class.. and ia m getting NAN;

View 12 Replies

ActionScript 3.0 :: Flash Unable To Access Properties Of A Movieclip From Document Class?

Aug 24, 2011

I am developing a Jigsaw puzzle in Flash. I am developing a class for puzzle piece. The code of the PuzzlePiece class in given as follows.

package
{
import flash.display.MovieClip;
import flash.events.MouseEvent;[code]....

I will be choosing which mask to use based on users selection of puzzle piece.When I try to use traingular mask by adding puzzle.gotoAndStop(2) the swf just flickers. Thought the holder_mc and mask_mc are exactly of same dimension one comes below lower than other though I have not altered the position of the clips within a puzzle piece.If you want to take a look at my fla here it is https:[url]....How to go to a specific frame 2. Why is position of two clips inside the piece changing

View 1 Replies

Flex :: Dynamic Child Control With Dynamic Properties And Bubble Event In 4.5

Jul 18, 2011

i have a question while reading Flex 4 Cookbook i came across the method to dynamically adding control to the container controls but nowhere i came across with how to provide them with the dynamic properties and events like they have created a button dynamically inside a group control but what good a button be if i cannot give it an event dynamically. in the same way i want to add a tree view inside a vbox but what good that be if cannot provide a data provider to it dynamically.actually i am creating an web application where i add the tree view to a vbox and i want to the data provider should also be dynamic depending upon the option i have selected in the combo box.

View 1 Replies

IDE :: Text Panel Properties Doesn't Allow To Underline Text Or To Highlight And Edit A Single Word In A Whole Text Box - Missing?

Oct 1, 2009

I used to have a little text panel (that sat with the color, swatches, and align panels) that I was able to open up and edit text size, color, underline, etc with. It had a much better text editing ability then the properties panel, seeing as the properties panel does not even bother to allow me to underline text or to highlight and edit a single word in a whole text box. Now I don't have it, I can't find the damn thing anywhere, and I want it back. How can I get it?

View 1 Replies

Unable To See The "alpha" Properties When I Select The Symbol Or The Tween In The Timeline?

Mar 19, 2010

I was using CS3 and Flash 8 (macromedia).I am working on a file that was created in maybe flash cs3 or perhaps flash 8, from another developer.It shows tweens on the time line.The developer created fade tweens, with names like "Transform 1" etc.The fades are on symbols (the developer converted  jpegs to a symbols)from 100 percent to 0 percent alpha.I can see the fade go from 100 to 0, but I am unable to see the "alpha" properties when I select the symbol or the tween in the timeline.The tween is displayed in the timeline as a line with an arrowhead at the keyframe when the visibility goes to zero.I do not seem to be able to see the properties for the tween, i.e. 100 in keyframe 1, to 0 in keyframe 20.No information shows in the CS4 "Motion Editor".

I created a tween in a layer that I added, and it seems that CS4 no longer show the lines with arrowheads, but uses a different color for the tween range.And I get the motion properties in the "Motion Editor".I am sure it is pilot error here.Since I just installed CS4, etc.How can I view tween properties, like alpha on a symbol created in an earlier version of Flash?

View 2 Replies

Can't Change Text Properties By Line In Scrolling Text Box

Mar 3, 2011

I have a simple text box with a UIScrollBar component added to it.

The text box properties are set to "input text, multi line.

The problem is when I want to change just one line of the text to a bold or a different color, the whole text box contents changes. I've tried different property setting for the text box itself with no luck.

View 2 Replies

ActionScript 3.0 :: Paragraphs Spacing - Line Space Flash Creates When A Dynamic Text Is Loaded In A Dynamic Text Field

Jun 8, 2009

i have a problem with the line space flash creates when a dynamic text is loaded in a dynamic text field on the stage i put a dynamic textFild with istance name "profile_text". then im loadin in it a text. my text is written in the Notepad like this

[Code]...

i already set a Textformat to my dynamic text with i tryied to play with the "Leading".. but i think it something dealing with paragraph. how i can decrease spacing between paragraphs??

View 4 Replies

ActionScript 3.0 :: Object Oriented Programming - Add Text From String To Dynamic Text Field When Click Dynamic Buttons

Oct 14, 2011

All I want to do is add text from my string to dynamic text field when I click dynamic buttons. What should the as code be for this? Here is my code. Right now I just have the click returning another shape.

[Code]....

View 2 Replies

ActionScript 2.0 :: Unable To Looping Dynamic Mp3?

Apr 28, 2003

I loaded an mp3 dynmically into my movie doing the following:

firstSound=new Sound();
firstSound.loadSound("math.mp3", true);
playing=true;

[code]....

View 3 Replies

ActionScript 2.0 :: Unable To [PHP] Dynamic LoadVariables?

Oct 8, 2002

I would like to know if it's possible todo something like this:loadVariables("script.php?id=<? echo "id"; ?>",0,"POST"); // the echo thing is nonsense I know, but is it possible to paste the $id, that I'm trying to pass to the external script, from my adressbar (browser)?

View 2 Replies

Flex - Enumerate The Properties Of An Object That May Or May Not Be Dynamic

Aug 4, 2010

In order to send a POST request I need to enumerate all properties of a given object. This object may or may not be dynamic. I'm looking for the most elegant solution. This is what I've got so far:

[Code]...

View 1 Replies

Flex :: Add Dynamic Properties From String List?

Jan 1, 2011

I have the following problem in AS3. I have a string like this one: "prop1:val1,prop2:val2,..."; I want to split and parse the string to obtain a dynamic object like this one: {prop1:"val1", prop2:"val2"}.

The simple way to solve it is to cycle through the string values and to do[code]...

Since I know the property names I expect, this works for me, but doesn't seem to be an elegant solution. I'm wondering if there is another way in as3 (similar to the reflection api in java).

View 2 Replies

Flash :: Properties Of A Dynamic Variable Of A Movieclip?

Jan 9, 2012

I do occasionally use this useful property of the flash.display.MovieClip class

for eg:

var mc:MovieClip = new MovieClip();
mc["myVariable"] = myAnotherMovieClip;
mc["myVariable2"] = true;
mc["myVariable3"] = new Array(0,0,1);

Well, I'd like to learn more about this 'feature' of movieclip. As I got to know this from a colleague and do not really know as to what this is called in AS3.

View 2 Replies

ActionScript 3.0 :: Integers As Dynamic Object() Properties?

Jul 28, 2011

I heard that dynamic Object() properties, when looped through via a "for in" do not preserve their original order they were added to the Object.However if I use integers as object properties like this:

ActionScript Code:
import flash.utils.Dictionary;
var obj:Object = new Object();

[code]......

View 2 Replies

ActionScript 3.0 :: Typeof Dynamic Properties In Object?

Aug 28, 2010

I have a complex object with nested objects and arrays in it. I've made a clone function which makes a copy of it instead of a reference so I can keep the original one intact while i change the properties in the clone as such:

Code:
static public function clone (original:Object):* {
var ba:ByteArray = new ByteArray();

[code].....

View 2 Replies

ActionScript 3.0 :: Flash Dynamic Parameters And Properties?

Oct 14, 2011

I am converting the tweens in a project from the standard Flash tweens to TweenLite/Max, but I have encountered a problem, I mean something I don't know how to do, or if it is possible to do.Let's see an example:

old tween:

Code:
new Tween(page1, transitionType, Regular.easeOut, BStart, BEnd, transitionSpeed, true);
where
"transitionType" is a String: "x", "y", "rotationY" or "alpha"

[code].....

how do I set dynamic parameters and properties?

View 5 Replies

Flex :: Unable To Make Dynamic Tree?

Sep 15, 2011

i wanna make a dynamic tree using a lazy loading ,each time i open a folder the tree sends a http request to the server, in this script i'm using just static text to test the tree but , i'm getting in the label of the root all the XML text assigned to the dataprovider, then when i open the root folder i got the childs with good labels , and openitem and closeitem events do not fire how could i make them

import flash.net.URLLoader;
import flash.net.URLRequest;
import flash.net.URLRequestMethod;

[code].....

View 1 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved