ActionScript 2.0 :: MX04 Geturl Not Changing In Xml Code
Jul 12, 2009
I have spent hours on this and it must be something simple I have missed. I ma trying to populate movie clips with xml data all is working well except the geturl bit at the end which does put a url in but just the url of the last xml code (link) loaded. I think I am just overiding my currentThumb_mc.link variable every time but am a little out of my depth.
[Code]....
View 2 Replies
Similar Posts:
Apr 30, 2009
I am customising a Template Monster template that has a flash menu.When I changed the getURL code (using AS2) of my flash menu buttons they work for an external URL but do nothing in my site. EG.THIS WORKSgetURL("index.html");THIS DOESNTI have everything in the same root folder and the animated menu bar works perfectly in-situ, just wont go from page to page.
View 2 Replies
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
Jul 27, 2009
I have a pre built flash navigation menu. I am trying to add a getURL code to the buttons. The code looks like this:
function butnClick(event:MouseEvent):void {
if (event.target.num == 0) { // For the 1st button:
// Add your button click actions here[code]............
Im getting syntax errors and I know its wrong but thats the only way I know how to write it so far.
View 5 Replies
Jun 13, 2006
all I want to do is add a variable to a getURL line of code.EG:getURL("/index.asp", "_self");I need to add a variable (_root.myvariable) to the end of the link so that it goes to:index.asp?myvar=thevalueofmyvariable
View 3 Replies
Nov 19, 2009
I'm currently trying to use a TextFormat object to change the font in some of my TextfFields but don't seem to be getting anywhere, the font always remains the same.[code]...
View 5 Replies
Apr 21, 2011
For the first stage, I was able to build a walk-through demo in flash pro by creating buttons that when clicked caused the flash to change to different frames. easy enough. Now for the final part of this project, I need to make the interface fully interactive, as I was trying before. ie: you can click any button and lights go on and off or a loop counter increments, etc. Since there is logic involved and too many permutations to do a frame for each possible state, I'm back to trying to do this in an object oriented way. I've got some test code here.
<fx:Script>
<![CDATA[
protected function button1_clickHandler(event:MouseEvent):void
{
[code]....
debugger has some errors, so i don't know what exactly it will do. the errors are at the last two if statements where i'm trying to change the object property setting of the label. there is another error at the last curly bracket.
the idea is that there are two labels and a button. the first label starts out visible. when the button is clicked, a counter is checked, and incremented, then the counter is again checked and the appropriate label has it's visible property set to true. the intent is that in a list of several labels, pressing the button scrolls down them, until you press while on the last, which resets the counter and the first label becomes the visible one.
View 3 Replies
Feb 18, 2010
I've created an array from XML elements.I have my index saved in the var i
Code:
mc.index = i;
Now the problem I'm facing is dynamically changing a section of code.I had to hardcode like this for now.
Code:
mc.onPress=function(){
if (this.index==0){
point0.frame._visible=true;
[code]....
View 6 Replies
Sep 8, 2009
I have some AS code that allows you to click on a button and will display a numerical result inside another button, currently in English. I am looking into converting this to Japasese. Does the entire AS code need to be in Japanese or just the numbers.
[Code]...
View 2 Replies
Jun 2, 2009
I have a scrollbar that I grabbed off a resources site. (code below)I want it so that whenever I put the cursor on the scollbar to move it that the graphical information under the scrollbar comes on (either reveal or opacity to 100%). At the moment the little thumbnails under the scrollbar are on all the time and area bit of a distraction (they are meant to assist in the use of the scrollbar by minimising searching behaviour).[code]
View 12 Replies
Jun 2, 2009
I'm not a real actionscipt person as I usually only code simple buttons and the like. I have a scrollbar that I grabbed off a resources site. (code below) I want it so that whenever I put the cursor on the scollbar to move it that the graphical information under the scrollbar comes on (either reveal or opacity to 100%). At the moment the little thumbnails under the scrollbar are on all the time and area bit of a distraction (they are meant to assist in the use of the scrollbar by minimising searching behaviour).
[Code]...
View 1 Replies
Apr 20, 2009
I am not exactly new to Flash in that I can do several things with it. However, I am not anywhere near expert status. I am working on an interactive map of a college campus for my employer. I am employing buttons that, when moused over, display a large image of each campus building. The question is this: is there a way to also have maybe an actionscript that would center that image automatically?
In other words, if the building I want to show is on the right hand side of an internet explorer window and I mouse over it, is there a way to have the map auto scroll the window to center the image that pops up on mouse over?
View 1 Replies
Sep 19, 2009
Can images be stored in some sort of array and then called to the stage ramdomly?
View 1 Replies
Jul 22, 2010
I have been asked to loop an existing FLV file that someone else created. I do not know what version of Flash was used to create this file, however I do have an older version 7.2 Flash MX Pro. Currently the FLV starts automatically and stops and the end of the movie. The owner of the site would like the movie to start over with a continuous loop. I'm pretty much of a rookie with Flash and with HTML5 coming out soon, I don't think I'll get a chance to become a pro at this.
View 5 Replies
Mar 25, 2009
How come every time I run this script:[code]Where does the Undefined come into things? I have only asked the script to fire 3 times so the first time through the text in position [0] in the script Carp should be printed out?
View 2 Replies
May 1, 2009
basically what im trying to do is have a basic countup timer that goes in intervals of three. (3,6,9,12,15,ETC.) but it has to run with a 12 fps and not stop. also this cannot be 1000 frames long .
View 12 Replies
May 4, 2009
Im trying to make a preloader. this is my first attempt and from a tutorial and some minor adjustments on my part this is what ive come up with. i was wondering if there was a way to add a percent, and also why this doesnt disapear after its done loading. it remains on the stage throughout the loaded swf.
PHP Code:
siteLoader.loadMovie("Population.swf");
loadingBar._xscale = 1;
loadingBar.onEnterFrame = function() {
[code]....
View 14 Replies
Sep 30, 2009
my flash tutor is on vacation and I need to work on a project. How do I move an action from from 246 to 271?? I've tried Copy/Paste and it's not working.
View 1 Replies
Jan 16, 2010
I've put a blur effect on the hit state of a button, but the script for the button is On Release Go to and Play the scene I wan't it to skip to. So as soon as the button is clicked it does what it's told and the blur effect (16 frames long) doesn't get to play.
View 5 Replies
Mar 27, 2010
On to the problem: I have a very simple flash, basically just a photo slideshow. The issue I'm having is this: I have a bunch of photos on the timeline, but I have a button on top of everything, just to give viewers the option to skip that particular scene. The button works, but only when the video timeline has reached the very end of the scene. It won't work before the end of the scene. The button actionscript is the most basic of basic:
on (release) {
gotoAndPlay(scene1)
}
View 2 Replies
Feb 23, 2004
Anyone know a good tut on how to implement the JMEvents calendar component? It comes with MX04 but I am unable to find a tut at the moment (although as I type I am looking and trying to work through it). It can be either an xml, db, or hard coded example. Just need a little push.
View 1 Replies
Nov 4, 2004
I'm having a buch of pictures of different height and width, which have to be loaded into different movieclips, and resized to 'bout 100px * 100px (so they're all the same size ~> thumbnails)
The problem width xscale and yscale, is that you have to specify the amount the movieclip/image resizes, in percentages instead of in pixels.
is there ANY way you can resize a dynamically loaded JPEG to EXACTLY 100*100 pixels ?
Here's my code (which doesn't work):
Code:
movieMain.thumbsHolder.createEmptyMovieClip("afbeelding" + j, j);
imageHolder = movieMain.thumbsHolder["afbeelding" + j]; imageHolder.loadMovie(path);
imageHolder._y = j * 200;
imageHolder._height = 100;
imageHolder._width = 100;
View 4 Replies
May 28, 2005
ok I have 2 buttons, and they load external swfs into containers everything works fine but it seems like my gotoAndPlay("framelabel") isn't working...
here is the code for the buttons... incidentally they are inside a movieclip on the mainstage... everything else seems to work just fine... also I have my intro and out animations inside the external swfs. I've tried _root.contents_mc.gotoAndPlay("out"); I've tried _parent this._parent and _parent._parent and this.contents_mc.
both buttons will load the external swf but when I click on the other button it should play the out and then load the next swf and start playing the intro (which is the beinging of the external swfs timeline) ANY Ideas whats going on here?
[Code]...
View 5 Replies
Jul 14, 2005
That was supposed to be my first preloader dealing with an XML file and external jpgs ... searched the forum, found something that looked/sounded like it would work, tried to adapt it to my particular situation and ... (surprise!) ... it doesn't work. Let me add at this point that I'd consider myself a "very casual" ActionScripter (if there is such a thing), meaning that most of the time, I try to learn as I go along, without any *real* background knowledge. Here's my situation - methinks it's rather straightforward: SWF file (project.swf), XML file (config.xml) and a bunch of jpgs all in the same directory - nothing exotic so far. Here's the AS I (try to) use in my SWF file to load the xml and the imgs therein:
[Code]...
View 3 Replies
Feb 27, 2006
I'm having trouble trying to link a .swf using xml to open up an html link that is on the cd that a user will have in their drive when running the swf.home.swf > goes to CD drive> open up about.html
example of xml:
<linktype="sample" display="yes" ref="file:///d:/about.html">
View 5 Replies
Jul 22, 2006
[URL]
I want the clips to be displayed in, for example, 2 rows of 3 clips, 6 in total.
By modding the AS to
total = 6;
for (i=0; i<total; i++) {
t = _root.createEmptyMovieClip("xml"+i, i);
loadMovie("imgBack.jpg", "xml"+i);
[Code].....
I realise that the size of the jpg determines the point at which the second row is displayed so can I do it easily by determining that the third mc has been reached so start a new row?
View 3 Replies
Dec 29, 2006
I am doing up a photo gallery as a pet project using only actionscript. So far I have been successful in achieving the objectives that I want. However, moving forward, I intend to make the flash photo gallery easy to customise and want to add in a XML config file for flashh to reference.Here is where I am facing some problems. I managed to get Flash to read the XML data w/o a problem. The catch is how can I know when the XML file is loaded before I render the other movie objects (which require the settings in the config file)?
eg.
file_xml = new XML();
//Load XML file
XML.prototype.ignoreWhite = true;
//Parse the XML data
[code]....
Is there a way for Flash to listen to when I can start using the config values?
View 3 Replies
Jan 23, 2009
In my Flash, when you push a button, a symbol goes from having an alpha of 0 to an alpha of 100. When this symbol appears, I want it to begin animating on its first frame. However, I'm not quite sure how to do this. D: gotoAndPlay doesn't seem to be doin' the trick.
View 2 Replies
Jan 31, 2009
I've got an idea for a game I'm making that makes use of both mouse buttons, but the pesky right click menu always gets in the way. I've been doing some research, and I've heard tell of some "authorware" programs that disable the menu? I've also heard that disabling the right click menu voids some kind of warranty.
View 1 Replies
Feb 13, 2009
I make making a basic animation / game. Basically I need to have a movieclip named "ground" stay in the same position between scenes. It will be moving around and at certain moments, the movie goes to other scenes and it needs to place the ground at the x-postion where it was last at. So I had:
I set a variable (xpos) to be 0 earlier and then i have:
if(blah blah happens){
gotoAndStop(nextScene()){
_root.xpos = _root.ground._x;
}
and then in the next scene I have
_root.ground._x = _root.xpos;
But it only works randomly. Some time it will work for certain scenes and certain actions and other's it doesn't work.
View 1 Replies