ActionScript 1/2 :: Referencing HTML Page From Within A Movie Clip

Mar 18, 2009

I have a simple horizontal scrolling gallery of 24 thumbnails in Flash, the thumbnail images are loaded into the boxes using actionscript. I would like each thumbnail to link to a html page of my choice. There is a movie clip instance called panel with the 24 buttons inside it and on the first button as a test I've placed the following action script:

on (release) {
getURL("team.html","_self");
}

When testing this movie from within Flash (CTRL, ENT) the button links to the html file (which is in the same folder as the SWF) with no problem. The problem is when I preview the page in a browser and try to click on the first button nothing is happening. I've tried it in both IE7 and Firefox with the same result.

The flash thumbnail clip is placed as a flash object into a html page using dreamweaver.

I'm sure this is something simple such as navigating the timeline but I've tried a few things like _root. but still no joy.

View 2 Replies


Similar Posts:


ActionScript 3.0 :: Movie Clip Referencing HTML Page?

Jan 16, 2011

[URL]I am using a flash movie I crated as a menu, outside of the website the movie works exactly as I want and the push pin follows and stays on the last "button" clicked. However when using this movie on my html site since the flash menu gets refreshed the push pin goes back to where I have it starting by default.Is there any way to reference which html page I am currently on instead of the current button in AS3?Code looks something like this...

var currentPage:SimpleButton = home_btn;
tack_mc.x = home_btn.x;
tack_mc.y = home_btn.y;

[code]...

View 1 Replies

ActionScript 3.0 :: Reference Instances From Movie Clips If The Movie Clip Referencing From Is Nested?

Mar 23, 2010

It's me again and I'm running into a problem. So, I have this movie clip that is nested inside multiple movie clips. I want to tell Flash to perform an action when that movie clip hits another movie clip in the main timeline. It's just collision detection for a game using the hitTestObject code. I was thinking of using MovieClip(root), but that won't work since it's nested so much.

View 15 Replies

ActionScript 1/2 :: Referencing A Movie Clip By Using A Variable?

Jun 2, 2009

I have been using this line of code to fade in a movie clip:

new Tween(background_mc, "_alpha", None.easeNone, 0, 100, .5, true);

Now, I want to accomplish the same thing, only this time by using an element from an array (bg_array[currentSlideNumber]) that stores the instance name "background_mc"
 
I've tried the following, but it doesn't work:

new Tween(bg_array[currentSlideNumber], "_alpha", None.easeNone, 0, 100, .5, true);

View 3 Replies

ActionScript 2.0 :: Referencing Movie Clip On Different Level?

Jan 8, 2009

If I writing actionscript on the _root level, but I want to reference a movieclip that is on a different level, how would I go about doing this?I know that if it was reversed I would something like this:_root.home_btn.onRelease = function () {Would I just do the name of the level, "_level2.home_btn.onRelease = function() { ?

View 7 Replies

ActionScript 2.0 :: Referencing A Movie Clip Within A Movieclip?

Jul 17, 2009

Maybe someone can shed some light on this issue for me. I have a main movie clip, call it Main, that loads external swf files during run time. One of these loaded swfs, or movie clip is called FOB. Inside FOB is another movie clip with a variable name of contentText. What I want to do is to adjust the x location of contentText from the Main movie clip.

Inside the Main movie clip I have this (entire code):

ActionScript Code:
//CREATE MOVIE CLIP CONTAINER
this.createEmptyMovieClip("FOB", _root.getNextHighestDepth());
this.createEmptyMovieClip("PirateClub", _root.getNextHighestDepth());

[Code]....

View 0 Replies

ActionScript 3.0 :: Referencing Objects In The Level Above The Movie Clip?

Sep 10, 2011

i want to referance objects in the level above the movie clip that i have the AS in.  what i mean is that i have a movie clip on the stage, and that movie clip has some actionscript in it, and that AS needs to refer to an object on the main stage, how would i do that?  i have tried parent and stage 1, but neither seem to work

View 4 Replies

Flash :: Program An Html Page To Move To A New Web Page On User's Clicking An Item Of An Embedded Movie?

Nov 21, 2011

Let me ask how to program an html page to move to a new web page on user's clicking an item of an embedded flash movie? But , in detail, I actually want to do a little different thing. I want that the parent html page remains there ,instead I want a child html frame has a new page after user's clicking the list item of the embedded flash movie.

View 2 Replies

ActionScript 1/2 :: Referencing : Duplicated Movie Clip With A Dynamic Text Field?

Jun 23, 2011

I have created a movie clip with the following path to a dynamic text field:
 
_root.i_lotteryball1.i_ballstrip.i_text.d_text1.text = _global.text1;
 
I have then duplicated the 'i_lotteryball1' movie clip, and called it 'i_lotteryball2'.When I try:
 
_root.i_lotteryball2.i_ballstrip.i_text.d_text1.text = _global.text2;
 
It changes the text in  'i_lotteryball1' text field aswell as  'i_lotteryball2' text field with the value of '_global.text2' How can I update each text field with different values.When I try to change the instance name of the text field inside 'i_lotteryball2'  to 'd_text2', it changes the 'i_lotteryball1' text field instance name aswell to 'd_text2'!
 
My objective:
  
_root.i_lotteryball1.i_ballstrip.i_text.d_text1.text = _global.text1;
_root.i_lotteryball2.i_ballstrip.i_text.d_text2.text = _global.text1;

View 7 Replies

ActionScript 2.0 :: Load An Html Or Html File In A Flash Movie Clip?

Feb 21, 2009

new using flash, is it possible to load an html or htm file in a flash movie clip?

View 1 Replies

Put A Flash Movie Into A Html Page?

Apr 2, 2009

how can i put a flash movie into a html page which will be compatible with most browsers?

whats the commonly used html?

View 1 Replies

SWF Movie Will Not Load In HTML Page

Dec 9, 2009

I have a flash movie that loads another movie into a place holder container upon opening. So, 2 swf files - one is the main movie and the other the one that loads into the main movie. Works just fine when testing in flash or clicking on the swf files outside of flash. But when I embedd the main movie into my html page - the main movie loads ok, but it doesn't load the child movie. I have both swf files in the directory so I am not getting why it works fine except when placing into html page.

View 1 Replies

ActionScript 3.0 :: Make A Flash Movie To Go To A Html Page When It Is Done?

Feb 9, 2010

I am wondering what the code is to make a flash movie to go to a html page when it is done.

View 1 Replies

Flash :: Movie Is Repeating Vertically In HTML Page

Mar 22, 2011

If you go to this URL and scroll all the way down - you will see that my Flash movie is showing up twice in the screen - stacked vertically on top of each other.  Can you hit view source and tell me what code I need to take out of my HTML page to stop it from repeating a second time.[url]...

View 3 Replies

ActionScript 3.0 :: Get A Link From An HTML Page To Specific SWF In Flash Movie?

Feb 14, 2012

how to write the code that would allow a link from the html page to load a specific swf in the Flash movie.The flash movie currently has buttons that load the specific SWF into a loader.The user needs to be able to essentially click through that button from the html/url link (not having to hit the flash movie THEN find and click the button.The code in AS3 for the buttons is as follows:

Alpha_btn.addEventListener(MouseEvent.CLICK,Alpha1911);[code].....

View 3 Replies

Flash :: Expand' A Movie To Move Other Objects Out Of It's Way On The HTML Page?

Aug 20, 2010

I have a question regarding flash. I am an intermediate flash user. Basically, I want a flash movie to expand like this homepage video, when the user clicks on the go button: [URL] Is it possible to "expand" the borders of a flash animation in such a way, and if so, how do I set this up in flash? Is it possible to have the drop-down menu displace the content below it on a html site? i.e. a 250-pixel high banner drops from the original flash piece, is it possible to have the rest of the page move down 250-pixels as well?

View 1 Replies

ActionScript 2.0 :: Extending Outside Flash Movie Bounds In HTML Page

Dec 16, 2006

I have a flash file, which's dimensions are 500 px by 500 px. That's how I want it. However, sometimes something happens in the flash movie, causing a movieclip to extend outside the dimensions (which I need it to be seen by the user). Im putting this swf into an html file. I definately know there is a way where those out-of-bound movieclips can appear (inside a browser), overlapping other html elements, but I forgot how. Well, setting the wmode parameter to transparent will cause the movie to become transparent, revealing whatever's underneath, but this doesn't solve my problem. I don't want my movieclips to look "cut" when they happen to pass across my bounds. Probably the DIV tag is related here. I know that the cheapest way to solve this is by setting the movie dimension to something like 999 by 999. But I dont want to do that!

View 3 Replies

ActionScript 2.0 :: Place A Transparent Flash Movie In A DIV Over A HTML Page?

Mar 15, 2007

I've just started working on a Flash-based annotation tool. How it works is I place a transparent flash movie in a DIV over a HTML page and draw on it.Now the drawing part turned out to be fairly simple and I found numerous examples to get me free-form drawing. Its the erasing that's driving me nuts. All the examples out there I looked at either cleared the entire canvas, or let me click on specific drawings to take them off the canvas. I need an MS-Paint style eraser that just rubs things in its path.I could draw in white to simulate erasing, but that wont work. I have a transparent flash movie and the background HTML needs to show through.Here's the script for the drawing bit I picked up from Adobe, and on which I'm trying to build the eraser.

Code:
init();
stop();
function init() {[code]....

View 4 Replies

ActionScript 3.0 :: Movie Clip As Intro Page?

May 10, 2010

I have a movie clip that I uploaded as an .flv (so I could have the sound) as something on the timeline. I set up a button below the video to skip to the website (or welcomePage)However, I cannot get the button to work for some reason. Below is my script, am I missing something? Also, for whatever reason, now my movie clip does not autoload when it did before...I also do realize that I could probably condense the timeline, but I am just working teaching myself, so bare with me.
 
stop();
home_btn.addEventListener(MouseEvent.CLICK, welcomePage);resume_btn.addEventListener(MouseEvent.CLICK, resumePage);reel_btn.addEventListener(MouseEvent.CLICK, reelPage);photos_btn.addEventListener(MouseEvent.CLICK, [code]....

View 3 Replies

ActionScript 2.0 :: Stop Movie Clip Going Off The Page

Mar 11, 2010

so im basically in the very early stages of building my very own version of space invaders i have made the gun emplacement go from left to right suing the arrow keys on the keyboard but when they reach one side they continue off the screen ive been looking at different things to fix this but nothing is sinking in my original code i made for the gun was

MjtGun.onEnterFrame = function() {
if(Key.isDown(Key.LEFT)) this._x -=5;
else if(Key.isDown(Key.RIGHT)) this._x += 5;
}

stop it from continuing off screen?

View 2 Replies

Professional :: 12 Movie Clip Buttons On The Main Page?

Aug 25, 2010

I have 12 movie clip buttons on the main page (3 rows of 4 buttons).When a button is pressed,it gives the answer to a question which remains visible.On this answer screen, there is another button to click for further information. I pointed to this button to go to another frame within the same movieclip (containing the further information).However, this "further information" shows up  UNDERNEATH the 12 buttons, and you can't read it.

View 14 Replies

Randomly Load Movie Clip When Page Loads?

Mar 29, 2009

I am trying to make what I thought would be a very simple random picture display. I have five movie clips named myClip1, myClip2, etc. All are on the first frame of the timeline. Each has this as a movie clip action:

Code:

onClipEvent(load){
_alpha = 0;
}

The frame also has an action like this:

Code:

nClipMax = 5;
// nClipMax being the number of movie clips
this["myClip" + Math.ceil(Math.random()*nClipMax)]._alpha = 100;

When I test this the background (an image) displays but nothing else, the movie clips stay transparent. I have tried several variations without any luck.I am mainly an asp and net developer that uses flash periodically so be gentle.

View 1 Replies

ActionScript 3.0 :: Removing Previous Movie Clip When New Page Is Opened?

Apr 2, 2011

how to remove a mc when another mc is clicked.The movie clips are pages and if you check the link you will see the pages aren't removed they simply stay on the page when the new mc appears.This is the relevant part of the .as which appears to have a remove code but doesn't seem to take affect.

------
function navigate (e:MouseEvent):void {
trace (e.target.name);

[code]....

View 4 Replies

ActionScript 2.0 :: Flash 8 - MC - Scroll A Movie Clip (main Page Itself)

Jul 27, 2009

I would like to scroll a movie clip (my main page itself actually). If I put my mouse to the left it scrolls right, to the right it scrolls left, up it scrolls down, down it scrolls up... seen it on so many pages, still can't find any code for it.

View 4 Replies

ActionScript 2.0 :: Embed HTML Pages In Movie Clip?

Mar 20, 2011

I already have HTML pages built and I'm redoing that site in flash.The content pages will stay the same, so instead of completely rebuilding the pages in flash with a new text scroll box, I am looking for an already built component that will allow me to just load html pages into it.

I don't want to spend the time constructing all the elements separately to accomplish this instead I want one already built that allows me to simply load an html page into it.

View 2 Replies

ActionScript 2.0 :: Load Images Into A Movie Clip But Using A Html Tag?

Jan 23, 2012

I don't know if this is possible but if someone knows how to do iI want to load images into a movie clip but using a html tag?What I'm trying to achieve is loading a xbox avatar into flash...The code I have to use is :<img src = "http://avatar.xboxlive.com/avatar/gamertaghere/avatar-body.png" />

View 4 Replies

ActionScript 2.0 :: Referencing To An HTML Value?

Jan 14, 2009

I'm making a sports roster for my school's website and I want to use actionscript to save me time updating. Is there a way I can use actionscript to "reference" to a value (<td uV="1.000" class="ig_a78ff5c6_6 StatsField"><nobr>1</nobr></td>) on a webpage (http://www.maxpreps.com/michigan/bas...th=,local,team) so that when the value is updated, it would reflect on my roster?

View 4 Replies

Professional :: Sound Won't Play When SWF File Is Inserted In HTML Page--plays Fine In Flash Test Movie?

Dec 1, 2010

I have created a SWF file that plays/stops sound. The SWF file works great when previewed in Flash CS4, but does not work when inserted in the HTML file.Here are the 2 files that are automatically generated when I INSERT>MEDIA>SWF in Dreamweaver CS4:

swfobject_modified.js
expressInstall.swf
Here is the ActionScript3 that I am using in the Flash file:

[code].......

View 6 Replies

ActionScript 2.0 :: HTML Can Call Layer Name Inside Movie Clip?

Jan 18, 2010

PHP [code]....

But what if under another layer, layer B, I have a movie clip and inside that movie clip I want HTML to play B_right (layer) or B_left (layer)?

View 2 Replies

IDE :: Preload One Html Page / Once It's Loaded Into Cache Automatically Jump To Page With Big Swf?

Dec 29, 2009

I have a flash header for an html site that is about a megabyte and obviously needs a preloader. Unfortunately it won't work to have the preloader loading at the top while the rest of the html below is visible — it will end up looking like the top navigation is cut off, as the top 10 pixels of the nav bar is actually in the swf header (fully loaded it will look contiguous)Is there a way to preload it in one html page and then once it's loaded into the cache automatically jump to the page with the big swf?

View 1 Replies







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