Groups | Blog | Home
all groups > flash (macromedia) > august 2003 >

flash (macromedia) : HOW?: dynamic, "manipulated" jpegs



can-am
8/12/2003 7:41:00 PM
I am looking for the best way to achieve the following:

1) have a round rotating symbol (spins like a coin)
2) when the back of the coin comes into view, I would like it to be transformed into a circular place-holder for a series of pictures, loaded using LoadMovie?

The basic idea will be that the 'head' of the coin always remains the same, but each new rotation of the coin, the 'tail' is a new one of a series of pictures. I don't want to have the pictures embedded, for file size purposes, and for ease of recompilation.

The kicker is that the loaded jpeg would have to rotate in the same fashion as the coin, can this be done on a loaded image? Will I have to have each picture saved as its own .swf, and loaded that way on a separate level? This would ensure transparency, and should work, but seems a lot of hassle, especially if I want to be able to allow people to add their own pics at some point.

Ideally I would like an external text file that lists all the available pics in the folder, but I think I can achieve that with loading a text file and picking sequential or random chunks, like the approach in this link: http://webforums.macromedia.com/flash/messageview.cfm?catid=194&threadid=671264

can-am
8/12/2003 7:44:37 PM
Also, is it possible to have a loaded image be affected by a mask. Same sort of scenario, dynamically loaded image (or movie if necessary), that could then be 'wiped' with a mask to reveal the next image in the sequence.

Thanks in advance for all help on either.

John

Byron Canfield
8/13/2003 8:16:23 AM
Sometimes it requires something a little more specific in the subject to
catch the eye of those who might be uniquely qualified to answer your
question. If the subject is too general or ambiguous, many of the volunteer
Flash users who help out here will simply skip the thread (and that's what
they are volunteers, who have their own schedules and deadlines -- if you
want help on YOUR schedule, you must purchase a tech support contract, from
Macromedia or a third party).

Don't abuse those who might help you at no cost to you, eh?

--
"There are 10 kinds of people in the world:
those who understand binary numbers and those who don't."
-----------------------------
Byron "Barn" Canfield
http://www.headsprout.com
Flash examples: http://www.canfieldstudios.com/flash5
[I do not respond to private emails regarding issues for which the
appropriate venue is this newsgroup, nor do I reply to posts by email.]


[quoted text, click to view]

can-am
8/13/2003 3:10:14 PM
What does it take to get an actual response on these boards? Is there anywhere else that can offer help too?

can-am
8/13/2003 5:55:39 PM
I try to post and hep when I can, not trying to make it a one way street, but have rarely seem more than simple questions answered. Wasn't trying to be like that about it, but I guess i'll have to find another 'community' to post to then.

Thanks for the constructive part of the answer Byron, I guess if I knew more about the problem I could have posted a better description, which is likely part of the problem itself :D

John

dawoodman71
8/13/2003 7:11:22 PM
hey there . . . just happened across your question and I think I have a solution.

1. use a MC (movieclip) to hold your loaded JPG
2. place your "holder" under the mask
3. as soon as the heads side of the coin is visible, start loading the JPG into the "holder" (this will give more time for the image to load on slower connections).

Also, when you load a JPG into a movie clip, the JPG assumes any deformations of the MC. For example width, height, rotation, and so on.

Hope this helps. Sorry I was late :)

Marc

can-am
8/13/2003 7:18:44 PM
Thanks Marc, is it right that the JPEG will align to the centre point of the MC, not the top left, or is that only when replacing a MC with a MC?

So I wouldn't necessarily need to have the MC spinning like the 'coin' on the original level, you're suggesting I can use the 'coin' as a mask, or use a mask in general? Not quite grasping what you mean there. I was expecting if I could us loadMovie to replace a MC, that MC would have to be rotating in the exact way the 'coin' on level 0 was. The MC on level 1 would then run. I guess I would still need a mask, or make sure the MC overlayed the coin entirely, so it was not visible, or just stayed 'end on' and not visible until the MC had finished rotating. If that makes any sense, it barely does to me, and I know what I mean :)

Hadn't even really considered the loading issue on slow connections yet, a fair point though.

John


dawoodman71
8/13/2003 9:26:52 PM
The JPG will align it's top-left corner with the center point of the MC you're replacing. Normally, when I use the holder method I place a light box inside the holder MC so I can place it properly. The box should be the exact size of the graphic you're importing.

I was assuming that you would spin the graphic under the mask. That would look best.

Marc

can-am
8/14/2003 12:23:51 PM
Thanks Marc, just wanted to confirm.


AddThis Social Bookmark Button