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




Putting Objects Over An Image....how?



Hello my fellow flashers...

I have photo of a face and I want to have a number of objects such as glasses, mostashe, beard etc that kids can drag over the face.

What is the most simple way to do this?

Thanks guys,

Stef.



FlashKit > Flash Help > Flash General Help
Posted on: 11-04-2005, 08:03 AM


View Complete Forum Thread with Replies

See Related Forum Messages: Follow the Links Below to View Complete Thread

DEPTH: Putting Dynamic Clips Behind Timeline Objects
I have some UI assets on the timeline, and I am creating a dynamic movieClip with addChild. I would like the dynamic movieClip to appear BEHIND everything on the timeline - on the bottom.

I have tried setChildIndex on my dynamic clip, but it always appears above all items on the timeline.

thanks!

Putting A Image In Perspective
Hi there, i was wondering if its possible to put a image or movieclip in perspective via actionscript? Im want to build some 3D stuff and would like to incorperate images in it, but i havent got a clue on how to do this.
All help is welcome

Putting Text Next To Image
I have a gallery for displaying thumnails and images, which i found on this site. I would like to add text to each picture but have no idea where to start any help would be apreciated.

Thanks,
Simon Green

Putting Flash On Top Of A Background Image?
I need help putting a finished Flash file on top of a background image for a website.
I want to put the flash file on a certain area of the bg and I have noooo idea how to do this, completely clueless
I'm not even sure if this is done in flash. But I would really appreciate any and all help that may guide me on my way. Thanks

Putting Image Loader Into Rows, New At This
I need to put 6 images into 2 rows. I have 2 AS files. 1 is the Document the other is the Images.as. I need to be able to size my loader images because the images are big and overlapping and put the 6 images in rows of 3. I was thinking I could resize the loader?


here is my document code

public function onComplete(e:Event )
{

images = new XML(loader.data );
for(var i:Number = 0; i<images.children( ).length( ) ; i++)
{

//trace(images.children()[i].@url);


//make a new image object
var aURL = images.children( )[i].@url;
var aCaption = images.children( )[i];
var temp:Image = new Image (aURL, aCaption )


// add that object to the image array
imageArray.push(temp);
addChild(temp);
temp.x = 20 *i;
temp.y = 20 * i;




}


here is my images code

public function onComplete(e:Event)
{

addChild(loader);


}


Thank for help in advance, I'm really new at this.

Putting An Image List Into A Scroller
hi,


i am new to flash and AS and I have created a custom image gallery, where thumbnails appear on the left of my page and once clicked they fade into he screen.

however i have so many images that they do not all show on the page, and take up the entire left hand side -
i would like to know how i could edit my code so that all the thumbnails (that are loaded from a .xml file) can be put into a scroller box.

I would also like to add a function so that the image would close on mouse click of the bigger picture OR when a "close" button is clicked


below is the code for my image gallery - hope this helps.


ActionScript Code:
import fl.transitions.Tween;
import fl.transitions.easing.*;

var fadeTween:Tween;

var imageText:TextField = new TextField();

var imageLoader:Loader;
var xml:XML;
var xmlList:XMLList;
var xmlLoader:URLLoader = new URLLoader();

xmlLoader.load(new URLRequest("data/images.xml"));

xmlLoader.addEventListener(Event.COMPLETE, xmlLoaded);

function xmlLoaded(event:Event):void
{
    xml = XML(event.target.data);
    xmlList = xml.children();
    for(var i:int = 0; i < xmlList.length(); i++)
    {
        imageLoader = new Loader();
        imageLoader.load(new URLRequest(xmlList[i].attribute("thumb")));
        imageLoader.x = 130;
        imageLoader.y = i * 150 ;//+ 10;
        imageLoader.name = xmlList[i].attribute("source");
        addChild(imageLoader);
        imageLoader.addEventListener(MouseEvent.CLICK, showPicture);
    }
                                       
}

function showPicture(event:MouseEvent):void
{
    imageLoader = new Loader();
    imageLoader.load(new URLRequest(event.target.name));
    imageLoader.x = vid.x;
    imageLoader.y = vid.y;
    addChild(imageLoader);
    imageText.x = imageLoader.x + 140;
    imageText.y = imageLoader.y + 280;
    for(var j:int = 0; j < xmlList.length(); j++)
    {
        if(xmlList[j].attribute("source") == event.target.name)
        {
            imageText.text = xmlList[j];
        }
    }
    fadeTween = new Tween(imageLoader,"alpha",None.easeNone,0,1,1,true);
}
imageText.autoSize = TextFieldAutoSize.LEFT;
addChild(imageText);

Putting A Basic Countdown Timer In Image
i am very new to flash, what i wanted to do was put a countdown timer in these images, what i really wanted also was to have them rotate, from one to the other, and have the countdown in there, til Oct 16 2007

how difficult is that? i have no real experiance with flash

thanks!

Putting Border And Dropshadow For A Dynamically Loaded Image
hi

how to add a linestyle and a dropshadow to a dynamically loaded image.

this is the code that loads them and sets the x and y positions. i need to give these images a border and a dropshadow effect


Code:

for (i=1; i<=num_img; i++) {
_root.imgClip0.duplicateMovieClip("img_"+i, _root.getNextHighestDepth());

eval("_root.img_"+i)._x = sc_width;
eval("_root.img_"+i)._y = sc_height;

}



can anyone help me?

Thanks

Image Rotation And 3D/2D Objects
Hello Group,

I have a continuing question that has yet to be answered. I have two other posts (sorry for multiple posting), with the same topic, but, alas, no one seems to like my topic. Perhaps this topic is not a Flash topic? Being very new to flash, I am not quite sure where to look for answers. If this is the incorrect forum to post this topic please advise.

my topic is below:

I would like to create (assuming Flash is the correct tool for this) a 3D-like rotateable image.
There is a good example of what I would like to re-create at: http://cingular.com, here the user can select a cell phone,
see an image of the phone and select a 360 degree demo of the phone, where you can open it, see the top, see the
bottom, and rotate the phone from side to side. This is done using the mouse, etc.

I checked the source code for the site, and see that they are using a *.swf file. Of course, they may not have used Flash to create this object, but some other tool, that exports to Flash.

Any ideas on how to do this type of graphics??

Thanks

eholz1

Controlling An Image Pan With An Array Of Objects?
Heres the image pan code I'm using, thanks to Krilnon:


ActionScript Code:
MovieClip.prototype.setDest = function(speed:Number):Void  {    this.mousePercent = _xmouse/Stage.width;    this.destX = Math.round(-((this._width-Stage.width)*this.mousePercent));    this.onEnterFrame = function():Void  {        (this._x == this.destX) ? delete this.onEnterFrame : this._x += Math.ceil((this.destX-this._x)*(speed/100));    };};onMouseMove = function ():Void {   bg_mc.setDest(5);};
This code controls bg_mc only, I was wondering if it would be possible to control btn0 all the way to btn22 for this code? I want bt0~btn22 to be controlled as one object. Ive tried pushing them into an array & using that but that didnt work too well.

Heres what I tried:


ActionScript Code:
allMCs = [];MovieClip.prototype.setDest = function(speed:Number):Void  {    this.mousePercent = _xmouse / Stage.width;    this.destX = Math.round(-((this._width - Stage.width) * this.mousePercent));    this.onEnterFrame = function():Void  {        (this._x == this.destX) ? delete this.onEnterFrame : this._x += Math.ceil((this.destX - this._x) * (speed / 100));    };};onMouseMove = function ():Void {    for (i = 0; i <= 22; i++) {        allMCs[i] = ["btn" + i];        allMCs.setDest(5);        trace(allMCs);    }};
Thanks.

Split And Tile Image (into Many Little Smaller Objects)
Is there a way to split an image up into many smaller objects so you can manipulate the little sections separatly?

To see what I'm getting at, click twice (to cycle to the third animation) on the following flash app. I want to know how the creator split of the image of the flower into little squares.

http://www.footloosemoose.com/michae...ye/fisheye.swf

Store And Retrieve Array Of Custom Class Objects From Shared Objects.
Hi,

I am stuck up with a problem in ActionScript 2. I am using Flash MX 2004 on windows XP.

I have created 3 custom classes say Parent, Child, and GrandChild. Parent class contains in it an array of its Child objects. Similarly each Child object contains in it an array of GrandChild objects. Also I do have one global array of all the Parent objects.

I want to store this array to the shared objects on specific events(say exiting the session) and then reload them from the shared object(on next session startup). I am able to store the global array to the shared object but when I try to retrieve the same array from shared object, I could not do it. The retrieved array is not of my custom class type [Parent].

Help needed to solve this problem urgently. Does anybody have idea how to do it??

Thanks in advance.



Cheers,
Naishadh Sevalia

Objects Talking To Objects, Parent/child Communication, Scope
I've been using AS3 at an intermediate level, and am getting deeper
into classes. I'm loving classes! I'm just cloudy on a few general
concepts.

It's easy for me to create a child object from a parent object, like a
ship in space for example (not working with ships right now but seems
fun to talk about). I can then navigate the ship from the parent
object.

What happens if the ship's engine temperature reaches critical? Is it
wise to dispatch a ship event that tells space that my ship is nearly
scrap? Or do I periodically query the temperature amount of the ship
from space? To me an event sounds like the solution, but I remember
hearing somewhere that parent objects should only talk to child
objects, not the other way around. Is this true?

Could I trouble someone for a basic example of how you would make this
communication work best?

Thanks for the assist. I'll post if I find anything interesting in
the meantime.

How Do I Reference Objects Inside Of Exported Library Objects ?
Hi,

I am having trouble figuring out what seems to be a simple fix? I have created a movieClip in Flash that contains 3 button clips. I want all to be accessible to actionscript, so I gave the movieClip and the 3 buttons a Linkage Identifier. I deleted them from the stage.

In actionscript, I have instantiated the movieClip and, thankfully, the buttons inside went along.

The trouble I'm having is figuring out how to target those buttons. Since they're on the stage already, I shouldn't have to create a new instance right? When I trace the buttons I get an undefined return in the out put.

Anybody know this one??

Thanks for the help!

Brian

Depth And Dynamic Objects/Attaching Scripts To Objects
I am having some problems with my Flash MMORPG created in Actionscript 3.0 that I am working on, not really errors, but more how to do something, in theory. I have 2 problems. First, my game is at a 45 degree angle, so it requires some depth handling(like one object is over another object when it should be behind that object). I am not sure how to go about this. I was thinking that each object's depth should be it's y position if it's origin was at it's feet. But that idea didn't go well, because the depth is limited by the number of children. What is the average way to do this? Next, I am trying to make dynamic objects, so that all I would do is copy and paste an object, or create a new class of it and it would work. What I mean is, the character checks a collision for each object, but if I copy the object with the same name, it doesn't work. In AS3 you can't attach scripts to objects anymore, so I am running into a lot of problems with that. How would I go about fixing this? Thank you in advance.

Aligning Variable Sized Objects And Objects Inside Them
Hi,

How do I align a movieclip, which width and height is user-defined, inside another object (this one is static, though). Top-left alignment is easy, x=0 and y=0, but what about center, center left, bottom left, etc? Math(.round) i suppose, but how?

and

I want an object (static) inside the movieclip (user-defined) to stay aligned to, for instance, the top right corner, similiar to the minimize, maximize and close buttons at the top right of your browser..

The height and width data is pre-defined by the user in another file... But that does probably not make any difference...



If anyone could help me with this, I'd appreciate it alot!

Thanks!,
Peter

Best Way To Hide On Stage Objects When Other Objects Need To Be Shown?
A typical nubee question..What is the best way to hide objects on sage when a button from navigation is clicked and in response other information or objects need to be shown instead of the one previously on stage?

How To Output Both AS Objects And Drawn Objects On Pages?
Using Flash 8;

Hello,

I am building a site entirely in actionscript and the "shell" of the site, the pages, text, static images, come up and work fine, no problems.

However, I'm having troubles trying to implement Kirupa's "XML_Flash Photo Gallery", for one of my pages, link here:

http://www.kirupa.com/developer/mx20...otogallery.htm.

I'm running into troubles because my pages are entirely actionscript and this tutorial uses objects which were drawn by the drawing tool.

I have been trying to get both actionscript and drawn objects to work together and cannot get it right!!

Questions:

1) In terms of layering or frames, What is the best way to output on your pages both "objects drawn by the Flash drawing tools" and "actionscript objects"?

Is this better handled using frames or layers? Should I place my actionscript on the first few frames, then my "drawn objects" on the later frames? Or use layers and have my AS code above or below the manually drawn objects?

For example:

I have my actionscript on layer 1. Then use drawing tools to draw a box on layer 2.

When published, I want the "manually drawn box" and "the actionscript drawn objects" to both be viewable on the pages. Do I place the "drawn" layer above or below the

actionscript layer? Or should this be handled by frames?

I have tried both and neither seem to work for me. When I do one or the other, it works, meaning, all drawn objects, obviously things are viewable, then if

I use all actionscript, things are viewable, but when I try to combine both, the manually drawn objects do not show up.

The actionscript objects show up correctly, but I cannot see the objects I have directly drawn on-stage.

In my actionscript, I use, "_root.getNextHighestLevel()", for each of the objects, this works fine for all the actionscript objects. However, I did nothing

for the objects drawn using the tools, should I attach the same "_root.getNextHighestLevel()" to those objects drawn on-stage?


Or,


2) Should I try to draw Kirupa's objects on my pages using actionscript?

Thanks, any help is great!!

Dave.

Help: Stage Objects Get In Front Of Script Objects?
This is getting me mad...

addChild(my_script_object);

I can't see it...

If I try trace(numChildren) I get 10, so then I try addChildAt(my_script_object,9) and still cant' see it.

If I delete all the objects in stage then I finally see it.... If I delete one by one I find my_script_objects gets beneath a bitmap placed by hand by the designer.

Any ideas?

TIA

Best Way To Hide On Stage Objects When Other Objects Need To Be Shown?
A typical nubee question..What is the best way to hide objects on sage when a button from navigation is clicked and in response other information or objects need to be shown instead of the one previously on stage?

Putting Everything On A CD
Im having a problem with the path issue. Can anyone help me set the path correctly. Like what do I do when I want to run the application from a cd which will include "pdf's" that will be linked from a "swf" file. Everytime I click on the links on the cd it's telling me it can't find the link. Please help. It will be greatly appreciated, I'm pulling my hair.........

Putting In All Together
I have two fla (Flash 5) files that I created (one with some help), that I want to make into one fla file so that the two play seamlessly. One is an intro, the other is main. How can I combine the two, as in scene 1 and scene 2, so that it all fits into one?

Putting This On VHS
I am wondering if and how I can take a fla. or swf. file and get it on to a VHS tape. I know that it can be done with Director, but I am wondering about flash. I have Flash 5

Putting It All Together
I know nearly all the basics of flash,buttons and movies etc,but I like to find out more about how I go about putting it all together to produce a web page without the use of SWISH.Can anyone point me in the write direction whether it be a weblink or a book title?

Thanks.

Putting It Together
i have a site with 6 pages. im struggling with how to put it all together. should i make each page its own movie? I have a nav bar that will be on each page. and then loadmovie for each page? or should i have it all on the main timeline. thanks.

Putting A Swf On The Web?
I have made my own personal website in flash with buttond and junk and i would like to know how to upload it onto the net, i am a member of host Ultra a free web page server thingy.

Putting It All Together...?
The image link below is to give you the visual example of my chosen project. I will have a next button and a back button. The Flash show will begin with fall. Fall will have colored leaves falling, pumpkins glowing, etc. Winter will have wind blowing, snow falling, etc. Spring will have flowers blooming...etc. Summer will have children playing and a "June Bug" flying. My problem is this...I will create them each individually -> a new stage (with BG image) for each with all of the effects. How do I bring it all together into one Flash show? What button calls could I use to change (fade out/in transition between scenes) between the scenes. I email my instructor but I believe she is out of town this weekend. I don't really need help putting together the individual scene just bringing them all together. Thanks in advance!

Take care!

http://img488.imageshack.us/img488/2916/problem1fh.jpg

Putting It All Together . . .
We are working on an interactive myster project and are trying to put it all together. We have the scenes made as seperate swf files. Now we want to put them together in a master flash file where buttons will go to scene to scene (with a preloader, our different scenes are quite large) can someone please help?

Putting A Mc After Another Mc...
i asked this question alrdy... i want to have a mc1 play in frame 1 of the maintimeline, after that has played i want mc2 to play in frame 2. can someone make a sample fla for me?

Putting A Mc After Another Mc...
i asked this question alrdy... i want to have a mc1 play in frame 1 of the maintimeline, after that has played i want mc2 to play in frame 2. can someone make a sample fla for me?

Putting 2 And 2 Together...
I've actually gotten the external swf to load. ( i erased the other duplicate post and edited the title of this one). It appears when tested. But I dont want it to appear, I want to pass it into a moviematerial. I have the moviematerial created as well as the plane. Am I missing something? Do I need to load it into the library somehow? Do i need to pass the linkage name of the swf instead? I am not really sure how to bridge the gap here. Once again, any help would be wonderful. Oh, and the code is posted below.


Code:

import org.papervision3d.scenes.*;
import org.papervision3d.cameras.*;
import org.papervision3d.objects.*;
import org.papervision3d.objects.special.*;
import org.papervision3d.objects.primitives.*;
import org.papervision3d.materials.*;
import org.papervision3d.materials.special.*;
import org.papervision3d.materials.shaders.*;
import org.papervision3d.materials.utils.*;
import org.papervision3d.lights.*;
import org.papervision3d.render.*;
import org.papervision3d.view.*;
import org.papervision3d.events.*;
import org.papervision3d.core.utils.*;
import org.papervision3d.core.utils.virtualmouse.VirtualMouse;
import caurina.transitions.*;
import org.papervision3d.events.InteractiveScene3DEvent;
import flash.net.URLRequest;
import flash.display.Loader;

var viewport:Viewport3D = new Viewport3D(0, 0, true, true);
addChild(viewport);
viewport.buttonMode = true;

var renderer:BasicRenderEngine = new BasicRenderEngine();

var scene = new Scene3D();

var camera:Camera3D = new Camera3D();
camera.zoom = 10;
camera.focus = 100;




var material:MovieMaterial = new MovieMaterial("gumdrop.swf");
material.animated = true;
material.smooth = true;



var p:Plane = new Plane(material, 1200, 950, 3, 3);
scene.addChild(p);


var thisMovieClip:MovieClip;



var thisLoader:Loader = new Loader();

thisLoader.contentLoaderInfo.addEventListener(Event.INIT, doneLoading);



thisLoader.load( new URLRequest("gumdrop.swf") );



function doneLoading(evt:Event):void {

thisMovieClip = MovieClip(thisLoader.content);

stage.addChild(thisMovieClip);

thisMovieClip.stop();

}
addEventListener(Event.ENTER_FRAME, loop);

function loop(e:Event):void
{
  renderer.renderScene( scene, camera, viewport );
}

Putting Site Together
This is my first site that i'm putting together and I have no idea wat to do? I have everything i wanna put on just dont know how to link them? please help

If anyone knows of a tutorial that can help me out that would be great

thanks

Putting It On Site
Yea, im a newbie. I am not sure how to put it on a site. What files do i have to load up to my sites directory, and what do i have to do basically lol.thanks

Putting Variables From An Url In An Swf
hello,

I have an swf and in my adress-bar there's an url with a variable like http://www.webs.be/whois/whois.asp?dns=helpme (this comes out an asp-page)

Now i want to get the value "helpme" from the url in to my flash-movie.

How can I do that ?

Putting Variables From An Url Into An Swf ?
hello,

I have an swf and in my adress-bar there's an url with a variable like http://www.webs.be/whois/whois.asp?dns=helpme (this comes out an asp-page)

Now i want to get the value "helpme" from the url in to my flash-movie.

How can I do this?

Putting The Swf Into Html
heres the code im using..but it still has about 1cm either side of the movie..y wont it go 100 x 100%? and that white part isnt in the movie i have created.

<HTML>
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" ID="Mainwindow" WIDTH="100%" HEIGHT="100%">
<param NAME="movie" VALUE="mainwindow.swf">
<param NAME="quality" VALUE="high">
<param NAME="wmode" Value="Transparent">
<embed src="mainwindow.swf" quality="high" bgcolor="#FFFFFF"
WIDTH="100%" HEIGHT="100%" TYPE="application/x-shockwave-flash" >
</object>
</html>

Putting Flash On A CD
**I Put The Same Question in the General Help Section But I Forgot To Mention That Im Using Flash MX**

Hello,
My friend and I are making a yearbook cd for our school and we want to put flash on there but we came into a problem. We made the flash and it is complete but when your linking one swf to another you have to put the location of the other swf. And since we made it on the hard drive, we had to put the link as C:........ but then we have to burn the CD and it is linked to the hard drive so of course its not going to work. So the question is there a standard you can put like a variable (X) or something in flash that it can specify which drive. Now we could do D:...... But then it would only work on D: CDROM drives, not E:,F:, ect. Well, let me know if you have any anwsers for our question. Thanks Alot.
David

Putting It Up On To My Site
Sigh... I always hate being the n00b.

Anyway, I've learned all about making Flash movies and everything within the program, but now I just need to know how to get what I've made onto my site. Thanks.

Putting My Site On The Net
hi
i have done a complete site in flash .i'd like to put it up as it is with i test a movie in flaSH,INSIDE A PLAYER i think. any tutorials that can step me through it would be most kind

Putting Two Movies As One - Help
I am new at flash - so please excuse my ignorance. I need to put two simple flash movies (2 seperate files) into one. Are there any simple steps to do this? Thanks!!

Putting An Fla On A Website
How do I put an fla on the web, like in an html, I have Microsoft FrontPage, but I cant figure out how to put an fla on it, what code do I use?

Putting It On A Site
whats the html code to put a flash clip on a website?

Putting Variables Together
Ok here is the problem. I want to take seperate variables and put them together...Ex.
Sec=PIC
Num=14

MyPic=Sec+NUM;

THen I want to be able to use the MyPic Variable To Pass through a function..
I tried making the values strings and putting them together that way and then using the eval to make them one.

Putting It Together Problem...
As I said in my other post is that im making scene to explain condensation. In the scene there is a bunsin burner burning the glass bowl of water making it boil (all vector based) then the steam rises it hits the metal sheet creating the condensation. The problem im having is were I would click on the arrow which describes the steam rising, ive made into a movie clip, then what ive done is created a mask over a gradient square and motion tweened the box to go over the arrow to make it look like the arrow is filling up.
But when ive finished with this movie and go back to scene 1, ive projected it and nothing happens the arrow is not there, ive tried dragging it on and that doesnt work, but the movie works when in the library, this is most probably got a simple solution but cant get my head around it.

Any suggestions?

Putting Mouse In....
hallo, this is the problem:

how can i put the mouse in the place i want in the flash movie when it's begin? is it possible?

thnx

Putting A New Flash On To A Old Url.....HELP
OK, I have a website that I want to upgrade. I only want the "Enter" page to have my Flash intro. I have the url and everything but I need to know how to put the flash into the webpage... So when I go to the page it will show the flash... Please help me.

Putting The Flashsite On The Web From A Mac
hi, does any one know how to put my site on the web? I think i contact the company i got my webspace from right?

Putting All The Of The Puzzle Together.
The question I have is very opinion based I think due to the fact it's about selecting one program as the "master program". I am new to flash but have picked it rather quick and like it. I see that it is a good way to add to your HTML site, make a whole site with, or make stand alone movies. However am I not understanding is there a final program I should be using to combine my HTML with the flash? I also use adobe photoshop 7 as well as image ready. I was told that my design and layout could be done in PS and IR and flash elements could be added there? Any help would be welcome! Just remember to think simple site design, I know a lot about animation and graphics, but little with the www. Thanks

Putting Movie On The Web
hi this may seem like a stupiod question but how can i put my movie online....after i create it it has different scenes but i dont know what do ???

i have demo of dreamweaver but dont know how to use it???

Copyright © 2005-08 www.BigResource.com, All rights reserved