Ruby :: Broken Toggle-comment In Textmate?

Feb 28, 2011

I'm having a problem with the Toggle Comment command ("Comment Line / Selection") in TextMate for Actionscript 2 (I know, I know). I've tried completely stripping the language set down to isolate the issue, and tried walking through the Ruby, both to no avail. My issue is that the command insists on using block comments for comment toggling (⌘ + /) and doesn't respect when I add a preferences file to change TM_COMMENT_MODE. I even tried using this simple preference:

{ shellVariables = (
{ name = 'TM_COMMENT_START';
value = '// ';
},
);
}

but no luck. I'm hoping that someone who speaks Ruby much better than myself (ie. at all) can find a simple fix for this. You can reproduce in any (recent) install of TextMate by creating a new actionscript 2 file and trying to ⌘ + / a section of code (or even a line). Contrast to a JS file which will use a line comment. Copy the "Comments" snippet from JavaScript to Actionscript bundles, and the problem will persist.

View 1 Replies


Similar Posts:


Javascript :: SWF Video With Controls (toggle Sound On / Off And Toggle Play / Pause)

Jan 10, 2011

I'm new to flash and just need to do a simple task but I can't manage to get it to work. I'm trying to import a video (flv) into a SWF container and need to AS functions which should be exposed to JS (using liveconnect or anything else). These two function should toggle sound on/off and toggle play/pause. I dont need any user interface or a full featured player, just these two functions.

View 1 Replies

Ruby On Rails :: Flex - Ruby On Rails Routing Error

Feb 11, 2010

I was developing the Application in Flex and ruby on rails.

It is working fine some times. but some times i am getting routing error.

Error: "No route matches "/index.html" with {:method=>:get}"

Here index.html is my login page

View 1 Replies

Flex :: Autocomplete Not Working For Textmate?

Aug 1, 2010

I am being very hard headed and determined that I am going to give Textmate a solid try for my actionscript and flex projects. Work on the bundle has been a little lacking but what has been developed so far is pretty great. I have run into some slight issues but able to figure them out and get things set up pretty well and I have already dug in and started customizing the snippets to suit my needs.

One thing that I have not been able to fix, figure out or find a straight answer for is regarding working with MXML files. AutoComplete for Actionscript files seems to work great but I don't seem to get the same result when I am editing Actionscript inside the script block in a MXML file.

View 1 Replies

Actionscript 3 :: Set Up Flex Documents And Environment In TextMate

Apr 2, 2011

I have been trying to find solutions to this everywhere and cannot find any concise, clear instructions on how to set up Flex and Actionscript properly on TextMate. That is, I have the bundles but in terms of setting shell environments etc so that you can compile with ANT, find documentation for keyword (Reference Doc) within the app. For the latter ,when i try and do that it says no documentation found.

My shell env stuff is as follows:

TM_FLEX_PATH /Applications/Adobe Flash Builder Burrito/sdks/flex_sdk_4.5.0.17689 TM_FLASH_HELP /Users/doronkatz/langRef (this is where i have the as doc zip file i downloaded)

View 1 Replies

Actionscript 3 :: Open Flash Player And Test Swf From Textmate?

Jul 5, 2010

i usually write my code with textmate.

a custom command for testing the proj directly in flash is:

echo 'document.testMovie();' > /tmp/fc.jsfl
open -a /Applications/Adobe Flash CS5/Adobe Flash CS5.app /tmp/fc.jsfl

what about the flash standalone player?

echo 'document.testMovie();' > /tmp/fc.jsfl
open -a /Applications/Adobe Flash Builder 4/player/mac/Flash Player.app /tmp/fc.jsfl

works great but it only open the player...it doesn'pass the file to it.

View 2 Replies

Flex :: Use TextMate With Existing Projects Created In Flash Builder?

Jul 23, 2010

I am wondring if anyone has a good resource for opening existing Flex projects that where created in Flex / Flash Builder and run them using the TextMate bundle for Flex and Actionscript projects.

Basically I just want to know if I can walk into an existing project and configure this easily or am I pretty much stuck with using Eclipse ?

View 1 Replies

Flex :: Textmate - Load A Custom Compiler Config When Compiling Project?

Oct 31, 2010

I need to load a custom compiler config when compiling my project with textmate (as3 project).How can i do this?

View 1 Replies

ActionScript 3.0 :: How To Append A Comment In XML

Feb 4, 2011

I'm writing an XML preferences file for an Adobe AIR project, and I'd really like to include XML comments. How does one append a comment to XML? The following doesn't work (the file just ends up with a blank line where the comment should be):

ActionScript Code:
var prefs:XML = new XML();
prefs.ignoreComments = false;

[code]....

View 2 Replies

ActionScript 3.0 :: Getting Comment Box To Work On Website?

Mar 22, 2011

I'm trying to get a simple comment box to work on a a website I'm working on. I want it to be able to send an email with the comment to a specific email address. I have AS3 code and PHP code from a thread on these forums but I can't seem to get it to work.

ActionScript Code:
import flash.net.URLLoader;
import flash.net.URLRequest;
submit_btn.addEventListener( MouseEvent.CLICK, submitClick );
function submitClick( e:MouseEvent ):void {
sendData();
[Code] .....

The php file is called mail.php in the main directory of the site along with the swf file with the AS code loacted in it. Does the AS have to be in a separate file or can I leave that on the frame where the actually text boxes are?

View 4 Replies

Set Up Comment Boxes On A Flash Movie?

Jun 9, 2009

Is it possible to set up comment boxes on a flash movie? For instance, if I am viewing a page on my flash movie and I wish to make a comment on it, is there a way to set up a comment box and also show all of the previous comments as well? I figure it is but I am just unsure as to how to start it.

View 1 Replies

ActionScript 3.0 :: Get Columns Comment With Amfphp?

Aug 1, 2011

I'm using amfphp to get some info from SQL database.

My php code of the file in "services" folder looks like[code]...

View 1 Replies

ActionScript 2.0 :: Creating Chatbox With Name And Comment Field

Mar 10, 2009

I am trying to make a chatbox for my website, I don't even think I need a database because I don't want people to sign in. I want a Name field, and a comment field. So I want it to appear in a box saying:
Name:NAMEHERE
Comments:These are the comments.

And so on. So I am still kind of new working with actionscript, I don't really know how this would work. I am looking to make something that looks like this: [URL]. That is my old freewebs account and I am shooting for something like that chatbox but instead of you having to log in you just type your name in a field and it appears.

I am Using Action Script 2.0 but I can make it 3.0 if required and I am running Flash CS3

View 2 Replies

ActionScript 3.0 :: Comment Code On Flash Builder?

Nov 19, 2009

In fLash Builder 2, I would eventually like to select a bunch of lines of code in the actions panel, click with the right mouse button and click "apply // comment" but that doesnt work in FlashBuilder , at least not that way. this seems to be a kind of a silly problem but it iirrtates me

View 1 Replies

Flex :: Asdoc - Add A Comment To Some Elements In A Document?

Nov 21, 2010

I want to add a comment to some elements in a Flex document, and process the comments using ASDoc. I can easily do this for the script portion, but I end up with a ton of ugly "This property can be used as the source for data binding." messages for each element I declared in Flex. Is there any way to embed a comment into a flex element so that it can be read by ASDoc? I have tried using the standard

<!-- -->

notation, but that didn't seem to work.

EDIT: The notation seems to be swallowed up as an HTML comment..

View 3 Replies

Write Signature/comment In Flash Site?

Jul 3, 2009

I would like to create a simple form inside my flash site where the visitors can write their name and a comment about the site which would then stay visible in the page (possibly inside a scrollpane).

View 1 Replies

ActionScript 3.0 :: Comment Box - Send Directly From Website To Email?

Jul 8, 2009

I use [URL] tutorials but the only comment box they offer (as far as I can see) is a code where the send button triggers the users outlook to open to send the email.

[Code]...

I am not sure which part of the code does that, but is there a way to just have the comment send directly from my website, rather than opening up their outlook? I find that most of my visitors don't use any mail software, only online email, so I find it's inconvenient to ask them to send comments this way. is there code to have a comment send directly from my website to my email?

View 2 Replies

ActionScript 3.0 :: Add A Parenthesis <"> In Trace Without Turning It Into A Comment?

Nov 29, 2010

i'm trying to use the trace() function to get an output that uses a parentheses <"> within it.My problem is that when i type my trace, for example:
 
trace("Andy will say" + " " " + Hello.text + " " "); is suppose to come out saying: Andy will say "Hello".
 
But the AS3 reads it such that the parentheses after "Andy will say" and after Hello.txt are normally utilized parentheses.

View 3 Replies

ActionScript 3.0 :: Load Different Values For Each Name, Email, Comment Inserted From XML?

Jun 16, 2009

I have a Guestbook project to develop (personal project) but I can't multiply the values.. I'm testing with a XML (no PHP and DB yet)

For example: I need to load different values for each name, email, comment inserted from XML.

Name: (name_txt) -> Textfield;
Email: (email_txt) - > Textfield;
Comment: (comment_txt) -> Textfield;

Well.. I can load ONE node from XML, but i can't multiply it for 5 blocks of name,email and comment.And if i'd like to paginate if it runs more than 5 blocks, the next 5 goes to another page?

Here is my code:

Code:
// GuestBook
var xmlLoader:URLLoader = new URLLoader();
var meuXML:XML; // vai guardar todo o conte�do do XML;
var imageLoader:Loader;

[code]...

View 1 Replies

AS2 :: (cs4) Open Source Development Facebook Comment FriendsList Fla With UserLogin

Sep 26, 2010

You can create a account You can login with your username and password. You can post comments. You can read all posted comments from your self and from your friends. What is not done with this project? It needs an accept friendship button where new friends rerquest was sent. It needs to read any new request from any new friends. it needs a decline button where the new friend request was sent if your does not wish to have this friend. It needs a comment delete button where this username and this comment. set only for the user who posted the comment. so not just any one can delete anyones comment.

[Code]...

View 2 Replies

Flex - Replace 'hardcoded' Identifier COMMENT With The Variable EditedField?

Jun 3, 2010

as I probably do not describe the problem in the right terms, I was not able to get an answer with google. In the following code, I would like to replace 'hardcoded' identifier COMMENT with the variable editedField. How to do that?

var editedField:String = event.dataField;
if (model.multipleProcessingData[i][editedInformationProductNO].COMMENT != null{
}

View 2 Replies

Javascript :: Embed A Comment Box Within The Video Player That Can Be Accessed By A Click?

Dec 30, 2011

So I was wondering if there was a way to create a video player or edit some open source video player with the functionality that users can add comments straight from the video player. So if you're trying to picture it, it would be something like this: the tool bar at the botom would have the usual seek bar, volume control, play/pause buttons etc, and now an additional button that when clicked would trasform the tool bar into a text box which can be used to enter comments while watching videos. The comments would then be entered below the video.

View 1 Replies

ActionScript 2.0 :: Incorporate A Simple Comment Box In Which Users Can Input Text?

Dec 12, 2010

I'm trying to incorporate a simple comment box in which users can input text and view all the text others have put in. I am struggling! I used a guestbook tutorial and it is going nowhere.

View 0 Replies

ActionScript :: Recent Step-by-Step For Flex / AIR With TextMate?

Apr 11, 2011

i apologize if this post is redundant. i'm searching unsuccessfully for recent, step-by-step instructions on how to set up ActionScript 3, Flex 4.5 and AIR 2.6 with TextMate on Mac OS X. i've found several posts concerning required bundles, but most of the threads are a few years old in addition to having convoluted, sparse instructions for setting up. it seems that auto-complete and .swc files are supported, which is great. in addition to instructions i'm also very interested in learning about what isn't supported and other common pitfalls.

i've been familiarizing myself with TextMate's UI and it's amazing. i would much rather use it than Flash Builder / Eclipse, or even Flash Professional. one last question - i understand that it's possible to set up our own keyboard shortcuts to compile with MXMLC and write the .swf to disk. is it possible to have the .swf auto open in Flash Player Debugger after it is compiled. essentially, i'd like to continue using Command+Enter shortcut for testing movies in Flash Professional to build and launch since i would certain have a difficult time adjusting to new muscle memory.

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 2.0 :: Implement A Comment Form For A Flash Page Using A Php Email System?

Nov 6, 2004

I am trying to implement a comment form for a flash page using a php email system. I am new to flash, but I got it working for the most part. The problem is that I receive emails, but they are blank and do not contain the info I put in. Below is the Actionscript I used and the php I used.

on (release) {
if (!FirstName.length) {
EmailStatus = "Please Enter your name.";
}

[code]....

View 7 Replies

Flex :: Components - Clicking On The Element Should Open Or Trigger An Action For Displaying That Particular Comment?

May 20, 2010

I'm using Flex's Advanced Datagrid for a project and need inline comments, in a similar style to Excel spreadsheet comments.A little visual indicator should indicate if a field is associated with a comment, and on clicking on the element should open or trigger an action for displaying that particular comment.

View 1 Replies

PhotoAlbum Broken?

Aug 27, 2009

I got a photo album in flash, Actionscript 2.0. Now when i compile it with flash, to make the swf, every runs fine, but when i load it online to my webspace, it break, it takes forever to load and the pic is off centered.

View 1 Replies

Flash8 Preloader Broken?

Feb 7, 2010

OK In a previous game on the same AS (2), I made a preloader, the code worked fine, all of the code was isolated on one frame so on another game I copied the frame and pasted into my other game. but the only difference is that one of my games is using flash player 8 (working preloader) and the other is using flash player 6 (not working.) Im using the same code.here is the frame code (all of it on frame):

Code:
var loadingCall:Number = setInterval(preloadSite, 50);
function preloadSite():Void {

[code].....

View 2 Replies

Professional :: Scenes Broken In CS4?

Mar 19, 2010

I've just started working with CS4, and admittedly I'm new to Flash, but I can't get the Scene functionality to work as described in the docs. The class MovieClip has a currentScene property that should return a Scene object. The Flash 10.0 docs give this code as an example :import flash.display.Scene;var scene:Scene =mc1.currentScene;trace(scene.name + ": " + scene.numFrames + " frames"); However, if you create a new ActionScript 3.0 fla file, create a MovieClip instance, name it mc1, and put this exact code in one of the frames, it returns a Scene object with no name and only 1 frame.Changing the name of the scene in CS4 does not . Am I missing something?

View 15 Replies







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