ActionScript 2.0 :: .goBack - Legitimate Command - Actual Purpose?
Jan 15, 2009.goBack is this a legitimate command? what is it's actual purpose?
View 1 Replies.goBack is this a legitimate command? what is it's actual purpose?
View 1 RepliesI have just asked these two questions, one on flash seo url best practices and one on url redirects for seo in flash, and it got me to read more about cloaking and sneaky javascript redirects.
In that cloaking and sneaky javascript redirects article, it says:
"Provide the textual contents of JavaScript in a noscript tag... Ensure that you provide the same content in both elements (for instance, provide the same text in the JavaScript as in the noscript tag). Including substantially different content in the alternate element may cause Google to take action on the site."
"Use of JavaScript is an entirely legitimate web practice. However, use of JavaScript with the intent to deceive search engines is not. For instance, placing different text in JavaScript than in a noscript tag violates our webmaster guidelines because it displays different content for users (who see the JavaScript-based text) than for search engines (which see the noscript-based text)."
To me that sounds like, if you have a Flash site, and you want it to be SEO, then if you render to google an html page with the same textual content as the flash swf, then you are safe. As long as I am not "with the intent to deceive search engines" and am not "including substantially different content in the alternate [flash] element", am I safe? Is that legitimate? Has anyone verified this?
I also get from that set of webmaster guidelines that it would be acceptable to redirect a [url].. for flash users, because the intent is not to deceive and if they are only differing by the "View", with the "Model" staying the same, is that legitimate?
I have a form that is currently working. But would like it to validate for a legitimate email address. Here is the code I have right now:
Actionscript Code:[code].........
Is there any way to modify this or add another if statement to validate that it is not only entered, but a valid email address. I am new to AS3, and am not sure how to have it do this.
this command
Code:
getURL ("http://www.google.com, "_blank")
will work in Firefox, only if launched onRelease of some button
html links in html enabled textarea like this..
[Code]...
I have a flash site which is going to have a concertina menu and various other features. I need to know if the menu is active or inactive so am using a Global variables class to do this. I have a couple of questions.(i) is this a legitimate technique, to have globals to store and share the state of the menu between all my classes(active or inactive)(ii) What should (if anything) the globals class extend?Also I create my global like this
package
{
public class MyGlobal
{
public var test:String;
[code]....
Well i have an adobe air which runs vlc-player at background as service. i check that in Windows Task Manager , the service runs when air application launches.
here is the code
processArgs.push("--extraintf");
processArgs.push("rc"); //Remote control
processArgs.push("--rc-fake-tty"); //Use terminal as output
[code]......
I want to call 3 commands one by one , the relation between each commands are command should execute one by one in the previous command result. How to Queue Command's? What is the best practice to handle Queue command , my requirement is adding n number of commands and execute them.Main -> Execute c1c1 got the Result - Execute c2c2 got the Result - Execute c3
View 2 RepliesAS1, AS2 don't require import instructionAS3 require. Why
View 3 RepliesI did not go that far in math. But can you tell me the purpose (the practical use) of the Mandelbrot set?
View 3 RepliesWhat is the use Font context in Flex?
View 1 RepliesThe use I have for it is for storing user credentials, and calling a transfer object that functions as a sort of "cache" for the current session in all of the flex modules.
Thinking about objects that have to be present in every module. Is there any alternative to a singleton instance for this?
I am trying to use an existing link with a flash file that is functional to also link to another page at the same time. Basically I am using Joomla and I have a flash file that has menus and pictures and such. I want to be able to click on a link within the flash file and still have it do its given function of pulling up an image or opening another menu or whatever the current function of that link is. The problem I am having is that I also want this link when clicked to navigate to a specific url to show aditional content on one of the Joolma pages.when one of the links in the flash file is click and it pulls up a specific image within the flash file.I want it to also pull up text or other content below my flash file that goes along with the image.
View 1 Replieswhat is the purpose of function.call() and in what situation in is used
View 1 RepliesI am currently migrating from RubyAMF to PyAMF. In RubyAMF you can return a FaultObject deliberately like so:
render :amf => FaultObject.new("Thats not your pie!")
Is there comparable functionality in PyAMF? I've searched the docs and can't find any mention of it.
When writing a custom layout for a List, what considerations need to be given for using the horizontalScrollPosition / verticalScrollPosition properties on the LayoutBase class itself (as opposed to the corresponding properties on the layoutTarget)
Looking at the HorizontalLayout class as an example, it always references and updates layoutTarget.horizontalScrollPosition. Is the horizontalScrollPosition of the LayoutBase class ever referenced / used?
What's the relationship between the property on the layout instance, vs the property on the layoutTarget instance, and when should each be used?
If you want to use content on another server, that server needs to host a crossdomain.xml file allowing access. If this file isn't there, flash won't let you access it. Given that it's easy enough to just write a proxy (say a php script that curls the external URLs) what is the purpose of this restriction? It seems that the content is still 100% available to external people, but there is just one extra hoop to jump through.
View 2 RepliesI am trying to design an output text box that will read the sum of 8 buttons. The total sum of the 8 buttons will change depending on which buttons are on and off. Whichever buttons are turned "ON" their sum will calculated and put into the output text box.
View 9 Replieswhats the purpose of having to have an extra class such as abstract class in Flash where the methods has no implementation,but the subclasses declare those implementations.The advantage of having the methods declared in subclass than the superclass is that it would not affect the other subclasses when there are certain changes.That makes me wonder, isn't it better not to extend(inherit) empty methods but directly create a class as its own? unless there is something that the child could use from parent.Anyone could give me examples of how applicable using abstract classes/interfaces?
View 3 RepliesI'm trying to make a variation on Array for a very specific purpose. When I have the following:
public class TileArray extends Array {
// Intentionally empty - I get the error regardless
}
Why can't I do this?
var tl:TileArray = [1,2,3];
despite the fact that I can do this
var ar:Array = [1,2,3];
The error I receive is this: Implicit coercion of a value with static type Array to a possibly unrelated type
I'm using Actionscript. I'm currently working on a small game - In the game, I'm using a global variable called _global.battle to track, at where the player is (more difficult battles are being unlocked with story progression). I want the player to get from a town to a map where - depending on the variable, a certain number of battle locations is selectable. I put the following code on the button that let's you access the map:
ActionScript Code:
gate_btn.onPress = function(){
if (_global.battle = 1){gotoAndStop("map",1);}
else if (_global.battle = 2){gotoAndStop("map",2);}
else if (_global.battle = 3){gotoAndStop("map",3);}
else if (_global.battle = 4){gotoAndStop("map",4);}
else if (_global.battle = 5){gotoAndStop("map",5);}
}
My problem is the following: if I switch the variable to 2 (or higher), the button ignores this and sends me to "map",1 - and assigns the variable the value 1 again. I have no idea why it does that. I don't have any other code with this variable except in my title screen, where I give it the value 1 and on another screen, where I give it the value 2 (by doing this: _global.battle = 2;).
Can RSS Feeds be inserted into Flash?
I would like to create an animation whose sole purpose is to scroll a feed (like CNN), and that would change the source feed every 10 minutes.
I've been going over several tutorials and whatnot and I'm confused on the point of movie clip symbols and motion tweens. To me using the other tweens and symbols are "easier". Can someone explain to me why they're so beneficial to have been added to CS4/CS5? Except I understand that movie clip symbols can be adjusted using the 3D tools but is that the only difference?
View 1 RepliesI'm building a networked client app with Flash Builder, and would like to be able to set environmental variables or #define's such as server's hostname and port. For debugging purposes I want to connect the client with different servers (and for other devs too). In C/C++ I'd define TEST_PORT=8888 or something in the IDE or build environment, that way I wouldn't need to commit a settings file along with the client. But not sure what's the standard for Flash Builder.
View 1 RepliesI'm looking for a really really small linux distribution or process of making my own that's sole purpose is to get an air application to launch full screen and stay there; Essentially I'm building a home kitchen computer that runs entirely as an AIR app.
I have looked into using windows xp; and windows xp embedded but they pose so many issues I figured I'd try modern linux.
I have also seen TinyCore Linux which looks interestingly small but not sure what issues that poses in regards to running AIR and "hardware" accelerated display. I've also thought about stripping down an Ubuntu installation but I'm sure somebody must have done this already; google is just failing me right now.
[Code]...
I'm new to Adobe Flash and especially new to Actionscript. Could somebody give an example and explain how to make and "Ignore *this* command if..." style command. Here's what I want to achieve:I have made a button (I may have done it in an odd way but it works) that moves when the mouse hovers over it and then moves back when the mouse moves away. I plan to put the finished product into Dreamweaver and have tried what I've done so far and it works. The problem is that if I move the mouse away before the first animation of the button has finished. It doesn't reach the *Mouse Out* command and then just sticks/stops in the bit where I have put a *stop* command.Basically, what I want is a way to ignore a command if something happens earlier on (such as the cursor being moved away).I've tried to explain the best I can without actually screenshotting it and copying commands.
View 6 RepliesHow do I check if email address is a legitimate email address? Is there any possibility in that?
View 7 RepliesI'm a bit confused with the purpose of these programs. For example if I want to create a game or utility app that runs on air. Can I design it in Flash Professional and later open in Builder for more heavy coding? Or is Catalyst supposed to be used as the design program?
I used to think that you design stuff in Flash Professional and then open the project up in Builder to do more deep coding.
I have a movie clip with a stop command on frame 1 and a stop command on frame 20.I'm trying to have two separate buttons that tell the MC (onRollOver) to play forward or to play backwards.
The actionscript on button #1-
PHP Code:
on(rollOver){ gotoAndPlay(_currentframe +1);}
The actionscript on button #2-
[Code]...
I am trying to get the stage width of the FLA in as3. Obviously, stage.stageWidth works well, the only issue is that when viewing the the SWF in an HTML page when you are zoomed in or out it gives you the relative width of your current view. For example, my stage width is 800x600 and when I trace out the stage.stageWidth it is showing up as 800 as long as I am viewing in my browser at 100 percecent, but once I zoom out in my browser the stageWidth gets traced out as a smaller number. Does anyone know how I can dynamically get the stageWidth of the FLA and have it not change regardless of how you are viewing the HTML page
View 1 RepliesI am trying to retrieve my SWF's referring document filename. For example, if index.html is calling mymovie.swf, I want to return index.html. I know this can be done through a combination of scripting and flashVars, but I would like to avoid that for security purposes. The flashVars variables can be seen by anyone who knows how to view source. Is there a way to accomplish this solely in Actionscript? or Flex?
View 10 Replies