ActionScript 3.0 :: Making A Flash Website: Not Able To Exchange Info Between 'sections'
Aug 23, 2009
Let's say i have a class that simulates a 'button section'.The button bears a title. Like news. I click on it, i transfer the title in the button and the respective news to the body.The body exists outside the class. It's a textField variable. let's assume.
ActionScript Code:
public function xmlLoad()[code].....
keeps giving me an error.1067: Implicit coercion of a value of type Number to an unrelated type String.but i've seen this done before, except it was on a loader variable...but i don't see how that would be any different.
View 1 Replies
Similar Posts:
Feb 15, 2011
My FLA file is based in CS5 with AS3. I posted this in the AS3 forum but if it can be done without AS3 then I am open to that possibility as well.
I am creating a non-functioning form, meaning I just need it to look like a form but the functionality doesn't need to work. Atleast not in this stage of development.[code]...
View 3 Replies
Aug 4, 2009
Is flash (actionscript 2.0) secure enough to use for a website that holds personal info, password, restricted areas, ect. How can I make it secure enough if it's possible.
View 1 Replies
Nov 29, 2009
well i have developed a small website in flash 8 and i m facing some problems with it...
- the website has content (text) which is loaded externally
- the images are also called externally with the help of 'loader' component
- i have added a preloader at the beginning of my file
but still when i loaded it on the server....the images and the content is coming slowly....
load the whole file completely at the time of loading (including the external content)...?
View 4 Replies
Apr 27, 2009
Trying to make it so when you click anywhere on the flash file, it loads a specific website. It works when I go to File > Preview > Flash, but if I try and preview in html it doesn't navigate anywhere. My actionscript is:
Code:
myButton.addEventListener(MouseEvent.CLICK, onMouseClick);
function onMouseClick(e:MouseEvent):void {
[code]....
View 1 Replies
May 25, 2009
I waqs wondering if someone can point me in the direction of a good set of tutorials for making a full website in flash cs4.
View 2 Replies
Mar 5, 2005
I'm making a piece of flash used for a website banner, previously i've had very little experience with action scipt as i've made various animations only having to use simple functions such as "stop()" and i've made a never ending scrolling menu also, but now i want to have an event that "onPress" a small animation is played where the mouse clicked the banner. What would be the appropriate script to link the .swf i make to the "onPress" command? or what is the right command in general assuming it is that command
View 5 Replies
Nov 11, 2005
I'm looking at making some PHP Flash shortly to replace my current website, http://www.mathsnotes.com. I was thinking about allowing users to download a standalone version, i.e. the SWF file or an EXE file. My question is: Will the PHP still work, or is it parsed by another entity, e.g. the users browser?
Also, I wanted to add a live news feed - So is it possible to have flash check every frame ( like a _root.onEnterFrame() = Fucntion{ ... ) the mysql database to look for anything with a timestamp less than say, 5mins, and then display it? Or does PHP require a user to do something like "Update News"?
View 5 Replies
Oct 30, 2006
Ive been making a flash 8 gallery for a website and they want me to add a rating system to it so people can rate the images out of 5, 10 or whatever.
View 2 Replies
Sep 2, 2010
i'm making an interactive map when preess on a button an info box pops up using. This is code for this. This works.
[Code]....
View 8 Replies
Nov 20, 2011
Well first off here is my script so far on the page:
[URL]
Using Pastie to keep amount of text on thread low to make things easier to read.
Here are the errors I get everytime I try to debug or Test Movie:
[URL]
Also maybe if you can help a bit with it heres the check list that this is graded on. Also no I am not trying to make you guys do my work for me its just he gave us this project but I have been at work (17) and unable to finish it at all. Please help I dont want a bad GPA this ending semester.[URL]
View 1 Replies
Apr 15, 2011
what im trying to do is make an interactive webssite 100% out of flash.on one of the pages in that website i would like to have one of my custom youtube players that youtube lets you make and gives you an embed code for.problem is that it is an HTML embed code.ive tried everything to get this to work and the best i could do was get the player to work in an independant .swf file but whenever i try to incorporate it into a page in my website and load it in a browser i get a security error saying that i cant let flash access youtube and i have tried everyway on google to get around that with no luck.
View 1 Replies
Aug 29, 2009
I was looking for data to be transferred from ASP.NET page to Flash CS3 with actionscript 3.0
View 5 Replies
Mar 19, 2012
I want to exchange values between ASP and Flash. I don't want to send it as a querstring like :myswf.swf?var1=value.I don't want my user to see or edit this value.
View 4 Replies
Nov 6, 2010
I've been struggling with this for a few weeks, but I still can't get it right, and all the info I found is too ambiguous or uses AS2. What I want to do is to retrieve info from a MySQL database, using PHP, and send it to Flash; and in the other way, input info into the database from a Flash form. I want this to make a series of Flash tests for my website. show me a simple example code (on both PHP and Flash) of how to exchange data? PD: I know how to work with databases on PHP, so the only PHP code i need to see is the php-flash communication part.
View 3 Replies
Aug 31, 2004
I just download from macromedia exchange this extension for flash, and all ready have a headache
can you see where my problem is: (i get the "undefined" message all the time)
[Code]...
View 2 Replies
Jan 17, 2008
i'm remodeling a website i've done ([URL]). i want to exchange information between XML and Flash files. i almost did it, but where shoul display information about one item, the whole content of this 'field' is shown. i'll explain better. this swf displays works of an artist. but the field 'date' (or any other text field) display the content of all works (separated by commas). i'll post the xml code and the actionscript code.
View 2 Replies
Feb 9, 2011
I am new to flash, and I am trying to make a simple video player. I have a problem setting the source of video: In my action script I have this: [URL] where getVideo.php is:
[Code]...
View 1 Replies
Feb 16, 2011
I am developing a non-real time browser RPG game (think Kingdom of Loathing) which would be played from within a Flash app. At first I just wanted to make the communication with server using simply URLLoader to tell PHP what I am doing, and using $_SESSION to store data needed in-between request. I wonder if it wouldn't be better to base it on a socket connection, an app residing on a server written in Java or Python.
The problem is I have never ever written such an app so I have no idea how much I'd have to "shift" my thoughts from simple responding do request (like PHP) to continuously working application. I won't hide I am also concerned about the memory and CPU usage of such Server app, when for example there would be hundreds of users connected. I've done some research. So, considering the fact I don't need real time data exchange, will it be wise to develop the server side part as socket server, not in plain ol' PHP?
View 1 Replies
Dec 21, 2009
making an intro for my site.Right now, it's coded in php, but I'd like to take it to flash.In the intro, (I fail at making images) I'd be making two characters that come in from off-screen and do a small fight. Then the winner gets shot with a bullet and dies.They fade out and then the site comes up.
View 1 Replies
Feb 9, 2011
I have a few questions on creating some animated buttons for a nav. There are 2 actions I want to trigger on moue over. If I want to use a static (PNG) image that I created in Photoshop for the actual button, can I use that? I want to smoothly slide button down on mouse-over and slide back up on mouse off. If I push part of the button off the "canvas" (sorry, this is coming from a Photoshop guy) will it disappear in the final animation? Another way to put that is, if I put an animated element off the white area, will it no longer show up in the movie (.swf) when it's published?
For the second part; you can see a bit of what I want to do if you look at this website's top Nav: [URL] I need the "light" above the button and it's going to be on another colored <div> so I can't set one solid BG color for my flash document. But I want to achieve the effect of the "bar" lighting up above the button and the actual button sliding down upon moue over.
View 8 Replies
Sep 16, 2009
i am making a flash website and need to know how to make the site 4 times the size of the screen and when the user gets to the edge it pans the site.
View 3 Replies
Apr 18, 2008
I'm making a website with a couple of loadMovie bits of script in. I'm loading these into empty movie clips in the .fla file, to load a photo gallery and a portfolio.
The problem I'm having is they're not keeping the individual paramaters (if thats the right term) of each .swf file (the movie it's loading)
For example, my gallery.swf requires the scroller to be at x. 29 for it to work. Dunno why, but i worked around it. However when it's loaded into the website.fla file, it's using the x and y co-ordinates of the website, as opposed to the original movie. So, if I place the empty movie clip where i want the movie to load, the scroller doesnt work. However if I place it a 0,0 it does.
With my portfolio.swf the files are not located in the root folder. But my website .fla is. It's not possible to have the files in the root folder because of the way it works. When loading the portfolio.swf on it's own the files work fine and are linked okay. But when the .swf is inside the empty movie clip on the .fla file, it's not going to the correct source, it's seaching for the files from my root folder as opposed to the portfolio folder where the .xml and sub folders are located. Changing the path it looks for doesnt help either. I tried to make it search for "portfolio/gallery.xml" (as opposed to "gallery.xml") and that made the rest of the code try to look inside a portfolio folder (so instead of "gallery/design/image1.jpg" it was looking inside "portfolio/gallery/design etc." whilst already being inside the folder).
What I want to know is, is there a piece of actionscript that will tell the loadMovie function to use the original paramters of the movie it's loading, and not intigrate them with the .fla you're working on.
View 1 Replies
Jul 5, 2009
So this might be an easy but possibly a long answer, but I can't seem to find any good info on it anywhere. I'm trying to figure out how to have different sections of my flash site be linked to with different URLs. A good example of what I mean would be this site here: [URL] I'm not the biggest fan of the design but the functionality is great. It animates seamlessly between pages and each page has a separate URL. Is there an easy way to explain how this is accomplished?
View 2 Replies
Dec 29, 2009
First like so many I am new to actionscript and I'm almost there but I cant figure it out. Either way I am putting a scrollbox in each section where there is a graphic. So for every section there will be a new scrollbox with new info. It goes to each section perfectly but as soon as you use the scrollbox and then try to go to another section the content from the scrollbox is still on the page.
View 4 Replies
Jun 24, 2010
I have some scrolling content (info). I've also made my own scroll bar.I want the scrollBar dragger to be positioned in relation to the info._y as the user scrolls info.I have created two vars: one that worsk out where info._y is as a percentage and the other that works out where the scroll._y dragger should be as a percentage...
Actionscript Code:
var scrollBarPercent = Math.round(scrollBar.dragger._y / [code]........
also onMouseWheel working too.I need a small bit of code that takes the % of info._y and moves the scrollBar dragger to the same % but in relation to the Stage.height...so if projectGalleryPercent = 50%, make dragger._y 50% of Stage.height using scrollBarPercent.
View 1 Replies
Apr 8, 2010
I need to create an interactive web-based system which takes the user through steps to assemble something. One of the pages will have images of the tools needed. I want the user to be able to 'tick' off each tool, so that when they click on the image of a specific tool it is replaced by the image faded out and a big red tick over it. essentially it is replacing one image for another when it is clicked on.
View 1 Replies
Jan 12, 2009
I've bought a photo gallery flash template. It's easy to change the photos at this template, just need to put them into gallery folder. But what I need is when the user put the mouse over the other photo "before" version of the photo will pop up. I read this is called mouse roll over or something like this. My question is how can I do it and where should I do it?
View 9 Replies
Nov 23, 2011
I got one bitmap with a (almost) one color background. i need to change all of this with pixels at same x,y from another bitmap.
I know i need to run it through a double for loop and then into an if sentence.
like this:
If (color at x,y is > redvalue && color at x,y is > greenvalue && color at x,y is > bluevalue)then exchange with pixel from the other bitmap.
View 1 Replies
Jan 27, 2010
You know how when you load xml you use this code.
Code: Select allxml.load("data.xml");
which is the file path to the xml. I would like to know how I could exchange different xml files from the same component. Their must be a way to do this. Like say-
Code: Select allbutton1.onPress = function(){
xml.load("data.xml");
}
button2.onPress = function(){
xml.load("data2.xml");
}
View 2 Replies