ActionScript 2.0 :: Hide Some (most) Of The Squares From View?

Feb 10, 2004

Now I could do with some hints as to how this should be done Hopefully someone will help me out here.

Ok, basically I have a map (a jpg/gif file), which should be divided into squares (like a chessboard). Each square has a coordinate (X, Y) and other pictures should be shown on top of a map square - like a small house or something (also a jpg/gif file).

It should also be possible to hide some (most) of the squares from view - like with a black square on top or whatever. Perhaps Flash should also make some lines between each square to divide them.

Furthermore only a part of the map should be shown through a window (using a mask, I guess) as the map could be large and buttons at the edge could be used to scroll the map.

View 3 Replies


Similar Posts:


Hide View Stacks In AIR Application?

Jul 24, 2009

I have two viewstacks one for Main menu and another one for submenu. I want to show viewstack page infomation at the time only one viewstacks . Another one hide . if i click submenu viewstack then Mainmenu viewstack will be hide . [code]...

View 1 Replies

ActionScript 2.0 :: XML Gallery - Click To View Or Hide Thumbnails

Jul 14, 2009

anyone know where i can find a AS 2 xml gallery similar to how this one works, with the slideshow, and click to view or hide thumbnails.[URL]

View 9 Replies

ActionScript 3.0 :: Auto View - Hide Navigation - Dock ?

Aug 28, 2009

I Am trying to create a navigation system where the navigation(nav_mc) will slide into screen anytime the mouse is over the plash player and then slide out when the mouse is off the flash player.

I have achieved this quite easily using an invisible button(stage_btn) over the entire flash, with event handlers to initiate tweenlite tweens of the navigation in and out of screen on MOUSE_OVER and MOUSE_OUT

Now i have buttons in nav_mc, that dont receive focus if nav_mc is below the main stage_btn and if i bring stage_btn above the nav_mc it means that when i rollover nav_mc, then stage_mc looses focus and slides out with all my navigation buttons...

Any ideas on the best way to handle this situation - or go about doing the the entire ting in a different way?

ActionScript Code:

View 0 Replies

Actionscript 3 :: Detecting Out-of-view Flex Controls - Hide And Show Based On User Context

Sep 10, 2009

In my flex app I have custom tooltips on buttons that hide and show based on user context. The problem that I dealing with is that when I call my showTips() function I only want to show tooltips on the buttons that visible in the view. So buttons that on a un-selected tab (tabNavigator) should not show the tooltips. For some reason all tooltips are showing. Is there a way to detect if a button is not in current view, like on a un-selected tab?

View 2 Replies

Actionscript 3 :: Show / Hide A Row In Flex AdvancedDataGrid With Hierarchical View But Flat ArrayCollection DataProvider

Sep 9, 2010

I am working on a Flex AdvancedDataGrid with a flat ArrayCollection dataProvider. The requirement is that when the root nodes is closed, the root row should show a subtotal data and when the root nodes is opened, not show the subtotal data.

View 1 Replies

Java :: View Part Of A Web Application - What Technology For A Pretty Intensive Grid View

Aug 3, 2010

I'm about to have to write a web page/app that will serve the agenda for circa 100 people on a page. One line per person, one column per day with 3 clickable zones in each cell. In HTML, the page is way complex for the browser to load quick and there is no possibility to click on a border between 2 cells to for example split an event that spreads among several cells. So I search an not too overkilling technology to render this kind of view. I begun with a PHP generated HTML page but the number of elements in the page make the mouse move jerky.

Moving to JAVA would give me better performances regarding the reuse of the generator of the view but it will still be an HTML page. So, here is my question: do you think that going forward with JAVA and its graphical capability is the simple solution or is Flash a better option for this part of a Web App? I'm afraid of the code I'll have to write in JAVA to handle the GUI presentation as well as the events generated by the 1000's cells plus borders of the page. In Flash, the graphical part seems simpler even if the actions handling is still huge.

View 2 Replies

Flex :: Presentation Model Pattern Can View Specific Logic Reside In View?

Aug 15, 2011

I'm currently using RobotLegs with the Presentation Model pattern to develop a Flex 4 project. I understand that all business logic related to a View resides in the Presentation Model associated with that view, however, I am confused when it comes to View specific logic.For example, I have an indicator that needs to be positioned relatively to list items depending on which list item is selected. Is it acceptable in the Presentation pattern to put the logic that will position the indicator in the View and simply have that logic run in reaction to a selectedIndex property changing in the presentation model?The reason I am considering this is that since the Presentation Model does not have a reference to the view it is difficult to come up with an ideal solution for manipulating view components.

View 1 Replies

Actionscript 3.0 :: Make A 360º View Bubble Like Google Street View

Mar 18, 2010

I am wondering how to make a 360º view bubble, like they use for Google Street View, but have no idea how to go at accomplishing this task... i have the string of photos that i attached in photoshop(so that if you connected the left to the right it would be a full 360º view).

View 1 Replies

ActionScript 3.0 :: Mouse.hide() Error 1061: Call To A Possibly Undefined Method Hide Through A Reference With Static Type Class

Sep 12, 2011

I am using AS 3 Flash CS4, WIndows XP SP3. I am unable to use the Mouse.hide(); method in many of my scripts. If I add Mouse.hide() to a preexisting script, I get the following error; line1 1061: Call to a possibly undefined method hide through a reference with static type Class. If I add Mouse.hide():void; to a preexisting script, I get the following error: line1 Label must be a simple identifier Once this has happened, if I then remove ALL lines of script from the file...but leave the Mouse.hide(); [or Mouse.hide():void;], and also remove all objects from the stage, when I run the file, I still get those same errors.

[CODE]...

View 3 Replies

Professional :: View To A Webpage In Normal View?

Nov 25, 2010

I am using Flash CS4 AS3.. When I open my browser "Internet Explorer 7" it opens normal. But When I open a link using the following Flash code it opens half in length and half in width. I need to click on "Maximise" button to view in full. How to solve the problem? It is our Intranet link.
 
PM3.addEventListener(MouseEvent.CLICK,PM3ClickHandler);
 
function PM3ClickHandler(event:MouseEvent):void { navigateToURL (new URLRequest ("http://engineering/history/thisyear/ceomessage.htm"));
}
 
I tried modifying the line as well. It also doesnt work.
 
navigateToURL(new URLRequest ("http://engineering/history/thisyear/ceomessage.htm"), "_blank");

View 3 Replies

Flex :: Change A View From Inside A View?

Jun 13, 2010

I have one .mxml file (the Application) with a ViewStack (with 4 views) and a ControlBard, obviously I can change the views with it, but what I want to do is: in view #1 I have an image which I want to convert to a "hyperlink", so when I click it I go to View #2, is this doable? Also I would like to pass somehow some data (like a String) to that View #2 (lets say the it's a user avatar I click so I want to go to the second view which will show me his profile, that's why I need his name/id).

View 1 Replies

Flex :: Taken Push View Object Into Next View?

Sep 28, 2011

My problem is that when I try to pass an object from the navigator.pushView(view, dataobject), I can't figure out how to access the dataobject from actionscript. I can access {dataobject.property} from MXML easily, but I want to set a variable in the new view to the passed dataobjects property.

View 1 Replies

ActionScript 2.0 :: Canvas View/cropped View?

Oct 8, 2009

in flash, I encounted a source file that is cropped and I cannot move it, is there some sort of cropped view in flash I dont know about? I cannot find anyinformation about it, it has rulers displayed as far as I remember.

Basically you cannot move in the file to edit anything viewpoint wise, everything outside of the movie area is invisible and not there? As if cropped.

View 0 Replies

Transitioning One Image To Another Using A Grid Of Squares?

Jun 12, 2009

I'm trying to do a transition that you've probably seen many times. Transitioning one image to another using a grid of squares where each square fades at a slightly different time.I've made a complex movie clip made up of several other movie clips with all the squares fading at the rate I'm looking at. When I just play the color squares it works fine, but the minute I turn that master movie clip into a mask for the image I loose the transition/fade completely--just an on off thing.

View 3 Replies

ActionScript 3.0 :: Calculating Pixels In Squares?

Jan 27, 2009

I have a math issue that I have some problems solving.

screen1

screen2

I need to calulate the pixels inside the squares and put them inside an array:

The main square rotates(see screen2) and i have the angle.

Something like attached code.

I have the following values:

- x/y of the main square. ( reference point )

- Width/height of the main square

- Width/height of all the squares

- Angle of main square..

View 8 Replies

ActionScript 2.0 :: Arrange Squares In Column?

Apr 23, 2010

I have a problem with arranging some thumbs in column when I resize the stage. The problem is that it is arranging the last square in line half outside the stage and you can see only a half.

ActionScript Code:
stop();
Stage.align = "tl";
Stage.scaleMode = "noScale";

[code]....

View 0 Replies

Actionscript 3.0 :: Draw Squares With DrawTriangles?

Jan 25, 2010

How do you go about drawing only the outline of squares using drawTriangle. Currently I am using lineStyle to draw my lines but obviously that outlines each triangle. I know i can just draw Squares out using drawRect with no fill but that seems like a waste.

View 6 Replies

IDE :: Link The Red Squares To The Blue Square In 3D With CS4 Only?

Feb 20, 2009

I would like to link the red squares to the blue square in 3D with CS4 only (please no papervision or sandy...)I'm very closed to the solution but I still have a wrong z (visible when you move the mouse to a corner for instance)

[code]....

The main function is drawLines()

View 1 Replies

ActionScript 3.0 :: All TextFields Displaying As Squares?

Mar 18, 2011

I learned about the date class yasterday and made a lil app that will tell me when the next recess at school will be. It worked great when I ran it at home, but now when I try to run it at school all the letters in the textfields displays as squares, the numbers still work tho. The only difference I can think of is that at home i use CS5 and at school is use CS4, the font is embedded in the fla.

View 4 Replies

ActionScript 3.0 :: Manually Refresh The Page To See The New Squares

May 17, 2011

So far my code takes hex codes out of tweets containing a certain hashtag, and draws a square of that hex code colour. If someone were to tweet a new set of hexcodes while you were looking at the site, you would have to manually refresh the page to see the new squares.

[Code]....

View 6 Replies

ActionScript 3.0 :: Switching Between Painting Ellipses And Squares

Jun 23, 2010

I'm doing a tutorial from Adobe Flash CS4 classroom in a book. They're suggesting the following: "create buttons that allow users to switch between painting ellipses and painting squares". I've created the class files for the cirlcle and the square and I've set two hot keys to switch between painting circles and rectangles(it does not work) Now I'm trying to create the buttons.

package {
import flash.display.MovieClip;
public class Rect extends MovieClip {
public function Rect(w:Number = 40,h:Number = 40, color:Number = 0xff0000) {
graphics.beginFill(color);
[Code] .....

View 1 Replies

ActionScript 3.0 :: Cut Up A Movieclip / Existing Bitmap Into Squares?

Jul 19, 2011

If an image is 800 by 600, copy the image's bitmap data and divide the image into, say, 20 by 20 squares, each having a reference to be manipulated later. Im guessing you have to use bitmapdata for that, unfortunately I dont know how to copy bitmapdata from an image's arbitrary x and y coordinates and for a certain width/height.

View 2 Replies

ActionScript 3.0 :: Fill Grid With Different Size Squares?

Mar 8, 2012

I'm trying to fill a grid with different size squares, randomly, and have no overlap. I want my grid to be 100px by 100px. I've tried creating a matrix array (10x10), holding x and y values. My square size is either 10x10, or 20x20. I loop through the matrix randomly picking a square (x,y position) and placing one of the two squares. All of this works fine, but obviously the squares start to overlap.

This is the type of outcome I'm looking for: I tried adding each square to an array, then checking if the current square placed collides (hitTestObject) with an already placed square. This eventually hits true every time, because the square placed matches the same square when placed in the array. Does anyone know of a way to accomplish this? Place each square but do not have overlap?

View 3 Replies

Actionscript 3.0 :: Using Loop To Create Multiple 3D Squares

Jun 8, 2010

I put together this code that builds a container that contains boxes(squares) in an ordered way. Problem is when I rotate the container, the boxes don't stay in their order. (something to do with swapping depths I think) . In fact, they look a bit confusing. Just create a movieClip 24 x 24 and Name it Box. Create another movieClip and name this one Container. Save them in your library. Then just copy this code and compile. You know the routine.

[Code]...

View 2 Replies

ActionScript 2.0 :: Make Each Of Squares Change Alpha Every Second

Jul 28, 2004

I want to make each of the squares (pictured below) change alpha every second or so. (fading).Is actionscript needed to do this?

View 13 Replies

ActionScript 2.0 :: Shape Tweens - Possible To Draw Squares

Jul 10, 2005

How you draw squares for example in AS (if at all possible) and using shape tweens in AS (again if possible).

View 3 Replies

ActionScript 2.0 :: Group Of Squares - One Gets Bigger Others Small?

Nov 6, 2006

I am wondering what that effect is called or how to achieve it where let's say I have 6 squares, 3 on top, 3 on the bottom(2x3 matrix) and where if I click one, it gets bigger, and all the other ones get smaller. The problem here is the how they get bigger. If I click the middle square in the top row, it should stay in it's position and grow where as If If I click the bottom right one, it should grow towards the far left side. I'm guessing the registration point needs to be changed dynamically?

View 3 Replies

ActionScript 2.0 :: Rotating Group Of Squares Around Point?

Feb 22, 2007

I'm actually coding this in Java (with which I have just a few days experience), but as far as the logic goes, I thought this would still be an appropriate place. I'm making a Tetris-eque game and having trouble with rotation. Each shape (rectangle, L, "step", etc) consists of 4 or 5 smaller squares (image below), and I want to be able to rotate the pattern of squares 0, 90, 180 and 270 degrees around a designated point.

x = originX + cos(angle) * radius;
y = originY + sin(angle) * radius;

I thought I understood these, but apparently not, since I can't seem to get it working� For each shape, I would declare the x, y coordinates for each of its smaller squares, relative to one another. Then, I'd send these values to a function that should take the pattern and rotate it according to the specified angle. In Java (to the best of my knowledge), the upper-left is always the "registration point" for graphics. So, I set the relative coordinates for the squares of each shape such that the left side of the leftmost square is at x = 0 and the top side of the uppermost square is at y = 0. Here's an example, the shape of a plus sign (+).

Code:
//top-center
x = squareWidth;
y = 0;

[code]....

no rotation (just the shapes)and this is what happens when I implement the rotation adjustment.

View 7 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







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