Topic: I need some Action Script advice Pages that link to <a href="https://ozoneasylum.com/backlink?for=29697" title="Pages that link to Topic: I need some Action Script advice" rel="nofollow" >Topic: I need some Action Script advice\

 
Author Thread
hyperbole
Paranoid (IV) Inmate

From: Madison, Indiana
Insane since: Aug 2000

IP logged posted posted 11-16-2007 07:22 Edit Quote

I have a friend whose site uses Flash as the main (only) means of navigation. If you look at the site you will see a group of moving pictures on the right. One of them has a couple of tomatoes in it. These pictures are not currently active, but will be later.

Now press the portfolio link on the left side of the page. This takes you to another page with a bunch of small squares in the lower left. If you hover over the middle square in the bottom row it will show you the same image with tomatoes in it that you saw on the first page. Pressing this image will cause the Famiglia movie to play.

What he wants to do is activate the images on the front page so that pressing one will bring you to the portfolio page with the movie that corresponds to that image active. For example, if you pressed the tomatos button on the first page, you would go to the portfolio page with and the bottom center button would be selected and it would show you the Famiglia movie without your having to press the button to get it to run.

Can anyone tell me how to do that with Action Script? I think this is the way SleepingWolf used to have his site set up. It might also be similar to the way GRUMBLE has his Boids page set up. Maybe one of them can answer this for me, but anybody who knows how to do this should chime in. I'm all ears

.



-- not necessarily stoned... just beautiful.

Blaise
Paranoid (IV) Inmate

From: London
Insane since: Jun 2003

IP logged posted posted 11-16-2007 12:27 Edit Quote

Surely you need to put in some ActionScript in the frame of the layer that the moving pictures are held in the Timeline.

Gosh, does that make sense?

this ActionScript will point to the position in the timeline that the portfolio link points to, and you'll probably need to pass through whatever else is required for the portfolio item to be displayed.

(I know I shouldn't say, but the site is poor)

hyperbole
Paranoid (IV) Inmate

From: Madison, Indiana
Insane since: Aug 2000

IP logged posted posted 11-16-2007 20:58 Edit Quote
quote:

Blaise said:

this ActionScript will point to the position in the timeline that the portfolio link points to, and you'll probably need to pass through whatever else is required for the portfolio item to be displayed.




Thanks Blaise,

I'm not an Action Script developer and I don't know if this is an unreasonable request. Could you give a brief code example of what you're talking about? I think I followed what you said to a point, but I think a code example would help me to understand it better

.



-- not necessarily stoned... just beautiful.

hyperbole
Paranoid (IV) Inmate

From: Madison, Indiana
Insane since: Aug 2000

IP logged posted posted 11-18-2007 18:01 Edit Quote

I've looked into this a little more.

I'm assuming the Flash file is structured like this:

code:
_root
      +--Home Page
           +-- images and stuff ...
           +-- button-1
           +-- button-2
           +-- button-3
           +-- ...
           +-- button-n
      +-- other pages...
      +--portfolio
           +-- movie-clip-1
           +-- movie-clip-2
           +-- movie-clip-3
           +-- ...
           +-- movie-clip-n



Would this be the correct way to set up each button so that it will transfer to the portfolio page and display the specified movie-clip?

code:
button-1
      on (release) {
         _root.portfolio.gotoAndPlay("movie-clip-1");
      }




.



-- not necessarily stoned... just beautiful.


(Edited by hyperbole on 11-18-2007 18:02)

zavaboy
Paranoid (IV) Inmate

From: f(x)
Insane since: Jun 2004

IP logged posted posted 11-18-2007 19:22 Edit Quote

No, the string within gotoAndPlay referes to a frame name, not a movie clip. I can't really say how to do it unless I see the FLA file. It all depends on how it's structured and put together. Just like with Photoshop, there's almost always more than one way to do something.

If you want to learn about an AS function, right click on the function in the AS pane and click "View help" or something like that, and it should open up the manual on that function in the help pane. Most function pages have examples, which really help me out.

hyperbole
Paranoid (IV) Inmate

From: Madison, Indiana
Insane since: Aug 2000

IP logged posted posted 11-19-2007 04:17 Edit Quote

Thanks zavaboy,
Unfortunately, I don't have Flash. I'm just trying to help out a friend who thought I might be able to help him because I'm a programmer. I figured I might be able to use my programming background to understand any answeres we get. You know how sometimes when you ask a programming question you get an answer in terms of programming practices that others may not be familiar with. I figured I might be able to translate that if we got that kind of an answer, but other than that, I really don't know what's going on in Flash.

I have done a little research on various web pages which has taught me a little bit, but not enough to answer the question. I understand what you're saying about needing to see the *.fla and see the structure of the file.

Thanks for your help. If I find out any more about the problem I'll let you know

.



-- not necessarily stoned... just beautiful.

Blaise
Paranoid (IV) Inmate

From: London
Insane since: Jun 2003

IP logged posted posted 11-19-2007 14:41 Edit Quote

Yeah, I think we need more information,

The problem with ActionScript and generally the Flash IDE, is that you can abuse any programming practice, leaving your project unreadable to any other developer. That's why I always code my Flash work in plain AS using MVC.

derek122
Nervous Wreck (II) Inmate

From:
Insane since: Apr 2008

IP logged posted posted 04-18-2008 08:44 Edit Quote

spam removed. user banned.

(Edited by Tyberius Prime on 04-18-2008 11:02)

reisio
Paranoid (IV) Inmate

From: Florida
Insane since: Mar 2005

IP logged posted posted 04-19-2008 03:59 Edit Quote

You can do everything on that page but the scroller on the right, the percentage/loader, and image slideshow (without using a GIF) with just HTML/CSS - can use JS to do those other three items.



Post Reply
 
Your User Name:
Your Password:
Login Options:
 
Your Text:
Loading...
Options:


« BackwardsOnwards »

Show Forum Drop Down Menu