ActionScript 2.0 :: Created The Main System Which Works Roughly As Follows?

Apr 29, 2002

i'm creating a flash news scroller that accesses an external file to read news headlines.I've created the main system which works roughly as follows.The main movie clip reads the external headlines & related article texts from a file (using loadvariables) and puts them into an array.I loop over the array creating several new instances of a movie clip (lets call it "news_piece"), placing one above the other. "News_piece" contains 2 text fields called "Headline" and "Article", so i change the contents of these for each instance of the movie, retrieving the contents from the array.The outer movie then scrolls the lot.It works pretty well.

Now comes the difficult bit...stay with me... sometimes the headlines can be 1, 2 or 3 lines in length. So, if I want the article text to start directly below the headline, I guess I'll have to move the lower Text field ("Article") a bit higher in that particular instance of the "News_piece" movie.So, to summarize, I wanna move the co-ordinates of a text field in an instance of a movie clip.

View 1 Replies


Similar Posts:


ActionScript 3.0 :: System Resource Use - Flash Created Vs Photoshop Created?

Mar 14, 2009

I have only one question but phrased it 3 ways:

1) Is it better to pre=render things say in photoshop or have flash render them?

2) if I have a field of stars that drift along; is it better to create that Star Field in photoshop as a single picture (say a .png) or to create a star in my library and add it to a movie clip and then have that drift along?

Lets say I have a blur effect on my stars and have an equivalent on the photoshop.

3) I have heard (and experienced) adding effects like blur takes a fair amount of CPU and memory so was wondering if I created the effect in photoshop and then imported the 'blurred' object into my flash if I could cut down on system resources?

View 2 Replies

ActionScript 2.0 :: Floating MovieClip That Stay Roughly At Same Spot

Aug 5, 2009

I'd like to make a movie clip float about, but stay in roughly the same spot? I'd imagine a simple bit of AS inside an onClipEvent (enterFrame) would work.

View 0 Replies

ActionScript 3.0 :: Flash Noob Treated Roughly While Parsing XML?

Aug 24, 2010

I'm linking an XML document to a Flash file to control all sorts of things and it's going quite well until i tried to fill a dynamic text field with a paragraph of type from the XML document. I've done this a million times in AS2 and I've done it in AS3 using attributes, but this time I'm using childNodes. The dynamic text field is in a movieclip. When I tested it using this code:

var oneComments:String=xmlTestOne.firstChild.childNode s[num].childNodes[1];
oneClip.txtComment.text=oneComments;
...it sort of worked but I get the element tags along with the paragraph text.

[code].....

View 4 Replies

Flex :: Input - Flex On Touch Screen System: Web Sites In Flex Works On Touch Screen System?

Sep 22, 2010

I build a web site in flex that some time take input. Will this website works on Touch Screen environment(KIOSK).My question is we have to make any change to handle input such as prompt on screen keyboard when input fields are get focused or it will manage my device and OS of system(KIOSK, Touch screen system) itself.

View 2 Replies

Flex :: Website Created By FlexBuilder Works On Every Browser That Use Flash?

Mar 20, 2010

Does websites created by Flex Builder works on every browsers that use Flash ?

View 2 Replies

ActionScript 2.0 :: Created Xml Driven Menu That Works Perfectly On Html Page

May 3, 2010

I created a xml driven menu that works perfectly on a html page but would like to use it in a flash site. I loaded the the external menu movie in by using the:loadMovie(); reference but when I try to point the movie link from the menu to the empty movieclip it wont work. below is the code for the button action:[code]

View 0 Replies

ActionScript 2.0 :: Second Swf Works By Itself But Not When Loaded Into The Main Swf

Mar 18, 2003

i have a movie that loads a 2nd movie on a button action. The second movie has some other buttons ("co" & "me") that makes some text pop up with easing. This is the code below. The problem is, the second swf works by itself, but not when loaded into the main swf. I've tried changing _root to _parent as well as various others, but to no avail? Is _root my problem??

[Code]...

View 1 Replies

ActionScript 2.0 :: Created A MovieClip "Main" That Have A Class File "Main.flv" Attached To It

Jun 3, 2008

I have created a MovieClip "Main" that have a class file "Main.flv" attached to it. Inside this movieclip I have several buttons and movieclips.The problem I have is with the reference "this" inside the class file.When I write "this" I get a reference to my movieclip "Main". But when I write this.button I dont get a reference to my buttons inside the "Main" movieclip. The button have an instanse name "button".

View 3 Replies

ActionScript 2.0 :: Create Nav System That Expands To Show Sub-sections / When User Rolls Over Main Section Buttons

May 6, 2005

I am trying to create a nav system that expands to show sub-sections when the user rolls over main section buttons.Let me describe exactly (as best I can) how this would work:A vertical list of 5 menu buttons is stacked and distributed at equal distances.The user clicks a button (lets say Button 2) and Buttons 3, 4, 5 slide down to reveal the sub-nav below Button 2. When the user clicks or rolls back to any of the original 5 buttons, that subnav closes up.Does anyone know of a good tutorial for this type of nav or have anything I might be able to dissect and work from?

View 3 Replies

ActionScript 3.0 :: Load An Assortment Of Random Old Flash Works To A Main Swf?

Oct 27, 2009

I'm trying to load an assortment of random old flash works to a main swf, to just grab bits and pieces from their libraries at runtime.the embedded code of the old SWFs is unimportant and subsequently throws misc errors when i load them in. So I'd just like to disable any external actionscript and really just load an SWF's assets for use.

View 3 Replies

ActionScript 2.0 :: NetStream/netConn Works In Small Test But Not In Main Fla?

Jul 25, 2006

Im using netConnection and netStream in flash 8 to play an external flv. this is my code:

Code:
var nc:NetConnection = new NetConnection();
nc.connect(null);
var ns:NetStream = new NetStream(nc);
vid.attachVideo(ns);

[code]....

The code, buttons and video object are all in the main timeline (scene 1) of a test fla and it works just fine. But, once I take this code and put it in my main fla which loads external audio, text, and supposedly this video, nothing happens. It doesnt play the flv at all.

View 1 Replies

ActionScript 3.0 :: How To Load Manually Created MC On Main Timeline

Jan 25, 2011

I have manually created a empty mc on the maintimeline named 'loadme'. I have my buttons in a movieclip that is on stage and within that mc i have the follwing code to one of the buttons:

knowbtn.addEventListener(MouseEvent.CLICK, knowclick);
var loader = new Loader();
function knowclick(event:MouseEvent):void{
loader.load(new URLRequest("about.swf"));
loader.contentLoaderInfo.addEventListener(Event.CO MPLETE, handleContentLoader);
this.gotoAndPlay("buyingoff");
} function handleContentLoader(event:Event):void {
this.parent.loadme.addChild(loader);
}

I get an error 1119 when I run the swf. Also, is it possible to declare the variable for 'loader' on the maintimeline and then use it in my buttons mc?

View 3 Replies

ActionScript 3.0 :: Class Created Object To Array In Main Timeline?

Jan 16, 2011

class created object to array in main timeline?

View 1 Replies

ActionScript 2.0 :: Access The _global Object, Which Was Created In The Main File?

Apr 5, 2005

Here's some background: I am working on a project in which we have one main Flash file that loads other Flash swfs into an empty movie clip within the main file.The main file instantiates a class I've made (stateManager) into a _global variable.This object keeps track of the most recent states of the other individual files so users can navigate between them all and come back to the same status they left it.Here's the issue:In the sub files, I need to access the _global object, which was created in the main file, many times so I would like to use the 'with' construct to reduce typing. However, because the 'with' statement needs an object to reference, I am unable to publish my files .I've tried adding an if-statement at the top of each file (if(_global. stateManager == undefined){ ), but this doesn't work either.I've included a portion of my code for you.

Code:
import classes.stateManager;
if (_global.stateManager==null) {
_global.stateManager = new classes.stateManager("./InitFiles/global.xml");[code]....

View 1 Replies

ActionScript 3.0 :: Accessing Nested Dynamically Created MovieClips From Main Timeline

Feb 1, 2010

I have a movie clip menu on a main timeline and inside that movie clip I have created four buttons dynamically. How to access those nested buttons/movieClips (add event listeners etc) from main timeline? Here I am adding menu to the display list on main timeline:

[Code]...

View 2 Replies

ActionScript 3.0 :: Tooltips Not Working Inside Embedded Movie Clip But Works On Main Stage

May 17, 2011

I  have a movie clip that is a navigation window and I am trying to have some tooltip hover over the buttons inside the navigation window.
 
If I create a button on the main stage it hovers and works fine but if I create the same clip inside the embedded navigation window the tooltip does not show up.  I do not have any error messages but it is not there that I can see.

View 5 Replies

ActionScript 3.0 :: System.useCodePage - Getting Error 1120: Access Of Undefined Property 'System?

Aug 7, 2009

I got a textfile who i am reading on a serverside script and passing it as a script to my client side as3 code. The problem is that i am using characters like ä,ö,ü,ß and this isn't well displayed. I tried System.useCodePage but the compiler complains about : 1120: Access of undefined property 'System'. It doesnt matter if I tried this on the first line of the 'Action' in the first scene or in the first line of the first .as file i am loading. (btw i am only working with .as file and not in the timeline). When i am importing flash.System.* the compiler complains he dont know useCodePage.

View 3 Replies

Professional :: Created Button For Website But "getURL" Only Works When Test In Flash, NOT Website?

Feb 12, 2010

am i publishing the movie incorrectly? It works great when I preview the flash file (cntrl+enter), but after I publish it and insert it into the html (in dreamweaver), the file shows up and animates perfectly, but when clicked, no link... It doesn't do anything

View 3 Replies

ActionScript 3.0 :: Particle System And Masking - Particle System Movieclips To Display An Image?

Dec 29, 2010

Is it possible to make this a mask? The system contains one movieclip of a circle called ball, also a class called ball and a class called particle. I want the particle system movieclips to display an image...I'm sure this is possible...just have not been able to find a way. A little backround, I'm a completely selftaught n00b when it comes to AS3, but I'm grasping it fairly well... the tutorial is on this website, called A Simple Particle System Using Actionscript 3.

View 0 Replies

ActionScript 3.0 :: Movie Clip ROLL_OVER Only Works Once But MOUSE_OUT Works Infinitely

Apr 11, 2011

I have a movie clip (with instance name rectangle_mc) on the stage. Within this movie clip there are two separation animations on the timeline. The ROLL_OVER animation starts on frame "over" and the MOUSE_OUT animation starts on frame "off." If I roll over the movie clip, the initial animation plays, and when I mouse out the other animation plays to restore it to it's initial state. However, once the rollover animation has played once, it will not play again when I roll over it again, but for some reason the MOUSE_OUT plays every time.

[Code]...

View 1 Replies

ActionScript 3.0 :: Keyword "this" - Refer To The Current Instance Variable Being Created When Its The Only One Being Created?

Dec 11, 2009

When an instance variable is constructed by a constructor method, why do you need to refer to the current instance variable being created when its the only one being created? I understand assigning an expression to it but why name it "this." when it is the only object that the constructor is building? Does it have some hing to do with being able to naming that object in the Local Variable? In other words am I creating a generic object that will be named in another class?

View 7 Replies

ActionScript 2.0 :: Command External SWF-file To Play Outside Of The Main Movieclip Via Button From Main?

Jan 17, 2012

I Have a flashmovie thats almost done and will soon hit the internet, but I want to add some animations into the website it�s two gears that I�m about to put at the bottom of the page and when a button releases in the main flashmovie the two bottom gears will turn a few frames and just stand still.These three movies are all separate (main movie, first gear and second gear).

It's a homepage designed in HTML and flash that has this "main flashmovie" in the middle of the screen, the size is about 1500(width)X800(height). And the gears is about 800wX200h placed at the left and right side bottom of the page. Dont worry the site is easy to apply to any screen resolution.I have been looking everywhere for any soul out there who suffering from the same problem but no success. Is it possible to script a button in the main movie to launch two separate movies in their own contents?

View 2 Replies

ActionScript 3.0 :: Buttons On The Main Page Doesn't Goto And Stop At Other Frames In The Main Scene

Jun 14, 2010

I added a website preloader in a separate scene to the main frame of my website and scripted it to go to and Play the main scene or frame of the website when finished loading. I then put a command in the first frame of the main scene for the movie to stop (); at that point. The problem is that now the buttons on the main page don't respond to any behaviour commands to go to and stop at other frames in the main scene. I'm not sure if this is a conflict between the stop(); command in the main scene and the button behaviour command to go to and stop at another frame or an error with the way I'm identifying the scene and frame.

View 5 Replies

ActionScript 3.0 :: Execute Functions In Main Document Class When Main Timeline Reaches Frame X

Oct 16, 2009

I have 3 functions in my main document class that I want to execute when the main timeline reaches a particular frame number. how do I do that?

see the code and comments

public function mainClass()
{
//stage declaraction
stage.align = StageAlign.TOP_LEFT;

[Code]....

View 5 Replies

ActionScript 3.0 :: Access A Public Function (main.as) From Main.fla?

Oct 8, 2010

If I have a main.fla and main.as (where I written a Main class).

How can I access a public function (main.as) from main.fla?

View 4 Replies

ActionScript 2.0 :: Load Main Swf File (main.swf) On Top Of Background

Sep 24, 2004

I have a background swf that has been coded so that it scales with the browser. I want to load the main swf file (main.swf) on top of this bg so that it is always centred on the page.

View 2 Replies

ActionScript 3.0 :: Targeting Dynamically Created MC Within Another Dynamically Created MC?

Feb 17, 2010

I'm dynamically creating movieclips with dynamically created movieclips inside them and am having trouble with targeting them.Below is a simplified example of what I'm trying to achieve, in the real file there are a lot more movieclips and I'm creating and naming them with a for loop.

This one is just one Sprite created inside another sprite. I can target the top level sprite named "testname". However when i try target the nested MC it throws an error.The bottom couple of traces are just test MCs I've made to make sure i got the syntax right, on targeting nested movieclips.

PHP Code:

var holder:Sprite = new test1();holder.name = "testname";this.addChild(holder);var holder2:Sprite = new test2();holder2.name = "testname2";holder.addChild(holder2);trace(getChildByName("testname").x); //this one traces finetrace(getChildByName("testname").getChildByName("testname2").x);//this throws up an errortrace(testclip1.x);trace(testclip1.testclip2.x);

View 1 Replies

ActionScript 2.0 :: .load Six Separate External .swf's Into The Main Movie While The Main Movie Loads Too

Dec 23, 2004

I want to load six seperate .swf's into the main movie while the main movie loads too. So in simpler words, i want to be able to load all of the swf's the same time i am loading the main swf.

View 2 Replies

Bugs In IK System?

Jun 2, 2009

When I use IK system to build a man and move it to perform poping, I found the more poses I gave to it the more its arms and legs would drift away. I didn't use alt and mouse to move the limbs. I only use my mouse to pose it. But WHY after I finished some poses, the limbs of the figure would get loosened?What was worse, If i adjusted those limbs(by alt and left click-drag) to fix the drift, the poses I have finished would be messed. So, what should I do?

View 3 Replies







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