ActionScript 2.0 :: GetURL("index-"+Number(num-1)+".html"); - When Press "Home" To Load For Example Actionscript.org

Sep 1, 2010

I am trying to modify a ready for use menu but can't understand what I should change. Each button of this menu points to 6 files: index.html, index-1.html, index-2.html, ... etc. I want to can write links instead the link to be a file as is index.html. I want when press "Home" to load for example actionscript.org

View 5 Replies


Similar Posts:


ActionScript 2.0 :: Flash 8 - Load Specific Swf Files When The Screen Is Refreshed Or When Someone Clicks On The Home Or Index

May 29, 2007

awhile back I completed the load random swf tutorial provided here on kirupa. But now I want to load specific swf files when the screen is refreshed or when someone clicks on the home or index. here is the code, can anyone point me in the right direction?

[Code]...

View 1 Replies

ActionScript 1/2 :: Home.swf That Is Inside Home.html?

Jul 27, 2009

I have a home.swf that is inside home.html.inside home.swf there is a btn with the following
 
cinema_btn.onRelease = function() {loadMovieNum("video_main.swf", 0); 
inside video_main.swf  is the following 
loadMovieNum("video1/reels.swf",1);
 
the idea is to load reels.swf in level1 on top of video_main.swf in level 0 why reels.swf size looks much larger even though all swf's are 900 x 800?

[Code]...

View 2 Replies

ActionScript 2.0 :: Make The Button When Press It Do Not Load Movie Number Twice(x2)?

Jun 22, 2007

how i can make the button when i press it do not load movie number twice(x2)?. and when you press again the button load the movie ,i just want to load just one time, the movie and when u click on it don't play again.

View 3 Replies

ActionScript 2.0 :: Flash + HTML + Variables - Go To The Home.html Page An Animation Will Play From Start And Then Stop At The End Of It

Feb 25, 2010

when you go to the home.html page an animation will play from start and then stop at the end of it. However, for all other pages i.e contact.html aboutus.html we need the animation to skip to the end straight away and not to play the whole animation through. I was thinking this would be controlled by a variable or some kind of external text file ect. Basically in the first frame the actionscript needs to basically say

"if this html page is aboutus.html then go to the last frame and stop" and with the index page it would say "if this html page is index.html then keep playing"

View 2 Replies

ActionScript 2.0 :: "On Press" - Load Movieclip And Html Page?

Jan 14, 2009

I got a "huge" problem.. or should I call it "lack of knowledge"...The thing is, I'm building a homepage in dreamweaver. But the menu itself is made in Flash.The problem is:hen I press my button I want it to load the animation on the button first (the button is a movieclip) then go to the link (homepage)

View 6 Replies

Professional :: Animated Index Page Before Moving On To The Home Page?

Jul 11, 2011

I have a project for a site that sells fishing lures.I want to have an animated index page before moving on to the home page. My idea is to have a boat sitting on a pond fishing lines in the water, when a fish jumps out of the water, the water ripples, the next time you see the fish it's got a hook in it mouth and jumping out of the water.how do I go about it? How to I create the water rippling? I think with the fish I can do easily enough with it jumping on and off stage. Would I do the water with shape tweens?

View 1 Replies

Actionscript 3 :: After Shuffling Array - Variable = Array[index] Gives 0, Trace(array[index]) Gives Correct Number

Aug 16, 2011

I think it would be simplest to explain it like this:

[Code]...

View 1 Replies

IDE :: HTML Based 'home' Button For Flash?

May 13, 2009

I've built a Flash site, embedded it within an HTML page and I'd like to add a 'HOME' button to the HTML page linking to a particular frame within the Flash. Is this possible?

View 4 Replies

Professional :: Where Is Slideshow Coming From On The Home.html Page

Sep 10, 2010

I am an html/css programmer and don't know much about Flash. I've just been asked to update this site which has many Flash elements. I just dissected the site but can't figure out where the slideshow is coming from on the home.html page. I opened the index.swf object and there are no images just a background. I believe the original designer used Flashbox for the slideshow and Flash as the backdrop? I think I have the other galleries (click View Rings portfolio or another portfilio) figured out.

It looks like it's pulling in a Flash file and the Flash file is pulling in images for the slideshow (at the bottom) from the images.xml file. I opened the Flash file (image gallery.swf) and the full pop up -- background and large photo and slideshow -- are included in the .swf file unlike the index.swf file. Am I correct? Not sure if a Flash file would pull in images from an images.xml file. How do I edit the Flash file if it's not pulling the images from the images.xml file? When I open the file it just shows me the .swf file in design view.Is this over my head and should I hire someone with Flash and Flashbox experience?

View 10 Replies

Html :: Automatically Redirect To Website Home Page?

Aug 5, 2011

in that task i have to make one website intro and have to run with html page. that i know haw to do it. and i have done with this part.

but now i have to do one thing that is. when my intro is completed then page will automatically redirect to website home page.

is it possible then page will be redirect without single click. if yes then how.

View 1 Replies

ActionScript 3.0 :: Tracing An Index Number From An Array?

Jun 27, 2009

I am trying to trace an index number from an array.

I know this must be about as simple as it gets, but I just cant figure it out.

I know the contents of the array are all asighned a number begining with 0.

I need to find out the index number of a thumbnail when you click on it.

Code:
function whenThumbsLoad(event:Event):void{
var thisThumbsLink:String = clipPathList[ c ];
var thisThumbsTitle:String = clipTitleList[ c ];

[Code].....

I know I can trace the thisThumbsLink and get that, but all I need is it's index number. Also I trace(c); and I get how many there are, but I just don't know what to trace to find the index number.

View 12 Replies

ActionScript 3.0 :: Get The Array Index Number Which Currently Accessing?

Nov 2, 2009

i used a for loop to addChild of a class object(movieclip) to the stage and at the end line of for loop after addChild i push it into an array and i add eventlistener to it , such as
 
for (var i:Number = 0; i < 9; i++) {
.....
clip = new CLIP;
......

[Code]....
 
and if i want to get the array number which currently accessing how can i do that ? for example, i drag one of the mc class from the array which has already added eventlistener above.
 
how can i get the number of the array which im accessing ? evt.target..... etc ?

View 4 Replies

ActionScript 3.0 :: Cannot Get The Index Number From A StartDrag Function?

Jun 13, 2011

//*//*//*//*//**//**/**//**//**//**//**//**//**//**//**//**//**//
var t:Array=new Array();t=[d1,d2,d3,d4,d5];
var d:Array=new Array();d=[t1,t2,t3,t4,t5];

[code].....

View 6 Replies

ActionScript 3.0 :: Trace Child Index Number?

Mar 5, 2012

I want to know the index number of the object when I clicked it..

trace(mc.getChildAt(0)) = display the object at the index 0 lets say the output is [object] button

now I want to reverse it..

when i click the object button

button.addEventListener(MouseEvent.CLICK, onClick)
function onClick(e:MouseEvent)
{

[Code]....

View 1 Replies

ActionScript 3.0 :: Trace The Index Number Of The Array?

Jun 29, 2009

The Action script code below takes the strings in the array (pgtit) and creates a dynamic navigation bar I am trying to trace the index number of the array being click I just seem to get -1.

var pgtit:Array=["link1","link2","link3","link4"];
var xPos = 0;
var menuHolder:MovieClip = new MovieClip;
addChild(menuHolder);

[code]....

View 2 Replies

ActionScript 2.0 :: Get Index Of The Smallest Number In The Array?

Nov 1, 2003

I have a Array. I dont know how large the array is. How can I get index of the smallest number in the array? I know array contains only numbers.

View 5 Replies

ActionScript 3.0 :: How To Trace Child Index Number

Mar 5, 2012

I want to know the index number of the object when I clicked it..
trace(mc.getChildAt(0)) = display the object at the index 0 lets say the output is [object] button
Now I want to reverse it. When I click the object button
button.addEventListener(MouseEvent.CLICK, onClick)
function onClick(e:MouseEvent){
trace(e.currentTarget.????????)
//I want to trace what index number is that button, the output should be "0"
}

View 1 Replies

Javascript :: Is It The Index.template.html File Per Project Or The HTML File Created Per MXML Application

Sep 26, 2011

I was reading about Flex- JavaScript communication via ExternalInterface.But I had a doubt, it said that the javascript code should be written in the HTML file of the application ? Now which is this HTML file ? Is it the index.template.html file per project or the HTML file created per MXML application ?

View 3 Replies

ActionScript 2.0 :: Flash 5 With HTML Frames - Adding Frame On Top Of My Home Poage To Give Users Better Navigation?

Feb 10, 2002

I was thinking of adding frame on top of my home poage to give users better navigation with a meun on top.But how do you make when you press the button in flash the hyperlink will make the frame at the bottom or specific frame page to change?

View 2 Replies

ActionScript 2.0 :: On Button Press Increase Number

Aug 11, 2009

im fresh in action script and in new member on this forum. I work in AS2. So i have 10 buttons. I need script which will increase the number for 1, (0/10) when pressed. When the same button is pressed twice, then i want not to raise the number. When all the buttons are pressed, (when the number reaches 10/10) i wish that animation play.

View 11 Replies

Flash :: IDE - Movie To Load The URL(home Page) After It's Finished

Mar 11, 2009

I want the simple movie to load the URL(home page) after it's finished. so i tried to add
getURL("[URL]" , "_blank"); at the end of movie, but i keep getting errors.. this is the website that i'm working on LINK It's a very simple. i'm not even going to dare to make it fancier. I just want the movie to be over and go straight to the home page without any clicks.. i tried to put the geturl thingy at the last movie clip(Imagine tomorrow) and i tried to put it at the end of the keyline.. neither seem to work. i'm sure it's very easy one, but it just doesn't work.

View 14 Replies

ActionScript 2.0 :: Flash8 Retrieve Index-number Of A Value In An Array?

Apr 30, 2009

For instance:

PHP Code:

my_Array = new Array();
my_Array.push("one", "two", "three", "four")

Here's the catch: another variable (for instance) called "three" is loaded. I want to look up "three" in my_Array and retrieve the index-number (should be 2 of course). How can I accomplish that?

View 2 Replies

ActionScript 1/2 :: Set A ComboBox Instance To A Certain Value (without Knowing Index Number)?

May 17, 2010

I have a ComboBox, with it prepopulated with the States.When I have a variable that says it should be pre-selected to for example CA, how do I do that, without haveing to figure out the index number for every single state?

View 3 Replies

ActionScript 3.0 :: Array Elements Knowing Their Index Number ?

Jul 8, 2011

Say you have a class Parent, which has a property childArray:Array. In this array, we will register several instances of the class Child. Is there an easy way for a child to know which position in the array it currently has? I know I could just pass the index number into the child as I register them, but if a child were to be deleted from the array, all children past the deleted childs index would need to have their indexes updatedl. While this is of course not a huge task, I just have this feeling it should be a better and more dynamic solution.

View 6 Replies

ActionScript 2.0 :: Checking Index Number Of An Item In An Array?

Aug 2, 2007

I have this Array

Code:
var shoprubriken:Array = new Array();
shoprubriken[0] = "43";
shoprubriken[1] = "44";

[Code]....

Now I wanted to check on which Index Position maybe the 47 is

How can I archive this on a Button or Function?

View 5 Replies

ActionScript 3.0 :: Finding Out Index Number For Event.target Of An XMLList?

Dec 7, 2009

This is my first AS3 post, I have recently taken the step from AS2. I am displaying an image from an XMLList using event.target.name. I need to access it's index number in the list to set to a variable.Here is the code:

thumbLoader.addEventListener(MouseEvent.CLICK, showPicture);
function showPicture(event:MouseEvent):void
imageLoader.load(new URLRequest(event.target.name)); 

[code].......

View 3 Replies

ActionScript 3.0 :: Change The Number In A Dynamic Text When Press A Button?

Dec 7, 2011

I wrote a code that's suppose to change the number in a dynamic text when I press a button,<br>What did I do wrong?

Object(root).currentNum=1;
Object(root).pageNum.text = Object(root).currentNum;
Object(root).arrowLeft.addEventListener(MouseEvent .CLICK, arrowLeftClick);
function arrowLeftClick (e:MouseEvent):void{
Object(root).currentNum-=1;
}

now it's only showing me the number 1.

View 2 Replies

ActionScript 2.0 :: Auto-load The Home Page Once The Flash Intro Finish?

Mar 11, 2009

I am having trouble by loading my homepage after my flash intro ends.Does anybody knows the ActionScript for this move?

View 5 Replies

ActionScript 2.0 :: Changing A GetURL To Access Local Html?

Jan 22, 2011

When I originally made this flash, I created a button to access a web page that I had uploaded to my university server.

Now I'm attempting to compile all my webpages and flash to a CD for portfolio purposes and am having trouble redirecting the button to access the html in an adjacent folder to where the flash is stored.

Here's an example of the original button AS:

on(release){
getURL("TheURL(sorry I can't post links)", "_blank");
}

View 2 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved