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




Movie Clips And Jpeg



Hi,

I'm problem is this:
I create a movie clip, with two layer, one of them is a jepg that I already turn it a imagem object and animated it from a point to b point (simple move) and the another layer is a text. When I put this movie clip into the principal movie. I only can see the text. I cant see the moving object. I'm using Flash mx. Does any one know What is wrong?


Tks,
William



FlashKit > Flash Help > Flash General Help
Posted on: 03-30-2004, 12:07 PM


View Complete Forum Thread with Replies

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

How To Load Multipul Jpeg And Movie Clips?
Hi all, i'm new to ActionScript.org, have been learning actionscript for the last week and just trying to build my first site.

i'm wondering is there a way when loading multiple jpeg's or movieclips into my site to load them all at once without having to call them all individually?

i was thinking of using a for statement and an array of all the names so it would just go through them all by its self, but is there a better way?

also if i am loading jpeg's in is there a way of converting them to movieClips once they are loaded?

Thanks,
BrownWarrior

[Example]Creating JPEG Image From Draggable Clips
I've seen many threads requesting info on how to dynamically create a JPEG image from movie clips that are dragged around the screen. Rather than continuously answer these threads with cryptic info, I decided to throw together a basic example, I hope it helps: http://jerryscript.hostrocket.com/fl...composite.html

[note -- I cross-posted this to the backend forum, sorry if that upsets anyone]

[Example]Creating JPEG Image From Draggable Clips
I've seen many threads requesting info on how to dynamically create a JPEG image from movie clips that are dragged around the screen. Rather than continuously answer these threads with cryptic info, I decided to throw together a basic example, I hope it helps: http://jerryscript.hostrocket.com/fl...composite.html

[note -- I cross-posted this to the backend forum, sorry if that upsets anyone]

How To Remove All Movie Clips/array: Movie Clips Carry Over To Next Frames/ Scenes
Hi: I am creating a small game. So far so good, but only problem I have come across is when I jump to another frame or scene, previous movieclips (using an array) that are still running carry over to the next frame/scene.

See attached if you have some time- start clicking on answers in the game, and when time runs out some movie clips that are still running will remain on top of my end frame and carry over to the next scene as well.

Is there any sort of remove all movie clips or "clear all" type of actionscript?

thanks in advance!

Maintaining Event Behavior For Movie Clips Nested In Movie Clips
Is there any way to maintain a clip's event callbacks when said clip is nested in a parent clip that has its own definitions for those callbacks?

In other words, if clip B has a definition for .onPress and clip A has a definition for .onPress, is there anyway to maintain clip B's definition if it is nested in clip A?

I have tried doing it by making clips into movie clip subclasses but it doesn't work... but how do components work then?

How Do I Load/stream Individual Movie Clips Within Other Movie Clips
I am using flash 5

I have a movie with a huge movie clip in it and that movie clip has lots of movie clips inside that. how do I load each one individually so when the viewer clicks on abutton it starts to laod the related movie clip.

Please help.. I'm working on borrowed time and borrowed money

Accessing To The X And Y Coordinates Of Movie Clips Inside Of Other Movie Clips
lets say I have a movie clip with an instance name of "char" and another movie clip inside it with an inctance name of "ball" and when I try this I get zero:

_root.char.ball

why?

thanks in advance because you flashkit users know everything about flash in and out.

Movie Clips Within Movie Clips: Text Link Problem
Hello.

I have a Movie Clip that is my main one with another Movie Clip inside of it. In the subordinate Movie Clip, I wish to have text linking frame (13) to frame (14) for instance. The problem that manifests is that while buttons is the subordinate Movie Clip link to frames within it with no complications, the text link from 13 to 14 with its respective code links to the last frame (would be 14) in the main Movie Clip.

Am I doomed to convert all text links to buttons in the subordinate Movie Clip or is there (what I am praying for) a code to work around this and keep frame links confined to the subordinate Movie Clip? I would appreciate any help that anyone can offer regarding this problem. Many Thanks.

Movie Clips Acting As Buttons Can't Load Other Movie Clips
Frame 1 has three movie clips on it, instance names are A, B, C. I have the following actionscript on frame 1 as well:

stop();
import flash.filters.GlowFilter;

ar = [A, B, C];

for(var z=0; z<ar.length; z++) {
ar[z].onRollOver = rollover;
ar[z].onRollOut = rollout;
}

function rollover() {
this.swapDepths(0);
this.filters = [new GlowFilter(0x333333, .20, 7, 7)];
}

function rollout() {
this.filters = null;
}

This code creates a glow, obviously, on whatever movie clip I rollover. What I want to do as well is this:

I want to click on mc "A" and have it launch a different movie clip (let's say "X") on top of everything else (so that A, B and C are still visible in the background). "X" is in a sub-folder of "A" if that makes any sense or is relevant. Same kind of action for mc's B and C. B should launch mc "Y" and C should launch mc "Z".

What is the actionscript for this? Any questions please let me know. Please respond, I need this info as soon as possible. Much appreciated!!

Text

External Movie Clips With Multiple Menu Movie Clips
It's pretty late and I don't think i have enough time to search this question in the forums but here I go. Sorry If I upset someone for making a topic that already exists.

I have a main timeline that im importing an external movie clip in. This external movie clip is named "members" it has several buttons that load other external movie clips into a window within "members" . What do I need to do to make this work. Do I need to use "this, _parent, _root, level(s) or "whatever.swf". If you can help me out that will be great. I'll make it up to you down the road. No sexual favor please.

I'm using flash mx 2004 btw.

Thanks in advanced

[MX04]Movie That Works Fine When Clips Apart Acts Strange When Clips Are Together.
Hi,

I have a pretty basic movie in which a ball moves along a track.

The track is made up of 3 sections & all I want the movie to do is trace an ID number (num) that is an individual property of that clip when it goes over it.

In the first movie attached below “trackOne” the whole thing works great! However in the other movie “trackTwo” I have moved the clips closer together & the whole thing has gone crazy with the following issues.

1.)The “trace” command fires on every “onEnterClip” event

2.)A text field that is used to show the ID number only changes when the ball is fully over the clip not as it first touches it, as it does in the first movie

3.)Although the ball is full off a clip it keeps tracing it’s ID number together with the new clips number?

Anybody able to help me on this?

Screwy Stuff With Movie Clips Within Movie Clips
This is kind of difficult to explain but here it goes...
I have created a Barney's like slide site and have gotten it to work fine. the problem I'm having is when I take scroll text box and try to place it on the movie clip that is going to be the part of the site that is going to slide out.

The whole thing slides fine and the scroll box is visible. However, the text is not visible therefore I'm not sure if the up/down buttons are actually working.

The scroll box is a movie clip itself with "on(release)" commands on the buttons. The "onClipEvent" commands are added to the textbox when the scroller movie clip is brought into the slider movie clip.

Is this something that just isn't supposed to work or I am doing some thing dreadfully wrong?

Thanks in advance,
Fakeout

Is It Ok To Duplicate Movie Clips Inside Movie Clips?
is it ok to duplicate movie clips inside movie clips? Seems to be a problem here...

[F8] Help Making Movie Clips Load Other Movie Clips...
well i have miraculously figured out how to make my buttons grow and shrink simultaneously reacting to mouse overs... and even stay large when they are clicked on... however the only way i found to do this was by making them movie clips and not buttons...

now luckily the task at hand i'm assuming will be quite a bit easier than what i've already accomplished...

i am looking to now make those movie clip instances (when clicked on)... load photos into an empty movie clip that will be a separate swf... in the same dreamweaver file...

i have made each photo into a small movie clip that simply tweens the photo from alpha 0 to alpha 100 and back to alpha 0...

so i'm hoping for some code that will call up the first part of the movie clip (the fade up) when the corresponding movie clip is clicked on... and hold it... until another button is clicked... making the current movie clip play to end (fade out)... and then load the new movie (up to the middle... alpha 100) into the empty movie clip...

Intersecting Movie Clips/ Dividing Movie Clips
I've bee trying all day to find out how to find the intersection point on two moive clips with non linear lines in them.
If I use the Hit Test method it seems to recognise only the hit point when the imaginary rectangle arounf the two clips collide. Is there any way of determining the point where the lines themselves cross over.

If not I think I've got another method but I can't figure it all out.

I know at what x point the lines will cross over (the more horizontal of the two lines will be crossed every by one of the verticle lines every 1/108th of it's width) but I can't determine exactly where the Y co-ordinate of this line will be at the time.

I could sort this out if I was able to delete all of the more horizontal move clip except the point of intersection I'm looking for, I'd then then be able to determine the y co-ordinate at this point. But I havn't been able to determine how to delete a move clip for example from x=0 to x=51 but leave the rest of the movie clip on the screen.



Any help with this would be much appreciated.

Cheers

Scifo

Creating Movie Clips Inside Movie Clips
Hello,

I am having difficulties creating movie clips within other movie clips. The following works to create a movie clip on stage with no problems...


Code:
//Create movie clip and load image into it
_level0.createEmptyMovieClip("tn1",this.getnextHighestDepth());
mcl.loadClip(String(albums[0].photos[0].image),"tn1");
However, I want these movie clips inside another movie clip (mcPics1). For this I attempt...


Code:
mcPics1.createEmptyMovieClip("tn2",this.getnextHighestDepth());
mcl.loadClip(String(albums[0].photos[0].image),"myPics1.tn2");
Can anyone tell me where I have went wrong?

Thanks!

Targeting Movie Clips Inside Of Movie Clips
I am a AS3 newbie and am working on an animated cell phone text demo for my company's web site. I have three phones, each are a movie clip with a time line animation. The three phones are all inside of another movie clip where I animate their intro. I have a stop on the first frame of each of the three cell phones so that their screens are static as they fall into place. Their animations begin on the second frame of each of their respective time lines, and I would like the animations to begin when the phones are clicked. I'm not sure if these clips should be targeted from the main time line with the rest of the global script or if it should be on the time line of the nested MC. Even if I knew where to put it, I'm not really sure exactly what the script should be. Please help! My boss wanted this done last week!!!

Movie Clips Controlling Movie Clips, Problem
Hello.

I've been trying to make some drop down menus for awhile and I've run into a snag.

I have a button that when you roll over it, a movie clip appears [jumps to frame 2, frame 1 is blank.] This mc is the drop down menu. The drop down menu mc consists of other buttons that when you roll over them they stay green, but all other buttons go blue. [done by making certain mc jump to frame 2 and others jump to frame 1 to dissappear.]

So this all works fine.

My problem now comes when I try to attach on (release) functionality to the buttons inside the drop down mc. I have the following code on one of the buttons inside the 1st drop down menu:

// Drop down menu colour changes.
on (rollOver) {
_parent.about.gotoAndStop(1);
_parent.what_about.gotoAndStop(1);
_parent.what_else_about.gotoAndStop(1);
_parent.where_about.gotoAndStop(2);
}
// Trying to get wherewestarted movie clip to jump to frame 2 on release.
// Also making other movie clips jump to frame 2 to dissapper.
on (release) {
_parent.wherewestarted.gotoAndStop(2);
_parent.mainlogo.gotoAndStop(2);
_parent.address.gotoAndStop(2);
}

So the on (rollOver) part workds great, and I'm quite pleased with the resluts... however when you click a button in the menu, nothing happens. No movie clips appear, or dissappear. I've tried it without using _parent, I've tried _root... I just don't know what to do.

How can I get a rollover AND a release action?

Help!!



DryCow

How To Make Movie Clips React To Other Movie Clips?
I'm designing this menu system that has four square buttons in a horizontal line. The premise of the menu system is when one button is clicked that button expands horizontally and the other buttons shrink horizontally and slide to the right. How would I go about doing this with actionscript? I'm using Flash 8 and Actionscript 2.0.

Movie Clips Controlling Movie Clips, Problem
Hello.

I've been trying to make some drop down menus for awhile and I've run into a snag.

I have a button that when you roll over it, a movie clip appears [jumps to frame 2, frame 1 is blank.] This mc is the drop down menu. The drop down menu mc consists of other buttons that when you roll over them they stay green, but all other buttons go blue. [done by making certain mc jump to frame 2 and others jump to frame 1 to dissappear.]

So this all works fine.

My problem now comes when I try to attach on (release) functionality to the buttons inside the drop down mc. I have the following code on one of the buttons inside the 1st drop down menu:

// Drop down menu colour changes.
on (rollOver) {
_parent.about.gotoAndStop(1);
_parent.what_about.gotoAndStop(1);
_parent.what_else_about.gotoAndStop(1);
_parent.where_about.gotoAndStop(2);
}
// Trying to get wherewestarted movie clip to jump to frame 2 on release.
// Also making other movie clips jump to frame 2 to dissapper.
on (release) {
_parent.wherewestarted.gotoAndStop(2);
_parent.mainlogo.gotoAndStop(2);
_parent.address.gotoAndStop(2);
}

So the on (rollOver) part workds great, and I'm quite pleased with the resluts... however when you click a button in the menu, nothing happens. No movie clips appear, or dissappear. I've tried it without using _parent, I've tried _root... I just don't know what to do.

How can I get a rollover AND a release action?

Help!!



DryCow

Problems Creating Movie Clips Within Movie Clips
Okay, I'm creating yet another game and need to create a vehicle. So I wanted to create one movie clip for the vehicle and within that movie clip create multiple movie clips for all of the parts.

So I created a new symbol, let's call it vehicle and then within that area I created all of the vehicle parts as symbols within that symbol. At least I think I did. Anyway, when you look at the library, sure enough you see all of parts for the vehicle and the vehicle itself. Within actionscript, however, I can create an instance of the vehicle. I can create instances of all of the parts, but not the vehicle.

The reason why I was going this route is that I wanted more realistic movement. I wanted certain parts of the vehicle to move depending on what the user did, but not other parts. Can anybody shed some light on this subject? Thanks in advance.

Embedding Smart Clips In Movie Clips Causes Crashes...?
i noticed that if you use more than one of those drop-down menu smart clip in the common library, you can't see all the choices...

e.g.
drop in one instance
then another directly below it.
publish the movie
select the third or fourth choice from the second drop-down
let go so that your choice is selected
now re-select the second drop-down menu...
the other choices are hidden by the menu above it.

this is also the case if you try the procedure in reverse...
i.e. if the second instance is on a higher z-plane, the choices in the first will be hidden.

it seemed logical to drop the smart clip into a movie clip then use mc.swapDepth to set the z-index

got swapDepth working perfectly
(thanks, Mac8myPC): http://www.flashkit.com/movies/Scrip...98/index.shtml

but as soon as you put an instance of the smart clip into a movie clip, flash (5 for mac, PPC, OS 9.1, g4 466, 384MB) crashes as soon as you try to publish/export/test movie.

i tried it in a button as well... same thing

i've been trying to rebuild the menu in a normal movie clip form but it seems like more pain than it's probably worth...

any suggestions?

thanks in advance,
--cera

Movie Clips Inside Move Clips. How To Control?
I have an object in this case a foot with toes on it. the toes animate as well as the whole foot moving with the nails on it. I have instance names assigned for all the mc's problem is that the toes are buried about 3 layers down inside the foot_mc so they will move with the foot as well. When I assign a function to them the error compiler does not know where the nails are . What is the best way to fix or re-do this layout?

I am a total newbie to Flash and AS3, so any help would be great


I FIGURED IT OUT.

Aligning Movie Clips To Movie Clips Within Movie Clips?
hi, i want 2 align a movie clip, with a movie clip nested within a movie clip using actionscript. When I try to do this it aligns to the top of the screen. I know movie clips have like different _y and _x cooridnates relative to the stage or whateva or something like that. Neway any one know how to align movie clip with another movie clip within a movie clip like for instance:
_root.ball._y =_root.square.triangle._y
and get them 2 be at equal positions on the stage. If u understand please help
Tanx in advance4

Movie Clips, Vs. Smart Clips Vs My Brain
I am having a difficult time trying to wrap my head around the MC process and its usefulness. I know they are very beneficial, make things easier, file sizes smaller etc. but I can't seem to make logic mesh with my brain cells.

Does anyone have a good way of explaining the "How to's" and "Why for's" of Movie Clip's????

Also, what is the difference between a Movie clip and a Smart clip?? (The latter I have the same questions about as well.)

Thanks,

Controlling Instances In Movie Clips From Other Clips
I am trying to get a button on my level 2 in my main movie to point to a frame inside a movie that has been loaded in on level 3 on the main movie. I have tried all different kinds of combinations and no success. I even tried putting the level 3 movie in an empty movie clip on the root, and naming the instance "music", and then writing in the button _root.music.GotoAndPlay(3); I need it to target frame 3 in my level 3 movie. Should I put the level 3 movie in its own empty movie clip? I was able to get the button to unload movie3, but I don't want it to dissapear, I just want it to go to frame 3 in the movie clip to turn off the music.. You can see what I mean at the address below. I have my audio player in the bottom right with an on/off that works fine, but when I go to the link in my site "Music" there are some downloadble MP3's, and when you click on one I want the "equalizer bars" you see in the audio in the lower right corner to stop, and it means I need it to go to frame "3" of tha movie clip for that to happen, just like it does when you click on "off" in the audio movie. Anyway, sorry this is long winded, but wanted to make sure it was clear as to what I am trying to do..

Thanks in advance,... Here is the link

http://www.incogneato.tv/stales


Mike

Movies Clips Called Within Other Movie Clips
I started this flash porject a while back and haven't touched it in a long time...a few problems to it, that I will fix one problem and then ask for the next problem.

I have a flash file called playin.fla with 2 frames, frame one has a movie clip that is a intro, frame 2 is my main screen with the nav and all the good stuff.

I have 4 buttons on that with a blank screen to load my stuff in, and it is called 'screen'

So here is my code that isn't working:
on (release) {
loadMovie("portfolio.swf", "_root.screen");
}

Easy to fix I am sure, I have tried _parent.screen as well, doesn't work....

Thank you very much for your help in advance.

Clips Within Movie Clips And Instance Troubles
I'm trying to create ultimately 9 seperate instances that function seperate from each other perhaps after being click on within their own hit box.

directions: up and down to cycle squares, click (anywhere) to rotate.

As it stands the first instance is the only one that reacts to the up and down commands and both react at the same time (bad) to the clicking for rotation...

go here http://maroonedmoon.com/cubes.swf to see the swf if action...

I need these two squares to act independent of each other, i've tried naming them different things, and even duplicating the symbol with different names... but it's not working. I imagine the issue is with my simplified actionscript...

any help is greatly appreciated

and here's my .fla

Empty Movie Clips And Duplicating Clips
I've been trying to reproduce an animation effect I've seen on the Armani website, but I'm stuck trying to duplicate an empty movie clip with image loaded into it. The duplicates exist and I can move them, but they are invisible. Since the duplicates reside on depths above the intitial clip I'm confused about why they are invisible. The duplicates are scripted to follow behind the initial clip - each offset by 30 pixels (though I don't have that working perfectly).

I'm attaching a simplified version of my file to isolate just the duplication troubles. Thanks for the help!

Scale Movie Not Jpeg
how do you scale a movie to 100% yet maintain fixed jpeg size in the movie so as to not destort the jpegs, but make the movie take up the whole browser window?

Jpeg And Movie Size...
i was wondering if anyone new how they use jpegs in a swf and they seem not to break apart at any screen size. do they use some sort of resolution detection and load a different movie movie for that screen size? i dunno if they would do a whole site in 5 different versions...? if anyone knows how to set a movie to '100%' and keep the jpegs from breaking apart, please let me know.

Lag In Movie Jpeg Sequence
I'm working on a flash intro in flash 5. In my swf the preloader has some weird behaviour and my jpeg sequence (an explosion) diplays a lag.

My swf is here: www.bit-kit.com

Since I made a cool intro to the preloader, the preloader appears first in frame 100 or so. It doesn't matter much if lots is loaded by then, I have a loop that will take the loading from 0 to 100 percent and simply choose the lowest value of this loop-value and (_root.bytesLoaded() / _root.bytesTotal() * 100).

The first strange thing is that no matter what I do, _root.bytesLoaded() always returns about 15MB - the full swf size. Even in frame 1!

The second anoying thing is that my jpeg sequence explosion lags the first time the movie is run. I guess if you reload the page, the swf will be cached and hence runs smoothly. This sequence is of about 100 jpegs.

The third problem is that once the movie starts to interact with the browser towards the end, the whole thing often lags a bit here too. At this point we're just looping nine simple frames calling javascript code.

Anyone can help with any of these three matters? It will be greatly appreciated.

- Peder -

Movie Clip To Jpeg
Hello.
My newbie questions are can a movie clip be converted to a JPEG in Flash and how is this done?
The user generates the JPEG in the action on click of the button.
Thanks

Unload Jpeg Movie?
Hi
bit of a noob
I have a two scenes, in the second scene I load an amon.jpg

second frame action script in scene 2:

_root.createEmptyMovieClip("container", 2);
container.loadMovie("amon.jpg");
set(container._x=15, container._y=120);
_root.onMouseDown = function() {
startDrag("container");
};
_root.onMouseUp = function() {
stopDrag();
};

Unload Jpeg Movie?
Hi
bit of a noob
I have a two scenes, in the second scene I load an amon.jpg

second frame action script in scene 2:

_root.createEmptyMovieClip("container", 2);
container.loadMovie("amon.jpg");
set(container._x=15, container._y=120);
_root.onMouseDown = function() {
startDrag("container");
};
_root.onMouseUp = function() {
stopDrag();
};

Loading A Jpeg In A Movie
Hi,

I'm kind of new in the whole flash mx actionscripting. I'm trying to load a jpeg dynamically in my scene using actionscript. According to some tuts I read the code is quite simple:

this.createEmptyMovieClip("pic", 50);
loadMovie("wolken.jpg", "pic")

When I put this in a brand new flash file and save the file in the same directory as the jpeg, there's nothing happening when I run the movie. Does anyone have a clue how I can solve this?

Thanks,
Steven

Load Random Jpeg In Movie
Hi!
I don't know how to randomly load a jpg.
I have 60 jpeg in a file, and I'd like to load them randomly on my 1st page.
PLEASE SOME HELP

External Movie/Jpeg Caching?
I want to be able to load a jpeg(swf file only if i have to) into a movieclip
-- movie.loadMovie("URL");

which works for me, but is there a way to cache the loaded image, so that a user may navigate around the flash movie and then upon return to that scene with the externally loaded file. the file would be loaded from cache instead of reloaded frm the external source??? i have tried various methods with no success. there is one site that comes to mind - www.geneticshoes.com that looks like it loads swf files from external sources upon first visiting a link, but then upon return to that link the movie is there, no loading required.


Please Help.

Thanks

Kris

Jpeg Loading, Out Of Site... To Use Later In Movie
I am creating a site that is one flash movie... to prevent long download times and to avoid having to make the user sit through a "progress bar" style loader 30 times while surfing the site... I am searching for a solution that will allow me to begin loading a series of jpegs as soon as the sites intro loads and begins playing. This way while they are enjoying the intro, or reading main level content... the pictures for the other sections of the site are loading behind the scenes.

Any Ideas???

Saving Flash Movie As A Jpeg?
Hi Guys,

Im building a custom t-shirt flash application. Once the the t-shirt is colored and designed i would like them to be able to save the movie clip or even the whole flash as a screenshot (jpeg) from a simple save button.

I have seen it been done in director, is flash capable of doing this??

Heres the example link:

http://www.bluegum.com.au/virtshirt2.html

Any help or advice would be excellent.

Thanks-Shaun

Blurry JPEG On Test Movie?
Hey everyone

I've made the coolest menu in photoshop, and it really looks good in Flash. But when I test my movie (or export it) the JPG picture gets blurry... it's so irritating

Can anyone help me?


Thanx

Can User Make Jpeg Of A Movie?
I have this animation where you can build something. I'd like to give the user the ability to save a jpeg of the movie he/she just created without using their print screen/screen grab function.

In a perfect world, they could then e-mail this jpeg to a friend.

Anyone have any ideas?

Thanks!

Exporting Movie Screenshot As Gif Or Jpeg
In my latest project http://baseballinvestor.com
i've developed flash graphs of baseball teams using mx 2004. the idea is to copy how wall street analyzes stocks and apply it to baseball. anyway, here's my question: how can i get a gif or a jpeg of the swf movie (after its run through the data). exporting does me no good as it just copies fla screen.

right now i'm using a Screen Grab Pro but that's taking quite a while. any help would be greatly appreciated because i'd love to rattle off 30 or so gifs in a few minutes.

Unloading A JPEG From A Movie Clip
My flash movie is repopulated with XML data each time the submit button is clicked. I got it to load a JPEG properly into a movie clip, but when it is repopulated with a smaller JPEG, I can still see the first JPEG behind the second one. Is there a way to remove the old one before adding a new one to a movie clip?

Here, among other things, is what I tried:










Attach Code

var request:URLRequest = new URLRequest(imageArray[counter]);
var loader:Loader = new Loader();
if (photo.child == true) { photo.removeChild(); }
loader.load(request);
photo.addChild(loader);

JPEG Loading... How Do I Wait Until The Jpeg Has Loaded
Hi everyone!

this is the code that I currently use. I want to be able to wiat until the jpeg is loaded before going trought the loop again.....
any ideas? I have tried to use the getBytesLoaded and getBytesTotal but they always show up as 0. Very annoying.


Code:
var currentX = 0
for (k=0;k<galleryVar.items;k++){
_root.thumbslider.createEmptyMovieClip("thumb" + k,(50 + k));
eval("_root.thumbslider.thumb" + k)._x=currentX;
loadMovie(_root.categoryList+"/thumbnails/"+_root.imageArray[k]+".jpg",eval("_root.thumbslider.thumb" + k));
currentX = currentX + eval("_root.thumbslider.thumb" + k)._width;
trace("Pic" + k + " " + currentX);
}
the "currentX" (2nd line from the bottom) doesn't get a value because the jpeg doesn't get loaded quickly enough. How can I wait for the jpeg to load before going through the loop again.
I don't want to use frames becasue I am creating everything dynamically!
Am i making sense?

Hope someone can help me!

Thanks
A

Can A .swf Movie Export The Current State As A Jpeg?
OK, so I want to see if i can get my swf move to export a jpeg of it's current state to a specific filename on a webserver. It's just a thought, is it possible?

Saving Flash Movie In Jpeg Form?
Hi
Im developing a flash application that allows you to customize your own t-shirt online.

The problem is, is it possible to save the movieclip or even the whole flash movie of the t-shirt in jpeg form.

Any help much appreciated?

Thanks-Shaun

How To Center A Loaded Jpeg In A Movie Clip?
Hello fk.
I want to load jpegs in using loadMovie. I have a container or "empty" movie clip that I want to load these jpegs into. The catch is that I want them to be centered in that empty movie clip. Can this be done?

Also, I would like the code to be adaptable. For example. If I make my container movie clip a certain size, say 450 x 450 using an obect like a square at alpha 0, can the code carry over to a container that is 400 x 600. I just don't want to go back and tweek code if I change my design. I wish I new more about functions and the like but I don't. Any insight appreciated.

JPEG Imported Into Movie Is Wrong Size?
Hello all,

I am having a very frustrating problem. I am trying to import a JPEG into my Flash movie, but every time I do, it shows up as being far smaller than it is in Photoshop, which is what I used to create it. When I attempt to resize it, it ends up looking all pixelly, understandably.

What am I doing wrong?!

Thanks for any help and advice

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