Flash :: Change The Basedir In Ant To Have Forward Slashes?

Nov 25, 2009

I'm using Ant with FDT 3 and I have Ant creating a jsfl to compile fla's. When I use the built in '${basedir}' property in Ant it gives me the path with backslashes() in it because I'm on Windows. The problem is that when its run through jsfl the slashes are taken as escapes. I need to know how to modify the basedir property so the slashes are converted to forward slashes. I've tried splitting the basedir on backslashes in jsfl and joining it with forward slashes as a delimiter, but the backslashes still cause problems.

So what I need to know is how to change the basedir in Ant to have forward slashes?

View 1 Replies


Similar Posts:


Regex :: Replacing Backslashes With Forward Slashes?

Feb 10, 2010

var aText:String = "C:\folder\folder\file";
var filterVal:String = aText.toLowerCase().replace( ///g, '/');
trace( aText );[code]....

this code was based on this site and nascent regex skills.What am I doing wrong?

View 1 Replies

ActionScript 3.0 :: Forward Slashes In Website URL Greys Out Rest Of Line Like Comment

May 23, 2010

After the double forward slashes in the website address, the rest of the line gets greyed or commented out in the Script Pane.[code]

View 8 Replies

ActionScript 3.0 :: RegExp - Remove The Leading And Following Slashes And Convert All The Other Slashes To Underscores

Nov 7, 2009

i'm trying to do a string replace with but can't seem to get the regular expression right. change "/portfolio/2/3/" to "portfolio_2_3"? Basically I want to remove the leading and following slashes, and convert all the other slashes to underscores.

View 2 Replies

ActionScript 2.0 :: Flash Paths With Double Slashes?

Oct 1, 2009

I've made a project which uses double slashes ("\") on paths for source files like sounds,xml etc. It works fine on a CD but I want to uploaded on a server.The swf files which use those paths work fine on IE but not on firefox,safari,opera etc. I red that the problem is the slashes that I used in paths. They should be backslashes like "/Sounds/somesound.mp3" and not "\Sounds\somesound.mp3".I found that firefox translates "\Sounds\somesound.mp3" to a single file named "Soundssomesound.mp3", the directory "Sounds" now turns to a part of the filename.

If I place and rename the source files like "Soundssomesound.mp3" on the server in the same directory with the swf file (not in "Sounds" directory) this way works on firefox, but does not work on IE. I have to place the source files in both ways to work in all browsers but that's not good...I know that the best thing that I can do is to change the path syntax in fla's but the project is to big.

View 1 Replies

Flex :: Remove Slashes From Sqlite

Dec 30, 2009

I am creating an application in Flex that uses an embedded SQLite database. The data in the database contains quotes and other special characters which are escaped using a backslash or ''.Before I retrieve the data and render it in a Flex text area control I want to remove the ''. Is there any function in Flex which can help me do this - some equivalent of stripslashes() in PHP?

View 1 Replies

Professional :: Slashes Get Added When Writing Text File?

Jul 29, 2010

I'm using flash and php to write or overwrite a text file (an xml file).  I have text strings that contain the xml data, which then get parsed by the php file.
 
It works fine.  However, I notice that the header in the XML file <?xml version='1.0' encoding='utf-8'?> get's replaced with <?xml version='1.0' encoding='utf-8'?>
 
Why would slashes get added?

[Code].....

View 2 Replies

ActionScript 2.0 :: Rewind And Fast Forward Buttons Start To Mess Up When Fast Forward Or Rewind Past The Current Scene?

Apr 1, 2009

Problem is that my rewind and fast forward buttons do not work properly in the sense that they start to mess up when you fast forward or rewind past the current scene. It seems to just skip through the whole movie and totally mess up the animation.the code for the controls is on a single layer and reads as the following:

stop();
play_btn.onRelease = function (){
play();

[code].....

View 4 Replies

Slideshow Forward/back In Flash?

May 26, 2009

I am doing a slideshow in Flash. With AS 2, I would create frame labels for each slide with a stop action on each one in the timeline and a button underneath the background with the following script:
 
on (keyPress "<Right>") {
gotoAndPlay("2");
}
 
The keyboard right arrow (and left arrow) would move the slideshow forward and backward. I had another button for backward.I'm doing one in AS 3 now (dictated to me) and this script isn't working.

View 3 Replies

Flash - FLV Player To Allow Scrubbing Forward?

Jan 6, 2010

Just wondering what everyone's thoughts are on playing FLV video on a website. I'm currently using JW player and it works great. The only problem is people can't scrub forward past what is cached. For instance, I want to click on the video and immediately click half way through it to start playing in the middle of the video. Can this be done with JW player, or do you suggest another FLV player?

View 1 Replies

Flash 10 :: Movieclip Stuttering When Going Forward?

Oct 27, 2011

when you go forward, car is blurring/stuttering/lagging

[URL]

View 0 Replies

Flash :: Forward Port 80 To Media Server And IIS?

Apr 7, 2011

FMS and IIS are set up with separate IPs on the same server. Both are configured for port 80 because others, including 1935, are often inaccessible from certain environments. Problem is, the server's behind a router. Port 80 can only be forwarded to either the IP of FMS or that of IIS. Even if the two were on separate machines, I'd still have to deal with this.

View 1 Replies

Flash :: Rewind/Forward SWF With Background Audio?

Jan 25, 2012

I have a Flash animation (AS2) that contains a background audio file. I've been asked to add controls to it. So far, I have added buttons to pause/play the animation and stop and start both the root timeline and the attached mp3 audio. I also need to add a reverse button. I've seen tutorials that are enable reversing of the timeline's playhead. Is there a way to have the audio file reverse as well?

View 1 Replies

Actionscript 3.0 :: Flash CS4 - Rewind And Forward Buttons

Oct 1, 2009

I'm using CS4 with AS3 and have a little problem with my rewind and forward buttons. For the play and stop buttons it works fine with this script:

[Code]...

View 1 Replies

ActionScript 3.0 :: Automatically Forward To Site After Flash Is Finished?

Dec 10, 2009

I've looked all over the net to find an answer but no luck. Obviously the getURL script doesn't seem to work with cs4 so I'm looking for another way.

Basically, when the flash intro is finished playing, I would like it to automatically go to the main part of the site.

View 3 Replies

Flex :: Flash - Using Back / Forward Buttons In Applications

Aug 27, 2010

I have a Flex application which uses the BrowserManager class for enabling deep linking within the application. The URLs work fine through all browsers but the back/forward buttons work only with Firefox and Internet Explorer. Even that is a bit flaky and sometimes doesn't work. The buttons don't work in Chrome/Safari or any other browser. How to make this work properly?

View 2 Replies

Flash :: Attached Movie Control With Next/forward Button?

Oct 4, 2011

I use attachMovie to call movie clips succesively on the stage. I use a forward button to slide them in progression but when I want to go back in the same order everything gets messed up. You can see the swf playing here, [URL]..I numbered each frame so you can see when clicking on back button it gets messed up.

// Each of the button functions here call the add_page() function and pass the Identifier of the page that they will display b_0.onRelease = function() {

[Code]...

View 1 Replies

Flash :: Forward MouseEvent In Transparent Bitmap To Underlying MovieClip

Mar 24, 2011

So I'm Bitmaping some heavy stuff to try bring down the [pre-render] and [render] which is quite high according to FlashBuilder's profiling. I thought this was going well until I realised that as soon as you change a MovieClip to a Bitmap, you lose the pixel based accuracy of the mouse move events (Over, Out, Move...), all your left with is the entire bounding box of the Bitmap, something which is less than desirable. I've got a game where many Bitmapped assets would be on top of each other in a scene, on the stage, arranged in various ways and need to have that pixel accuracy moving between each one and have exhausted my efforts as to how to achieve the same mouse move results with the Bitmapped guys as normal.

This, [URL], is a FLA which shows this operation, and you can see how it works here, [URL]. When it loads up, both items on stage are drawn Shapes, encapsulated in MovieClips, both that get a glow, if you hover over them. If you click the stage at all, the purple guy gets turned into a Bitmap and now, his 'hit area', when it comes to MouseEvents is his whole bounding box and you can only get through to the back green item at the edge slivers.

I'm also tracing the pixel which the mouse is over, so I can clearly tell when the mouse is over a transparent area, it's 0, but how can I tell the event to forward itself on down the chain to the green MovieClip?

Below is how it's now pretty much working for me,

var bitmap:Bitmap = this['bitmap'];
var shouldMouseOver:Boolean = bitmap.bitmapData.getPixel(event.localX - bitmap.x, event.localY - bitmap.y);
if(shouldMouseOver)

[Code].....

I shut off mouseEnabled for my item, when I know it's wrong, then I search for another item that properly fits the bill and if there is one, send an Event to that and break. If that one's also wrong, it'll do the same again, but each time taking themselves out of the loop.

This does work exactly how I want it to, but I'd always prefer to keep things like globalToLocal and looping, and reading from arrays for not frequently updated methods like listeners to MOUSE_MOVE. Is there a more efficient way to do this?

View 2 Replies

ActionScript 2.0 :: [fl8] Enabling IE Forward And Back Buttons In An All Flash Site?

Jun 21, 2009

how to enable the forward and back buttons in internet explorer for a 100% flash site? Looking for a tutorial which only uses actionscript if that's possible... found a few on google but they use javascript (in seemingly complex ways, and I dont know javaScript)... also named anchors arrent an option either because they dont truely take you "back," they only go to the prior named anchor on the timeline.. And, they only work on the root timeline.

View 1 Replies

ActionScript 3.0 :: Using Back And Forward Browser Buttons To Navigate Through The Flash Movie?

Apr 3, 2009

I've a couple of website on thefwa.com in which you can avigate by using the back and forward buttons on the browser.[URL].. Look at the URL String. It's done through that.

View 1 Replies

ActionScript 2.0 :: Enable Broswer Back And Forward Button On A Flash Site?

Dec 29, 2007

If you try navigate around, the url window will change to etc etc and the back and forword button seem to be working also, if you copy and paste the link, the flash will be smart enough to go to the indivual page alsoMy question is s below1) how do we make the back & forward button to work2) how do we contruct the url to be so dynamic

View 2 Replies

Actionscript 3 :: Flash Slide Show With Timer Object And The Option To Go Forward Or Backwards?

May 2, 2011

I am new to using Flash, but with some helpful YouTube tutorials and various Google searches, I was able to create a slide show that automatically transitions to the next after 6 seconds. I also thought it would be neat if I could give users the ability to go back or forward or jump specifically to a certain slide. But my problem is that after I click a button, the timer seems to be off.

[Code]...

View 1 Replies

ActionScript 3.0 :: Make A Mouse Trace Line (type) To Move Forward In A Flash Site?

Feb 4, 2011

I'm wondering how I would go about making a Mouse Trace, on a line that's preset but my choosing to let people enter into my Flash and/or progress throughout it. Basically, I have a picture of say, the number 5, I want to be able to have people use the mouse cursor to trace the 5 from one end to the next, and once completed the sites move forward. Though, I will be using my company logo which is a bit more advanced than a single number or letter form. If no one is sure what I'm talking about I've added a picture to demonstrate what I'm trying to do. Another idea I have if this one can't be accomplished, is a slide bar.Basically, it would look like a timeline control in say, VLC, and I would have the user drag a button from one side to the next to unlock and move forward. Though that may seem a bit more simple that my main idea, I would also like to be able to get really advanced with this second function and make a series of slide bars, say, 3, and they have to be slid in a certain manner, like slide bar 1,3,2 then it unlocks and moves forward.

View 1 Replies

ActionScript 3.0 :: Go Back With The Back Arrow But Can't Go Forward With The Forward Arrow

Mar 5, 2011

I have been working on a tutorial in Flash on the topic of Flash () for two days, and I am just finishing up on a template. I have fixed five bugs, but I cannot think of how to fix this last one. I'd rather actually fix the problem this time, instead of improvising . So, here is what is going on:

I have this thing at the end where you have to enter in the code that I taught the viewer to proceed, then hit the continue button to finish the tutorial. But for some reason, whenever I try to go back with the back arrow, it does, but then I can't go forward with the forward arrow until I reach the first frame that contains actual tutorial ("page" 2). Then it works again. It seems really random, but there is [obviously] a good explanation for it. I thought it might have something to do with the fact that all of the arrows up to the "test" part, excluding the back arrow there, have the exact same instance name. However, "page" 2 is the 2nd time it is used (introduction, then the "page" 2, then 3, 4, 5, and 6, then the test part thing), so it makes less sense that it would work the 2nd time, but not the third, fourth, fifth, or sixth. And I know there's nothing wrong with the code itself:

[Code]...

View 3 Replies

ActionScript 3.0 :: Creating A Flip-book In Flash - The Pages Will Turn Back And Forward With A Button Click But They Flip Out Of Order?

Jun 23, 2011

creating a flip-book in flash (using AS3) . I've looked at the other flip-book programs and editors out there, and none really give the customization that my company wants.I have something working, but the page scoping seems to be off. The pages will turn back and forward with a button click but they flip out of order. However, it all runs fine with no error when the user clicks on the pages themselves. This is the code from the main timeline (where I'm getting an error).

View 6 Replies

Actionscript 3 :: Change A Flash Context Menu That Is Already Personalized -- Can't Find It To Change?

Dec 16, 2009

Is there any way to change a context menu that already has been personalized. I have an small application that I purchased to learn with and also to save some time. When I right click the context menu appears with the other person's information in it. I want to change that information if it is possible to do so. I tried

var my_menu:ContextMenu = new ContextMenu();
my_menu.hideBuiltInItems();
contextMenu = my_menu;

and added my info but the menu will not change from the person I got the app from. Is this considered unethical or illegal? I put so much work into this, I don't want the person to get credit for it.

View 1 Replies

ActionScript 3.0 :: Flash Change Hue - Pressed Bottom A The Mc Will Change Hue +=10?

Mar 26, 2011

how can i change the mc hue with as3 .just a simple example is fine just like pressed bottom A the mc will change Hue +=10

View 7 Replies

Motion - How To Get Img Always Faceing Forward

Jul 14, 2009

i have an img of a boat which is on a motion guide wavey line. how do i get it to always face forward.

View 1 Replies

ActionScript 3.0 :: Car Will Go Forward But Not Backwards

Mar 16, 2011

Heres the code for my car to accelerate but how do I make one for reverse when the down key is pressed? I've tried all sorts but it is just not working properly.
ActionScript Code:
//When up key is pressed...
if (keyUpPressed) {
car.y -= ((90-carRotation)/90)*increment;
if (((car.rotation > 90)&&(car.rotation < 180))||((car.rotation < -90)&&(car.rotation > -180))) {
car.x += posNeg * (((((1-(carRotation/360))*360)-180)/90)*increment);
[Code] .....

View 2 Replies

IDE :: Forward And Previous Buttons?

Jul 20, 2003

i created a movie in that i placed 4 slides in a layer1 in frame 5,25,45,65,85.i had created a movieclip a rectangle in shape whish is static in a layer2 on rollover the movieclip rectangle i placed 2 buttons one is "previous" button and another is "forward" button.on running this i want the button operations like the following1. on clicking the "forward" button the the movie have to go to the slide 25.2. from there if we click the "forward" button it should go to 45and so on.like this 1. on clicking the "previous" button from the frame 45 it should go to the 25 frame of the movie and so on.

every thing is working but what the code i write in the button which is in the (rectangle shape)movie has taking the only one action. ie., when i write on(release){_root.gotoandplay("25")}it is globel to all position on the button.so only this action can only is taking place.so i want the action script to be global and as well as my above constrains should also satisfied.

View 5 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved