Accessing A Location In One SWF From Another SWF?
Jul 11, 2009
I have a series of swfs that I've connected via loadmovie. This works well with I press the NEXT button, but not the PREVIOUS button. The PREVIOUS button starts at the beginning of the called movie. I need it to start at a specific location. Is that doable? If yes, how? I tried adding the gotoandplay after the call to the swf, but no luck.
View 2 Replies
Similar Posts:
Apr 27, 2009
I am trying to make an object tween from its starting location to the location of a mouse click. I have a script, but it has a very annoying ease to it.I would LIKE the object to mantain a certain speed during while traveling from its starting location to the mouse click location.
View 16 Replies
Aug 21, 2011
I created a simple button that displays an error messeage: "error opening 'url" when I test the movie, but does play and opens in browser after publishing. However, it won't open in the browser in a different location. I pasted the html code in a web page but it doesn't work there nor opens in the browser in a differnet location from where it was originally published and saved. Why is that?
View 13 Replies
Feb 16, 2005
How can I move my MC from one location (x, y) to another location (x1, y1) wirh action script..?.. and I would like to have my motion tween rounded to (x,y) so it will look sharp.
View 8 Replies
Oct 28, 2010
is it possible to show my Town (find by IP) / Town of my Provider in Flash File?
View 2 Replies
Sep 12, 2004
How do you change this code so that it works when the swf timeline its on, is loaded into a movieclip on a main swf stage (_root.loadarea)It works fine on its own but dont when loaded into the loadarea mc.
Code:
var format = new TextField.StyleSheet();
var path = "http://www.kirupa.com/developer/mx2004/code/flash.css";
var quick = "<br><p class='one'>The quick Kirupa jumps over the lazy dog.</p>[code]..........
View 2 Replies
Mar 26, 2009
I have a flash file that calls a XML file to give it commands, such as color etc...
I want to change the name of the XML file, but am not sure how to change it in flash so that the SWF knows where to find the XML.
View 2 Replies
Jun 15, 2010
I have been working with xml sheets to load a menu and in order to load a submenu or to go to a submenu of a submenu, I was wondering if it is possible to load a variable location for an xml.
For example, if I had the variable xmllocation which was a string that said where in an xml a certain menu was, is it possible to use the xmllocation variable for something like this:
( if xml.xmllocation.length() > 0 ) do something;
whenever I tried messing around with it, it would actually go to look for "xmllocation" in the xml instead of check what the string is. So what I guess I am really asking is, is there a way to tell it not to be so literal?
View 2 Replies
Jun 9, 2009
I know the basics of tweening with action script but I have a picture set in the center of the stage at x = 50. On a click I would like that picture move - 10 x from that position so it will end the tween at 40. On a different button I would like to do the oppositie, + 10 x to its current position so if it was at 40 it would be back to the start and if it was at the start it would be at 60.
View 10 Replies
May 4, 2010
Is there any tutorials out there that would show me how to access the iPhones GPS location?
View 1 Replies
Nov 19, 2010
How can I get the application itself full path in actionscript?
View 3 Replies
Jan 20, 2012
I'm building a small web app in Flash. Is there a solution to get the geo-location of a user?
View 1 Replies
Oct 28, 2009
I am having a problem with finding the current URL displayed in the browser.
I have tried..
1. this.loaderInfo.loaderURL.toString()
2. var local:LocalConnection = new LocalConnection();
local.domain
Above two methods returns url of swf location but my requirement is bit different
Finally I have used. ExternalInterface.call('window.location.href.toStr ing');
but ExternalInterface.call('window.location.href.toStr ing'); will not work where JavaScript is disabled hence I would like to know if there are any possible way or hack to do this.
View 4 Replies
Nov 4, 2009
I am trying to duplicate a movie clip several times (to create a wallpaper from a background tile). However I'm running all code from the first frame of the file on the _root level, but the MC I am targeting is nested deeper. I'm sure I'm missing something obvious but I just cannot get the duplicated MCs to stay at the same location is the MC I am cloning!
The clip I want to clone is _root.core.bg.tile I want the duplicates to reside in _root.core.bg with names such as...
_root.core.bg.tile_2
_root.core.bg.tile_3 etc
Here's my code:
ActionScript Code:
function preloader()
{
loadImage(global_path + "assets/images/website/construct/wood-texture.png",
[Code].....
View 2 Replies
Oct 24, 2010
I posted this question a few days ago but didn't get a response, so I think perhaps I put it in too specific a context. I thought I'd try again and couch the question in more general terms this time. Unfortunately I can't move on with my work until I get this issue solved!
What I need to do is find a way to see if there is a MovieClip at a particular spot. So, say I have a random point and a bunch of random MovieClips. At this random point, there may be any of the MovieClips or there may not. I won't know what these are in advance. I need the ActionScript to tell me if there is ANY MovieClip at this random spot - and, if there is, what MovieClip it is.
View 3 Replies
Nov 17, 2006
I have most of the basics down in actionscripting. I want to learn a little bit more on if else statements. I have an issue right now that I am pretty sure needs to use the if else statement.
What I have is an FLV playing in a browser. When that FLV is done playing, I want it to getURL to a different location. So basically when the FLV is done it goes to the next HTML page.
I attempted and got this far :
[AS]
var nc:NetConnection = new NetConnection();
nc.connect(null);
var ns:NetStream = new NetStream(nc);
[Code].....
View 2 Replies
Mar 3, 2009
I need to use a variable name in a location, for example:
aS_mc.aScreen_mc.aScroller_mc.a1.gotoAndStop(_global.aPicture);
The a1 is what I want to change, I've got a global variable that changes to a1, a2, a3, etc, on another function The global variable I'm using is _global.aChoice
So, I've been looking around, and the only thing I found that I thought my work is
aS_mc.aScreen_mc.aScroller_mc._global[a1].gotoAndStop(_global.aPicture);
But this didn't work either
View 2 Replies
Feb 8, 2010
I want to create a map with functions similar to google maps where I can have a slider on the side to zoom in and out of the map, I am a little confused on how I am gonna do this slider :S ... anyone have or tutorials I can take a look at. I used to be a flash developer but havn't done anything in flash for over 2 years.
View 1 Replies
Oct 16, 2004
i have a button that opens a pop up window centered on the screen.What actionscript do i need to add if i want the pop up wndow to be say 100 pixels higher than te center of the screen?also, is there anyway to make the pop up borderless and add another button to close it---i'm going for a streamlined look and don't want all the "windows stuff---i already turned off the slider bar,code]
View 5 Replies
Feb 12, 2009
Is there a way in as3 to trace out the swf file's location. I.E. if the swf is located at C:/documents and settings/Desktop/folder1 How do I get the swf to return that path?
View 1 Replies
Mar 9, 2009
Is there a way to know the user's location(country)? I know I can use a php script to get user's ip address but not sure about user's location.
View 2 Replies
Mar 19, 2009
I had the core of my site down for me, I believe in Flash 8 using AS2. I took over the site and attempted to learn everything that they did, so I could update it myself. The one thing that I can't figure out... is where they put the customized scrollbars they made for my site. There are some scrollPane components in the library, but I can't see where he put the custom scrollbars. The homepage link is here:The blue scrollbars are what I'm trying to find. When I add more content I want to be able to use the same scrollbars. If you need the FLA, I'll send it to you. I am pretty sure there is some default location that they're stored in though, and I'm just not seeing it
View 10 Replies
Oct 14, 2009
I downloaded a tutorial fla file and it contains 2 images of cars which seem to be under a folder called "bitmap assets" seen in the library panel. Now, since i have not created them, is there a way for me to somehow access them directly?
View 2 Replies
May 3, 2006
I installed the update to Flash 8 that allows for remotedebugging, and I had it all set up and working over the past weekor two. But, all of a sudden it's not working for me anymore.I wasable to access it by right clicking my movie from within thebrowser and selecting "Debugger", but for some reason the optionisn't available anymore. I've rechecked my settings according tothe livedocs, and ensured the swd file is in the same dir as theswf, but no dice.
View 2 Replies
Jan 23, 2009
I am working on a site which uses a flash menu I was handed. The flash menu uses an xml file to generate, it works fine as long as one stays at the top-level dir of the site, say [URL]. When someone enters a page, say [URL] the menu stops working, being unable to read the xml which is hardcoded to be in the same directory as the page it's called from (menu.xml is in /).
I must say that the locations visible to the browser are not real, everything non-top level in [URL] is just mod-rewrite, thus none of the directories test or page really exist. I can see the reason why flash looks in the same directory as the one the client requested for the file (instead of looking at the same dir locally in example).
So the two solutions I thought of:
1. Is there a file_exists function i could use to make the flash recurse upper-level directories until the menu finds the xml file? as in:
var menufile = menu.xml
while (!file_exists(menu.xml)) {
menufile = '../' + menufile
}
Obviously this is not real code
2. Is there a way to open the xml from a web location and not from a static path relative to the swf itself?
View 1 Replies
Jul 21, 2009
I need an actionscript that moves 1 dot to random location. This dot is over 200 frames, would I have to put an action on every one of those frames...and note that I said Move not jump to another place.
View 1 Replies
Dec 4, 2009
I have created an swf that manages to get all urls assigned to the buttons. When I publish the file I set the global security to allow that file to work and all links work. My question is when I transferred the html and swf to a new pc none of the buttons worked I was not even given an option to update global security settings by adding a new location. If I was to load this swf to an ftp media server is that the location I need to allow and can I only do this from the original PC where the file was created as transferring it seemed to make the buttons not do anything.
View 14 Replies
Dec 26, 2009
So far from a previous post i created a MC that goes to a targeted location with this AS:
import mx.transitions.Tween;
this.onMouseDown = function() { t1 = new Tween(mc, "_x", mx.transitions.easing.None.easeNone, mc._x, this._xmouse, 1, true); t2 = new Tween(mc, "_y", mx.transitions.easing.None.easeNone,
[code].....
View 3 Replies
Jun 6, 2010
I have this code for laoding an external SWF :
var holder:Loader = new Loader() holder.load(new URLRequest("animation.swf")) addChild(holder)
However, It loads this animation on the upper left corner. But I need to load it on a specific location, for example 120 px to the right and 70 px from up...
Another thing I need to do, is to load this movie "animation.swf" on a "deeper" layer, because I am creating a border that has to be over the animation... how do I do these two things ?
View 1 Replies
Aug 2, 2010
Do you know why the VideoDisplay.seek() would always go to the same frame at 1 second, no matter whether it is asked to seek forward or backward? This happens to some MP4 and other others. Is there some functions or variables I need to set?The MP4s that don't work with VideoDisplay.seek(), can be seeked using Quicktime.
View 5 Replies