Archive for the 'Development & Coding' Category

15th Jun 2009

Flash Tips : Calling functions from loaded swf

So your trying to call a function on the parent timeline from a loaded swf.  In as2 this was pretty easy, as you could directly call to the parent.function().  In as3 its a little different because of the way the new movieclip objects are handled… but dont worry.. we have the solution.

In the following example.. lets say you have loaded a movie clip through action script from your library. something like

var myMovie = new movieInstance();
stage.addChild(myMovie);

Now lets assume you are trying to call a function when this loaded movie stops playing on the last frame.

if(this.parent.parent != null){
var parentObj:Object = this.parent as Object;
parentObj.function();
}

this.parent can be adjusted to set the depth of the parent you are trying to access. parentObj.function is the name of the function you are trying to access.

If you have any questions, just post, and we will be happy to assist.

Posted in Development & Coding, Flash, News | No Comments »

07th Apr 2009

New Partnership: Patrick and Company

MasteredMinds has recently partnered with Patrick and Company located in the Dallas World Trade Center, providing an array of marketing services designed to fit their needs.

Patrick and Company initially hired us in early January for our video services, which is on display in their showroom at the Dallas WTC.  Our task was to produce a video that featured products from their vendor collection in random order, to be played in wide screen 16:9 on a flat panel window display.

After utilizing our video services, PatCo decided to retain our services for a new site design, which will be launching in late April.  To compliment their new site, we have also designed a monthly email marketing program targeted to existing customers, which will feature showroom specials and new product offerings.

Find out more about how our marketing soltions can benefit you, click here, or call one of our Marketing MasterMinds to see what we can do for you 866-969-MIND (6463) or, in the Dallas area, call 214-MIND 559 (214 646 3559), in the Houston area, call 281 682 1444.

Posted in Development & Coding, News, Video Production | No Comments »

23rd Feb 2009

SLEEK new Portfolio Page

We were trying to make up our mind on what kind of portfolio page we were going to use.  First we had the rolling TV screens.  Which would be cool as something else… but not the portfolio.  I may post the link to the old portfolio and call it TV view.. and you can switch between TV view and the current portfolio.

Check it out and let us know what you think.  We would love to hear from you.  Sorry if we dont respond quickly.. we tend to get busy around here.

Posted in Creative Strategies, Development & Coding, News | No Comments »

21st Jan 2009

MasteredMinds.com gets a face lift

Though changes are still being made as we constantly improve our web presence, most of the site redesign is now complete. But we won’t be letting up anytime soon.” said Jonathan Shields, Mastered Minds Creative Director and VP Global Communications and Public Affairs.

Mastered Minds designs and deploys integrated media solutions across multiple platforms. The art of evolving development that is scalable, reliable, cost efficient, and grows with your business model is the cornerstone of our thinking and the key to your success.

Let mastered minds open the doors to your dreams.

Call 1-866-969-MIND (6463) ext.1

Mastered Minds

Http://www.MasteredMinds.com

Posted in Development & Coding, News, Video Production | 1 Comment »

10th Dec 2008

Reading directories and outputting results with Ruby on Rails

After searching Google for an hour, and not finding a good example of this, I finally figured it out and decided to write my own. Hope you find this example useful.

I am assuming, if you are reading this, that you need to read a directory in your controller and output the results of the read in the view. You should first know, that the method I am using uses the “public” folder as the root directory for your reading. All the files and directories you are trying to read, must be located within the “public” folder. For the sake of this example, lets assume you are trying to read the contents of the “public/images/” directory, and out put the file paths in your view.

First we start with the code for the controller, my example adds a parameter from the URL to specify which folder within the image folder you wish to read.

Controller Code:

def readImage
@files = Array.new
Dir["images/" + params[:id] + “/*”].each do |x|
@files << x
end
end

In our method, we first create a new Array object for the filenames contained in the diretory.

@files = Array.new

Next, we want to pull the files from the “images/” + params[:id] folder. We use the awesome object oriented nature of Ruby and call the each method on the Dir[] call. In line 2 we push “<<” the value contained in x into the @files array.

Dir["images/" + params[:id] + “/*”].each do |x|
@files << x
end

That is ALL THE CODE YOU NEED for the controller, now its on to the view.

In the view I am just going to show you how to output the data from the @files array. You can decide how you want to use it. You could put this in an img tag, or build out some <a> links to create downloadable files. Basically the following lines are needed.

View Code:

<% @files.each do |p| %>
<%= p %>
<% end %>

In the first line, we again use the object oriented nature of ruby to access the each method in the @files object that we created in our controller.

<% @files.each do |p| %>

From there we output the value for each file path and end our each loop.

<%= p %>
<% end %>

Pretty straight forward huh? If anyone has any questions or comments please let me know.

We love the Ruby on Rails framework here at MasteredMinds and use it to create high quality, low cost websites and web based applications. If you have any questions about our tactics or services, or would like to see some our of work, you can visit our website, www.masteredminds.com.

Posted in Development & Coding | 3 Comments »

SALES OR SUPPORT QUESTION? DROP US A LINE.

(866) 969.MIND (6463)
Sales@Masteredminds.com
Support@Masteredminds.com