ActionScript 3.0 :: Get 2 Separate Visualizations On Different Parts Of The Stage?

May 31, 2010

got a problem with a ByteArray visualization that i'm trying to get working. I'm trying to use 2 visualizations on stage, one to represent the left 256 data values, and one to represent the right data values. as opposed to doing a mirror image (which i have tutorials for) I am trying to get 2 separate visualizations on different parts of the stage. this is my code:

function myLeftVisual(e:Event):void {
graphics.clear();
graphics.lineStyle(1, 0xFF0000);

[code]....

Currently, the left visual works fine - but the right visual is still displaying the same sequence as the left. When I pan the audio fully right, both the visualizations go dead - and start working again when I pan central/left.

View 4 Replies


Similar Posts:


Flash :: Selectively Mask Parts Of The Stage?

Jan 24, 2011

I'm making flash game, and I have the staged masked so your character can only see part of it. However, I don't want the entire stage masked, I only want the "Game Area" masked. Imagine my stage is 800x800. However, the "Game" only takes up the area at the top, 800 by 600. There are 200px at the bottom where I can use for chatting, or displaying information, as your character walks around the game area.

The issue is, I setup my mask, and it masks /everything/ on stage. Even if I have something outside the "game area", it is still hidden behind the mask. So my question is, in my flash application, how can I use my mask in the "game area", and not have other parts of my application affected? Can I selectively put items above the mask?

Edit: Clarifying. My game starts by initialzing the GameScreen object:
game = new GameScreen(); //800 x 600. Declared as class variable
game.y = 40;
addChild(game);

[Code]....

So now, we have my game setup, with a circular hole in the mask and the player can see his character. However, also when the Game Screen object initializes, it places an infomation bar on the screen. This information bar also gets hidden by the mask. The player cannot see it. The issue is, I want this bar (and other components to be added later) to be visible to the player at all times. I can't simply change the shape of the "hole" through the mask, because it moves with the player. So how can I allow that information bar to be seen by the player, while still hiding the game area?

View 1 Replies

ActionScript :: Flash Control To 'play' Visualizations

Nov 15, 2009

I'm building an application which will have a control to play, pause, step forward & step back through different versions of my visualisation - like the controls on your tape deck, but moving my visualisations through time, instead of that battered old Simon & Garfunkel recording.

I would have thought that my various animations would listen out for a particular event which fires on each 'beat' and tells it the time currently on the time line. My 'play' button then kicks off some code which causes one of these 'beat' events to be fired every second (or 5 seconds, depending on the speed selected). The 'step forward' button would cause a single event to be fired, and so on.

Assuming my design makes sense, I'm not clear how I would generate those events at regular intervals. Alternatively, my design might not make sense or be the most effective one for the job.

View 1 Replies

Flex :: How To Build Interactive Data Visualizations

Oct 15, 2010

I'm trying to learn how to build interactive data visualizations, and I think I want to go the Flash/Flex/ActionScript route instead of using Processing.The problem is, I've never understood what the difference between all three is, so I don't know which one I should be learning.It sounds like Flash is more for designers/non-programmers, Flex is more for programmers, and ActionScript is just the programming language used in Flash and Flex (i.e., Flash and Flex are to Actionscript as the iPhone SDK is to Objective C...?). Is this correct?If so, I'm a programmer, so it sounds like I'd want to go either the Flex or ActionScript route. What's the difference between picking up an ActionScript book vs. picking up a Flex book?

View 2 Replies

ActionScript 2.0 :: Sound Visualizations - Reading Levels Of Loaded MP3

Jan 14, 2005

Any way to dynamically read the sound levels of a loaded MP3 to produce dynamic sound visualization in Flash?

View 5 Replies

Adding To Stage When Separate Classes Are Used

Jul 21, 2011

I am having is trying to add objects to stage. At the moment I can not put anything onto the stage unless it is in my Main document class (Main). How would I add to stage in my player class and bullet class?

Code:
package game{
import flash.display.*;
public class Main extends MovieClip{

[Code].....

View 2 Replies

ActionScript 3.0 :: Separate Instance Words With Their Own Buttons On Stage

Nov 19, 2011

I want to have several different words to appear on my stage with their own buttons.
Code:
Process.visible = false;
Cycles.visible = false;
stop();
function playMovie(event:MouseEvent):void {
play();
} startButton.addEventListener(MouseEvent.CLICK,playMovie);
[Code] .....

View 1 Replies

ActionScript 3.0 :: Access MoveClip On Stage From Within A Separate Class?

Apr 16, 2011

you've shown me exactly what i need

View 6 Replies

ActionScript 3.0 :: RSS Reader - Get This Info To Display In Separate MCs On The Stage?

Jun 21, 2011

I am trying to develop a custom AS3 RSS reader. I have got to a point where I have traced the pubDate, description & title from each item of the feed. My issue is how do I then get this info to display in seperate MCs on the stage? I can only display the last post in one MC rather all posts.Here is my AS...

Code:
var container_mc:MovieClip;
var myTotal:Number;
var myItem:XMLList;[code]....

View 3 Replies

ActionScript 3.0 :: Assign 5 Separate Dynamic Text Fields To 5 Separate Buttons?

Apr 18, 2010

What I need to do is assign 5 separate dynamic text fields to 5 seperate buttons and at the same time to those same five buttons i would like to add 5 images that i would  be able to change merely by swapping out the images in the file theyre in on the server.I would also like to get a nice transition between the images...ALSO i want to dynamically load the images for the buttons that will be used for switching from picture to picture(which im thinking i will be able to do after i know the how to do point the aforementioned things.) 

Through tutorials I've found around the net I've been able to get most of the parts together... but i get lost because what they show you for AS2 they don't for AS3 and vice versa, at least that ive seen.so... I guess my question is... would i need to set up 5 seperate dynamic text fields on the stage and then set each one of them to one of the corresponding button. If so what AS code would i need to use to do so.  And if not what would i need to do?
 
The other part of the question would be I know about the UILoader... would i be able to use it as my buttons and images, if so would i need 5 seperate ui loaders for both the Thumbnail buttons and the images or is there a way that would be better to do it?  and once i do that would i do the transitions using frames and tweens like with AS2?

View 2 Replies

ActionScript 2.0 :: Sound Visualizations - Dynamically Read The Sound Levels Of A Loaded MP3

Jan 14, 2005

Does anyone know of a way to dynamically read the sound levels of a loaded MP3 to help produce dynamic sound visualization in Flash?

View 5 Replies

ActionScript 3.0 :: Apply Separate Actions To Separate Keyframes?

Aug 19, 2009

If I create a new flash AS3 file and create two blank keyframes in my actions layer I can add actions to each keyframe separately no problem. I can then easily switch between the actions frames from the menu bar on the left of the actions input panel. However if I try and do this on any of my projects i've been working on for a while when I create a new blank keyframe in the actions layer and try to add actions to it, I get sent straight back to my first actions keyframe and not a nice blank page. Can I even apply seperate actions to seperate keyframes?

View 6 Replies

ActionScript 2.0 :: Loading THREE Separate .swfs Into THREE Separate Tweens

Jan 17, 2011

This is NOT the same as my last thread as i am after three and NOT ONE as last time. In the attached movie there are three seperate movies loading into three seperate tweens. Please note that i am happy with this movie as it is, and do not want to change anything about it except for the script itself. It refurs to three seperate clips "b.a","d.c" and "f.e". What i want is for the script to incorperate all three clips under one name of "mc" And instead of have three seperate widths, "width 1","width2" and "width3" i want the script to also incorperate all three widths and heights into just one name of "width" and one name of "height".

View 9 Replies

Map And Id Of The Their Parts?

Aug 31, 2010

my friend make me doing a map (in ActionScript). After the click on the some place in the map starts the redirect, e.g.

Code:

on (release) {
getURL("http://www.yahoo.com/"_blank);
}

I'm not a flash developer, but I would be to want add the every part of the map a identificator, e.g. id="part1"

PS: I have now the map, where every part have some ID. After the click on that ID I call jQuery event 'click' -- and this I need also in the new flash map.. Is it?

View 1 Replies

Character With Connected Parts?

Aug 5, 2010

Is it possible to make something like the "Bone tool" does in older Flash CS3?I mean make all limbs for a character and connect them together in the joints, so if I drag the hand, the rest of the arm follows in a natural way. So I can easly make motion tween animations.

View 3 Replies

How To Handle Video Parts

May 5, 2011

I have a project where I need to have a video clip play as soon as the SWF starts, and once it's done, the video stops at the end and a prompt to continue appears to transition into another video.I just need to figure out how to handle the video parts of this project, and I need to do this without showing any playback controls on the screan.

View 1 Replies

ActionScript 2.0 :: Protect Parts Of FLA

Feb 6, 2009

I have created a flash file and the company I have created it for now wants the fla.so they can make changes to certain parts of the action script. There are some elements that I want to protect as it took me months to develop. Can anybody give me a solution of how I can send them the FLA but at the same time protect the most important parts of my code? I was thinking that I could maybe create an external .as file for the bits of code that they want to change and like my fla to those parts.

View 3 Replies

Can't Select Parts Of Drawing Object

Oct 23, 2009

Well, I've been using flash a while, but I just ran into a newbie problem.. I must have hit some sort of hotkey, but I can't figure out how to undo it or anything in the preferences. Anyways, I'm running Flash CS4 and normally when you draw a shape and select that shape it selects the fill and it looks like little dots all over the shape when its selected. Now when I click on a shape it has a border around it and I can't just select a piece of the shape. Also, what's bothering me is that when you draw two shapes on top of each other, Flash used to merge those shapes automatically, but now they are staying separate unless I manually Union them. It still says they're drawing objects, its not converting them to symbols or anything, but they are kind of acting like symbols in the way I can interact with them. How can I turn this setting off?

View 2 Replies

ActionScript 3.0 :: Breaking A Video_mc In 2 Parts?

Jan 13, 2010

I saw a website where a video was breaking up in 2 parts.Is there an easy way to do that

View 7 Replies

ActionScript 3.0 :: Take A String And Break It Into Two Parts?

Sep 15, 2010

I'm trying to take a string and break it into two parts. It's a url to a video on a RTMP server.So I've got to take this:

[URL] person17/1031617_person_generic_700kbps (note the removal of the ".flv" which is necessary as well).Right now I'm doing this, which seems overly complicated:

Code:

videoURL="rtmpe://emediadev.mysite.com/ffw/person17/1031617_person_generic_700kbps.flv";
videoURL=videoURL.substr(0,videoURL.length-4); //remove ".flv"
var urlArray:Array=videoURL.split("/");

[code]....

View 1 Replies

ActionScript 3.0 :: Textfield With Different Filters To Different Parts Of It

Nov 26, 2009

I have a TextField object and i want to apply the bevelFilter object with some settings to a part of the textfield and with other settings to the other part of the textfield, like the textField.setTextFormat() does it.

View 1 Replies

Professional :: Animation To Play In Parts?

Aug 24, 2010

How do I make an animation play and pause when I click. Meaning.. I want it to play part the first 10 frames when I click, and then stop. Then when I click again it will play from frame 11 to 20, then I click again it plays 21 to 30.

View 3 Replies

Html :: Overlay Parts Of Div Over Flash?

Jan 11, 2011

usually it can be solved with the "wmode transparent" param, but in firefox i have a strange problem. when i overlay a flash element with a part of a div the div renders strange (like stairs at the border of the flash element)

[URL]

the grey area (and a small transparent area above) is the flash element. the outline is the div with a border.

the error occurs only on FF (i have 3.6) chrome/safari works fine...

CODE:

its an swfobject implementation. the overlaying div/ul is positioned after the
flash-wrapper.
<div id="flash-wrapper">
<object width="740" height="500" type="application/x-shockwave-flash"

[Code].....

View 1 Replies

Actionscript 3 :: ByteArray With Multiple Parts?

May 27, 2011

I'm thinking about distributing bytes of a SWF into multiple files, how can i put a set of bytes in different parts into one byte array?

[Code]...

Also would reading partial bytes into a byte array work?

View 1 Replies

ActionScript 3.0 :: Loading Certain Parts Of An XML Through An ID Reference?

Sep 30, 2009

I have an XML document with different companies and links to different text sources such as "about" etc for each firm.

Now in my company presentation class I want to send an ID reference so if a user clicks on Microsoft the links point to Microsofts information etc. Im loading all other information through another XML and everything works fine, its just the links I cant seem to figure out.

This is my XML

ActionScript Code:
<?xml version="1.0" encoding="utf-8" ?>
<data>
<company id="1">

[Code]......

View 1 Replies

ActionScript 3.0 :: Split Image Into X Parts?

Oct 8, 2010

I'm trying to split an image (in a MC on the stage) into a variable number of parts.

It's not working properly, and I'm pretty sure it's because I'm re-using the bitmapdata and bitmap I create before the loop...

The MC I'm splitting is called 'back'.

ActionScript Code:
import flash.display.Bitmap;
import flash.display.BitmapData;
import flash.geom.Rectangle;

[Code]....

View 2 Replies

ActionScript 3.0 :: Removing And Adding Parts Of A Name?

Feb 23, 2011

I have a bunch of movieclips called firstNameBtn_mc, lastNameBtn_mc and many others. I also have a bunch of movieclips whose names start with the same but instead of "Btn" they have "Arrow", like firstNameArrow_mc, lastNameArrow_mc etc.

What I want is when I click on firstNameBtn_mc it does somthing to firstNameArrow_mc, but there are so many buttons I would like to do it in the following way.

1. get the movie clip's name...something with e.currentTarget.name for example

2. remove the Btn_mc part

3. add the Arrow_mc part

4. do something to the movieclip of that name

View 5 Replies

ActionScript 3.0 :: Possible To Split MovieClip In X Parts?

Mar 23, 2011

I was wondering if its possible to split MovieClip in x parts, and each one of them to be scalable, which means Bitmap is not the answer...?Possible? Impossible?

View 1 Replies

ActionScript 3.0 :: Animation With Some Random Parts

Jun 11, 2011

I'm new to Flash and AS and everything and I've been trying for 2 days now without success.What I'm trying to do is this. The small squares should fade in/spawn in the blue rectangle and fade away/disappear when they hit the red edges.URL...The animation was made on timeline, not using any AS3. The 2 main problems I have is to get the random number to be from negative 1 to 1 and for the squares to move straight and notgenerate a new direction on every frame. I'm not going to show any code cause it's just edited from tutorials and I don't understand half of it and looks terrible.

View 2 Replies

ActionScript 3.0 :: Display Parts Of XML Namespaces

Oct 12, 2011

I have this XML object, and I need to display parts of it so that the user can copy and paste from it. However, whenever I try to, say, display the category section by doing myXML.category, it puts the namespace information in the attributes of the first <category> tag when it displays the xml. Is there a way to get rid of this?

View 5 Replies







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