ActionScript 3.0 :: Some Information On Change Pages?
Jan 13, 2010
I'm going to make a website and i wanna ask you this: When i change a page for example i go from home to portfolio what happens? A new swf is loaded into the website or is all manage in the same swf ?
I'm trying to create a photo gallery that allows you to use buttons to change the pages. I saw a tutorial for it at [URL]. I followed the turorial but it still isn't working.
This is my code: this.pathToPics = "Users/godfreyhibbert/Documents/animation/"; this.pArray = ["bike001 .jpg", "bike002.jpg", "bike003.jpg", "bike004.jpg", "bike005.jpg", "bike006.jpg", "bike007.jpg", "bike008.jpg", "bike009.jpg", "bike010.jpg", "bike011.jpg", "bike012.jpg", "bike013.jpg", "bike014.jpg", "bike015.jpg"]; [Code] .....
I am re-branding my web site and am seeking AS 3.0 Code to Randomly Change the FONT (from a predefined list of say 20 FONTS) for ALL THE TEXT on ALL THE PAGES.The FONT Change would ONLY need to happen ONCE on A NEW LOAD / VISIT of the site.
I need to create a static frame and a changing content... currently envisaged as frame containing the side panel and header and footer content.
The content panel will call mxml based on the content sought.
a) how is the frame paradigm- with static frame "containing" other content done. I dont want to repeat the header and footer logic in every 'content section' code?
b) how is the hyperlinking between content sections done- using 'states' seems convoluted
I'm a bit of a newbie, wondering how this scaling effect is possible. See www.sagmeister.com - when you scale your browser window, the entire site interactively shrinks or enlarges to fit. How is this done with Flash MX? Is it a publishing option or an actionscript or what?
I'm kinda noobish when it comes to getting information from XML information sent to my flash file from the socket server. OK so for example the server sends me this:
[Code]...
I want to get the name of the user and the X and Y position! Is there a way I can get this information without a load of fuss from functions and other junk remember im kinda noobish.
I want to build a program built around my pc specs. Is there a way to access such information as how much ram I have or how much cpu usage is being consumed, etc.?
Looking for a tutorial to make individual pages (jpg or gif) into swf pages so we can add links in an on-line flip book. I have flash, but have not learned as of yet.
I would like to know how to track my pages with google analytics to see which pages are getting the most clicks. My site is XML / Flash the menu is xml. Could I put the tracking code on each of the menu items in the xml file?
I'm trying out a page-flip program that tells me to create the pages as jpegs within a folder named "pages" in the Library. When I try to run it, it tells me it can't find the jpegs. I can get it to work locally by including the full URL (i.e., "...My Documentsedinnerpartiesimagesp3-large.jpg), but I know this isn't embedded in the swf file.
I have created a website with one flash animation banner.The banner .swf has 5 menus. Each menu goes to different movieclips inside the .swf file. and at the same time i want to load the corresponding html file when i click the menu button and place the html content into the bottom area of the main html page without refreshing the html page.
I purchased a flash template and replaced all of the information with ours. The problem that I'm having is that when customers fill out the contact form on the 'contact' page, it doesn't send their email to us (which is one of the fields).
The site is live at [URL]
I've attached a jpg that shows the movie clip I'm working in.
I have a simple html page witha flash button. Upon clicking on the button, I would like to retrieve certain information from the js in the html (a URL for example) and execute it from the flash button.
I know trace() function can print information,but I must use flex builder environment.If I don't use flex builder,the trace function can't make function.I want to know if there is a statement can replace of trace(),because sometimes I need print information for debug and I don't want to use flex builder too.
Does anyone know of a way to obtain information about the environment that a SWF is served into? Things like the URL of the page that is hosting the SWF?
So say there's the URL [URL] which has the movie flashmovie.swf embeded in it ... is there a way to get the URL from inside flashmovie.swf and cast it into a string datatype?
I've been picking apart the _global object by recursively un-hiding it and the objects it holds properties, but so far have not come up with anything that could prove useful.
Is there a way to dump out all the target info in as3? Basically I would like to know everything that is contained in my target like a var_dump or cfdump for as3. Something that would work like....
I've got an array, events, where I store objectdata, such asevents.id (String), events.action (String) and events.time (Number).In a for-loop, I want to go through the array and for each object I want to connect a Timer which runs the function "takeIt" which runs the public function "newEvent". The object in the array, events.id contains information about the object which is running newEvent, and in the array, events.action there are alse information which action to use. The events[i].time contains information about the timer delay which seems to work.How should I wite this to make it work?
Code: for (var i:int = 0; i < events.length; i++) { function takeIt(e:TimerEvent) {
Does anyone know of a way to obtain information about the environment that a SWF is served into? Things like the URL of the page that is hosting the SWF? So say there's the URL which has the movie flashmovie.swf embeded in it ... is there a way to get the URL from inside flashmovie.swf and cast it into a string datatype?
I've been picking apart the _global object by recursively un-hiding it and the objects it holds properties, but so far have not come up with anything that could prove useful. I want to be able to do this for error logging.
In my flash application, I want to have information about the system the flash object is running on.Is there an object which handles this?My application runs in a browser mostly, so I also want to know the browser in which the application is running.Can I also access this directly from within the flash player or do I need to communicate with javascript then?
What I need to obtain is the playhead location of a playing video when the Stop button is pressed. I need this to be either in milliseconds or hours:minutes:seconds. Either format is fine as I can work with either.I need this so that I can add a cue point to the video so that when the user returns to the presentation, it will start playing again at that point.
I'm making a very simple MP3 player in Flash CS4 Professional 10.0.2 that loads a song from an array containing the locations of the songs and plays it. The player also displays the artist and song info name in dynamic text fields as specified in the ID3 section of the MP3 file. It works as desired when I load the MP3 before playing it. This is the relevant portion of the code, highlighted in green to indicate that it functions as I want:
[Code]....
What's odd is that if I comment out the last two lines of the onID3 function, so that the function only performs the trace command that's highlighted in orange, it works! This tells me that it's loading the ID3 information. So why can't it display the information from the currentSong variable?
EDIT: I'm pulling the MP3 files from the same server as the SWF. I would not be pulling them from a remote location!
I am using location.loadMovie("image 1.jpg") to load images into my site, seeing how these images are not within my swf. but externally stored they load when I goto the location in the timeline, not in the beginning of my swf file with the other content (after my preloader runs) is there a way to have a preloader show up ( I want to use load % and movie clip for preloader) and tell you how much is loaded so someone knows there is an image there that is being loaded and not just a blank screen?
I want to add the required information to the 'Summary' tab when looking at the properties of an SWF file.Could somebody tell me how to do add the required informations .
I want to read Meta tag information of a video file like Artist,Album,Year,etc.... I tryed "onMetaData" for a video file.But i didnt get information like rtist,Album,Year,etc... The video file can be mp4,avi,mpg,mov. I dont want them to play in swf... I just want to load the file and show the meta tag information as text. For audio files i can get id3 information after loading the song.But is there any other way to get them with out loading the sound? Each loading will take time to give the result.