Professional :: Why Code Is Calling Same Url

Feb 16, 2010

im creating a web page in flash and im using this code for the navigation buttons:[code]The problem is that when i publish this and place it in Dreamweaver all three buttons link to "bio.html".

View 3 Replies


Similar Posts:


ActionScript 2.0 :: Code For Calling Rtmp?

May 4, 2007

I want a song to accompany a Flash slide show; but placing the song in the .swf makes the file load too slowly, even over a good DSL connection. So I thought, since it's just non-synched background music, streaming the audio would speed things up.

I uploaded the song as a sound file in the form of an .flv to my favorite streaming video server site. (I tested it beforehand and it worked great.)A techie at the server company suggested I use their rtmp code to load it into my slide show file. Their rtmp code looks something like this:

/* wonderfulworldaudiortmp://00.000.000.00/fvssod/fandm00.000.000.00 */

(I've replaced the real numbers with zeros.)I guess I need some actionscript to call this but can't find the right combo on the internet.

I've tried things like:

/*var videoInstance:Video = WonderfulWorldAudio;
var nc:NetConnection = new NetConnection();
var connected:Boolean = nc.connect("rtmp:/00.000.000.00//fvssod/fandm00.000.000.00");

[code]....

But haven't hit the number yet.

View 5 Replies

ActionScript 3.0 :: Add Code To Main.swf That Is Calling Swfs With Three Players Correct?

Nov 20, 2010

I need to use the unload and stop method.But my actionscript code calls individual swf files which contain 1 video player each. How would I add the unloadandstop methods into the existing actionscript?First question, add this code to the main.swf that is calling the swfs with thre players correct?So far I would I add a second set of event listeners for this function, like this?[code]

View 3 Replies

Professional :: Calling Another Swf?

Feb 16, 2010

I am creating a website that shows thumbnails of art. When you click the thumbnail, which is a movie clip, it calls the swf of that individual full sized image. I attached two files, the main swf and one of the full size image swf.(I took a flash course, adobe approved, that was not Can you say $1,400 wasted? He stated that you should always use movie clips instead of buttons, because in his opinion buttons are not any good.)

View 5 Replies

Professional :: Calling A Function For All Movieclips?

Feb 7, 2010

I am creating an interactive map which is attached, what I want when you hover over any movieclip the alpha decreases and when you mouse off it goes back to 100% aplha. I can certainly do this, but I only know how to do it by referencing each movieclip first! For example:

[Code].....

View 6 Replies

Professional :: Calling External As Classes?

Apr 2, 2010

If I have an external .as file that contains a function within a public class, how do I call it?I have succesfully used examples, but don't understand the way they are addressed, and get errors when I try to create my own.So if my .as file named external.as contains a public class named exampleClass, which contains a function named doThis(), is it called in CS4 using..

exampleClass.doThis();
or external.doThis();
If it's just exampleClass.doThis(); - how does Flash know where to look for it without

[code].....

View 1 Replies

Professional :: Calling MovieClips With If-else Condition

Jul 28, 2011

I've a problem with calling the movieclip from the library with the if else case.If I take out the if else condition, the code runs normally but when I do I can't. I tried numerous attempts to fix the code but it still failed.What I wanted to do is, when I click one button out of 3 buttons at the 1st frame, it will pass the string (either red, blue or orange) to answer textbox. Then I store the string into a var called tarotno to go through a if else condition to call the MovieClip according to the string passed.[code]

View 1 Replies

Professional :: Calling JavaScript From A Swf In Wordpress

Mar 10, 2012

Just started using wordpress for my site after years of standard HTML and hit a problemwith an old Flash file I've usedfor 10 years.So I have a flash 6 swf file living in my media directory at URL...and the swf file wants to call a JavaScript function on my HTML page living at URL...Now on my old non-wordpress web site I just put the html and swf file in the same directory and this call always worked javascript:top.fSendForm()But now the swf file is in another location I don't know how to reference my JavaScript function.

View 5 Replies

Flash :: Professional - Calling A Javascript Function

Jan 20, 2010

I'm trying to call a javascript function from within my swf and I'm having a couple of problems which are confussing me somewhat. I'm using this to call the function from flash:
ExternalInterface.call("pgcover"); I know that this is calling the function as I have set it trigger an alert action and this comes up properly. But I don't want the function to trigger an alert, this is just for testing purposes. I instead want it to change the styling on a div. I have set up a test page where I have asigned the function to a button and this works, the div display changes from block to none. When I get the swf to call the function setup to do the same thing, nothing happens.

[Code]...

View 4 Replies

Professional :: Calling Swf File From External Server?

Mar 11, 2010

I am working on a Vignette platform that doesn't support XML, so was told to place my swf file on an external server andcall it from that server in the html code. I have never done this before and need detailed instructions on how to get this executed

View 6 Replies

Professional :: Calling A Javascript Function From Flash?

May 5, 2010

I have what I think is an easy question but I am having problems with it... Using AS2 / CS3, I am calling a javascript function from Flash, but i would like the value to be a variable and I cant figure out how to do it. the started code is below and I need direction on how to make "myVar" actually a variable.
 
var myVar = newValue_txt.text;
btnOne.onRelease = function() {     getURL("javascript:testFunction('myVar') ");
}
  
this is a stripped down version of what i am trying to do, but i think it gets the main point across.

View 3 Replies

Professional :: Calling Functions Within SWFs In TileList?

Jul 14, 2010

I've used the code below to load swfs into my tileList and set their colors using setData() within each swf. Everything seems to work except "source:e.currentTarget.content". The swfs seem to be mixed up randomly each time it runs. Their colors are set correctly and all the other tilelist info is correct. What have I done wrong with "source:e.currentTarget.content"? I can swap "source:e.currentTarget.content" with "source:myXMLList[loadPosition].source" which gives me the correct swf but then the colors aren't set.

for(var f:int = 0; f<myXMLList.length(); f++){
var ldr:Loader = new Loader();
ldr.contentLoaderInfo.addEventListener(Event.COMPLETE, function(e:Event):void{
Object(e.currentTarget.content).setData(myXMLList[loadPosition].param eter[0], myXMLList[loadPosition].parameter[1]);
[Code] .....

View 4 Replies

Professional :: Calling Strings In 3-dimensional Array?

Feb 17, 2012

Here's the bare bones of what's causing me a problem:

var txt:Array = [mtxt];[code]........

View 2 Replies

Professional :: Unable To Use Links When Calling Swf From Subdomain / CNAME?

Feb 16, 2010

I have a problem with a flash header - the links in it does not work unless they point to another domain other than the one that it's hosted at. I suspect that its got to do with domains but I'm not sure and that's why I'm here The flash (a header for a blog) is located at [URL], but the blog using it is located at blog.hotsailsmaui.com. The subdomain is located at another IP-range, namely Googles [URL].No links in the Flash-header pointing at pages at [URL] work, but all links pointing at other domains work. The Flash-header works as it shuld at [URL] but not at the blog.

View 4 Replies

Professional :: Calling Function From Html Tag In Dynamic Textfield

Oct 28, 2010

I have a sprite menu which populates a dynamic textfield  with textlabels as users click individual items in the menu in addition to ordinary actions(gotoAndStop). As these labels appear in the textfield, I want to be able to link them to the frames assosciated with the menu - item frames. As you can understand from this, I am working with the timeline. By enabling  html rendering of text in the textfield, I have been able to link these output labels via a  a href - tag, but I am not able to call a function from this html. The function I am trying to call uses a switch statement to take the appropriate actions according to which label is being clicked, but the only effect I get is the html opening a browser window...... Unfortunately I do not know how to explain this any better, but here is my code for the following:

[Code]....

View 2 Replies

Flex :: StackOverflow Errors When Calling Publish After Calling Close

Mar 2, 2010

I'm getting stack overflow errors when I'm trying to publish() a NetStream after close()ing it. Pasted below is the error stack:[code]

View 1 Replies

Professional :: How To Add A Delay Between Code

Jan 24, 2010

I need to add delays between the following lines of code.

speed=speed*.98;
//Delay here
speed=speed*.50;

[code]....

View 1 Replies

Professional :: Unload / Remove A Code?

Jan 17, 2010

Is it possible to unload, or remove a code in an action layer after it has been loaded and run in a timeline.

What I'm trying to accomplish is twofold, one, I'm trying to reload a code on a particular frame like it is on frame one, without playing the entire swf from frame one, and two I would like to possibly be able to change a mouse event on the same button from one thing to another along a timeline, which would require the initial function be removed so it does not conflict/error with the other event.

View 5 Replies

Professional :: Code Not Entering Functions

Jan 27, 2010

I have the following code in the first frame of the only layer of the timeline, and nothing else in the layer:[code]

View 7 Replies

Professional :: Missing Letters At The End Of A Code

Mar 4, 2010

I'm starting using the CS4 version of flash, and in my codes, every word is "missing" the last letter. It's not really missing, we just can't see it, or see only half of it. Did it ever happen to you? If so, how can I fix this?

View 4 Replies

Professional :: Embedding Fonts 100% With Code

Apr 2, 2010

I found this code for embedding fonts 100% with code - bypassing the CS4 library, but I'm not understanding how I call it.If, for example, I put it in an external as file called globals, do I call the function lie this: globals.Test()?It's the "extends MovieClip" part that's confusing me.[code]

View 1 Replies

Professional :: How To Embed Fonts Using Code

Apr 2, 2010

Just wondering how to embed fonts using code, and not the library - the examples I have used are giving me errors, so I'm obviously not understanding something.I originally set up a library font, and got it to work fine using the following code, but ideally I'd like to embed using just code.I set up and populate a dynamic text field (JX)g1.textParamFunc(JX);[code]So how would I use the following code to replace the library font?Is there a way to take part of the code, and place it in the g1 package above?  Or do I have to create a separate external as for it, and somehow call it into the g1 as?[code]

View 5 Replies

Professional :: How To Code Transitions Between Pages

Apr 20, 2010

how to code transitions between pages.  specifically, i want an animation to play when you arrive at a page and the same animation to play in reverse when you leave the page.my website is built in flash cs3 using as3.  the buttons are coded using simple eventListeners jumping between keyframes on a single timeline using gotoandPlay actions.

View 6 Replies

Professional :: Code Hinting For All Classes?

May 31, 2010

I used flash cs5 trial. I don't see fl.controls or button, datagrid, combobox .v.v in show code hint.

View 2 Replies

Professional :: Best Way To Tween Alpha In Code?

Jun 2, 2010

I have a complex window I'm designing in code. It starts as a button-like thing and once clicked, expands out to a window with text, links, and other misc. stuff. I'm designing it with all the objects to start inside the custom object (extending a MovieClip) and use tweening to expand it all out. The expansion works fine, although it's admittedly ugly..I'm running into an issue when alphaing from nothing (the button is placed over text, completely alpha'ed out to start) to 1.0. It will only start to alpha in if I have the alpha start at greater than 0, even then, when it reaches 1.0, it is NOT full alpha as it should be. Here's what I'm doing, trying to keep what I suspect to be unrelated code out:[code]the alpha of the bg (a shape) is originally set to 0, this code gives me no alpha, if I start it at 0.1, then it gives me some ...what looks like 0.3 at the most

View 5 Replies

Professional :: All Code Needed For Embedded Swf?

Jun 20, 2010

When embedding an swf (which plays external FLVs), you have quite a bit of code generated for the HTML embed.

<script language="javascript"> if (AC_FL_RunContent == 0) { alert("This page requires AC_RunActiveContent.js.");  AC_FL_RunContent(  'codebase',

[code].....

View 7 Replies

Professional :: Asp Code Form To Flash

Jul 19, 2010

I have an asp form code, that i need to recriate in flash.knowing that the languiage has a few differences (I am unfortunatly not a coder), is there any trasnlator i can use? can enyone give me a hand trasnlating the code bellow to flash code?[code]

View 5 Replies

Professional :: How To Code A Drag & Pan Feature

Aug 12, 2010

I'm making a map with Adobe Flash Professional CS5, using Actionscript 1 & 2, and I'm trying to add the ability to drag and pan while zoomed in. For the zooming, I put a button in either corner: a zoom out icon, and a zoom in icon. For the zoom-in icon, I used the code on (rollOver){ setProperty ("BG", _xscale, "200"); setProperty ("BG", _yscale, "200");} (BG being the name of the instance used for the background of the map, which is a movie clip.) Now, this zooms me in well to one corner, but then i want to be able to drag and pan to be able to see more of the map. I've found some good examples, but the code is way over my newbie head, and I can't get any examples of code I find to work, no matter what I've tried.

View 20 Replies

Professional :: Editing Code In Flash

Sep 9, 2010

Got cs4 now and i cant find a preference for editing.My problem is that when i put my cursor at the start of a line I want it to stay there when I move my cursor up and down through code.Now it jumps forward and back with the code.. thats anoying.

View 2 Replies

Professional :: Finding A Snippet Of Code?

Oct 7, 2010

I am trying to find a snippet of code for my website.I am building a  website using Serif Webplus X4. I am also creating 2-4 animation shorts to play as an introduction to the website that I created with Toom Boom Studio 5. I would like to have one of them randomly play at the beginning of the website so that every time someone logs on to our website, a different one plays. My question is that someone said that if I go to Adobe that I could get a snippet of code to make these 2-4 animation shorts play randomly.

View 3 Replies







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