Find Jobs
Hire Freelancers

Flash functions to display random image&URL from external swf file

$30-5000 USD

Closed
Posted over 13 years ago

$30-5000 USD

Paid on delivery
Flash library functions to display random image with URL and open URL in new browser window after click in image. Images&ULRs read from external swf file. ## Deliverables You must sign agreement to transfer all rights to us. This project is to make: - one swf config file - 3 separate types of SWF database files - 4 separate library functions: 1. swf config file The only info in this file will be: - which add network to display ads for (integer from 1-3) - URL for play more games link. Later in description of function you will see that function must display ad from either mochi ads, cpm start or our own network. I want to have those constants in swf file because I want to have that file together with other swf file on swf only hosting. 2. SWF database 1 - SWF file must be as small as possible because it will be always loaded so must load fast. In this DB should be following info: - list of genres - list of games - number of all games present in database (integer) - how many priority games to promote (0-4) - % how often show priority games instead of random (for example 40% means that 40% of time only priority games thumbnails will show) - ULR to SWF database 3 file with priority games. Each genre record must have: - name - number (integer) In each game record must be following information: - game name - game number (must be incremental and start from 1 for first game) - game genre (each game may belong to max 3 genres but must belong to at least 1, first category is main game genre) - URL to swf containing game thumbails (100x100 and 200x200) and URL to play the game Target number of games in swf DB is 400 but we will start with 50 games in that DB 2. SWF database 2: SWF file containing list of thumbnails each with game number and URL to play it. Each game must have 2 thumbnails (100x100 and 200x200). Game number must be the same as game number in SWF database 1 (so game numbers must match for the same game) In each SWF database should be thumbnail for max 5 games (so five 100x100 and five 200x200) so it will load fast. Also all games in the same SWF file must have the same main genre. For start there will be about 50 games in swf db so there will be about 10 swf db files for them. Priority games must have separate SWF db file so all priority games will be in one swf file. 3. SWF database 3 is for priority games and must have similar structure as SWF database 2 but games numbers should start from 1 and increment by 1 for each next game in file. Also there must be 1 additional file in this DB: number of games in this swf file. 4. Flash function 1 to select ad to show and show our own ads (if our own selected) Function must: - read config swf and get add network ID (1-3) - for to ad shows network function or show our own ads - for our own add network must discover if ad is jpg or flash file and show accordingly (URL to our ads will be to php script which will forward either to .jpg or .swf file. If there is no connection to config swf defaul t add networt=3 (our add network) Function to show ads must be able to show mochimedia, cmpstar and our own ads. Codes to display mochimedia and cpmstar ads are provided by mochi ads and cpmstat so function must just call those native add showing functions so function does almost nothing to show those 1 and 2 network ads. For our own ad the function must discover if file served is .jpg or .swf and display the ads. For jpg ads it should be displayed for 10 second with countdown counter and please wait text. For .swf ads should work similar to mochi ads where it must show for 10 seconds (with coundown) and then show play button but unless it's pressed it will continue for up to 30 second. After 30 seconds forward to game even if play button not clicked. If no connection to both config swf and our network function should exit and forward to game start (like there was no add at all) 5. Flash function 2 - to change replace URL for "Play More Game" or "More Games" link with the link from swf config file. If no connection to swf config file then default URL must be <[login to view URL]> URL should have tag target="_blank" to show the the website in new browser window 6. Flash function 3 - return 1-4 game sets: both thumbnail 100x100& 200x200 with corresponding URLs to play the game. Function input parameters: genre and number of games sets to return. If genre 0 then don't use genre in game selaction Returned value should be global date set with info about 4 games so other function can use those thumbnails and URLs. If lest than 4 games requested or exist value for that game must be null. Step 1: If number of priority games >0 use (% how often show priority games) to calculate if priority games should be show and added to data. So if 40% if time do random roll 1-100 and if <=40 show means priority games should be shown. If >40 go to step 2 So if roll <=40 check first if swf file with priority game exists. If not then go to step 2 else load swf file with priority games, select randomly number need priority games from swf file. If number of games <4 or number of game in priority swf file <4 take remains number of game from step two. If there are all 4 priority game added to return data set exit function (and don't do step 2 in such case) Step 2: Note: (number of games to return) below is (number of games to return) with which function was called minus number of priory games already added to data set. If that (number of games to return) <=0 do nothing in step 2. Function should: - read SWF database 1 - then if (genre>0) select 1 random game from genre, get URL to SWF database 2 file containing that game, - else if (genre=0) select 1 random game from all games, get URL to SWF database 2 file containing that game, - then if (number of games to return =1) return both tumbnails and URL to play the selected game - if ((number of games to return >1 and (number of games in swf >= number of games to return)) select randomly additional (game to return-1) games and return all tumbnails and URLs - if ((number of games to return >1 and (number of game in swf < number of games to return)) select all remaining games from swf and for rest return null value If not connection to swf file return all null values. 5. Function 4 to show small thumbnail with bigger thumbnail when mouse over it Input is game number from 1-4 and dimensions of small thumbnail in pixels (X,Y). If dimensions not given to function default 100x100 Function must read game data from global dataset of 4 games prepared by function 3 If game has null in data set function for the game, function should do noting and exit. If data for game exist function must display small thumbnail resized to X,Y (if dimensions provided). When pointer mouse over the small thumbnail for more than 2 seconds, function should show pop-over of bigger 200x200 thumbnail centered and place mouse over it. Thumbnail must have good visible X (while in black circle) in top, right corner so player can close the thumbnail. After player click on small thumbnail within 2 seconds or on bigger thumbnail game must open new browser window by using tag target="_blank" in href to game URL. Use of functions in game First after game load start with function 1 to load config swf and display correct ad, then function 2 to set "play more games URL", then function 3 and 4, then show main menu. If you can call function 3 during playing ads it would be best to shorted time. On main menu screen where are free spots set separate up to 4 frames. The number (1-4) and dimensions of frames will depend on how much free space there is on specific game main screen. Each frame should correctly call function 4 to show 1-4 small thumbnails and then bigger when mouse over for over 2 seconds like explained in function 4 description. 6. For start to show library functionality there will be 3 flash games to add that library and functionality too. Additionally title of all 3 games will be changes. In about 240 games there is already mochi ad so only CPMstar ads library must be added to the game (on top of functions done for this project) . For remaining 60 all ads must be added. Bid amount should be for library and adding to 3 flash games. If you do good job I have about 400 games with source codes to which I may want to order to add library too.
Project ID: 2661066

About the project

2 proposals
Remote project
Active 13 yrs ago

Looking to make some money?

Benefits of bidding on Freelancer

Set your budget and timeframe
Get paid for your work
Outline your proposal
It's free to sign up and bid on jobs
2 freelancers are bidding on average $115 USD for this job
User Avatar
See private message.
$127.07 USD in 21 days
4.8 (185 reviews)
6.6
6.6
User Avatar
See private message.
$102 USD in 21 days
5.0 (42 reviews)
5.6
5.6

About the client

Flag of UNITED STATES
United States
4.9
26
Payment method verified
Member since Nov 26, 2008

Client Verification

Thanks! We’ve emailed you a link to claim your free credit.
Something went wrong while sending your email. Please try again.
Registered Users Total Jobs Posted
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Loading preview
Permission granted for Geolocation.
Your login session has expired and you have been logged out. Please log in again.