Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    Flash








MSN Chess | Hmm Strange | How Did They Do That | Maybe A Tough One?


Hi,

MSN chess is a great online chess game made with macromedia flash when you go there, they ask you to download an activex control to be able to play the games.

Now this is very strange, I wanted to see those swf files offline in my cache but its impossible and I am unable to locate them, I have seen cab files and some swf's but these swf have nothing to do with the actual game. So my question is are the swf's embeded inside these cab files??? and if so how did they do that or how are they able to extract the swf in memory and not to the user's cache and still allow him to view and play the game?

you can check it out here, you will need to have a normal hotmail account to login.

http://zone.msn.com/en/chess/default.htm

so can someone please explain how this activex control the we have to download allow this to happen? or I am missing something?

Thanks in advance




FlashKit > Flash Help > Flash ActionScript
Posted on: 11-16-2006, 08:47 PM


View Complete Forum Thread with Replies

Sponsored Links:

MSN Chess | Hmm Strange | How Did They Do That | Maybe A Tough One?
Hi,

MSN chess is a great online chess game made with macromedia flash when you go there, they ask you to download an activex control to be able to play the games.

Now this is very strange, I wanted to see those swf files offline in my cache but its impossible and I am unable to locate them, I have seen cab files and some swf's but these swf have nothing to do with the actual game. So my question is are the swf's embeded inside these cab files??? and if so how did they do that or how are they able to extract the swf in memory and not to the user's cache and still allow him to view and play the game?

you can check it out here, you will need to have a normal hotmail account to login.

http://zone.msn.com/en/chess/default.htm

so can someone please explain how this activex control the we have to download allow this to happen? or I am missing something?

Thanks in advance

View Replies !    View Related
Chess Fla
Do you knowe some good chess fla online? It seems i seen it before but i cannot find some now, if you know some links, please post, no multiplayer or comupter stuff(altought that would be great ) but simple 2 player flash chess and fla so i can see how to do it and make my own

thanx

View Replies !    View Related
Flash Chess
This was completed with MX scripting any guesses on how?

http://www.media-division.com/flashchess.htm#

View Replies !    View Related
Multiplayer Chess
I am looking for a person that can build a multiplayer chess game for www.chesskit.com in flash or other.

Basically what is required is a lobby, where everyone can chat, and tables where people can sit down and specify info on time etc.

Similar to yahoo.com or zone.com/chess

Please email webmaster@chesskit.com if you are interested.

View Replies !    View Related
Chess Game
I started to do a chess game.
I've drawn the figures and the board.
The figures are moved like this:
There is a button inside each movie clip of a figure that does this:
code: on (press) {
startDrag("_parent", true);
}
on (release) {
stopDrag();
}

My questions are:
1. How do I define the legal moves?
2. How do I make that when the figures are released, they snap to the center of the square?

View Replies !    View Related
Chess Board
I'm just trying to construct a chess board, using one square movie clip which has two frames labelled, black and white.

The code i have now returns the board but all the squares are black, can anyone help.

code:
makeBoard();

function makeBoard(){

var row, col, name, mc, count=1, colStat, rowStat;

for(row=0; row<8; row++){
for(col=0; col<8; col++){
// loops used to iterate code 64 times

name = "board" + row + "_" + col;
// constructs instance names for pieces
duplicateMovieClip("square", name, count++);
//adds new square
mc = eval(name);
//asigns instance name

if(col % 2 == 0){
colStat = "even";
}else{
colStat = "odd";
}
//checks if the column number is even

if(row % 2 == 0){
rowStat = "even";
}else{
rowStat = "odd";
}
//checks if the row number is even

if(colStat != rowStat){
mc.goToAndStop("white");
}
//all white squares have one odd number and one even, so if the two don't match set the piece to white
mc._x = col * 45 +36;
mc._y = row * 45 +36;
//aligns pieces
}
}
}

View Replies !    View Related
Chess Problem
I only need the idea, not the actionscript.

I have a n*n chess board and a knight (chess knight). The knight has to move to all of the squares without touching one two times so that it will, in the end, cover all of the board. Any ideas ?

View Replies !    View Related
Chess Board
hello
i need help with this animation i need to make
i have a chess board and a simple form, lets say a circle, my problem is that i need to change the color of the part of the cell while the circle pass, so when the cicrle is in a black cell part of the cell becomes white and the next white cell should be change to white
thanks alot for you help

View Replies !    View Related
Chess Program Help
I want to make a chess program in Flash MX 2004 (or Flash 5.0).
Is there a good tutorial out there to start with?

View Replies !    View Related
Chess Program Help
I want to make a chess program in Flash MX 2004 (or Flash 5.0).
Is there a good tutorial out there to start with?

View Replies !    View Related
Need A Yahoo Chess Booster
hi i would really apprecitate it if someone could give me a yahoo chess booster, i dont have any money, and i would greatly appreciate it if you would help me out, my yahoo id is, circleofpawns
email me or yahoo message me if im not online then i will recieve an offline message, please help

View Replies !    View Related
Chess Source Code?
Anyone know where I can find source code for an action script based chess game?

View Replies !    View Related
Chess Puzzle Problems
Hello,

I'm new to this forum and quite new to the Actionscript programming language. I've got some experience programming in PHP and Java though.
The reason why I post here, is that I'm trying to make this Chess Puzzle game in Flash and I've encountered some problems.

So, why not ask the Experts here?

Description:
This is a brief idea how the game will work:

1. When the game starts, the boards is drawn using a for-loop.
I got graphic symbols named white_square.gif and black_square.gif.
Each sqaure is given an exact x,y coordinate, so that
a1 = 50,500 (white square)
a2 = 100, 500 (black square)
a3 = 150, 500 (white square)
etc.
b1 = 50,450 (black square)

Mayby the positions could be read from an array?

There are 8 rows and 8 columns total - 64 Squares. Each row start with the opposite color, f.instance a1 - white square, b1 - black square. c1 - white square

Q: How do I code this?

2. After the board is drawn the different pieces are inserted on top of the board.
I've made transparent Movieclips of all the Black and White pieces -
King, Queen, Rook, Bishop, Knight and Pawn.

Each movieclip should be placed on top of one of the squares - f.instance place the white Queen on top of Square a7, then place the Black king on h8 and so on..

Q: How can I solve this issue and how do I copy a movieclip from the Library and place it on the scene?

3. I would like to save the position of all the pieces in a textdocument.

Q: How can I load the this information from the textdocument and use it to place the pieces correctly?

4. When the pieces are placed correctly it should be possible to move all white pieces (black pieces are standing still).
However, only one piece is the "correct" piece to move, the others are false.

The "false" movieclips should contain #include "Move_rules.as"
"move_rules.as" contain StartDrag("") and on(release) -> go back to original position.

The "correct" (or true) movieclip however, should include code to check if the piece is moved correctly from one squre to another - f.instance Rook H2 to Rook H8.

Q: How do I code this?

If the rook is moved to the correct square, H8, then a Motiontween should be triggered on a black piece - f.instance the Black King.

Q: How do I copy a Movieclip from the Library, place it on an exact position and use Motiontween to move it to another position?

After the Black King has moved, white once again can move his pieces, but this time the "correct" piece to move is another piece - like the Queen.

I'm trying to save the piece_positon and piece_moves into tables on a MySql database, but first I want to check it out with textfiles.

Hope you can help.

View Replies !    View Related
Online Chess With Flash
I need some help. I need to build a site that can feature online peer to peer chess.
I want to use flash to build the game but I need help with the ip to ip part of it. Can I use actionsript?
Please Help!!!

View Replies !    View Related
Scripts For A Chess Game?
I'm planning to make a simple chess game using Macromedia Flash. Can anyone provide me some scripts on how to get started?
It will only be a prototype so I don't need a complete script..

View Replies !    View Related
AS2 - Chess Search Algorithms
This my flash chess.
I'm trying to develop AI.
How can I build search tree (like this).
I'm thinking about 2dimensional array for chess nodes tree.
Any suggestions?

View Replies !    View Related
Ideas/concepts For MX Chess
hey, i am going to attempt to create a chess game with fMX , but i dont know where to start, im in no rush to get this done, its just a side thing im doing for my own site.. i want to know if anyone has any good ideas, or concepts, that might be helpfull, im not really big on back-end programming, and im trying to be, so i need something like this to make me learn.. Im not even sure on how im gonna start this whole thing, so right this second.. im just drawing out the pieces and the board and what now until i figure out how im gonna make this_**** work with two players.. like, i have seen many flash chat rooms, so im sure that it is possible to have piece coordinates relayed between two players online.

ANY RESPONSES ARE GREATLY APPRECIATED, EVEN STUPID ONES.. AN IDEA IS AN IDEA , SO **** IT...

View Replies !    View Related
Chess Game In Colour -help Wanted
i am a painter-photographer who's been working for several years on a new type of chess game that's played in colour. i managed to get a general idea on my website, but would appreciate if somebody could give me some help to make the game more interactive.(i'm fairly new to gamedesign)
here's the link
--played with coloured pieces
http://www.theapplegallery.com/drag%...y11-transp.htm
--played with little carpets
http://www.theapplegallery.com/drag%20and%20drop+.htm
i managed to show things with the drag and drop system but need help with-(1)how could i put the pieces straight on top of the carpets?
(2)is there a way of counting the moves people make?
(3)any help or idea to make it more interactive
(4)i have seen somewhere a chess game in flash where the moves pieces made, where shown
here's the link http://www.newsandentertainment.com/zfchess.html
could i use something similar ?

--
website
http://www.theapplegallery.com/

View Replies !    View Related
Chess Game In Colour - Help Wanted
i am a painter-photographer who's been working for several years on a new type of chess game that's played in colour. i managed to get a general idea on my website, but would appreciate if somebody could give me some help to make the game more interactive.(i'm fairly new to gamedesign)
here's the link
--played with coloured pieces
http://www.theapplegallery.com/drag%...y11-transp.htm

--played with little carpets
http://www.theapplegallery.com/drag%20and%20drop+.htm
--more info
http://www.theapplegallery.com/chess...omebasics.html
i managed to show things with the drag and drop system but need help with
-(1)how could i put the pieces straight on top of the carpets?
-(2)is there a way of counting the moves people make?
-(3)any help or idea to make it more interactive
-(4)i have seen somewhere a chess game in flash where the moves pieces made, where shown
here's the link http://wickedgoodgames.com/flash3/chess.html
could i use something similar ?

the basic difference between this game and normal chess is
that the nature of the game is not one of attacking but of helping eachother
(i'm at present working (writing) on some form of play (story) where "WAR IS OVER" and the two clans are invited to a wedding (hence they need to get there as soon as possible)
my initial idea was (still is)to play the game with coloured lights (additive colour)when for example (in the theatre)you shine red+blue+green toghether on the stage it will make white. so having 2 opposites would make a white light(RIGHT MOVE)), while for example green and red would create just another colour (-yellow) so (WRONG MOVE)
the players need to find their opposite colour ( that could be made easy or difficult)+ you can change the whole setup

over the years i have been applying different forms how this game could be played
(for example the game with the carpets i made with the help of a whole village in india and works on the same principle- finding their opposite player) same as the other game with the coloured squares . i also used numbers to make it a bit easier to understand (opposite players need to make nr "7")


the moves used are exactly the same as in chess (horse,bishop,etc...)

deedebee

website
http://www.theapplegallery.com/

View Replies !    View Related
Check King In Chinese's Chess
I've a problem while coding this game. Check King, I done, but check to Win or not, I can't. Please give me your help. thanks in advandce

View Replies !    View Related
Help Hero Movement Like A Chess Game
Hy

I want to make the hero.mc available to move with the mouse when you click down and then you drag where you want to position the hero.mc example like in a chees game

Thanks for any info







Attach Code

var tiles:Object = new Object({width:52, height:26}); // The size of the 'flat' tile. Tiles are allowed to be different dimentions, to give the '3D' effect.
var offset:Object = new Object({x:400, y:100}); // Este objeto ayuda a centrar el 'slotmachine' en el stage.
var hero:Object = new Object({x:1, y:1}); // La posicion inicial del 'slotmachine'
var canvas:Object = new Object({mc:_root.createEmptyMovieClip("canvas", _root.getNextHighestDepth())}); // Contains the primary movie clip and map information.

canvas.map = new Array( // Determina la Topografia del mapa
new Array(200,200,200,200,200,200,200,200,200),
new Array(200,100,100,100,100,100,100,100,100),
new Array(200,100,100,100,100,100,100,100,100),
new Array(200,100,100,100,100,100,100,100,100),
new Array(200,100,100,100,100,100,100,100,100),
new Array(200,100,100,100,100,100,100,100,100),
new Array(200,100,100,100,100,100,100,100,100),
new Array(200,100,100,100,100,100,100,100,100),
new Array(200,100,100,100,100,100,100,100,100),
new Array(200,100,100,100,100,100,100,100,100),
new Array(200,100,100,100,100,100,100,100,100),
new Array(200,100,100,100,100,100,100,100,100),
new Array(200,100,100,100,100,100,100,100,100),
new Array(200,100,100,100,100,100,100,100,100),
new Array(200,100,100,100,100,100,100,100,100),
new Array(200,100,100,100,100,100,100,100,100),
new Array(200,100,100,100,100,100,100,100,100),
new Array(200,100,100,100,100,100,100,100,100),
new Array(200,100,100,100,100,100,100,100,100),
new Array(200,100,100,100,100,100,100,100,100),
new Array(200,100,100,100,100,100,100,100,100),
new Array(200,100,100,100,100,100,100,100,100)
);
onLoad = function():Void
{
initmap(canvas.map); // Draw the map
initplayer(); // Draw the player

return;

};
_root.onEnterFrame = function():Void
{
input(); // Handle keyboard movement
return;

};

function input():Void // Modifies the 'hero' object, handles collision detection ('hero' and wall)
{
// Any tile less then 200 is walkable, anything above is not.
// No need to change this code handle more tiles, just name the tiles a number.
// (not the best way to do this but simple, quick, and easy to do)
if(Key.isDown(Key.LEFT) && canvas.map[hero.y - 1][hero.x] < 200) hero.y--;
else if(Key.isDown(Key.RIGHT) && canvas.map[hero.y + 1][hero.x] < 200) hero.y++;
else if(Key.isDown(Key.UP) && canvas.map[hero.y][hero.x - 1] < 200) hero.x--;
else if(Key.isDown(Key.DOWN) && canvas.map[hero.y][hero.x + 1] < 200) hero.x++;
move();

return;

};
function move():Void // Moves the background and the hero
{
// These three lines handle swapping the tile depths to give the '3D' effect
var d:Number = (hero.y * tiles.height) + (hero.x * tiles.width) + hero.y;
hero.mc.swapDepths(d);
canvas.mc["tile_" + hero.y + "_" + hero.x].swapDepths(d - 1);

// Move the hero in the opposite direction the environment moves
hero.mc._x = (tiles.width / 2) * (hero.y - hero.x) + offset.x;
hero.mc._y = (tiles.height / 2) * (hero.y + hero.x) + offset.y;

return;

};
function initplayer():Void // Self-expalanatory
{
var d:Number = (hero.y * tiles.height) + (hero.x * tiles.width) + hero.y;

hero.mc = canvas.mc.attachMovie("hero", "hero_mc", d + 1, {_x:hero.x * tiles.width, _y:hero.y * tiles.height});

move();

return;

};
function initmap(map:Array):Void // Render map
{
var map_height:Number = map.length; // Determine height of the map
var map_width:Number = map[0].length; // Determine width of the map

for(var y = 0; y < map_height; y++)
{
for(var x = 0; x < map_width; x++)
{
// Movieclip depth is everything when doing an isometric game
var depth:Number = (y * tiles.height) + (x * tiles.width) + y;

// Attach tile to 'canvas'
var tile:MovieClip = canvas.mc.attachMovie("tile" + map[y][x], "tile_" + y + "_" + x, depth);

tile._x = (tiles.width / 2) * (y - x) + offset.x;
tile._y = (tiles.height / 2) * (y + x) + offset.y;

};

};

return;

};

View Replies !    View Related
Making Chess Puzzle In Flash
Hi guys!

I'm pretty new to Flash, but I love chess and would like to make chess puzzles in Flash to get more familiar with the program. I've looked in my CS3 book and browsed google for tutorials, but didn't find any on chess. Then I figured that maybe some nice people at these forums would help me out!

I have a board and my pieces, and I imagine it like, say, 4 squares will be highlighted, and then the user can drag a chess piece onto any of them, but only one will be right (the others produce failure messages). Then when they find the right square, I make the game make a move, and then they have to find the next move, then the game moves, and then they have to find the mating move.

Frankly, I don't know what to type in my actionscript for this to happen.

Help me out a bit?

Thanks, Carina
www.carlinart.net (<-- home to my other chess art ;))

View Replies !    View Related
Newbie - How To Create Chess Game?
Hi there,

I am a newbie who don't know a thing about scripting... However I want to create a simple board game with no AI. It will be as simple as the player will click on the empty area to make a black seed appear, on the next click it will turns white, then on the next click it will turn empty.

Original board:
+++++
+++++
+++++
+++++


Click once:
+++++
+++++
++B++
+++++

Click again:
+++++
+++++
++W++
+++++


Click again:
+++++
+++++
+++++
+++++

Click click click click....
+++++
++BB+
+BBB+
++B++

Click click ....
+++++
++BW+
+BWB+
++B++

Click ....
+++++
++BW+
+B+B+
++B++


i hope you can understand from the draft above... Thats mean the game does not need to process all the rules in the game, but the player will play the game with the rules he knows.

Please help!

View Replies !    View Related
Somone Reply (yahoo Chess Booster)
i need a yahoo chess booster, if you happened to have one for free i would appreciate it, please send me an email, circleofpawns@yahoo.com, or yahoo message me thanks alot please reply someone, i will do what i can for you in return

View Replies !    View Related
TOUGH Q
I have a flash movie that has a movie clip that is only supposed to play once. However I am using a preloader in the same flash movie as well.. after the frames are done the preloader is called again and this causes the movie clip which is only supposed to play once, play again. Anyway to overcome this??
Thanks,
E-Factor

View Replies !    View Related
Very Tough ?
The message you can place in the html file that the visitor will see if they do not have the Flash Player installed, HOW do you make that an active hyperlink that can be clicked? Here's how it currently reads but it displays as plain text in the browser NOT an active link:::

If you are reading this message, it means you do not have the utility needed to play this presentation. Please click here to enter our website. http://www.professionalglobalmarketing.com/
[Edited by caribe001 on 10-27-2001 at 07:19 PM]

View Replies !    View Related
Here's A Tough One
G'Day,

I know that I can get Flash to talk to ASP. And I know that Flash can talk to XML however I have never done it. Ultimately I want to comunicate between Java (servlets and JSP) and Flash and I was wondering if I should use XML as a gateway? If so is there any one who can give me a few hints and tips to using XML with Flash?????

Your help on this matter would be greatly appreciated

View Replies !    View Related
Very Tough Ask...?
Hi All,

My friend works in the brick making industry...he says this to me...

'you know, if we could get an online wireframe house modeler, where people could construct a wireframe model of their house (from a plan, off course) and render it with selectable bricks patterns etc, that would be a really cool service we could offer'

i straight away thought of flash and swift3d...

'hmm', i said, 'ill get back to ya on that one'

Well, what are your thoughts...can it be done..?? remembering i am only about 3 months old in the flash world & 0 days in the swift3d world

Like to hear everyones thoughts / tips

Cheers

View Replies !    View Related
Tough One Probably
Ok this is probably a tough question but maybe someone knows. OK I have a semitransparent draggable menu on my site. Now I want a semitransparent draggable window to load the sections into after clicking the buttons in the menu. If not just a semitransparent window thats not draggable that will change to the different sections.

I can give a more complete description if needed but hope someone can help.

View Replies !    View Related
A Tough One
ukay...I dont know much about flash...
well heres the deal...
i wanna do a shootin game about mi teacher
anyways...i dont know how to do this part....
i have these 10 little monsters running around....
and when all of them have been killed (with evaluate.root.target.gotoframeandplay(some frame) then i want that the flash would go to a specified frame in the main movie....
(i want flash do do it when ALL the little ones have been killed so there would come a big boss)...i kinda asked my friends for help on this one but no one knew that much action script....
Anyone....?

View Replies !    View Related
Tough One
ok here is my problem
i am calling a function using setinterval after some interval . that interval is variable .. i mean that it changes .. so here is the catch .. i want the function to be called according to the value given to the setinterval but my setinterval does'nt work and refresh interval remains the same even if i change the value of the interval like this

///////////////frame1//////////////
lapse=6000;
function timer() {
if (lapse == 6000) {
lapse = 12000;
} else if (lapse == 12000) {
lapse = 6000

}

//////////////frame2//////////////

setInterval(timer, lapse);
trace("interval called " add lapse);


but every tiem the interval remains the same instead of changing . so any have any idea about changing it dynamicallly at runtime please tell me it's very very important for me.

View Replies !    View Related
Tough One
I want to be able to have the user press a button and have either a
outside .swf or a movie exported from the library open up in a
window, which is no problem.

The problem comes when I want to take that window that pops up that I
have set to be draggable, to be drug to a printer icon and print out.

The main file is a projector file located on a CD and will be used by
multiple people on multiple machines.

Is there a way to detect the printers hooked up to the users machine
and connect to one of them so when they drag the window into the
icon, it prints????????????????????

A tutorial would be awesome!!!

View Replies !    View Related
TOugh One, I Think
Ok


First off, im using Flash MX


Now i have a listbox that has the list of stores, and when someone clicks it loads the function and displays the information properly. Now i need it to show a picture of each item also. Any way to do this? They are JPG's

Do i need to import them as symbols first? Or can i have them files? (to save the file size of the script) also with that, can I have a preloader for each image? The file sizes are quite large some of them upwards of the MB. ANY INFORMATION ANYONE GIVES ME IS VERY WELCOME AND WANTED.


Thank everyone in advance for your assistance. I try to help anyone i can too, but im still kinda new at this hehee.


THanks and have a nice day.


Edit:

Also, the images need to be loaded in place of eachother. I have a box there now. I need the box to be replaced by a picture. Thats why i was wondering if i need ot make the pictures into symbols so that i can do a swap function, or can i have the images loaded from files with a preloader and still use the swap function some how.


Thanks again, i know im a pain in the ass heh.

View Replies !    View Related
Ok This Seems To Be A Tough One
hello, thanks already for all your help...

i want: feet (Mc=feet) to walk across my screen. its for a screensaver. the mc should start at a random position with a random direction BUT always outside the screen. The MC should not start walking out of nowhere in the middle of my screen.


so far i have those MC's duplicated and used this script:


actionscript:

for (i=0; i<1; i++) {
this._rotation=Math.floor(Math.random() * 1024) - 100;
this._y=Math.round(100+Math.random()*1024);
this._x=Math.round(100+Math.random()*256);
this.duplicateMovieClip("movie"+i,i);
}


the problem here is that the movies clips rotate arround the center of the mc which stays at the same position all the time.

maybe you can see a better solution for me to make it really randomized.. and to randomized the MC center inside the screen and the start of the MC outside the screen,.,.

View Replies !    View Related
This Is A Tough One
Hi,

Does anyone know how to do a masking transition between differnt photos, but the masking effect is like a paintbrush shape???

Thanks and God Bless

View Replies !    View Related
This Is A Tough One:
Hi,

Does anyone know how to get the effect used on the site below. The way the opening page comes in (sort of blurred transition).

http://www.sixtailer.com/

View Replies !    View Related
Tough One This........?
I have customised a menu I downloaded from this site, but need it to react to changing imported variables. Basically it’s going to be a main menu for an elearning course that needs to update to show the user has finished that particular topic. So if a user views the menu and decides to have a look at Section 3 Topic 1, when they are returned to the menu on completion the section 3 menu will be open and a little tick will appear next to that topic. Is this possible? See attached file.

Any response is greatly appreciated.

Thanks,

Miles

View Replies !    View Related
This Is A Tough One
Hi Everyone, I have no idea where to post this question but it is definitely a technical problem.

I have uploaded my new site to my new unix based host and it does not work (ie some pages do not load....sometimes the home page doesn't load) It happens inconsistently too so it is impossible to test.

I also have the same EXACT site on two windows servers and it works fine.

Here is the unix server: www.creativecircusco.com
Here are the windows servers:

www.carlyncerniglia.com/creativecircus/
www.troyburke.com/creativecircus/

What would cause a site to work fine on one host and fail on another. The only differences is that one is unix and the other is windows and in one the site is at the root level and another it is one level down.

thanks
C

View Replies !    View Related
Tough One... For Ya..
I have this code:
I use flash mx2004 pro

but.. this is code from ver.5, i think.
code:
Movieclip.prototype.openWinCentre = function (url, winName, w, h, toolbar, location, directories, status, menubar, scrollbars, resizable) {
getURL ("javascript:var myWin; if(!myWin || myWin.closed){myWin = window.open('" + url + "','" + winName + "','" + "width=" + w + ",height=" + h + ",toolbar=" + toolbar + ",location=" + location + ",directories=" + directories + ",status=" + status + ",menubar=" + menubar + ",scrollbars=" + scrollbars + ",resizable=" + resizable + ",top='+((screen.height/2)-(" + h/2 + "))+',left='+((screen.width/2)-(" + w/2 + "))+'" + "')}else{myWin.focus();};void(0);");
}


Can someone help me dicipher this?

I understand the parameters:
url - web address location
winName - a provide name
w - self explainitory
h- ""

the rest
toolbar, location, directories, status, menubar, scrollbars, resizable...
I'm not sure about these...

and could someone help me come up with an example code to call this function.. Just trying to understand.

View Replies !    View Related
Here's A Tough One For You
Howdy!
Im farely new to flash and need a little guidence!

Im using Flash MX 2004 Professional to build a website showing a portfolio of work. I seem to be doing ok so far but I just can't seem to figure this out, yet it seems so simple!!

Imagine a timeline with keyframes on frames 1, 5, 10 and 15.
Now, frames 1-5 contain a motion tween for an object. Frames 10-15 also contain a motion tween for a new object. Everything between these two motion tweens is blank.
How do I make the movie play frames 1-5 and then jump to frame 10 to continue playing, missing out frames 6-9?! The catch is I can't have any actions in the main timeline otherwise that would be too easy! I'ld like to place a button in frame 1 which this action will apply to.
It's kind of like a gotoAndPlay but more of a playandGoto action attached to a button! Is this possible and really simple to do or am I just crazy?!!!

Remember, if you figure this out for me you can crown yourself a legend!!
I'll send you a tin foil crown through the post with some paper gems stuck to it!!

Cheers!

PS. Ive attached an example file of what im on about, this may help explain things a bit more.

View Replies !    View Related
Now Here's A Tough One.....
I put all my buttons in one menu, and I have this problem. Everytime the path level changes - like for example from index.html it goes to pictures/index.html - the buttons fail to find their page.

So I was wondering, is there a way for the buttons on the menu to search which path is currently loaded on the browser and somehow use the " if " command or something to tell them that if this path is loaded, follow this link and if the other path is loaded follow the other link?

Cause at this point the way I see it I'm supposed to keep changing the links each button follows for every different path and that also means the users are supposed to load a different menu all the time and that kinda sucks for me

View Replies !    View Related
Tough* One
ok so there is an online server for a game i play and its sort of like a community and to make houses we need an xml file with alot of lines of code that looks like this

Code:
<tile x="200" y="99" z="6" />
<tile x="201" y="99" z="6" />
<tile x="202" y="99" z="6" />
<tile x="200" y="98" z="6" />
<tile x="201" y="98" z="6" />
<tile x="202" y="98" z="6" />
<tile x="200" y="98" z="5" />
<tile x="201" y="98" z="5" />
<tile x="202" y="98" z="5" />
see differnet x's and y's and z's

my main point is i tried for the longest time to do it and output a xml file sort of like that but its so hard for me? anyone think they can help me solve this lol

so far i have this
ActionScript Code:
on (release) {
    //starts
    go = true;
    a = parseInt(sx)-1;
    c = parseInt(sy)-1;
    e = parseInt(sz)-1;
    //ends
    b = parseInt(ex);
    d = parseInt(ey);
    f = parseInt(ez);
    //backup starts
    z = parseInt(sx)-1;
    q = parseInt(sy)-1;
    w = parseInt(sz)-1;
    //other
    kae = 0;
    kaewa = parseInt(sx)-parseInt(ex);
    //code
    while (a<b) {
        a++;
        z++;
        trace("<tile x="+'"'+z+'"'+" y="+'"'+q+'"'+" z="+'"'+w+'"'+" />");
    }
   
}

and i have 6 textfields named sx,sy,sz,ex,ey,ez each for the start of the x,y,z and the end of the x,y,z..

btw the problem is i can only get it to work for like the x only

and ill attach a file


ya..tell me if i im going about this the right way to please thanks =)

View Replies !    View Related
Here's A Tough One
Is there any possible solution that will enable me to stream shoutcast from flash? I though it would be kinda nifty to have one on my site. But I think there is a issue with the latest version of the flash player and of course active x in explorer.

Basically the simple code is this:

s = new Sound();
s.loadSound ("url.of.shoutcaststream:5003",true);

I'm not too sure what can be down. But I'm hoping there's a work-around to get it going.....

View Replies !    View Related
Please Help...a Tough One
Hi Guys,

I really hope somebody can help me with this one....

I have a site with an index page, index page has an i-frame, i-frame loads in other html content pages... ( bare with me...)

Those html contents pages, load in flash objects using the SWFObject.js...

As follows:

<script type="text/javascript" src="swfobject.js"></script>

then...

<script type="text/javascript">
var so = new SWFObject("gallery.swf", "gallery", "900", "520", "8", "#ffffff");
so.write("flashcontent");
</script>

So thats all good and works perfectly....

Now I want to implement a shopping cart, I have chosen e-junkie (which does everything I need and really like the stlye of the cart. This cart uses flash...you might be beginning to get my problem....

When I implement the cart using the script they supply from the site, it looks to me as if the cart flash object is appearing behind my flash object (gallery.swf).

E-junkie recommends this:

"I am using Flash on my site and the cart is showing under it.
Add the following parameter to the OBJECT tag:
<param name="wmode" value="transparent">

Add the following parameter to the EMBED tag:
wmode="transparent"

If you are using a JavaScript function to embed your Flash, then you will need to refer it's documentation to see how to embed the Flash movie such that it's transparent."

My problem is that I am not sure, where to implement this fix i.e in my code or in the SWFObject.js (if its in the .js file I am lost!!), this code was recommended thru somebody on this forum and is great, but above my knowledge really!

If I get this working then I can finally be happy with the site and move on!

I know this is an epic and I apoligise. Please, Please, Please help!

---Ok so cant upload HTML of .JS files so gonna just paste in here...sorry.

CONTENT PAGE containing my flash object-

<!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">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Untitled Document</title>
<link rel="stylesheet" href="mystyle.css">
<body>
<table width="900" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="900" height="520" align="center" valign="top"><script type="text/javascript" src="swfobject.js"></script>
<div id="flashcontent">
<div align="center">
<p><span class="style45">This site is not functioning currectly as it requires the latest version of Macromedia Flash Player.<br />
Macromedia Flash Player is safe and is installed simply to your system with no baggage.
<br />
Macromedia Flash player comes as a standard component in all up to date versions of Intener Explorer.<br />
<a href="http://www.macromedia.com/go/getflash/" target="_blank">Get Flash</a></span><br />
<br />
</p>
</div>
</div>


<script type="text/javascript">
var so = new SWFObject("gallery.swf", "gallery", "900", "520", "8", "#ffffff");
so.write("flashcontent");
</script><form action="https://www.e-junkie.com/ecom/gb.php...cl=21920&ejc=2" target="ej_ejc" method="POST" accept-charset="UTF-8">
<input type="hidden" name="on0" value="Colour"/>
Colour:
<select name="os0">
<option value="Black">Black</option>
<option value="Navy">Navy</option>
</select>
<input type="hidden" name="on1" value="Size"/>
Size:
<select name="os1">
<option value="Ladies UK-3">Ladies UK-3</option>
<option value="Ladies UK-4">Ladies UK-4</option>
<option value="Ladies UK-5">Ladies UK-5</option>
<option value="Ladies UK-6">Ladies UK-6</option>
<option value="Ladies UK-7">Ladies UK-7</option>
<option value="Ladies UK-8">Ladies UK-8</option>
</select>
<input name="image" type="image" class="ec_ejc_thkbx" onclick="javascript:return EJEJC_lc(this.parentNode);" src="https://www.e-junkie.com/ej/ej_add_to_cart.gif" alt="Add to Cart" border="0"/>
<a href="https://www.e-junkie.com/ecom/gb.php...cl=21920&ejc=2" target="ej_ejc" class="ec_ejc_thkbx" onclick="javascript:return EJEJC_lc(this);"><img src="https://www.e-junkie.com/ej/ej_view_cart.gif" border="0" alt="View Cart"/></a><br/>
</form>
<p>
<script language="javascript" type="text/javascript">
<!--
function EJEJC_lc(th) { return false; }
// -->
</script>
<script type="text/javascript" src="<A href="https://www.e-junkie.com/ecom/box.js"></script></p></td">https://www.e-junkie.com/ecom/box.js"></script></p></td>
</tr>
</table>
</body>
</html>

SWFObject.js - Javasrcript file -

/**
* SWFObject v1.5: Flash Player detection and embed - http://blog.deconcept.com/swfobject/
*
* SWFObject is (c) 2007 Geoff Stearns and is released under the MIT License:
* http://www.opensource.org/licenses/mit-license.php
*
*/
if(typeof deconcept=="undefined"){var deconcept=new Object();}if(typeof deconcept.util=="undefined"){deconcept.util=new Object();}if(typeof deconcept.SWFObjectUtil=="undefined"){deconcept.SW FObjectUtil=new Object();}deconcept.SWFObject=function(_1,id,w,h,_ 5,c,_7,_8,_9,_a){if(!document.getElementById){retu rn;}this.DETECT_KEY=_a?_a:"detectflash";this.skipD etect=deconcept.util.getRequestParameter(this.DETE CT_KEY);this.params=new Object();this.variables=new Object();this.attributes=new Array();if(_1){this.setAttribute("swf",_1);}if(id) {this.setAttribute("id",id);}if(w){this.setAttribu te("width",w);}if(h){this.setAttribute("height",h ) ;}if(_5){this.setAttribute("version",new deconcept.PlayerVersion(_5.toString().split("."))) ;}this.installedVer=deconcept.SWFObjectUtil.getPla yerVersion();if(!window.opera&&document.all&&this. installedVer.major>7){deconcept.SWFObject.doPrepUn load=true;}if(c){this.addParam("bgcolor",c);}var q=_7?_7:"high";this.addParam("quality",q);this.set Attribute("useExpressInstall",false);this.setAttri bute("doExpressInstall",false);var _c=(_8)?_8:window.location;this.setAttribute("xiRe directUrl",_c);this.setAttribute("redirectUrl","") ;if(_9){this.setAttribute("redirectUrl",_9);}};dec oncept.SWFObject.prototype={useExpressInstall:func tion(_d){this.xiSWFPath=!_d?"expressinstall.swf":_ d;this.setAttribute("useExpressInstall",true);},se tAttribute:function(_e,_f){this.attributes[_e]=_f;},getAttribute:function(_10){return this.attributes[_10];},addParam:function(_11,_12){this.params[_11]=_12;},getParams:function(){return this.params;},addVariable:function(_13,_14){this.v ariables[_13]=_14;},getVariable:function(_15){return this.variables[_15];},getVariables:function(){return this.variables;},getVariablePairs:function(){var _16=new Array();var key;var _18=this.getVariables();for(key in _18){_16[_16.length]=key+"="+_18[key];}return _16;},getSWFHTML:function(){var _19="";if(navigator.plugins&&navigator.mimeTypes&& navigator.mimeTypes.length){if(this.getAttribute(" doExpressInstall")){this.addVariable("MMplayerType ","PlugIn");this.setAttribute("swf",this.xiSWF Path );}_19="<embed type="application/x-shockwave-flash" src=""+this.getAttribute("swf")+"" width=""+this.getAttribute("width")+"" height=""+this.getAttribute("height")+"" style=""+this.getAttribute("style")+""";_19+=" id=""+this.getAttribute("id")+"" name=""+this.getAttribute("id")+"" ";var _1a=this.getParams();for(var key in _1a){_19+=[key]+"=""+_1a[key]+"" ";}var _1c=this.getVariablePairs().join("&");if(_1c.lengt h>0){_19+="flashvars=""+_1c+""";}_19+="/>";}else{if(this.getAttribute("doExpressInstall" )) {this.addVariable("MMplayerType","ActiveX");this.s etAttribute("swf",this.xiSWFPath);}_19="<object id=""+this.getAttribute("id")+"" classid="clsid27CDB6E-AE6D-11cf-96B8-444553540000" width=""+this.getAttribute("width")+"" height=""+this.getAttribute("height")+"" style=""+this.getAttribute("style")+"">";_19+="< param name="movie" value=""+this.getAttribute("swf")+"" />";var _1d=this.getParams();for(var key in _1d){_19+="<param name=""+key+"" value=""+_1d[key]+"" />";}var _1f=this.getVariablePairs().join("&");if(_1f.lengt h>0){_19+="<param name="flashvars" value=""+_1f+"" />";}_19+="</object>";}return _19;},write:function(_20){if(this.getAttribute("us eExpressInstall")){var _21=new deconcept.PlayerVersion([6,0,65]);if(this.installedVer.versionIsValid(_21)&&!this. installedVer.versionIsValid(this.getAttribute("ver sion"))){this.setAttribute("doExpressInstall",true );this.addVariable("MMredirectURL",escape(this.get Attribute("xiRedirectUrl")));document.title=docume nt.title.slice(0,47)+" - Flash Player Installation";this.addVariable("MMdoctitle",docume nt.title);}}if(this.skipDetect||this.getAttribute( "doExpressInstall")||this.installedVer.version IsVa lid(this.getAttribute("version"))){var n=(typeof _20=="string")?document.getElementById(_20):_20;n. innerHTML=this.getSWFHTML();return true;}else{if(this.getAttribute("redirectUrl")!="" ){document.location.replace(this.getAttribute("red irectUrl"));}}return false;}};deconcept.SWFObjectUtil.getPlayerVersion= function(){var _23=new deconcept.PlayerVersion([0,0,0]);if(navigator.plugins&&navigator.mimeTypes.length ){var x=navigator.plugins["Shockwave Flash"];if(x&&x.description){_23=new deconcept.PlayerVersion(x.description.replace(/([a-zA-Z]|s)+/,"").replace(/(s+r|s+b[0-9]+)/,".").split("."));}}else{if(navigator.userAgent &&n avigator.userAgent.indexOf("Windows CE")>=0){var axo=1;var _26=3;while(axo){try{_26++;axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash."+_26 );_23=new deconcept.PlayerVersion([_26,0,0]);}catch(e){axo=null;}}}else{try{var axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7");} catch(e){try{var axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6");_ 23=new deconcept.PlayerVersion([6,0,21]);axo.AllowScriptAccess="always";}catch(e){if(_23. major==6){return _23;}}try{axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash");}ca tch(e){}}if(axo!=null){_23=new deconcept.PlayerVersion(axo.GetVariable("$version" ).split(" ")[1].split(","));}}}return _23;};deconcept.PlayerVersion=function(_29){this.m ajor=_29[0]!=null?parseInt(_29[0]):0;this.minor=_29[1]!=null?parseInt(_29[1]):0;this.rev=_29[2]!=null?parseInt(_29[2]):0;};deconcept.PlayerVersion.prototype.versionIsV alid=function(fv){if(this.major<fv.major){return false;}if(this.major>fv.major){return true;}if(this.minor<fv.minor){return false;}if(this.minor>fv.minor){return true;}if(this.rev<fv.rev){return false;}return true;};deconcept.util={getRequestParameter:functio n(_2b){var q=document.location.search||document.location.hash ;if(_2b==null){return q;}if(q){var _2d=q.substring(1).split("&");for(var i=0;i<_2d.length;i++){if(_2d[i].substring(0,_2d[i].indexOf("="))==_2b){return _2d[i].substring((_2d[i].indexOf("=")+1));}}}return "";}};deconcept.SWFObjectUtil.cleanupSWFs=func tion (){var _2f=document.getElementsByTagName("OBJECT");for(va r i=_2f.length-1;i>=0;i--){_2f[i].style.display="none";for(var x in _2f[i]){if(typeof _2f[i][x]=="function"){_2f[i][x]=function(){};}}}};if(deconcept.SWFObject.doPrepUn load){if(!deconcept.unloadSet){deconcept.SWFObject Util.prepUnload=function(){__flash_unloadHandler=f unction(){};__flash_savedUnloadHandler=function(){ };window.attachEvent("onunload",deconcept.SWFObjec tUtil.cleanupSWFs);};window.attachEvent("onbeforeu nload",deconcept.SWFObjectUtil.prepUnload);deconce pt.unloadSet=true;}}if(!document.getElementById&&d ocument.all){document.getElementById=function(id){ return document.all[id];};}var getQueryParamValue=deconcept.util.getRequestParame ter;var FlashObject=deconcept.SWFObject;var SWFObject=deconcept.SWFObject;

The end....

View Replies !    View Related
A Tough One
Ok, I work as a web designer for a local company and we do work for the Agricultural industry. That said, here's the problem. My boss has a flat panel monitor.... those thin things that will eventually replace all the bulky monitors. Anyway, whenever I do a fade in Flash... alpha tween... his monitor shows the image moving... it looks like its "breathing" or like an "accordian". This happens at the beginning and end of each faded graphic, movie, etc. On every other screen I have viewed, the animations look perfect. Anyone familiar with this?

View Replies !    View Related
Here's A Tough One
Is there any possible solution that will enable me to stream shoutcast from flash? I though it would be kinda nifty to have one on my site. But I think there is a issue with the latest version of the flash player and of course active x in explorer.

Basically the simple code is this:

s = new Sound();
s.loadSound ("url.of.shoutcaststream:5003",true);

I'm not too sure what can be down. But I'm hoping there's a work-around to get it going.....

View Replies !    View Related
A Tough One
Hi, I'm looking for some help from a wizard.

I have two lines that are dragable. When they are dropped the point at which they intersect is marked.

But, for some reson it is a little off.

Would anyone be able to spare 2 mins to have a look?

http://www.3ainteractive.com/detect03.fla

M@)

View Replies !    View Related
HitTest Help--a Tough One.
I want to conduct a hitTest between one movie clip (A) and several instances of another movie clip (B). But Flash does not seem to want me to do this. It takes only one instance of the movie clip (B) and disregards the rest. How do I get Flash to recognize the hitTest between movie clip (A) and all instances of movie clip (B)? Thanks.

View Replies !    View Related
::::::::: Simple And Tough :::::::::
http://www.vectorpark.com/

Does anyone have similar open source of this variable example?
I really need some clue on this one. Its so tough...please somebody gimme a hand....

View Replies !    View Related
Having A Tough Time.
Ok I really really want to have a nice preloader. something fancy

like possibley a clock face with a rotating hand that fills in red as the second hand turns... or something of that nature... ive seen similar things done.....
BUT HOW ON EARTH DO I DO IT?

and another thing... if I have a link to a URL in my flash... how do i make it so it opens it in another window?

John McCann
(the new guy)

View Replies !    View Related
A Real Tough One
I wanted to make a scrolling marquee that will update itself from a text file (for that I had to make a circle frame and over it a filled circle as a mask to make the text
appear whithin the frame)
there is only one problem....
I've noticed that the mask can't handle dynamic text and it just ignores it!

Is my diagnosys true?

If it is is there a way to bypass the problem like by making a script tha brakes up the letters into images
(maybe there is a command)?

please help!
this is very urgent
I made a front frame and a background and between them the text
but it allows me a text height as the frame X 2(top+bottom)


plz plz plz
MUSIC MAN! THIS IS A CALL FOR RESCUE!!!

thanx

View Replies !    View Related
Copyright © 2005-08 www.BigResource.com, All rights reserved