ActionScript 3.0 :: XML Text: Controlling The MC?

Mar 25, 2009

I am loading text from an XML file into dynamically created MCs. How do I target those MCs so that I can change where they are, their alpha, etc.? For example, I want them to have zero alpha until the image from the XML node they're in is loaded, then make them visible.

XML:

PHP Code:

<portfolio>
<piece>
<image>portfolio/01.jpg</image>
<description>one</description>

[code]....

View 10 Replies


Similar Posts:


ActionScript 2.0 :: Controlling The Font Color, Font Size And Other Characteristics Of A Text Loaded Into A Text Field From An XML File

Jul 9, 2009

While creating one photo gallery I am facing one problem in controlling the Font Color, Font Size and other characteristics of a text loaded into a text field from an XML File. The name of the text field in question is �my_txt� it loads the title from the xml file attached herewith. how I can control the behavior of the text loaded in that text field.

[Code]...

View 1 Replies

ActionScript 1/2 :: Controlling Appearance Of Dynamic Text

Feb 11, 2010

Is it possible to stretch the font of dynamic text or make it more bold using actionscript2?

View 12 Replies

Professional :: Controlling Navigation Using Text Links?

Jul 7, 2010

I'm creating a project that is going to be quite text heavy. I'm putting the text into external text files (HTML formatted), so I can change to text without affecting the rest of my project.The problem is I want to have text link (i.e different colored and underlines words) in the text that takes you to other parts of the resource (similar to a hyperlink in a web site). I want the text links to move the movie to a different area of the timeline.

View 3 Replies

ActionScript 2.0 :: XML Data And Controlling The Text Format?

Nov 6, 2008

I can't comprehend the following text formatting issues

- i have a .xml with the following nodes for text content

Code:
<page pageID = "page1" gotoURL="/page1/title1" subMenuNumber="1">
<pageTitle>Here our title</pageTitle>
<pageContent><![CDATA[<h2>Title</h2>

[Code]....

View 1 Replies

Dynamic Text Loaded From .txt Controlling Movie Clip?

Aug 26, 2009

Basically when loading dynamic text... the .txt will have a simple yes or no inside of it... nothing more nothing less.I've been trying all morning to get a movie clip to begin playing if the value is "yes", and to NOT play if the value is "no"

Basically i have a movie clip on the main time line named WHM. and im loading a dynamic text file into a dynamic text field named player1whm.

I want to be able to change the text file to yes or no on a whim, and if the value is equal to yes... i want the movie clip to begin playing as soon as it loads that value into the box. If it says no then i want that movie clip to continue doing nothing.I have already been successful at getting yes or no to load into the dynamic text box... i just cant seem to get it to control the movie clip.

View 7 Replies

Creating / Controlling Line Of Text Turned Into Button

Jul 8, 2010

How do I create and control a line of text that i turned into a button. I want to have a selected state built into the button. is that possible? Previously I created a light next to the text that changes color or highlights when the button had been selected, but I would like the text to change color when it is selected and have script that I can use to reset the button state when another button is selected.

Current button:
Actionscript Code:
S1.addEventListener(MouseEvent.MOUSE_DOWN,click_S1);
function click_S1(evt:Event):void {
Truck.gotoAndStop(16);}

View 2 Replies

ActionScript 1/2 :: Text File Controlling Movie Timeline?

Mar 11, 2010

I have a movie where on the main timeline stage I have placed a movie clip (Clip1) and a dynamic text field. I have a .txt document that contains a variable that will always be a number (Var1).
 
Currently, the dynamic text field reads Var1 and displays that number. This is great, but I want Var1 to be used in 2 places:
 
How can I get Clip1 to also read Var1 and, based on the number that is Var1, play a certain frame of Clip1?
 
I'd like it to go like this: If Var1 is <1000 then play frame1, If Var1 is =1000 and <2000 then play frame2, If Var1 is =2000 and <3000 then play frame3, and so on...

View 17 Replies

ActionScript 3.0 :: Controlling Movieclip With Value In Dynamic Text Field

Jan 29, 2009

I have a movieclip called pointer.mc and this movieclip has only two frames, on the first one the arrow points up and I have a stop(); action on this so it does not jump to the next frame which has the arrow pointing down and this frame also has a stop(); action on it.Then I have a dynamic text field with an instance name of tiderise which is calling a variable from a seperate .txt file called tiderise.txt and the variable is &rise= . Now I have programmed the .txt file to only supply two variables either "up" or "down" and these change periodically during the day. (I am actually making an animated tide chart if you haven't guessed already)

What I want is to get some coding that will control the movieclip pointer.mc between frame 1 and frame 2 depending on the value in the dynamic text field with an instance name of "tiderise" that can only return the value's of "up" or "down".I have spent already about 2 hours trying to figure this out with no luck, I only seem to be able to control other dynamic text fields with values from another dynamic text field, but cannot seem to get this to work on a movieclip.

View 5 Replies

ActionScript 3.0 :: Controlling Animation Timing - Services Text Fade In

Oct 27, 2009

I'm new to OOP and AS3. I'm doing my company website. When a mouse event sends you to my services page I have 4 separate blocks of text that fade in. So far I have the first 2 texts blocks fading in at the same time. I want to stagger the timing so the second block of text starts its fade in a fraction of a second later, and so on with the remaining text blocks. Below is the code I've used to fade them in at the same time.

//services text fade in
var servicesText1Tween:Tween = new Tween(servicesText1, "y", Regular.easeOut, 148.9, 140.9, 1, true);
var servicesText1Fade:Tween = new Tween(servicesText1,"alpha",Regular.easeIn,0,1,2,t rue);
var servicesText2Tween:Tween = new Tween(servicesText2, "y", Regular.easeOut, 244.7, 236.7, 1, true);
var servicesText2Fade:Tween = new Tween(servicesText2,"alpha",Regular.easeIn,0,1,2,t rue);

View 6 Replies

ActionScript 2.0 :: Controlling PAN - Passing The Value Of The Dynamic Text Field With A VARIABLE Name

Oct 23, 2004

The following code, when attached to the MC panTracker_mc works as desired, passing the value of the dynamic text field with a VARIABLE name of s1Pan to s1 sound object, thus controlling the pan.

[Code]...

View 14 Replies

ActionScript 2.0 :: Controlling Position Of Data Loaded In A Text Field?

May 20, 2002

I have a scrolling text field, data on a text file (externalVariables.txt) and buttons. Data loads upon pressing the buttons using the following method: on the main timeline:

loadVariables ("externalVariables.txt", "_root");
on each button:
on (release) {

[code]......

View 1 Replies

ActionScript 2.0 :: Controlling A Movie From Hyperlinks In A Dynamic Text Field?

Aug 19, 2004

If I have a dynamic text box with hyperlinks in it, how do I control movie objects through them? I mean is it some kinda code that I'll have to add in the <a></a> tags or some other cool s h i t?

View 1 Replies

ActionScript 3.0 :: Controlling Output On Stage - Change Color Of Text Externally

Feb 12, 2012

ActionScript Code:
myTextField_txt.defaultTextFormat = new TextFormat("monotype", 16, 0x0CFF00, true);
This controls the output to the stage of my fetched text. It works great, but I would VERY much like to control this externally as well. The color for example. How would I call this in a flash variable to change the color externally? Is it possible with this code?

View 2 Replies

ActionScript 3.0 :: Controlling Position Of Text Fields Based On Varying Height?

Jul 6, 2011

I am populating a textfield with text from XML files. I am wondering what the best way is to handle positioning the TF based on the number of lines of text. So if there is only one line, the textfield's 'y' position might be 100, but if there are 2 lines I want it to move to say 80.

View 1 Replies

Controlling One MC From Another?

Jun 23, 2009

i have two MC with two swf files loading into them on my main file. what i am trying to do is have buttons in one MC move something in the my 2nd mc. i know that the _root. will work for controlling my main file but I'm don't know how to go about controlling anything inside of other movie clips.

View 5 Replies

Controlling Multiple Swf In Mc?

Apr 30, 2009

I have 4 buttons in a mc (go to frames and then call up individual swfs (one, two etc)) and play within mc eg.

[Code]...

A person can start any swf by clicking a button and then change the swf by clicking another button.

Is there a way to check if a .swf is running and only work when none are running?

View 4 Replies

Professional :: Controlling One Swf With Another

Aug 23, 2010

I have a site I am working on which has a Flash intro.  The other pages of the site hold a menu that's created in Flash.  For some reason my client wants the ability to go back and view the intro again, which is easily accomplished with navigateToURL.  HOWEVER the intro is broken into two distinct parts and I need to target the second part, which would require something along the lines of gotoAndPlay(500); or something to that effect.
 
What I am having problems with is how do I target a specific frame in a completely different movie, the intro, using a button from the Flash menu within the site.  I'll try to explain it a bit easier.  The top button on staticMenu.swf, which is placed throughout the site (aboutus.aspx, portfolio.aspx, etc...) needs to target frame 500 of mainIntro.swf which is embedded in default.aspx.

View 1 Replies

ActionScript 1/2 :: Controlling Mc From Another Mc?

Feb 23, 2011

I'm mostly a point-and-click user of flash. I'm in CS5 and have built a simple flash website (with A/S1-2) having a primary swf (content.swf) and other transparent swf (home.swf, contact.swf, etc.) that load in for each menu button. When another menu button is clicked, my A/S instructs to unload all mc's from level 1 and load in the next swf in that same level.My challenge. I need to have a button in "home.swf" go to, say, "contact.swf". How can this be done?

View 3 Replies

ActionScript 3.0 :: Controlling One Swf With Another?

Sep 29, 2009

I have to control one swf file with anoter. The situation is as it follows: there are two swf files in my HTML page. One of them contains a movie clip, and the other - buttons, which must control the first one - for example play this movie clip, go to a frame in this movie clip and so on. Is this possible? Maybe there is a way to connect both swf files with AS and after that use the inner instance names.

View 2 Replies

ActionScript 2.0 :: Controlling One SWF With Another SWF

Nov 17, 2009

I have 2 swf's on one HTML page in 2 sperate cells of a table. Each one is a file-o-fax style tab menu. I want to be able to make the tabs in the unselected swf retract to their original position, when using the other swf.

Not sure what I mean? Check out [URL]

View 5 Replies

ActionScript 2.0 :: Controlling One Swf From Another?

Feb 1, 2004

Is there a tut kirupa or other on controlling one swf from another.so clsic example having a loaded playback bar then loading vid or mucis and the universal playback bar can control it.Could this be done either way of loading swfs (Into a movie on the main swf or loaded by levels?)

View 3 Replies

ActionScript 2.0 :: Controlling A MC From Another MC?

Aug 5, 2008

I've got two Movie Clips "MC1" & "MC2" on my main timeline with buttons that give them life so if i click on "MC1" then it plays the open and stops on the "up" frame the next frame in the movie is the "out" which plays the Movie Clip out. but when "MC1" is up and you click on "MC2" i want "MC1" to play the out frame. I'm guessing at this but is this anywhere close?his is the code attached to the button inside of "MC2"

Code:
on (release) {
if ( _root.MC1 = ("up"))

[code].....

View 6 Replies

ActionScript 2.0 :: Controlling A .flv From A.swf

Jun 12, 2009

I have a external .flv movie, that loads as a full screen background movie on the main stage. Using the Netstream class and the instance name of 'netStream' I just want to be able to pause/play this movie when the user click on a button. The button is inside a movieclip.

I thought something like this:

on (press) {
netStream.pause("http://www.website.com/background.flv");
}

View 1 Replies

AS2 :: Controlling Url And External SWF?

Jul 6, 2009

I'm attempting to create a website that uses externally loaded swf files into a shell animation like in Creating A Full Flash Site, only I'm trying to give each swf its own website url (ie. site.com/home, site.com/page2) while still using a single shell animation.

View 1 Replies

ActionScript 2.0 :: Controlling MC Inside One MC From Within Another MC?

Aug 6, 2010

I have three buttons I have built as MC's. In each on the MC's timeline I have another MC's with instance name voted01_mc, votecd02_mc, and voted03_mc, respectively. And each of the MC Buttons have instance names Q01_btn, Q02_btn and Q03_btn.

I would like to find a way to control the "visibility" of a movie clip inside one movie clip from inside another MC. I am sure there is a way to do this such as:

Q02_btn.voted02_mc._visible = false;
Q03_btn.voted03_mc._visible = false;

if the MC I wanted to make invisible was on main timeline I would do something like:

root.voted02_mc._visible = false;
root.voted03_mc._visible = false;

SO this would be inside Button MC 01 making the MC inside 02 and 03 invisible.

View 3 Replies

Dynamically Controlling Many Instances At Once?

Mar 19, 2011

i am trying to control 30 instances of a movie clip dynamically. the instances are as follows

ship1
ship2
ship3

[code]....

coming from php i would just set up an associative array like list array('speed'=>array(false,false,true,...),'weapon '=>array(true,false,....and so on I can not for the life of me figure out how to store this information and then use it as a variable name later.my end result should look something like this .. i just don't understand how to do this in as3 .. it seems unnecessarily convoluted.

Code:

foreach($upgrades['speed'] as $key => $val)
{
UpgradeScreen.'speed'.$key.visible = $val);
this would dynamically call

[code]....

i know the above is incorrect.I want to create this so that it is completely dynamic and the instance names can be feed in dynamically as the array or whatever is being looped.

View 9 Replies

ActionScript 3.0 :: Controlling A MC From Within A Function?

Oct 20, 2008

I dont really know if I can put this into words correcly so I'm including enough code(AS3) to show what I mean. I can see the results from my trace statement so I know my function is ok, but I'm seeing an error once I try to make my MC disappear. Need something inplace of "this.lowerThird_mc.visible = false;". Also, I should note that this code is in a MC that is on the stage where the other MC is.

function onCuePoint(infoObject:Object):void
{
if (infoObject.name == 'CuePoint5')
{

[Code]....

View 3 Replies

Controlling FLV From A Different Area Of The Page?

Aug 19, 2009

I was wondering if I could assign seperate buttons to play, rewind, stop or pause an FLV in my timeline from a seperate area of the page like a remote control as opposed to using a skin in which the buttons would have to sit under the flv. Do I have to use an events listener? Does anybody have an example of the action script I could use. I am using version 2.0 PS. The flv is a progressive download.

View 1 Replies

ActionScript 3.0 :: Controlling A Flv Component?

Jan 18, 2010

I have a small website and on one of the pages I have a progressive video inside an flv component. However, when I go to a new page the video plays in the background and if I hit the play button twice, the video 'double plays'. Is there a way to control and flv component with actionscript 3? I tried using the stop(); command within the function that selects the pages but I get an error message:

[Code]...

View 1 Replies







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