ActionScript 2.0 :: Outputting The Mc Name?

Aug 25, 2003

i have a child mc with a loadVars event that gets some text from a file and loads it into a text box.the parent mc is called about_uswhat i want to do is tell loadVars to look for a file of the same name as the parent clip (instead of hard-coding the name - so i can reuse it in other clips in the same project)this is what i have at the moment:// load datamyData.load("myFile.txt");

View 7 Replies


Similar Posts:


ActionScript 3.0 :: Outputting Bitmap Path From Xml File?

Nov 21, 2008

I have an xml file that includes image paths.

I'd like to read that image path from the xml and display the image (a jpg or gif) on the stage.

However, when I trace image_path from my xml file, the result seems to knock off the "http:" part of the node.

Also, when I load the image, the loader ends up being null (maybe this is because I didn't set up an event handler for it).

View 1 Replies

Flash :: Outputting An Array Of Links With No Overlapping?

Jan 27, 2010

When outputting links dynamically, I cannot determine the Y-Pos dynamically. It will work find if my links are single lined. link_txt.y = i*20;

this will only work if the links are Single Lined. assuming they are 15px for height + 5 for spacing.

As soon as they are 2 lines, they overlap. I've tried different methods but unable to figure it out.

View 3 Replies

ActionScript 3.0 :: Outputting Instance Name In A Textfield With Spaces?

Feb 1, 2012

So basically i have a bunch of movie clips which have instance names that i am pushing to an array and then that array is printed to a dynamic text field that displays the list of the movie clips. The issue is, i want this list to look presentable and since instance names cant take spaces only underscores then it looks so un-presentable

ActionScript Code:
import flash.text.TextField;
//Array to hold the target instances, the drop instances,

[code].......

View 4 Replies

ActionScript 2.0 :: Outputting Array On Multiple Lines?

Jan 13, 2004

I have a movieclip that calls an array, but I want that array to be output on multiple lines in the movie. How do I break up an array in such a way that it is output with the equivalent of line breaks?

[Code].....

When the movieclip pulls in the chunks of that array it sticks them all on one line. Is it possible to include some element in the code above to split the elements of the array onto multiple lines when it's output? Is there an equivalent to perl's "/n" which prints a line break, for example? I'd prefer that option than having to create multiple arrays and reengineer the entire function.

View 2 Replies

ActionScript 2.0 :: Outputting Array On Multiple Lines

Jan 13, 2004

I have a movieclip that calls an array, but I want that array to be output on multiple lines in the movie. How do I break up an array in such a way that it is output with the equivalent of line breaks?

for example, if an array is defined like this:
[AS]
phrase = new Array();
thewords="this is line 1 text, this is line 2 text, but it's all going to be on the same line";
phrase=thewords.split(',');
[/AS]

When the movieclip pulls in the chunks of that array it sticks them all on one line. Is it possible to include some element in the code above to split the elements of the array onto multiple lines when it's output? Is there an equivalent to perl's "/n" which prints a line break, for example? I'd prefer that option than having to create multiple arrays and reengineer the entire function. Thanks.

View 2 Replies

ActionScript 3.0 :: Single Cue Point Outputting Multiple Times?

Jul 23, 2009

here's what I have - a custom video player that pulls everything from an XML doc. In that XML doc, I have three sections that contain start, middle, and end times (in seconds) for the video. The goal is to track how many times the start, mid point, and end of the video are reached.

This all works, however I'm encountering a strange action. When I play the movie, I get output that the start point has been hit, then I get three (3) duplicate outputs of the mid point getting triggered, and finally six (6) reports of the end point hit.Strange. The numbers change slightly, (1,3,6 and 2,4,10, and 1,4,8) times for each of the start/mid/end triggers.

Here's the code that I'm using:

("prefs.prefOmnitureStart", "prefs.prefOmnitureMiddle", and "prefs.prefOmnitureEnd" are the numbers in seconds that are pulled from the xml. In my example, they're 2.0, 6.0, and 10.0)

Code:

myVideo.addEventListener(MetadataEvent.CUE_POINT, cp_listener);
function cp_listener(eventObject:MetadataEvent):void {
myVideo.addASCuePoint(prefs.prefOmnitureStart, "sendOmnitureStart");

[code]....

View 3 Replies

ActionScript 3.0 :: Keycode Trace Function Not Outputting All Keycodes?

Oct 16, 2008

The trace function in this file doesn't output all of the keycodes on my keyboard. Some letters generate a keycode and others don't. For instance, "u" outputs 85 but "i" outputs nothing.

Here's the trace function trace(event.keyCode);

[Code]...

View 4 Replies

ActionScript 2.0 :: Outputting Data In Flash To Text Documents, Creating Textdocs With Flash & Mc Filters?

Apr 22, 2007

Question 1: How do I add a filter to a movieclip from actionscript,More specificly, the "adjust color" filter, and I want to decrease brightness, saturation,hue, and contrast... by actionscript...If you dont know what I mean, use the circle tool to create a circle, convert to movie clip, click the "filter" tab, then click + and add a adjust color filter, you'll see what I mean...Question 2: I need to output text to 'text' documents, no I cannot use shared objects for this, as it is a program for a client, and it isn't safe enough for me.

Code:
var archive:Array = [];
archive[7] = "Hello I am the 8th archive";

[code].....

View 4 Replies







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