PDA

View Full Version : 3 Problems for you smart people!


coolsiteworkerb
04-13-2003, 07:40 AM
Ok, these are going to sound dumb but I have read through all the tutorials and havent seen anything on any of these:

#1: Scenes play one right after another. What I want to do is open with a static screen with some zoomers that click to go to Scene 2. (Zoomers I have, it just goes Scene 1 then Scene 2 ect.. without asking where it should go) Like, its a bunch of boxes, that first you can zoom to see the pics then when you click you go to an animation scene where the boxes come into eachother, then to another unique scene if possible.. In short, Scene 1 you click Graphic 59 and it goes to the animation Scene 2, then from there goes to the unique scene About (scene 9).. (is this possible if so how can I transport where to go after scene 2?, and if not, how can I STOP it from going to Scene 2 without a click?)

#2: What is the command for a graphic to CLICK and go to the next scene (I am having a brain annurism and cant remember!!) This is somewhat related to #1 and how I want it to move through the items.. (In the Zoom function I use, Simple Effects Lib, it has a target but that didnt seem to work for a scene!)

#3: The site is image intesive (i am working on an architecture site, a hobby of mine, 27 areas ect), will I have to use PNG or Bitmap or is there a way to look at a JPEG somehow in some sort of static window. And another related is what is the code to "fade to black" an image? Or does anyone have a function that can do that for certain squares?

Sorry for all the questions :( I am new at this!! Any help will be appreciated.

CyanBlue
04-13-2003, 07:55 AM
Howdy and Welcome... ;)

I see that you have already created your movie, so it is kinda late to say this, but DO NOT USE SCENES in FLASH... USE FRAME LABEL INSTEAD... Sorry for the yelling but I had to do that... :)

Having said that, the reason being is that Flash creates long long one scene movie when it creates SWF file... So, just basically scenes are there to visually seperate your movie, but it doesn't really help you much when it comes to the scripting...

#1 and #2 are kinda the same question, yes... What you need is to have some sort of button or movieclip to get the user input, in this case mouse click, and execute the code in it...

What I recommend you do is to create a frame label in the first frame of each scene... Let's say 'scene1', 'scene2', ... 'scene27' just for this... and graphics itself cannot execute codes, so you will have to convert it to be either button or movieclip... And the button script for one button that needs to go to the scene10 will be like this...on (press)
{
gotoAndPlay("scene10");
}Simple, eh???

If you don't know how to create a button or sort, check out 'Using Flash' - 'Working with Movie Clips and Buttons' for more information...

#3... I don't quite understand your question, but the bottom line is that if you are to load those graphic images dynamically, you should use JPEG file, non progressive compression, and if you are to embed all graphics images into Flash, any file type would be fine...

coolsiteworkerb
04-13-2003, 03:48 PM
Ok.. Well this "movie" is basically just a bunch of squares that move around so that is really no big deal to do it over (I tend to make a shadow one before doing the real thing easier, and im anal about things lol)

Ok, on question 1:
If I put the ON command in what stops my movie from moving to the next scene/frame? I.E. is there a STOP and WAIT command..
And that code to GOTO I can put (Frame 36) right if I did it your way with the frames

Okkk. So there is a WAY to have a JPEG loaded into a window within the movie? (without importing the image?) My problem is that the images are HUGE and I dont want people to be waiting hours to see the start of the site if they dont have to.

flinch
04-13-2003, 04:18 PM
I have a photography site in which I too had to find a way to load an image in a new window. From one amateur to another, here's one way I found:
first, I had to create a button, of course, to call up the new window but I didn't want a huge window so I specified the dimensions. I just used the getURL function:

on (release) {
getURL("javascript:OpenNewWindow('http://whatever.html','thewin','height=400,width=500,tool bar=no,scrollbars=no')");
}

But then, you have to input the html code into your main site to enable it to open new windows, so between the head tags in your html (found by publishing your site, then View-Source to view the html) you have to paste the following:

<script language="JavaScript">
function openNewWindow(URLtoOpen, windowName, windowFeatures) {
newWindow=window.open(URLtoOpen, windowName, windowFeatures); }
</script>

I hope that helps. If anyone else knows a better way, please share.

flinch.

coolsiteworkerb
04-13-2003, 04:29 PM
Ok I dont want a pop up window.. I just want to build a square that goes and gets the image. I have a text box that goes and gets the text from another file and imports it. So I have a feeling one of these people will have a way!! (sorry I hate POPUPS!! LOL)

I am wondering if something like this is possible:
on (press)
{
gotoAndPlay("scene10");
And Then{
gotoAndPlay("Scene 14"); }
}

Even if they are refrencing frames, I dont want to have to rerender the movement in each sub scene where the animation is needed. So to get a better understanding:
Frame 1 (or scene 1): contains all static opening
Frame 2-32 (or scene 2): Contains animation Sequence
Frame 33 (or scene 3): Contains data If you chose button 1
Frame 34 (or scene 4): Contains data If you chose button 2

Can I go from 1 to 2-32 AND then go to 34?

Sorry again for all the messages :( Im new to this :)

coolsiteworkerb
04-13-2003, 05:11 PM
I tried that on code with a movie clip (which to use the zoom they MUST be), and it doesnt do anything, with a BUTTON it does. Anyone know why?

coolsiteworkerb
04-14-2003, 05:56 AM
wow, my years of C++ training are paying off!! I actually was not thinking that this was like it but it is!! lol sorry if I am odd tonite, im wired cause I fixed one of my problems!!

For anyone else having a problem with it, in a movie clip you have to use a _root command to refrence the script ie:
on (press)
{
_root.gotoAndPlay (8);

}
this works!!

Now all I need to do is figure out how to implant a variable and let it change scenes!!

Hints? (Ill be testing lol!)