Professional :: Adding Graphics To Cards?

Jul 21, 2010

I'm creating a card game where the cards flip and are draggable. At the moment, I'm trying to add graphics to my cards using the addChild method, but I'm not having any luck. My cards flip and drag around properly, but I can't seem to get graphics on them. I have the graphics linked for use in action script. I have my cards in memory.fla and am using two external .as classes (DraggableClip.as and MemoryGame.as). Here's the code for both.

[Code].....

View 8 Replies


Similar Posts:


Professional :: Shuffling Cards Using Array?

Jul 22, 2010

I'm working on a card game that will allow users to flip the cards and drag them. I have those two functions worked out, but now I am trying to randomize the order of the deck when I load the swf using an array. I know a lot has been said about this issue on here, and I adapted some code that I found. I'm not getting error messages, but it doesn't seem to be shuffling my deck either. Am I missing something? I just have three cards at the moment (figured I'd keep it simple until I get everything worked out!). Below is the code for MemoryGame.as, my document class. The shuffle function is near the bottom.

package{ import flash.display.MovieClip; import Card; import Boarder; import BlueBoard; public class MemoryGame extends MovieClip { private var _card:Card; private var _boarder:Boarder; private var _blueBoard:BlueBoard; private var _redBoard:RedBoard 

[code]....

View 7 Replies

Professional :: Shuffle A Deck Of Cards Last Week

Jul 28, 2010

I was looking for a way to shuffle a deck of cards last week and I was provided with some code to do so. I decided a straight shuffle would work better with my project than randomizing coordinates (as I was doing). I'm trying to implement the code, and I think I'm pretty close, but I'm running into a few snags. I'm using Shuffle.as as my document class, and another external class called Card.as to control the flipping and drag action of my cards. At the moment, I'm getting this message when I try to run the swf: 1084: Syntax error: expecting leftbrace before Deck. I think this is indicative of an error somewhere else in my code, but I'm not sure where. Do you see anything upon first glance?

[Code]....

View 4 Replies

Media Server :: Adding Graphics To Camera Stream?

Nov 18, 2009

I have a delicate question for you which i cant find an answer to.Problem:I want to add an object (lets say it's a logo) to a camera stream before i save it to the FMIS. So the logo is integrated with the camera as it would have been placed in a layer above.Is that possible and if it is, how do i do it? It is quite urgent so any quick tips or solutions are more than welcome

View 2 Replies

Professional :: Extract Graphics From Fla

Jul 29, 2010

I have a load of FLA files with large libraries of vector graphics. Is there a way of forcing Flash to create an export(jpg or swf)of all the graphics in a library without having to manually drag them onto the stage or into a scene before publishing or exporting them? I'm thinking there might be an SDK or utility or something that can read fla files and export everything programmatically.

View 3 Replies

Professional :: CS5.5 IOS App Graphics Quality

Feb 9, 2012

I am designing my whole app in photoshop and currently in the process of moving all of the images to flash to add interactivity. The promblem is, when we put the app on the iphone the quality of the graphic is lowered for some reason. When I am building in photoshop my settings: 640px by 960px 72 ppi Saving out as a .jpg When I send the jpg as a picture to my iphone 4 and view it in my "Photos" app, it looks great, but on the test app it loses quality. Does anyone have anyone have any idea whats going on here?

View 16 Replies

ActionScript 2.0 :: Attach Graphics Instead Of MC Cause A Graphics File Size Is Relatively Small Than That Of A Graphic?

Apr 9, 2005

I was wondering about MC and hey can help to lag a game out. I set up an advanced class system so i don't have to use MC to simulate walls, all i use isthe x,y,width and height. Well anyway since i don't need MC anymore I was wondering if there is a way to attach Graphics instead of MC cause a Graphics file size is relatively small than that of a graphic, I think. If anyone could tell me thats true and show me a way to attach graphics that would be nice. I haven't tried it yet but maybe if I exported the graphic from the library imihgt be able to call its name, but it doesn't have an instance name so im stuck.

View 2 Replies

Professional :: Apply Filters In Graphics?

Jan 19, 2012

how to apply filters in graphics? I'm curious cuz of this video here. It seems like the very same filters people use for text tool. How did the he use the filters in graphics?

View 3 Replies

ActionScript 3.0 :: 1119: Access Of Possibly Undefined Property Graphics Through A Reference With Static Type Flash.display:Graphics.

Oct 8, 2009

i am trying to receive in my function as a parameter either a shape or a sprite and then access their graphics property, but this gives me an error:

Code:
public static function makeRect( obj:DisplayObject, ...
var g:Graphics;
if(obj is Sprite){

[code]...

//1119: Access of possibly undefined property graphics through a reference with static type flash.display:Graphics.

View 1 Replies

Professional :: Flash - Lite And 3D Graphics Programming?

Jan 6, 2010

am working on developing and programming for games, having 2+ years experience. Now I want to learn more about Flash Lite and 3D Graohics Programming. me some of the best sites I can check and especially some offline resources/trainings

View 1 Replies

Professional :: Button With Randomly Generated Graphics?

Apr 11, 2010

I'm trying to make an interactive graphic that is randomly generated at the press of an other button. To put this in context, I will have a button to roll dice. the dice numbers with then appear in 6 places on a board. you will then be able to select the dice.

View 5 Replies

Professional :: Flash Self Generates Tween Graphics

Oct 11, 2010

I noticed this thing that Flash self generated graphic symbols and names it Tween1, Tween2, etc. I am not sure why it happens. Usually it happens when I tween something and then this accompanying graphic symbol appears in the library. Do I really need them, is it a flash mulfunction and I can safely delete them? why they are happening, am I making all the wrong steps in tweening and thus they appear?

View 1 Replies

Professional :: Creating Visible Buttons With Graphics?

Oct 30, 2010

After created the button with graphics.On Button Layer...UP show circle, OVER show blank,DOWN show square, HIT show black circle.Can you tell me it is OK because after I add layer for ActionScript still getting errors.I want to make sure i did right up to this point.

View 1 Replies

Professional :: Find Sample Graphics Swf Files?

Jan 29, 2011

I am trying to download some graphics swf file for applying skinning to my FLex components .But i cant find any free graphics swf  files .Could anyboody please tell me where could i find sample graphics swf files ??

View 5 Replies

Professional :: Set Graphics To Single Frame By Default?

Jul 7, 2011

Is there anyway to make graphics always default to Single Frame instead of Loop when you drag them from library to stage? It's kind of a pain to go to Properties > Looping > Options: Single Frame every time I drag a graphic instance.

View 2 Replies

Professional :: Switch Out Graphics In Different Areas Of A Movie?

Jul 20, 2011

I'm working on for a flooring company. They want a Flash movie that allows the user to change the look (product and color) of different areas of the floor.I have a menu on the left side that designates the three different areas of the floor. I have the two products along with color swatches along the top. I currently have each of the three areas as separate movies that load into a main movie.These three area movies each contain the color swatches on the top as buttons to change the color of that area using "On Release > Go To Frame Label" actions that displays each of the different colors. These movies each load on a different level based on the selection of the left side menu.I want the user to be able to go to each of the three areas and change the product/color attributes without losing what they had already done. For instance, if they choose PRODUCT A in RED for AREA 1, then they want to change the product/color on AREA 2, I still want the movie to display PRODUCT A in RED for AREA 1, etc.The problem I run into is that when you go back and forth between the three areas, the navigation only controls what movie is on the top level and doesn't allow the user to go back to a previous area and change the product/color attribute.

View 1 Replies

Professional :: Preview Of Generated Graphics In Flash IDE?

Oct 7, 2011

Let's say I create an empty movieclip called "Test_mc", then I create an as3 class "Test_mc" like below and then I set the movieclip class to "Test_mc".

public class Test_mc extends MovieClip {
public function Test_mc() {
graphics.beginFill(0xFF0000);[code]..

Now I can drag out instances of the Test_mc into the scene and get red circles when I test the movie. The problem however, is that I can't see the circles on the canvas inside the Flash IDE. Is there a way to get these actionscript generated grapics to show up?

View 5 Replies

Professional :: Reduce File Size Vector Graphics

Jun 16, 2010

When it comes to imported vector graphics are there any methods to decrease the swf's file size as much as possible? So far I have:

- imported an illustrator ai file (strokes 'expanded' in illustrator and unneeded swatches/ brushes etc. deleted and with no raster images embedded)
- exported the file in illustrator as swf and imported that swf into flash
- imported ai file and breaking it down to flash shapes
- optimized those shapes as much as possible
 
I rather use vector as much as possible. For a banner for examle, I've imported vector images of trees. I couldn't get it below 40 kb so I exported all illustrator files to png files which helped. Can detailed vector images be optimized just as much? Or is it better to use bitmap files when it comes to more detailed graphics? Does it matter if it is a vector images made in flash or a imported vector file even if both have the same number of paths?

View 1 Replies

Flash :: Professional - 10.1 Choppy Video With Intel HD Graphics

Aug 15, 2010

I just got a new laptop that is running Windows 7 (64 bit) and has Intel HD Graphics (driver version 8.15.10.2182) built in to the CPU (Intel p6000). The laptop came with Flash version 10.0.45.2. When I play HD video with this version of Flash on Youtube and on HULU, everything is fine, I can play 480p and 1080p videos at 30fps with no noticible problems (although there are occasional frame drops according to the right click menu option "Show Video Info" on Youtube, but nothing major.) Then the other day, flash told me there was a new version available, so I upgraded to 10.1.82.76.

Running this version, all HD videos on Youtube and HULU are choppy and unwatchable, according to "Show Video Info" on Youtube, I am getting only 8 fps, and the frame drops increment constantly. I unchecked "Enable hardware acceleration" in the Flash settings, but it has no effect. The only other people I can find who are having a similar problem are Mac users who are also using CPUs with Intel HD Graphics and Flash 10.1, I couldn't find anyone else complaining about this issue on Windows 7. Is anyone aware of any issues with Flash 10.1 and Intel HD Graphics on Windows 7? Will there be a future release of 10.1 that fixes this issue? Is there any workaround for this problem other then downgrading to 10.0 (which is what I am running now)?

View 7 Replies

Professional :: How To Maintain Editing On Graphics Imported From Photoshop

Dec 16, 2010

I'm having a hard time figuring out the best way to import graphics from Photoshop. I tried importing a psd for an arrow shape into Flash CS5. The imported image looks good. But when I right click on the imported image and choose 'Edit with Photoshop', it's just a flattened version. Is there another way of importing that keeps the editability of the original psd?

View 1 Replies

Professional :: Optimizing Flash Graphics - Use Filters Or Vectors?

Mar 28, 2011

I'm trying to lighten the load on the users' machine as much as possible. Which requires less resources: using Flash filters for Drop Shadow/Glow or creating vector shapes for the shadow/glow with the Modify > Shape > Soften Fill Edges command?

View 3 Replies

Professional :: Update Flash Graphics From Imported Layered PSD?

Feb 29, 2012

has the whole "roundtrip" feature been left out of Flash Professional CS5.5 when it comes to imported, layered PSD files? Is the only answered to crop down and save a single .png layer out of the orginial PSD file?

View 2 Replies

Professional :: Loading Vector Graphics File Format In IOS Converted App?

Mar 9, 2011

I'm going to create a iOS app in flash and convert. I'm thinking I may want to load graphic assets at runtime. I'd like these assets to be vector graphics so they can be resized easily with no quality degradation. I usually use SWF files ofr this purpose. Unless I'm wrong, a converted iOS app probably does not load SWF files. So I'm wondering what kind of vector graphics file format can iOS load at runtime?

View 1 Replies

Professional :: Getting Bitmap Graphics From Photoshop To Import Crisply Into Flash?

Mar 29, 2012

I'm having trouble getting bitmap graphics from Photoshop to import crisply into Flash. I use the highest quality PNG codec, but graphics appear jaggy once they're in Flash.getting crisp graphics into Flash?My stage sizes are 992 x 692 or smaller, and I'm viewing at 100%, so, not expecting graphics to be sharp and clean at maximum magnification...

View 7 Replies

ActionScript 3.0 :: Add Cards To The Stage?

Dec 23, 2010

i finally got my code without syntax errors or output feedback. when i test it all i get is a blank stage.

i have 2 movie clips

sMagiCard_mc
cMagiCard_mc

and i do have them exported for action script, this is the code.

ActionScript Code:
import flash.display.MovieClip;
stop();
var magiCardList_XML:XML;

[Code]...

View 9 Replies

ActionScript 3.0 :: How To Get Six Cards Each With Own Numeric Value

Oct 11, 2011

What it is I am trying to achieve is 6 cards each with their own numeric value. (1, 2, 4, 8, 16, 32) when the card is clicked its values get added together and but remain invisible until the reveal button is pressed.

ActionScript Code:
c1_btn.addEventListener(MouseEvent.CLICK, c1Click);
c2_btn.addEventListener(MouseEvent.CLICK, c2Click);
c4_btn.addEventListener(MouseEvent.CLICK, c4Click);
c8_btn.addEventListener(MouseEvent.CLICK, c8Click);
c16_btn.addEventListener(MouseEvent.CLICK, c16Click);
c32_btn.addEventListener(MouseEvent.CLICK, c32Click);
reveal_btn.addEventListener(MouseEvent.CLICK, revClick);
[Code] .....

I tried to utilize a basic calculator script and tryed to modify it. This is probably the the 5th version iv made.

View 1 Replies

ActionScript 3.0 :: Scroll Through Some Cards On Roll Over?

Jul 29, 2009

scroll through some cards on roll over...

mc.onRollOver = function():Void {
current = this.cid+1;
rolledOver = true;

[code]....

View 3 Replies

AS3 :: Get Playing Cards To 'snap' Into Place?

Sep 3, 2010

I am toying around with the idea of making a few card games, and was testing some code trying to get an Ace of Spades to snap to a slot.But for some reason the card isnt snapping... with the traces I ran.. it looks like it is snapping to the center. But I changed the center point with the free transform tool... so the point is in the upper right but its still not snapping.You can see by the traces I use, that the home1X = 36 means it is finding the corner

View 1 Replies

ActionScript 3.0 :: Flash Vocabulary Cards?

Apr 21, 2011

Can somebody recommend tutorial or code source to create Flash Cards.Cards must have:List of words/phrases (loading from XML) where user can choose words he/she want inside Flash Cards

[Code]...

View 0 Replies

ActionScript 3.0 :: Shuffling 60 Cards And Displaying 5?

Jun 19, 2011

I am looking for a tutorial or code that will allow me to shuffle 60 cards non-Playing cards and then display the top 5.

I am trying to create a TCG type game once im past the shuffling and know how to display cards i believe i can take it from there.

View 3 Replies







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