ActionScript 2.0 :: Tile Tutorial / Slow To Load Always On Top

Jul 21, 2005

I only changed the size from 34 x 34 to 10 x 10. Everything else remained the same. I'm not sure if this is supposed to happen, but it literally takes almost a minute to load/publish preview. One other thing. I have it on the very first layer. I have some simple text on top and it doesn't show. My expertiese in AS is vast. I know enought AS to make a button.

View 2 Replies


Similar Posts:


ActionScript 3.0 :: Check The Existance Of Another Tile To The Left, Right, Or Above And Below, Otherwise The Tile Should Not Be Placed?

Apr 19, 2011

I'm making a game where you place tiles on a grid. When placing a tile, I need to check the existance of another tile to the left, right, or above and below, otherwise the tile should not be placed.. Here is a function I thought would work, that accepts one variable (the position of the tile just as it is about to be placed) :-
 
private function checkSurroundingTiles(gridPosition:uint) {                 var t1 = gridPosition - 12;     var t2 = gridPosition - 1;     var t3 = gridPosition + 1;     var t4 = gridPosition + 12;                 for(i = 0; i < gridRefArray.length; i++) {          var checkTile = gridRefArray[i];                          if(checkTile == t1) {               return true;

[code]....

View 11 Replies

ActionScript 2.0 :: Load External File Into Movieclip Than Tile?

Apr 7, 2011

I'm loading an external logo (.swf) into a movieclip. The user would actually select what logo to load from a list. After loading the selected logo into the empty movieclip, the user can than apply certain changes such as changing the logo colors, the size, the rotation and the position of the logo over a certain product.What I want to do is to expand on this by allowing the user to select whether they want the logo tiled across the product

View 3 Replies

Professional :: Load A Bunch Of External Swfs Into A Tile List?

Nov 19, 2010

I'm trying to load a bunch of external swfs into a tile list. Once the swfs have been loaded I'm adding them to a dataprovider which I then sort and add to the tilelist. Like so:

dp.addItem({label:e.currentTarget.content.getLabel(), path:e.currentTarget.content.getPath(), source:e.currentTarget.content, cost:e.currentTarget.content.getCost(), category:e.currentTarget.content.getCategory()});

It works fine except that the way I'm doing it I have to add a bunch of functions to each swf to know which one is loaded and pass the correct info to the dataprovider.Is there another way to tell which swf has been loaded? Something like this.URLRequest. If I could tell something about it I could compare that to my original xml and find out all the other information I need for my dataprovider.

View 2 Replies

ActionScript 3.0 :: Tile A Pattern Across The Stage But Load It With Loader (png File)?

Aug 21, 2009

I want to tile a pattern across the stage, but I want to load it with loader (png file).I used to do it like that, Tile being bitmap in the library with export name Tile

Code:
var pattern:Sprite = new Sprite();
addChild(pattern);
var g:Graphics = pattern.graphics;
function resizeHandler(event:Event=null):void

[code]....

what do i need to do actually to send this to beginBitmapFill ?

View 9 Replies

Actionscript 3 :: How To Load The Level Data Externally - Building A Tile Game

Jun 14, 2011

I'm building a basic tile game containing 3 layers of 'tiles' image the game has a dimension of 3x3 my data array's look like this:

[Code]...

How can i load this data from an external file which is easy to edit for the level-desiners ? (and what is best to use, xml, json,?) Is is not better to just use 1 datafile instead of 3 and what is the best way to do this?

View 3 Replies

ActionScript 2.0 :: Transition Tutorial Load A Swf Into A Loaded Swf?

Jul 31, 2006

I am working with the transitions tutorial: [URL]... Here is a link to the modified example im working on. [URL]...If you are familiar with this tutorial you will see this is familiar. Main movie checks to see if the specific section is at "midframe" if its not it waits and does nothing, then once you have transitioned to midframe and stopped it, click on the next section will then transition out and load the next movie. I am tring to do a little variation of it.

ok we have mainmovie2004.swf which has 4 buttons. Each button, section1, section2, section3, and section4 all load specific movies to "container" on the main timeline. Section1 button loads section1.swf, Section2 button loads section2.swf...etc. Well I have placed another set of buttons in each section (just section1 and 2 for example sake). Each button loads a specific movie into container_small (yeah I know it doesnt follow camelCode but thats the least of my concerns). I have been messing around with the code and I am able to get Section1 to load, then when I click on the first pink button in section1 it loads section1.1 which is (section1_1.swf). When I click on the next button it just reloads the same section no matter what. The other sections work because when you load section1 and click on any pink button the corresponding swf loads just doesnt ever transition out. The tree would like like this: {mainmovie2004.swf[section1.swf(section1_1.swf)]}.

I think the problem is the last frame of each sub section has an action that will load the next section. I need to get the path correct.

[code]...

View 4 Replies

Slow To Load Up (3-5 Minutes) When Visit The Site?

Jul 11, 2009

My problem is this: I built a Flash website, but it is painfully slow to load up (3-5 minutes) when I visit the site (via Firefox, etc). Once it does load up, everything is fine with navigation, etc. I'm having a hard time figuring out why its taking so long to load up on the web because, basically, I don't know how to trouble shoot.Details: the site is just a portfolio site with pictures and a few motion-things, no complicated animations. The swf file is about 9MB. I do have a flash preloader, but it doesn't show up until after the 3-5 minute "load-up" time. When I do the testing via Flash, its Ok and doesn't show the lag. But once I upload the website files and try to visit my website, the load time problem occurs.My thoughts: do I have to purge my Flash file/library of unused images before creating my swf file? Is there a problem with my html code in my index fil Just in case, here is the html code:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">

[code].....

View 7 Replies

ActionScript 3.0 :: External Swf Running Too Slow On Load?

Dec 9, 2009

I was just wondering if anyone could help me to figure this out - I'm afraid I'm really not sure what the problem is so I'll try to be as specific as I can, if you need me to provide any extra info then just ask.Basically I have a fla file -the menu of my game- that loads external swf files (the various game modes) when the user clicks a button. I can get everything loaded in fine, but it runs at a snails pace and occassionally generates errors (mainly caused by the game mode calling removeChild()) that don't happen when the 'game modes' are run as stand-alone swf files.

Does anyone have any idea what could be causing this? I remove almost all listeners from the menu before I run the game modes, so there's almost nothing that could be using up processor power that's needed for the game - it's a pretty basic game anyway so it shouldn't be processor-intensive to my computer anyway. I've spotted a few other topics similar to this, but they're either not answered or the solution doesn't fit what I'm trying to do.

View 2 Replies

Mysteriously Slow Load Time Only In Some Browsers

Jul 7, 2011

We've been trying every trick to fix a problem with long lag time in video startup in some environments. In particular, there's a long time gap between the time the custom .swf skin appears and the video starts to play. Only some combinations of OS for the FMS server and client browser shows the problem, but for those combinations it is consistent and appears to be a constant of approximately 59 seconds, regardless of the length of .mp4 or number of times played in our custom .swf. (Our .swf accepts a supplied file location for the .mp4 to stream.)

On our main server (Win2008R2), we run a virtual machine that has Win2008R2 installed. If you click on the video URL from a Mac Safari browser on MacBookPro, the load is FAST (a few seconds). On the other hand if you click from IE on any Windows machine (VM or native, Win7 or WinX), the load is SLOW (one minute). If you try locally on the server virtual machine with the FMS and web server (IIS) installed, the load is also SLOW. The reference flash video (i.e. NOT through our .swf) loads FAST. [code]...

View 2 Replies

ActionScript 2.0 :: Perspective In Flash MX (tutorial) - Duplicate A Movie Clip Symbol In The Second Tutorial

Mar 22, 2005

I sent an email to pom regarding a tutorial that he wrote, but the email was bounced and he hasn't replied to my PM. I have followed both of pom's tutorials that involve experiments with perspective in Flash, but I have encountered a problem while attempting to duplicate a movie clip symbol in the second tutorial ([URL]). I have a single instance of the "ball" movie clip symbol appearing at random positions. However, I cannot seem to successfully duplicate the symbol instance at random positions using the loop that pom provided:

[Code]....

View 10 Replies

ActionScript 2.0 :: Small Flash File Slow To Load / Initialize

Jun 21, 2010

I'm developing a little site for a friend. Though the filesize is v. small and it seems to load quickly, there is a delay playing. There are many objects duplicated in AS so undoubtedly this is the problem, but is there any way of initializing them so that the delay is slower? I'm using flash cs3.

View 3 Replies

Professional :: Zoom Into Small Content For Readability Tutorial Or Magnifying Glass Tool Tutorial?

Aug 11, 2010

I have built a catalog in flash that was orginally built in InDesign and exported but it has some small content that is hard to read for the elderly users viewing it and I would like to add a zoom feature or some type of magnifying glass.

View 1 Replies

ActionScript 2.0 :: Tutorial Called Senocular's 3D Car Race Tutorial?

Jul 27, 2005

I am looking for a tutorial called Senocular's 3D car race tutorial

View 1 Replies

ActionScript 2.0 :: Photo Gallery Tutorial With Thumbnails Tutorial

Feb 28, 2006

original: I really just need to figure out how to center the pictures. here is what I did I have modified the tutorial that I finished to have a bigger stage for bigger pictures. Everything is working properly but the pictures are displayed on the left side, I want to have them centered in the stage for the images, after clicking on the thumbnails, plus my images are different sizes as well. ranging from 200x410 to 744x410 but all are the same height of 410. i will post up what I am talking about at the end. I believe it is something within either the action script or the xml coding that allows the position of the image to be differently? please help here is what i am talking about[URL] Continued: Here is my coding in action script:

[Code]....

View 4 Replies

ActionScript 2.0 :: XML / Flash Photo Gallery Tutorial - Load The Swf File Into Another Movie The Dynamic Text Will Not Display

Jan 6, 2007

I'm having some problems with the XML/FLASH Photo Gallery Tutorial ([URL]). When I load the swf file into another movie the dynamic text will not display. Any thoughts to why this is happening.

View 1 Replies

ActionScript 2.0 :: Tile Map Using StartDrag()?

Feb 5, 2009

I'm making a strategy game the uses a tile map to show information about the other players! Every tile is 50*50px and when you start the map it loads about 50 tiles and puts them together (all this from a Flash->ASP->MySQL which i managed to do on my own)

What i need to do is to make the map draggable (kinda like maps.google.com) and make every tile clickable! I can't manage to do both of these things at the same time All the tiles are in a movieclip called mapMc so by creating a big button above the visible map area and write:

ActionScript Code:
on (press) {
allSize = _global.fullMapSize/2; //This gets the size of the map after all tiles have loaded[code].....

And that kinda works (except for the boundaries)Second, when you press a tile, which i stupidly constructed as another button, so every tile is a button (loaded dynamically) with as that fetches the tile information (already fixed ) But how do I combine them?

View 0 Replies

ActionScript 3.0 :: How To Separate A Tile Set

Jun 22, 2011

i no i will use the bitMap draw function and push each 1 into a array in order. but im unsure on how to separate 1 image into seprate 1s. can any1 just give me a quick knolage burst. as soon as im told how to ill be fine coding it just getting my head araound the math(not my strongest subject, bad i no).

View 3 Replies

ActionScript 3.0 :: Image Of Tile Only Showing Once?

Apr 16, 2011

Image of tile only shows once, how can I make it show more than once with my newTile MoiveClip object?
Game.fla
Actionscript Code:
import myPackage.GameBoard;var Map1:Array = [[1, 1, 1, 1, 1, 1, 1, 1],
[1, 0, 0, 0, 0, 0, 0, 1], [1, 0, 1, 0, 0, 0, 0, 1], [1, 0, 0, 0, 0, 1, 0, 1],
[1, 0, 0, 0, 0, 0, 0, 1], [1, 1, 1, 1, 1, 1, 1, 1]];
var Game1:GameBoard = new GameBoard(30, 30);
Game1.setTile(1, waterTile); Game1.setTile(0, dirtTile);
Game1.buildMap(Map1); addChild(Game1);
[Code] .....

View 3 Replies

ActionScript 3.0 :: Tile A Movieclip Instead Of A Bitmap

Jan 31, 2009

I am wokring on a movie and I want to tile a movieclip instead of a bitmap in AS3. I have figured out masking and the bitmap tiling in AS3, but am still encountering trouble finding a good solution for simply tiling an MC symbol across a set width and height in AS3.

View 7 Replies

Flash - Tile Objects In Grid AS3

Apr 8, 2011

I want to put an array of objects into a grid. I know the code is simple but somehow I'm not getting what I want.

Code:
const PADDING:Number = 10:
const COL:Number = Math.floor(Math.sqrt(tiles.length);
const ROW:Number = Math.floor(Math.sqrt(tiles.length);
for(var i:int = 0; i< COL; i++) {
var tile:TileSprite = tiles[i];
tile.x = i * tile.width + PADDING;
for(var j:int = 0; j < ROW; j++) {
tile.y = j * tile.height + PADDING;
}}

Notes:
- The array is declared else where as a public variable
- This is to be part of a game engine I'm building so I want it as flexible as possible
- The tiles as reading their properties for an XML file. But I don't want to use the XML to hard code the tiles' positions.

View 1 Replies

Flex :: Put Headers In Tile List?

Apr 18, 2011

I dont want to make hboxes with labels and all for static headers in tile list... IS there a shortway to put column headers in a tile list in flex easily?

View 1 Replies

Flex :: How To Add Image In Tile List

Dec 14, 2011

I am using Flex Builder 3.0 and i want to add image in tile list dynamically then how its possible.Images are stored in Images folder of src. and my array is similar like that.

private var arrImage:Array = [
{source:"Images/1.png",tooltip:"1"},
{source:"Images/2.png",tooltip:"2"},

[code].....

View 2 Replies

ActionScript 2.0 :: How To Infinitely Tile A Background

Jan 13, 2009

I am looking to take a single image and have it fill the screen....then I want the user to be able to pan and zoom in/out , and the image to be tiled into infinity. So eventually the screen will be filled with tons of little versions of this image. I can do the scrolling and stuff, but I don't know how to infinitely tile a background.

View 4 Replies

Professional :: Possible To Tile Backgrounds Image?

Dec 10, 2009

an image is smaller than the stage, is it possible to tile it?

View 3 Replies

ActionScript 3.0 :: Exit Tile Hover?

Jun 10, 2011

I'm working on this little game and I want a movieclip to appear when hovered over, disappear when the mouse leaves the movieclip, and the visibility should equal false by default.

I have tried almost all the MOUSE_OVER, MOUSE_DOWN, MOUSE_OUT stuff and I already have it so when its hovered over, it appears and when its hovered out, it disappears.. I can't seem to make it invisible by default though.

Here's my code, if its needed.

Code:
import flash.events.MouseEvent;
exit2_mc.addEventListener(MouseEvent.ROLL_OVER, manageMouseOver);
exit2_mc.addEventListener(MouseEvent.ROLL_OUT, manageMouseOut);

[Code].....

View 9 Replies

Actionscript 2.0 :: Tile A Small Mc Instead Of A Bmp Image

Jan 20, 2010

I am trying to tile a small mc instead of a bmp image and I was wondering if anyone knows what aspects of Lee's tutorial need to be changed to accomedate that?

[Code]...

I tried a couple of things and was not able to get the mc loaded onto the stage.

View 1 Replies

Actionscript 3.0 :: Tile A Movieclip As A Background?

May 8, 2010

I have a MovieClip I named mcGrid and I can't figure how to tile it as a background in my flash project. Is this even possible? If so can someone send me in the right direction.

View 2 Replies

Actionscript 3.0 :: TileList Tile Spacing?

Nov 2, 2010

Is there a way of actually controlling the spacing of the tiles I tried imagePadding, but it just pads the image within the tiles. But the tiles still stay next to each other. You can see this when you do a mouse over.

View 3 Replies

ActionScript 3.0 :: Get The Y Value Of Each Item In The Tile List

Feb 26, 2009

Not sure if you guys remember flash paper or not, but basically I am trying to clone it in AS3. The layout anyway, not the actual conversion. I have my PDF pages and SWF format and I have them loading into a tile list. I want to get the Y value of each item in the tile list so I can make a page browser.

View 2 Replies







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