ActionScript 3.0 :: Changing Pics 4 Times / Can't Get More Than 1 Link To Work
Sep 9, 2009
i am developing a piece for our home page that has three buttons below what's essentially a picture frame. the buttons work. it's the picture frame that doesn't.i have 4 ads that will rotate, each up for 250 frames. they fade out and in over each other. each has an instance name...ad1_link, ad2_link, etc. the idea is that as we have new products, etc, we'll swap in a new picture and remake the .swf.when i ran the code initially i got an 1120: access of undefined property error for pictures 2-4. no problems with the first one. after numerous attempts to find a solution, i decided to load all four movie clips at the same time, hiding them using the alpha property set to 0.i get no more errors, but now no matter which movie clip is visible, only the link to movie clip 4 (ad4_link) works. i need each clip to have it's own link, obviously, and for each to go away as the clip does.[code]
View 1 Replies
Similar Posts:
Mar 29, 2009
I have set up an animation that displays icons on agrid. Right now everything is working ok.I have an array of 4movieclips that are randomly selected to display on the screen.Each has a timeline that brings it from alpha 0 - 100. So far, soood.Now I have to add the remaining 200 icons. Now of course Icould make 200 more movieclips and add them all to the array butthere must be a better way, right?I thought I could just have just one movieclip and switch thepic out from an external xml list. But if I import them they won'twork with the alpha transition because they aren't movieclips,right?
View 3 Replies
Aug 28, 2006
let say that I wanna make a new SWF and I want the transitions between 3 pics or whatever pics I want .. at 20 frames ..... Im loading this into the master movie so when I loaded my transitions it run at 40 frames not at 20 as I speceified in the properities .?or maybe I was thinking in doing something like for example each 10 seconds change to next pic and so on ? can you do something like that ? maybe with set interval ?
View 3 Replies
Jul 20, 2009
I am new to Flash. I bought a template online a couple weeks ago, and for the most part have made all the changes to personalize the page. The page is for wedding videography, and came with a Videos section. However, I do not like the template video player, and would like to have the Videos link on the menu bar go straight to my youtube channel rather than to the flash player. Primarily all changes to the template have been made in a text.txt file, rather than the flash file itself. My question is, how could I change the link on the main page to route to my youtube channel? Here's what it looks like in the text file:
[Code]....
View 3 Replies
Aug 4, 2009
I was wondering how you go about changing the looks of static text via the use of actionscript given the time in seconds when the filter is to be applied/adjusted/removed.so things like the filters and font colour
View 4 Replies
Oct 13, 2006
I am making a flash game. The object of the flash game is to use the mouse and dodge the beer bubbles.to start with, the beer bubbles are released slowly, after 10 seconds i want the interval to decrease and the amount of beer bubbles to increase. my code is as follows:
if (cTime <= 10000){
setInterval (makeNewClipB, 1000);
}
[code].....
View 10 Replies
Oct 12, 2009
I'm working on my website which is a portfolio site, to showcase my work I have a basic XML image gallery which does 1 of 3 things loads a large photo, goes to a frame with a video player, or goes to another frame with a gallery of web design or flash work i've done. when a thumb is clicked i trace the indexOf(event.target) of the thumbnail clicked (all thumbnails are placed into an array).
the problem is that for some reason randomly the index will not be found and return -1, but then other times it will find the correct index and work properly. i don't know what the inconstancy is thats causing this to occur
View 0 Replies
Jul 20, 2009
I am new to Flash and am working on a web template I purchase online. I have a flash file called flash.fla I'm working with in Flash CS4 (trial). Of the five main menu buttons, I would like to redirect the 4th (the "videos" tab) to a youtube channel I've set up. I've located where the 4th button is in my .fla file. It's called B4. I double clicked on it, which opens it up in the timeline. There's 4 little objects in the timeline: b, b, t1, and t2.b is a frame, as is the 2nd b, and both t1 and t2 are documents. The only one I can open up in ActionScript is the 2nd B. I choose the GetURL from Script Assist, and put in my desired address, as followsI then close out ActionScript, and Export it as an Image File. I name it flash.swf to replace the .swf with the same name on my server. When I publish the new changes, the page just says Menu. If I click on that,
View 2 Replies
Nov 12, 2006
I need to change the guestbook link in the flash file on this page I have the fla file and changed it a year ago but can't remember now how I did it
View 1 Replies
Sep 24, 2009
I have an animation that loops and has different images come up with certain elements on the screen that remain the same throughout the movie. Depending on the image that is being displayed, the url of the link assigned to one of the constant elements changes with the code that I posted below.
The problem occurs when the movie loops because the URL of the constant is supposed to go back to the first link (just like everything else loops and starts at the beginning) but it remains as the last url that was declared.
Here are the three blocks of code I am using for the links, truth is the instance name of the button. These code snippets are arranged in their own "actions" layer on my timeline
First URL
truth.addEventListener(MouseEvent.CLICK, onMouseClick);
function onMouseClick(e:MouseEvent):void
{
var request:URLRequest = new URLRequest("http:../pages/calculate.html");
[Code].....
View 4 Replies
Mar 24, 2010
im trying to embed an swf file in facebook. To cut the story short, the swf im trying to embed is loaded fine but stops at preloader stage (0% of 1) and is not progessing as if it has missing link and couldnt locate something (the files struscture is one main swf file; index.swf loads other 5 swf),But, when i tried to load it up directly from browser, it works fine. I have been advised that changing the link path to absolute between the index.swf and 1.swf, 2.swf etc would solve the problem.
My questions will be:
-how do i change this path, because i couldnt seem to find any link that reflects the connection between those files?
-Is there any feature in flash that would be able to show this link rather than diggin up every symbol?
-If changing the path wouldnt solve the problem, what could be the reason this error is happening?.
View 1 Replies
Jan 7, 2004
When using the "textFormat.selectable = false", the text which I send to the freshly generated text field still is selectable. How to turn the selectivity of a dynamic generated link?
Note: .selectable is not documented in the property summary for the TextFormat object. But does turn blue in the editor.
View 2 Replies
Jun 22, 2010
I am editing a Flash file and I need to change a mailto: link. When I edit that link to change the email address I get several instances of error #1056. why such an arbitrary change would break everything .
Edit: Here are the errors:
ReferenceError: Error #1056: Cannot create property baseBackground on com.***t.csg.view.CSGWebsite.
ReferenceError: Error #1056: Cannot create property backgroundHolder on com.***.csg.view.CSGWebsite.
ReferenceError: Error #1056: Cannot create property backgroundMergeHolder on com.***.csg.view.CSGWebsite[code].........
View 1 Replies
Jun 19, 2010
I'd like to make sort of gallery with previous/next buttons. And on each image you'd have circles/link over important parts of the image.So each image wold have these circles on different locations. Question: how can I make that dynamically? And that it's not to complicated for the editor of the site? One way would be to write in XML x and y positions.
View 0 Replies
May 11, 2005
I have a flash piece that I want to loop 3 times and then stop.
View 2 Replies
Jul 20, 2009
I am new to Flash. I bought a template online a couple weeks ago, and for the most part have made all the changes to personalize the page. The page is for wedding videography, and came with a Videos section. However, I do not like the template video player, and would like to have the Videos link on the menu bar go straight to my youtube channel rather than to the flash player. Primarily all changes to the template have been made in a text.txt file, rather than the flash file itself. My question is, how could I change the link on the main page to route to my youtube channel? Here's what it looks like in the text file:
[Code]...
View 5 Replies
May 26, 2010
I have a simple button and in the "down" frame of the button I'm pasting a url Link under the options in the properties tab. For Target I selected _blank. This doesn't work for me. This was my second option after my first didn't work either. Its a really simple file and I can't figure out why it won't work. I am using Flash CS4.
View 6 Replies
Nov 30, 2010
I've a banner with quotes, each one has a link if you click on them. Unfortunately it won't if I check with IE8. Quotes are in a txt file like that: quotes=Content: [URL] target="_self">content</a>*... I've already tried on a webserver, nothing changed. Microsoft HD couldn't give any answer. When I move the pointer to the link it changes to the hand, but do nothing when I click on it.
View 5 Replies
May 30, 2010
i'm new to AS3. how do i go about executing a custom function n number of times and then executing another function n number of times repeatedly?
eg.
function firstOne():void { }
function secondOne():void { }
i need firstOne() executed say 3 times and then secondOne() 3 times and then firstOne 3 times again and so on. i'm trying to move a movieclip 3 times to the left and then 3 times to the right continuously.
View 2 Replies
Oct 18, 2010
Here's a simple test:
1) create a new AS3 project.
2) add a dynamic text field to the stage, give it an instance of "txt" or something and make it render html text
3) on frame 1 add this code:
Code:
txt.htmlText="<b>bold</b> <i>ital</i> <u>underline</u>";
if you test the movie, it looks fine.
4) add another text field to the stage, this one should be a static text field; put some text in it and test the movie again.
5) if you delete the static field and add another dynamic field, all is well again. Simply changing the static field doesn't work. It needs to be deleted and re-added.
View 5 Replies
Jan 12, 2010
I am trying to hide a movie clip with the following:ActionScript Code:wheelone_mc._visible = false;But the movie clip remains to be seen on the stage?Here is my full code:
ActionScript Code:
//hide wheelone_mc
wheelone_mc._visible = false;
[code].....
View 1 Replies
Jun 5, 2009
My map: [URL] The problem: The buttons does'nt work,i think i'm doing something wrong. They're in the map it self,because i don't want them to move while zooming. Actions of the button is: on (release) {getURL("http://mapping.lt", "_blank");} T.y. The fla of the map is here [URL]
View 1 Replies
Mar 14, 2005
I need a rollover function and so I changed onRelease to onRollover but the rollover effect then doesn't work.
- Script is on seperate layer (on root)
- hit_mc is the movie clip on which the rollover should work
- mask_mc is the one that should tween when mouse goes over hit_mc
hit_mc.onRollover = function() {
tweenBall(mx.transitions.easing.Regular.easeOut);
};
[Code]....
View 9 Replies
Oct 28, 2011
We send SWFs out to other networks, and it seems that one of these networks has used our SWF, but they have prevented navigateToURL() from running. So no links work in the game (to give us traffic). How has this happened? Is there anything as a Flash Developer i can do to ensure a link works as i have never see navigateToURL intercepted before.
View 0 Replies
Nov 21, 2006
i have this xml node being parsed into an html textfield in my flash movie...
HTML Code:
<ITEMS>
<![CDATA[<a href="http://www.yahoo.com">Yahoo</a>]]>
[code].....
View 2 Replies
Feb 1, 2009
I am having some trouble getting a url in my xml file to work as a link through flash,
xml example,
<?xml version="1.0" encoding="iso-8859-1"?>
<example>
<section id="1">
[Code].....
I have created a movie clip, called it data link, then I tried applying different scripts to get the mc to link to a web page defined in the XML. But I always get undefined, I have searched for a solution, but nothing seems to work.
View 6 Replies
Sep 30, 2010
I am trying to make a button work in a Flash cs4 file using as2. It is a template I am modifying from DreamTemplate. I don't know what I am supposed to change and exactly what I should change that unknown code to Here is the code I have:
[Code]...
As you can see I have tried to replace the url that was in the quotes and it does not work.
View 1 Replies
Jun 7, 2009
I am trying to fix this problem. My external text display fine and also the CSS. The problem is when I am using any tag in html like <a> doesn't work, doesn't try to open the link and also the mouse doesn't change to the default hand. I am attaching my code in AS3. If you see I am using a scroller and also a mask.[code]
View 11 Replies
Sep 30, 2009
I've this swf with its natively height of 550px. I've the bottom bar, height 92px. So i write this code in AS:
bar.y = stage.stageHeight - bar.y / 2;
I wrote /2 cause the registration point of the bar is in the middle of it.My pourpose was to place the bar always in the bottom, no matter how tall is stage. But as you can look from the link, it doesnt' work right.while was trying to undestand what is worng, I noticed that the effective repositiong is the duoble of what I wrote in AS3 code. If i resize of 3px larger, the bar goes 6px down, and so on.
View 3 Replies
May 11, 2011
I inherited some code from a previous programer. The idea is that a user clicks on the player and that opens the page at a new url. It works if it opens in a new page but it doesn't work trying to open the url in the same page. It just closes the player. Here is the code:
[Code]....
View 2 Replies