[x]
Posted via EE Mobile

Search, ask, and monitor your questions on the go with EE Mobile. Visit Experts Exchange from your mobile device and never be out of touch again.

06/02/2009 at 09:47PM PDT, ID: 24458896
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

7.1

Using a dynamic Flash template; having trouble linking a button to a page in the fla file (not a URL)

Asked by mark_06 in ActionScript

Tags: help, flash, dynamic, action script, AS2, page

Hi I purchased a template from Template Monster (http://www.templatemonster.com/flash-templates/10156.html) and have worked out how to edit everything except for making new buttons that I have created link to new pages that I have made (Please note that I want to have the button load a new page [which is inside a movie clip]; not to load a website link).  I have read and watched all the video tutorials on Template Monster as well as asked questions on their online help chat as how to solve this problem but they keep telling me to view tutorials that I have already read/watched.  


If you view the link that I posted (www.templatemonster.com/flash-templates/10156.html); when the flash loads there are two grey boxes that slide down from the left and right displaying text (from when it loads there is "News & Events" on the left and "Welcome to Our business company website" on the right).   When you click on one of the buttons at the top left (either  About Company, Services & solutions,  news & events ,  partners & affiliates or  support & contacts )  the boxes with the text slide up and drop back down to reveal new information.  


In the .fla file; if you double click on either of these boxes that slide down; it opens up a movie clip with a series of key frames that are separate movie clips.  Each key frame with the movie clip in it is a page (For example in the .fla file  if you double click where the News & Events text is; the first key frame is the News & Events page, the next key frame is the Our Director page, then the next key frame is Available Services page etc; so it keeps all the pages that display in the left box in this movie clip)


As it already may seem confusing; I have attached a few images hopefully explaining to you what I mean (I am unable to send the .fla file as it goes against their terms of use).  In the attached images; Column 1 refers to the left grey sliding drop down box; where Column 2 refers to the right grey sliding drop down box.
In the 3rd attached image (p3.png), you can see I have made a new page for Column 1 Left.  It has 4 buttons (Request a quote,  guarantee, Cisco Unified Communications for Small Businesses & Hybrid Conversion Systems) that I want when someone clicks on either of the buttons; Column 2 right slides up and drops back down to reveal one of the new pages that I have made.  

The template is a Dynamic Flash template; so all the text is originally set to dynamic instead of static (Although I have changed most of the text to static as I find it easier to use) and uses a .html file to load all the text into the .swf file.  I have attached the original .html file as well as the images.
In terms of coding; the buttons that I didnt create use a similar code of:

on (rollOver) {
      if (_root.link<>2) {
            gotoAndPlay("s1");
      }
}
on (releaseOutside, rollOut) {
      if (_root.link<>2) {
            gotoAndPlay("s2");
      }
}
on (release) {
      if (_root.link<>2 and _root.flag == 1) {
            _parent["item"+_root.link].gotoAndPlay("s2");
            _root.link = 2;
            _root.flag = 0;
            _root.pgap.play();
      }
}

I know that s1 and s2 refers to making the button animate when the moue rolls over it (refer to the attached  p4.png file to see what I mean) as the person who created the template uses movie clips to animate the buttons.            

Sorry if this seems confusing;  the video tutorial that I looked at on the Template Monster website is:

http://www.templatemonster.com/help/after_sale_support/Demo_movies_database/Dynamic_Flash/article4.html

Also please note that in the images, sometimes in the properties box it says i'm using the Flash 6 player with Action Script 1 and in others i'm using Flash 8 player with Action Script 2; this is just because I was originally using AS1, but switched to AS2.

Thanks
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
32:
33:
34:
35:
36:
37:
38:
39:
40:
41:
General code for a button:
 
 
on (rollOver) {
	if (_root.link<>2) {
		gotoAndPlay("s1");
	}
}
on (releaseOutside, rollOut) {
	if (_root.link<>2) {
		gotoAndPlay("s2");
	}
}
on (release) {
	if (_root.link<>2 and _root.flag == 1) {
		_parent["item"+_root.link].gotoAndPlay("s2");
		_root.link = 2;
		_root.flag = 0;
		_root.pgap.play();
	}
}
 
 
-------------------------------------
 
 
on (rollOver) {
		gotoAndPlay("s1");
}
on (releaseOutside, rollOut) {
		gotoAndPlay("s2");
}
on (release) {
	if (_root.link<>3 and _root.flag == 1) {
		_parent["item"+_root.link].gotoAndPlay("s2");
		_root.link = 3;
		_root.flag = 0;
		_root.pgap.play();
		_parent["item"+_root.link].gotoAndPlay("s1");
	}
}
Attachments:
 
Print screen images, dynamic flash text file
 
[+][-]06/03/09 09:53 AM, ID: 24538535

View this solution now by starting your 30-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zone: ActionScript
Tags: help, flash, dynamic, action script, AS2, page
Sign Up Now!
Solution Provided By: rascalpants
Participating Experts: 1
Solution Grade: B
 
 
 
Loading Advertisement...
20091111-EE-VQP-91 - Hierarchy / EE_QW_3_20080625