ActionScript 3.0 :: Way To Add Artwork To The Stage?
Dec 11, 2010is it best to add a bitmap in a clip / sprite container, or just add the graphic (jpeg, png etc) via
ActionScript Code:
:Bitmap = new Bitmap(speakersBmd);
?
is it best to add a bitmap in a clip / sprite container, or just add the graphic (jpeg, png etc) via
ActionScript Code:
:Bitmap = new Bitmap(speakersBmd);
?
I have drawn a pecked line route, sitting on its own layer, using flash tools, over a base map. I have then gone Insert>Symbol>movie and I now need to get a copy of this route into the movie's white area. I expected perhaps when right clicking on the layer, an option called copy to movie and an ability to select the movie name.
View 2 RepliesI am close to finishing my animation and for starters one scene is lagging a lot and the artwork is visible outside of the stage dimensions. is this normal?
View 1 RepliesI am trying to add some actions to artwork, is for a button, fox example the output says:
Scene=Scene 1, Layer=Actions, Frame=1: Line 1: Wrong number of parameters; set requires exactly 2.
set ("boxStatus"); = "0"
Scene=Scene 1, Layer=Layer 1, Frame=1: Line 1: Mouse events are permitted only for button instances
[code]....
I've created buttons that light up when moused over. They work fine but I need them under a semi-transparent layer that has been imported and when I move them under it they stop working.
View 1 RepliesI am creating artwork in Illustrator that I want to give someone else to bring into Flash.
1. What is the best format for making static graphics? Just a graphic symbol?
2. What about for graphics that will be converted into buttons in Flash? Does it matter if they are Graphics or Movie Clips in Illustrator?
I've got a project that heavily utilizes the new 3d artwork tools in Flash CS4. My question is has anyone done any tests to see if Flash is quicker with raster or vector graphics? My SWF really bogs down on slower machines.
View 2 RepliesI'm working on a flash project that incorporates a lot of artwork done in Illustrator CS4. I've been copy-pasting directly from Illustrator into Flash, and I add some animations as well. Final file is going to be a one single swf file which will be a part of UI for an application and .net will be the core for this. But now flash becomes unusable slow to respond for actions. My machine is a fast i7 with 6gb of RAM, so I don't think that's the issue. We are going to use this file with dual core atom processors. Does anyone have ideas for alternative importing techniques, optimizations within illustrator, anything at all that will make this more manageable?
View 1 RepliesI have produced some vector artwork in illustrator for use inside a Flash Project. When I import the artwork into Flash the importer appears to place all of the element into many nested groups and creates folders in my library. Is there a way to import the graphics from illustrator as flat shapes rather than these nested groups?
Currently I am importing into Flash and having to go into each group and cut the shapes out and paste them into an empty MovieClip which is very time consuming.
when I inserted the code some of the symbols on stage disappeared. This did not surprise me because I did not understand the code, but then when I deleted the code it did not revert back. I dismantled the frame and dragged new symbols on stage and I still could not see them when I tested the movie. Checked to see if any code was written anywhere else but could not find any. The only code I had was a gotoAndStop which I was using simply to view that specific frame. when I removed the gotoAndStop finally the images appeared. If I placed a stop on the frame I wanted to view, then it worked fine but a gotoAndStop did not work as I was left with a white screen. Finally I had to recreate everything in a new document and then the gotoAndStop worked, but I have noticed that if I drag certain components on stage then I have a similar disappearing act.
View 5 Repliesway programmically in flash to detect the edges of imported artwork (artwork that has transparent background)? I am hoping to build something that detects the edges (or boundaries) of artwork and then place other objects around those boundaries. (so they dont touch too much or overlap).
View 4 RepliesWhat is the best way to create artwork for cross platform mobile application that is made using Adobe air. This application runs on iphone,iphone4,ipad,ipod,android,blackberry,desktop.
View 1 RepliesI am working on Adobe air for making a cross-platform project which is running on iOS, Android, Mac and windows. I have a plan to make it runnable on web as well. I am looking for the best approach for making artwork for this project as it is crossed platform. Right now I am thinking to separate backend logic from front-end i.e put layout for every platform separately.
Web ---- Desktop ----------- Mobile
-------> (Logic)
I'm trying to work with an .XML playlist. I actually need it to do a lot of things that I can't figure out how to do.. I'm sure there are tons of you out there who know exactly what to do.. [URL] I'm tried this, and it works, only I can't load album artwork using this. I also want to add a few other data fields, I would like when you click on the song title to play the audio track, but also show the Artist name, the song title, the artist record label, a link to the artists website and a short section for comments from the artist about the song. Is it possible to do something like this, using this tutorial? <song title="song" artist="artist" src="mp3s/song.mp3" /> How would I add an image to this? I want to display album artwork in the audio player.
View 2 RepliesIs it possible these days to dynamically load in vector artwork to flash?
View 6 RepliesI'm making some elearning courses and we are trying to combine semi-automation with the ability to place artwork and content on the timeline. Basically we have a series of small tasks -- read this, click this button, see the result, and so on. We have a "highlight" area component that indicates the area a user is to click. Currently that component dispatches and event from the instance when it is clicked and the main timeline is listening for the event and then moves them ahead to the next task when they have clicked properly.
So the following code:
myClickAreaInstance.addEventListener("clicked",handleClick)
And the handleClick function and removing the listener all has to be handled on the timeline. And for a given task there might be an intro animation and the click area component might not come in until the end. So where to put that code and how to automate it becomes tricky. So I first dug up AsBroadcaster and could use it sort of like Mouse or Key classes.
AsBroadcaster.initialize(ClickArea)
ClickArea.addListener(this);
function clicked(obj){
//handle click broadcast
[Code] .....
Would it be better to us AsBroadcaster or EventDispatcher?
I've been thinking about flash and html5 and though each of them can draw circles, rectangles, curves, and do things with images, doesn't it really come down to the artwork? Game play aside (I know ugly games can be fun), all the talk about which looks best canvas or flash or something else, kind of moot? Don't the great games, graphically speaking, have great artwork and modeling so that as long as the engine can handle it, the programming anything other than events associated with those models and artwork doesn't matter? I'm watching my kid play Frontiersville on Facebook and I'm thinking, I could program those events but it's the artwork that's grabbing people and good gameplay keeps them. In the end does the platform really matter for games?
View 2 RepliesI have created an animation (see attached) where the stage can be dragged from left to right to reveal hidden areas off the edge of the stage. Unfortunately I need to add buttons containing links to websites within the dragable movie symbol and I can't work out how to do it.
View 2 RepliesI am using SWFOBJECT to embed my flash content. I have been worried about stage.stageWidth and stage.stageHeight returning 0 in Firefox/Internet Explorer; this problem is referred to in question #21 on the SWFOBJECT FAQ [URL]..I have been told that this problem is particularly prevelant on Macs. The SWFOBJECT FAQ (question 21) indirectly suggests that this problem does not occur with static publishing. Is this correct? Is it still advisable to implement a solution to this stageWidth/stageHeight problem, even if you are using static publishing?
View 1 Replies- I have A.fla.
- A.fla includes buttons, movie clips and also B.swf is loaded in A.fla using a LOADER
- i want to access elements in A.fla, from the actionscript codes inside B.fla to modify those movie clips and buttons based on actions going on in B.swf
for instance, lets say there is a button X in A.fla, and there is a button Y in B.fla, B.swf is loaded into A.fla, and I want the button Y to erase button X when clicked.
general question: accessing elements in a stage, through a SWF file loaded into that stage.
I'm writing a web based flash app that's written entirely in AS3. I have objects on the screen as part of a GUI. I would like the user to be able to resize the window, or make it full screen. I would like everything to auto-scale with the resize, but also remain in the same relative position on the stage.
View 1 RepliesI have a library swf (asset.swf), it's document class binded to Asset.as, and in the Constructor function of Asset,[code]as known to all, we cannot visit the stage attribute before the display object added to the stage.so, when my loader.swf try to load asset.swf, it throws exception and the loading come to failure is there some one tell me how to load the asset.swf? I cannot modify the asset.swf.
View 0 RepliesI've been working on a project that requires lots of scaling around a center point.
I always thought that stage.stageWidth and stage.stageHeight give you the dimensions of the stage you set in the properties panel no matter what. But when I went into fullscreen mode (with scaling), both the width and the height changed to the dimensions of the screen rather than staying the dimensions I specified.
I have a moving vehicle on the stage, which should change directions according to where I click on the stage.I already made it work using this formula:var angle:Number = Math.atan2(dy,dx)*180/Math.PI+90;However, I need the car to tween to the correct angle, instead of just "jumping" to it. While this is easy enough to do, the car sometimes takes the longer turn (especially when I click in the bottom-left quarter of the stage), and it seems unnatural.
View 0 RepliesIn my AS3 code all the elements on the page are dynamically positioned depending on the current width and height of the SWF - providing it's not under a certain value, then the items are back in their original position.
When debugging in the Flash player the size all reports correctly however when run from a web browser it does not - initially.
This is my HTML & PHP code for the entire page:
HTML Code:
<?php
function hashId($fn) {
$hash=md5_file($fn);
[Code].....
But I cannot get the size to report correctly without, say, clicking a button.
It seems to me like I need to force flash to re-draw the screen, but I had no luck trying to do that.
How do you make a movieclip move horizontally from the start of the stage to 3/4 of the stage. Stage size is 700 px by 600 px i want just one row in the middle of the stage. i want that movieclip to disappear right after it reach the end of the 3/4 mark.
View 1 Repliesi saw a thread while ago .. that always position a movieclip in the middle of the stage even if the stage or window resize any1 can point me to it
View 3 RepliesWhen you resize the browser window the thumbnails rows and columns adjust accordingly to fit.I've managed to attach the thumbnails correct when my enableButtons() function is called but i'm unsure how to approach resizing.
Stage.align = "TL";
var numberOfGalleries:Number = 20;
var thumbMarginX:Number = 163;
var thumbMarginY:Number = 109;
[Code].....
can you tell me a simple and clean way to pass the dimension of the stage to another class, imported in my documentclass?
View 2 RepliesIf im usin function to add a mc to the stage like so:var myChild:MC= new MC();
function somefunc()
{
stage.addChild(myMC)
[code].....