Welcome to GraphicForumz.com!
FAQFAQ      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

Adding an Image into ActionScript: Newbie Question

 
   Graphic Forums (Home) -> Newbie Corner RSS
Next:  Play flv video in old browsers which don't have f..  
Author Message
Marion

External


Since: Jan 23, 2008
Posts: 2



(Msg. 1) Posted: Wed Jan 23, 2008 11:23 pm
Post subject: Adding an Image into ActionScript: Newbie Question
Archived from groups: macromedia>flash (more info?)

Hello all,

I'm new to Flash's Actionscripting and I'm modifying a simple game
(Breakout) that was provided on the web by Flash. I am trying to
replace already defined sprites with an jpeg image of my choice into
an actionscript. (replace the bricks with a jpeg picture of my
own.)

After reading a book I bought from Borders (Essential ActionScript
3.0) and searching the web and trying different things, I'm a bit
fustrated. I thought replacing a sprite with a jpeg image would be
easy but apparently I just don't understand the event handling like I
should.

So, once creating an instance of my pictureURL and loading it with
Loader, how do I call it? I have a feeling I'm not understanding the
process of ActionScript events.

It says here that an event can be 2 things: built in and custom.
Built in events changes the state of runtime. My question is: when
do you know when to define an event listener? Do I need the event
listener? Is the listener needed for when the ball hits the
'bricks' (or jpeg picture) in my case.

I'm pretty confused, anyone with suggestions how I might go about
solving my problem is appreciated.

-m

 >> Stay informed about: Adding an Image into ActionScript: Newbie Question 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
Newbie question: adding nodes (anchor points) to objects - I created a simple shape (similar to a triangle) in flash. Since it's a mask that I've created patiently, I wouldn't like to recreate it just because I need a new anchor point to it. In Flash's help text, it says: "To add an anchor point: Click a...

newbie: animated image, how? - Hey Flash Professional 8 I'm wonder if this is possible, and if it's possible maybe somebody could share some thoughts on how to do it (link): Okay, I have 1 image (.png file) consisting of text (with a shadow effect applied). I want to create a....

NEwbie q: Website image is small - Hello, I just created a flash file with Macromedia Flash 8. I have exported it as a image. I've uploaded it to the web server and it looks smaller than it should. I have tried adjusting the width and height of the image and it still looks the same. ....

Question from a newbie - Greetings - I bought a template with a Flash element in it. I have the .fla file. Basically, what I need to do is change the programming for a search function in the Flash file. Is it easy to get into it, and give it a "<form action=" ...

newbie question - My swfs are linked using this script on a button: on (release) { loadMovieNum("about.swf",5); } which works fine in my flash player, but I don't know how to make this work when I embed it in Dreamweaver. Can anybody help me out?
   Graphic Forums (Home) -> Newbie Corner All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]