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




Switching Images Within A Frame



Hi, total newbie and totally freaked out, did the search on google and did the search in online help, no use.

Seeking to switch images in a frame (without switching the frame of course). Like DynamicText allows to switch text.

Basically have numbered images which I want to call to the screen from an arrayed index, yes have a good idea of scripting and none of Flash.

Any pointers would be highly appreciated.



KirupaForum > Flash > Flash 8 (and earlier) > Flash MX
Posted on: 04-06-2003, 04:41 AM


View Complete Forum Thread with Replies

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

Little Help With Switching Images
I am trying to edit a site, I have a picture on top right side. I want to use a different picture for each page using action script. I have added the pictures in series and no actionscript seems to be working for that. Can anyone pls check it out?

www.renuprinters.com/test.fla

Help With Switching Out Images
Hi there :)

Still an ActionScript Newbie, and am trying to figure out how to correctly code something like this.

Now, I've done a little bit of training, and the solution is swimming in my mind... but I think I just need a little bit of help shaping this.

Here is what I want to do. I am creating a flash piece that has pieces of a face swapping out - basically what I have done is in photoshop, taken headshots of people and cut them in half so there is a top half and a bottom half.

Basically, I want to mimic this (look at the video that loads on this site):

http://www.radicallyconnected.com/

I want the image swaps to get faster further into the video, so the timings don't have to completely mimic this, but this is the general idea that I am looking to emulate.

Now, I have a feeling that this involves using arrays... but my mind is not gripping around the syntax involved. How do I get it so the animations of text happen in conjunction with the pictures swapping out? If anyone can help with this, you will have my eternal gratitude. :)

If you need any more information, please let me know and I'll provide what I can...

Switching Images
I'm looking to do something in Flash where an image will be displayed in a certain way. I'm not sure how possible it would be. I was thinking that it would be cool to dynamiclly load an image. So, what I want to know how to do, if it's possible, is put an image in, and then when I switch out the image on my webspace, it also changes in my flash document. Anyone know how I can do this, or would I have to edit and upload manually??

Switching Images
I'm looking to do something in Flash where an image will be displayed in a certain way. I'm not sure how possible it would be. I was thinking that it would be cool to dynamiclly load an image. So, what I want to know how to do, if it's possible, is put an image in, and then when I switch out the image on my webspace, it also changes in my flash document. Anyone know how I can do this, or would I have to edit and upload manually??

Switching Images Each Hour
Q- What is the best way to set the file up to switch between two frames each hour.

I have a presentation for the company reception that is going to display the company logo along with other information the project is pretty much complete now but to prevent the company logo burning-in (this is where an image that is constantly on the screen leaves a permanat mark) I would like the move the logo from the top of the screen to the bottom each hour.

Switching XML Loaded Images?
I have this script:


ActionScript Code:
// Load Details for Main Page
function loadDetails(xml, n) {
        details_mc.eventName = xml.childNodes[n].childNodes[0].firstChild;
        details_mc.eventOpener = "w/" + xml.childNodes[n].childNodes[1].firstChild;
        if (details_mc.eventOpener == "w/null") {
            details_mc.eventOpener = "";
        }
        details_mc.eventLocation = xml.childNodes[n].childNodes[2].firstChild;
        details_mc.eventTime = xml.childNodes[n].childNodes[3].firstChild;
        details_mc.eventDate = xml.childNodes[n].childNodes[4].firstChild;
        details_mc.eventPrice = xml.childNodes[n].childNodes[5].firstChild;
        poster_mc.loadMovie(xml.childNodes[n].childNodes[6].firstChild);
        gotoURL = xml.childNodes[n].childNodes[7].firstChild;
}


and I am just trying to get it to switch the data and image on the stage from what I loaded originally. It works for the data but when it gets to the image it tells me this:


Quote:




*** Security Sandbox Violation ***
Connection to file:///Macintosh%20HD/Users/bdpmutli/Sites/BDP/undefined halted - not permitted from http://bdp.uwstout.edu/images/posters/none.jpg
-- Remote SWFs may not access local files.




Anyone know why right off hand?

Thank you!

EDIT: Posting this I might have seen the problem. I will play with it and and keep checking back here. Thanks.

Frame Switching
Hey guy whats up, I wanted to know if someone could help me out with a problem I'm having. I have a demo file, that I would like to send to you, and see if you can help me out with it, but I dont think I have permission to attach files, so I can email it to you if you can shoot me an email at shiftctr@hotmail.com

Basicly I have three buttons on stage, when ever someone clicks either of the three buttons, I want it to play a movie clip then goto the corresponding frame instance.

This will make allot more sence if you see the fla.

I want buttonOne to play frame "start" which has the movie clip in it, then goto frame "another"

buttonTwo to play frame "start" then goto frame yetAnother" and buttonThree to play frame "start" then goto frame "third"

I dont know if this is possible or not, if so, can you please help me out, other wise there is a long method of making it work, but it is going to take SO MUCH time to do.

Thank you.

3 Images Switching Positions And Layers
I am using Flash 8 Pro.....and pulling my hair out on this one. Seemed simple at first, and maybe it is, but I cannot figure out a reasonable way to accomplish my goal. Pull up the sample and then read as you play with the sample to follow what I am trying to do.

http://www.daxcastro.com/flash/menutest.html

Okay.. I have 3 objects... Red, Green Blue.. I want the user to be able to click on any one of the three (click on the green one in the sample) and the one they click on moved to the top layer and then tweens to the center.

The above sample shows the principle with 2 objects, no problem there. But add the third and now you have a nightmare.

Anyone who can steer me in the right direction. Much love to ya!!!

Please help.

Dax

Cool Idea For Switching Between Images
Might be in the wrong spot... But I wanted to see everyone's favourite transition effects between images! Am trying to come up with some fresh ones...

Switching Loaded Images In Movieclip
I'm using this code to load to images in seperate movieclips.

Code:
stop();
var imagesLoaded:Number = 0;
//load images in container
var mcLoader:MovieClipLoader = new MovieClipLoader();
mcLoader.loadClip("image1.jpg", imageclip1);
mcLoader.loadClip("image2.jpg", imageclip2);
//
//add listener object
var loader:Object = new Object();
mcLoader.addListener(loader);
//
//check if images have loaded
loader.onLoadInit = function(mcLoader) {
imagesLoaded++;
if (imagesLoaded == 2) {
gotoAndPlay(2);
}
};
This is executed on the first frame. After several tweens I want to return to frame 1. This time loading:


Code:
mcLoader.loadClip("image2.jpg", imageclip1);
mcLoader.loadClip("image3.jpg", imageclip2);
And the final time:


Code:
mcLoader.loadClip("image3.jpg", imageclip1);
mcLoader.loadClip("image1.jpg", imageclip2);
This is probably done with some kind of FOR loop ("image".number.".jpg")?

But the general problem I have: every time I load two new images in already loaded movieclips, the clips flash (become white) for a moment.

When I've loaded an image inside a movieclip can't I switch to another image without the clip flashing when it replaces the old image with the new one?

Switching Text/images Based On URL Via XML
Hey all, I was hoping someone could help me out with a bit of an Actionscript / XML issue. I currently have an SWF that is reading and displaying text, images and an ID number via an XML file. What I wanted to do was switch the text and graphic based on a URL.

For example the if the url was www.somedomain.com/about/ the SWF would then read the XML file and see that based on the domain ID the "about" text and images would load.

Any idea on how I could achieve this?

Thanks in advance.

Here is what my Actionscript looks like
Code:
function loadXML(loaded) {
if (loaded) {
_root.headers = this.firstChild.childNodes[0].childNodes[1].firstChild.nodeValue;
_root.subhead = this.firstChild.childNodes[0].childNodes[2].firstChild.nodeValue;
_root.image = this.firstChild.childNodes[0].childNodes[3].firstChild.nodeValue;
headline_txt.text = _root.headers;
subheadline_txt.text = _root.subhead;
picture_mc.loadMovie(image);
} else {
content = "file not loaded!";
}
}
xmlData = new XML();
xmlData.ignoreWhite = true;
xmlData.onLoad = loadXML;
xmlData.load("headers.xml");
My XML:

Code:
<?xml version="1.0"?>

<headers>
<section>
<id>1</id>
<title>About</title>
<desc>A description will go here.</desc>
<image>images/bg1.png</image>

</section>
<section>
<id>2</id>
<title>Support</title>
<desc>Another description here.</desc>
<image>images/bg1.png</image>

</section>
</headers>

Switching Text/images Based On URL.
Hey all, I was hoping someone could help me out with a bit of an Actionscript / XML issue. I currently have an SWF that is reading and displaying text, images and an ID number via an XML file. What I wanted to do was switch the text and graphic based on a URL.

For example the if the url was www.somedomain.com/about/ the SWF would then read the XML file and see that based on the domain ID the "about" text and images would load.

Any idea on how I could achieve this?

Thanks in advance.

Here is what my Actionscript looks like

Code:
function loadXML(loaded) {
if (loaded) {
_root.headers = this.firstChild.childNodes[0].childNodes[1].firstChild.nodeValue;
_root.subhead = this.firstChild.childNodes[0].childNodes[2].firstChild.nodeValue;
_root.image = this.firstChild.childNodes[0].childNodes[3].firstChild.nodeValue;
headline_txt.text = _root.headers;
subheadline_txt.text = _root.subhead;
picture_mc.loadMovie(image);
} else {
content = "file not loaded!";
}
}
xmlData = new XML();
xmlData.ignoreWhite = true;
xmlData.onLoad = loadXML;
xmlData.load("headers.xml");



And my XML


Code:
<?xml version="1.0"?>

<headers>
<section>
<id>1</id>
<title>About</title>
<desc>A description will go here.</desc>
<image>images/bg1.png</image>

</section>
<section>
<id>2</id>
<title>Support</title>
<desc>Another description here.</desc>
<image>images/bg1.png</image>

</section>
</headers>

Switching One Mc Frame When Clicking Another Mc
SET-UP:
I have row of buttons, all different movie clip symbols that will have transitional animations for their rollOver and rollOut events. They are contained in a single parent movie clip. They will eventually work as thumbnails that load swf files into a placeholder mc.

OBJECTIVE:
Each mc button has rollOver, rollOut, and release events, with each going to a specific frame in that movie clip's timeline. In addition, each mc button has an 'on' state, or corresponding frame in the timeline where the mc button is 'dormant'.

PROBLEMS:
1. When the on (release) event is called on a particular mc, it navigates to the indicated frame. However, the rollOver and rollOut events contradict the release. I have tried setting variables with 'if' conditions on each event, but it is not working correctly.
2. When one mc is selected, it should 'de-activate' the one that was last selected. e.g., when you click mc1, and mc2 was on it's dormant 'on' state, it should make mc1 go back to the frame in it's timeline where it will be active again.


Here's what I have that works navigationally. This script is attached to an mc with an instance name 'mc1' embedded within a parent clip.

on (release) {
_root.holder_mc.loadMovie("image1.swf", 0);
this.gotoAndPlay(3);
}

You can see it's targeting placeholder clip, which is now working fine. Frame 3 is the 'on' or activated dormant state and I want it to remain there without interference from the rollOver or rollOut. Then when 'mc2' or 'mc3', etc. is clicked, I want 'mc1' to return to frame 1 where it will be active again.

Eventually, the rollOver and rollOut animations will be more complex, but for now, I just have them going to a single frame with no fancy tweening animation.

Please help!! This seems like it should be built into Flash somehow, but I can't find anything on solving the problem!!

AS 1.0 Help, Switching Frame Rate.
Hello all,

I was wondering if there was a way to control the frame rate of an swf with action script 1.0. The company i work for is looking for a solution to this, they basically display custom flash ads for clients on flat screens and between these flash shows they want to add an extra ad which needs to run at a different frame rate than all the other ads. All the regular ads run at 12 fps and they want to have an ad come in and play at 24 fps and once the 24 fps ad is over have the rest of the ads play at 12 fps again. All these ads are driven by an action script 1.0 code which controls all the ads.

I hope i explained it good enough, i am just looking for a piece of code that will allow me to change the frame rate of a flash movie.

Unfortunately they still use AS 1.0 for now.

Thanks!

Help Switching To Image Frame
I am in the process of customizing a template that a client of mine purchased from Template Monster.

The template can be seen at http://www.webdevgirl.com/mauimatt

I'm in the process of adding additional thumbnails to the top of the first screen because there were 3 blank ones. The topmost thumbnail you can see on the template is one I've added.

The problem I'm having is that although I have changed the actionscript to point to frame 6 of the allim symbol, it still jumps to the 5th frame of the allim symbol.

Here is the actionscript for image6


Code:


on (rollOver) {
this.gotoAndPlay("s1");
}
on (releaseOutside, rollOut) {
this.gotoAndPlay("s2");
}
on (release) {
if (_root.pic<>6 and _root.pic_animation == 1) {
_root.pic_animation = 0;
_root.pic = 6;
_parent._parent.pic.play();
}
}



I know it might be hard to assess just from this little blurb what's going on, but if someone wants the .fla file send me a pm and I'll email you the .fla. I'm hestitant to post it since it's a purchased template.

If anyone has any thoughts on the situation, that'd be great.

I wanted to add the following that I just found in the actionscript. It refers to the img instances themselves and I'm guessing it has something to do with the image switching.


Code:


onClipEvent (enterFrame) {
homeX = -_root._xmouse/2.15;
diffX = homeX-_x;
moveX = diffX/6;
_x += moveX;
}




The original code had moveX = diffX/5 and I changed to 6, but it hasn't made a difference. Just thought it might help.

Switching Images Used As A Symbol Late In Development
Does anyone know a way to switch the image you are using as a symbol later in the development stage? Lets say you edit an image in Fireworks, then convert it to a symbol, then copy and paste it into Flash and use it throughout the movie. Is there a way to later on change the image to an updated one? Say you cleaned it up more in FIreworks, can you somehow change the symbol to use that new image, while preserving the positioning and tweens and effects placed on it throughout the movie?





























Edited: 09/30/2007 at 10:30:23 PM by Moxx82

Losing Instance Name When Switching To Another Frame
Hi guys

I got a weird one for you all.

I've created a character object which is being used in a game.
Theres 3 frames inside it, each containing a different animation.
So, frame 1 contains a walking animation, frame 2 contains a running
animation and frame 3 is dying. They're all labelled appropriately with frame labels so its pretty easy for me to access any one of them at any time.

Each animation consists of a body and a head which have been given the instance name "body" and "head" in all 3 frames.

The problem is, whenever I switch frames (eg: walking to running), and then try to access the head or body instance in the new frame, flash doesn't seem to recognise it for a fraction of a second! It throws a "TypeError: Error #1009: Cannot access a property or method of a null object reference."
Then for some reason, everything is OK and it carries on just fine, as intended, as if nothing has happened.

I've labelled and named everything appropriately, and I still can't figure out whats going on.

Can anyone shed any light on this? All help is appreciated. Thanks!

Playing A Banner At The Top Without Frame Switching Interupting It.
ok I have a flash site im working on and I have room at the top of it for a banner, well I want the banner to play constantly even when u click on a button that takes the scene to a diff frame I dont want the fact that it goes to a new frame make the banner animation swtch frames like lets say im on Frame 2 of the animation, I clcik a button that skips ahead to frame 100 I dont want the banner to go there I want it to play continuously. how do i do this?

[MX04] Sound Problem When Switching Frame
This could be pretty hard to explain. I'm making a RPG and got stuck on a sound problem.

I have 3 frames. Frame 1 is a map (where the character walks around). Frame 2 is also a map (but a diffrent place). Frame 3 is a battle scene. Frame 1 & 2 share the same music frame while the battle scene ha one of its own.

Screenshot

When ever a random battle occurs, the map music will stop, the scene changes and a diffrent music starts. After the battle you'll go back to the scene you were on before the battle and the normal music (name of sound is "mysound") will restart. However if the battle takes place on map 2 (frame 2) the music wont restart since it's shared with the first frame (see picture above). I have already thought of giving each frame its own music frame, but that wont do, since I dont want the music to restart if you WALK from map1 to map2.

So my question is: Is there any way to check if a certain music file is already playing (the thought was that if a music file is already playing it will just keep doing so, If not it will just restart the the music) or anyother sollutions?

Somebody gave me a tip to do something like this:

Frame1:
var snd = new Sound();
snd.attachSound("mysound");
_root.snd.start(0, 99);

Frame2:
if (mySoundObj1.IsPlaying())
//do nothing
if (!mySoundObj1.IsPlaying())
_root.snd.start(0, 99);

But this doesn't seem to work. Do any of you see any errors in this code or have a diffrent sollution?

[F8] Switching To A Random Frame After Thirty Seconds
I have a flash file with 3 stories (each it's separate keyframe)

I have a script that basically tells the flash on load, to play a random story from those 3.
..................................
frameLabel = new Array()
frameLabel[0] = "story1";
frameLabel[1] = "story2";
frameLabel[2] = "story3";


x = random(frameLabel.length);
_root.main_mc.gotoAndStop(frameLabel[x]);


stop();
..................................


QUESTION - How can i get the flash to keep playing a random selection of Story 1,2 or 3, for 30 seconds, without the page having to reload? So for after 30 seconds it has moved to a randomly selected story.

Newbie Question For A Small Project - Switching Between Multiple Images
Hi all,

I'm hoping someone can help shed some light on this for me...I have a project where I will have a series of the same image, only different color combinations. I will have two rows of color swatches and based upon what swatch the user clicks on, I will turn that color option 'on' in the photo.

an example of the kind of thing I'm looking to make would be found on this page:

http://www.vaportrailarchery.com/strings.asp

any help on the theory, or actionscript used to complete this would he appreciated. I do have some prior experience (minimal) with flash, so I at least know my way around the program, I'm just kinda stuck on how to approach building this.

Switching Scenes And Switching Back
I have a main flash movie with another scene. The second scene is called upon by an on press command. The second scene then loads an external .swf file. I'd like to have an on press command that then will take me back to scene 1 of the original flash movie.

I'm lost...

thanks.

Moving Images Frame-by-frame With Mouse Movement
Hi, I'm new to flash mx, so please help me out in details. thanks.
I have 10 images in 10 frames ( 1 image per frame ). So I'm trying to make the frame to go to the next one when the mouse is moved to the right, and make the frame to go to the prev one when the mouse is moved to the left.
Can someone please help me? I really need to have this done ASAP.
Thanks for all the inputs.

Moving Images Frame-by-frame With Mouse Movement
Hi, I'm new to flash mx, so please help me out in details. thanks.
I have 10 images in 10 frames ( 1 image per frame ). So I'm trying to make the frame to go to the next one when the mouse is moved to the right, and make the frame to go to the prev one when the mouse is moved to the left.
Can someone please help me? I really need to have this done ASAP.
Thanks for all the inputs.

Jagged Images When Not On Frame One
Has anyone else experienced the problem of images (graphpics) getting jagged if they are in anything other than a one frame (root) movie? I've had this problem over and over on different machines and different versions of Flash. I've tried everything to do a work around, put the entire site in a movie clip and put that on frame one of a one frame movie, load it in externally into a container clip, etc. it's just doesn't fix the problem...

Oh yeah, the problem doesn't have to do with the x, y, being integers. They are on exact integers on everytime line (parent on down). It has to do with the movie being longer than one frame on the root... I can post an example if that helps.

(Sorry to keep editing) It also is not that I'm resizing the images in Flash, they are being placed in at 100% and not resized. (just trying to save you time in responding!)

Images Into Frame With Buttons
I wanted to have 10 or so buttons and by clicking each button It would bring up
a different picture from the library (Or a folder on my pc) onto the movie.

But I would like this to be done with one frame (If Possible)
Sort of like a dress up game but adding the pics with buttons instead of dragging them around.

I have tried different codes but nothing works

Anyone know how I can do this ?
Thanks

How Do I Take Several BMP Images, Per Frame, And Lining Them Up?
Okay, I'm making an animation using Pivot Stickfigure beta 3 and I decided the best way I could do this is to save the animation as several different bmp images for quality look, this animation has well over 2500 frames and I'm not even close to done, I'm guessing that the animation when completed will run at least over 10 minutes. Anyhow I'm wondering how do I take those bmp (each has it's own frame) and align them up in the center?

Thank you.

newbyn00b

Images Continue In The Next Frame
This code goes right but the images (book, pencil...) appears again in the next frame. How can I solve this problem?
Help me!

//drag and drop code//


var startX:Number;
var startY:Number;
var counter:Number = 0;

var soundReq:URLRequest = new URLRequest("woodblock.mp3");
var woodblock:Sound = new Sound();
woodblock.load(soundReq);

pencil_mc.addEventListener(MouseEvent.MOUSE_DOWN, pickUp);
pencil_mc.addEventListener(MouseEvent.MOUSE_UP, dropIt);
schoolbag_mc.addEventListener(MouseEvent.MOUSE_DOW N, pickUp);
schoolbag_mc.addEventListener(MouseEvent.MOUSE_UP, dropIt);
book_mc.addEventListener(MouseEvent.MOUSE_DOWN, pickUp);
book_mc.addEventListener(MouseEvent.MOUSE_UP, dropIt);
notebook_mc.addEventListener(MouseEvent.MOUSE_DOWN , pickUp);
notebook_mc.addEventListener(MouseEvent.MOUSE_UP, dropIt);
student_mc.addEventListener(MouseEvent.MOUSE_DOWN, pickUp);
student_mc.addEventListener(MouseEvent.MOUSE_UP, dropIt);
teacher_mc.addEventListener(MouseEvent.MOUSE_DOWN, pickUp);
teacher_mc.addEventListener(MouseEvent.MOUSE_UP, dropIt);
friends_mc.addEventListener(MouseEvent.MOUSE_DOWN, pickUp);
friends_mc.addEventListener(MouseEvent.MOUSE_UP, dropIt);

function pickUp(event:MouseEvent):void {
event.target.startDrag(false);
reply_txt.text = "";
event.target.parent.addChild(event.target);
startX = event.target.x;
startY = event.target.y;
}
function dropIt(event:MouseEvent):void {
event.target.stopDrag();
var myTargetName:String = "target" + event.target.name;
var myTargetisplayObject = getChildByName(myTargetName);
if (event.target.dropTarget != null && event.target.dropTarget.parent == myTarget){
reply_txt.text = "Good Job!";
event.target.removeEventListener(MouseEvent.MOUSE_ DOWN, pickUp);
event.target.removeEventListener(MouseEvent.MOUSE_ UP, dropIt);
event.target.buttonMode = false;
event.target.x = myTarget.x;
event.target.y = myTarget.y;
counter++;
woodblock.play();
} else {
reply_txt.text = "Try Again!";
event.target.x = startX;
event.target.y = startY;
}
if(counter == 7){
reply_txt.text = "Congrats, you're finished!";
}
}

pencil_mc.buttonMode = true;
schoolbag_mc.buttonMode = true;
book_mc.buttonMode = true;
notebook_mc.buttonMode = true;
student_mc.buttonMode = true;
teacher_mc.buttonMode = true;
friends_mc.buttonMode = true;

stop();

//next page code//

proximo_BT.addEventListener(MouseEvent.CLICK, release1);

function release1(evt:MouseEvent):void {
nextFrame();
}

Scrollable Frame/Images
Hi, i have been registered on the forums for a while but havent made proper use of them. Sorry if this thread is in the wrong place.

My question is this, how do you create a frame-like object in Flash? In HTML its using the frame tags.

The reason for this is that i want to be able to have a scrollbar to show different images vertically.

Thanx

Is Loading Many Images In First Frame Efficient?
I am doing something like a company advertisement in flash (for web ofcourse) and i need to display a clip everytime a user clicks a particular button.
There are 8 or 9 such buttons.
I dont want the user to wait for the clip to load in runtime at each button click. Will loading all images in first frame work? How heavy will it be on the memory then?

Random Frame Stops Working When Images Are Used
Hello,
I have built a movie (Flash MX 2004 Porfessional) with the objective of going to a different frame each time the page loads. The movie works fine when I only have text in any of the frames. As soon as I add an image to any of the frames the ramdomization quits working. On top of that, the behavior is Opera/Netscape and IE is different.

In IE, the movie always displaysframe 1 (no content, just the actionscript).

In Opera/Netscape the movie always displays frame 2 (the first frame with content).

The code:

code:
var randomFrame; // Stores the randomly picked frame number
var numFrames; // Stores the total number of frames on the timeline
numFrames = _totalframes; // Assign _totalframes property to numFrames

// Pick a random frame
randomFrame = Math.floor(Math.random( ) * numFrames + 2);

gotoAndStop(randomFrame); // Send playhead to chosen random frame


I have attahed the file for convenience sake.
You can also see the behavior by going to the following two links:

with images (not working)
http://www.prophegy.com/temp/flash.html

w/o images (working):
http://www.prophegy.com/temp/flash2.html

Any insight into why this happens is greatly appreciated!!

John

Copying And Pasting Frame Images With Locations ?
Hi all,

Quick question ... When you copy and paste an image, symbol, etc is it possible to copy its x and y location values rather than having to type them in again each time ?

Thanks

Greg

Loading Frame Images For Movie, Most Effective Way?
Ok, basically i am just wandering what everyone thinks if the best way to load a movie.

I am learning OpenGL, and hopefully DirectX soon as well, and in some of my projects i am going to be displaying them on my website. I am going to be taking a frame by frame screen**** of my OpenGL movies to import them into flash, and i was wandering what everyone thinks is the best way to do it?

In my understanding i have two options,

1.) Take my Fla and load them all into it by hand.
2.) Make it more dynamic and loadthem at runtime via ActionScripts LoadMovie Command.


Now it would be easier on me to do #2, but i am not looking for ease. I am looking for the most effective in FPS at Runtime, Load Speed, and obviously tied into Load Speed, the File Size for people to load.

So which would be faster, better, smaller, ect.?
Thanks to any replies!

Attaching Movies/images To A Specific Frame
Hi,

As far as I know, attaching movies/images, using attachMovie for internal elements, or loadMovie for external ones, always attaches it to the first frame.

So what if I want to attach something, let's say, to the second frame? Is it possible to do?

What I need to do is to dinamically build an animation on a movieclip with external images, so some images go to the 1st frame, and other go to other frames.

How can I do this with AS?

Best regards.

Movie Clip Images Deteriate If Not On Frame 1
Hi,

I'm having a real problem with a flash movie which I desperatly need to get sorted out ASAP.

I've a selection of logo's which simply need to fade in and out one at a time. This short looping animation is in a movieclip. Now if the movieclip is on frame 1 the logo's are in the quality they should be but if I place the movie clip on another frame with a stop(); command the logo's deteriate as if the .jpegs have been stretched slightly out of porportion.

I've tried everything I can think of such as having the logo movieclip in one file and then loading it into another level on a main movie and a later frame.

I really don't think I'm doing anything wrong as I use Flash everyday and generally know what I'm doing but I've never come across this problem before. If anyone has any idea's or know of any bugs in flash which may cause this please let me know.

Thank you, Craig

Dynamically Loading Multiple Images On One Frame
Hi,

If some one could help me with this I would be very grateful.
Is it possible to dynamically load more than one jpg into a frame at one time?
My actionscript only loads the last image.

Trying To Display 2 Random Images In A Single Frame
Im trying to display 2 random images from a directory on my mainpage. I have the files listed in my xml file.... images.xml and using the following script pointing to my instance name picture_mc. all works well for 1 image..how can I get a second image and position it correctly? Do i have to clear the variables? is there an easy way to place the mulitple images into location? Script below...thank you for any help! Please keep explanations simple, I'm very very new at this:

this._x = 400; //Offset from top-left corner (0,0)
this._y = -100; //Offset from top-left corner (0,0)

xmlImages = new XML();
xmlImages.ignoreWhite = true;
xmlImages.onLoad = loadImages;
xmlImages.load("images.xml");

function loadImages(loaded) {
if (loaded) {
xmlFirstChild = this.firstChild;
imageFileName = [];
totalImages = xmlFirstChild.childNodes[0].childNodes.length;
for (i=0; i<totalImages; i++) {
imageFileName[i] = xmlFirstChild.childNodes[0].childNodes[i].attributes.title;
}
randomImage();
}
}
function randomImage() {
if (loaded == filesize) {
var ran = Math.round(Math.random() * (totalImages - 1));
picture_mc.loadMovie(imageFileName[ran],1);
pause();
}
}

Dynamically Loading Multiple Images On One Frame
Hi,

If some one could help me with this I would be very grateful.
Is it possible to dynamically load more than one jpg into a frame at one time?
My actionscript only loads the last image.

Switching Between Mac And PC
I recently have been using a PC for flash mx, but I jumped over to a mac to work
on it at school, and it seemed to work fine.

But once I tried to bring the same file back
to my pc, it can't read the format. Does anyone
know if there's a way to fix this?

I'm pretty sure the versions are the same, I figured
that since the pc version worked fine on the mac,
the vice versa would fine.

Do I have to save a certain file type off of the
mac or something?
I'd appreciate any help.

Switching MC's Dynamically?
Heynow,

Looking for a way to dynamically change an MC instance to use a different MC while keeping the variables.

LoadMovie (target) works and inherits all the properties off the instance, but its variables are not being passed. Don't know how to set up CGI for GET or POST, so that's out for now.

Attach MC works too (this thing is way underrated BTW) if I first dynamically create instance "abc" and then replace it using AttachMC w same instance name and different source. But the only way I see to transfer the variables over is to stash them on _root and pick them up again.

Anybody?

Switching Frames
Ok on my site i have a button that plays a movie clip. BUt i have it set up in the buttons movie clip to on(release) play. Now when I did this it made the button go thru all of its frames. So I tried to do something to keep it from play the buttons clips so I put in the command: on(clipEvent)stop(). SO now the button is stopped and it doesn't play its own frames(up,over,down,hit) but now the button is inactive. Now in the movie clip that the button activated I have a menu that comes up and there is an X on the right corner to close it. I tried to get it where the X makes it go back to the 1st frame of the entire scene but it wouldn't work. If someone has a clue of what I'm trying to do please help me. My site is below.



http://www.tekno34631.cjb.net

AS And Switching Frames..
hey guys.....any help with this would be greatly appreciated.

ive got an animation in a MC(using shape tweens and stuff) and a large invisible button.

basically i want to tell the mc to go to a certain frame in the MC but i need the mc to play forwards and backwards... If the mouse is over a certain place on the button go to a certain place in the MC but if the mouse scrolls left go to .....ok STOP im confusing myself... i'll start again..

basically i need each horizontal point on the rectangular button to be related to a frame in the MC, if the mouse scrolls left on the button, the mc plays backwards and if the mouse scrolls right the mc plays forwards...

Gosh , i hope that makes sense, CAN ANYONE HELP ME??.....thanks

Switching To Low Quality
I'm making a standalone application in MX that has some pretty intensive graphics at one point. When I start the application, it is in high quality, but at that one part with the intense graphics, the movie automatically switches to low quality. Is there anyway to prevent this or make sure the quality stays on high? Somebody please help!

Thanks...

Scene Switching
I have to Scenes. All I want to do is on Scene 1 press a button that hides Scene 1 and Shows Scene 2. And then, Another button on Scene 2 will hide itself and show Scene 1. I have tried the following to no avail. Please help:

// .as on button in Scene 1
on(release){
gotoAndPlay("Scene 2",1);
}

If I put a trace in there I can see that it does fire, however my second scene never shows up. Anyone know why?

CFDaddy

Switching Between Senes
I'm about 10 scenes into my cartoon and I was wondering if I could make my life more simplistic by calling an already played scene in the animation.. Example: Say after scene 8 I want to call scene 4 again ( a flashback scene ).. Do I do this in script or..

Sorry for the newb q's // being a newb sucks..

-S

Image Switching
i've seen this but don't understand ... help please.

ok ... lets say i have ... 100+ images. and I want them to be in an external folder called ... "work" ... and each image is called work000.jpg, work001.jpg, work002.jpg, work003.jpg ... and so on. Then I have a list of clickable images ... each proceeding one opens up the corresponding work000.jpg ... how do you go about doing this? ... sorry but ... I don't know how else to say it ... thanks.

Switching Between Movies
switching between movies using buttons often causes my movies' animations to mess up. i am not unloading one movie 1st but simply loading the next at the click.

is there something i am not doing correct which would cause my movie to loop and go mental when i go back through the path?

Switching Scenes
I know this is probably a simple function, however I am trying to navigate from one scene to another without simply going to just the next or previous. What command would I use, gotoAndPlay?

Switching Scenes With Mc
how would i switch scenes on the release of an mc i treid using _root.gotoAndStop(1,"scene")
_parent.gotoAndStop(1,"scene")
tell target
and everything i can think of
help please

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