ActionScript 3.0 :: Creating A Large Grid Matrix Of Interactive Objects?

Nov 7, 2009

I am working on a project where I need an interactive matrix of 500x500 clickable lements. I thought this would be an easy task in actionscript3 but boy was I wrong. was able to create a matrix where each element was a Sprite object with attached Mouse click event. But here the performance problems begin. FlashPlayer10 can handle up to 100x100 matrix, but when I increase my matrix I start getting script timeout in browser player... Here is how my "unfinished" matrix looks like.

So how should I approach this problem? I was hoping flash will be able to handle so many elements, but I guess I was wrong. I want to have a pan control to pan around for objects off screen and of course zoom in/out control.It's true I'm not very professional in Flahs and actionscript but a friend who is told me this would be no problem implementing in AS3? I need this in flash as the thing needs to be hosted on website (unless there is a better tool for doing something like this...).

View 12 Replies


Similar Posts:


ActionScript 3.0 :: Creating A Large Grid Matrix Of Clicable Object

Nov 7, 2009

I am working on a project where I need an interactive matrix of 500x500 clickable elements. I thought this would be an easy task in actionscript3 but boy was I wrong. I was able to create a matrix where each element was a Sprite object with attached Mouse click event. But here the performance problems begin. FlashPlayer10 can handle up to 100x100 matrix, but when I increase my matrix I start getting script timeout in browser player... Here is how my "unfinished" matrix looks like.So how should I approach this problem? I was hoping flash will be able to handle so many elements, but I guess I was wrong. I want to have a pan control to pan around for objects off screen and of course zoom in/out control.It's true I'm not very professional in Flahs and actionscript but a friend who is told me this would be no problem implementing in AS3? I need this in flash as the thing needs to be hosted on website.

View 6 Replies

Flex :: Excel - Interactive Heat Map - Import Matrix

Nov 12, 2009

I'm at a very basic level with Flex and with programming in general. I am working on a project where I have data in an Excel (.csv) format, it's a large Excel plot/matrix where each cell has a temperature number. I want to import this matrix into Flex somehow, or parse the data in Flex, so that this matrix turns into an interactive heat with colors corresponding to varying temperatures from blue (cold) to red (hot), and each spot on roll over shows the temperature number.

Should I use plot charts, or some other control? should I convert data into XML or import into a MySQL database, would that be easier for Flex? But then, again, the data is basically just a large matrix, there's no headers/ fields in a traditional database sense, just many cells each having a temperature number. how I can import the data into Flex and use it as data provider to plot the heat map?

[Code]...

View 1 Replies

ActionScript 3.0 :: Creating A Button Matrix?

May 28, 2009

I'm really new to flash, with my background mainly in C++ and Java. But what I'm wanting to do is create a 5x5 button matrix to make a game.I've tried using the visual style of drawing the button and what not, but I really don't like it. I'd like to have like an array of button of object where I can track things like click count for each object. Is this possible with action script?

View 41 Replies

ActionScript 2.0 :: Creating A Matrix Of Squares With A For Loop?

Mar 14, 2008

I want to create a bunch of squares appear in a grid-like fashion but not row by row. I'd like more of a diagonal effect.

Here's the code I have so far:

[code]...

So this sort of works in the sense of it creates a vertical row and a horizontal row. But I need it to actually kind of 'wipe' diagonally across the page.

View 4 Replies

ActionScript 2.0 :: Large Interactive Game With Imported External Swfs - Some Of The Functionality Doesnt Work?

Jun 11, 2010

Im making a flash project in flash cs3 using As2.It is a large interactive game with imported external swfs throughout,Ive placed the lockroot code in all the external swfs.
When i play the external swfs on their own they play perfectly put when imported into the main.fla they don't work properly,some of the functionality doesnt work properly..As an example I have made a jigsaw game using drag n drop and targets, where the code

if(this._droptarget == "/dropTargetOne")
{
_root.dragger1.gotoAndStop("5");}
}

appears I have problems because the code _root.dragger1.gotoAndStop("5"); doesnt work when imported as an external swf.I've tried using this._parent but no success.So I think the problem is to do with using _root which I was hoping would be sorted with this._lockroot = true;

View 3 Replies

ActionScript 3.0 :: Efficiently Creating/populating A 20x20 Cell Matrix

Dec 9, 2009

I have a 20x20 matrix set up in Excel that I'd like to recreate in Flash. Essentially the values are either 0 or a calculated formula of -Fo or 1+2(Fo).

My question is with a matrix of this size, is there an efficient way to create and populate it besides hard coding the address for each data cell? Can I make this using a loop?

I've attached a snippet of what the Excel sheet looks like. Notice the data trend.

View 10 Replies

Actionscript 3 :: Calculate An Objects Scale Using A Perspective Projection Matrix?

May 31, 2011

Im currently building a little 3D particle engine in flash the uses sprites.to set the position of each sprite I am using the projectVector function below. (the viewTransform matrix is the particles world matrix concatenated with a perspective projection matrix)

var projectedPoint:Vector3D = Utils3D.projectVector(viewTransform, point);
sprite.x = projectedPoint.x;
sprite.y = projectedPoint.y;

[code].....

View 1 Replies

ActionScript 2.0 :: Interactive Coloring Book - Large Blank Box At The Top Of The Color Pallet Isnt Changing Color?

Apr 27, 2009

i have been doing this tutorial http:[url]..but i am stuck on PART 8, i have done everything the tutorial has said so far (although my image and the colors used are different) but the large blank box at the top of the color pallet isnt changing color when i click on any color from the pallet.

Also this tutorial doesnt say what version of flash and actionscript is best suited for this.Currently i am using CS4 & Action Script 2.0 but i don't know if this is correct. below there is a link to the fla. file that Coloring_Book.fla.

View 1 Replies

Professional :: Working With Large Objects?

Oct 12, 2010

I am preparing a navigation (using panning) movie in Flash. There is very big (6000x4000) image (area photo from top) on the stage and it's position moves once user moves his mouse. Thus, user can navigate on the area.But flash really drives me insane while working on this movie. It usually suddenly stops and quits with error.I'd like to ask what can i do? should i use a different method???It seems, Adobe becomes stupid on large files and there are bugs in somewhere Flash. For example; how can i use a method like Google Maps (it loads an another image when you move another position. Not loads all images together and doesnt consumpt large amount of resources.)?

View 1 Replies

ActionScript 2.0 :: Filters On Large Objects

Feb 5, 2011

I've been working on an old flash project from a few years back and ran into a little trouble with filters.My program requires the ability to zoom in to any zoom level, which works perfectly fine. And now I've made it so the selected object would glow with the use of Flash's Glow Filter.The problem which has arisen, however is that I get a warning message: "Warning: Filter will not render. The DisplayObject's filtered dimensions (4154, 4154) are too large to be drawn."Now obviously I understand why this would occur, however I'm wondering if there is a way around it. My first guess was setting up a screen size mask, obviously way lower than the max resolution hoping that cull the movie clip to the size of the screen, but that was unsuccessful.

Is there a way to dynamically clip objects and if so would that work? As surely if I could clip the object in run time to the bounds of the screen, the resolution would never exceed that of the screen. If not, any other ideas as to how I can make a large object glow?URL...Also there's dl.dropbox.com/u/956557/Glow/GlowTest.fla if you want to take a gander at the source for that.

View 5 Replies

ActionScript 2.0 :: Matrix Algebra And Matrix Inverse?

Apr 5, 2003

Has anyone here ever developed a function (or general library of relevant functions) that will allow one to find the inverse of a matrix? I've searched the forum archives, as well as the internet more generally, but haven't found anything. If anyone has some leads, I hope you'll pass them along.

If I don't hear anything within the next few days, I might try to develop something on my own, but I'd hate to do so if someone has already done the dirty work.

A solution to this problem would be very useful for 3-D work or anyone doing mathematical programming more generally.

View 14 Replies

ActionScript 3.0 :: Creating Interactive Files With More Than One URL

Apr 22, 2009

I want to create more than one button instance that go to different URL address's. From the Adobe Video Workshop, I got the code:

[Code]....

I get 1021 duplicate function error. I think I understand in priciple what's wrong but don't know how to fix it. MyI knowledge of Action Script 3 is zero. What I need is sample code that works that I could copy and paste, with appropriate changes.

View 4 Replies

How To Manage Sound Objects In Large Presentation

Oct 12, 2010

Part of a larger presentation I've made, there is some background music. What happens is an XML file is read to get a file to play. It plays. When it finishes, it reads the XML again to get the new file. It can also stop when a video plays elsewhere in the presentation then I pick it up where it left off and start the process again. Trouble is, the presentation randomly stops. The music stops and the slides in the presentation stop. The music and slides come from a single XML file. There's also a third part of the presentation (a text crawler) that never stops.

This comes from a totally separate XML file. I never get an error, the presentation just stops on a slide and no more music plays, but the crawler keeps crawling. I've removed all the code for the music and it runs perfectly so it's obviously related to how the music is managed. So, finally, my question is how do I manage sound objects? If I need to create new objects for each sound I load and play, I'll need to do manage the sound from a single function, right? Something like:

Code:
function whatever():void {
if song is not loaded {
read xml, load and play song;
} else if video is playing {
pause the song;
} else if video has stopped playing {
resume song;
}}

View 4 Replies

Flex :: App With Large Number Of UI Objects Is Slow

Jun 10, 2009

I'm building my first Flex custom component, in Flex 3. It is a data table based on the 'Grid' container class, with a simple text Label in each cell. (DataGrid and AdvancedDataGrid were not appropriate starting points for my needs.) The component works quite well using smallish tables, but I tried stress-testing it using a larger table, and have been disappointed by the results.

The component creation process has some slow spots, but those are in my power to optimize and aren't my primary concern. What worry me more are what appear to be limitations in the Flex framework itself.

This 'large' sample table has a bit over 7000 cells in it. This is largish, but still 1-2 orders of magnitude less than the biggest I need to accommodate. In standard Grid structure, the main portion of the component consists of a Grid with 400 GridRows of 16 GridItems each, plus a few other smaller ancillary Grids.

Once the table renders, I find the following:

Mouse-related events are slow to fire. Specifically, I have rollOver/rollOut event handlers registered on each table cell, to let me highlight the cell under the pointer. On a small table, I could move the mouse over the table very quickly, and the highlighting would follow the pointer in real-time. With the larger table, the highlighting is very jerky, changing only about twice per second, skipping over many cells.If I place the mouse cursor over the component and leave it there, my CPU is pegged (one processor core, anyway), and stays that way until I move off of the component, when it drops to idle. My component isn't doing anything at all at this point.

It feels like Flex simply cannot scale to support component trees that are this large. I shudder to imagine how it would behave with 100,000 cells. Perhaps I'm pushing the Grid beyond its intended use, but having an object per table cell doesn't seem like an unreasonable model, and ~14,000 objects in the tree (a GridItem and a Label per cell) seems pretty modest.

View 5 Replies

ActionScript 2.0 :: Creating A Grid?

Aug 10, 2004

i'm creating a grid and i can place everything in nice columns but i cannot figure out how to create a new row. here's the code i use:

Code:
var numColumns:Number = 7;
var columnWidth:Number = Stage.width/7;

[code].....

View 4 Replies

Professional :: Creating Dynamic And Interactive Animation?

Jan 22, 2011

I need to create flash interactive animation for one one of my regular clients, which should look and work similar to example in Nike store Customize:LinkThis is how my clients product (shirt) should look like and what sections should be editable: [URL]Basically it should work this way:1. End user chooses some element of shirt which he would like to edit (for example collar)2. When he clicks on that element, popup windows shows offering two main options: to change color and graphic (texture or pattern), same as on nike store customize example3. After user changes one section (collar) he goes to other section (lets say sleeve) and so on4.

User should be able to zoom in or zoom out that shirt and also if it is possible to rotate it in 4-5 positions5. At the end it should be able to save that work (and load it if he wants to later ) and be able to print it.I have made many animations, games, banners and similar using Macromedia Flash MX and Adobe Flash so I am not a flash newbie but this is a first time I am dealing with this type of work. I know that there is no step by step tutorial for this kind of custom interactive animation but I need some help and and advice how to create these three first steps (1. 2. 3). Regarding steps (4.) and (5.) I think I could realize it (zoom in, zoom out, rotate movieclip, save in database and print screen), because I ahd some previous experince regarding this part.

View 22 Replies

Silverlight :: Tools For Creating Interactive Chart?

Apr 14, 2011

I am creating a project which involves the visualisation of signals and timeline, so I am looking for a charting program which allows me to zoom in and zoom out and with additional functionality e.g. drag and drop or highlight the area.

I have no preference whether it should be WinForms or Web apps, and I am fine to program in either Flash or Silverlight. So I would like to see if you guys can recommend some tools for use.

View 2 Replies

Flex :: Creating Interactive Charts In Flash?

Sep 6, 2011

I'm looking to display some data in the form of charts (line graphs, pie charts etc). I also require them to have a certain amount of interactivity (pan, zoom etc.).

For these requirements, will Adobe Flex be enough for me, or would I need to use flash?

A little research told me that building charts in Flex is easy, but can they be made interactive without using Flash?

View 3 Replies

ActionScript 3.0 :: Creating Interactive Website Tutorials

Aug 14, 2009

I am a member of a clan on a popular gaming website. I'd like to make fully interactive flash videos detailing certain game concepts. Is it possible to do this with screenshots (there are some drop down menus) or would I have to remodel the website in Flash?Basically, I'd like to know how to make it so I can tell the user to click a certain link and take a certain step, we've all seen those types of interactive tutorials.

View 0 Replies

Creating Interactive Map On Surf Webcam Site?

Jun 21, 2009

I have a website which i have built and work on alot, and i would like to create a sort of interactive map (the site is a surf webcam site, and i would love this map to be of the uk, and when you click on certain areas, it zooms in in a sort of google earth type thing, then showing locations of my cameras which the users can click to go to the correct page.) Now I did make something like this ( without the spinny stuff) using jquery and hiding divs etc, but I think to get the best effect would be to make some sort of flash applet. Now I am a complete begineer with flash.

View 1 Replies

ActionScript 2.0 :: Creating An Interactive Display Map For A Client?

Oct 6, 2004

I've been working creating an interactive display map for a client. I've figured out the controls I'd like to use for moving the map, but I'm having trouble with the zooming features.

What I'd like to do is have the user click on the "+" button to zoom in and the "-" button to zoom out. The problem is the map is not centered when the user clicks either button?

Any ideas how I can fix this, or improve it?

View 3 Replies

ActionScript 2.0 :: [Flash CS3] Creating An Interactive Slideshow?

Feb 7, 2008

What I try to make in Flash is some kind of interactive slideshow, with .swf files instead of static images. I want to have kind of control pannel with buttons numbered from 1 to n, always visible at the front layer. In the background, there will be swf files that change, for example, every 30 seconds. And each change consists of fade in and fade out effect of the swf container (and so the loaded swf file itself). During the swf changes, the buttons should change too by switching their states from 0 to 1 and so on. User should be able to skip to any frame he wants by clicking the corresponding button.This is the code I already have:

Code:
// Preparation
button1_mc.framenumber_txt.text = "1";

[code].....

View 1 Replies

ActionScript 2.0 :: Creating An Interactive Photogallery For School?

Aug 28, 2009

For the last couple of weeks, i've been trying to develope an interactive yearbook for my school. Im using an external XML, and trying to push all the data in the xml to assigned arrays. Also im trying to use a for loop to create empty movie clips. This empty clips will serve as "pages" if the total number of students is greater than 25. Also, on these pages im trying to attachMovie to a specific x, and Y, as you'll see in my source code.

Other than that, i can not figure out where im going wrong.When i first try to publish it, it gives me an error saying that the path is undefined, and will not load ANYTHING. if i make a few changes, it just sits there blanky.

[Code]...

View 1 Replies

ActionScript 3.0 :: Keeping Large Objects From Affecting Stagewidth?

Aug 22, 2010

I have a large movieclip that I am adding to the stage (large in dimension, not filesize). Once it is there I plan to manipulate it's X position by clicking different parts of the movieclip. Unfortunately, where I am moving the clip to is based on stage.stageWidth, which changes as soon as you add this movieclip to the stage. So I can't make any accurate tweens or anything like that. Is there a way I can set objects to not affect the screen width when they are loaded? Or still access the property of the actual window's width?

View 3 Replies

ActionScript 3.0 :: Creating A Snapping Grid

Jun 22, 2009

There's not that I can't do this, I just want the best way on how to. I want to create a grid in as3 and draggable items that snap to the grid. I guess you all know what I mean. The best way seems to create small boxes like explained in URL... Then add an addeventlistener to it that when the draggable item hits it, the x and y need to be set. Or is there an easier way?

View 4 Replies

Professional :: Creating A Dynamic Grid

Mar 24, 2011

I would like to create a simple 2D interactive grid.  The user should be able to increase and decrease the number of axis (both X and Y simultaneously) that compose the grid, and also the scale of the grid itself (Zoom in and Out).
 
If this goes well enough, I would like to be able to plot graphical content on the grid that visually changes as the grid itself changes.  They should, in some way, be linked to one another and correspondingly affected by the same two parameters. This, however, would be a second step.  I am more concerned with the base grid model at this point.

View 1 Replies

ActionScript 3.0 :: Creating A Dynamic Grid?

Mar 26, 2011

I would like to create a simple 2D interactive grid.  The user should be able to increase and decrease the number of axis (both X and Y simultaneously) that compose the grid, and also the scale of the grid itself (Zoom in and Out).
 
If this goes well enough, I would like to be able to plot graphical content on the grid that visually changes as the grid itself changes.  They should, in some way, be linked to one another and correspondingly affected by the same two parameters.  This, however, would be a second step.  I am more concerned with the base grid model at this point.

View 1 Replies

ActionScript 2.0 :: Creating A Grid > AttachMovie?

Aug 8, 2003

I'm trying to create a grid of instances of (74x56) clips, and each one of the created instances must be named and numbered in an order so that it goes from left to right, top to bottom. I have been trying this with attachMovie and duplicateMovie, but unable to figure all out. can someone give me a hint?

View 14 Replies

ActionScript 2.0 :: Creating An Editable Grid?

Oct 29, 2004

I'm having problems creating a grid that will change individual movieclips' frame when rolled over when the mouse is down. My script seems to be acting erratically, when I push buttons, all of the mcs change even though the code to change them is onRollOver.Click on the "Create Your Own Map" button in the bottom left.Then you should be able to use the buttons in the bottom right to select the new color/value of the grid items.Here is the code I am using to do this:

Code:
_root.mouseIsDown = 0;
wallSel.gotoAndStop("wall");
pathSel.gotoAndStop("path");[code]....

View 12 Replies







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