ActionScript 3.0 :: SWF Won't Go To Frame When Online
Apr 23, 2009
I've been tinkering with flashvars for the past two days, and have finally gotten my simple variable ('marker') to pass from the html to the swf. I have one swf that is loaded into each page of my website, but at different frames depending on the page. The value of the variable is simply the frame label I want the swf to go to. here's my code:
Code:
var paramObj:Object=this.loaderInfo.parameters.marker;
var marker=String(paramObj);
var tf:TextField = new TextField();
[Code]....
the text field was just a way for me to test that the vars were being passed, which they are. The strange thing now is that the movie won't go to the proper frames when I test the site from Dreamweaver. The index page works fine - I have the swf starting from the first frame of the movie, but when I try to get to the frames 'film_stop' for the films page or 'collective_stop' for the collective page - passing those through flashvars - the swf just goes to the first frame in the timeline with a stop() action, which I just find to be weird. As a test, I even wrote " marker='film_stop'; gotoAndPlay (marker) " at the end of the code and tested it in Flash - it went to the proper frame, but when I published the same movie and tried testing the site through Dreamweaver, it again went to the first frame with a stop() action.
View 1 Replies
Similar Posts:
Nov 18, 2009
I am making a flash site where one of my pages loads an external swf. In this external swf I have sub pages with links. My problem is when I visit a page from this external swf, and then go to a page from my main website (clicking my main time line buttons) and then go back to the page with the external swf i was previously on, the page would go to the last page i was on, instead of refreshing it back to the main frame of the external swf.
I made a small, simple example of what I am experiencing on the site I'm working on.
[Code]...
View 2 Replies
Nov 21, 2007
I have my flash on multiple scenes, and would like to play an animation when clicking on the navigation button before switching to a different scene.
I'm halfway to accomplishing this.
Here is what i used
Code:
_root.gotoAndPlay("changepage1");
_root.onEnterFrame=function(){
if(this._currentframe=="changepage2"){
[Code]....
The above code is on a blank keyframe. Changepage1 is the start of the animation and Changepage2 is the end of the animation.
Upon clicking the navigation button it plays the above scenes.
However it doesn't change scenes to scene "Home2".
View 1 Replies
Mar 4, 2009
What command do I enter for the movie to rewind to first frame on entering a certain frame / stopping in a frame?It's my first time using Flash, and I'm working on a double menu (second menu has a "close" button, where I want to get back to the first menu).
View 5 Replies
Jan 24, 2011
I imported my SWF unto dreamweaver and previewed it on browser and it works perfectly fine, I then uploaded on server but it is not showing online, I have flash player 10, and have checked to see if all the files are placed in correct root folder. I tried saving SWF under a new name, and a few oher things but it is not working!!!! Been racking my brains for 2weeks....
Here is the site page. [URL]
View 1 Replies
Aug 28, 2009
I worked on this flash site and imported it in Dreamweaver to publish online. When I test the movie in Flash and in Dreamweaver evrything looks to work just fine, but when I upload the .swif and the .html files the video on the home page does not work!
[URL]
View 3 Replies
Jul 13, 2006
i have a movieclip on stage. it has 3 frames but is stopped with "stop():" so it only shows the first frame on mousedown i want it to play frame 2 for a duration of 1 frame then frame 3.
View 3 Replies
Mar 13, 2011
I hope I can ask this correctly. I'll paraphrase.
press_mc.onRelease = function(){
mover2_mc.play()};
This is a snippet of some code I'm working on. Currently I have a mc that you press that plays another mc. That mc that reacts has 5 frames, each frame with stop(); on each frame. I do a normal play code because it lets me play through and cycle back to frame 1 after frame 5 (so if I click the mc it eventually cycles back to the first frame and starts the process over again). If I do a nextframe it stops at frame 5, so that's why I use play.
press_mc click on it and it tells mover2_mc to advance a frame and recycles back to frame one to redo the process.Can I tell press_mc to play and skip a frame or to have it play a list of frames that I tell? I can't do a _currentframe +2 because it'll halt at frame 5.
View 6 Replies
Mar 15, 2010
I'm trying to make a simple Flash application to be placed on a web site. It is intended to take data from an .xml file and display it in the Flash movie. There are a number of buttons that display different nodes of the .xml file when clicked. (Not all the buttons are functional yet in this code; I know that.)It runs just fine in Flash. It even runs fine when I publish it and then run it by clicking on the html file on my computer.When I upload the html and swf files to my server, the html file works fine (gives me a solid colored background) but the swf is just a white box, nothing in it and no functionality.Something needs to be declared, imported or linked, I think, but I do not know what or how to do it. (Most irritating is the fact that the code is substantially taken from an online tutorial, with nary a word about this issue.)
ar chineseSentence:Array=new Array();
[many other Array vars deleted for space]
var loader:URLLoader = new URLLoader();
[code]......
View 7 Replies
Apr 5, 2010
For some reason when my swf is published online the elements show up pixelated but when its local it looks fine. the object is set to high quality in the html.[url]...
View 1 Replies
Jun 13, 2010
how would one go about getting a flash website online?
View 3 Replies
Jun 22, 2011
I'm having Trouble seeing files once they go online. Everything was just fine yesterday. But now whenever I export a file and upload it, it can't be viewed. They run just fine on my machine but when uploaded I get the "need newer version of Flash" message. And when I try to just load the swf it comes up blank. My older SWFs still work great, just the ones I exported today that are having problems.
View 5 Replies
Oct 13, 2011
My friend wants to be able to update the sites text himself. Is there a way he can easily edit the basic text online without having to use Adobe Flash (it would be even better if he could add photos as-well). I was thinking I could get flash to read an XML file but I don�t know how he could easily edit that as heis not techie at all.
View 1 Replies
Jul 5, 2009
I need an easy way to let my customer edit txt content on the web..
View 5 Replies
Sep 18, 2009
In The Flash Application, my gallery is working as it is meant to. Yet, when I upload the swf to the live site, the first image, text and movie of my gallery works but it refuses to scroll to the next item in my XML.
I have given it an absolute path to that server which works in Flash but not when it is online.
View 2 Replies
Nov 9, 2009
I have an FLV file but need to generate an SWF to then upload onto the internet (with a play/stop bar)
I have no idea how to do this. Is there a step by step I can access or can someone point me tell me where and what to do!!!! I have CS4
I understand that I need to have all the files in the same folder and then link them all in. I will be uploading onto the website (back of house html) is there a basic code that i can modify that will suit my needs?
View 5 Replies
Nov 12, 2009
How can I convert the pdf to swf ? I have to display it in my page.Is it possible to convert online pdf to swf dynamically?
View 4 Replies
May 27, 2010
Example: If my SWF has a simple 2D charactor sprite, which moves around on a 2d background... What will I need to make it so that a player has to create an account and sign in, and then others can do the same and they can all see each other in the room. I have been unable to find resources on what it takes to turn a flash game into a chatroom or an "MMO".
View 3 Replies
May 13, 2011
I am working on the offline cd runs projector.exe using actionscript 2.0.I need to use online search feature in my glossary.Is it possible to browse internet within flash projector.exe. I dont want to open any internet explorer or firefox window.
View 7 Replies
Jun 16, 2009
I need to be able to find the current time from an online source rather than the system to make sure the time is correct. I need to do this in actionscript, preferably 2 rather than
View 2 Replies
Nov 29, 2010
I'm building a website application in PHP that requires a signature from the end user. For this part of the website it will be exclusively viewed on Windows based tablets. So, my question is this: What's the best way to capture a signature online? I've looked at flash or HTML5 canvas/excanvas, but I am seeking a more experienced answer.
View 2 Replies
Jan 28, 2011
I am wondering what processes involves converting files online...What programming languages are required?Basically I am wondering how are the files on scribd,issu,slideshare converted...
View 1 Replies
Jun 13, 2011
Actually I donot have flash in my computer.So I want to see the swf of an fla file that is in my desktop. can we do this online?
View 1 Replies
Sep 15, 2009
I've made a flash site and everything seems fine when I test it in flash and publish and run from my computer.However, when I upload it to my domain the external loader won't load my homepage initially. And I believe I've got a piece of script to tell it to do so.If you open up another page and return to the homepage it works fine.P.S I do have a preloader page prior to my homepageThe external loader script is:
ActionScript Code:
//------------Initialisation-----------\
var currentPage = ("home_btn")
[code].....
View 0 Replies
Sep 18, 2009
In The Flash Application, my gallery is working as it is meant to. Yet, when I upload the swf to the live site, the first image, text and movie of my gallery works but it refuses to scroll to the next item in my XML.I have given it an absolute path to that server which works in Flash but not when it is online.
View 1 Replies
Jan 2, 2011
I couldn't find any documentation or license information or copyright stuff regarding this texture. my question is whether i'm allowed to use this (and modify it) in my project and/or what i have to/can do. the person who wrote the "tutorial" is a PhD professor at some university, so i didn't want to contact her but rather ask here first.
View 4 Replies
Jun 25, 2004
Is there anyway to detect if im online through actionscript.
so i can have a little movieclip on my site saying if im online or not
View 4 Replies
Sep 3, 2004
How to import .eps in a online swf file ??? -- never mind how complicated, server-side-scripting overloaded or whatever -
View 11 Replies
Nov 22, 2006
I have a page that is loading external variables / images into the swf flash file, then comes to a stop on the last frame.
I need to print this exactly how it is on your screen on that last frame, with all the external images that have been preloaded etc etc. Exactly how you see it.
View 1 Replies
May 2, 2008
I have this FLV file that I am trying to get to play online. I have the HTML page along with the skin.swf and page.swf all in the same file on the server and it all seems to work fine. The only problem is that I have to use a different folder/directory for the flv and the swf's. So what I end up having is src="../thisfolder/thatfolder/file.swf", I've also tried using the absolute address and am having no luck.
Again, I unfortunately don't have access to the folder that the main pages of the site reside. Otherwise I would just put them in that folder and be done with this.
View 4 Replies